Deteksi Gangguan Tidur Menggunakan Support Vector Machine pada Aplikasi Web Streamlit
DOI:
https://doi.org/10.33633/joins.v11i1.16125Keywords:
Sleep Disorder, Support Vector Machine, Classification, Machine Learning, StreamlitAbstract
Sleep disorders are health problems that may affect an individual’s physical condition, mental well-being, and daily productivity. These conditions can be influenced by lifestyle and physiological factors, such as sleep duration, sleep quality, stress level, physical activity, heart rate, and blood pressure. This study aims to apply the Support Vector Machine (SVM) method to classify sleep disorders into three categories, namely normal, insomnia, and sleep apnea, as well as to develop a Streamlit-based web application to support interactive prediction. The dataset used in this study is the Sleep Health and Lifestyle dataset obtained from Kaggle. The research stages include data preprocessing, normalization using StandardScaler, model training using SVM and five comparison algorithms, and hyperparameter tuning to obtain the best performance. The evaluation results show that the SVM model with a poly kernel achieves an accuracy of 97.33% and a macro F1-score of 0.9569. The best model is then implemented into a web application that displays classification results along with the probability of each class, making it useful as an accessible early screening tool for sleep disorders.References
D. M. Siregar and C. A. Rengkuan, “Analisis Faktor-Faktor yang Berperan dalam Kualitas Tidur pada Mahasiswa Tingkat Akhir,” OBAT: Jurnal Riset Ilmu Farmasi dan Kesehatan, vol. 3, no. 1, pp. 01–14, 2025, doi: 10.61132/obat.v3i1.893.
D. S. M. Jannah and H. G. Hidajat, “Analisis Faktor Penyebab dari Gangguan Tidur: Kajian Psikologi Lintas Budaya,” Psyche 165 Journal, pp. 164–171, Jul. 2024, doi: 10.35134/jpsy165.v17i3.372.
N. Nuraeni and M. Faisal, “Classification of Sleep Disorders using Support Vector Machine,” Kinetik: Game Technology, Information System, Computer Network, Computing, Electronics, and Control, Feb. 2025, doi: 10.22219/kinetik.v10i1.2054.
D. A. P. D. I. Pradhani, M. O. A. Kamayani, I. K. Saputra, and M. V. Manangkot, “Hubungan Resiliensi dengan Kualitas Tidur Pasien di Ruang Rawat Inap RSUD Wangaya Kota Denpasar,” Community of Publishing in Nursing, vol. 13, no. 2, pp. 145–152, Apr. 2025, doi: 10.24843/coping.2025.v13.i02.p04.
H. Mufidah, M. A. Maulana, Y. Pramana, G. N. Rahmah, and M. Mita, “Stres Akademik Sebagai Determinan Kualitas Tidur Remaja di Madrasah Aliyah,” Jurnal Penelitian Kesehatan “SUARA FORIKES” (Journal of Health Research “Forikes Voice”), vol. 15, no. 4, pp. 695–698, Nov. 2024, doi: 10.33846/sf15425.
R. J. Utami, R. Indarwati, and R. Pradanie, “Analisa Faktor Yang Mempengaruhi Kualitas Tidur Lansia Di Panti,” Jurnal Health Sains, vol. 2, no. 3, pp. 362–380, Mar. 2021, doi: 10.46799/jhs.v2i3.135.
S. Muntomimah and S. Mubarok, “Analisis Faktor-Faktor yang Mempengaruhi Kualitas Tidur pada Remaja berskala Biner,” Efektor, vol. 12, no. 1, pp. 63–74, Apr. 2025, doi: 10.29407/e.v12i1.24850.
D. Fitriyani, M. Amelia, and S. S. Yuliana, “Penerapan Algoritma Random Forest Untuk Klasifikasi Gangguan Tidur Berdasarkan Pola Kehidupan Sehari-hari,” Jurnal Aplikasi Informatika dan Multimedia, vol. 1, no. 1, pp. 21–26, Jul. 2025, doi: 10.64878/japtika.v1i1.82.
R. G. Wardhana, G. Wang, and F. Sibuea, “Penerapan Machine Learning dalam Prediksi Tingkat Kasus Penyakit di Indonesia,” Journal of Information System Management (JOISM), vol. 5, no. 1, pp. 40–45, Jul. 2023, doi: 10.24076/joism.2023v5i1.1136.
I. Akbar, F. Supriadi, and D. I. Junaedi, “Pemanfaatan Machine Learning di Bidang Kesehatan,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 9, no. 1, pp. 1744–1749, Dec. 2024, doi: 10.36040/jati.v9i1.12663.
H. S. W. Hovi, A. I. Hadiana, and F. R. Umbara, “Prediksi Penyakit Diabetes Menggunakan Algoritma Support Vector Machine (SVM),” Informatics and Digital Expert (INDEX), vol. 4, no. 1, pp. 40–45, 2022, doi: 10.36423/index.v4i1.895.
F. Abdusyukur, “Penerapan Algoritma Support Vector Machine (SVM) untuk Klasifikasi Pencemaran Nama Baik di Media Sosial Twitter,” KOMPUTA, vol. 12, no. 1, pp. 73–82, May 2023, doi: 10.34010/komputa.v12i1.9418.
R. Nugraha et al., “Pengembangan Website Klasifikasi Kualitas Tidur dan Rekomendasi Penanganan Menggunakan Logistic Regression,” RISTEK : Jurnal Riset, Inovasi dan Teknologi Kabupaten Batang, vol. 9, no. 2, pp. 30–36, Jun. 2025, doi: 10.55686/ristek.v9i2.204.
F. Andriani, N. Rahmania, and N. Alfiana, “Identifikasi Gangguan Tidur Menggunakan Klasifikasi Berbasis Decision Tree,” 1, vol. 2, no. 2, pp. 85–93, Aug. 2025, doi: 10.34304/scientific.v2i2.394.
T. K. Amarya, R. Firliana, and A. Ristyawan, “Aplikasi Deteksi Dini Penyakit Stroke Menggunakan Streamlit,” Prosiding SEMNAS INOTEK (Seminar Nasional Inovasi Teknologi), vol. 9, no. 1, pp. 453–462, Jul. 2025, doi: 10.29407/xgvr9h34.
L. Tharmalingam, “Sleep Health and Lifestyle Dataset,” Kaggle. Accessed: Oct. 11, 2025. [Online]. Available: https://www.kaggle.com/datasets/uom190346a/sleep-health-and-lifestyle-dataset
M. Darip, A. Sapaatullah, and R. Rahmat, “Implementasi Support Vector Machine (SVM) Untuk Deteksi Serangan Jaringan Pada Sistem Keamanan Jaringan Kampus:,” Bulletin of Information Technology (BIT), vol. 7, no. 1, pp. 40–49, Mar. 2026, doi: 10.47065/bit.v7i1.2602.
Z. M. E. Darmawan and A. F. Dianta, “Implementasi Optimasi Hyperparameter GridSearchCV Pada Sistem Prediksi Serangan Jantung Menggunakan SVM,” Teknologi: Jurnal Ilmiah Sistem Informasi, vol. 13, no. 1, pp. 8–15, Jan. 2023, doi: 10.26594/teknologi.v13i1.3098.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 JOINS (Journal of Information System)

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with JOINS (Journal of Information System) agree to the following terms:
- Authors retain copyright and grant JOINS the right of first publication. The work is simultaneously licensed under a Creative Commons Attribution 4.0 International License (CC BY 4.0), which allows others to share and adapt the work, provided they give appropriate credit to the authors and the initial publication in this journal, provide a link to the license, and indicate if changes were made.
- Authors may enter into separate, additional contractual arrangements for the non-exclusive distribution of the published version of the work (e.g., posting it to an institutional repository or publishing it in a book), with an acknowledgement of its initial publication in JOINS.
- Authors warrant that the manuscript is original, has not been published elsewhere, is not under review by another journal, and does not infringe the rights of any third party. Material from other sources must be properly cited, and permission obtained where required.
- Authors may post a preprint of the manuscript, but must inform the editor at the time of submission so that the double-blind review process can be handled appropriately.




