Skip to content

The Mental Health Prediction System utilizes a Flask API to deploy the machine learning model, while a Spring Boot API handles user interactions, stores data, and sends personalized mental health predictions via email.

Notifications You must be signed in to change notification settings

wizardoftrap/mental-health-predicter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mental Health Prediction System

This project predicts mental health conditions using a machine learning model trained with the Random Forest algorithm. The model is deployed using a Flask API, while a Spring Boot API handles user interactions, stores data, and sends predictions via email.

Tech Stack

  • Machine Learning Model: Random Forest
  • Backend APIs: Flask (ML Model), Spring Boot (User Interaction & Email)
  • Database: (Specify if used)
  • Deployment: Local or Cloud

How to Run the Project

1. Prepare the Dataset

  • Create or load the dataset required for training.

2. Train the Model

  • Train the model using the Random Forest algorithm.
  • Save the trained model for later use.

3. Start the Flask API

  • Run the Flask application to deploy the ML model.
  • Ensure the API is accessible for predictions.

4. Start the Spring Boot Application

  • Run the Spring Boot API to handle user requests.

5. Make a Prediction Request

  • Send a request via the Spring Boot API, which forwards it to the Flask API.
  • The Flask API processes the data and returns the prediction.
  • The result is sent to the user via email.

Endpoints

  • Flask API – Handles ML model inference.
  • Spring Boot API – Manages user requests, stores data, and emails results.

License

This project is open-source. Feel free to modify and enhance it.

About

The Mental Health Prediction System utilizes a Flask API to deploy the machine learning model, while a Spring Boot API handles user interactions, stores data, and sends personalized mental health predictions via email.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published