A deep-learning powered platform for multi-disease medical imaging analysis, built with TensorFlow, FastAPI, Streamlit, and deployed on Render.
HealthAI is an end-to-end medical imaging project that detects multiple chest diseases from X-ray images using a deep learning model trained on the CheXpert dataset. It features:
- πΈ Multi-Disease Chest X-Ray Classification (supports 5+ pathologies)
- π§ CNN/Transfer Learning Model (EfficientNetB0)
- βοΈ FastAPI Backend for AI Inference
- π§© Streamlit Dashboard for Real-time Diagnosis
- βοΈ Cloud Deployment on Render
- π Clean architecture, modular API, scalable structure
This project demonstrates real-world deep learning workflow: data pipeline β model training β evaluation β API β UI β deployment.
Predicts probability for diseases such as:
- Atelectasis
- Cardiomegaly
- Consolidation
- Edema
- Pleural Effusion
Example output:
{
"Atelectasis": 0.14,
"Cardiomegaly": 0.02,
"Consolidation": 0.51,
"Edema": 0.09,
"Pleural Effusion": 0.78
}Endpoints:
- Accepts an uploaded X-ray image
- Returns normalized probabilities for all diseases
Health check endpoint
- Upload X-ray image
- Call backend API
- Display disease probabilities in clean UI
- Visual + interactive
Backend deployed on Render, accessible publicly.
HealthAI-Project/
β
βββ backend/
β βββ main.py
β βββ model/
β β βββ healthai_model.keras
β β βββ diseases.json
β βββ requirements.txt
β
βββ dashboard/
β βββ app.py
β βββ assets/
β
βββ notebooks/
β βββ 01_train_healthai_model.ipynb
β
βββ .gitignore
βββ README.md
βββ LICENSE
Base URL:
https://healthai-backend-oj25.onrender.com/
Swagger Docs:
https://healthai-backend-oj25.onrender.com/docs
Request:
multipart/form-data
field name = file
Response:
{
"Atelectasis": 0.14,
"Cardiomegaly": 0.02,
"Consolidation": 0.51,
"Edema": 0.09,
"Pleural Effusion": 0.78
}Simple API check.
graph TD
A[CheXpert Dataset] --> B[Model Training - EfficientNet]
B --> C[Saved Model - Keras]
C --> D[FastAPI Backend]
D --> E[Streamlit Dashboard]
D --> F[Mobile App - Future]
D --> G[Cloud Deployment - Render]
conda create -n healthai python=3.10
conda activate healthaicd backend
pip install -r requirements.txtuvicorn main:app --reload --host 0.0.0.0 --port 8000Docs: http://127.0.0.1:8000/docs
Open a second terminal:
cd dashboard
streamlit run app.pyStreamlit UI: http://localhost:8501/
Add these once screenshots are uploaded:
-
Dataset: CheXpert small (5 diseases)
-
Input size:
224x224 -
Base model: EfficientNetB0
-
Optimizer: Adam (lr=1e-4)
-
Loss: Binary Crossentropy
-
Metrics: AUC, Accuracy
-
Achieved Validation Metrics:
- Accuracy: ~88%
- Loss: ~0.27
- Add more diseases (14-class CheXpert full)
- Add attention heatmaps (Grad-CAM)
- Add mobile app (Flutter)
- Add hospital-level data logging
- Improve UI/UX of dashboard
This project demonstrates:
- Deep learning model building
- Medical imaging pipeline
- Multi-label classification
- Clean backend architecture
- Real-world API integration
- Deployment experience
- Professional-grade UI
A perfect portfolio project for Machine Learning, AI Engineering, and Healthcare AI roles.
This project is licensed under the MIT License.
Akhil Saurabh




