Skip to content

Yash55-max/FlowSync-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ FlowSync AI โ€” Real-Time Crowd Intelligence Platform

CI

FlowSync AI is a real-time crowd intelligence system designed for large-scale venues like stadiums, concerts, and public events.

It enables density-aware routing, queue prediction, and operational decision-making using live or simulated crowd dataโ€”helping organizers manage 100,000+ attendees efficiently in real time.


๐Ÿง  Problem

Large events face:

  • Unpredictable crowd congestion
  • Long queues at food/restrooms
  • Unsafe bottlenecks during peak moments
  • Lack of real-time visibility for operators

Most systems today are reactive, not predictive.


โšก Solution

FlowSync AI is predictive + adaptive.

It continuously:

  • Monitors crowd density
  • Predicts congestion hotspots
  • Suggests optimal routes
  • Recommends operator interventions

๐ŸŽฏ Key Features

๐Ÿ“ Real-Time Crowd Intelligence

  • Zone-based density heatmaps
  • Live crowd simulation / ingestion
  • Hotspot detection

๐Ÿงญ Smart Routing Engine

  • Density-weighted pathfinding
  • Avoids congested zones dynamically
  • Phase-aware navigation (entry / halftime / exit)

โฑ Queue Intelligence

  • Predict wait times for stalls/restrooms
  • Suggest faster alternatives

๐Ÿง‘โ€๐Ÿ’ผ Operator Dashboard

  • High-risk zones detection
  • Actionable interventions
  • Real-time alerts system

๐ŸŽฎ Demo Scenarios (Hackathon Ready)

  • Surge simulation
  • Food rush spike
  • Emergency evacuation mode
  • AI optimization mode

๐ŸŸ Real-World Context

Tested using Narendra Modi Stadium (Ahmedabad) layout:

  • Real geographic structure
  • Gate-based entry/exit logic
  • Zone-mapped crowd simulation

๐Ÿ“ Supported Locations

๐ŸŸ Stadiums

  • Narendra Modi Stadium
  • Wembley Stadium
  • MetLife Stadium
  • Melbourne Cricket Ground
  • Camp Nou

๐Ÿ—บ Places / Landmarks

  • Times Square
  • Burj Khalifa
  • Eiffel Tower
  • Tirupati Temple
  • Kumbh Mela Grounds

๐Ÿงฑ Tech Stack

Layer Tech
Frontend React + TypeScript + Vite
Backend FastAPI (Python)
Deployment Google Cloud Run
Maps Google Maps Platform
Algorithms Grid-based pathfinding + density cost weighting
Data Mode Hybrid (Simulated + Live Ingest API)

๐ŸŒ Live Deployment


โš™๏ธ System Architecture

Frontend (React) -> Backend API (FastAPI) -> Crowd Simulator / Live Data Ingestion -> Routing + Prediction Engine


๐Ÿš€ Getting Started (Local)

Backend

cd backend
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000

Frontend

cd frontend
npm install
npm run dev

Access


๐Ÿ”Œ API Highlights

Endpoint Description
/snapshot Current crowd + queue state
/heatmap Zone density map
/journey Smart route planning
/venue-map Venue structure
/staff-actions AI operator suggestions
/alerts Real-time alerts
/demo-control Trigger simulation scenarios
/ingest/live-snapshot Push real telemetry
/data-source Live vs simulated data status

๐Ÿ“ก Live Data Ingestion Example

{
  "generated_at": "2026-04-15T12:30:00Z",
  "zones": [
    { "zone_id": "zone-1", "density_score": 88 }
  ],
  "queues": [
    { "stall_id": "stall-1", "wait_time_minutes": 12 }
  ]
}

๐Ÿงช Demo Scenarios

Trigger via /demo-control:

  • surge-zone-1
  • food-rush
  • emergency-mode
  • optimize-crowd

๐Ÿ† Why This Project Stands Out

  • Real-world venue simulation (not dummy/demo-only data)
  • AI-driven routing and prediction logic
  • Full-stack deployment on Google Cloud Run
  • Covers both attendee experience + operator decision-making
  • Designed to scale with real telemetry (IoT, CCTV, WiFi tracking)

โš ๏ธ Important Notes

  • API keys (Google Maps) are restricted by domain
  • Backend CORS is configured for the deployed frontend
  • System works in simulated mode by default if no live data is ingested

๐Ÿ”’ License

MIT License

About

FlowSync AI improves the physical event experience for attendees at large-scale sporting venues. The system should address challenges such as crowd movement, waiting times, and real-time coordination, while ensuring a seamless and enjoyable experience.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors