Project Overview
This project prepares a public student survey for predictive modeling and trains a logistic regression model to predict how dependent a student is on AI, then looks at which factors track most closely with burnout.
The data is the AI Impact on Students dataset on Kaggle (CC0, public domain): student survey records with demographic, study, and AI usage information.
How It Works
Cleaning. Duplicate rows and rows with missing values are removed, and year of study is mapped from text to an ordinal number.
Target. Perceived AI dependency, originally a 1 to 10 scale, is simplified into three classes: Low (1-3), Medium (4-7), and High (8-10). The 3-class target is more stable than the original 10 levels, and a validation check fails fast if any value is left unmapped.
Features. Year of study, weekly GenAI hours (log transformed), traditional study hours, exam anxiety, skill retention score, and institutional AI policy (one-hot encoded).
Model. A stratified train/test split, MinMaxScaler on numeric features, and logistic regression.
Results
- Weekly GenAI hours are the strongest burnout signal (r = 0.47), ahead of every other factor measured.
- Self-reported AI dependency is second (r = 0.37).
- Exam anxiety and year of study matter less (r = 0.16 each).
- Study hours, GPA, and skill retention are only weakly related (r between −0.14 and −0.06).
- The model predicts a student's AI dependency level about 68% of the time, compared to 53% for guessing the most common level every time. That's a meaningful improvement, not a huge one: useful as a starting signal, not a definitive diagnosis.
Testing
Automated tests check that preprocessing produces its output and applies the year mapping, that invalid target values raise a clear error, and that the training pipeline fits and returns valid metrics.
GitHub Actions runs the suite on a clean Ubuntu VM on every push and pull request to main.
Scope & Next Steps
- Rows with missing values are dropped rather than imputed.
- Evaluation uses one train/test split. Cross-validation is the next addition.
- Logistic regression is a strong baseline, not the result of a model search.
- Planned: save the trained model with a simple inference script, and add schema checks for the dataset's columns.
Tech stack: Python, pandas, NumPy, scikit-learn, Matplotlib, GitHub Actions