Student Stress Level Prediction Based on DASS-42 Questionnaire Using XGBoost Algorithm: A Case Study of Undergraduate Information Technology Education Students
DOI:
https://doi.org/10.25126/jitecs.111831Abstract
Stress among university students negatively impacts their academic progress and mental health. Early detection is crucial for targeted intervention. This research designs and evaluates a machine learning model using the XGBoost algorithm to predict stress among undergraduate students of Information Technology Education at Universitas Brawijaya. Utilizing the CRISP-DM methodology, the study processes data from the DASS-42 questionnaire and academic records. The workflow included data pre-processing to handle missing values and class imbalance, followed by model training and evaluation. Six scenarios tested prediction targets (five-level multi-class and binary ‘Normal’ or ‘Stress’), data handling, and hyperparameter tuning. Results indicate that the binary classification model was significantly superior. The best model, utilizing original data and default parameters, achieved an accuracy of 97.87%. Evaluation proved its reliability, achieving 100% recall for the ‘Stress’ class, ensuring no at-risk cases were missed (0 False Negatives). Feature importance analysis identified Mother’s Education as the dominant predictor. The research output includes a functional dashboard prototype equipped with LIME interpretation for individual case analysis.
Downloads
References
1. Srinath, K.S., Kiran, K., Pranavi, S., Amrutha, M., Shenoy, P.D., Venugopal, K.R.: Prediction of depression, anxiety and stress levels using DASS 42. In: 2022 IEEE 7th International Conference for Convergence in Technology (I2CT), pp. 1–6. Pune, India 2022.
2. L. Rahunathan, G. Arun, P. Ragu, L. S. Satish, and V. N. Srisakthi, “Machine Learning Model for Student Stress Level Prediction,” in 2025 4th OPJU International Technology Conference (OTCON), pp. 1-7, 2025.
3. C. Hammen, “Stress and depression,” Annu. Rev. Clin. Psychol., vol. 1, no. 1, pp. 293-319, 2005.
4. S. A. Sulak and N. Koklu, “Analysis of Depression, Anxiety, Stress Scale (DASS‐42) with methods of data mining,” European Journal of Education, vol. 59, no. 4, p. e12778, 2024.
5. A. Priya, S. Garg, and N. P. Tigga, “Predicting anxiety, depression and stress in modern life using machine learning algorithms,” Procedia Computer Science, vol. 167, pp. 1258-1267, 2020.
6. H. Q. Nguyen, D. D. K. Nguyen, T. D. Le, A. Mai, and K. T. Huynh, “Career path prediction using XGBoost Model and students’ academic results,” CTU Journal of Innovation and Sustainable Development, vol. 15, pp. 62-75, 2023.
7. I. D. Mienye and Y. Sun, “A survey of ensemble learning: Concepts, algorithms, applications, and prospects,” IEEE Access, vol. 10, pp. 99129-99149, 2022.
8. L. Melaku, G. Bulcha, and D. Worku, “The Prevalence and Severity of Depression, Anxiety and Stress... A Cross-Sectional Study,” Psychology Research and Behavior Management, vol. 14, pp. 1-11, 2021.
9. K. T. Sar and B. Kaya, “Diagnosis Heart Attack and Stroke Risk using Machine Learning Algorithms... with LIME,” in 2025 15th International Conference on Advanced Computer Information Technologies (ACIT), pp. 824-827, 2025.
10. P. Chapman et al., CRISP-DM 1.0: Step-by-step data mining guide, SPSS Inc., 2000.
11. W. Du, “Application of improved SMOTE and XGBoost algorithm in the analysis of psychological stress test for college students,” Journal of Electrical and Computer Engineering, vol. 2022, no. 1, p. 2760986, 2022.
12. P. F. Lovibond and S. H. Lovibond, “The structure of negative emotional states: Comparison of the DASS with the Beck Depression and Anxiety Inventories,” Behaviour Research and Therapy, vol. 33, no. 3, pp. 335-343, 1995.
13. D. Muttaqin and S. Ripa, “Psychometric properties of the Indonesian version of the Depression Anxiety Stress Scale,” Psikohumaniora: Jurnal Penelitian Psikologi, vol. 6, no. 1, pp. 61-76, 2021.
14. M. S. N. M. Danuri, R. Abd Rahman, I. Mohamed, and A. Amin, “The improvement of stress level detection in twitter: imbalance classification using SMOTE,” in 2022 IEEE International Conference on Computing (ICOCO), 2022, pp. 294-298.
15. T. Chen and C. Guestrin, “XGBoost: A Scalable Tree Boosting System,” in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 785–794, 2016.
16. O. Rainio, J. Teuho, and R. Klén, “Evaluation metrics and statistical tests for machine learning,” Scientific Reports, vol. 14, no. 1, p. 6086, 2024.
17. D. Valero-Carreras, J. Alcaraz, and M. Landete, “Comparing two SVM models through different metrics based on the confusion matrix,” Computers & Operations Research, vol. 152, p. 106131, 2023.
18. J. Erbani, P. É. Portier, E. Egyed-Zsigmond, and D. Nurbakova, “Confusion matrices: A unified theory,” IEEE Access, 2024.
19. Y. Takefuji, “Beyond XGBoost and SHAP: Unveiling true feature importance,” Journal of Hazardous Materials, vol. 488, p. 137382, 2025.
20. A. Saha et al., “Towards Interpretable Diabetes Prediction: A Comparative Study of Machine Learning Models with Explainable AI using LIME and SHAP,” in 2024 27th International Conference on Computer and Information Technology (ICCIT), 2024, pp. 1564-1569.
21. F. Rodrigues and H. Correia, “Semi-supervised and ensemble learning to predict work-related stress,” Journal of Intelligent Information Systems, vol. 62, no. 1, pp. 77-90, 2024.
22. G. Vos et al., “Ensemble machine learning model trained on a new synthesized dataset generalizes well for stress prediction,” Journal of Biomedical Informatics, vol. 148, p. 104556, 2023.
23. S. S. Shinde and A. S. Ghotkar, “From Questionnaires to Actionable Insights: Machine Learning for Mental Stress Detection,” Engineering, Technology & Applied Science Research, vol. 15, no. 6, pp. 29240-29250, 2025.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Journal of Information Technology and Computer Science

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Creative Common Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
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 a Creative Commons Attribution License that allows others to share the work with an acknowledgement 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 acknowledgement 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 (See The Effect of Open Access).








