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:
- Semantic Segmentation Networks: These represent the current state-of-the-art for accuracy but often fragment objects and struggle with consistent thresholding.
- 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?"
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.
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