Abstract
In industrial aquaculture, real-time monitoring of fish behavior is essential for optimizing feeding and early disease detection. However, tracking individual fish remains a significant challenge due to high visual similarity, complex underwater environments, and frequent occlusions. This paper presents FMRFT (Fusion Mamba and DETR for Query Time Sequence Intersection), a high-performance tracking framework that combines the efficiency of State Space Models (Mamba) with the precision of Real-Time DEtection Transformers (RT-DETR). FMRFT introduces a novel query intersection module and a memory-efficient feature extractor, achieving a 94.3% Multi-Object Tracking Accuracy (MOTA) while requiring significantly less video memory than traditional Transformer-based models.
Introduction
Automated fish tracking is a cornerstone of modern precision aquaculture. Despite its importance, the task is often described as a "computer vision nightmare." Sturgeon, for instance, exhibit minimal inter-individual variation, making them nearly indistinguishable to standard trackers. Furthermore, industrial environments introduce visual noise such as underwater reflections, bubbles from oxygenators, and murky water.
The primary technical hurdles include:
- High Similarity: Individual fish lack distinct markings.
- Complex Environments: Bubbles and reflections interfere with feature extraction.
- Frequent Occlusions: Fish constantly overlap, leading to ID switches or redundant bounding boxes.
- Computational Constraints: Standard Transformer-based models like MOTR are memory-intensive, hindering deployment on edge devices in farming facilities.
Methodology: The FMRFT Framework
To address these challenges, the FMRFT framework introduces three architectural innovations designed to balance accuracy with computational efficiency.
Fusion MIM (Mamba In Mamba)
Traditional backbones often struggle to balance global context with fine-grained detail without incurring quadratic computational costs. FMRFT utilizes a Fusion MIM architecture for feature extraction. By leveraging the linear complexity of Mamba, the model captures both the broad environmental context and sharp fish boundaries. This approach effectively mitigates the "memory explosion" typically associated with standard Transformers.
Query Time Sequence Intersection (QTSI)
A common failure mode in query-based trackers is the generation of redundant boxes for the same object. The QTSI module addresses this during training by calculating the Intersection Over Union (IoU) between "Tracking Queries" (representing existing tracks) and "Detect Queries" (representing new detections). This intersection logic prevents the model from double-tracking fish and ensures stable ID maintenance even during periods of heavy overlap.
Mamba Query Interaction Module (MQIM)
Replacing standard query interaction layers, the MQIM utilizes Mamba’s bidirectional temporal processing capabilities. This allows the model to maintain a more robust "memory" of fish features across long video sequences, which is critical for tracking fast-moving targets that may be momentarily obscured by bubbles or other fish.
Experimental Setup and Datasets
The researchers developed a comprehensive multi-scenario sturgeon tracking dataset to validate FMRFT. The dataset comprises 8,000 high-quality images and 11,000 labeled frames across two distinct environments:
- Scene 1: Opaque plastic containers with controlled lighting.
- Scene 2: Reflective metal containers featuring active water circulation and bubbles, simulating more challenging factory conditions.
FMRFT was benchmarked against industry-standard trackers, including ByteTrack, OC-SORT, FairMOT, and MOTR.
Key Results and Discussion
FMRFT demonstrated superior performance across nearly all evaluation metrics:
- Tracking Accuracy: The model achieved an IDF1 score of 90.3% and a MOTA of 94.3%.
- Memory Efficiency: FMRFT required only 6GB of Training Memory Allocation (TMA). In contrast, MOTR required 10GB, and OC-SORT reached 23GB, highlighting FMRFT's suitability for resource-constrained environments.
- Real-Time Performance: The system maintains a processing speed of 50 FPS, enabling live monitoring.
- Ablation Insights: The inclusion of the QTSI module alone resulted in a 7.8% improvement in the IDF1 score, confirming its vital role in handling occlusions and reducing redundancy.
Conclusion
FMRFT represents a significant advancement in aquatic multi-object tracking. By fusing the temporal efficiency of Mamba with the detection capabilities of DETR, the framework provides a robust, real-time solution for industrial aquaculture. While the model currently excels with sturgeon, future work will focus on expanding dataset diversity to include more species and developing advanced "dedicated feature memory" modules to further improve re-entry tracking for objects that disappear for extended periods.
Summary updated