How jeevilucky143143-create/ai-aqi works
AI-AQI combines sensor telemetry, calibrated AQI forecasting, patient-contextualized environmental health guidance, and district-level GIS analytics. The primary workflow is sensor data fusion and ingestion, persistence, prediction, and presentation through the dashboard; a separate CDSS workflow stratifies environmental and patient risks and returns preventive guidance. Relationships are limited to sampled calls, SOURCE INDEX references, and explicit README descriptions; unsampled feature internals are represented at their documented directory paths.
Main entry points: api.py REST API · cdss_service.py CDSS orchestrator · App.tsx React application · environmental_fusion.py Environmental fusion
Components 26
User Interface
- React application
frontend/src/App.tsx - Telemetry dashboard
frontend/src/features/dashboard - Prediction workspace
frontend/src/features/prediction - CDSS workspace
frontend/src/features/cdss - GIS explorer
frontend/src/features/gis
Telemetry Platform
- Sensor unit
- Environmental fusion
hardware/environmental_fusion.py - Live preprocessing
hardware/live_preprocessing.py - REST API
deployment/api.py - Telemetry and user records
deployment/database.py - Authentication and roles
deployment/auth.py
AQI Forecasting
- AQI inference
deep_learning/inference.py - Hybrid model
deep_learning/architecture.py - Temporal attention
deep_learning/attention.py - Dataset pipeline
deep_learning/tf_dataset.py - Threshold calibration
deep_learning/threshold_calibration.py - Federated simulation
federated/simulation.py
Clinical Guidance
- CDSS orchestrator
cdss/cdss_service.py - Input contracts
cdss/schemas.py - Environmental risk
cdss/environmental_risk.py - Prediction adapter
cdss/dl_adapter.py - Respiratory rules
cdss/respiratory_rules.py - Skin risk rules
cdss/skin_rules.py - Preventive guidance
cdss/recommendation_engine.py
Spatial Analytics
- District risk analytics
frontend/src/features/gis
Other components
- Platform user
Connections 29
- Platform user → React application: uses
README.md - React application → Telemetry dashboard: routes to
frontend/src/App.tsx - React application → Prediction workspace: routes to
frontend/src/App.tsx - React application → CDSS workspace: routes to
frontend/src/App.tsx - React application → GIS explorer: routes to
frontend/src/App.tsx - Sensor unit → Environmental fusion: sends readings
README.md - Environmental fusion → REST API: posts telemetry
README.md - REST API → Live preprocessing: calls
deployment/api.py - REST API → Environmental fusion: calls
deployment/api.py - REST API → Telemetry and user records: persists records
README.md - REST API → Authentication and roles: uses
deployment/api.py - REST API → AQI inference: calls
deployment/api.py - AQI inference → Hybrid model: loads model
deep_learning/inference.py - Hybrid model → Temporal attention: uses layer
deep_learning/architecture.py - REST API → CDSS orchestrator: calls
deployment/api.py - REST API → Telemetry and user records: reads and writes
deployment/database.py - Telemetry dashboard → REST API: requests telemetry
README.md - Prediction workspace → REST API: requests forecasts
README.md - GIS explorer → District risk analytics: explores districts
README.md - CDSS workspace → REST API: submits context
README.md - CDSS orchestrator → Input contracts: validates inputs
cdss/cdss_service.py - CDSS orchestrator → Environmental risk: evaluates
cdss/cdss_service.py - CDSS orchestrator → Prediction adapter: adapts prediction
cdss/cdss_service.py - CDSS orchestrator → Respiratory rules: stratifies risk
cdss/cdss_service.py - CDSS orchestrator → Skin risk rules: evaluates risk
cdss/cdss_service.py - CDSS orchestrator → Preventive guidance: generates guidance
cdss/cdss_service.py - Dataset pipeline → Hybrid model: prepares training data
deep_learning/train_phase2d.py - Threshold calibration → AQI inference: supplies thresholds
deep_learning/inference.py - Federated simulation → Platform user: simulates edge learning
README.md