Skip to content

Chethan-3/LifeBridge-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ‰ LifeBridge AI

Emergency Response & Disaster Assistant โ€” India

AI-powered disaster management platform built for the Agents for Good track.
When floods, earthquakes, cyclones, or accidents strike โ€” LifeBridge AI helps citizens find shelters, check safe roads, coordinate rescue, and access life-saving first aid instructions.


๐ŸŽฏ Problem Statement

When disasters strike in India โ€” Mumbai floods, earthquake tremors, Arabian Sea cyclones, or industrial chemical leaks โ€” citizens face critical information gaps:

โ“ Question Without LifeBridge AI With LifeBridge AI
Where are shelters? Unknown, panic-driven Live map with capacity & supply data
Which roads are safe? No centralized data Color-coded route status with real-time updates
How to get medical help? Overwhelmed helplines AI agent with first-aid playbooks + voice readout
What supplies do I need? No guidance Personalized emergency kit generator
Is my family safe? Unreachable Satellite Family Beacon Tracker

โœจ Features

๐Ÿ—บ๏ธ 1. Live Situation Map (Leaflet.js)

  • Dark-mode interactive map centered on Mumbai
  • Color-coded road overlays: ๐ŸŸข Safe ยท ๐Ÿ”ต Flooded ยท ๐Ÿ”ด Blocked ยท ๐ŸŸก Caution
  • Shelter markers with real-time occupancy, supplies, and amenity details
  • Hazard zone polygons (flood inundation, seismic epicenters, chemical plumes)
  • SOS Beacon markers with pulsing ripple animations

๐Ÿค– 2. AI Emergency Agent (Conversational)

  • Natural Language Processing powered rule-based emergency response engine
  • Understands queries like: "Is WEH safe?", "Where are shelters near Bandra?", "How do I do CPR?"
  • Cross-references live scenario state (shelter capacity, road blockages) for context-aware answers
  • ๐Ÿ”Š Text-to-Speech: Click any response to hear it read aloud via Web Speech API

๐Ÿ“ก 3. Disaster Scenario Simulator

Trigger 5 realistic disaster simulations in real-time:

Scenario Trigger
๐ŸŒŠ Mumbai Monsoon Waterlogging BMC Red Alert, LBS Marg flooded
๐Ÿš๏ธ Magnitude 6.8 Earthquake Koyna Fault seismic wave, WEH blocked
๐ŸŒ€ Arabian Sea Cyclone 'Tauktae' Sea Link closed, Bandra coastal surge
โ˜ฃ๏ธ Chembur Refinery Gas Leak EEH blocked, toxic plume polygon
โœ… Normal Operations Baseline satellite monitoring

๐Ÿ‘ช 4. Family Safety Net (Beacon Tracker)

  • Satellite-linked family member status (Safe / In Shelter / Help Request)
  • Real-time battery level and last-ping timestamp
  • Locate on Map button pans the Leaflet map to their coordinates
  • Ping Device to confirm connectivity and update signal timestamp

โš ๏ธ 5. Citizen Hazard Reporter

  • Submit crowdsourced hazard reports (flooding, fallen trees, exposed wires, fire, chemical leaks)
  • Reports appear instantly on the live situation map as colored warning markers
  • Automatically creates a volunteer dispatch task for the reported hazard

๐Ÿค 6. Volunteer Response Console

  • Active community tasks with severity levels (Critical / High / Medium)
  • Claim Dispatch to accept a task (delivers supplies, clears debris)
  • Complete a task โ†’ shelter supply stocks update in real-time

๐Ÿš 7. Autonomous Drone Aid Dispatch

  • Request emergency supply air-drops (insulin, infant formula, water purification kits)
  • Simulated drone flight progress animation (dispatch โ†’ navigation โ†’ delivery)
  • Delivery confirmation feeds the regional alert log

๐Ÿ“‹ 8. Emergency Supply Kit Generator

  • Calculates water, food, and medical needs based on household size
  • Generates context-specific checklists for Flood / Earthquake / Cyclone scenarios
  • Includes scenario-specific items (water purification tablets, gas shutoff wrench, sandbags)

