lartpang/PyIRSTDMetrics

[NeurIPS 2025 (D&B)] Rethinking Evaluation of Infrared Small Target Detection

What it solves

PyIRSTDMetrics provides a standardized and efficient way to analyze the performance of Infrared Small Target Detection (IRSTD) models. It addresses the need for consistent evaluation metrics that can handle both pixel-level accuracy and target-level detection success, specifically for the challenges associated with detecting very small targets in infrared imagery.

How it works

The library implements a suite of evaluation metrics based on numpy, scikit-image, and scipy. It supports two primary analysis levels:

  • Pixel-level analysis: Calculates standard metrics like IoU (Intersection over Union), F1-score, Precision, Recall, TPR, and FPR.
  • Target-level analysis: Focuses on detection probability (Pd) and false alarm rate (Fa) using various matching strategies, including a custom-designed OPDCMatching for more reasonable target matching.
  • Hybrid analysis: Introduces hIoU, a new metric that balances pixel-level and target-level performance, along with specialized tools for analyzing localization and segmentation errors.

Who it’s for

This tool is designed for researchers and developers working on computer vision and infrared target detection, particularly those implementing and testing new IRSTD algorithms.

Highlights

  • Comprehensive Metrics: Supports a wide range of pixel-level, target-level, and hybrid metrics.
  • Error Analysis: Includes dedicated tools for hierarchical IoU-based localization and segmentation error analysis.
  • Lightweight: Built on standard scientific Python libraries for fast and easy integration.
  • Visualization Support: Provides data sequences that can be used to plot PR (Precision-Recall) and ROC (Receiver Operating Characteristic) curves.

Related

  • Project
  • Project
  • Project
  • Project
  • Project