CrowdSense
AI that sees the crowd before it forms.
Created on 6th December 2025
•
CrowdSense
AI that sees the crowd before it forms.
The problem CrowdSense solves
Cities today face a serious challenge when it comes to understanding and managing crowd movement in real time. CCTV cameras are installed everywhere, but they only record video and humans cannot manually monitor hundreds of screens at once. This results in delayed responses during festivals, protests, public gatherings, traffic congestion and emergency situations. There is no unified system that combines camera footage, sensor data and weather information to measure crowd density accurately. There is also no prediction system that can warn authorities before a crowd becomes uncontrollable. Because of this, police departments often react late, which increases the chance of stampedes, mismanagement and safety risks.
Civilians also face problems in crowded cities. They currently rely on guesswork or normal navigation apps that show only traffic and not the actual crowd or safety level of an area. People have no guideline to choose a safer and faster route based on real crowd conditions, environmental readings or predicted congestion.
Our project solves this gap by converting normal CCTV cameras into an AI powered monitoring network that detects people, measures the density of every area and predicts future crowd levels using TCN models. We combine camera analytics with sensor readings like noise, temperature, air quality and PIR based human activity so that the crowd calculation is more reliable. We also include real time weather information to understand outdoor conditions more accurately. This blended intelligence helps authorities take action early instead of reacting late.
The police control application provides a live city map with color coded crowd zones in red, yellow and green along with camera feeds, sensor readings and automatic alerts for barricading or team deployment. The civilian app works like a smarter navigation system that not only finds routes based on distance but also checks predicted crowd levels and weather conditions to guide users safely and comfortably.
In simple words, the project solves the problem of delayed awareness, poor real time crowd intelligence and the absence of a predictive safety system for both authorities and citizens. It creates a safer, smarter and more manageable city environment by turning raw surveillance data into live actionable intelligence.
Challenges we ran into
One of the biggest challenges was combining data from multiple sources in a synchronized and meaningful way. The CCTV person detection model works in continuous frames, while sensors like PIR, noise and temperature produce data at different intervals. Ensuring that each data stream aligned correctly for accurate prediction required careful timing logic and a stable data pipeline.
Another major challenge was handling the behaviour of the PIR sensor. PIR sensors produce interrupts in a very unpredictable pattern because of their internal timing and retriggering limitations. At first, the PIR was missing multiple triggers while other sensors were being read. I had to redesign the interrupt logic and remove blocking delays to make the system respond consistently in real time.
Integrating TCN based prediction was also challenging. The model needed well formatted and preprocessed data from both the camera and sensors. Preparing training samples, reducing noise in the dataset and making the model generalize to different crowd patterns took significant experimentation.
Another challenge was optimizing person detection on camera feeds. CCTV quality varies a lot, and factors like low light, glare and crowded scenes made detection accuracy fluctuate. I had to fine tune thresholds and apply preprocessing to get stable results.
The final challenge was ensuring the whole system works in real time. Predicting crowd behaviour, updating map colors, processing video and reading sensors must happen quickly and without lag. Achieving a balance between accuracy and speed required multiple rounds of optimization.