Leveraging BiLSTM for Deep Learning-Based Mental Health Chatbots
DOI:
https://doi.org/10.33474/infotron.v5i1.23242Keywords:
Chatbots, Mental Health, BiLSTM, Deep Learning, ClassificationAbstract
The high prevalence of mental health issues and limited access to professional information and support have driven the search for innovative solutions. One promising approach is the development of chatbot systems that provide quick and accessible mental health information. This study evaluates the performance of the Bidirectional Long Short-Term Memory (BiLSTM) algorithm in identifying and classifying user inputs within a mental health chatbot system. BiLSTM is chosen for its ability to process sequential data in both directions, allowing it to capture context more effectively than unidirectional models and better understand user intent. Deep learning methods like BiLSTM have also demonstrated higher accuracy compared to traditional machine learning models. This study focuses solely on BiLSTM to evaluate its performance in this context. The mental health dataset used in this study was sourced from previous research published on the GitHub platform and contains 100 classes of mental health-related questions and statements. This dataset was used to train the BiLSTM model to recognize user intent and generate relevant responses. The model achieved 98% accuracy on the training data. For evaluation on the test set, a confusion matrix was used, yielding an accuracy of 82%. The chatbot is implemented as a web-based application using a Python framework and is designed to provide users with insights and knowledge through text-based interactions. These results highlight the potential of the BiLSTM-based chatbot system to deliver effective and efficient mental health information services
References
F. Anwar and P. Julia, “Analisis Strategi Pembinaan Kesehatan Mental Oleh Guru Pengasuh Sekolah Berasrama Di Aceh Besar Pada Masa Pandemi,” J. Edukasi J. Bimbing. Konseling, vol. 7, no. 1, pp. 64–83, 2021.
I. A. Ridlo, “Pandemi COVID-19 dan Tantangan Kebijakan Kesehatan Mental di Indonesia,” Insa. J. Psikol. dan Kesehat. Ment., vol. 5, no. 2, p. 162, 2020, doi: 10.20473/jpkm.v5i22020.162-171.
Alini and L. N. Meisyalla, “Gambaran Kesehatan Mental Remaja SMPN Bangkinang Kota Kabupaten Kampar,” J. Ners, vol. 6, no. 23, pp. 80–85, 2022, [Online]. Available: http://journal.universitaspahlawan.ac.id/index.php/ners
C. T. Setiawan, S. G. Sijabat, Ervan, and Habibi, “Menjembatani Kesenjangan dalam Perawatan Kesehatan Mental: Pendekatan Baru untuk Diagnosis, Pengobatan, dan Pengurangan Stigma,” J. Multidisiplin West Sci., vol. 2, no. 08, pp. 660–667, 2023, doi: 10.58812/jmws.v2i08.579.
H. D. Kurniawan and A. L. Dwi, “Upaya Meningkatkan Kesehatan Mental Di Kalangan Remaja,” J. Abdi Masy., vol. 2, no. 2, pp. 564–568, 2024.
M. Fauzan, M. P. Wicaksana, and P. G. Rahardandi, “Literatur Review Penggunaan Chatbot Untuk Layanan Informasi,” vol. 4, pp. 8316–8323, 2024.
M. E. Rianto and A. Furqon, “Impelementasi AI Chatbot Sebagai Support Assistant Website Universitas Nurul Jadid Menggunakan Algoritma BiLSTM”.
Y. C. Lee, Y. Cui, J. Jamieson, W. Fu, and N. Yamashita, “Exploring Effects of Chatbot-based Social Contact on Reducing Mental Illness Stigma,” Conf. Hum. Factors Comput. Syst. - Proc., no. April, 2023, doi: 10.1145/3544548.3581384.
M. Casu, S. Triscari, S. Battiato, L. Guarnera, and P. Caponnetto, “AI Chatbots for Mental Health: A Scoping Review of Effectiveness, Feasibility, and Applications,” Appl. Sci., vol. 14, no. 13, 2024, doi: 10.3390/app14135889.
M. C. Klos, M. Escoredo, A. Joerin, V. N. Lemos, M. Rauws, and E. L. Bunge, “Artificial intelligence⇓based chatbot for anxiety and depression in university students: Pilot randomized controlled trial,” JMIR Form. Res., vol. 5, no. 8, 2021, doi: 10.2196/20678.
M. Ferian, R. Akbari, B. Rahayudi, and L. Muflikhah, “Implementasi Deep Learning menggunakan Algoritma EfficientDet untuk Sistem Deteksi Kelayakan Penerima Bantuan Langsung Tunai berdasarkan Citra Rumah di Wilayah Kabupaten Kediri,” J. Pengemb. Teknol. Inf. dan Ilmu Komput., vol. 7, no. 4, pp. 1817–1825, 2023.
M. H. Chatbot, S. P. Afrisia, F. M. Hana, and W. C. Wahyudin, “Implementasi Metode Long Short Term Memory ( LSTM ) pada Chatbot Kesehatan Mental Mahasiswa,” vol. 21, no. 2, pp. 107–116, 2024, doi: 10.30595/sainteks.v21i2.23869.
D. R. Alghifari, M. Edi, and L. Firmansyah, “Implementasi Bidirectional LSTM untuk Analisis Sentimen Terhadap Layanan Grab Indonesia,” J. Manaj. Inform., vol. 12, no. 2, pp. 89–99, 2022, doi: 10.34010/jamika.v12i2.7764.
P. Anki and A. Bustamam, “Measuring the accuracy of LSTM and BiLSTM models in the application of artificial intelligence by applying chatbot programme,” Indones. J. Electr. Eng. Comput. Sci., vol. 23, no. 1, pp. 197–205, 2021, doi: 10.11591/ijeecs.v23.i1.pp197-205.
F. Zakariya, J. Zeniarja, and S. Winarno, “Pengembangan Chatbot Kesehatan Mental Menggunakan Algoritma Long Short-Term Memory,” J. Media Inform. Budidarma, vol. 8, no. 1, p. 251, 2024, doi: 10.30865/mib.v8i1.7177.
Y. Caesar, I. Sabastian, A. Kindarto, and A. Fathurrohman, “Analisis Sentiment Masyarakat Terhadap Clash of Champions Ruang Guru Menggunakan Metode Support Vector Machine ( SVM ),” pp. 820–838, 2024.
M. A. C, “Analisis Sentimen pada Ulasan Penyedia Layanan Sentiment Analysis on Service Provider Reviews Using the C4 . 5 Algorithm,” vol. 6, no. 2, pp. 1–5, 2023.
K. Setiadi, “Komputa : Jurnal Ilmiah Komputer dan Informatika Shopeefood Pada Media Sosial Twitter Menggunakan Algoritma Naive Bayes dan Support Vector Machine ( SVM ) Komputa : Jurnal Ilmiah Komputer dan Informatika,” vol. 12, no. 1, pp. 29–38, 2023.
Aripin, Steven Adi Santoso, and Hanny Haryanto, “Mengoptimalkan Akurasi pada Klasifikasi Emosi Majemuk Berdasarkan Semantik Kalimat Menggunakan XLM-RoBERTa,” J. Nas. Tek. Elektro dan Teknol. Inf., vol. 12, no. 1, pp. 29–36, 2023, doi: 10.22146/jnteti.v12i1.6084.
F. A. Oktavirahani and R. Maharesi, “Implementasi Algoritma Decision Tree Cart Untuk Merekomendasikan Ukuran Baju,” JURIKOM (Jurnal Ris. Komputer), vol. 9, no. 1, p. 138, 2022, doi: 10.30865/jurikom.v9i1.3838.
L. Augustyniak, T. Kajdanowicz, and P. Kazienko, “Aspect detection using word and char embeddings with (Bi) LSTM and CRF,” Proc. - IEEE 2nd Int. Conf. Artif. Intell. Knowl. Eng. AIKE 2019, no. August, pp. 43–50, 2019, doi: 10.1109/AIKE.2019.00016.
E. Subowo, F. Adi Artanto, I. Putri, and W. Umaedi, “Algoritma Bidirectional Long Short Term Memory untuk Analisis Sentimen Berbasis Aspek pada Aplikasi Belanja Online dengan Cicilan,” J. Fasilkom, vol. 12, no. 2, pp. 132–140, 2022, doi: 10.37859/jf.v12i2.3759.
D. I. Puteri, “Implementasi Long Short Term Memory (LSTM) dan Bidirectional Long Short Term Memory (BiLSTM) Dalam Prediksi Harga Saham Syariah,” Euler J. Ilm. Mat. Sains dan Teknol., vol. 11, no. 1, pp. 35–43, 2023, doi: 10.34312/euler.v11i1.19791.
A. Nurdin, B. Anggo Seno Aji, A. Bustamin, and Z. Abidin, “Perbandingan Kinerja Word Embedding Word2Vec, Glove, Dan Fasttext Pada Klasifikasi Teks,” J. Tekno Kompak, vol. 14, no. 2, p. 74, 2020, doi: 10.33365/jtk.v14i2.732.
R. Faurina, M. J. Gazali, and I. D. A. Herani, “Implementasi Deep Feed-Forward Neural Network pada Perancangan Chatbot Berbasis Web di UPPIK RSUD M. YUNUS,” Komputika J. Sist. Komput., vol. 12, no. 2, pp. 11–20, 2023, doi: 10.34010/komputika.v12i2.8914.
D. P. Sidik, F. Utaminingrum, and L. Muflikhah, “Penggunaan Variasi Model pada Arsitektur EfficientNetV2 untuk Prediksi Sel Kanker Serviks,” … Teknol. Inf. dan Ilmu …, vol. 7, no. 5, pp. 2116–2121, 2023, [Online]. Available: https://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/12656
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Nur Afnis Agustina, Abd. Charis Fauzan, Harliana Harliana

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.


