Heart Health is a comprehensive MERN (MongoDB, Express.js, React.js, Node.js) application integrated with AI/ML capabilities to predict heart disease risk and provide personalized health recommendations.
Utilizes machine learning algorithms to assess the risk of heart disease based on user-input health data.
A user-friendly interface to view health statistics, predictions, and recommendations at a glance.
-
Health Assessment Forms: Allows users to input their heart data to follow up with recommendations.
-
Self-Assessment Form: Allows users to input their health data for heart disease risk prediction.
-
Medical Report Analysis: Upload and analyze medical reports for insights and recommendations.
Locate and connect with cardiologists in your area for professional medical advice and treatment.
Leveraging Google's Gemini AI to provide:
- Personalized diet plans
- Tailored exercise routines
- Lifestyle modification suggestions
An AI-driven chatbot powered by Google's Gemini to answer user queries related to heart health and general medical concerns.
- Frontend: React.js
- Backend: Node.js, Express.js
- Database: MongoDB
- AI/ML: Custom machine learning models for heart disease prediction. (Logistic Regression and RandomForestClassifer)
- AI Integration: Google's Gemini AI for personalized recommendations and chatbot functionality
To set up the project locally, follow these steps:
-
Clone the Repository
Clone the project using:git clone https://github.com/SrikarVeluvali/HeartHealth.git
-
Navigate to the Data Folder
Go to thedata
folder in the local repository:cd HeartHealth/data
-
Run the Jupyter Notebooks
Execute the two notebook files in thedata
folder. This will generate two joblib files. -
Move Joblib Files
Paste the generated joblib files into theapp
folder. -
Create Environment Variables
Create.env
files in both theclient
andserver
folders. -
Add Environment Variables
Add the following variables in both.env
files:GEMINI_API=your_gemini_api_key_here MONGO_DB_URL=your_mongodb_url_here
-
Update Flask App
In the Flask app, replace theMONGO_DB_URL
andGEMINI_API
with the values from your.env
files. -
Run the Application
Open three terminal windows:- In the first terminal, run the Flask server:
flask run
- In the second terminal, run the Express server:
npm run server
- In the third terminal, run the React application:
npm start
- In the first terminal, run the Flask server:
Now you're good to go! You can now access the Heart Health App.