ShieldAI
Intelligence that acts when you can’t.
The problem ShieldAI solves
Traditional emergency response relies heavily on a victim's ability to manually dial for help and provide their precise location—actions that are often impossible during a high-stress crisis. ShieldAI automates the "cry for help" by turning mobile devices into intelligent sensors.
🧠 Automated Crisis Intelligence
Voice-Activated Help: Eliminates the need to unlock a phone; Whisper AI listens for distress keywords even when the user cannot reach their device.
Wearable Integration: Automatically triggers alerts based on physiological markers or sudden movements (simulated via wearable.js).
⏱️ Rapid Dispatch & Response
Live Map Visualization: Authorities see a real-time "Red Alert" pin, removing the delay of verbal location descriptions.
Intelligent Prioritization: The AI scoring engine filters through data to give responders a "Danger Score," helping them triage the most life-threatening cases first.
Challenges we ran into
Building an emergency response system requires extreme reliability. Here are the primary hurdles we overcame during development:
- Real-Time Latency vs. AI Accuracy
The Challenge: Processing audio through OpenAI's Whisper model can be resource-intensive. In an emergency, a 5-second delay in transcription is too long.
The Solution: We optimized the pipeline by using the base model for faster inference and integrated Socket.io to stream updates to the authority dashboard immediately as results were generated, rather than waiting for full audio clips to upload.
- Handling High-Frequency Socket Events
The Challenge: When simulating wearables (wearable.js) or tracking live GPS (location.py), the server was initially flooded with too many small data packets, causing the live map to stutter.
The Solution: We implemented throttling on the frontend to limit GPS updates to once every 3 seconds unless the "Danger Score" exceeded a certain threshold, in which case the frequency increases for high-precision tracking.
- State Management Across Three Roles
The Challenge: Ensuring that an Admin, an Authority, and a User all saw the same "Case Status" in real-time was difficult with standard REST APIs.
The Solution: We moved the entire Case lifecycle (Trigger → Dispatch → Resolve) to a centralized event bus using Flask-SocketIO. This ensures that when an Authority clicks "Dispatch," the User's UI updates instantly to show that help is on the way.
- Cross-Origin Media Permissions
The Challenge: Modern browsers have strict security policies regarding microphone access and background location tracking.
The Solution: We had to implement robust permission handling in panic.js and ensured the site served over HTTPS (even in development using self-signed certificates) to allow the browser to keep the microphone active during a detected distress event.
