TL;DR
TEP-SAM is a new framework that adapts the powerful Segment Anything Model (SAM) for detecting tiny, dim targets in infrared video sequences. By using a specialized temporal encoder to automatically generate prompts based on motion discrepancies, the system can "see" targets that are otherwise invisible in single frames due to extreme noise and low contrast.
What Problem Does This Paper Address?
Multiframe Infrared Small Target Detection (M-IRSTD) is a high-stakes task used in everything from forest fire monitoring to satellite-based tracking. The challenge is twofold: first, the targets (like distant aircraft or missiles) often occupy only a few pixels. Second, in infrared imagery, these targets are frequently "submerged" in cluttered backgrounds or heavy sensor noise (low Signal-to-Noise Ratio).
In a single frame, a target might be indistinguishable from a speck of noise. However, over time, targets tend to "emerge" because their motion patterns differ from the background dynamics. While foundation models like SAM have incredible segmentation abilities, they typically require manual prompts (like a user clicking a point) and struggle with the temporal dimension. Existing multiframe methods often lack the rich semantic priors of large-scale pre-trained models. TEP-SAM bridges this gap by automating the prompting process using temporal motion cues.
Methods
The authors introduce Temporal-Emerged Prompting for SAM (TEP-SAM), which keeps the core SAM model frozen while adding three lightweight, task-specific modules:
- Discrepancy-Enhanced Temporal Encoder (DETE): This is the heart of the system. It processes a sequence of frames to model motion. It uses a Global-Local Temporal Modeling (GLTM) branch (utilizing ConvGRUs and patch-wise attention) to understand how the background moves, and a Temporal Discrepancy Modulation (TDM) branch to highlight pixels that deviate from that global motion.
- Temporal Feature Injection (TFI): Instead of just feeding the image to SAM, TEP-SAM injects the temporal features from the DETE into each transformer layer of the frozen SAM encoder. This "modulates" the spatial features with temporal context.
- Temporal Prompt Generator (TP-Gen): To eliminate the need for a human to click on the tiny target, this module automatically converts the temporal features into "prompt tokens." These tokens guide the SAM decoder to focus on the most likely target regions.
By combining these, the model performs "non-interactive segmentation"—it finds and masks the target entirely on its own by looking at the video flow.
Datasets
The researchers evaluated TEP-SAM on two primary benchmarks:
- NUDT-MIRSDT: A dataset of 100 sequences featuring real-world backgrounds like skies and oceans. It includes a specific "Hard" subset where the Signal-to-Noise Ratio (SNR) is $\leq 3$, making targets nearly invisible to the naked eye in single frames.
- TSIRMT: A larger simulated benchmark (200 sequences) with complex backgrounds like cities, mountains, and rivers, designed to test diverse target motion and moving-camera scenarios.
Key Insights and Ideas
- Temporal Emergence as a Prior: The fundamental "aha moment" is treating motion discrepancy not just as a feature, but as a prompt. If something moves differently than the clouds or the ground, that motion itself is the best "click" you could give a segmentation model.
- Frozen Foundation, Active Sidecar: By keeping the massive SAM encoder frozen and only training the lightweight DETE and TFI modules, the authors preserve the "knowledge" SAM gained from billions of images while efficiently adapting it to the niche domain of infrared video.
- Global vs. Local Motion: The paper highlights that modeling global background motion is essential to isolating local target deviations. Without the global view, sensor jitter or camera movement could be mistaken for a target.
Key Results
TEP-SAM sets a new state-of-the-art (SOTA) for multiframe infrared detection:
- Accuracy: It outperformed previous SOTA methods by 2.92 IoU (Intersection over Union) on NUDT-MIRSDT and a staggering 8.45 IoU on the TSIRMT dataset.
- Robustness: On the "Hard" subsets (the lowest SNR conditions), the performance gap widened even further, showing that temporal prompting is most effective when spatial information is at its weakest.
- Qualitative: Visualizations show that while other methods produce fragmented masks or suffer from false alarms (detecting bright spots in the background), TEP-SAM produces compact, accurate masks that closely follow the target's true shape.
Limitations and Future Work
- Motion Dependency: The method relies on the premise that the target is moving. If a target remains perfectly stationary relative to the background, the temporal encoder provides limited discriminative information.
- Complex Dynamics: While it handles mild platform jitter well, extremely high ego-motion (like a fast-turning UAV) or severe parallax might require more advanced motion compensation techniques.
- Computational Overhead: Although the added modules are lightweight, the underlying SAM architecture is still computationally heavy compared to tiny, bespoke infrared detection networks, which may limit its use in real-time edge devices without further optimization.
Summary updated