HealthCheck is a state-of-the-art Clinical Decision Support (CDS) application designed to predict diabetes risk using Machine Learning and provide personalized health strategies via Generative AI.
live site: https://diabetes-risk-engine.vercel.app/
- 🧠 Predictive Analytics: Real-time risk assessment using a Random Forest ML model trained on clinical patient data.
- ✨ AI-Powered Guidance: Personalized diet, exercise, and lifestyle suggestions generated by
gpt-oss-120bvia OpenRouter. - 🎛️ What-If Simulator: Interactive "sandbox" with dynamic sliders to model how improving metrics (BMI, Glucose) changes risk probability.
- 📈 Patient History: Track metabolic trends over time with high-definition charts (Recharts).
- 🔐 Secure Access: JWT-based authentication with encrypted password storage.
- 📊 Data Freedom: Export complete assessment history to CSV for clinical review.
- 🌿 Human-Centric UI: A "clinical-modern" light theme built with Tailwind CSS, focused on readability and professional aesthetics.
(Left) Diagnostic Result Page | (Right) Interactive What-If Simulator
- Frontend: React 18 (Vite), Tailwind CSS, Zustand, Recharts, Lucide Icons.
- Backend: Flask (Python), Scikit-Learn (Random Forest), JWT Extended.
- AI: OpenRouter API (
gpt-oss-120b:free). - Database: MongoDB Atlas.
- Deployment: Vercel (Frontend) & Render (Backend).
Unlike simple "if/else" calculators, HealthCheck utilizes a Random Forest Classifier trained on high-dimensional clinical data. When you submit biometric data, the backend:
- Pre-processes inputs (one-hot encoding categorical variables).
- Analyzes the feature set against the trained model weights.
- Calculates an exact probability percentage for diabetes risk.
To run locally:
- Clone the repo.
- Setup
.envinapp/withMONGO_URI,JWT_SECRET_KEY, andOPENROUTER_API_KEY. - In
app/:pip install -r requirements.txt&python app.py. - In
frontend/:npm install&npm run dev.
Developed and maintained by owsam22 (Sam).
This tool is for educational and simulation purposes only. It is not a substitute for professional medical advice, diagnosis, or treatment. Always consult with a qualified healthcare provider for any medical concerns.
Made with ❤️ for Healthcare Innovation

