首页|期刊导航|农业工程学报|融合实例分割与Stacking集成学习的兔笼料盒饲料余量估测方法

融合实例分割与Stacking集成学习的兔笼料盒饲料余量估测方法OA

Segmentation and stacking ensemble learning-based method for estimating residual feed in rabbit cage feeders

中文摘要英文摘要

针对集约化肉兔养殖中人工巡检劳动强度大、现有3D视觉监测成本高以及传统2D深度学习算法在边缘端推理速度慢、回归精度不足等问题,该研究设计并验证了一套面向嵌入式终端的饲料余量估测方法.研究构建了搭载工业相机的自主巡检机器人平台,采用"分割-回归"双阶段解耦架构:第一阶段采用改进的YOLOv8-seg实例分割模型,利用其原生C2f模块与解耦头结构,在保证边缘轮廓分割精度的同时提升推理速度;第二阶段提取分割区域的面积、周长、最小外接矩形长宽等几何特征,构建基于XGBoost、随机森林与BP神经网络的Stacking集成回归模型,建立2D图像特征与3D饲料质量之间的稳健映射关系.最后算法经TensorRT量化加速后部署于NVIDIA Jetson Xavier NX边缘计算平台.试验结果表明,YOLOv8-seg模型在分割任务中平均精度(AP50)为0.995,平均像素准确率(mean pixel accuracy,MPA)为 0.969 5;Stacking 集成模型在质量估测中的平均绝对误差(mean absolute error,MAE)为 2.345 8 g,决定系数(R2)达0.9904.经量化加速后,边缘端在保持FP32图像精度的前提下,推理速度达到29.2帧/s,满足巡检机器人0.2 m/s行进速度下的实时监测需求.该研究验证了融合实例分割与集成学习的方案在处理非结构化农业场景中"特征歧义"问题的有效性,为肉兔精准饲喂系统的工程化应用提供了可靠的技术支撑.

Precision feeding is often required to monitor the residual feed levels in standardized meat rabbit farming.However,manual inspection cannot fully meet the intensive production in recent years,due to the labor-intensive and human error.While emerging 3D vision monitoring can also remain expensive and fragile under harsh breeding environments.Furthermore,conventional 2D deep learning failed to balance inference speed with regression accuracy on resource-constrained edge devices,particularly for the strong nonlinearity between 2D projected features and 3D feed weight.In this study,a robust,low-cost,and real-time system of residual feed estimation was developed to deploy on an autonomous inspection robot.Two-stage architecture with the decoupled"Segmentation-regression"was also designed to balance between visual perception complexity and limited edge computing power.In the first stage,the YOLOv8-seg instance segmentation model was employed to rapidly and accurately extract the feed region from the complex background of the rabbit cage.Advanced single-stage anchor-free architecture was utilized in the C2f module to optimize gradient flow,while a decoupled head structure was to separate classification from localization.Thereby the high-precision segmentation was obtained for the irregular feed boundaries without the computational overhead of two-stage models like Mask R-CNN.In the second stage,the four geometric features—projection area(S),contour perimeter(Z),and the length(L)and width(W)of the minimum bounding rectangle—were extracted rather than only on pixel area.A multidimensional feature vector was then constructed using these geometric features.The physical constraints were used to address the ambiguity in 2D-to-3D mapping caused by the inclined side walls of the feeders and the irregular accumulation resulting from rabbit foraging behaviors.Stacking ensemble regression model was constructed to map these features to weight.Three heterogeneous base learners were integrated:eXtreme Gradient Boosting(XGBoost),Random Forest(RF),and Back Propagation Neural Network(BPNN).A linear regression meta-learner was utilized to combine the predictions of these base models.The tree models were effectively balanced for tabular data to avoid the overfitting risks with single neural networks.The improved model was deployed on an embedded NVIDIA Jetson Xavier NX platform after TensorRT optimization.A trade-off analysis between FP32 and INT8 quantization mode was conducted for geometric fidelity.Experimental results indicated that the exceptional performance was achieved on the constructed dataset.The YOLOv8-seg model was attained a mean Average Precision(AP50)of 0.995 and a Mean Pixel Accuracy(MPA)of 0.969 5,indicating the fine-grained edge features after extraction.In the regression task,the Stacking ensemble model was achieved in a Mean Absolute Error(MAE)of 2.345 8 g and a coefficient of determination(R2)of 0.990 4.A internal baseline comparison revealed that the Stacking strategy was reduced the MAE by 53.2%compared with a single BPNN model,indicating the ensemble strategy in the small-sample geometric regression.The deployment tests showed that the"sawtooth"edge noise was introduced to degrade the regression accuracy,while INT8 quantization offered the higher speeds.Conversely,the FP32 precision mode also achieved an inference speed of 29.2 frames per second(FPS).Real-time detection was achieved,meeting the 10 FPS requirement for the inspection robot traveling at 0.2 m/s.In conclusion,a lightweight and decoupled machine vision framework was validated to effectively treat the ambiguity of 2D features using feature engineering and ensemble learning.The high precision,strong robustness,and low hardware costs can offer the practically technical solution for the precision feeding in meat rabbit farming.

姜伟;徐际童;杨慧琳;吴在炎;王粮局;王红英

中国农业大学工学院,北京 100083中国农业大学工学院,北京 100083中国农业大学工学院,北京 100083中国农业大学工学院,北京 100083中国农业大学工学院,北京 100083中国农业大学工学院,北京 100083

农业科技

肉兔养殖机器视觉集成学习质量估测深度学习级联模型

rabbit farmingmachine visionensemble learningweight estimationdeep learningcascade model

《农业工程学报》 2026 (11)

89-98,10

国家现代农业产业技术体系项目(CARS-43-D-3)

10.11975/j.issn.1002-6819.202511165

评论