Skip to content
TriageSense

TriageSense

See severity before it escalates.

Created on 6th December 2025

•

TriageSense

TriageSense

See severity before it escalates.

The problem TriageSense solves

AI-powered medical triage assistant - Triage Sense helps users quickly understand the potential severity of symptoms. It can be used in many real-world scenarios:

  1. Early Symptom Assessment
  • People often don’t know if their symptoms are mild or dangerous.
  • Your model gives an instant severity prediction (Mild / Moderate / Critical), helping them decide:
  • Do I need rest?
  • Do I need to see a doctor soon?
  • Do I need emergency care right now?
  • This reduces hesitation and helps avoid risky delays in getting treatment.
  1. Emergency Awareness & Safety Alerts
  • It automatically recognizes “red flag” symptoms like unconsciousness, severe breathing difficulty, chest pain, etc.
    When detected, it:
  • Instantly classifies the case as CRITICAL
  • Triggers voice alerts through Sarvam TTS
  • Highlights emergency severity clearly
  • This makes medical decision-making faster and safer, especially for:
  • Elderly individuals living alone
  • Caregivers monitoring others
  • Students or workplaces without medical staff
  1. Batch Screening for Hospitals, NGOs, and Clinics
  • Your CSV batch upload feature allows:
  • Hospitals screening multiple incoming cases
  • Call centers triaging patient-reported symptoms
  • Health camps analyzing large datasets
  • This dramatically reduces manual workload and helps identify severe cases earlier.
  1. Training Tool for Students & First Responders

It can be used for:

  • Medical students learning triage
  • Nursing trainees
  • EMTs practicing rapid assessment
  • AI/ML education demos
  • It simplifies triage into a clear, visual, understandable form.
  1. Reduces Burden on Healthcare Workers
  • Healthcare workers often deal with:
  • Large patient volumes
  • Limited time
  • Incomplete symptom descriptions

This project is quick, consistent, unbiased predictions, helping doctors prioritize who needs attention first.

Challenges we ran into

This being our first hackathon we face many challegenge , to mention a few:

  1. Handling Incorrect or Missing Model Label Mapping

Problem:
The label_mapping.json file sometimes stored keys as strings while the model predicted integer class IDs.
This caused incorrect label lookups like "0" vs 0, leading to wrong severity names or key errors.

Solution:
I normalized all keys to both str and int forms when loading the mapping

  1. Softmax Instability Causing Wrong Predictions

Problem:
When logits were large values, direct softmax caused overflow or extremely skewed probabilities.

Solution:
I implemented a numerically stable softmax

  1. Model Transformation & Fine-Tuning Issues

One of the biggest hurdles was converting a standard DistilBERT classifier into a model that could be improved using GRPO-style reinforcement learning with a Gemini reward model.
I ran into issues like:

Missing imports (e.g., AdamW, DataLoader)

API misconfigurations and rate-limits from Gemini

Baseline advantage collapsing during RL updates

How I solved it:
I broke the training pipeline into stages (supervised → RL), added caching for reward scores, batch-based reward calls, and gradually stabilized training using supervised anchors.

  1. Database Integration & Relationship Mapping

Creating the SQLAlchemy models and linking users, predictions, and consultations was tricky.
The biggest challenges:

Circular imports (app_api ↔ models_db)

Getting session management right

Auto-creating tables on startup

Solution:
I separated DB models, schemas, and API logic into clean modules and used dependency injection (Depends(get_db)) to stabilize the DB layer.

overall with team efforts we made this possible

Discussion

Builders also viewed

See more projects on Devfolio