📘 Machine Learning Pipeline
How a set of study habits becomes a predicted exam score.
1
Data Collection
- Student academic & behavioural dataset (8,000 records, 18 columns)
2
Preprocessing
- Handling missing values
- Feature selection
- One-hot encoding of categorical columns, reference level dropped
3
Feature Engineering
- Study_Efficiency = Hours_Studied / (Stress_Level + 1)
- Sleep_Study_Balance = Sleep_Hours × Hours_Studied
- Anxiety_Attendance = Exam_Anxiety_Score × Attendance
- Academic_Consistency = Previous_GPA / Attendance
- Productivity_Score = Hours_Studied + Attendance/10 + Sleep_Hours
- Stress_per_Study_Hour = Stress_Level / (Hours_Studied + 1)
4
Model Training
- XGBoost Regressor (best performance) — 200 trees, reg:squarederror
- Random Forest (comparison model)
5
Evaluation
- MAE, RMSE metrics
- Model selection based on accuracy
6
Deployment
- Trained booster exported to JSON at build time
- Inference reimplemented in TypeScript and verified bit-exact against the Python model
- Static site — the model runs in your browser, no prediction server involved
Note on the prediction target. The model estimates a final exam score on a 0–100 scale from behavioural and academic inputs. It describes patterns in the training data — it is not a guarantee of any individual result.