Fourier transform-based single domain generalization for crowd counting
Accurate crowd counting is critical for numerous real-world applications. However, domain shift poses a significant barrier to deploying crowd counting models in practical scenarios due to the discrepancy between training and target domains. This paper proposes SinCount, a novel crowd counting framework designed for the Single-source Domain Generalization (SDG) setting, capable of generalizing to unseen domains. SinCount introduces a task-frequency alignment mechanism, directing high-frequency cues toward fine-grained density regression while allocating low-frequency cues to region-level classification to mitigate domain shift. Specifically, we develop a frequency-specific feature extraction module to extract high-frequency and low-frequency features. Subsequently, a dual-attention strategy is devised to embed high-frequency features via spatial attention for the regression branch, while modulating low-frequency features via channel attention for the classification branch. Moreover, an instance normalization mask and an attention consistency loss are incorporated to suppress domain-specific noise and stabilize feature learning. Evaluations across multiple benchmark datasets demonstrate that our method achieves competitive performance compared to state-of-the-art SDG approaches. The code is publicly available at https://github.com/Twiwq/SinCount .
Authors
- Zhaoyu Cai (ORCID: https://orcid.org/0000-0002-2988-7923)
- Jingxi He (ORCID: https://orcid.org/0000-0002-1019-7842)
- J. J. Xie
- Tong Li (ORCID: https://orcid.org/0000-0001-6643-6411)
- Jinliang Guo (ORCID: https://orcid.org/0009-0001-3375-0196)
- Yuan Zhang (ORCID: https://orcid.org/0000-0002-8457-5922)
- Lei Song
Institutions
- Guangdong Ocean University (CN)
Publication Details
- Journal
- Scientific Reports
- Published
- 2026-04-06
- DOI
- https://doi.org/10.1038/s41598-026-46286-3
- Primary Topic
- Video Surveillance and Tracking Methods
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Natural Science Foundation of Guangdong Province
- Guangdong Ocean University