高级检索+

基于改进YOLOv8n的三角帆蚌表型性状参数测量方法

A method for measuring phenotypic trait parameters of Sinohyriopsis cumingii based on an improved YOLOv8n model

  • 摘要: 三角帆蚌表型性状参数是其生长性能评价、种质资源鉴定和遗传育种研究的重要依据。为实现三角帆蚌表型性状参数的无损、快速和准确获取,该研究提出了一种改进YOLOv8n的三角帆蚌表型性状参数测量模型YOLOv8n-CBM。首先,集成动态传输、机器视觉及图像处理技术,构建三角帆蚌表型参数的自动测量系统;然后,在YOLOv8n骨干网络中,添加4个卷积注意力模块(convolutional block attention module, CBAM),以提高对三角帆蚌轮廓边缘及局部细节特征的提取效果;其次,在颈部网络中引入双向特征金字塔网络(bidirectional feature pyramid network, BiFPN)以加强不同尺度特征之间的双向融合,提高模型对多尺度目标的表征能力;同时,将原有C2f模块替换为多尺度空洞卷积模块(multi-scale dilated attention, MSDA),以扩大特征感受野,增强局部细节与全局上下文信息的联合建模能力;最后,结合旋转边界框与关键点的几何关系,提取壳长、全高、壳高与臀角放射肋长等数据。结果表明,YOLOv8n-CBM模型的平均精度均值(mAP50-95)达到98.2%,关键点定位平均偏差小于2.0 mm;壳长、全高、壳高和臀角放射肋长的平均绝对误差分别为1.51、1.08、1.02与2.00 mm;在不同壳长与全高分组下,YOLO-CBM模型的测量误差均小于原始YOLOv8n模型,最大绝对误差不超过2.879 mm,提升了对多姿态下三角帆蚌表型数据的测量精度和鲁棒性。研究结果可为贝类生长性能评价和遗传育种等提供测量方法,对于推动珍珠产业从经验化养殖向科学化、自动化发展具有重要意义。

     

    Abstract:
    Sinohyriopsis cumingii is an economically important freshwater mussel endemic to China and plays a core role in the
    S. cumingii is an economically important freshwater mussel endemic to China and plays a core role in the global pearl aquaculture industry. Phenotypic traits of S. cumingii are fundamental and essential for evaluating individual growth performance, identifying germplasm resources, and implementing precise genetic breeding programs. However, conventional manual measurement methods are labor-intensive, time-consuming, and highly susceptible to subjective human errors, often requiring skilled technicians and introducing inconsistent measurements between different operators, which severely limit their scalability and applicability in large-scale intelligent aquaculture production. To address these critical limitations and achieve non-destructive, rapid, and accurate acquisition of phenotypic parameters, this study proposes an improved measurement method based on YOLOv8n, termed YOLOv8n-CBM.First, an integrated automatic phenotypic measurement system for S. cumingii was constructed by combining dynamic transmission, machine vision, and digital image processing technologies. The system comprises a conveyor device, a high-precision industrial camera, and a dedicated image processing module, which automatically transports samples to the imaging area, enabling standardized image acquisition and high-throughput phenotypic measurement of mussel samples under continuous dynamic operating conditions. Then, three targeted improvements were implemented in the original YOLOv8n network architecture to adapt to the characteristics of mussel images. In the backbone network, four convolutional block attention modules (CBAM) were embedded after each C2f block to enhance the extraction of contour edges and local detailed features of mussels while effectively suppressing irrelevant background interference. In the neck network, the bidirectional feature pyramid network (BiFPN) was introduced to strengthen bidirectional fusion of multi-scale features and improve the model’s representation ability for targets of different sizes and postures. Meanwhile, the original C2f module was replaced with a multi-scale dilated attention (MSDA) module to expand the network’s receptive field and enhance the joint modeling capability of local fine-grained details and global contextual information. Finally, key phenotypic parameters including shell length, full height, shell height, and radial rib length of the buttock angle were extracted using the geometric relationship between rotated bounding boxes and biological key points. Experiments were conducted on a dataset of 50 manually annotated S. cumingii samples covering diverse sizes and postures. The results show that the mean average precision (mAP50-95) of the YOLOv8n-CBM model reached 98.2%, demonstrating a notable improvement in rotated object detection performance over the original YOLOv8n model. The average localization deviation of biological key points was less than 2.0 mm, indicating high precision in anatomical feature detection. The mean absolute errors (MAE) of shell length, full height, shell height, and radial rib length of the buttock angle were 1.51, 1.08, 1.02, and 2.00 mm, respectively, with all relative errors remaining below 2%. In all groups stratified by different shell lengths and full heights, the measurement errors of YOLOv8n-CBM were consistently lower than those of the original YOLOv8n model, with the maximum absolute error strictly controlled within 2.879 mm. The proposed model effectively improved measurement accuracy and robustness for S. cumingii with diverse morphologies and postures. In conclusion, this method effectively overcomes the inherent drawbacks of traditional manual measurement and realizes rapid, accurate, and non-destructive acquisition of phenotypic traits in S. cumingii. It provides a reliable technical approach for shellfish growth evaluation and genetic breeding, supports the transition of the pearl industry from empirical farming to data-driven and intelligent aquaculture, and offers a valuable reference for automated phenotypic measurement in other molluscan species.

     

/

返回文章
返回