The life saver
WHERE AMBULANCES CAN'T GO. WE DO.
Created on 28th February 2026
•
The life saver
WHERE AMBULANCES CAN'T GO. WE DO.
The problem The life saver solves
In real-life emergency situations, especially in public places like railway stations, rural areas, or accident-prone zones, medical help often arrives too late. There is a critical period known as the “Golden Hour” during which immediate medical attention can significantly increase survival chances. However, existing emergency systems rely heavily on manual phone calls, delayed ambulance dispatch, traffic conditions, and untrained bystanders. During this waiting time, patients often receive no professional guidance, and valuable minutes are lost. Our project, The Lifesavers, addresses this gap by initiating intelligent emergency assistance the moment an SOS button is pressed. It instantly captures live GPS location, identifies the nearest hospitals dynamically, activates AI-based visual monitoring using OpenCV and MediaPipe, and connects the user to a voice-based AI emergency assistant. The system detects fall incidents, eye closure (possible unconsciousness), and lack of motion in real time, while simultaneously allowing the user to verbally describe their condition and receive AI-guided medical instructions. This transforms the traditional passive waiting period into an active, AI-assisted response phase. Instead of waiting helplessly for help, the patient receives immediate monitoring, guidance, and hospital coordination, making emergency response faster, safer, and smarter. The system can be used in railway stations, campuses, offices, rural areas, elderly care settings, and accident scenarios, significantly reducing panic, confusion, and response delay.
Challenges we ran into
While building this project, we encountered several technical challenges that required careful debugging and architectural improvements. One major issue involved backend routing conflicts in Express, where API requests were returning HTML instead of JSON due to incorrect middleware ordering. This resulted in “Unexpected token <” errors and 404 issues. We resolved this by restructuring the middleware flow so that API routes were registered before static file serving. Another challenge was integrating real-time hospital discovery using the Overpass API, which occasionally returned 504 timeout errors due to heavy queries. We optimized our search radius, added error handling, and implemented fallback logic to maintain system stability. We also faced module dependency errors such as “Cannot find module 'openai'” during AI integration, which we fixed by correctly installing packages in the project root and configuring environment variables. Synchronizing multiple real-time systems — camera feed, OpenCV analysis, speech recognition, and AI responses — was technically demanding, as it required proper asynchronous handling to prevent conflicts and delays. We solved this by separating the visual monitoring loop, voice assistant events, and AI request processing into structured async flows. Additionally, we identified and fixed duplicate route definitions in our SOS backend that were causing unpredictable behavior. Through systematic debugging, clean code refactoring, and structured backend architecture, we successfully stabilized the entire system into a functional real-time AI emergency response platform.
Tracks Applied (1)
Best Beginners' Team
Technologies used
