Applied ML
Predicting churn with ML and DL
Compared classical models with an LSTM and MLP using early activity to predict churn in a language-learning dataset.
- 0.920 reported LSTM test ROC AUC
- 2,580 users in the feature table
- ParseSLAM session records
- PrepareFirst 14 days of features and churn labels
- TrainClassical baselines, MLP, and LSTM
- EvaluatePrecision, recall, F1, and ROC AUC
Problem and target
The thesis explores whether early usage can flag a learner at risk of disengaging. The notebooks parse the English–Spanish SLAM training file, and define churn as no observed valid session after day 14. That definition measures activity within the dataset’s observation window.
Preprocessing and features
I parsed session metadata, converted days and durations to numeric values, and filtered invalid durations and outliers. The feature table aggregates days 1–14 into activity counts, total and average time, session type, and client usage. The saved notebook shows 2,580 labeled users.
Evaluation and interpretation
The repository compares models including logistic regression, random forest, gradient boosting, MLP, and LSTM. In the saved comparison, LSTM test F1 is 0.889 and ROC AUC is 0.920. Precision, recall, and the confusion matrix show the error tradeoff that accuracy alone would hide when the churn classes differ in size.
Limitations and next steps
These are results from the project’s held-out test data. Before using scores for interventions, I would validate on later cohorts, check calibration and error rates by cohort, and use permutation importance on a baseline to see which features remain useful out of sample.