JOURNAL ARTICLE

Semi-Supervised Crowd Counting via Swin Transformer with Adaptive Soft Threshold and Contrastive Learning

Mingwei YaoKehua GuoLingyan ZhangXuyang TanXiaokang Zhou

Year: 2025 Journal:   ACM Transactions on Intelligent Systems and Technology   Publisher: Association for Computing Machinery

Abstract

Manual annotation for crowd counting remains labor-intensive and costly. Although existing semi-supervised methods partially alleviate this burden, they still face significant challenges regarding the quality of generated pseudo-labels and the utilization of unlabeled data. To address these issues, we propose a novel semi-supervised crowd counting framework, called Point-Adaptive Teacher (PAT). This framework integrates Adaptive Soft Threshold (AST) and contrastive learning to enhance pseudo-label quality and effectively leverage unlabeled data. Specifically, we employ the Swin Transformer as the backbone and develop Swin-P2PNet, which captures global contextual information through hierarchical window attention, improving the accuracy of pseudo-labels. Additionally, we design the AST that dynamically adjusts the sample loss weight by combining confidence and uncertainty predictions, thereby alleviating the effect of noise in pseudo-labels. Finally, we introduce a contrastive learning strategy requiring no extra parameters. This strategy enhances the model's ability to learn latent representations from unlabeled data. Extensive experiments have been conducted on three public datasets, namely ShanghaiTech, JHU-Crowd++, and UCF-QNRF. The results demonstrate that our method achieves performance comparable to state-of-the-art methods.

Keywords:
Computer science Transformer Artificial intelligence Machine learning Natural language processing Electrical engineering

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
45
Refs
0.18
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Video Surveillance and Tracking Methods
Physical Sciences →  Computer Science →  Computer Vision and Pattern Recognition
Anomaly Detection Techniques and Applications
Physical Sciences →  Computer Science →  Artificial Intelligence
Fire Detection and Safety Systems
Physical Sciences →  Engineering →  Safety, Risk, Reliability and Quality

Related Documents

JOURNAL ARTICLE

CCST: crowd counting with swin transformer

Bo LiYong ZhangHaihui XuBaocai Yin

Journal:   The Visual Computer Year: 2022 Vol: 39 (7)Pages: 2671-2682
JOURNAL ARTICLE

Multi-level Convolutional Transformer with Adaptive Ranking for Semi-supervised Crowd Counting

Xin DengSongjian ChenYifan ChenJie-Fang Xu

Journal:   2021 4th International Conference on Algorithms, Computing and Artificial Intelligence Year: 2021 Pages: 1-7
JOURNAL ARTICLE

Semi-Supervised Crowd Counting via Multiple Representation Learning

Xing WeiYunfeng QiuZhiheng MaXiaopeng HongYihong Gong

Journal:   IEEE Transactions on Image Processing Year: 2023 Vol: 32 Pages: 5220-5230
© 2026 ScienceGate Book Chapters — All rights reserved.