A Comprehensive Edge-AI System for Real-Time Crowd Management
Abstract
Crowd monitoring helps keep people safe at concerts, stadiums, transport hubs, and religious gatherings. Most current systems send the camera video to a distant server, which adds delay, needs a fast network, and raises privacy concerns. Running the analysis on a small device next to the camera, called an edge device, avoids these problems, but it is hard for two reasons. First, the usual approach of drawing a box around each person fails in dense crowds, where people hide each other. Second, accurate deep learning models are large, while edge devices have little computing power, memory, and energy. This thesis builds a crowd monitoring system that runs in real time on a low-power edge device. Because labelled crowd videos are scarce, we first build a pipeline that creates synthetic crowd videos with the exact position, identity, and motion of every person. We then compare two kinds of models on public benchmarks and on our synthetic videos: box models, which find each person's body, and point models, which mark only each person's head. Box models give the best tracking in moderate crowds, while point models locate people much better in dense crowds and when only heads are visible. The right model therefore depends on the scene and on what the user needs to know. Point models give no identity from one frame to the next, so we design a light tracker that links head points over time at a low cost. We then adapt a point model to run fully on the neural processing unit of the Qualcomm Rubik Pi board, by replacing its decoder with a simpler design and storing its weights as 8-bit integers. This makes the model about $39$ times faster on the board. Finally, we run the network only on some of the frames and predict the positions in between, which brings the system to real-time speed with almost no loss in accuracy. The results show that real-time, privacy-preserving crowd monitoring is practical on a small board that uses under $8$ watts at full load, and they give clear guidance on which model to choose for each type of scene.