The Health Monitoring System is a web-based machine learning application designed to predict diseases based on user-provided symptoms. The application utilizes a Multi-Layer Perceptron (MLP Classifier) machine learning model, achieving an accuracy of 94.42% and an f1-score of 94.30%.
This system enables users to select from 376 symptoms and predicts up to 41 diseases with a confidence score threshold of 50%, ensuring reliable and data-driven health assessments. Once a disease is predicted, the application provides detailed information including:
Additionally, users can download a neatly formatted PDF prescription for their records. The frontend is built using React.js, providing a seamless and interactive user experience, while the backend is powered by Flask, ensuring robust and efficient data handling.
#### [!NOTE]
Checkout the screenshots of the web app in the HMS-Interface Preview folder.
The dataset used in this project is a combination of two publicly available datasets:
1. Disease-Symptom Dataset (Kaggle)
2. Symptom-Disease Prediction Dataset (Mendeley)
After integrating these datasets, extensive processing - including symptom mapping, disease mapping, elimination of redundant features, and removal of duplicate records... was performed. The final dataset consists of:
For additional disease-related information such as description, precautions, diet, medications, and consulted doctor, the following resource was used:
Disease-Prediction-and-Medical-Recommendation-System
Follow these steps to set up and run the Health Monitoring System on your local machine.
Ensure you have the following installed:
Step 1: Clone the Repository to your local machine
1. Run the following command to clone the repository:
git clone https://github.com/BharathKanuri/health-monitoring-system.git
2. Navigate to the project directory:
cd health-monitoring-system
Step 2: Set Up the Backend
1. Navigate to the backend folder:
cd backend
2. Create a virtual environment (optional but recommended):
python -m venv venv
3. Activate the virtual environment:
• On Windows:
venv\Scripts\activate
• On macOS/Linux:
source venv/bin/activate
4. Install the required Python packages:
pip install -r requirements.txt
5. Run the Flask backend server:
python app.py
Before proceeding, please visit /frontend/README.md for detailed instructions on setting up the React app.
Step 3: Set Up the Frontend
1. Open a new terminal window and navigate to the frontend folder:
cd ../frontend
2. Install the required Node.js packages:
npm install
3. Start the React development server:
npm start
Step 4: Access the Application
Once both the backend and frontend servers are running, open your browser and
navigate to: https://localhost:3000
to access the Health Monitoring System.
Step | Description |
---|---|
1. Select Symptoms | Use the search box to select your symptoms from the list of 376 symptoms. |
2. Submit | Click on the Submit button to get the predicted disease with a confidence score of 50% or higher. |
3. View Details | Once a disease is predicted, view the Disease Description, Precautions, Diet, Medications, and Doctor to be Consulted. |
4. Download Prescription | If desired, download a PDF prescription for your records. |