AI Tutor for Personalized Learning Recommendations
Personalized study recommendations with explainable AI.
BSCS 7th semester · Artificial Intelligence Lab course project · Project Lead, team of three

Students with the same quiz score can need very different help. Fixed curricula ignore response time, confidence, and prior performance, so a student who guessed correctly and one who truly understood the topic get the same next step. This project turns those learning signals into individual study recommendations.
The app takes quiz inputs and evaluates them with either a rule-based engine or a decision tree classifier. It returns a recommendation, the next topic, a practice count, and a revision flag, explains the reasoning behind each result, and compares both methods in a Streamlit dashboard.
Watch video
Key features
- 01
Rule-based recommendation engine using score thresholds, response time, confidence, and previous score.
- 02
Decision tree training and prediction pipeline for personalized recommendations.
- 03
Explainability output showing the reasoning steps and the decision tree's split path.
- 04
Interactive Plotly dashboards for topic performance, recommendation distribution, score trends, and student-versus-dataset comparison.
- 05
Evaluation module comparing the rule-based engine and the decision tree using standard classification metrics.
- 06
Synthetic dataset generator for model training and experimentation.
Architecture
- 1Streamlit app (app.py)
- 2Input validation and shared thresholds (utils/helpers.py)
- 3Dataset (data/student_scores.csv)
- 4Recommendation engine (run_rules, train_model, run_model)
- 5Recommendation, explanation, charts, and evaluation
- 6Saved model (models/decision_tree.pkl)
Engineering challenges
- Rules, helpers, and the dataset generator could drift apart, so score and time thresholds are centralized in one helper module.
- Overfitting on a small synthetic dataset was reduced with noisy label generation and a maximum tree depth of 4.
- Prediction reliability was improved by saving the trained model, auto-training it if missing, and keeping the feature order fixed between training and prediction.
Lessons learned
- Designing transparent AI that can be explained to a non-technical user instead of a black-box prediction.
- Balancing rule-based logic with machine learning so the system stays interpretable and testable.
- Leading a three-person team, dividing work across the recommendation engine, UI, and documentation.
Results
Completed as the Artificial Intelligence Lab course project at IMCS, University of Sindh, with a written report covering the PEAS framework, methodology, results and limitations. The app compares both methods side by side on accuracy, precision, recall, F1 score and a confusion matrix.