Abstract
Multi-object tracking (MOT) of fish in aquaculture presents unique challenges due to non-rigid body deformation, high visual similarity, and dense schooling. Traditional MOT frameworks often rely on Kalman filters for motion prediction or Re-Identification (Re-ID) for appearance matching, both of which struggle with the erratic, non-linear movement of fish. We present FishMOT, a streamlined tracking-by-detection framework that utilizes a three-tiered Intersection over Union (IoU) matching strategy. By leveraging YOLOv7 for detection and replacing complex motion models with spatial overlap analysis, FishMOT achieves over 99% MOTA on high-density datasets. It significantly outperforms existing specialized tools in both speed and memory efficiency, offering a robust solution for large-scale ecological and industrial monitoring.
Introduction
Tracking fish is a critical task for behavioral analysis in aquaculture and ecology. However, fish are non-rigid entities that constantly change shape, making bounding box consistency difficult. Furthermore, individuals within a school often appear identical, rendering appearance-based Re-ID features unreliable. Dense schools also lead to frequent occlusions.
Existing solutions generally fall into two categories: general MOT algorithms and specialized fish trackers (e.g., idtracker.ai). General algorithms often fail because their underlying assumptions—such as linear motion modeled by Kalman filters—do not hold for the rapid, unpredictable turns characteristic of fish. Conversely, specialized trackers are accurate but computationally heavy, requiring massive memory and time to extract per-individual features. FishMOT seeks a "simple yet effective" middle ground that handles high-density schools without the computational overhead.
Methods
FishMOT follows the tracking-by-detection paradigm using YOLOv7 as the base detector. The core innovation lies in its data association strategy, which eschews complex feature extraction for a hierarchical IoU-based matching system composed of three modules:
- Basic Module: Performs primary association using the IoU of detection boxes between consecutive frames. High-frame-rate video ensures that even with rapid pose changes, the spatial overlap remains a reliable indicator of identity (averaging an IoU of ~0.6).
- Interaction Module: Addresses ambiguities during fish crossovers. It employs background subtraction to isolate the "fish entity" (actual pixels) within the bounding box, calculating the IoU of these entities to resolve identities when boxes overlap significantly.
- Refind Module: Manages temporary detection failures (e.g., due to bubbles or lighting) by maintaining a temporal buffer. It uses linear interpolation to bridge gaps in trajectories if a target reappears within a set number of frames.
Notably, FishMOT does not use Kalman filters. The authors demonstrate that fish movement is too random for linear prediction models to be useful, and complex appearance features (Re-ID) are often a liability because fish look so similar.
Key Results
The framework was evaluated on the idtracker.ai dataset, featuring schools of up to 100 fish. FishMOT achieved a Multiple Object Tracking Accuracy (MOTA) of 99.06% on the 100-fish sequence, vastly outperforming general MOT algorithms like DeepSort or C_BIoU, which produced significantly lower or even negative scores due to excessive errors.
Beyond accuracy, FishMOT demonstrated superior efficiency. Compared to specialized tools like idtracker.ai, it was approximately 9 times faster and required 3.5 times less memory for high-density sequences. The system also proved robust to uneven illumination, maintaining 99.92% accuracy where segmentation-based methods often failed to detect fish in darker areas.
Conclusion
FishMOT demonstrates that for high-frame-rate fish tracking, spatial overlap is a more robust metric than complex appearance features or linear motion models. By focusing on entity-level refinement and temporal buffering, the framework provides a state-of-the-art balance of accuracy and efficiency. Future work will explore extending this 2D approach to 3D environments and more complex underwater conditions in industrial aquaculture.
Summary updated