Skip to content

sankhya007/Crowd-Evac

Repository files navigation

🚨 TRAGIC — Crowd Evacuation Intelligence System

Traffic Analysis with Generative Intelligence and Crowd Simulation
Simulate • Analyze • Optimize Real-World Evacuation Systems


🧭 Overview

TRAGIC is a floorplan-aware crowd evacuation simulation engine designed to model realistic human movement, hazard propagation, and egress performance.

Unlike traditional simulators, TRAGIC not only models evacuation dynamics but also analyzes system inefficiencies and generates actionable architectural recommendations.


⚡ Key Capabilities

  • 🧍 Agent-Based Simulation — Models individual human behavior with dynamic decision-making
  • 🔥 Hazard Modeling — Fire spread, smoke diffusion, and exit failure simulation
  • 🧠 Intelligent Routing — Agents select exits based on distance, congestion, and environment
  • 📊 Analytics Engine — Generates time-series KPIs and evacuation metrics
  • 📍 Bottleneck Detection — Identifies congestion hotspots automatically
  • 🧠 AI-Driven Recommendations — Suggests structural improvements to optimize evacuation

📊 System Visualization


🔬 Simulation Outputs

🧭 Agent Movement Patterns

🌡️ Crowd Density Distribution

🧠 Floorplan Optimization Insights


📈 Example Results

  • 🚶 200 agents simulated
  • 134 successfully evacuated (67%)
  • ⚠️ Peak congestion observed during mid-phase evacuation
  • 🔥 High-density hotspots identified at critical junctions
  • 🚪 Significant exit utilization imbalance detected

🧠 System Recommendations

  • Increase corridor width at choke points
  • Redistribute flow toward underutilized exits
  • Improve turn/merge geometry to reduce friction
  • Remove local obstructions near high-density zones

🎯 Engineering Value

This project demonstrates:

  • Design of multi-agent systems
  • Implementation of real-time simulation engines
  • Integration of spatial analytics + visualization
  • Application of optimization and decision-making logic
  • End-to-end pipeline from simulation → analysis → recommendation

🧩 Technical Highlights

  • Hybrid motion modeling (social-force + pathfinding)
  • Grid-based spatial environment representation
  • Heatmap-based density and behavioral analysis
  • Automated report generation with actionable insights
  • Scalable architecture for large agent populations

🚀 Generated Outputs

Output File Description
agent_paths.png Agent trajectories and flow patterns
density_heatmap.png Crowd congestion visualization
floorplan_improvement_overlay.png Suggested structural improvements
floorplan_analytics.csv Time-series evacuation metrics

⚙️ Running the Simulation

python main.py floorplan.jpg

📌 Use Cases

  • Building safety and evacuation planning
  • Architectural design optimization
  • Emergency response simulation
  • Research in crowd dynamics and behavior

👨‍💻 Author

Sankhyapriyo Dey Computer Science Engineer | Systems & Simulation Developer


About

floorplan model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages