Duan Liukui, Bao Juanfang, Yang Hao, Gao Liuqian, Zhang Xu, Li Shengjie, Wang Huihui
School of Mechanical Engineering & Automation, Dalian Polytechnic University, Dalian 116034, China.
School of Food Science & Technology, Dalian Polytechnic University, Dalian 116034, China.
Foods. 2024 Nov 22;13(23):3745. doi: 10.3390/foods13233745.
For chicken carcass breast blood-related defects (CBDs), which occur with high frequency, the visual features are approximated in terms of the similarity of the composition of these defects, making it challenging to classify them, either manually or automatically, using conventional machine vision. The aim of this paper was to introduce a method of CBD classification based on hyperspectral imaging combined with Convolutional Neural Networks (CNNs). To process hyperspectral data, the Improved Firefly Band Selection Algorithm was constructed with the 1-D CNN CBD classification model as the objective function, achieving a reduction in the dimensionality of hyperspectral data. The multidimensional data CBD classification models were developed based on YOLOv4 and Faster R-CNN, incorporating the 1-D CNN CBD classification model and the feature fusion layer. The combination of hyperspectral data and CNN can effectively accomplish the classification of CBDs, although different model architectures emphasize classification speed and accuracy differently. The multidimensional data YOLOv4 CBD classification model achieves an mAP of 0.916 with an inference time of 41.8 ms, while the multidimensional data Faster R-CNN CBD classification model, despite having a longer inference time of 58.2 ms, reaches a higher mAP of 0.990. In practical production scenarios, the appropriate classification model can be selected based on specific needs.
对于高频出现的鸡胴体胸部血液相关缺陷(CBDs),这些缺陷的视觉特征在组成相似性方面较为接近,这使得使用传统机器视觉进行手动或自动分类都具有挑战性。本文的目的是介绍一种基于高光谱成像结合卷积神经网络(CNNs)的CBD分类方法。为了处理高光谱数据,构建了以一维CNN CBD分类模型为目标函数的改进萤火虫波段选择算法,实现了高光谱数据的降维。基于YOLOv4和Faster R-CNN开发了多维数据CBD分类模型,纳入了一维CNN CBD分类模型和特征融合层。高光谱数据和CNN的结合可以有效地完成CBDs的分类,尽管不同的模型架构在分类速度和准确性上的侧重点不同。多维数据YOLOv4 CBD分类模型的平均精度均值(mAP)为0.916,推理时间为41.8毫秒,而多维数据Faster R-CNN CBD分类模型尽管推理时间较长,为58.2毫秒,但其mAP更高,达到0.990。在实际生产场景中,可以根据具体需求选择合适的分类模型。