This project implements a comprehensive Healthcare Recommendation System that leverages machine learning and big data tools to provide symptom-based disease prediction and personalized health advice.
The Healthcare Recommendation System is designed to assist users in identifying potential diseases based on symptoms and providing personalized recommendations for medications, diets, workouts, and precautions.
It integrates a Flask-based web application with a Spark-powered backend for real-time predictions and efficient data processing.
- Symptom-based Disease Prediction: Predict diseases using a pre-trained Random Forest Classifier.
- Personalized Recommendations:
- Descriptions of the predicted disease.
- Suggested medications, diets, workouts, and precautions.
- Interactive Web Interface: User-friendly interface powered by Flask.
- Scalable Backend: Utilizes Apache Spark for processing large datasets efficiently.
- Frontend:
- HTML with Jinja2 templating (via Flask).
- Backend:
- Flask for web services.
- Apache Spark for machine learning and data processing.
- Python libraries: NumPy, Pandas, Pickle.
- Machine Learning:
- Random Forest Classifier for disease prediction.
- PySpark's MLlib for building and evaluating the model.
- Datasets:
- Symptom-disease relationships.
- Disease-specific medications, diets, precautions, and workouts.
project-directory/
|-- datasets/
| |-- symptoms_df.csv
| |-- precautions_df.csv
| |-- medications.csv
| |-- diets.csv
| |-- description.csv
| `-- workout_df.csv
|-- models/
| `-- svc.pkl
|-- app.py # Flask application
|-- model.py # Model training script
|-- templates/
| |-- index.html
| |-- about.html
| |-- contact.html
| `-- developer.html
|-- static/ # Static assets (CSS, JS, images)
`-- README.md
- Python 3.8+
- Apache Spark
- Flask
- Required Python libraries:
pip install flask pyspark pandas numpy
- Clone this repository:
git clone https://github.com/anna123venkat/Healthcare-Recommendation-System.git cd Healthcare-Recommendation-System - Prepare the datasets:
- Place the CSV files in the
datasets/directory.
- Place the CSV files in the
- Train the model (if needed):
python model.py
- Start the Flask server:
python app.py
- Open the application in your browser:
http://localhost:5000


