Anomaly Detection in Crowds
A deep learning pipeline for detecting abnormal crowd behavior in public spaces. The system trains a convolutional neural network on historical crowd footage to learn what normal activity looks like, then scores incoming frames against that learned baseline in real time. Anomalies are surfaced with configurable sensitivity thresholds and visualized as frame-level heatmaps that highlight exactly where unusual activity is occurring, making it actionable for safety operators rather than just a binary alert.
Inside the build
Architecture, one step at a time.
Historical crowd footage establishes a baseline; new frames are scored and surfaced as visual anomalies.
Select a component, or use Next for a guided tour. Connections show the flow between components.
Prepare crowd footage
Historical footage provides examples of normal crowd activity for the learning pipeline.
- What comes in
- Historical crowd video
- What comes out
- Training frames representing baseline behavior
This shows the recorded computer-vision pipeline. It does not analyze your camera or claim a measured safety outcome.
The details
What went into the build.
Tools & technologies
- Python
- Deep Learning
- CNNs
- PyTorch
- OpenCV
- Image Processing
Key highlights
- CNN-based baseline behavior learning from historical crowd footage
- Real-time image correlation for anomaly scoring
- Configurable sensitivity thresholds for different deployment environments
- Frame-level anomaly heatmap visualization
- Batch and streaming inference modes