An intelligent teaching assistant system that understands student queries and generates personalized learning recommendations using semantic embeddings and adaptive progression logic.
This project implements a hybrid AI system that:
- Understands student queries using semantic embeddings (Sentence-BERT)
- Classifies query intent and topic using machine learning
- Predicts difficulty level dynamically
- Models student learning state using historical performance
- Generates personalized next-step recommendations
The system combines NLP-based query understanding with performance-aware adaptive learning.
The system consists of two major components:
- SentenceTransformer (all-MiniLM-L6-v2) for semantic embeddings
- Logistic Regression for:
- Intent classification
- Topic classification
- Rule-based difficulty adjustment
- Student performance analysis from learning logs
- State modeling (quiz score, attempts, confidence)
- Rule-based recommendation engine for:
- Revision
- Advancement
- Continuation
- Semantic query understanding using Sentence-BERT embeddings
- Dual classifier system (Intent + Topic)
- Dynamic difficulty adjustment logic
- Student performance-aware progression system
- Modular and scalable architecture
ai-teaching-assistant/
│
├── app.py
│
├── data/
│ ├── student_queries.csv
│ └── student_learning_logs.csv
│
├── models/
│ ├── __init__.py
│ ├── difficulty_predictor.py
│ ├── intent_classifier.py
│ ├── topic_classifier.py
│ └── embeddings.py
│
├── learning_path/
│ ├── __init__.py
│ ├── student_state.py
│ └── recommendation_policy.py
- User submits a learning query.
- Query is converted into embeddings using Sentence-BERT.
- Intent and topic are predicted using trained classifiers.
- Difficulty level is dynamically adjusted.
- Student performance history is analyzed.
- A personalized learning recommendation is generated.
pip install sentence-transformers scikit-learn pandas
python ai-teaching-assistant/app.py
Query: i dont understand how backpropagation works
Intent: Explanation
Topic: Backpropagation
Difficulty: Intermediate
Next Topic: Backpropagation
Action: Revision
Difficulty Adjustment: Decrease
---