Development of an Expert System to Detect Mental Disorders in Pregnant Women using Forward and Backward Chaining Methods
Abstract
Mental health during pregnancy plays a critical role in fetal development and maternal well-being. However, psychological conditions such as depression, stress, and anxiety in pregnant women often go undetected, especially in primary healthcare settings. This research aims to design and develop a web-based expert system capable of diagnosing the mental health conditions of pregnant women using Forward Chaining and Backward Chaining inference techniques. Forward Chaining is applied to infer possible conditions based on reported symptoms, while Backward Chaining is used to validate hypotheses by tracing required supporting symptoms. The system was developed using patient data collected from three health centers in Lhokseumawe City, totaling 500 records with parameters including name, age, gestational age, number of children, and reported complaints. It incorporates 30 symptoms and 9 diagnostic rules to classify the mental condition and its severity.The results indicate that 179 women were diagnosed with depression (mild 107, moderate 33, severe 39), 150 with anxiety (mild 24, moderate 91, severe 35), and 171 with stress (mild 82, moderate 50, severe 39). The system also demonstrates diagnostic probability (e.g., 66.67% in a specific case). Validation using 20 test cases yielded an accuracy of 85%, showing the system performs reliably in aligning symptoms with diagnostic outcomes. This study makes two significant contributions. Practically, it offers a decision-support tool for midwives and general practitioners to perform early mental health screening of pregnant women, especially in regions lacking access to psychiatric specialists. Scientifically, it demonstrates the effectiveness of a hybrid reasoning approach in handling overlapping psychological symptoms and in assessing severity levels, thereby enriching the development of domain-specific expert systems in maternal mental health. In conclusion, this system provides a practical and accessible solution to support early detection and intervention in maternal mental health, ultimately contributing to improved health outcomes for both mothers and their babies.
Downloads
References
U. Surapati and E. Gautama, “Klasifikasi Sistem Pakar Diagnosis Penyakit Anak Menggunakkan Metode Forward dan Backward Chaining Studi Kasus: Posyandu Kamal,” J. Pendidikan. dan Konseling, vol. 4, no. 5, pp. 979–991, 2022.
R. Wakhidah, P. P. Arhandi, and A. M. S. S, “Mendeteksi Gangguan Emosional Menggunakan Forward dan Backward Chaining,” J. Manajemen. Informatika. Politeknik. Ganesha, vol. 12, no. 1, pp. 217–225, 2023, doi: https://doi.org/10.33395/jmp.v12i1.12342.
S. K. Sianturi and H. Herawati, “Metode Forward Chaining Untuk Sistem Pakar Diagnosa Gangguan Kehamilan,” J. Insan. Unggul, vol. 10, no. 1, pp. 67–96, 2022.
M. Qamal, M. Bengi, Fadlisyah, and Mukarramah, “Diagnosa Penyakit Bawang Merah Dengan Metode forward Chaining dan Backward Chaining,” J. TIKA Fakultas. Ilmu Komputer. Universitas. Almuslim, vol. 7, no. 1, pp. 12–18, 2022.
A. Ramadhanti and A. Kurniawan, “Penerapan Metode Forward Chaining Dalam Proses Rancang Bangun Sistem Pendeteksi Dini Kesehatan Mental Emosional Anak Usia 4-17” J. Manajemen. Informatika, vol. 15, no. 2, pp. 1–11, 2023.
L. Isyriyah, D. A. P.M. T. Zahara, T. Informatika, J. T. Malang, and K. Kunci, “Sistem Pakar Deteksi Dini Mental Illness pada Remaja dengan Metode Forward Chaining,” ELANG Journal of Interdisciplinary Research, pp. 1–12, 2023.
A. Saputra, A. Eviyanti, and Y. Findawati, “Sistem Pakar Diagnosa Penyakit Kejiwaan Menggunakan Metode Forward Chaining,” JIPI (Jurnal Ilmiah. Penelitian. dan Pembelajaran Informatika., vol. 8, no. 4, pp. 1300–1313, 2023, doi: 10.29100/jipi.v8i4.4228.
A. Rizkiah, R. D. Risanty, and R. Mujiastuti, “Sistem Pendeteksi Dini Kesehatan Mental Emosional Anak Usia 4-17 Tahun Menggunakan Metode Forward Chaining,” JUST IT J. Sistem. Informasi, Teknologi. Informasi. dan Komputer., vol. 10, no. 2, p. 83, 2020, doi: 10.24853/justit.10.2.83-93.
A. Pambudi, S. Aminah, and B. K. Kristanto, “Aplikasi Mobile Pendeteksi Gangguan Mental Mahasiswa dengan Menggunakan Metode Forward Chaining,” Pros. SISFOTEK, pp. 7–13, 2021, [Online].
N. A. Hidayat and A. Mirza, “Sistem Pakar Screening Awal Gangguan Kesehatan Mental Social Anxiety Disorder Menggunakan Metode Forward Chaining Berbasis Website,” Biner J. Ilmu Komput. , Tek. dan Multimed., vol. Volume 1, no. 3, pp. 1–15, 2023, [Online]. Available: https://journal.mediapublikasi.id/index.php/Biner
A. Tasari, E. A. M. Simanjutak, G. Christian, and R. M. Sinaga, “Sistem Pakar Diagnosis Kondisi Kesehatan Mental Masyarakat Usia 18-23 Tahun Menggunakan Metode Certainty Factor Dan Forward Chaining,” J. Teknol. Informasi, Komputer, dan Apl. (JTIKA ), vol. 5, no. 2, pp. 173–182, 2023, doi: 10.29303/jtika.v5i2.244.
E. Wahyu Sholeha, B. Sabella, W. Kusrini, and S. Komalasari, “Sistem Pakar Penyakit Kesehatan Mental Remaja Menggunakan Metode Forward Chaining Dan Certainty Factor,” Kumpul. J. Ilmu Komput., vol. 10, no. 1, pp. 82–91, 2023.
D. Kusumastuti, “Kecemasan dan Prestasi Akademik pada Mahasiswa,” Analitika, vol. 12, no. 1, pp. 22–33, 2020, doi: 10.31289/analitika.v12i1.3110.
C. A. D. Kirana and A. S. Harahap, “Pendukung Keputusan dalam Penilaian Pegawai Pemerintah Non Pegawai Negeri menggunakan Metode Entropy,” JURIKOM (Jurnal Ris. Komputer), vol. 9, no. 1, p. 159, 2022, doi: 10.30865/jurikom.v9i1.3846.
G. P. Rudi Pratama, K. A. Sekarwati, and R. Susiloatmadja, “Aplikasi Sistem Pakar Untuk Identifikasi Penyakit Pada Ibu Hamil Dengan Metode Forward Chaining Berbasis Android,” Format J. Ilm. Tek. Inform., vol. 9, no. 2, p. 125, 2021, doi: 10.22441/format.2020.v9.i2.004.
H. Wakhyudin and A. D. S. Putri, “Analisis Kecemasan Mahasiswa Dalam Menyelesaikan Skripsi,” WASIS J. Ilm. Pendidik., vol. 1, no. 1, pp. 14–18, 2020, doi: 10.24176/wasis.v1i1.4707.
M. D. Irawan, A. Widarma, and R. Y H Siregar, “Penerapan Metode Forward-Backward Chaining pada Sistem Pakar Pencegahan dan Pengobatan Penyakit Sapi,” J. Teknol. dan Inf., vol. 11, no. 1, pp. 14–25, 2021, doi: 10.34010/jati.v11i1.
I. F. Hanif and A. Rachman, “Sistem Deteksi Ketegangan Mental Menggunakan Metode Forward Chaining,” J. Psudocode, vol. 9, no. September, pp. 73–79, 2022.
R. Apriliyani, F. A. Tyas, and E. K. Permatasari, “Perbandingan Metode Forward Chaining dan Backward Chaining pada Sistem Pakar Identifikasi Gaya Belajar,” J. Inform. dan Teknol. Komput., vol. 03, no. 02, pp. 84–92, 2022.
S. G. Ahmad, D. Arifianto, and W. Suharso, “Penerapan Forward Chaining Dalam Certainty Factor Untuk Mendiagnosa Ibu Hamil,” J. Smart Teknol., vol. 3, no. 5, pp. 502–510, 2022.
S. Hardianti, A. Tenriawaru, and N. Ransi, “Sistem Pakar Diagnosa Penyakit Menular Pada Anak Menggunakan Metode Forward Chaining dan Backward Chaining,” Just TI (Jurnal Sains Terap. Teknol. Informasi), vol. 13, no. 2, p. 111, 2021, doi: 10.46964/justti.v13i2.625.
Suryono and Lisna Dewi, “Sistem Pakar Untuk Menentukan Tingkat Risiko Ibu Hamil Pada Klinik Bersalin Pratama Umi Rahma Menggunakan Metode Forward Chaining,” J. Penelit. Sist. Inf., vol. 1, no. 4, pp. 201–214, 2023, doi: 10.54066/jpsi.v1i4.1240.
U. Bancin, Bustami, and L. Rosnita, “Expert System For Diagnosis of Mental Health Disorders in Students Using Case-Based Reasoning Method With a Web-Based Positive Psychology Approach,” Int. J. Eng. Sci. Inf. Technol., vol. 4, no. 4, pp. 135–143, 2024, doi: https://doi.org/10.52088/ijesty.v4i4.592.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Development of an Expert System to Detect Mental Disorders in Pregnant Women using Forward and Backward Chaining Methods
Pages: 1174-1185
Copyright (c) 2025 Monisa Dela, Eva Darnila, Lidya Rosnita

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).





















