Welcome to the Disease Detection and Healthcare Recommendation project! This web application, built with Flask, predicts diseases based on symptoms and provides healthcare recommendations.
Make sure you have the following installed:
- Python 3.x
- Flask
- pandas
- scikit-learn
- joblib
- Clone the Repository:
git clone https://github.com/Sarika362/Disease-Detection-Healthcare-Recommendation-System.git cd Disease-Detection-Healthcare-Recommendation-System
- Install Dependencies:
pip install -r requirements.txt
To start the application, run:
python app.py
The app will be accessible at http://localhost:5000/.
- Enter your symptoms in the input box (comma-separated).
- Click on the search icon or press Enter.
- The app predicts the disease based on the provided symptoms.
- View details such as the predicted disease, cure, doctor, risk level, and probability.
SE_ML_Model
static
└── css
└── styles.css 🎨
└── bg.gif 🌟
templates
└── index.html 🖥️
└── app.py 🔧
└── model.py 🤖
└── dataset.csv 📊
- static/: Contains static files like CSS and background images.
- css/: Contains stylesheets and background images.
styles.css
🎨bg.gif
🌟
- css/: Contains stylesheets and background images.
- templates/: Contains HTML templates for the web pages.
index.html
🖥️
- app.py: The main Flask application file. 🔧
- model.py: Contains the machine learning model and related functions. 🤖
- dataset.csv: The dataset used to train the machine learning model. 📊
- Symptom Input: Users can enter symptoms in a text box and submit them for analysis. 📝
- Disease Prediction: The application uses a trained machine learning model to predict possible diseases based on the entered symptoms. 🔍
- Health Care Recommendations: Provides recommended treatments, doctors, and risk levels associated with the predicted diseases. 💊🩺
- Probability of Prediction: Displays the probability of the predicted disease. 📉
- Responsive Design: The user interface is designed to be responsive and user-friendly. 📱
Here’s how to use the core functions of the project:
# Example input
input_symptoms = "fever, cough, sore throat"
# Predict the disease
disease, probability = predict_disease(input_symptoms)
print(f"Predicted Disease: {disease}, Probability: {probability}")
# Get details of the predicted disease
disease_details = get_disease_details(disease)
print(f"Disease Details: {disease_details}")
# Evaluate the model
evaluate_model()
The model is evaluated using accuracy and classification report metrics. Ensure you have the dataset_mini_prj.csv
file for evaluation.
- Developed by Sarika M N, Shashank B R
- Initial Dataset source: Dataset Source
Feel free to open issues or submit pull requests to improve this project!
This project is licensed under the MIT License - see the LICENSE file for details.
Thank you for checking out the Disease Detection and Healthcare Recommendation project! 🙌