Downloads · 30 days
0
amirsoahil101/MindPulse_AI_Student_Mental_Health_Prediction_Model
MindPulse_AI_Student_Mental_Health_Prediction_Model is a tabular regression model from amirsoahil101. Use it for the tabular regression task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Downloads · 30 days
0
Access
Public
Updated Sep 1, 2026
Repo size
25.7 MB
Likes
0
Public
Click a slice to open those files.
.pkl25.7 MB · 97%
From the Hugging Face model README
MindPulse AI is a Machine Learning-powered full-stack web application that predicts a student's Mental Health Score based on their daily habits (sleep duration, study hours, social media usage, physical activity, etc.).
(Replace this placeholder with your actual UI screenshot path or link)
This project represents a major architectural upgrade in my Machine Learning engineering workflow towards production-ready standards:
| Feature / Step | 🔴 Old Flow | 🟢 New Flow (Upgraded) |
|---|---|---|
| Deployment | Streamlit UI | Render Web Service (FastAPI Backend + HTML/JS Frontend) |
| Preprocessing | Manual Ad-hoc Transformations | Scikit-learn ColumnTransformer (Automated & Leak-free) |
| Model Training | Manual Loops & Ad-hoc Scripts | Integrated ML Pipelines (Pipeline([('prep', ...), ('model', ...)])) |
| API & Validation | Raw JSON / Basic Flask | FastAPI + Pydantic Schema Validation |
| Frontend | Default Streamlit UI | Custom UI (Vanilla HTML5, Modern CSS, JavaScript Fetch API) |
Through this project, I have mastered end-to-end production ML pipelines and modular deployment strategies. Going forward, I will retrofit and upgrade all my legacy ML and Deep Learning (DL) projects with these same features:
.env) to securely manage API keys and backend endpoints.Machine Learning Pipeline (notebook.ipynb):
ColumnTransformer.joblib.Backend API (main.py):
age, study_hours, stress_level, etc.).Frontend (index.html, script.js, style.css):
| Model | Test $R^2$ | Training $R^2$ | MAE | RMSE |
|---|---|---|---|---|
| Linear Regression | 0.7397 | 0.7236 | 0.5361 | 0.6760 |
| Random Forest (Default) | 0.8775 | 0.9808 | 0.3472 | 0.4636 |
| Random Forest (Tuned) | 0.8650 | 0.9547 | 0.3689 | 0.4869 |
.
├── Mental_Health_Model.pkl # Trained Keras Artificial Neural Network (ANN) model
├── notebook.ipynb # Jupyter Notebook (EDA, Preprocessing, ANN Training)
├── Student_Social_Media # Dataset containing audio/speech acoustic features
├── main.py # FastAPI Backend
├── UI.png # UI Screenshot
├── .gitignore # Git ignore file
├── .gitattributes # Git attributes file
├── requirements.txt # Python dependencies
├── style.css # CSS for Streamlit frontend
├── script.js # JavaScript for Streamlit frontend
└── index.html # Streamlit frontend
git clone https://github.com/amirsohail100/MindPulse-AI-Student-Mental-Health-Prediction-Web-App.git
cd MindPulse-AI-Student-Mental-Health-Prediction-Web-App
streamlit run app.py
pip install -r requirements.txt
This project is licensed under the MIT License.
👤 Amir Sohail
MindPulse AI: A production-grade ML web app predicting student mental health scores based on daily lifestyle habits. Features an upgraded workflow: Scikit-learn Pipeline & ColumnTransformer for leak-free training, FastAPI + Pydantic for schema validation, and an interactive HTML/JS frontend live deployed on Render.