Pengembangan Model Random Forest untuk Prediksi Kesehatan Jiwa Berbasis Data Klinis Terstruktur dan Tidak Terstruktur
DOI:
https://doi.org/10.26418/jp.v11i3.100012Keywords:
Kesehatan Jiwa, Random Forest, SMOTE, TF-IDF, KlasifikasiAbstract
Penelitian ini mengembangkan model prediksi kesehatan jiwa menggunakan algoritma Random Forest berbasis data klinis terstruktur dan tidak terstruktur dari pasien poli kejiwaan RSUD dr. R. Goeteng Taroenadibrata Purbalingga. Dataset terdiri dari 4.432 rekam medis yang mencakup parameter fisiologis serta catatan naratif yang diproses melalui cleaning, stemming Sastrawi, dan pembobotan TF-IDF. Evaluasi model dilakukan menggunakan dua skema pembagian data (85:15 dan 80:20) serta dua kondisi preprocessing (stemming dan non-stemming). Hasil menunjukkan bahwa jumlah data berpengaruh signifikan terhadap performa model, di mana akurasi meningkat dari 0,62–0,66 pada 1.000 data menjadi 0,79–0,81 pada 4.432 data. Namun, nilai presisi, recall, dan F1-score berbasis macro masih rendah akibat ketidak seimbangan kelas. Setelah diterapkan teknik oversampling SMOTE, performa model meningkat sangat signifikan dengan akurasi mencapai 0,9490 dan F1-score macro 0,9360. Pengukuran ROC-AUC sebesar 0,9991 menunjukkan kemampuan diskriminatif yang hampir sempurna. Perbandingan dengan algoritma lain menunjukkan bahwa Random Forest menghasilkan kinerja terbaik, melampaui SVM, Naive Bayes, dan Decision Tree. Hasil penelitian menegaskan potensi Random Forest untuk prediksi kesehatan jiwa berbasis data klinis terintegrasi, serta pentingnya penanganan class imbalance untuk meningkatkan performa pada kelas minoritas.References
Y. Galphat, L. Kithani, D. Raghani, C. Dayaramani, & Y. Kriplani. (2023). PREDICARE: Machine Learning Based Disease Diagnosis System. Proceedings of the 3rd International Conference on Pervasive Computing and Social Networking (ICPCSN 2023), 245–250. https://doi.org/10.1109/ICPCSN58827.2023.00046
Sumathi, M., & D. B. (2016). Prediction of Mental Health Problems Among Children Using Machine Learning Techniques. International Journal of Advanced Computer Science and Applications (IJACSA), 7(1), 552–557. https://doi.org/10.14569/ijacsa.2016.070176
R. S. Negeriku. (2021). Kemenkes Beberkan Masalah Permasalahan Kesehatan Jiwa di Indonesia. Sehat Negeriku. Retrieved from https://sehatnegeriku.kemkes.go.id/baca/rilismedia/20211007/1338675/kemenkes-beberkan-masalah-permasalahan-kesehatan-jiwa-di-indonesia/
Batharyya, S. R., & Basu. (2018). India Inc looks to deal with rising stress in employees. The Economic Times. Retrieved from https://economictimes.indiatimes.com/jobs/india-inc-looks-to-deal-with-rising-stress-in-employees/articleshow/64741313.cms
Maringka, R., & Kusnawi, K. (2021). Exploratory Data Analysis Faktor Pengaruh Kesehatan Mental di Tempat Kerja. CogITo Smart Journal, 7(2), 215–226. https://doi.org/10.31154/cogito.v7i2.312.215-226
Rahman, R. A., Omar, K., Noah, S. A. M., Danuri, M. S. N. M., & Al-Garadi, M. A. (2020). Application of machine learning methods in mental health detection: A systematic review. IEEE Access, 8, 183952–183964. https://doi.org/10.1109/ACCESS.2020.3029154
Rahayu, K., Fitria, V., Septhya, D., Rahmaddeni, R., & Efrizoni, L. (2023). Klasifikasi Teks untuk Mendeteksi Depresi dan Kecemasan pada Pengguna Twitter Berbasis Machine Learning. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 3(2), 108–114. https://doi.org/10.57152/malcom.v3i2.780
Oktaviana, A., Wijaya, D. P., Pramuntadi, A., & Heksaputra, D. (2024). Prediksi Penyakit Diabetes Melitus Tipe 2 Menggunakan Algoritma K-Nearest Neighbor (K-NN). MALCOM: Indonesian Journal of Machine Learning and Computer Science, 4(3), 812–818. https://doi.org/10.57152/malcom.v4i3.1268
Fisher, J., Allen, S., Yetman, G., & Pistolesi, L. (2024). Assessing the influence of landscape conservation and protected areas on social wellbeing using random forest machine learning. Scientific Reports, 14(1), 11357. https://doi.org/10.1038/s41598-024-61924-4
Samad, A., Taze, S., & Uçar, M. K. (2024). Enhancing Milk Quality Detection with Machine Learning: A Comparative Analysis of KNN and Distance-Weighted KNN Algorithms. International Journal of Innovative Science and Research Technology, 2021–2029. https://doi.org/10.38124/ijisrt/IJISRT24MAR2123
Sun, Y. (2024). Mental Health Classification and Diagnosis System Based on Random Forest Algorithm. Proceedings of the 2nd IEEE International Conference on Data Science and Information Systems (ICDSIS 2024), 1–6. https://doi.org/10.1109/ICDSIS61070.2024.10594527
Poornima, S., Agalya, R., Gayathri, M., Hari, A., & Sudharsan, S. (2024). Machine Learning based Self Identification of Mental Health. Proceedings of the International Conference on IoT, Communication and Automation Technology (ICICAT 2024), 1072–1077. https://doi.org/10.1109/ICICAT62666.2024.10923396
Shah, K., Patel, U., & Kumar, Y. (2024). Machine Learning-Based Approaches for Early Prediction of Depression. Proceedings of the 2nd International Conference on Intelligent and Innovative Technologies in Computing, Electrical and Electronics (ICIITCEE 2024), 1–7. https://doi.org/10.1109/IITCEE59897.2024.10467234
Thotad, P. N., Kallur, S., Mundaragi, L., & Kadam, S. H. (2023). Mental Health Tracker Using Machine Learning Approaches. Proceedings of the 4th IEEE Global Conference on Advanced Technologies (GCAT 2023), 1–5. https://doi.org/10.1109/GCAT59970.2023.10353336
Moreno-Sánchez, P. A., Arroyo-Fernández, R., Bravo-Esteban, E., Ferri-Morales, A., & van Gils, M. (2024). Assessing the relevance of mental health factors in fibromyalgia severity: A data-driven case study using explainable AI. International Journal of Medical Informatics, 181, 105280. https://doi.org/10.1016/j.ijmedinf.2023.105280
Wan, M., & Zou, S. (2025). Adolescent mental health state assessment framework by combining YOLO with random forest. Applied Soft Computing, 168, 112497. https://doi.org/10.1016/j.asoc.2024.112497
Christ, B. R., Adams, L., Ertman, B., & Perrin, P. B. (2025). Unmet educational accommodation needs and mental health outcomes in adults with disabilities: A machine learning approach. Disability and Health Journal, 101849. https://doi.org/10.1016/j.dhjo.2025.101849
Mohamed, E. S., Naqishbandi, T. A., Bukhari, S. A. C., Rauf, I., Sawrikar, V., & Hussain, A. (2023). A hybrid mental health prediction model using Support Vector Machine, Multilayer Perceptron, and Random Forest algorithms. Healthcare Analytics, 3, 100185. https://doi.org/10.1016/j.health.2023.100185
Spangenberg, G. W., Uddin, F., Faber, K. J., & Langohr, G. D. G. (2024). Automatic bicipital groove identification in arthritic humeri for preoperative planning: A Random Forest Classifier approach. Computers in Biology and Medicine, 178, 108653. https://doi.org/10.1016/j.compbiomed.2024.108653
Simonetti, I., Lubello, C., & Cappietti, L. (2024). On the use of hydrodynamic modelling and random forest classifiers for the prediction of hypoxia in coastal lagoons. Science of the Total Environment, 951, 175424. https://doi.org/10.1016/j.scitotenv.2024.175424
Rajeashwari, S., & Arunesh, K. (2024). Chronic disease prediction with deep convolution based modified extreme-random forest classifier. Biomedical Signal Processing and Control, 87, 105425. https://doi.org/10.1016/j.bspc.2023.105425
Sreejith, S., Nehemiah, H. K., & Kannan, A. (2022). A clinical decision support system for polycystic ovarian syndrome using red deer algorithm and random forest classifier. Healthcare Analytics, 2, 100102. https://doi.org/10.1016/j.health.2022.100102
A. K., D. N., D. T., B. R. B. B., B. D. N., & N. V. (2023). Effect of multi filters in glaucoma detection using random forest classifier. Measurement: Sensors, 25, 100566. https://doi.org/10.1016/j.measen.2022.100566
Alloubani, A., Abuhaija, B., Almatari, M., Jaradat, G., & Ihnaini, B. (2024). Predicting vitamin D deficiency using optimized random forest classifier. Clinical Nutrition ESPEN, 60, 1–10. https://doi.org/10.1016/j.clnesp.2023.12.146
Alita, D., & Isnain, A. R. (2020). Pendeteksian Sarkasme pada Proses Analisis Sentimen Menggunakan Random Forest Classifier. Jurnal Komputasi, 8(2). https://doi.org/10.23960/komputasi.v8i2.2615
Breiman, L. (2001). Random Forests. Machine Learning. https://doi.org/10.14569/ijacsa.2016.070603.
Addewiyah, I., & Fatah, Z. (2025). Penerapan Algoritma Random Forest dan Teknik SMOTE untuk Prediksi Kematian Akibat Gagal Jantung Menggunakan RapidMiner. Jamastika, 4(2), 82–89. https://doi.org/10.35473/jamastika.v4i2.4481