"Your habits today are your grades tomorrow. Let the data prove it."
The Student Grade Predictor is a next-generation Academic Intelligence Engine โ a production-grade Streamlit application powered by a Random Forest Regressor. It forecasts a student's final exam score by analyzing 20+ variables spanning academic habits, lifestyle patterns, and โ uniquely โ AI tool usage behavior.
Whether you're an educator identifying at-risk students, a student optimizing your study strategy, or an analyst researching modern learning patterns โ this tool delivers data-driven academic insights wrapped in a premium glassmorphism UI.
| Grade Tier | Score Range | Classification |
|---|---|---|
| ๐ Excellent | 85 โ 100 | TOP PERFORMER |
| โ Good | 65 โ 84 | ON TRACK |
| 0 โ 64 | INTERVENTION NEEDED |
|
Leverages a Random Forest Regressor ๐ณ to predict final exam scores by modeling complex non-linear relationships across 20+ academic and lifestyle variables. |
Tracks the impact of ChatGPT, Gemini, and Claude on learning outcomes โ evaluating AI Dependency, Ethics Score, and Prompting Frequency to distinguish healthy assistance from over-reliance. |
|
Covers Academic Metrics (Study Hours, Attendance, Past GPA), Lifestyle Factors (Sleep Quality, Social Media), and real-time what-if sliders for instant scenario analysis. |
Translucent containers, blur effects, animated progress bars, and color-coded performance cards โ all delivered inside Streamlit for a native app experience. |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ GRADE PREDICTOR โ ML PIPELINE โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ USER INPUT
โโ Academic History ยท Lifestyle Habits ยท AI Tool Usage Patterns
โ
โผ
๐ค AI USAGE ANALYSIS
โโ Dependency Score ยท Ethics Rating ยท Prompting Frequency
โ
โผ
๐ง PREPROCESSING
โโ Label Encoding ยท Feature Scaling ยท Distribution Alignment
โ
โผ
๐ณ RANDOM FOREST REGRESSOR
โโ Ensemble of decision trees โ averaged score prediction
โ
โผ
๐ PREDICTION OUTPUT
โโ Final Score (0โ100) + Performance Tier + Visual Feedback Card
| Metric | Value |
|---|---|
| ๐ณ Algorithm | Random Forest Regressor |
| ๐ฏ Rยฒ Score | 0.8560 |
| ๐ Mean Absolute Error | 4.1064 |
| ๐ Mean Squared Error | 26.7775 |
| ๐ข Input Features | 20+ variables |
| โก Inference | Real-time (< 200ms) |
Key Predictor Importance (Random Forest Feature Weights)
Past Grades โโโโโโโโโโโโโโโโโโโโโ ~92%
Study Consistency โโโโโโโโโโโโโโโโโโโโโ ~88%
AI Ethics Score โโโโโโโโโโโโโโโโโโโโโ ~81%
Sleep Quality โโโโโโโโโโโโโโโโโโโโโ ~76%
Attendance Rate โโโโโโโโโโโโโโโโโโโโโ ~72%
Social Media Usage โโโโโโโโโโโโโโโโโโโโโ ~65%
# 1๏ธโฃ Clone the repository
git clone <your-repo-url>
cd student-grade-predictor
# 2๏ธโฃ Create & activate virtual environment
python -m venv venv
# Windows
.\venv\Scripts\activate
# macOS/Linux
source venv/bin/activate
# 3๏ธโฃ Install dependencies
pip install -r requirements.txt
# 4๏ธโฃ Launch ๐
streamlit run app.pyTip: The app will auto-open at
http://localhost:8501โ no browser config needed.
All contributions are welcome โ whether it's improving model accuracy, adding new feature variables, or pushing the UI further.
1. Fork the repository
2. Create your feature branch โ git checkout -b feature/SleepPatternAnalysis
3. Commit your changes โ git commit -m "Add: Sleep cycle impact modeling"
4. Push to branch โ git push origin feature/SleepPatternAnalysis
5. Open a Pull Request โ describe your changes clearly