๐Ÿฉบ 9. First Aid & Survival Playbooks

  • 5 fully detailed playbooks with step-by-step instructions:
    • ๐Ÿซ€ CPR Protocol (calls 112/108 โ€” Indian National Emergency)
    • ๐Ÿฉธ Heavy Bleeding Control
    • ๐Ÿ”ฅ Thermal Burns Treatment
    • ๐Ÿงฑ Earthquake Survival (Drop-Cover-Hold)
    • ๐ŸŒŠ Monsoon & Urban Flood Safety
  • ๐Ÿ”Š Voice Readout button on every playbook card

๐Ÿ”‹ 10. Satellite Link Toggle (Offline Mode)

  • Toggle between Satellite ONLINE and Offline Cache mode
  • Simulates connectivity loss during deep disaster scenarios
  • Playbooks remain accessible from local cache

๐Ÿ—๏ธ System Architecture

graph TD
    A[๐Ÿ‘ค Citizen / Responder] -->|Web Browser| B[LifeBridge AI Dashboard]

    B --> C[๐Ÿ—บ๏ธ Live Situation Map\nLeaflet.js + CartoDB Dark Tiles]
    B --> D[๐Ÿค– AI Emergency Agent\nNLP Parser + Web Speech API]
    B --> E[๐Ÿ“ก Scenario Simulator\nDisaster Config Engine]
    B --> F[๐Ÿ‘ช Family Safety Net\nBeacon Tracker]
    B --> G[โš ๏ธ Citizen Hazard Reporter\nMap Integration]
    B --> H[๐Ÿฉบ First Aid Playbooks\nVoice Synthesis]

    E -->|Override Data| I[(Disaster Scenarios DB\ndata.js)]
    I --> C
    I --> D

    C -->|Markers + Polygons| J[Shelter Markers\nRoad Overlays\nHazard Zones\nSOS Beacons]
    D -->|Query Parsing| K[Shelter Lookup\nRoad Status\nFirst Aid Guide\nFamily Status]
    G -->|Submit Report| C
    G -->|Create Task| L[๐Ÿค Volunteer Console]
    L -->|Claim & Complete| I
Loading

๐Ÿ”„ Emergency Response Workflow

flowchart LR
    A([๐Ÿšจ Disaster Event]) --> B{Select Scenario\nin Simulator}
    B --> C[Flood ๐ŸŒŠ]
    B --> D[Earthquake ๐Ÿš๏ธ]
    B --> E[Cyclone ๐ŸŒ€]
    B --> F[Chemical Spill โ˜ฃ๏ธ]

    C & D & E & F --> G[Map Hazard\nZones Rendered]
    C & D & E & F --> H[Road Overlays\nUpdated]
    C & D & E & F --> I[Alert Feed\nBroadcasted]
    C & D & E & F --> J[Telemetry Charts\nUpdate]

    G & H & I & J --> K{Citizen Action}

    K -->|Needs Shelter| L[๐Ÿฅ Shelter Registry\nLive Capacity View]
    K -->|Needs Route| M[๐Ÿ›ฃ๏ธ Road Status\nSafe Corridors]
    K -->|Needs Help| N[๐Ÿค– Ask AI Agent\nVoice Response]
    K -->|Medical Emergency| O[๐Ÿฉบ First Aid Playbook\nAudio Read-aloud]
    K -->|Danger Spotted| P[๐Ÿ“ Submit Hazard\nReport on Map]
    K -->|Critical Distress| Q[๐Ÿ†˜ SOS Beacon\nBroadcast]

    P --> R[๐Ÿค Volunteer Task\nCreated]
    R --> S[Community\nResponder Claims Task]
    S --> T[โœ… Task Completed\nShelf Stocks Updated]
Loading

๐Ÿ—‚๏ธ Project File Structure

LifeBridge-AI/
โ”‚
โ”œโ”€โ”€ ๐Ÿ“„ index.html          โ† Main SPA dashboard layout & navigation
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ css/
โ”‚   โ””โ”€โ”€ ๐ŸŽจ style.css       โ† Glassmorphism dark design system
โ”‚                            CSS variables, animations, responsive grid
โ”‚
โ””โ”€โ”€ ๐Ÿ“ js/
    โ”œโ”€โ”€ ๐Ÿ—„๏ธ data.js         โ† Mumbai shelters, roads, family statuses,
    โ”‚                        first-aid playbooks, disaster scenarios
    โ”‚
    โ”œโ”€โ”€ ๐Ÿค– agent.js        โ† NLP emergency query parser
    โ”‚                        Web Speech API voice synthesis
    โ”‚
    โ”œโ”€โ”€ ๐Ÿ—บ๏ธ map.js          โ† Leaflet.js map controller
    โ”‚                        Shelter markers, road polylines,
    โ”‚                        hazard polygons, SOS beacons
    โ”‚
    โ””โ”€โ”€ โš™๏ธ app.js          โ† Core app state controller
                             Tab routing, SVG telemetry charts,
                             volunteer console, aid dispatch,
                             checklist generator, event handlers

