基于计算机视觉技术的牛肌内脂肪含量智能测定模型研究OA
Research on An Intelligent Measurement Model for Intramuscular Fat Content in Cattle Based on Computer Vision Technology
为满足生产实践中对牛肉肌内脂肪(intramuscular fat,IMF)含量进行快速、客观测定的需求,本研究以牛背最长肌(眼肌)为研究对象,构建了一种基于计算机视觉技术的IMF预测模型.试验共采集来自3个标准化屠宰场的牛眼肌样本500份,在统一条件下获取切面图像1 000张,并采用索氏提取法测定IMF含量作为真实参考值.基于Segment Anything Model(SAM)实现牛眼肌区域的自动分割,结合HSV颜色空间变换与大津阈值分割方法提取脂肪区域特征,计算初步脂肪像素比例;在此基础上,以脂肪像素比例为输入变量,分别构建线性回归、随机森林、梯度提升机和BP神经网络4种回归模型,并比较其对IMF含量的拟合与预测效果.结果表明,初步脂肪像素比例与IMF含量呈正相关(r=0.360 7,P≤0.01);不同模型比较结果显示,线性回归、随机森林、梯度提升机和BP神经网络在独立测试集上的决定系数R2分别为0.130 1、0.398 8、0.608 5和0.709 2,其中BP神经网络模型拟合效果最佳,平均绝对误差为0.025 1,均方根误差为0.030 2,预测结果与实测值一致性良好.表明该方法能够实现对牛肉IMF含量的稳定预测,为牛肉品质评价和肌内脂肪含量的规模化测定提供了一条现实可行的技术路径.
To meet the demand for rapid and objective determination of beef intramuscular fat(IMF)con-tent in practical production,this study developed a computer vision-based IMF prediction model using bo-vine longissimus dorsi,also known as the eye muscle,as the study material.A total of 500 beef eye muscle samples were collected from three standardized slaughterhouses,and 1 000 cross-sectional images were ac-quired under uniform imaging conditions.IMF content was determined by the Soxhlet extraction method and used as the reference value.The Segment Anything Model(SAM)was used to automatically segment the beef eye muscle region.Fat-related image features were then extracted by combining HSV color space transformation with Otsu threshold segmentation,and the preliminary fat pixel ratio was calculated.On this basis,using the fat pixel ratio as the input variable,four regression models,including linear regression,random forest,gradient boosting decision tree,and backpropagation(BP)neural network,were constructed to compare their prediction performance for IMF content.The results showed that the preliminary fat pixel ratio was significantly positively correlated with IMF content(r=0.360 7,P ≤0.01).Comparison among different models showed that the coefficients of determination(R2)of linear regression,random forest,gradient boosting decision tree,and BP neural network on the independent test set were 0.130 1,0.398 8,0.608 5,and 0.709 2,respectively.Among these models,the BP neural network showed the best prediction performance,with a mean absolute error(MAE)of 0.025 1 and a root mean square error(RMSE)of 0.030 2,indicating good agreement between the predicted and measured values.These results indicate that the pro-posed method can achieve stable prediction of beef IMF content and provide a practical and feasible techni-cal approach for beef quality evaluation and large-scale determination of intramuscular fat content.
徐敏;李鑫;桑林森;昝林森;王洪宝
西北农林科技大学 动物科技学院,陕西杨凌 712100西北农林科技大学 机械与电子工程学院,陕西杨凌 712100西北农林科技大学 信息工程学院,陕西杨凌 712100西北农林科技大学 动物科技学院,陕西杨凌 712100西北农林科技大学 动物科技学院,陕西杨凌 712100
农业科技
牛肉肌内脂肪SAMBP神经网络
beefintramuscular fat(IMF)Segment Anything Model(SAM)backpropagation(BP)neural network
《中国牛业科学》 2026 (3)
8-14,7
陕西省重点研发计划-关键核心技术攻关项目(2024NC2-GJHX-20)秦创原产业创新聚集区"四链"融合项目(2025CY-JJQ-78)
评论