Mental Health Chatbot Application on Artificial Intelligence (AI) for Student Stress Detection Using Mobile-Based Naïve Bayes Algorithm
Open Access
- 30 May 2025
- journal article
- Published by Universitas Negeri Semarang in Scientific Journal of Informatics
- Vol. 12 (2) , 199-210
Abstract
Purpose: This study aims to design and evaluate a chatbot-based artificial intelligence system to identify stress levels in students using the Naïve Bayes classification method. With increasing mental health concerns among students, early stress detection is considered crucial for timely intervention Methods: This study proposes an AI-based chatbot system to detect student stress levels using a comparative approach between Naïve Bayes and Support Vector Machine (SVM) algorithms. A Kaggle dataset with 15 psychological and academic indicators was preprocessed and balanced using SMOTE. Naïve Bayes showed higher accuracy (90%) than SVM (89%). The trained model was deployed via Flask with Ngrok tunneling and integrated into a Flutter mobile app connected to the Gemini AI API for real-time stress screening. This research offers a practical and scalable solution for early mental health detection in students through intelligent chatbot interaction. Result: The findings show that the Naïve Bayes model achieves a classification accuracy of 90%, slightly surpassing the SVM model, which records an accuracy of 89%. Evaluation through ROC and AUC metrics supports the reliability of Naïve Bayes in detecting stress levels. The integrated chatbot offers a responsive and engaging platform for preliminary mental health assessments. Novelty: This research presents a unique contribution by combining AI-driven stress detection with a real-time chatbot interface, offering an accessible and scalable approach to student mental health support. The integration of machine learning models with conversational AI provides an innovative solution for early intervention. Future developments may involve deep learning and more diverse psychological inputs to further improve accuracy and effectiveness.Keywords
This publication has 21 references indexed in Scilit:
- A Multimodal Perceived Stress Classification Framework Using Wearable Physiological SensorsIEEE Open Journal of the Computer Society, 2025
- Integrating Multimodal Affective Signals for Stress Detection from Audio-Visual Data2024
- The Impact of Balanced Data Techniques on Classification Model PerformanceScientific Journal of Informatics, 2024
- Analisis Risiko Kredit Perbankan Menggunakan Algoritma K-Nearest Neighbor dan Nearest Weighted K-Nearest NeighborIndonesian Journal of Applied Statistics, 2023
- Analysis of Intrusion Detection Performance by Smoothing Factor of Gaussian NB Model Using Modified NSL-KDD Dataset2022
- SPlit: An Optimal Method for Data SplittingTechnometrics, 2021
- Machine Learning and Natural Language Processing in Mental Health: Systematic ReviewJournal of Medical Internet Research, 2021
- Influence of Data Splitting on Performance of Machine Learning Models in Prediction of Shear Strength of SoilMathematical Problems in Engineering, 2021
- Predictive Analysis of Student Stress Level Using Naïve Bayesian Classification Algorithm2020
- Cross-Validation for Imbalanced Datasets: Avoiding Overoptimistic and Overfitting Approaches [Research Frontier]IEEE Computational Intelligence Magazine, 2018