首页|期刊导航|农业工程学报|Night-DETR:基于夜间环境下肉牛行为识别方法

Night-DETR:基于夜间环境下肉牛行为识别方法OA

Night-DETR:Recognizing beef cattle behavior under night environment

中文摘要英文摘要

针对夜间养殖环境下,监控图像清晰度较低、肉牛行为特征表达模糊,现有模型在特征提取与判别过程中易出现漏检和误检等问题,该研究提出一种基于夜间环境的肉牛行为识别模型Night-DETR(nignt detection transformer).首先,引入SCINet低光照增强算法对夜间图像预处理,提升图像清晰度,为后续行为识别模型提供高质量输入.其次,对RT-DETR(real-time detection transformer)结构改进,采用StarNet作为主干网络,实现高效的特征提取与模型轻量化;设计特征交互模块AIFI-EDFFN,对夜间模糊特征选择性增强与抑制,强化相邻肉牛间体态的判别性;进一步构建亮度增强特征融合模块(intensity enhance layer C3,IELC3),在跨尺度特征融合过程中引入亮度增强层,突显弱光环境下肉牛的肢体结构与姿态变化特征.结果显示:所提出Night-DETR模型与原RT-DETR模型相比,其精确率、召回率和平均精度均值分别提升5.3、5.8和5.1个百分点,达到93.4%、90.8%和91.3%;模型参数量与浮点计算量分别降低55.8%和58.2%,仅为8.8 M和23.8 G.研究表明,该模型可为夜间环境下肉牛健康监测与异常预警提供技术支持.

Behavioral information of beef cattle has been widely acknowledged as the critical indicator related to physiological health status,welfare,and production.Therefore,it is often required to accurately recognize cattle behaviors for health evaluation and early abnormality warning in precision livestock farming.However,visual monitoring has been severely restricted under nighttime breeding environments due to the low-illumination imaging.Insufficient lighting,uneven illumination distribution,and motion-induced blur have significantly degraded image quality,thus resulting in blurred appearances and weak behavioral feature representations.Existing machine vision can also suffer from frequent missed detections and false positions during feature extraction and classification.In this study,a behavior recognition framework,named Night-DETR,was proposed to specifically monitor beef cattle under complex nighttime scenarios.First,a low-light image enhancement with SCINet was introduced as a preprocessing module to improve the visual quality of nighttime monitoring images.Image brightness and structural clarity were effectively increased by suppressing noise after enhancement,thereby providing more informative and stable visual inputs for downstream behavior recognition.Second,the baseline RT-DETR architecture was systematically redesigned to improve the detection accuracy and computational efficiency.Particularly,StarNet was adopted as the backbone network to replace conventional heavy feature extractors.Multi-scale features were efficiently represented to reduce parameter redundancy and computation.An Adaptive Interactive Feature Integration module with an Efficient Discriminative Frequency Domain-based FFN(AIFI-EDFFN)was designed to treat feature ambiguity and inter-object interference under low-light conditions.Behavioral features were enhanced to suppress irrelevant background responses to contextual interactions among neighboring cattle,thereby strengthening contour,posture,and spatial relationship representations.In addition,an Intensity Enhance Layer Cross-scale Feature Fusion module(IELC3)was constructed to optimize multi-scale feature aggregation.An illumination enhancement layer was embedded into the cross-scale fusion.Limb structures,body orientation,and posture features were typically obscured to emphasize them in nighttime environments,thus improving the sensitivity to subtle behavioral changes under weak lighting.A series of experiments was conducted to evaluate the Night-DETR model.The performance of Night-DETR was compared with the representative and state-of-the-art object detection frameworks,including Faster R-CNN,TOOD,FCOS,YOLOv11n,YOLOv12n,YOLOv13n,and the original RT-DETR.Experimental results demonstrated that Night-DETR consistently performed best in nighttime detection scenarios.Compared with the baseline RT-DETR model,Night-DETR improved precision,recall,and mean average precision by 5.3,5.8,and 5.1 percentage points,respectively,thus achieving 93.4%precision,90.8%recall,and 91.3%mAP@0.5.Moreover,the computational complexity was significantly reduced,with the number of parameters and floating-point operations decreased by 55.8%and 58.2%,respectively.A lightweight architecture was obtained with only 8.8 M and 23.8 G.Cross-scene transfer learning experiments were conducted to verify the generalization of the improved model among different farming scenarios.An average precision of 90.8%was achieved after transfer learning,which was 1.4 percentage points higher than the original.Night-DETR shared strong cross-scene generalization in various farming environments.Additionally,the robustness of the model was evaluated under extremely low-light conditions.The performance curves were plotted for precision,recall,and mAP@50 among different illumination gradients.Night-DETR maintained stable performance even in severely dark scenarios,indicating its strong robustness under extremely low-light environments.Overall,the Night-DETR model can be expected to provide accurate behavioral perception under low-illumination environments with the lightweight deployment in the intelligent nighttime health monitoring and abnormal behavior early-warning systems.The findings can also offer strong technical support for precision livestock farming in breeding environments.

贾启;王芳;任力生;贾惠煊;刘星宇

河北农业大学信息科学与技术学院,保定 071001||河北省农业大数据重点试验室,保定 071001河北女子职业技术学院,石家庄 050073||河北省农业大数据重点试验室,保定 071001河北农业大学信息科学与技术学院,保定 071001||河北省农业大数据重点试验室,保定 071001河北农业大学信息科学与技术学院,保定 071001||河北省农业大数据重点试验室,保定 071001河北农业大学信息科学与技术学院,保定 071001||河北省农业大数据重点试验室,保定 071001

信息技术与安全科学

夜间环境低光照增强算法目标检测行为识别肉牛Night-DETR

night environmentlow illuminationenhancement algorithmtarget detectionbehavior recognitionbeef cattleNight-DETR

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

29-38,10

河北省省级科技计划项目(19220119D)

10.11975/j.issn.1002-6819.202601187

评论