https://github.com/falakrana/disease-prediction-using-ml
This project is an AI-powered web application that predicts diseases based on user-input symptoms. It uses Machine Learning algorithms like Random Forest, Decision Tree, and Naïve Bayes to provide accurate predictions. The system features a Flask backend, a React.js frontend, and ensures user privacy by not storing searches.
https://github.com/falakrana/disease-prediction-using-ml
decision-trees flask ml naive-bayes-classifier randomforestclassifier reactjs svm-classifier
Last synced: 4 months ago
JSON representation
This project is an AI-powered web application that predicts diseases based on user-input symptoms. It uses Machine Learning algorithms like Random Forest, Decision Tree, and Naïve Bayes to provide accurate predictions. The system features a Flask backend, a React.js frontend, and ensures user privacy by not storing searches.
- Host: GitHub
- URL: https://github.com/falakrana/disease-prediction-using-ml
- Owner: falakrana
- Created: 2025-03-17T11:09:33.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-03-17T11:22:23.000Z (8 months ago)
- Last Synced: 2025-03-17T12:27:13.801Z (8 months ago)
- Topics: decision-trees, flask, ml, naive-bayes-classifier, randomforestclassifier, reactjs, svm-classifier
- Language: Jupyter Notebook
- Homepage:
- Size: 355 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Disease Prediction System
## Overview
The **Disease Prediction System** is a web-based application that predicts diseases based on user-input symptoms using Machine Learning. The system consists of a **Flask backend** for handling the ML model and API requests and a **React frontend** for user interaction.
## Tech Stack
- **Frontend:** React.js, Vite, HTML, CSS, JavaScript
- **Backend:** Flask (Python)
- **Machine Learning:** Scikit-learn, Pandas, NumPy
- **Database:** MongoDB Atlas
## Folder Structure
```
├── backend
│ ├── models/ # ML models
│ ├── utils/ # Helper functions
│ ├── .env.example # Environment variable example
│ ├── .gitignore # Ignore unnecessary files
│ ├── app.py # Main Flask application
│ ├── README.md # Backend documentation
│ ├── requirements.txt # Python dependencies
│
├── frontend
│ ├── node_modules/ # Dependencies
│ ├── public/ # Static assets
│ ├── src/ # React source code
│ ├── .gitignore # Ignore unnecessary files
│ ├── eslint.config.js # Linting configuration
│ ├── index.html # Main HTML file
│ ├── package.json # Frontend dependencies
│ ├── package-lock.json # Package lock file
│ ├── README.md # Frontend documentation
│ ├── vite.config.js # Vite configuration
```
## Installation
### **1. Clone the Repository**
```sh
git clone https://github.com/your-username/disease-prediction.git
cd disease-prediction
```
### **2. Backend Setup**
```sh
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
```
Run the backend server:
```sh
python app.py
```
### **3. Frontend Setup**
```sh
cd frontend
npm install
npm run dev
```
## Usage
1. Open the frontend in the browser.
2. Enter symptoms and submit.
3. The backend processes input and returns predicted diseases.
## Future Enhancements
- Improve ML model accuracy.
- Implement user authentication.
## Contributing
Feel free to fork this repository and submit pull requests.