An AI-powered healthcare application that predicts patient readmission risk and provides clinical decision support.
Live Demo: https://health-prognosis-demo.vercel.app/
Health Prognosis Demo helps healthcare providers assess patient readmission risks using machine learning. Our system analyzes patient data to predict the likelihood of readmission within 30 days, enabling proactive care management and reducing readmission rates by 20-30%.
- Readmission Impact: 15-20% of patients are readmitted within 30 days of discharge
- Cost Burden: Readmissions cost the US healthcare system $41B annually
- Clinical Decision Gap: Providers need better tools for risk stratification
- Patient Outcomes: Early intervention can significantly improve patient recovery
- AI-Powered Scoring: ML model predicts readmission risk (Low/Medium/High)
- Actionable Insights: Clear visual indicators and clinical recommendations
- User-Friendly: Intuitive interface for busy healthcare professionals
- Data-Driven: Processes both individual and batch patient data
``` ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │ Frontend │ │ FastAPI │ │ ML Model │ │ (React/Vite) │◄──►│ (Python) │◄──►│ (CatBoost) │ │ │ │ │ │ │ │ • Patient Form │ │ • /predict │ │ • Patient Data │ │ • Batch Upload │ │ • /predict/batch│ │ • Risk Factors │ │ • Results │ │ • Data Validation│ │ • Predictions │ │ • Analytics │ │ • Error Handling│ │ │ └─────────────────┘ └─────────────────┘ └─────────────────┘ ```
- Individual Risk Assessment: Real-time prediction for single patients
- Batch Processing: Upload CSV files for multiple patient assessments
- Interactive Visuals: Clear risk indicators and data visualizations
- Responsive Design: Works on desktop and mobile devices
- Risk Distribution: Bar chart showing patient risk categories
- Feature Importance: Heatmap of key risk factors
- Interactive Tables: Sortable and filterable patient data
- Export Capabilities: Download results as CSV
- FastAPI Backend: High-performance Python API
- React Frontend: Modern, responsive UI with Tailwind CSS
- Machine Learning: CatBoost model with fallback to heuristic
- Data Validation: Client and server-side data integrity checks
- Python 3.9+
- Node.js 16+
- npm or yarn
-
Clone the repository ```bash git clone https://github.com/okech-glitch/health-prognosis-demo.git cd health-prognosis-demo ```
-
Backend Setup ```bash cd backend python -m venv venv .\venv\Scripts\activate
pip install -r requirements.txt ``` -
Frontend Setup ```bash cd ../frontend npm install ``"
-
Start the Application
- In one terminal (backend): ```bash cd backend uvicorn app:app --reload ``"
- In another terminal (frontend): ```bash cd frontend npm run dev ``"
-
Access the Application
- Live Demo: https://health-prognosis-demo.vercel.app/
- Frontend: http://localhost:5175
- API Docs: http://localhost:8000/docs
The risk score is calculated using a machine learning model that analyzes patient data to predict readmission probability.
- Demographics: Age, Gender
- Clinical Data: Diagnosis Code, Lab Results
- Treatment: Medications
- History: Length of Stay, Comorbidity Score
- Algorithm: CatBoost Classifier
- Training Data: Historical patient records
- Accuracy: 78% (AUC-ROC)
- Response Time: < 500ms per prediction
| Score Range | Risk Level | Recommendation |
|---|---|---|
| 0-30% | Low | Standard care |
| 31-70% | Medium | Enhanced monitoring |
| 71-100% | High | Immediate intervention |
``` health-prognosis-demo/ ├── 📁 backend/ # FastAPI backend │ ├── app.py # Main application │ ├── requirements.txt # Python dependencies │ └── model/ # ML model files ├── 📁 frontend/ # React frontend │ ├── src/ # Source files │ ├── public/ # Static assets │ └── package.json # Node.js dependencies └── README.md # This file ``"
- Fork the repository
- Create your feature branch (`git checkout -b feature/amazing-feature`)
- Commit your changes (`git commit -m 'Add amazing feature'`)
- Push to the branch (`git push origin feature/amazing-feature`)
- Open a Pull Request
This project is licensed under the MIT License.
- Healthcare professionals for their valuable insights
- Open-source community for tools and libraries
- Medical researchers for their work in predictive analytics.