Journal of Universal Computer Science (Sep 2024)

Smart healthcare: developing a pattern to predict the stress and anxiety among university students using machine learning technology

  • Farhad Lotfi,
  • Branka Rodić,
  • Aleksandra Labus,
  • Zorica Bogdanović

DOI
https://doi.org/10.3897/jucs.116174
Journal volume & issue
Vol. 30, no. 10
pp. 1316 – 1342

Abstract

Read online Read online Read online

Background: Anxiety among students has become a fairly major problem. In the current era, Machine Learning (ML) can be used as a quick technology to predict students' anxiety with the high-level accuracy. Objectives: This research aims to predict university students' anxiety by using supervised learning algorithms with providing pertinent feedback. Methods: A total of 231 students from the University of Belgrade filled out the standard questionnaire called the State-Trait Anxiety Inventory (STAI). In addition, deeper information related to students’ anxiety like physical activity, Grade Point Average (GPA), and smoking cigarettes were collected. The Linear Regression algorithm was chosen to examine STAI using Python.  Results: Linear regression as an appropriate algorithm was exploited for this purpose. The accuracy metric obtained by using the Mean Absolute Error (MAE), was 7.86 for state anxiety and 5.68 for trait anxiety. In addition, the Mean Squared Error (MSE) has also been calculated with state anxiety at 7.80, and trait anxiety at 9.66. Moreover, to find the factor with the highest impact after training, a regression analysis method (LASSO) was used. K-Nearest Neighbour (KNN) algorithm also checked the accuracy of training by overfitting and underfitting. Conclusion: The purpose of this study was the analysis of anxiety factors with the highest impact as well as the analysis of the STAI by linear regression to improve a smart healthcare model by discovering an acceptable output with the highest accuracy.  

Keywords