Abstract
Deep neural networks are increasingly utilized in ecological studies to identify individual animals by learning naturally occurring features. Traditional manual recognition of Indo-Pacific humpback dolphins (Sousa chinensis) is time-consuming and requires significant expertise. This paper presents a deep learning framework designed to automate the re-identification (Re-ID) of individual dolphins from dorsal fin photographs. The system incorporates feature cutting and background removal strategies to focus on local morphological details, alongside knowledge distillation to ensure robustness against varying photographic angles. The resulting software suite aims to significantly reduce the manual effort required by cetologists for population monitoring.
Introduction
Tracking individual animals is fundamental to understanding marine population dynamics and migration patterns. For dolphin species, the dorsal fin serves as a unique identifier, much like a human fingerprint, due to its distinct notches, scars, and pigmentation. While "photo-identification" (photo-ID) is the non-invasive gold standard, manual processing creates a significant bottleneck in research.
Automating this process via computer vision faces a unique hurdle: "angle deflection." Unlike human subjects in standard Re-ID tasks, dolphins are often photographed at steep or irregular angles during leaps and dives. This causes feature nonalignment, where standard neural networks struggle to recognize the same individual across different orientations.
Methodology
The proposed framework addresses these challenges through a multi-stage pipeline involving detection, alignment, and specialized feature extraction.
Detection and Alignment
The system first employs a YOLO-based object detector to isolate the dorsal fin. To mitigate the tilt problem, the framework identifies two keypoints where the fin boundaries meet the waterline. An affine transformation is then applied to rotate the fin into a consistent horizontal orientation, ensuring that subsequent feature extraction is spatially aligned.
Multi-Branch Feature Extraction
The core architecture utilizes a ResNet50 backbone that diverges into three distinct branches to capture information at varying scales:
- Global Branch: Extracts features from the entire fin image.
- Local Branches: These branches perform "feature cutting," slicing the feature maps horizontally and vertically. By focusing on specific ratios (e.g., 1:2:1), the model learns to prioritize the unique notches along the trailing edge of the fin while ignoring noisy background elements like waves.
Knowledge Distillation and Loss Functions
To achieve rotation invariance, the researchers employed Knowledge Distillation (KD). A "Teacher" model is trained on standard images, while a "Student" model is trained on the same data subjected to heavy random rotations (25° to 40°). By minimizing the Mean Squared Error (MSE) between their output features, the Student learns to produce a consistent identity signature regardless of the dolphin's tilt.
The network is optimized using a combination of Triplet Loss, which maximizes the distance between different individuals in feature space, and Cross-entropy (ID) Loss for classification accuracy.
Results and Discussion
The framework was evaluated on a dataset of 2,177 images representing 55 unique individuals from Xiamen Bay. The system achieved a mean Average Precision (mAP) of 0.8806 and a Rank-1 accuracy of 0.8640, meaning the correct individual was the top match in over 86% of cases. Rank-10 accuracy reached 0.9191.
Ablation studies confirmed that the feature cutting strategy was the most critical component, as it forced the model to focus on fine-grained morphological details rather than the broader (and often noisy) background context. While the current dataset is specialized for the Xiamen Bay population, the underlying principles of alignment and rotation-invariant distillation provide a robust foundation for scaling to other cetacean species.
Conclusion
This deep learning framework and the accompanying software suite represent a significant step toward automating marine mammal research. By effectively handling the geometric challenges of dolphin photography, the system allows researchers to process large volumes of data with high precision, ultimately supporting more effective conservation efforts for the threatened Indo-Pacific humpback dolphin.
Summary updated