Web-Based Mental Health Predicting System Using K-Nearest Neighbors and XGBoost Algorithms
摘要
Problems with mental health are common presently and have been a worry for a long time. Mental health problems, like anxiety, depression, and panic attacks, can be caused by numerous things. Therefore, recognising the start of mental disease is becoming increasingly crucial to maintaining a good life balance. This study uses machine learning to identify any possible mental health disorders in an individual to attain this goal. The investigation employed supervised machine learning to predict mental health status, namely K-Nearest Neighbors (KNN) and XGBoost, with performance evaluation criteria including accuracy, precision, recall, and F1 score. When these two algorithms were compared, it was discovered that XGBoost produced a more effective prediction model, which was then employed to develop a web-based mental health prediction system. The web-based method creates a questionnaire for mental health issues. Based on the user’s responses to the questions, the system will predict his or her mental health status as normal, depression, anxiety, stress, loneliness, or regularity. Every component of the system, including buttons and forms, has been successfully tested using functionality tests. Moreover, the system’s advantages, weaknesses, and future study directions are identified.