Skip to content

rohitkshirsagar19/multi-disease-predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

60 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Multi-Disease Predictor

A full-stack Machine Learning application that allows users to predict 8 different diseases based on user inputs. The system is designed with a modular backend in FastAPI and a responsive frontend in React with TailwindCSS, and includes functionality for online learning via user feedback and retraining!


Python FastAPI React TailwindCSS Docker MLflow Joblib MIT License


πŸš€ Features

  • 🩺 Predicts the likelihood of:
    • Anemia
    • Cardiovascular Disease
    • Heart Disease
    • Hepatitis C
    • Liver Disease
    • Lung Cancer
    • Stroke
    • Thyroid Disease
  • ⚑ Built with FastAPI backend and Vite+React frontend
  • πŸ” Supports user feedback and model retraining via /submit_data/{disease} and /retrain/{disease} APIs
  • πŸ§ͺ MLflow integration for experiment tracking
  • 🐳 Dockerized for seamless deployment

🧰 Tech Stack

Layer Technologies
Frontend React TypeScript TailwindCSS
Backend FastAPI Uvicorn
ML Models scikit-learn joblib
MLOps MLflow
DevOps Docker GitHub Actions

πŸ—οΈ Project Structure

multi-disease-predictor/
β”œβ”€β”€ backend/               # FastAPI server + ML models + retraining
β”œβ”€β”€ frontend/              # React (Vite + TailwindCSS) UI
β”œβ”€β”€ models/                # Pretrained ML models
β”œβ”€β”€ notebooks/             # Jupyter Notebooks for experiments
β”œβ”€β”€ mlruns/                # MLflow runs
β”œβ”€β”€ mlartifacts/           # MLflow artifacts
β”œβ”€β”€ data/                  # Raw and processed datasets
β”œβ”€β”€ docs/                  # Sphinx documentation
β”œβ”€β”€ docker-compose.yml     # Docker orchestration
└── tests/                 # API test scripts

πŸ–₯️ Local Setup

πŸ”§ Prerequisites

Python 3.10+

Node.js 18+

Docker (for containerized deployment)

pip or conda

🐍 Backend

#Create virtualenv and activate

python3 -m venv venv
source venv/bin/activate

Install dependencies

pip install -r requirements.txt

Start FastAPI server

cd backend
uvicorn main_2:app --reload

🌐 Frontend

cd frontend
npm install
npm run dev

🐳 Run with Docker Compose

docker-compose up --build

Backend: http://localhost:8000

Frontend: http://localhost:3000

🀝 Contributors

Thanks to these amazing people :

Name GitHub Profile
Rohit Kshirsagar @rohitkshirsagar19
Parth Lhase @LhaseParth2610
Rishabh Kothari @RishabhK103
Prajwal Kumbhar @prajwalkumbhar29

πŸͺͺ License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors