基于改进YOLOv11的鱼体寄生虫镜检图像检测算法

A PARASITE MICROSCOPY IMAGE DETECTION ALGORITHM FOR FISH BASED ON IMPROVED YOLOv11

  • 摘要: 为解决水产养殖中鱼体寄生虫镜检时因个体差异及互相遮挡引发的误检和漏检问题, 文章提出一种基于改进YOLOv11n的鱼体寄生虫检测算法AMP-YOLO。首先引入ADown自适应下采样模块, 有效保留小目标和遮挡区域的细粒度特征以提高检测精度; 其次采用了MLCA混合局部通道注意力机制, 融合局部与全局特征以增强模型对输入上下文特征的捕获能力, 同时细化重叠区域的特征差异进一步提升准确率; 最后以MPDIoU损失函数替换原有的损失函数, 提高模型对尺寸不平衡目标的检出能力。实验结果表明改进算法能在自制鱼体寄生虫数据集上保持较高的精度, 相较于传统YOLOv11n算法, mAP@0.5提升4.8%, 精确率提升1.6%, 召回率提升3.2%。研究有助于快速精准地实现鱼体寄生虫的鉴别, 减小人工判断误差, 为有效防治寄生虫疾病提供依据, 进而推动鱼类健康管理的智能化发展。

     

    Abstract: In aquaculture, the traditional identification and diagnosis of parasitic infections rely heavily on manual microscopic examination by professionals’ experiences. However, this approach is time-consuming and subjective, often leading to inaccurate results due to human error. Furthermore, the diverse morphology of parasites, including variations in size, shape, and position, as well as issues such as occlusion and overlapping, all of which contribute to high false positives and missed detections rates in manual inspection. To address the limitations of traditional methods and enhance the effectiveness of automated detection, the article proposes an improved deep learning-based detection algorithm, named AMP-YOLO, built upon the lightweight and efficient YOLOv11n architecture. The proposed AMP-YOLO algorithm introduces a series of enhanced design to improve detection accuracy. Firstly, the paper replaces the downsampling of YOLOv11n with an adaptive downsampling module. Unlike conventional down-sampling methods of lose critical spatial details, ADown adaptively preserves contextual and edge structure information, particularly for small objects, by combining average pooling and max pooling strategies alongside lightweight convolutional blocks. This ensures that fine-grained features essential for identifying small parasites are retained during the feature extraction process. Secondly, it integrates a Mixed Local Channel Attention (MLCA) mechanism. MLCA enhances the network’s ability to capture and differentiate between local and global contextual features, allowing the model to refine overlapping features and improve differentiation of closely clustered or partially occluded parasites. As a result, the precision is effectively improved, addressing a common shortcoming in many object detection frameworks where subtle or obscured targets are easily overlooked. Finally, we replace the original CIoU loss function in YOLOv11n with the more robust MPDIoU loss function. MPDIoU introduces the distribution characteristics of center point deviation to avoid gradient vanishing, improve bounding box positioning accuracy, and enhance performance in scenes with occluded objects. This way contributes significantly to the model’s precision and recall, especially when detecting multiple parasites within densely populated regions. To comprehensively evaluate the performance of AMP-YOLO model, a series of extensive experiments were carried out using a self-built, custom-annotated dataset specifically curated for the task of parasitic detection in aquaculture. The dataset reflects real-world challenges common in practical settings, including varying parasite overlap and significant size differences that often confuse standard detection algorithms. The results demonstrate that AMP-YOLO significantly outperforms the baseline in all key aspects. Specifically, it achieves a mAP@0.5 4.8% higher than that of the original model (indicating greater overall detection accuracy), a 1.6% increase in precision (reducing false positives while correctly identifying true positives), and a 3.2% improvement in recall (capturing more true instances, particularly small, occluded, or partially visible parasites). These improvements confirm the high accuracy and completeness of the improved algorithm in parasite detection scenarios with size imbalance and target occlusion. The AMP-YOLO algorithm represents a better advancement in automated detection of fish parasites, offering a robust, efficient, and intelligent solution for aquaculture health monitoring. Through architectural innovations that improve feature extraction and localization accuracy, the model enables rapid, precise identification of fish parasitic in complex aquatic environments, even with severe overlap, occlusion, or visual ambiguity. This significantly reduces reliance on manual inspection, minimizing diagnostic errors caused by human subjectivity or limited experience. The enhanced accuracy of AMP-YOLO supports timely and targeted medical intervention, helping aquaculture practitioners quickly and accurately identify parasites, provide a basis for effective parasitic diseases prevention and control,, and ultimately promote the intelligent development of fish health management.

     

/

返回文章
返回