[Paper Review] Locality-constrained Spatial Transformer Network for Video Crowd Counting
This paper proposes a Locality-constrained Spatial Transformer Network (LSTN) for video crowd counting that explicitly models spatial-temporal dependencies between adjacent frames using a locality-constrained spatial transformer module. By dividing frames into blocks and weighting warping errors with inter-frame block similarity, LSTN improves density map estimation in dynamic scenes with occlusions and motion, achieving state-of-the-art performance on multiple datasets and introducing the largest video crowd counting dataset, FDST, with 15K frames and 394K annotated heads.
Compared with single image based crowd counting, video provides the spatial-temporal information of the crowd that would help improve the robustness of crowd counting. But translation, rotation and scaling of people lead to the change of density map of heads between neighbouring frames. Meanwhile, people walking in/out or being occluded in dynamic scenes leads to the change of head counts. To alleviate these issues in video crowd counting, a Locality-constrained Spatial Transformer Network (LSTN) is proposed. Specifically, we first leverage a Convolutional Neural Networks to estimate the density map for each frame. Then to relate the density maps between neighbouring frames, a Locality-constrained Spatial Transformer (LST) module is introduced to estimate the density map of next frame with that of current frame. To facilitate the performance evaluation, a large-scale video crowd counting dataset is collected, which contains 15K frames with about 394K annotated heads captured from 13 different scenes. As far as we know, it is the largest video crowd counting dataset. Extensive experiments on our dataset and other crowd counting datasets validate the effectiveness of our LSTN for crowd counting.
Motivation & Objective
- Address the challenge of inconsistent head density estimation across video frames due to motion, occlusion, and viewpoint changes.
- Improve video crowd counting robustness by explicitly modeling spatial-temporal consistency between neighboring frames, rather than relying on implicit RNN-based methods.
- Overcome limitations of existing datasets, which are small and lack frame-wise annotations, by collecting a new large-scale video crowd counting dataset with 13 diverse scenes.
- Develop a method that adapts to dynamic scene changes such as people walking in/out or being occluded, by localizing transformation estimation to spatial blocks.
- Demonstrate that similarity-aware, localized warping of density maps outperforms global transformation and implicit history modeling in video crowd counting.
Proposed method
- A Convolutional Neural Network (CNN) is used to regress the initial density map for each video frame.
- A Locality-constrained Spatial Transformer (LST) module warps the density map of the previous frame to predict the current frame’s density map, using block-wise spatial transformations.
- Each frame is divided into non-overlapping spatial blocks to localize transformation estimation and improve robustness to local scene changes.
- The LST module computes similarity between corresponding blocks in consecutive frames using a learned similarity metric, which weights the difference between the warped density map and ground-truth.
- The loss function combines the weighted error between warped and ground-truth density maps across blocks, enabling end-to-end training with spatial-temporal alignment.
- The model is trained end-to-end using a combined loss that emphasizes accurate density prediction in regions with high similarity between adjacent frames.
Experimental results
Research questions
- RQ1Can explicit, block-wise spatial transformation between neighboring frames improve video crowd counting accuracy compared to implicit RNN-based methods?
- RQ2How does incorporating local similarity between spatial blocks affect density map estimation in the presence of occlusions and people entering/exiting the scene?
- RQ3Does a locality-constrained approach outperform global spatial transformation or standard ConvLSTM in modeling temporal dynamics for crowd counting?
- RQ4To what extent does a large-scale, frame-wise annotated video crowd counting dataset improve the evaluation and training of video crowd counting models?
- RQ5Can the proposed method generalize across diverse real-world scenes with varying crowd dynamics and camera perspectives?
Key findings
- The proposed LSTN model achieves a mean absolute error (MAE) of 3.35 on the FDST dataset, outperforming the baseline without LST (MAE: 3.81) and state-of-the-art methods like ConvLSTM (MAE: 4.48).
- On the UCSD dataset, LSTN achieves an MAE of 1.07 and MSE of 1.39, surpassing both MCNN (MAE: 1.07, MSE: 1.35) and ConvLSTM (MAE: 1.30, MSE: 1.79).
- On the Mall dataset, LSTN achieves the lowest MAE (2.00) and MSE (2.50), outperforming Bidirectional ConvLSTM (MAE: 2.10, MSE: 2.70).
- Ablation studies confirm that the similarity term in the LST module consistently improves performance across all datasets, with a 12.6% relative MAE reduction on FDST when included.
- The FDST dataset, containing 15,000 frames and 394,081 annotated heads across 13 scenes, is the largest video crowd counting dataset to date, with frame-wise annotations, enabling fine-grained evaluation.
- The model’s performance is significantly better than single-image baselines on the FDST dataset, demonstrating the value of explicit temporal modeling in video crowd counting.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.