๐Ÿš€ Quick Start (Run Locally)

Prerequisites

  • Python 3.x (for local dev server) or any HTTP server
  • A modern web browser (Chrome, Edge, Firefox)

Steps

# 1. Clone the repository
git clone https://github.com/YOUR_USERNAME/LifeBridge-AI.git

# 2. Navigate into the project
cd LifeBridge-AI

# 3. Start a local server
python -m http.server 8000

# 4. Open in browser
# Navigate to: http://localhost:8000

No build tools required. The app is 100% vanilla HTML, CSS, and JavaScript.


๐Ÿ› ๏ธ Technology Stack

Layer Technology Purpose
Structure HTML5 Semantic Dashboard layout & accessibility
Styling Vanilla CSS3 Glassmorphism, animations, responsive grid
Mapping Leaflet.js v1.9.4 Interactive dark-mode situation map
Map Tiles CartoDB Dark Matter Dark theme base tiles
Typography Google Fonts (Inter, Outfit) Premium UI typography
Voice Web Speech API Text-to-speech emergency readouts
Data JSON (local) Shelters, roads, scenarios, playbooks
Charts Inline SVG Real-time telemetry micro-charts

๐Ÿ‡ฎ๐Ÿ‡ณ Indian Emergency Helplines

Service Number
๐Ÿ†˜ National Emergency 112
๐Ÿš‘ Ambulance 108
๐Ÿ”ฅ Fire Brigade 101
๐Ÿ‘ฎ Police 100
๐Ÿ—๏ธ NDRF Helpline 011-24363260
๐ŸŒง๏ธ BMC Disaster Control 1916
๐ŸŒ€ NDMA Helpline 1078

๐Ÿ“ Coverage Area

The current simulation is centered on Mumbai, Maharashtra with data covering:

  • Bandra Reclamation Safe Haven
  • Dharavi Sports Complex Relief Hub
  • Andheri Sports Complex Center
  • Ghatkopar East Emergency Depot
  • Key corridors: Bandra-Worli Sea Link ยท WEH ยท LBS Marg ยท EEH ยท Sion-Panvel Expressway

๐Ÿ—บ๏ธ Agent Query Examples

๐Ÿ’ฌ "Where are the shelters?"          โ†’ Lists all shelters with capacity & stock
๐Ÿ’ฌ "Is WEH safe?"                     โ†’ Western Express Highway status
๐Ÿ’ฌ "Is LBS Marg flooded?"             โ†’ LBS Marg current condition
๐Ÿ’ฌ "CPR guide"                        โ†’ Step-by-step CPR with voice readout
๐Ÿ’ฌ "Is Priya safe?"                   โ†’ Family beacon tracker lookup
๐Ÿ’ฌ "How to treat bleeding?"           โ†’ Bleeding control playbook
๐Ÿ’ฌ "What happened?"                   โ†’ Current scenario operational briefing
๐Ÿ’ฌ "How can I volunteer?"             โ†’ Active community dispatch tasks

๐Ÿ† Kaggle Capstone โ€” Agents for Good Track

This project was built for the Kaggle Capstone Project under the Agents for Good track, demonstrating how AI agents can:

  • ๐Ÿค– Parse natural language queries in emergency contexts
  • ๐Ÿ—บ๏ธ Cross-reference live situational data (shelter capacity, road status)
  • ๐Ÿ”Š Synthesize voice guidance using browser-native Web Speech API
  • ๐Ÿ“ก Coordinate citizen response (hazard reporting, volunteer dispatch, aid requests)
  • ๐Ÿฉบ Deliver life-saving information through structured, accessible playbooks

๐Ÿ“œ License

This project is open-source and available under the MIT License.


Built with โค๏ธ for Disaster Resilience in India

LifeBridge AI โ€” Connecting Citizens to Safety

About

AI-powered Emergency Response and Disaster Assistant for India | Agents for Good | Kaggle Capstone

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors