CrowdCL: Unsupervised Crowd Counting Network via Contrastive Learning

With the continuous growth of the population, crowd counting plays a crucial role in intelligent monitoring systems for the Internet of Things (IoT) and smart city development. Accurate monitoring of crowd density not only helps maintain public safety but also effectively promotes the development of smart cities. Currently, supervised crowd counting techniques have made significant progress in improving accuracy, but these methods rely on expensive manual annotations and have limited generalization performance. To address these challenges, this article proposes an unsupervised crowd counting network based on contrastive learning, named CrowdCL. CrowdCL primarily leverages image-image contrastive learning and text-image contrastive learning to achieve unsupervised crowd counting. Specifically, in image-image contrastive learning, we strengthen the network’s ability to distinguish crowd features by designing progressive occlusion strategies and patch matching strategies, effectively differentiating crowd information from background information. In text-image contrastive learning, we construct ordered textual prompts to match ordered feature maps and use modality matching loss <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$(L_{m})$ </tex-math></inline-formula> to guide the image encoder. Additionally, to reduce the loss of fine details and alleviate the interference of complex backgrounds, we design a coarse-grained filtering strategy during the testing phase, assigning higher weights to crowd patches with greater potential. Experiments on multiple public datasets show that CrowdCL not only achieves outstanding performance but also outperforms some fully supervised methods in cross-dataset testing.

Authors

Institutions

Publication Details

Journal
IEEE Internet of Things Journal
Published
2025-03-04
DOI
https://doi.org/10.1109/jiot.2025.3547898
Citations
3
Primary Topic
Data Stream Mining Techniques
Type
article
Field-Weighted Citation Impact
7.44

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

CrowdCL: Unsupervised Crowd Counting Network via Contrastive Learning

Yingxiang Hu, Guo Cao, Jin Wang, Yanbo Liu
3 citations
IEEE Internet of Things Journal
Data Stream Mining Techniques
7.44
article

CrowdCL: Unsupervised Crowd Counting Network via Contrastive Learning

Yingxiang Hu, Guo Cao, Jin Wang, Yanbo Liu
article en
3 citations

Abstract

With the continuous growth of the population, crowd counting plays a crucial role in intelligent monitoring systems for the Internet of Things (IoT) and smart city development. Accurate monitoring of crowd density not only helps maintain public safety but also effectively promotes the development of smart cities. Currently, supervised crowd counting techniques have made significant progress in improving accuracy, but these methods rely on expensive manual annotations and have limited generalization performance. To address these challenges, this article proposes an unsupervised crowd counting network based on contrastive learning, named CrowdCL. CrowdCL primarily leverages image-image contrastive learning and text-image contrastive learning to achieve unsupervised crowd counting. Specifically, in image-image contrastive learning, we strengthen the network’s ability to distinguish crowd features by designing progressive occlusion strategies and patch matching strategies, effectively differentiating crowd information from background information. In text-image contrastive learning, we construct ordered textual prompts to match ordered feature maps and use modality matching loss <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$(L_{m})$ </tex-math></inline-formula> to guide the image encoder. Additionally, to reduce the loss of fine details and alleviate the interference of complex backgrounds, we design a coarse-grained filtering strategy during the testing phase, assigning higher weights to crowd patches with greater potential. Experiments on multiple public datasets show that CrowdCL not only achieves outstanding performance but also outperforms some fully supervised methods in cross-dataset testing.

IEEE Internet of Things JournalVol. 12(12)
Nantong University (CN), Nanjing University of Science and Technology (CN)
National Natural Science Foundation of China, Natural Science Foundation of Jiangsu Province, National Key Research and Development Program of China
Reduced inequalities
Openalex Percentile: Top 4%
Data Stream Mining Techniques
7.44
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.