A professional healthcare dashboard prototype for predicting chronic care patient deterioration risk using AI.
WellDoc is an AI-driven Risk Prediction Engine that forecasts whether a chronic care patient is at risk of deterioration in the next 90 days. The dashboard provides clinician-friendly, explainable predictions with actionable insights.
- Risk Prediction: Binary classification with probability scores (0-100%)
- Dashboard Scores: Individual assessments for Vitals, Medication, Lifestyle, and Labs
- Explainable AI: SHAP-based feature importance and risk factor analysis
- Real-time Monitoring: Patient cohort overview with trend analysis
- Overview Dashboard: Key metrics, risk distribution, and recent alerts
- Cohort View: Complete patient list with filtering and sorting
- Patient Detail: Individual patient deep-dive with charts and recommendations
- Analytics: Model performance metrics and clinical outcomes
- Dark Theme: Professional healthcare-focused design
- Modern UI: Built with shadcn/ui components and Tailwind CSS
- Responsive: Works on desktop and tablet devices
- Professional: Clean, medical-grade interface without emojis
- Frontend: Next.js 15 + TypeScript + Tailwind CSS
- UI Components: shadcn/ui + Radix UI
- Charts: Recharts for data visualization
- Icons: Lucide React
- Data: Synthetic demo data with realistic medical scenarios
- Node.js 18+
- npm or yarn
-
Clone and Install
cd welldoc npm install
-
Run Development Server
npm run dev
-
Open Browser Navigate to http://localhost:3000
- Key metrics: Total patients, high-risk count, average risk score
- Risk distribution chart
- Recent alerts and high-risk patients
- Quick action buttons
- Complete patient list with search and filtering
- Risk level distribution summary
- Sort by name, risk score, or last updated
- Direct links to patient details
- Overall risk score with trend indicators
- Dashboard scores breakdown (Vitals, Medication, Lifestyle, Labs)
- Interactive charts: Vital signs, lab results, medication adherence
- Risk factors analysis with impact percentages
- Clinical recommendations
- Model performance metrics (AUROC, AUPRC, Precision, Recall)
- Feature importance analysis
- Prediction accuracy trends
- Intervention outcomes and patient timeline
- Clinical impact summary
The application includes 5 synthetic patients with different risk profiles:
- John Mitchell (High Risk - 85%): Declining vitals, poor medication adherence
- Sarah Chen (Low Risk - 15%): Well-controlled pre-diabetes, good lifestyle
- Robert Williams (Medium Risk - 55%): Heart failure with mixed indicators
- Maria Rodriguez (High Risk - 78%): Diabetes with kidney complications
- David Thompson (Medium Risk - 42%): Metabolic syndrome, improving trends
Synthetic Patient Data → Feature Engineering → Binary Classification Model
↓
Risk Probability → Dashboard Scores → SHAP Analysis → Clinical Insights
- Risk Score: Direct model probability (0-100%)
- Category Scores: Aggregated SHAP values for feature groups
- Trends: Time-series analysis (improving/stable/declining)
- Recommendations: Rule-based clinical guidelines
While this is a frontend prototype with synthetic data, the underlying ML approach:
- Model: XGBoost/LightGBM for binary classification
- Features: Vitals trends, medication adherence, lab results, lifestyle factors
- Target: 90-day deterioration risk (binary)
- Explainability: SHAP values for global and local explanations
- Metrics: AUROC >0.80, AUPRC >0.70, calibrated probabilities
This 1-day prototype demonstrates:
- ✅ End-to-end dashboard for risk prediction
- ✅ Professional healthcare UI/UX
- ✅ Multiple visualization types
- ✅ Clinician-friendly explanations
- ✅ Scalable component architecture
- ✅ Realistic medical scenarios
- Real ML Pipeline: Integrate actual model training and inference
- Live Data: Connect to EMR systems and real patient data
- Advanced Charts: Time-series forecasting and trend prediction
- Mobile App: React Native companion for on-the-go monitoring
- Alerts System: Real-time notifications and escalation workflows
This is a prototype developed for demonstration purposes.
Built with ❤️ for better patient outcomes