A Contrario Paradigm for YOLO-based Infrared Small Target Detection

Alina Ciocarlan, Sylvie Le Hégarat-Mascle, Sidonie Lefebvre, Arnaud Woiselle, Clara Barbanson

Abstract

Detecting small to tiny targets in infrared images is a challenging task in computer vision, especially when it comes to differentiating these targets from noisy or textured backgrounds. Traditional object detection methods such as YOLO struggle to detect tiny objects compared to segmentation neural networks, resulting in weaker performance when detecting small targets. To reduce the number of false alarms while maintaining a high detection rate, we introduce an a contrario decision criterion into the training of a YOLO detector. The latter takes advantage of the unexpectedness of small targets to discriminate them from complex backgrounds. Adding this statistical criterion to a YOLOv7-tiny bridges the performance gap between state-of-the-art segmentation methods for infrared small target detection and object detection networks. It also significantly increases the robustness of YOLO towards few-shot settings.

Introduction

Infrared Small Target Detection (IRSTD) is a "needle in a haystack" problem. In applications like maritime search-and-rescue or long-range surveillance, targets often occupy fewer than 20 pixels and are buried in noisy, highly textured backgrounds, such as sun glint on waves or complex cloud patterns.

Current solutions generally fall into two categories:

  1. Semantic Segmentation Networks: These represent the current state-of-the-art for accuracy but often fragment objects and struggle with consistent thresholding.
  2. Object Detectors (e.g., YOLO): These are fast and provide clean bounding boxes but historically struggle to detect tiny objects, often dismissing them as background noise.

Furthermore, deep learning models usually require massive amounts of labeled data, which is rare in specialized infrared imaging. This makes "few-shot" learning—learning from just a handful of images—a critical necessity.

Methods: The OL-NFA Detection Head

The core contribution is a novel detection head called OL-NFA (Object-Level Number of False Alarms). Instead of solely asking if a region looks like a target, it employs an a contrario paradigm to ask: "How unlikely is it that this region is just background?"

The OL-NFA detection head architecture integrated into a YOLO-like backbone, featuring a significance layer based on a contrario reasoning.

Key technical components include:

  • A Contrario Reasoning: Borrowed from Gestalt theory, this framework defines a "naive" model for the background. A detection is triggered only when a region's features deviate so significantly from the background model that the deviation cannot be attributed to pure chance.
  • Differentiable Integration: The standard NFA formula is discrete and non-differentiable. The authors utilize a Hoeffding approximation and fuzzy membership coefficients (via sigmoid functions) to make the statistical criterion trainable via backpropagation within the YOLO pipeline.
  • Architecture: This head is integrated onto a YOLOv7-tiny backbone, maintaining high inference speeds while boosting sensitivity to small targets.

Experimental Results

The model was evaluated on the NUAA-SIRST dataset, a benchmark containing 427 images with targets ranging from 2 to over 100 pixels.

State-of-the-Art Performance

On the NUAA-SIRST benchmark, the proposed method achieved an F1-score of 97.2%, slightly outperforming the previous segmentation-based leader, DNANet (96.9%), and significantly beating the standard YOLOv7-tiny baseline (96.5%). Crucially, the model maintains a high throughput of 208 FPS, making it suitable for real-time edge deployment.

Few-Shot Robustness

The most striking result is the model's performance in data-scarce environments. In a 15-shot setting, the standard YOLOv7-tiny performance drops to a 50.7% F1-score. In contrast, the OL-NFA version maintains an 85.0% F1-score, representing a 34.3% absolute improvement.

Comparison of F1 and AP scores in 15-shot and 25-shot settings, demonstrating the superior robustness of the proposed method over YOLOv7-tiny.

Conclusion

By modeling the background rather than just the target, the a contrario criterion acts as a powerful mathematical prior that prevents overfitting to noise. This bridges the gap between bounding-box detectors and pixel-level segmentation networks. While the paradigm relies on targets being "unexpected" relative to the background—which might be a limitation for perfectly camouflaged targets—it offers a robust path forward for autonomous, self-supervised infrared sensing systems.

Summary updated

Abstract

Detecting small to tiny targets in infrared images is a challenging task in computer vision, especially when it comes to differentiating these targets from noisy or textured backgrounds. Traditional object detection methods such as YOLO struggle to detect tiny objects compared to segmentation neural networks, resulting in weaker performance when detecting small targets. To reduce the number of false alarms while maintaining a high detection rate, we introduce an $\textit{a contrario}$ decision criterion into the training of a YOLO detector. The latter takes advantage of the $\textit{unexpectedness}$ of small targets to discriminate them from complex backgrounds. Adding this statistical criterion to a YOLOv7-tiny bridges the performance gap between state-of-the-art segmentation methods for infrared small target detection and object detection networks. It also significantly increases the robustness of YOLO towards few-shot settings.
BibTeX
@inproceedings{ciocarlan2024contrario,
  author = {Alina Ciocarlan and Sylvie Le Hégarat-Mascle and Sidonie Lefebvre and Arnaud Woiselle and Clara Barbanson},
  title = {{A Contrario Paradigm for YOLO-based Infrared Small Target Detection}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10446505},
}
Figure