How krishjain-2301/ai_health_project works
HealthAI is a patient-health dashboard with clinician/patient chat and health-trajectory risk predictions. Users select a patient; the dashboard requests patient history and metrics, displays activity, sleep, heart-rate and intensity charts, and requests predictions from the recent data. Chat requests use the selected patient’s merged health record to produce role-specific guidance. The CSV collection supplies the merged data; predictions use either the CNN or optional TinyML inference path. Connections reflect shown calls and router registration; no README was provided, and unsampled modules are represented only where the source index or tree supports them.
Main entry points: App.tsx Health Dashboard · ml_routes.py Prediction API · dataset_merger.py Dataset Merger · main.py FastAPI App
Components 10
Dashboard
- Health Dashboard
client/src/App.tsx
API Services
- FastAPI App
server/main.py - Patient Data API
server/api/data_routes.py - Health Chat API
server/api/chat_routes.py - Prediction API
server/api/ml_routes.py
Health Data
- Dataset Merger
server/api/dataset_merger.py - Fitabase CSVs
Fitabase Data 4.12.16-5.12.16
Risk Models
- CNN Trajectory Model
server/api/cnn_model.py - TinyML Inference
server/api/tinyml_model.py
Other components
- Clinician / Patient
Connections 14
- Clinician / Patient → Health Dashboard: use dashboard
client/src/App.tsx - Health Dashboard → Patient Data API: request patient data
client/src/App.tsx - Health Dashboard → Prediction API: request prediction
client/src/App.tsx - Health Dashboard → Health Chat API: send chat
client/src/App.tsx - FastAPI App → Patient Data API: registers router
server/main.py - FastAPI App → Health Chat API: registers router
server/main.py - FastAPI App → Prediction API: registers router
server/main.py - Patient Data API → Dataset Merger: loads merged data
server/api/data_routes.py - Health Chat API → Dataset Merger: loads merged data
server/api/chat_routes.py - Prediction API → CNN Trajectory Model: runs CNN prediction
server/api/ml_routes.py - Prediction API → TinyML Inference: runs TinyML prediction
server/api/ml_routes.py - CNN Trajectory Model → Dataset Merger: prepares training data
server/api/cnn_model.py - TinyML Inference → CNN Trajectory Model: gets Keras model
server/api/tinyml_model.py - Dataset Merger → Fitabase CSVs: reads CSV files
server/api/dataset_merger.py