The Identification of Student Stress Levels Using the XGBoost Algorithm with Psychological, Physical, Academic, and Environmental Data

Authors

  • Muhamad Isa Firdaus Djuanda University
  • Hilmy Aliy Andra Putra Djuanda University
  • Muhammad Encep Djuanda University

DOI:

10.51519/journalcisa.v7i3.785

Keywords:

Stress, XGBoost, Machine Learning, Classification, Feature Importance

Abstract

Student stress is a multidimensional problem influenced by psychological, physical, academic, and environmental factors. This study aims to identify student stress levels using the Extreme Gradient Boosting (XGBoost) algorithm, evaluate its classification performance, and determine the most influential variables. The study used the StressLevelDataset containing 1,100 observations, 20 predictor variables, and one target variable representing low, moderate, and high stress. The research stages followed data collection, data understanding, preprocessing, stratified data splitting, baseline modeling, Grid Search hyperparameter tuning, evaluation, and feature importance analysis. The tuned XGBoost model achieved 86.82% accuracy, 86.94% precision, 86.85% recall, and 86.79% F1-score on the test set. Hyperparameter tuning did not materially increase test accuracy, but reduced the training-test accuracy gap from 13.18 to 6.82 percentage points, indicating improved generalization and reduced overfitting. Feature importance identified sleep_quality (32.6%), academic_performance (29.8%), and blood_pressure (19.2%) as the three most influential variables. The results demonstrate that XGBoost can provide a stable data-driven approach for identifying student stress levels.

References

H. Selye, “The Stress Of Life,” 1976.

R. de Filippis and A. Al Foysal, “Comprehensive analysis of stress factors affecting students: a machine learning approach,” Discov. Artif. Intell., vol. 4, no. 1, 2024.

T. Chen and C. Guestrin, “XGBoost: A scalable tree boosting system,” Proc. ACM SIGKDD Int. Conf. Knowl. Discov. Data Min., vol. 13-17-Augu, pp. 785–794, 2016.

K. Yeler and S. Sürücü, “Ara?t?rma Makalesi,” pp. 210–214, 2025.

S. Gedam, S. Dutta, and R. Jha, “Analyzing mental stress in Indian students through advanced machine learning and wearable technologies,” Sci. Rep., vol. 15, no. 1, pp. 1–18, 2025.

V. Doma, A. A. Almisreb, E. Yaman, S. Amanzholova, and N. Ismail, “Classification of Student Stress Levels Using a Hybrid Machine Learning Model,” pp. 77–104, 2025.

S. D. Amalia, M. A. Barata, and P. E. Yuwita, “Optimization of Random Forest Algorithm with Backward Elimination Method in Classification of Academic Stress Levels,” J. Appl. Informatics Comput., vol. 9, no. 3, pp. 633–641, 2025.

C. Pete et al., “Crisp-Dm 1.0,” Cris. Consort., p. 76, 2000.

C. Schröer, F. Kruse, and J. M. Gómez, “A systematic literature review on applying CRISP-DM process model,” Procedia Comput. Sci., vol. 181, no. 2019, pp. 526–534, 2021.

S. García, S. Ramírez-Gallego, J. Luengo, J. M. Benítez, and F. Herrera, “Big data preprocessing: methods and prospects,” Big Data Anal., vol. 1, no. 1, pp. 1–22, 2016.

R. Kohavi and G. H. John, “Automatic Parameter Selection by Minimizing Estimated Error,” Proc. 12th Int. Conf. Mach. Learn. ICML 1995, pp. 304–312, 1995.

G. James, D. Witten, T. Hastie, and R. Tibshirani, Novel Approaches for Designing 5-O-Ester Prodrugs of 3-Azido-2,3-dideoxythymidine (AZT)., vol. 7, no. 10. 2013.

Downloads

Published

2025-09-18

How to Cite

Firdaus, M. I., Hilmy Aliy Andra Putra, & Muhammad Encep. (2025). The Identification of Student Stress Levels Using the XGBoost Algorithm with Psychological, Physical, Academic, and Environmental Data . Journal of Computer and Information Systems Ampera, 7(3), 173–182. https://doi.org/10.51519/journalcisa.v7i3.785