Adapting Lightweight Image-based Counting Models for Video Crowd Counting

Weibo Shu, Antoni B. ChanCVPR 2026

TL;DR

Most video crowd counting models rely on heavy, multi-frame buffering modules to capture temporal information, making real-time deployment difficult. This paper introduces a data-driven statistical regularizer that injects spatio-temporal awareness into lightweight, single-image counting models only during training. The result is a highly portable framework that achieves state-of-the-art accuracy across six benchmarks while running at a blazing-fast 99.5 FPS during inference.

What Problem Does This Paper Address?

Crowd counting is vital for urban planning, safety, and surveillance. While Image Crowd Counting (ICC) models are lightweight and fast, they struggle with video data because they process each frame in isolation, ignoring the natural temporal continuity of video streams.

To fix this, traditional Video Crowd Counting (VCC) methods use auxiliary modules (like optical flow networks or transformers) to fuse information across neighboring frames. However, this approach comes with severe drawbacks:

  • High Computational Overhead: Extra modules increase model size and latency.
  • Buffering Requirements: Models must store multiple consecutive frames in memory during inference, hindering real-time deployment on edge devices.
  • Lack of Interpretability: It is often unclear how these deep networks actually leverage temporal cues to improve counts.

The authors ask a fundamental question: Can we get the accuracy benefits of video-based models without sacrificing the speed and simplicity of lightweight, single-image models?

Methods

The authors bridge the gap between image and video counting by introducing a Statistical Regularizer (SR) applied exclusively during the training phase.

Instead of analyzing pixel-level changes in the spatial domain (which can be noisy and discontinuous due to crowd movement), the authors look to the frequency domain. They utilize the Characteristic Function (ChF) of the crowd density maps. They mathematically prove that while spatial density maps change abruptly, their corresponding ChFs evolve linearly and smoothly over time.

Figure 1. Two adjacent frames are fed into a lightweight image-based counting model to generate separate density maps. The training loss has two parts: (1) supervision from the ground-truth characteristic functions [37] (ChFs; green boxes), and (2) our statistical regularizer applied between the ChFs of two adjacent predictions (red box). α is the balance factor. The regularization only applies during training. In the inference stage, a single frame is used to predict the density map of the current frame, i.e., the same mode as image counting. Distinct from prior works and from the static use of ChF in [37, 38], the regularizer leverages analytically defined spatial–temporal information derived from the ChF’s temporal dynamics, expressed through a tight inequality inside the indicator function I(.), with its bound ϵ∗

As shown in Figure 1, the framework operates as follows:

  1. Pairwise Training: During training, pairs of adjacent frames ($t$ and $t+1$) are fed independently into a standard, lightweight image counting model.
  2. Statistical Regularization: The model is optimized using standard ground-truth supervision alongside the new statistical regularizer. This regularizer penalizes the model if the difference between the predicted ChFs of adjacent frames exceeds an empirically derived, motion-tolerant bound ($\epsilon^*$).
  3. Motion Tolerance: To prevent the model from penalizing natural crowd movement, a frequency-dependent weighting function ($H_t$) discounts expected variations caused by normal human motion.
  4. Single-Frame Inference: Crucially, the regularizer is discarded after training. During inference, the model processes only a single frame at a time, requiring no frame buffering or auxiliary networks.

Remarkably, all key hyperparameters ($\epsilon^*$ and the motion covariance matrix $\Lambda$) are automatically inferred directly from the training dataset in a single pass, eliminating the need for tedious manual tuning.

Datasets

The framework was evaluated on six diverse video crowd counting benchmarks:

  • UCSD & MALL: Standard surveillance-view datasets.
  • FDST: A large-scale surveillance dataset containing 15,000 frames.
  • VENICE: A dataset characterized by high crowd density but limited training data.
  • DRONECROWD: A highly challenging aerial dataset featuring tiny, low-resolution crowd instances.
  • VSCROWD: A massive, recently introduced video crowd counting benchmark.

Key Insights and Ideas

  • Frequency-Domain Smoothness: The core "aha moment" is that tracking crowd dynamics is much easier in the frequency domain. Pixel-level spatial representations suffer from discontinuous variations even during smooth motion, whereas ChFs exhibit highly structured, locally linear temporal dynamics.
  • Complexity Control vs. Feature Fitting: Instead of using temporal information to create more features for the network to fit, this method uses temporal information as a constraint to limit model complexity during training. This guides the network toward physically plausible, temporally consistent solutions.
  • Theoretical Sufficiency of Single Frames: The authors provide a rigorous statistical proof (Theorem 4) demonstrating that under common conditions—such as temporal redundancy or when a single frame provides full observability—single-frame inference can theoretically match the optimal accuracy of multi-frame models.

Key Results

The proposed Statistical Regularizer (SR) was tested across multiple lightweight backbones (including CSRNet, MCNN, and VGG19) and yielded impressive performance gains:

  • State-of-the-Art Accuracy: On the massive VSCROWD dataset, the method achieved a Mean Absolute Error (MAE) of 5.4, outperforming the best specialized VCC models (like DACM at 7.1). It also achieved top performance on MALL, VENICE, FDST, and DRONECROWD.
  • Superior Efficiency: When tested on the FDST dataset, the framework achieved an inference speed of 99.5 FPS, vastly outperforming existing video-based methods like STGN (58.5 FPS) and EPF (23.5 FPS).
  • Reduced Training Time: Training time per epoch dropped significantly (e.g., 85.5 seconds compared to STGN's 476.1 seconds), making the pipeline highly practical for real-world engineering workflows.

Limitations and Future Work

The authors note that their theoretical assumption of single-frame sufficiency holds true unless occlusion or blur is "information-theoretically complete"—meaning absolutely no visual cues (silhouettes, context, or body parts) remain. In scenarios with total, prolonged occlusions, a purely single-frame inference model will inherently fail where a multi-frame model with long-term memory might succeed. Future work could explore adapting this statistical regularization approach to handle scenes with extreme, extended information loss.

Summary updated

BibTeX
@inproceedings{shu2026adapting,
  author = {Weibo Shu and Antoni B. Chan},
  title = {{Adapting Lightweight Image-based Counting Models for Video Crowd Counting}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=SNrSbwKAhM},
}
Figure