3.1. Dataset Selection and Experimental Setup
To evaluate the performance of the proposed method, experiments were conducted on the BrackishMOT dataset [
25]. It contains real underwater video sequences captured in brackish and visually degraded environments. These scenes include turbidity, low contrast, background interference, and densely distributed aquatic organisms, which are consistent with the visual challenges targeted in this study. In addition, the dataset provides bounding-box annotations for six coarse organism categories, including fish, small fish, crab, shrimp, starfish, and jellyfish, making it suitable for evaluating multi-class underwater object detection rather than single-species fish detection.
(1) Experimental environment
The experiments were implemented using the YOLO11n model within the Ultralytics (v8.3.55) framework. The hardware platform comprised an Intel Core i5-11400H CPU, 16 GB RAM, and an NVIDIA GeForce RTX 3050 GPU (4 GB VRAM). The software stack included Python 3.8.12, PyTorch 1.9.0, CUDA 11.1, and cuDNN 8.0.5, running on NVIDIA driver 470.141.03. To enhance computational efficiency, automatic mixed-precision (AMP) was employed for memory optimization. The entire environment was managed via Conda to ensure dependency consistency and experimental reproducibility.
(2) Experimental setup
The main parameter settings used in this experiment are listed in
Table 1. Specifically, the HSV color space transformation parameters are set as follows: the hue offset range is 0.015, the saturation adjustment range is 0.7, and the brightness adjustment range is 0.4.
The proposed marine organism detection model, which incorporates multi-scale attention into the YOLO11n architecture, was trained on the BrackishMOT dataset for 100 epochs [
25].
When the batch size is set to 16, the peak GPU memory usage reaches 3.2 GB, which is close to the hardware limit of 4 GB memory capacity of the NVIDIA GeForce RTX 3050 graphics card. The relationship between the batch size and the learning rate follows a linear scaling rule:
where
ηbase is the base learning rate,
ηeff is the effective learning rate, and
batch is the number of data samples processed simultaneously during one forward propagation and one backpropagation during the training process.
When the batch size is scaled by a factor of k, the base learning rate is adjusted proportionally to maintain a comparable gradient noise scale. Although this linear scaling rule was originally proposed for large-batch distributed training, it is used here as a practical guideline for adjusting the learning rate under different batch-size settings. Furthermore, early stopping was used to prevent overfitting. The validation mAP was monitored with a patience value of 10, meaning that training was stopped if no improvement was observed for 10 consecutive epochs. The system automatically saves the current optimal weights and terminates the training when the fluctuation of the validation indexes in 10 consecutive epochs is less than ±0.15%. The strategy incorporates the exponentially weighted moving average (EWMA) algorithm to smooth the validation curve, effectively avoiding the misjudgment caused by local fluctuations.
3.2. Data Split, Class Distribution, and Dataset Analysis
The class distributions of the predefined training and validation subsets were counted from the annotation files. The training subset contains 10,999 annotated label files and 34,692 object instances, while the validation subset contains 3018 annotated label files and 14,670 object instances. The class-level instance counts are summarized in
Table 2.
The BrackishMOT dataset exhibits a clear long-tailed class distribution, as illustrated in
Figure 3. Small fish accounts for the largest number of annotated instances, with 23,822 instances, followed by Crab with 12,655 instances and Starfish with 8379 instances. Fish contains 3321 instances, whereas Jellyfish and Shrimp are substantially underrepresented, with only 637 and 548 instances, respectively. This imbalance is also reflected in the validation subset. Such a long-tailed distribution may bias the model toward data-abundant categories and reduce the stability of performance estimation for rare categories.
Regarding the class-imbalance issue, the main experiments retained the original class distribution of BrackishMOT. Standard YOLO data augmentations, including Mosaic, translation, scaling, flipping, and HSV color-space augmentation, were applied consistently to all classes. No additional random frame-level re-splitting was performed.
(1) Spatial characterization
Figure 4 shows the results of the spatial characterization of the dataset, where the spatial distribution is represented by a heat map (
x-y coordinate scatter plot).
As can be seen from
Figure 4, the target object shows a relatively uniform distribution pattern in the image space, covering the entire image area (normalized coordinate range of 0.0–1.0). This distribution feature indicates that the dataset has good spatial representativeness, which is conducive to the model learning the target features at different locations.
From the
width–height distribution graph in
Figure 4, it can be observed that the geometric features of the target objects show the following patterns: in terms of size distribution, most of the target objects are concentrated in smaller size ranges, and the
width and
height are mainly distributed in the normalized range of 0.0–0.4, which is in line with the characteristics of small and medium-sized targets that are dominant in the task of detecting marine organisms; in terms of the aspect ratio features, the target objects show a diverse aspect ratio distribution, indicating that the dataset contains marine organisms with different morphologies, which helps to improve the generalization ability of the model.
(2) Characterization of geometric distribution
Figure 5 shows the results of the statistical analysis of the geometric features of the target frames in the dataset.
The statistical analysis of the geometric features in
Figure 5 shows that the dataset has good spatial distribution characteristics and dimensional diversity. In terms of positional distribution, both the
x-coordinate and
y-coordinate show nearly uniform distribution, and the edge histogram shows smooth coordinate distribution without obvious aggregation or blank area, which confirms the good coverage of the target in the image space. In terms of size distribution, both width and height show right-skewed distribution characteristics, with the peak of width concentrated in the range of 0.0–0.2, and the height of most targets is less than 0.4. This distribution pattern is consistent with the actual needs of the marine life detection task, and highlights the importance of accurate detection of small-sized targets. Correlation analysis shows that there is a positive but not completely linear correlation between
width and
height, indicating that the dataset contains a variety of morphologically proportional target objects, while the position coordinates do not show a strong correlation with the size parameter, indicating that the target size is relatively independent of its position in the image, and these features together constitute a balanced and representative marine organism detection dataset.
Based on the above statistical analysis, the dataset is suitable for evaluating underwater multi-scale detection because target centers cover a wide image area, most bounding boxes fall within small to medium size ranges, and the aspect ratios vary across organism categories. However, the dataset should not be regarded as class-balanced. The long-tailed class distribution is therefore explicitly considered in the category-wise evaluation and discussion, rather than being hidden by the overall mAP value.
3.4. Ablation Experiments
Ablation experiments were designed to evaluate the contribution of each individual component to the overall performance. Four configurations were tested:
- (1)
Baseline: The original YOLO11n model without any enhancements, used as a performance benchmark.
- (2)
YOLO11n + CBAM: The CBAM is introduced alone to assess the impact of the attention mechanism on detection performance.
- (3)
YOLO11n + CIoU Loss: The original IoU-based loss function is replaced with the CIoU loss to evaluate its effect on bounding box regression accuracy.
- (4)
YOLO11n + CBAM + CIoU Loss: All improvement strategies are applied simultaneously to form the final optimized model.
Through this systematic experimental design, the independent contributions of each improvement component as well as their synergistic effects can be quantitatively assessed, providing a scientific basis for model optimization.
Table 3 demonstrates the results of model performance under different optimization strategies.
In
Table 3, mAP@0.5 denotes the mAP at an IoU threshold of 0.5, while mAP@0.5:0.95 is a stricter metric averaged over IoU thresholds from 0.50 to 0.95. The GFLOP reports the computational cost under an input size of 640 × 640. Since the CIoU loss function only modifies the training objective and does not change the inference architecture, the YOLO11n + CIoU Loss configuration has the same GFLOPs as the baseline model. After introducing CBAM, GFLOPs increase from 6.4 to 7.2. Meanwhile, the number of parameters increases only slightly from 2.591 M to 2.596 M, corresponding to an increase of approximately 0.19%. Therefore, the proposed model improves detection performance with a limited increase in parameter count and a moderate increase in computational cost.
Compared with the baseline YOLO11n model, introducing the CBAM attention module increased mAP@0.5 from 0.465 to 0.472, corresponding to a relative improvement of 1.5%. Precision increased from 0.555 to 0.563, and recall increased from 0.431 to 0.451. These results suggest that CBAM helps the model focus more effectively on informative target regions in complex underwater scenes.
When the CIoU loss function was used, mAP@0.5 increased from 0.465 to 0.477, corresponding to a relative improvement of 2.6%. The mAP@0.5:0.95 value also increased from 0.248 to 0.251, indicating a modest improvement in bounding-box localization under stricter IoU thresholds.
After introducing the CBAM, the model parameters increased from 2,591,010 to 2,595,878, an increase in only 4868 parameters, or approximately 0.19%. Meanwhile, the ablation experiment showed that mAP@0.5 improved from 0.465 to 0.472, precision from 0.555 to 0.563, and recall from 0.431 to 0.451, suggesting that CBAM improves feature representation with limited additional model complexity.
The complete model, which combines CBAM and CIoU loss, achieved the highest overall performance among the tested configurations. Specifically, mAP@0.5 reached 0.481, representing a relative improvement of 3.4% over the baseline model. The mAP@0.5:0.95 value increased from 0.248 to 0.260, corresponding to a relative improvement of 4.8%. Precision and recall also increased to 0.614 and 0.482, respectively. The consistent improvements across the evaluated metrics indicate that the proposed optimization strategy has a positive effect on detection performance. This result suggests that the combined use of CBAM and CIoU loss improves the model’s bounding-box localization and overall detection performance.
To determine the optimal insertion positions for the Convolutional Block Attention Module (CBAM), a series of ablation experiments were conducted. Considering that different feature map resolutions capture varying levels of spatial and semantic information, we evaluated the integration of CBAM after the 80 × 80, 40 × 40, and 20 × 20 feature layers, as well as after all three feature layers respectively. The results are summarized in
Table 4.
The results show that the 40 × 40 insertion achieved the highest mAP@0.5 among the single-layer settings, suggesting that mid-level features are particularly useful for detecting small or blurred marine organisms because they retain spatial and edge information while containing more discriminative semantic cues than the shallow 80 × 80 layer. The 20 × 20 insertion produced a relatively high recall, but its lower precision indicates that high-level semantic features alone are less stable for separating targets from complex underwater backgrounds.
When CBAM was inserted into all three feature scales, mAP@0.5 reached 0.438 and recall decreased to 0.403, indicating that adding attention modules indiscriminately does not necessarily improve detection. Excessive attention constraints may suppress useful low-level details or amplify background interference. Therefore, the final 40 × 40 + 20 × 20 setting was adopted to balance mid-level spatial detail enhancement and high-level semantic feature refinement. This ablation experiment provides the empirical basis for the selected CBAM insertion positions.
3.5. Comparative Experiments
Three recent YOLO-based underwater detection models, MAS-YOLOv11 [
22], AquaYOLO [
23], and Mobile-YOLO [
24], were included in the comparison due to their focus on underwater image degradation, multi-scale feature representation, and efficient deployment in aquatic object detection tasks.
All compared models were evaluated under the same BrackishMOT data protocol and evaluation metrics used for the proposed model.
Table 5 demonstrates the results of the performance comparison of different models on the marine organism detection task. The best results are highlighted in bold.
As shown in
Table 5, the proposed model achieves the highest mAP@0.5 (0.481), recall (0.482), and precision (0.614). These results indicate that the combined CBAM and CIoU strategy provides stronger adaptation to the BrackishMOT multi-class underwater detection task than the selected recent aquatic/underwater YOLO variants.
To further examine whether the performance gain was specifically associated with the selected attention design, additional experiments were conducted by replacing CBAM with other representative attention mechanisms using the proposed 40 × 40 and 20 × 20 insertion positions while keeping the same training protocol. The results are presented in
Table 6. The best results are highlighted in bold.
As shown in
Table 6, CBAM achieves the highest mAP@0.5 and mAP@0.5:0.95 among the tested attention mechanisms while introducing only a small increase in parameters. In contrast, C2PSA_MSDA substantially increases the parameter count and GFLOPs but does not improve detection accuracy under the current setting. SE and C2f_LSKA_Attention also show lower performance than CBAM. These results suggest that CBAM provides a better balance between feature enhancement and model complexity for the BrackishMOT underwater detection task.
In addition to the attention-module comparison, we further evaluated different bounding-box regression losses to justify the use of CIoU in the proposed model. The same YOLO11n baseline architecture and training protocol were used, and only the bounding-box regression loss was changed. The results are shown in
Table 7. The best results are highlighted in bold.
Table 7 shows that CIoU achieves the best overall performance among the tested loss settings, with an mAP@0.5 of 0.477 and an mAP@0.5:0.95 of 0.251. Compared with IoU, GIoU, and DIoU, CIoU provides more stable improvements across precision, recall, and mAP metrics. This may be attributed to the fact that CIoU jointly considers overlap area, center distance, and aspect ratio, which is beneficial for handling small and irregularly shaped marine organisms.