LIVE ยท 49 cameras ยท YOLOv8 + FlowNet
--:--:--
LIVE
People detected
1,284
ยฑ32 margin
Avg density
2.1p/mยฒ
Comfortable
Flow speed
0.8m/s
Normal
Panic index
12%
Low risk
Active alerts
1
Last 5 min
Density heatmap โ€” live
NORMAL
LOW
CRITICAL โ–ถ = direction
Zone risk levels
5 ZONES
Camera feeds โ€” tap to expand
49 ONLINE
REC
CAM-01 ยท ZONE D
โคข tap
REC
CAM-02 ยท ZONE B
โคข tap
REC
CAM-03 ยท ZONE A
โคข tap
REC
CAM-04 ยท ZONE C
โคข tap
๐Ÿข Station controlCONNECTED
๐Ÿš” Police dispatchCONNECTED
๐Ÿฅ Medical teamSTANDBY
Detection threshold6
Confidence
94%
๐Ÿ“– CrowdSense AI โ€” Complete Feature Guide
EVERY FEATURE EXPLAINED ยท v2.4.1
๐Ÿง  What is this?

CrowdSense AI is a real-time crowd safety monitoring dashboard that simulates how AI analyses live CCTV footage at large public venues โ€” railway stations, stadiums, and festivals โ€” to detect dangerous crowd conditions before they become stampedes. In a live deployment, this connects to YOLOv8 running on GPU servers, processing 30fps video with ~190ms end-to-end latency.

๐Ÿ“Š Live Metrics Bar (top row)
๐Ÿ‘ฅ
People Detected
Total individuals detected across all camera zones using YOLOv8 object detection. The ยฑmargin shows model uncertainty. Updates every 3 frames.
๐Ÿ“
Avg Density (p/mยฒ)
Below 2 = comfortable. 4โ€“5 = slow and uncomfortable. Above 6 = dangerous โ€” the threshold where crush injuries become likely.
๐Ÿ’จ
Flow Speed (m/s)
Crowd movement speed via optical flow algorithms. Normal walk = 0.8โ€“1.4 m/s. Spike above 2+ = surge or panic. Near zero with high density = bottleneck.
๐ŸŒก
Panic Index (%)
AI composite score of directional chaos + speed variance + density. Under 30% = safe. 60โ€“80% = alert. Above 80% = evacuate immediately.
๐Ÿšจ
Active Alerts
Count of unresolved alerts in the last 5 minutes. Changes with the simulation scenario you select from the sidebar or Controls tab.
๐ŸŒก Density Heatmap
๐ŸŸขโ†’๐Ÿ”ด
Colour Scale
Green = safe. Amber = caution. Red = critical crush risk. The gradient updates every animation frame from live model output.
โ–ถ
Direction Arrows
White arrows show dominant crowd flow direction per zone via optical flow vectors. Chaotic arrows = panic. Arrows converging on a red zone = crush danger.
๐Ÿ—บ
Zone Labels (Aโ€“E)
The heatmap is overlaid on a scaled venue floor plan. Each zone maps to a physical area. Gate markers show key entry/exit points.
๐Ÿ“ Zone Risk Levels

Each of the 5 zones gets a real-time risk score (0โ€“100%) calculated from local density, flow speed, and panic index. Colour bars and badges (LOW / MOD / CRIT) update live. When a zone hits CRIT, the system triggers an alert and notifies all connected authority channels automatically.

๐Ÿ“น Camera Feeds
๐Ÿ”ด
Live Thumbnails
4 simulated CCTV feeds with animated crowd figures. Status dot colour (green/amber/red) reflects that zone's panic level. Blinking red border = alert condition.
โคข
Tap to Expand
Click or tap any camera to open a large expanded view with perspective crowd rendering, AI bounding boxes (P01, P02โ€ฆ) around each person, and live stats.
๐Ÿ”ฒ
AI Bounding Boxes
In expanded view, red boxes = people in danger zones, cyan boxes = safe zones. Each person gets a tracked ID, mirroring real YOLOv8 detection output.
โšก Right Panel (desktop) / Alerts Tab (mobile)
๐ŸŒ€
Panic Arc Meter
Semicircular gauge showing venue-wide panic index. Fills green โ†’ amber โ†’ red. Animates smoothly with every AI update.
๐Ÿ“ˆ
30-Second Trend
Sparkline chart showing panic index over the last 30 seconds. See if the situation is improving or escalating, not just the current snapshot.
๐Ÿšจ
Alert Feed
Colour-coded by severity: red border = critical (dispatch now), amber = warning, cyan = informational. Alerts are stable โ€” they do not flicker or blink.
๐ŸŽฎ Simulation Scenarios
๐ŸŸข
Normal flow
Baseline crowd movement. Density ~2.1 p/mยฒ, panic 12%. All zones green. Shows what the system looks like when everything is safe.
๐ŸŸก
Directional surge
Sudden rush in one direction โ€” e.g. a train arrives. Density spikes to 4.3, flow speed 2.4 m/s, panic 47%. Zone D goes critical.
๐Ÿ”ด
Panic event
Full crowd panic โ€” chaotic movement, density 6.9 p/mยฒ, panic 89%. All cameras alert. Cascade risk and PA notifications trigger.
๐ŸŸ 
Bottleneck
Exit congestion โ€” flow speed 0.3 m/s (near stopped) with high density. The most dangerous passive scenario โ€” crushing with barely any movement.
๐Ÿ“ฑ Mobile Layout

On phones and tablets, the dashboard switches to a tab-based layout. Use the nav bar at the top to switch between:

๐Ÿ“Š
Dashboard tab
Shows the heatmap + zone risk levels โ€” the two most critical views for rapid assessment.
๐ŸŒก
Heatmap tab
Full-width density heatmap with colour legend and direction arrows.
๐Ÿ“น
Cameras tab
All 4 camera feeds. Tap any to open the full expanded modal view.
๐Ÿšจ
Alerts tab
Alert feed, 30s panic trend chart, and authority channel status.
โš™๏ธ
Controls tab
Scenario selector, AI sensitivity slider, response action buttons.