Implementation of the Forward Chaining Algorithm in a Student Mental Health Detection System
Main Article Content
Abstract
Student mental health is an important aspect in supporting academic success and individual well-being. The various academic pressures, social challenges, and the transition to independent living make students a vulnerable group to mental health disorders such as stress, anxiety, and depression. However, many students are still reluctant or experience difficulties in accessing professional services to solve this problem. This research aims to develop an early detection system for student mental health based on an expert system using Forward Chaining. This method performs reasoning from symptoms toward a conclusion based on mental health condition using rules stored in the knowledge base. The system is developed using the DASS-21 (Depression, Anxiety, Stress Scale-21) instrument to assist in identifying mental health conditions. The dataset consists of 50 student respondents from Universitas Muhammadiyah Ponorogo who completed the DASS-21 questionnaire. System performance was evaluated by comparing the diagnostic outputs of the system against the standard DASS-21 score. The results were analyzed using a confusion matrix to calculate accuracy, precision, recall, and F1-score per severity class. The research results show that the system is capable of initially identifying students’ mental health conditions by presenting the severity level of the mental condition, a description of the condition, and appropriate handling recommendations. Black-box testing confirmed the accuracy of 96%, with precision and recall values above 90% across all severity classes. These results demonstrate that the implemented forward chaining system provides an accessible, automated, and standardized tool for early mental health detection in the Indonesian higher education context.
Article Details
Section

This work is licensed under a Creative Commons Attribution 4.0 International License.
How to Cite
References
[1] F. Anwar and P. Julia, “Analisis Strategi Pembinaan Kesehatan Mental Oleh Guru Pengasuh Sekolah Bersama si Aceh Besar Pada Masa Pandemi,” JURNAL EDUKASI jurnal Bimbingan Konseling, vol. 7, no. 1, pp. 64–83, 2021.
[2] E. Budiyati, “Pengaruh Konsep Diri Sebagai Prediktor Kesehatan Mental Mahasiswa,” LANCAH: Jurnal Inovasi dan Tren, vol. 1, no. 2, pp. 233–238, 2023, doi: 10.35870/ljit.v1i2.2158. DOI: https://doi.org/10.35870/ljit.v1i2.2158
[3] N. Wusqa and S. Novitayanti, “Risiko Bunuh Diri pada Mahasiswa Tingkat Akhir,” JIM Fkep, vol. 6, no. 2, pp. 145–150, 2022.
[4] I. Y. Suryaputri, R. Mubasyiroh, S. Idaiani, and L. Indrawati, “Determinants of Depression in Indonesian Youth: Findings from a Community-based Survey,” Journal of Preventive Medicine and Public Health, vol. 55, no. 1, pp. 88–97, 2022, doi: 10.3961/JPMPH.21.113. DOI: https://doi.org/10.3961/jpmph.21.113
[5] Y. Huang, S. Li, B. Lin, S. Ma, J. Guo, and C. Wang, “Early Detection of College Students’ Psychological Problems Based on Decision Tree Model,” Frontiers in Psychology, vol. 13, pp. 1–10, 2022, doi: 10.3389/fpsyg.2022.946998. DOI: https://doi.org/10.3389/fpsyg.2022.946998
[6] Z. A. Aziz et al., “Gambaran Kesehatan Mental Mahasiswa di Masa Pandemi Covid-19,” Online, 2021.
[7] I. Mathar, M. Dwi Klevina, and C. Y. Sebtalesy, “Kesehatan Mental Terhadap Hasil Belajar Mahasiswa STIKes Bhakti Husada Mulia Pada Masa Pembelajaran Daring,” Prosiding Seminar Nasional Pascasarjana, vol. 6, no. 1, pp. 1033–1039, 2023.
[8] L. Hernawati, “Gambaran Penyebab Mahasiswa Enggan Mencari Bantuan Profesional di Masa Pandemi Covid-19,” PSIKODIMENSIA, vol. 21, no. 2, pp. 198–205, 2022, doi: 10.24167/psidim.v21i2.4764. DOI: https://doi.org/10.24167/psidim.v21i2.4764
[9] A. Rasyida, “Faktor yang menjadi hambatan untuk mencari bantuan psikologis formal di kalangan mahasiswa,” Persona:Jurnal Psikologi Indonesia, vol. 8, no. 2, pp. 193–207, 2019, doi: 10.30996/persona.v8i2.2586. DOI: https://doi.org/10.30996/persona.v8i2.2586
[10] D. E. Putra, N. Nelwati, and F. Fernandes, “Hubungan Depresi, Stres Akademik Dan Regulasi Emosi Dengan Ide Bunuh Diri Pada Mahasiswa,” Jurnal Keperawatan Jiwa (JKJ): Persatuan Perawat Nasional Indonesia, vol. 11, no. 3, pp. 689–706, 2023, doi: 10.26714/jkj.11.3.2023.689-706. DOI: https://doi.org/10.26714/jkj.11.3.2023.689-706
[11] A. Fitri, “Program Preventif Bunuh Diri Untuk Mengurangi Ide Dan Percobaan Bunuh Diri,” IDEA: Journal of Psychology, vol. 7, no. 1, pp. 12–22, 2023, doi: 10.32492/idea.v7i1.7103.
[12] F. Nuraeni, W. Baswardono, and R. Rahadian, “Implementasi Forward Chaining Dalam Sistem Pakar Diagnosa Kecanduan Pada Game Online,” Jurnal Algoritma, vol. 22, no. 1, pp. 914–925, 2025, doi: 10.33364/algoritma/v.22-1.1979. DOI: https://doi.org/10.33364/algoritma/v.22-1.1979
[13] M. A. Hakim and N. V. Aristawati, “Mengukur Depresi, Kecemasan, Dan Stres Pada Kelompok Dewasa Awal Di Indonesia: Uji Validitas Dan Reliabilitas Konstruk Dass-21,” Jurnal Psikologi Ulayat, vol. 10, no. 2, pp. 232–250, 2023, doi: 10.24854/jpu553. DOI: https://doi.org/10.24854/jpu553
[14] E. Kakemam, E. Navvabi, A. H. Albelbeisi, F. Saeedikia, and A. Rouhi, “Psychometric properties of the Persian version of Depression Anxiety Stress Scale-21 Items ( DASS-21 ) in a sample of health professionals : a cross-sectional study,” BMC Health Services Research, vol. 4, pp. 1–9, 2022, doi: 10.1186/s12913-022-07514-4. DOI: https://doi.org/10.1186/s12913-022-07514-4
[15] S. Armalivia, M. A. Rahmat, P. C. A. Widyanti, and S. Nuraisyah, “Early diagnosis of mental health disorders of final-year students of Almarisah Madani University using the forward chaining method,” INFOTECH: Jurnal Informatika Teknologi, vol. 5, no. 2, pp. 258–266, 2024, doi: 10.37373/infotech.v5i2.1402. DOI: https://doi.org/10.37373/infotech.v5i2.1402
[16] E. P. Maharani, “Cognitive Behavioral Therapy untuk mengurangi perilaku melukai diri pada individu dengan gangguan depresi mayor,” Procedia : Studi Kasus dan Intervensi Psikologi, vol. 10, no. 4, pp. 113–118, 2022, doi: 10.22219/procedia.v10i4.23548. DOI: https://doi.org/10.22219/procedia.v10i4.23548