Error-Aware Density Isomorphism Reconstruction for Unsupervised Cross-Domain Crowd Counting

Yuhang He, Zhiheng Ma, Xing Wei, Xiaopeng Hong, Wei Ke, Yihong Gong

Abstract

Crowd counting models often struggle when deployed in new environments due to the "domain gap" between training and testing data. Manual annotation for every new scene is prohibitively expensive. This paper presents EDIREC-Net, a novel unsupervised framework that adapts to unlabeled target video domains by exploiting the temporal consistency of crowd movement. By assuming density maps of adjacent frames are "isomorphic," the network generates self-supervised signals for adaptation. An error-aware module further identifies and mitigates unreliable reconstructions, ensuring robust learning. Experimental results across multiple datasets demonstrate that EDIREC-Net significantly outperforms non-adapted baselines and rivals semi-supervised approaches.

Introduction

Estimating crowd density is critical for public safety and urban planning. While deep learning models have achieved high accuracy, their performance drops significantly when the testing environment (target domain) differs from the training environment (source domain). Traditional unsupervised domain adaptation (UDA) methods often focus on image-level features, neglecting the rich temporal information inherent in surveillance video. EDIREC-Net addresses this by using the video's own structure to provide "free" labels for adaptation.

Methods

The core of EDIREC-Net is the Error-aware Density Isomorphism REConstruction (EDIREC) module. It operates on three main principles:

  1. Density Isomorphism Reconstruction: Assuming smooth crowd flow, the density distribution in adjacent frames is considered isomorphic. The model uses motion estimation (Gunner-Farneback algorithm) to warp the density map of a neighboring frame to match the current frame.
  2. Self-Supervised Learning: The network is trained to minimize the difference between its direct density estimate and the reconstructed maps derived from preceding and following frames.
  3. Error-Aware Modeling: To handle inaccuracies in motion estimation or occlusions, the system monitors consistency between direct estimates and reconstructions. High disagreement indicates unreliable data, which the error-aware module suppresses to prevent the model from learning incorrect patterns.
Conceptual overview of Target Distribution Isomorphism and the Error-Aware Reconstruction process.

Results and Discussion

EDIREC-Net was evaluated on several benchmark video datasets, including Venice, UCSD, MALL, and FDST, using UCF-QNRF as the labeled source domain. The results indicate a substantial improvement over the non-adapted baseline. Specifically, the method achieved a 67% reduction in Mean Absolute Error (MAE) on the Venice dataset and a 77% reduction on UCSD.

Quantitative comparison of EDIREC-Net against baseline and state-of-the-art unsupervised and semi-supervised methods.

As shown in the performance table, EDIREC-Net ("Ours") consistently achieves the lowest MAE and MSE among unsupervised methods. Notably, it even approaches the performance of semi-supervised methods that utilize a portion of target-domain labels. The "Ours-w/o mod" entry highlights the importance of the error-aware module, as its inclusion leads to significant performance gains across all datasets.

Conclusion

EDIREC-Net provides a powerful solution for cross-domain crowd counting without the need for target-domain annotations. By leveraging temporal isomorphism and error-aware filtering, the model effectively adapts to diverse real-world scenarios. While the method is sensitive to the frame interval parameter and the quality of motion estimation, it represents a significant step forward in making crowd counting systems more deployable and scalable.

Summary updated

BibTeX
@inproceedings{he2021error,
  author = {Yuhang He and Zhiheng Ma and Xing Wei and Xiaopeng Hong and Wei Ke and Yihong Gong},
  title = {{Error-Aware Density Isomorphism Reconstruction for Unsupervised Cross-Domain Crowd Counting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i2.16245},
}
Figure