# Towards real-world monitoring scenarios: An improved point prediction method for crowd counting based on contrastive learning

**Authors:** Rundong Cao, Jiazhong Yu, Ziwei Liu, Qinghua Liang, Yawen Lu, Ayesha Maqbool, Ayesha Maqbool, Ayesha Maqbool

PMC · DOI: 10.1371/journal.pone.0327397 · PLOS One · 2025-07-02

## TL;DR

This paper introduces a new crowd counting method using contrastive learning to better handle complex environments and dense crowds.

## Contribution

The novel point-based contrastive learning method improves crowd detection in complex and variable scenarios.

## Key findings

- The proposed method outperforms existing approaches on public crowd counting datasets.
- Contrastive learning enhances the model's ability to distinguish between foreground and background in dense crowds.

## Abstract

In open environments, complex and variable backgrounds and dense multi-scale targets are two key challenges for crowd counting. Due to the reliance on supervised learning with labeled data, current methods struggle to adapt to crowd detection in complex scenarios when training data is limited; Moreover, detection-based methods may lead to numerous missed detections when dealing with dense, small-scale target groups. This paper proposes a simple yet effective point-based contrastive learning method to alleviate these issues. Initially, we construct contrastive cropped samples and feed them into a convolutional neural network to predict head points of each image patch. Based on the classification and regression loss of these points, we incorporate an auxiliary supervision contrastive learning loss to enhance the model’s ability to differentiate between foreground heads and the background. Additionally, a multi-scale feature fusion module is proposed to obtain high-quality feature maps for detecting targets of different scales. Comparative experimental results on public crowd counting datasets demonstrate that the proposed method achieves state-of-the-art performance.

## Full-text entities

- **Diseases:** contrastive (MESH:D005119)
- **Chemicals:** Maqbool (-)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12221087/full.md

## Figures

7 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12221087/full.md

## References

77 references — full list in the complete paper: https://tomesphere.com/paper/PMC12221087/full.md

---
Source: https://tomesphere.com/paper/PMC12221087