Uncertainty-aware Continuous Implicit Neural Representations for Remote Sensing Object Counting

Siyuan Xu, Yucheng Wang, Mingzhou Fan, Byung-Jun Yoon, Xiaoning QianAISTATS 2024

Abstract

Many existing object counting methods rely on density map estimation (DME) of the discrete grid representation by decoding extracted image semantic features from designed convolutional neural networks (CNNs). Relying on discrete density maps not only leads to information loss dependent on the original image resolution, but also has a scalability issue when analyzing high-resolution images with cubically increasing memory complexity. Furthermore, none of the existing methods can offer reliable uncertainty quantification (UQ) for the derived count estimates. To overcome these limitations, we design UNcertainty-aware, hypernetwork-based Implicit neural representations for Counting (UNIC) to assign probabilities and the corresponding counting confidence over continuous spatial coordinates. We derive a sampling-based Bayesian counting loss function and develop the corresponding model training algorithm. UNIC outperforms existing methods on the Remote Sensing Object Counting (RSOC) dataset with reliable UQ and improved interpretability of the derived count estimates.

Introduction

Object counting in remote sensing—such as quantifying buildings in satellite imagery—is traditionally approached via Density Map Estimation (DME). Standard DME frameworks utilize Convolutional Neural Networks (CNNs) to generate a discrete grid where pixel values represent local object density. However, this discrete approach suffers from resolution-dependent information loss, poor scalability for high-resolution imagery, and a lack of uncertainty quantification (UQ). In safety-critical applications like disaster response, understanding the model's confidence is as vital as the count itself.

Methodology: The UNIC Framework

To address these challenges, we propose UNIC (UNcertainty-aware Implicit neural representations for Counting). Unlike traditional models that output fixed grids, UNIC treats the density map as a continuous function $D(x)$, where $x$ represents spatial coordinates.

Figure 1: The UNIC architecture featuring a CNN backbone, a hypernetwork-based feature mapping network, and an Implicit Neural Representation (INR) decoder.

The architecture consists of three core components:

  1. CNN Backbone: A VGG-16 network extracts latent semantic features from the input image.
  2. Hypernetwork Decoder: Instead of standard convolutions, the latent features are mapped to the weights of a Multi-Layer Perceptron (MLP). This allows the network to adapt its density function dynamically for every image.
  3. Implicit Neural Representation (INR): The MLP takes continuous spatial coordinates (enhanced with Fourier positional encoding) and outputs the density at that specific point.

By modeling the density map as a stochastic process, UNIC is trained using Variational Inference. We maximize an Evidence Lower Bound (ELBO) through a sampling-based Bayesian counting loss, allowing the model to provide both a mean estimate and a variance (uncertainty) for its predictions.

Experimental Results

We evaluated UNIC primarily on the Remote Sensing Object Counting (RSOC) dataset, specifically the building subset, which contains 2,468 images.

Accuracy and Qualitative Performance

UNIC consistently outperforms state-of-the-art models like ASPDNet and PSGCNet. At a resolution of 256x256, UNIC achieved a 4.87% reduction in Mean Absolute Error (MAE) and a 5.10% reduction in Root Mean Squared Error (RMSE) compared to the best baseline.

Figure 2: Qualitative comparison of density maps generated by UNIC versus ground truth (GT) and discrete baseline models (PSGCNet, ASPDNet).

As shown in Figure 2, UNIC's continuous representation captures finer details and object boundaries more effectively than discrete grid-based methods, which often produce "blocky" or blurred estimations. This allows the model to distinguish overlapping objects at arbitrarily high resolutions without retraining.

Efficiency and Calibration

Beyond accuracy, UNIC offers significant computational advantages. It requires approximately 18.0M parameters—a 34.5% reduction compared to the ASPDNet baseline (~27.5M). Inference speed is also improved by 75.8%, taking only 3.6ms for a 256x256 image. Crucially, the model's uncertainty estimates are well-calibrated; the predicted variance correlates strongly with actual predictive error, providing a reliable signal for human-in-the-loop verification.

Conclusion

UNIC represents a shift from discrete to continuous modeling in object counting. By leveraging hypernetworks and implicit neural representations, it achieves superior accuracy and efficiency while providing essential uncertainty quantification. Future work will focus on refining the variational distributions to ensure strictly non-negative density predictions, further enhancing the physical consistency of the model.

Code available at: https://github.com/SiyuanXu-tamu/UNIC

Summary updated

BibTeX
@inproceedings{xu2024uncertainty,
  author = {Siyuan Xu and Yucheng Wang and Mingzhou Fan and Byung-Jun Yoon and Xiaoning Qian},
  title = {{Uncertainty-aware Continuous Implicit Neural Representations for Remote Sensing Object Counting}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
  url = {https://openreview.net/forum?id=ogPPCmCvZ1},
}
Figure