How santhoshkumargontla/ai-qtriage works
AI-QTriage is a research-demo web application for multimodal injury assessment, not a clinically validated triage or emergency-dispatch system. Users create a case, add an image and questionnaire answers, optionally provide or simulate sensor data, then request analysis and view the case or a research report. The backend coordinates vision and sensor inference, combines available evidence for research predictions, and offers rule-based or Gemini first-aid guidance; SOS is a local simulation with optional sandbox messaging. The README documents these capabilities, but several runtime links are only indicated by module references, so uncertain links are omitted or dashed.
Main entry points: main.py Case API · sos_service.py SOS workflow · cases/page.tsx Case screens · create-case/page.tsx Create case
Components 25
Web interface
- Case screens
frontend/app/cases/page.tsx - Create case
frontend/app/create-case/page.tsx - Case detail
frontend/app/cases/[id]/page.tsx - Sensor capture
frontend/components/RealTimeSensorCapture.tsx - Research view
frontend/app/research/page.tsx
Case API
- Case API
backend/main.py - MongoDB cases
backend/database/connection.py - Questionnaire routing
backend/services/questionnaire_router.py - Live sensor adapter
backend/services/live_sensor_adapter.py
Assessment models
- Sensor processing
ml/sensor/sensor_processor.py - YOLO detection
ml/vision/yolo_wrapper.py - Image classification
ml/vision/efficientnet_wrapper.py - Image segmentation
ml/vision/unet_wrapper.py - Feature fusion
ml/fusion/feature_fusion.py - XGBoost classifier
ml/classifiers/xgboost_classifier.py - Experimental VQC
ml/classifiers/vqc_classifier.py - Motion classifier
ml/classifiers/sensor_classifier.py - Research rules
ml/fusion/rules_engine.py
Guidance and SOS
- First-aid guidance
backend/services/first_aid_service.py - Gemini guidance
backend/services/gemini_first_aid_service.py - Research report
backend/services/report_service.py - SOS workflow
backend/services/sos_service.py - SOS delivery
backend/services/sos_delivery.py
Other components
- Case user
- Twilio sandbox
backend/services/twilio_service.py
Connections 26
- Case user → Create case: creates case
- Case user → Case screens: opens cases
- Case screens → Case API: requests cases
- Create case → Case API: submits case
- Sensor capture → Case API: uploads sensor data
- Research view → Case API: requests research view
- Case detail → Case API: requests analysis
- Case API → MongoDB cases: reads and writes
backend/main.py - Case API → Questionnaire routing: routes answers
backend/main.py - Case API → Live sensor adapter: adapts sensor input
backend/main.py - Case API → Sensor processing: processes motion
backend/main.py - Sensor processing → Motion classifier: classifies motion
ml/sensor/sensor_processor.py - Case API → YOLO detection: detects injuries
backend/main.py - Case API → Image classification: classifies images
backend/main.py - Case API → Image segmentation: segments images
backend/main.py - Case API → Feature fusion: combines evidence
backend/main.py - Feature fusion → XGBoost classifier: provides features
ml/classifiers/xgboost_classifier.py - Case API → Experimental VQC: requests experimental prediction
backend/main.py - Case API → Research rules: derives category
backend/main.py - Case API → First-aid guidance: requests guidance
backend/main.py - First-aid guidance → Gemini guidance: generates guidance
backend/services/first_aid_service.py - Case API → Research report: builds report
backend/services/report_service.py - Case API → SOS workflow: checks SOS
backend/main.py - SOS workflow → SOS delivery: requests delivery
backend/services/sos_service.py - SOS workflow → Twilio sandbox: dispatches optional SMS
backend/services/sos_service.py - Twilio sandbox → Case user: sends sandbox SMS