Depression remains a significant global health concern, demanding effective diagnostic tools for timely intervention. This project investigates the utilization of machine learning models for the early detection of depression through the analysis of Electroencephalography (EEG) data. The study aims to develop robust and accurate diagnostic models to discern neurophysiological patterns associated with depressive states.
- Machine Learning Models: Implementation of various algorithms including:
- DecisionTreeClassifier
- KNeighborsClassifier
- Support Vector Classifier
- Support Vector Machine
- Gaussian classifier
- Random forest classifier
- AdaBoost classifier
- Multi-Layer Perceptron
- EEG Data Analysis: Comprehensive preprocessing steps including artifact removal, segmentation, and feature extraction.
- Cross-Validation: Ensuring model performance and generalizability.
data/
: Contains the EEG data used for training and testing.notebooks/
: Jupyter notebooks demonstrating the preprocessing, feature extraction, and model implementation.models/
: Saved machine learning models.results/
: Performance metrics and evaluation results.src/
: Source code for preprocessing, model training, and evaluation.
To install the necessary dependencies for this project, follow these steps:
- Clone the repository:
https://github.com/Manushya-a/DepressionDetectionUsingAI.git
- Navigate to the project directory:
cd DepressionDetectionUsingAI
- Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
- Install the required packages:
pip install -r requirements.txt
To preprocess the EEG data and train the machine learning models, follow these steps:
- Preprocess the EEG data:
python src/preprocess_data.py
- Train the machine learning models:
python src/train_models.py
- Evaluate the models:
python src/evaluate_models.py
The findings of the study demonstrate the efficacy of the selected machine learning models in accurately identifying depressive states based on distinct EEG patterns. The application of cross-validation ensures the reliability of the models in practical scenarios.
This research contributes significantly to the evolving domain of mental health diagnostics, underscoring the potential of machine learning in the early and accurate detection of depression.