Skip to content

Ajisco/Sami-Depression

Repository files navigation

Music Therapy for Depression: AI-Driven Solution

header

📍 Overview

Music Therapy for Depression is a cutting-edge AI application designed to diagnose depression and recommend music therapy solutions. The app leverages machine learning algorithms to classify the severity of depression based on user input and suggests therapeutic music.


📍 Click Here to try app! 🚀


📍 VIDEO DEMO

Sami Demo

📍 Problem Statement

Depression, a common yet serious mood disorder, can lead to various emotional and physical problems. It often goes undiagnosed and untreated, exacerbating its impact. Music therapy, a clinical and evidence-based practice, has proven effective in mood enhancement and stress reduction.


📍 Objective

Our objective is to develop an AI solution capable of diagnosing depression from user inputs, categorizing its severity, and providing music therapy recommendations.


📍 Data

We utilized a dataset in CSV format, sourced from research studies. It was cleaned, wrangled, and prepared for use in our machine learning models.


📍 Skills and Technologies

  • Programming: Python, JavaScript
  • Data Wrangling: Pandas, Numpy
  • Data Analysis and Visualization: Numpy, Stat, Seaborn, Matplotlib
  • Machine Learning / Deep Learning: Tensorflow, Scikit Learn, XGBoost
  • Backend Development: Flask
  • Frontend Development: HTML, CSS, Bootstrap
  • Cloud Deployment: Render, Heroku

📍 Application Structure

The application is structured as follows:

  • static/: Contains static assets like CSS and JavaScript files.
  • templates/: HTML templates for the web interface.
  • Jupyter_Notebook.ipynb: Jupyter notebook with data analysis and model training.
  • app.py: Main Flask application script defining routes and logic.
  • data.csv: Dataset used for training the machine learning model.
  • requirements.txt: Lists all Python libraries required for the project.
  • runtime.txt: Specifies the Python runtime version for the application.

📍 Installation and Setup

Prerequisites

  • Python 3.x
  • Pip (Python package manager)

Installation Steps

  1. Clone the GitHub repository: bash git clone https://github.com/Ajisco/Sami-Depression.git

  2. Navigate to the project directory: bash cd Sami-Depression

  3. Install the required dependencies: bash pip install -r requirements.txt

Running Locally

To run the application locally: bash python app.py

Access the app at http://localhost:5000.


📍 App Features

  1. Symptom input form for diagnosis.
  2. AI-based depression diagnosis and classification.
  3. Option to select a preferred music genre.
  4. Music suggestions based on depression type and genre (using YouTube Music API).
  5. Links to additional information resources.
  6. Compatible with various devices.

📍 DEPLOYMENT 🚀

The application is deployed on Render and can be accessed Here.


📍 Limitations

  1. Limited dataset size may affect generalization.
  2. Slower startup times due to free hosting on Render.
  3. Limited music genres currently available.

📍 Future Improvements

  1. Expand the dataset for better model training.
  2. Add more music genres and refine music selection algorithms.

📍 Open to Collaboration

We invite collaboration. If interested, please:

  • Create a pull request with a detailed explanation.
  • Or, contact us through the following:

GitHub LinkedIn Twitter Instagram Gmail


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published