Repository β’ Submission Showcase β’ Demo App
CrisisMind AI is an emergency intelligence platform engineered using Google's AI and developer stack. When a citizen or field responder captures or uploads a photo of an accident, natural disaster, or fire, CrisisMind AI analyzes the scene in under 10 seconds to:
- Detect Hazards & Objects: Identifies structural damage, fire/smoke risk, fluid leaks, crushed vehicles, and road blockades.
- Estimate Casualty Triage: Counts occupants, identifies severe physical injuries, and recommends specialized trauma services.
- Generate Executive AI Incident Summaries: Synthesizes complex scene context into concise, high-priority briefs.
- Forecast Predictive Risk Progression: Computes a time-series escalation timeline (0β2m, 2β5m, 5β10m).
- Connect Live Response Nodes: Locates nearby hospitals, police hubs, 108 ambulances, and relief shelters via Google Maps.
- Provide Hands-Free Voice Guidance: Delivers real-time spoken instructions using Web Speech synthesis.
- Broadcast Multilingual SOS Alerts: Translates emergency notifications into regional languages (Hindi, Marathi, Gujarati, Tamil, etc.).
- Aryan Meena β Lead Developer (
aryan.meena@crisismind.ai) - Lakshaya Kumawat β Collaborator (
lakshaya.kumawat@crisismind.ai)
- Input Scene: Red hatchback with severe side compression, white passenger sedan, downed motorcycle, crosswalk asphalt, and gathered bystanders at St. Wilfred College intersection.
- AI Analysis Output:
- Severity: π΄ HIGH / CRITICAL (97% Confidence)
- Detected Vehicles: 3 Vehicles (Red Hatchback, White Sedan, Motorcycle)
- Identified Hazards: Multi-Vehicle Crash, Intersection Traffic Blockade, Radiator & Fluid Leakage, Shattered Glass Debris.
- Immediate Protocol: Divert oncoming intersection traffic, immobilize motorcyclist cervical spine, disconnect car battery cables, request 108 Trauma Ambulance.
- Input Scene: Residential neighborhood showing 45Β° tilted two-story buildings, collapsed tile roofs, downed utility lines, and debris blocking narrow access roads.
- AI Analysis Output:
- Severity: π΄ CRITICAL (98% Confidence)
- Detected Objects: Tilted Two-Story House, Collapsed Tile Roof, Downed Utility Lines, Rubble Pile, Safety Cones.
- Primary Hazards: Structural Collapse Hazard, Tilted Leaning Buildings, Downed Live Power Lines, Road Debris Blockade.
- Immediate Protocol: 30-meter exclusion perimeter around leaning buildings, isolate local electrical grid, deploy Urban Search and Rescue (USAR) acoustic search probes.
| Component | Tool / Technology | Purpose |
|---|---|---|
| Vision & Multimodal AI | Gemini 2.0 Flash (@google/genai) |
Analyzes scene photos with structured JSON schema for instant triage. |
| Mapping & Navigation | Google Maps Embed API | Displays interactive maps, nearby response units, and GPS routing. |
| UI Design System | Material Design 3 + Glassmorphism | Modern Google dark theme (#0F172A) with Google brand accents (#4285F4, #EA4335, #FBBC05, #34A853). |
| Frontend Framework | React 18 + Vite 8 + TypeScript | High-performance SPA with instant HMR and strict type safety. |
| Styling & Animations | Tailwind CSS v4 + Framer Motion | Micro-interactions, radar sweeps, and responsive glassmorphic cards. |
| Voice Guidance | Web Speech Synthesis API | Spoken audio readouts for hands-free rescue operation. |
| Analytics Dashboard | Recharts | Telemetry charts showing incident distribution, risk levels, and response times. |
- Real-time webcam integration via
navigator.mediaDevices.getUserMediaallows first responders to capture snapshot photos directly from their phone or computer camera. - Drag-and-drop file uploader supporting PNG, JPG, and JPEG up to 15MB.
- Executive AI Incident Summary: Concise 2-sentence situational briefing powered by Gemini multimodal reasoning.
- Injury & Hazard Triage: Identifies cervical spine trauma, limb fractures, dust inhalation, fuel leaks, and fire risks.
- Occupant & Vehicle Detection: Quantifies people count and vehicle involvement.
- Time-series risk progression model forecasting threats:
- 0 β 2 Min: Immediate threat containment & perimeter isolation.
- 2 β 5 Min: Secondary escalation risks & traffic bottleneck prevention.
- 5 β 10 Min: Medical triage window & rescue unit arrival stabilization.
- Interactive map embedding nearby emergency infrastructure:
- π₯ Level-1 Trauma Centers & Super Specialty Hospitals
- π Central Control Police Hubs (112)
- π 108 Advanced Life Support Ambulances
- βΊ Civil Defense Relief Shelters
- One-tap alert generator with single-click Copy, WhatsApp sharing, and SMS dispatch.
- Translates messages on the fly into Hindi, Marathi, Gujarati, Tamil, and English.
- Real-time analytics dashboard displaying severity breakdowns, incident categories, and service dispatch metrics.
- Node.js (v18 or higher)
- npm or yarn
-
Clone the Repository
git clone https://github.com/Aryan-sourcee/Google_X_JECRC.git cd Google_X_JECRC -
Install Dependencies
npm install
-
Configure Environment Variables Create a
.envfile in the project root:VITE_GEMINI_API_KEY="your_gemini_api_key_here" VITE_GOOGLE_MAPS_API_KEY="your_google_maps_api_key_here"
-
Run Development Server
npm run dev
Open your browser at
http://localhost:5173/. -
Build for Production
npm run build
Google_X_JECRC/
βββ src/
β βββ assets/ # Emergency disaster & crash test images
β β βββ intersection-car-crash.png # Multi-vehicle crash demo image
β β βββ earthquake-disaster.png # Structural collapse demo image
β βββ components/ # React views & UI components
β β βββ Header.tsx # Google-styled main menu bar & status pills
β β βββ BottomNav.tsx # Mobile navigation bar
β β βββ SplashView.tsx # Hero landing screen & team credits
β β βββ HomeDashboardView.tsx # Responder control dashboard
β β βββ UploadView.tsx # Drag & drop uploader + webcam camera modal
β β βββ ScanningOverlayView.tsx # 360Β° radar sweep & progress gauge
β β βββ ResultsView.tsx # Emergency analysis & AI incident summary
β β βββ IncidentTimeline.tsx # Time-series forecasting cards
β β βββ MapServicesView.tsx # Google Maps Live Embed
β β βββ SOSGeneratorView.tsx # Multilingual SOS alert box
β β βββ VoiceAssistantView.tsx # Web Speech audio guidance
β β βββ HistoryView.tsx # Searchable emergency log history
β β βββ AnalyticsDashboardView.tsx # Recharts telemetry dashboard
β β βββ LoginModal.tsx # Team member profile switcher
β βββ data/ # Sample incident presets & nearby services
β βββ services/ # Gemini API & Web Speech services
β β βββ gemini.ts # Gemini 2.0 Flash integration & prompt schema
β β βββ speech.ts # Web Speech synthesis module
β βββ types/ # TypeScript interfaces & types
β βββ App.tsx # Main routing & application state
β βββ index.css # Design tokens & Tailwind CSS v4 setup
β βββ main.tsx # Application entry point
βββ AI_STUDIO_SHOWCASE.md # Google AI Studio submission package & system prompt
βββ README.md # Project documentation with scenario images
βββ vite.config.ts # Vite build configuration
Built for the Google Hackathon & Ecosystem Showcase. Special thanks to Google AI Studio, the Gemini API team, and Google Maps Platform.
Developed by Aryan Meena and Lakshaya Kumawat.

