This project focuses on analyzing and predicting depression among students using machine learning. By evaluating various factors such as academic performance, lifestyle, and social behavior, the model aims to identify students who may be at risk of depression, promoting early intervention and mental well-being.
- Predict depression levels in students (e.g., low, moderate, high)
- Identify key factors influencing student mental health
- Create visual insights for understanding trends and patterns
- Promote awareness and data-driven support strategies
The dataset includes anonymized information such as:
- π Academic performance
- π€ Sleep habits
- π₯ Social activities
- π‘ Family background
- π§ Mental health survey responses
- π Lifestyle choices
Note: Dataset is either self-collected via Google Forms or sourced from open repositories like Kaggle.
-
Data Preprocessing
- Handling missing values
- Label encoding & normalization
-
Exploratory Data Analysis (EDA)
- Correlation matrix
- Distribution plots
- Feature importance
-
Model Building
- Logistic Regression
- Random Forest
- Support Vector Machine
- Naive Bayes
-
Model Evaluation
- Accuracy
- Precision & Recall
- F1 Score
- Confusion Matrix
- Python π
- Pandas, NumPy
- Scikit-learn
- Matplotlib, Seaborn
- Jupyter Notebook
- Depression distribution by gender, age, sleep, study hours, etc.
- Heatmaps to find correlations
- Bar charts to visualize classification results
Plots are included in the notebook to explain patterns and model outputs.
- Achieved 82.83% accuracy using Random Forest
- Identified strong predictors like sleep hours, exam pressure, and screen time
- Provided actionable insights for early intervention
Student-Depression-Analysis/ β βββ dataset/ # CSV file or data source βββ notebooks/ # Jupyter Notebooks for EDA & modeling βββ models/ # Saved model files (optional) βββ images/ # Visualization outputs βββ README.md # Project overview βββ requirements.txt # Python dependencies
- Deploy the model as a web app using Streamlit or Flask
- Collect real-time data from institutions
- Expand features: include social media behavior & anxiety indicators
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- Mental Health Awareness groups
- Public datasets and survey participants
- Tools and resources from the open-source community