Pengembangan Chatbot Kesehatan Mental Berbasis Web Menggunakan Model Long Short-Term Memory (LSTM)
Abstract
Mental health issues such as stress, anxiety, and academic burnout are increasingly prevalent among university students. However, many students remain reluctant or unable to access counseling services due to time limitations, social stigma, and a lack of available professionals. This study aims to develop CuraBot, a web-based chatbot designed to provide preliminary emotional support and mental health education in an instant, anonymous, and easily accessible manner for students. The system was developed using the Long Short-Term Memory (LSTM) algorithm, which is proven to be effective in understanding contextual text-based conversations. The dataset used consists of 1,624 conversational entries across 77 intent classes, adapted and localized from an open-source corpus to reflect the linguistic style and needs of Indonesian students. The development process involved several stages, including data preprocessing (lemmatization, tokenization, stopword removal, and padding), model training using TensorFlow, and deployment into a Flask-based web application. The model was evaluated using a separate test set of 244 entries, resulting in an accuracy of 89.9%, precision of 90.4%, recall of 89.1%, and an F1-score of 89.8%. These results indicate that the model can classify user intent with high accuracy. This research contributes to the development of a contextual, practical, and AI-based digital solution that supports early access to psychological services within university environments.
Downloads
References
P. Rathnayaka, N. Mills, D. Burnett, D. De Silva, D. Alahakoon, and R. Gray, “A Mental Health Chatbot with Cognitive Skills for Personalised Behavioural Activation and Remote Health Monitoring,” Sensors, vol. 22, no. 10, May 2022, doi: 10.3390/s22103653.
Gangadhar Bareddy, Dr. Veparala Lazar, Khushi Mahajan, and Dr Pallerla Srikanth, “Impact of Adverse Childhood Experiences on the Treatment Journey of Women Facing Infertility,” 2024. [Online]. Available: https://dergipark.org.tr/en/pub/jnbs
H. Liang and P. Phokha, “The Development of Music Recreation Therapy for Students’ Stress, using of Music Activity Learning Methods,” Pak J Life Soc Sci, vol. 22, no. 2, pp. 6758–6771, 2024, doi: 10.57239/PJLSS-2024-22.2.00511.
D. L. Tobing and Sari Septiningtyas, “Regulasi Emosi dan Perilaku Cyberbullying pada Remaja,” Jurnal Keperawatan Widya Gantari Indonesia, vol. 8, no. 1, Mar. 2024, doi: 10.52020/jkwgi.v8i1.7445.
N. Agustin and F. Malahati, “Hubungan Resiliensi dan Coping Stres Terhadap Tingkat Stres Mahasiswa yang Mengikuti Program MBKM,” Journal of Basic Educational Studies, vol. 4, no. 3, pp. 2077–2085, Nov. 2024, doi: https://doi.org/10.47467/edu.v4i3.5723.
F. N. Nesimnasi, T. M. Tiwa, and M. Naharia, “Stres Akademik Mahasiswa Fakultas Ilmu Pendidikan dan Psikologi Universitas Negeri Manado yang Mengikuti Merdeka Belajar Kampus Merdeka (MBKM) Tahun 2020,” PSIKOPEDIA, vol. 5, no. 3, pp. 263–270, Jun. 2024, doi: 10.53682/pj.v5i3.9553.
A. Rizky Saputra, A. Matulessy, and F. Psikologi, “Stres akademik pada mahasiswa Merdeka Belajar Kampus Merdeka (MBKM): Bagaimana peran dukungan sosial?,” INNER: Journal of Psychological Research, vol. 3, no. 4, pp. 564–570, 2024.
D. Maharani Harahap, H. Ramayana Sidabutar, N. Apriani Lubis, N. Salsabila Pasaribu, and H. Laila Siregar, “Pengaruh Pola Asuh Orang Tua Terhadap Pembentukan Perilaku Disiplin Mahasiswa di Kota Medan,” JCRD: Journal of Citizen Research and Development, vol. 2, no. 1, pp. 555–564, 2025, doi: https://doi.org/10.57235/jcrd.v2i1.4770.
M. Efendy, N. Pratitis, M. R. Norhidayah, and E. N. A. Putri, “Coping Religius dan Kesejahteraan Psikologis Mahasiswa Muslim di Indonesia,” Jurnal Ilmiah Fakultas Psikologi Universitas Yudharta Pasuruan, vol. 11, Sep. 2024, doi: 10.35891/jip.v11i2.
R. Gunawan and A. R. Nugroho, “Pengembangan Prototipe Cyber Counseling dalam Setting Pendidikan dan Kesehatan Mental bagi Mahasiswa,” Jurnal Dinamika Pendidikan, vol. 16, no. 1, pp. 33–47, Apr. 2023, doi: 10.51212/jdp.v16i1.
A. Anggraini, C. E. Rahelta, M. A. Simangunsong, T. A. Mediansyah, Z. Harahap, and S. F. Dalimunthe, “Pengaruh Kebiasaan Membaca Buku terhadap Kesehatan Mental Mahasiswa di Fakultas Teknik UNIMED,” JIIC : Jurnal Intelek Insan Cendekia, vol. 1, no. 10, Dec. 2024, [Online]. Available: https://jicnusantara.com/index.php/jiic
A. Fathoni, M. Putra Sahalana, and Z. N. Azizah, “Pengembangan Layanan Konseling Mahasiswa UIN Walisongo Semarang Berbasis Expert System,” JURNAL FASILKOM, vol. 14, no. 3, pp. 627–636, Dec. 2024.
E. Budiyanti and M. J. Wijaya, “Hubungan Konsumsi Kafein dengan Gangguan Tidur pada Mahasiswa Preklinik,” Damianus Journal of Medicine, vol. 22, no. 3, pp. 225–231, Dec. 2023, doi: https://doi.org/10.25170/djm.v22i3.3610.
B. Satrio, A. F. Rochim, and D. M. K. Nugraheni, “Mental health consultation information system using natural language processing based on expert system with forward chaining method,” AIP Conf Proc, vol. 2865, no. 1, p. 050004, Dec. 2023, doi: 10.1063/5.0183789.
A. S. Zahira, P. N. Agustina, K. C. Satyafebrianti, R. A. Arbani, and H. Fahma, “Peran AI dalam Pemahaman dan Optimalisasi Kesehatan Mental pada Masyarakat,” Prosiding Seminar Nasional COSMIC Kedokteran, vol. 3, pp. 112–118, Jan. 2025, [Online]. Available: https://prosidingcosmic.fk.uwks.ac.id/index.php/cosmic/article/view/75
C. A. Khairan and M. S. Habib, “Chatbot AI dalam Identifikasi Awal Gangguan Kesehatan Mental di Indonesia: Tantangan dan Prospek,” Jurnal Empati, vol. 13, no. 6, pp. 498–508, Dec. 2025, doi: 10.14710/empati.2024.47903.
P. Arjanto and F. F. W. Senduk, “Literature Review on the Double-Edged Sword of AI in Mental Health: A Deep Dive into ChatGPT’s Capabilities and Limitations,” Journal of Community Mental Health and Public Policy, vol. 6, no. 2, pp. 67–76, Apr. 2024, doi: 10.51602/cmhp.v6i2.144.
I. Nurhafiyah and H. Marcos, “Sistem Pakar Diagnosis Kesehatan Mental pada Mahasiswa Universitas AMIKOM Purwokerto,” KOMPUTA : Jurnal Ilmiah Komputer dan Informatika, vol. 12, no. 1, pp. 49–56, Apr. 2023.
B. Kelana, A. R. Qodri, and S. Muruliza, “Desain Chatbot Layanan Daring Kesehatan Mental yang Sesuai Persepsi dan Kepuasan Generasi Z,” Jurnal Sistem Komputer dan Keceerdasan Buatan, vol. 8, no. 1, pp. 18–26, 2024, doi: https://doi.org/10.47970/siskom-kb.v7i1.540.
R. R. Hidayat, M. Fikry, and Yusra, “Chatbot Deteksi Awal Gangguan Kecemasan Menggunakan Dialogflow,” Jurnal Teknologi Terpadu, vol. 11, no. 2, Oct. 2023.
S. P. Afrisia, F. M. Hana, and W. C. Wahyudin, “Implementasi Metode Long Short Term Memory (LSTM) pada Chatbot Kesehatan Mental Mahasiswa,” Sainteks, vol. 21, no. 2, p. 107, Oct. 2024, doi: 10.30595/sainteks.v21i2.23869.
I. D. Raharjo and E. R. Subhiyakto, “Implementing Long Short Term Memory (LSTM) in Chatbots for Multi Usaha Raya,” Advance Sustainable Science, Engineering and Technology, vol. 6, no. 4, Aug. 2024, doi: 10.26877/asset.v6i4.934.
S. Widodo, D. Setiawan, T. Ridwan, and R. Ambari, “Perancangan Deteksi Emosi Manusia berdasarkan Ekspresi Wajah Menggunakan Algoritma VGG16,” Syntax : Jurnal Informatika, vol. 11, pp. 1–12, Mar. 2022, doi: 10.35706/syji.v11i01.6594.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Pengembangan Chatbot Kesehatan Mental Berbasis Web Menggunakan Model Long Short-Term Memory (LSTM)
Pages: 320-331
Copyright (c) 2025 Akbar Ilham Ardin, Abu Salam

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).





















