Inspiration

Child safety and rapid emergency response remain critical concerns in Bangladesh. Traditional safety apps are often slow to navigate during high-stress situations. We built SafeChild to provide an immediate, hands-free child security platform that combines voice recognition, live GPS tracking, and real-time AI medical guidance.

What it does

SafeChild serves as an all-in-one emergency and safety companion:

  • Voice-Activated SOS System: Listens continuously for the trigger phrase "Help Help" via Web Speech APIs and automatically routes calls to emergency contacts.
  • Live Geolocation Mapping: Integrates Leaflet.js and OpenStreetMap to render real-time user displacement with custom electric cyan pulsing markers.
  • First Aid Conversational AI: Powered by Gemini 2.5 Flash to deliver empathetic, step-by-step first-aid guidance in both Bangla and English.
  • National Safety Redirection: Includes direct fallback controls to route emergency actions to the 999 National Emergency Desk.

How we built it

  • Frontend: Built using React, TypeScript (App.tsx, main.tsx), and Tailwind CSS with a dark Midnight Blue and Neon Red aesthetic.
  • AI & Geospatial: Integrated @google/genai (Gemini 2.5 Flash) for bilingual medical guidance, paired with HTML5 Geolocation and Leaflet.js.
  • Devin Integration: Devin AI was utilized to audit Web Speech API event listeners, optimize edge execution handlers, and refactor alternating emergency contact routing state.

Challenges we ran into

  • Managing continuous background audio tokens for the "Help Help" voice trigger without causing high CPU usage or browser throttling.
  • Ensuring zero-latency fallback between local contact numbers and national emergency services during connection drops.
  • Crafting medical prompt boundaries for Gemini 2.5 Flash to ensure clear, empathetic, and safe first-aid walkthroughs without hallucinations.

Accomplishments that we're proud of

  • Successfully implemented hands-free audio emergency triggers alongside live dynamic map tracking.
  • Designed an accessible, high-contrast Neon-Soft Minimalist UI optimized for fast stress-free navigation.
  • Delivered a fully localized emergency safety solution specifically built for Bangladesh's infrastructure.

What's next for SafeChild

  • Geofencing Alerts: Allow parents to mark safe zones and receive automated notifications if a child leaves the perimeter.
  • Offline First-Aid Mode: Cache core medical walkthrough steps locally so first-aid advice is accessible without cellular data.

Built With

Share this project:

Updates

Submission history