PEARC25 · NSF LCCF Advanced Computing Student Challenge
Predicting Student Stress Levels from Psychological, Physical, Environmental, Academic and Social Factors
Dumisani Chikomo · Berea College
Computation on TACC Stampede3 · Summer 2025
Abstract
Student stress is common, and support services usually find out about it late. Using survey data from 1,100 students across 20 features, I trained and compared six classifiers to sort students into low, medium and high stress. With 5-fold stratified cross-validation and grid-search tuning, the best models reached 88.2% accuracy (macro F1 0.88) on a held-out test set of 220 students. A simple logistic regression matched a tuned random forest, which suggests the signal is largely linear. Bullying, future career concerns, anxiety and depression had the strongest correlations with stress, while the random forest leaned most on blood pressure, sleep quality and basic needs.
01Research question
Can a student's stress level be predicted from information a college could realistically collect, and which factors carry the most signal? A reliable early-warning model would let counselors and advisors reach out before stress turns into burnout.
02Data
I used the Student Stress Factors dataset (Kaggle): 1,100 students, 20 numeric features and a 3-class target, stress_level (0 = low, 1 = medium, 2 = high). The classes are close to balanced (373 / 358 / 369), and the data has no missing values or duplicate rows.
Table 1. Feature groups used as model inputs.
| Group | Features |
|---|---|
| Psychological | anxiety level, self-esteem, mental health history, depression |
| Physical | headache, blood pressure, sleep quality, breathing problems |
| Environmental | noise level, living conditions, safety, basic needs |
| Academic | academic performance, study load, teacher-student relationship |
| Social | future career concerns, social support, peer pressure, extracurricular activities, bullying |

03Methods
- Exploratory analysis: Pearson correlations with the target, a full correlation heatmap, and per-class distributions of the top features.
- Preprocessing: stratified 80/20 train/test split (880 / 220), then standardization fitted on the training set only.
- Model comparison: logistic regression, decision tree, random forest, SVM (RBF), k-nearest neighbors and gradient boosting, each scored with 5-fold stratified cross-validation.
- Tuning: grid search over 108 random forest configurations and 32 SVM configurations (5 folds each).
- Evaluation: accuracy and weighted F1 on the untouched test set, plus per-class precision and recall and a confusion matrix.
The best random forest used 50 trees with a maximum depth of 10 (cross-validated accuracy 88.5%). Work ran in Python with pandas, NumPy, scikit-learn, matplotlib and seaborn, in Jupyter on TACC's Stampede3 supercomputer.
Table 2. 5-fold cross-validated accuracy on the training set, before tuning (mean ± standard deviation, in percentage points).
| Model | Mean accuracy | ± SD |
|---|---|---|
| Gradient Boosting | 88.1% | 2.1 |
| Decision Tree | 88.0% | 3.5 |
| Logistic Regression | 87.7% | 2.8 |
| Random Forest | 87.3% | 2.5 |
| SVM (RBF) | 86.7% | 2.8 |
| K-Nearest Neighbors | 86.4% | 3.8 |
04Results
On the held-out test set, logistic regression and the tuned random forest tied at 88.2% accuracy. Gradient boosting followed at 87.3%. Tuning helped the random forest in cross-validation, but the tuned SVM generalized worst (84.5%).
Table 3. Test-set performance (220 students).
| Model | Accuracy | F1 (weighted) |
|---|---|---|
| Logistic Regression | 88.2% | 0.882 |
| Random Forest (tuned) | 88.2% | 0.881 |
| Gradient Boosting | 87.3% | 0.872 |
| K-Nearest Neighbors | 85.0% | 0.850 |
| SVM (tuned) | 84.5% | 0.847 |

Table 4. Per-class results for the tuned random forest.
| Class | Precision | Recall | F1 | Students |
|---|---|---|---|---|
| Low (0) | 0.90 | 0.82 | 0.86 | 74 |
| Medium (1) | 0.89 | 0.92 | 0.90 | 72 |
| High (2) | 0.86 | 0.91 | 0.88 | 74 |

05Which factors matter
Two different questions give two different lists. Asking which features move with stress (correlation), the strongest are bullying (r = 0.75), future career concerns (0.74), anxiety (0.74), depression (0.73) and headaches (0.71). Asking which features the random forest relies on to separate classes, the top three are blood pressure, sleep quality and basic needs.
The gap is expected: many features are correlated with each other, so the model can lean on one and treat the rest as redundant. Neither list shows cause and effect.


06Limitations
- One public dataset of self-reported survey answers; results may not transfer to a specific college without retraining.
- A 220-student test set means a single misclassification moves accuracy by about 0.5 points, so the top models are effectively tied.
- Correlation and feature importance describe patterns in the data, not causes.
- Predicting stress about individuals raises privacy and consent questions that any real deployment would need to address first.
07Conclusion and next steps
Stress level can be predicted from routine survey data with about 88% accuracy, and a simple, explainable logistic regression does as well as a tuned ensemble. Next steps are SHAP values to explain individual predictions, validation on a more diverse student population, and a student-facing tool. That last step became my Class-Life Balance Optimizer.
Cite
Chikomo, D. (2025). Predicting student stress levels from psychological, physical, environmental, academic and social factors. PEARC25, NSF LCCF Advanced Computing Student Challenge.