arXiv:2610.23611cs.LGOct 2026

Manuscript Offprint

arXiv:2610.23611

How Many, but How Sure? Class Competition as a Confidence Proxy in Multi-Class Density-Based Counting

Villanelle O'Reilly, Georgios Leontidis, Marc Hanheide

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Multi-class density estimators can count objects in crowded scenes, but their class-wise outputs offer no indication of how reliably density mass has been allocated. We introduce a training-free confidence proxy based on local competition between the strongest class channels. The resulting prominence measure requires only the predicted density maps, with no retraining or access to model internals. We test whether residual competition is diagnostic of cross-class leakage by attenuating contested density at inference time. On DSACA predictions for the Hicks et al. dataset, this reduces overall MAE from 0.920 to 0.846, suggesting that class competition contains useful information about count reliability.

1 Introduction

Crowded environments pose a challenging counting task for humans and computers alike. Such environments arise when surveying flowers in the field for biodiversity monitoring, or when counting people and different vehicle types from overhead, and remote-sensing imagery to inform urban planning. These domains are inherently multi-class, and exhibit sufficiently non-uniform congestion that the assumption of individual discreteness is invalidated by occlusion and proximity between instances, undermining the most capable discrete counting methods, as reported in [1–4]. Therefore, estimating a continuous density map can be a more appropriate modelling choice than discretising by counting individual detections or instance masks. However, very little computer vision research has delivered both continuous counting and class discrimination robust to the epistemic uncertainty and modelling problems inherent to cluttered, class-diverse in situ domains.

Per-class density maps are not mutually exclusive, so several classes may incorrectly claim the same density mass from the same evidence at a given location—this class competition is a direct source of uncertainty in the class-wise counts. Explicit confidence-awareness is absent from multi-class density-based counting, yet it is particularly needed there as a count-class allocation is difficult to act upon without some indication of its reliability. A biodiversity survey or a planning decision needs to know not only how many targets are present, but how confidently count mass has been assigned to classes. A measure of confidence in the class assignment of density-based counts would close this gap.

We hypothesise that regions with both high density activity and strong class competition contain more allocation error than high-activity regions dominated by one class. To test this hypothesis, we introduce the prominence ratio, a training-free, spatially resolved confidence proxy computed solely from predicted density maps. We evaluate its diagnostic value by using it to attenuate contested density in frozen multi-class counters and measuring the resulting change in count error.