基于YOLOv8的疫苗胚蛋活性视觉检测

    Visual detection method for vaccine embryo vitality based on YOLOv8

    • 摘要: 胚蛋活性检测对疫苗生产的质量与安全至关重要。传统机器视觉检测方法严重依赖人为设计的特征提取算法,对图像质量和环境条件要求高,检测结果稳定性和容错性差,导致实际检测过程中的通用性受到限制,为克服这种缺陷,该研究提出一种基于改进YOLOv8的疫苗胚蛋活性检测模型。采用自主设计图像采集装置,采集孵化10~11 d的胚蛋图像,通过几何变换、颜色调整、图像增强等方式构建并扩充数据集;采用ShuffleNetV2替换YOLOv8模型的骨干网络,在保持准确率的同时显著减少了计算复杂度,能更好地部署到嵌入式设备中;在YOLOv8颈部网络的卷积层后添加动态蛇形卷积层,通过其自适应地聚焦于细长和迂回的局部结构,准确地捕捉管状结构的性质特征,从而提高胚蛋检测的准确率;使用EIOU(embedding intersection over union)损失函数,用于适应研究中边界框对齐和形状相似的场景,构建了符合试验中胚蛋图像的网络模型,以实现疫苗胚蛋活性快速、无损、批量检测。试验结果表明,改进YOLOv8模型精确率、召回率、平均精度均值(mAP50-95)分别达99.2%、98.2%、96.9%,对比原始YOLOv8模型分别提高了2.0、0.3、1.5个百分点,模型计算复杂度与推理时间相较与原模型分别降低60.9%、60.5%。说明此模型可以更好地实现疫苗胚蛋活性无损检测,为自动化批量检测提供理论依据。

       

      Abstract: Detecting embryo viability is essential to the quality and safety of vaccine production, especially in large-scale manufacturing. Rapid and accurate detection of embryo viability can improve the production efficiency for the final quality of vaccines. Traditional machine vision detection can rely heavily on the complex algorithms of feature extraction, most of which are often designed for specific scenarios. However, the detection accuracy and stability are also sensitive to the image quality and environmental conditions, such as lighting, background, or temperature. Additionally, the applicability of traditional detection has been limited to fault tolerance in different environments, when dealing with noise or abnormal conditions. To address these challenges, this study aims to detect the vaccine embryo viability using an improved YOLOv8 model. Several innovations were incorporated to enhance efficiency, accuracy, and adaptability. A specialized system of image acquisition was developed to capture the high-quality images of embryos incubated for 10 to 11 days. The consistent dataset was obtained in the varying environmental conditions. The dataset was then expanded using geometric transformations, color adjustments, and image enhancement. As such, the robustness of the model increased to handle the diverse image conditions. In terms of model improvements, ShuffleNetV2 was used to replace the YOLOv8 backbone. Computational complexity was significantly reduced to maintain high accuracy, indicating more suitable for deployment on embedded devices where computational power was limited. The overall efficiency of the model was enhanced to support its application in large-scale industrial environments. Additionally, a dynamic snake convolutional layer was added to the neck of the YOLOv8 model. This layer was used to adaptively focus on the elongated and curved structures in embryos, in order to capture the geometric features of tubular structures. The precision of detection was improved to more accurately assess the physiological state of the embryos. Furthermore, the EIoU (Embedding Intersection over Union) loss function was introduced to more effectively detect the boundary box alignment and shape similarity, compared with the traditional IOU. EIoU improved the accuracy of boundary box positioning, while reducing the errors related to the complex shapes of embryos, thereby enhancing the reliability of the model in real-world applications. Experimental results confirmed that the superior performance of the improved YOLOv8 model was achieved to detect embryo viability. There was a precision of 99.2%, a recall of 98.2%, and a mean average precision (mAP50-95) of 96.9%, with increases of 2, 0.3, and 1.5 percentage points, respectively, compared with the original YOLOv8 model. Additionally, the computational complexity and inference time were reduced by 60.9% and 60.5%, respectively. The improved model was highly suited for the large-scale detection of embryos. The finding can also provide an efficient, non-destructive approach for the rapid detection of the vaccine embryo viability.

       

    /

    返回文章
    返回