Skip to content
SanjeevniAI

SanjeevniAI

AI that saves lives, one beat at a time.

Created on 30th December 2025

•

SanjeevniAI

SanjeevniAI

AI that saves lives, one beat at a time.

The problem SanjeevniAI solves

Problem Statement
In critical health emergencies, immediate guidance is often unavailable, leading to preventable fatalities. A large percentage of emergencies occur where trained personnel are not present, and valuable minutes are lost before professional help arrives.

There is a strong need for an intelligent, accessible system that can:

  • provide real-time, step-by-step first-response guidance,
  • assist users even when they are panicked or unable to type,
  • support first responders with essential medical context.

SanjeevniAI bridges this gap with an AI-driven, voice-enabled interface that empowers ordinary people to take confident, life-saving actions while waiting for medical assistance.

Why It Matters - The Golden Hour

  • The Golden Hour is Critical: Proper care within the first hour can increase survival chances by up to 80% (WHO).
  • Every Minute Counts: In cardiac arrest, each minute without CPR decreases survival odds by 7–10% (AHA).
    These statistics highlight a simple truth: informed action in the first few minutes can determine life or death.

Why This Problem? (Motivation)
The First Responder is Rarely Trained
In most real emergencies, the first person to arrive is not a doctor or paramedic - it is usually:

  • a commuter or biker,
  • a shopkeeper,
  • a passer-by.

These individuals often lack formal first-aid knowledge. Panic, hesitation, and incorrect decisions frequently result in avoidable fatalities.

SanjeevniAI helps everyday bystanders act calmly and effectively during the crucial first minutes of a medical emergency.

Impact of the Problem
Who is affected?

  • Everyday commuters who become first responders.
  • Accident victims whose survival depends on immediate intervention.
  • Rural and semi-urban communities with limited emergency infrastructure.

Scale of Impact

  • Over 60% of India’s population lives in areas with limited emergency medical facilities (National Health Profile, 2022).
  • Only 2% of Indians are trained in CPR or basic first aid (Indian Red Cross Society, 2022).

Challenges we ran into

Key Technical Challenges & Solutions

While developing SanjeevniAI, we encountered non-obvious engineering issues that directly affected reliability, security, and real-time user experience. Two critical challenges are outlined below.


Silent Login Failures Due to Password Hash Truncation
Issue:
Users could sign up but were unable to log in, despite correct credentials. Duplicate sign-ups were blocked, confirming records existed.

Cause:
Modern werkzeug password hashing (scrypt) produces hashes ~162 characters long, but the database schema restricted the password field to 120 characters. SQLite silently truncated the hash, corrupting it and causing authentication to fail without errors.

Fix:
Expanded the password column size and regenerated the database schema.

password_hash = db.Column(db.String(256), nullable=False)

Impact:

  • Restored secure authentication
  • Prevented silent security failures
  • Improved production-readiness of the auth system

Voice Mode Forgetting Conversation Context (React Stale Closures)
Issue:
In hands-free Voice Mode, messages auto-sent after silence caused the AI to respond as if it had no prior context.

Cause:
A Web Speech API event listener captured a stale version of React state due to closure behavior inside a useEffect that ran only once.

Fix:
Used useRef to persist the latest message history without reinitializing speech recognition.

const messagesRef = useRef(messages);
useEffect(() => {
  messagesRef.current = messages;
}, [messages]);

Impact:

  • Preserved multi-turn conversational memory
  • Enabled reliable hands-free interaction
  • Stabilized async, real-time AI behavior

Lessons Learned

  • Silent failures are the most dangerous bugs — schema mismatches can break security without throwing errors
  • Modern libraries evolve faster than assumptions — defaults (e.g., hashing algorithms) must be validated against storage constraints
  • Event-driven systems demand lifecycle awareness — React closures can invalidate logic in real-time features
  • Robustness > demos — production-grade AI requires defensive engineering, not just functional outputs

Tracks Applied (1)

Best Innovation

SanjeevniAI redefines the emergency response interface by shifting the focus from passive connection (calling help) to a...Read More

Discussion

Builders also viewed

See more projects on Devfolio