RAFE-DETR: AN RT-DETR-BASED ALGORITHM FOR MULTI-BEHAVIOR DETECTION IN GROUP-HOUSED PIGS
RAFE-DETR:一种基于RT-DETR的群养猪多行为检测算法
DOI : https://doi.org/10.35633/inmateh-78-113
Authors
Abstract
Accurate detection of multiple behaviors in group-housed pigs was important for precision livestock farming and intelligent farm management. This study proposed RAFE-DETR, an improved detector based on RT-DETR, for recognizing standing, lying, feeding, drinking, and fighting in overhead surveillance images. RFAConv was embedded into RepViT blocks to construct the RFA-RepViT backbone for stronger local feature extraction. The original intra-scale interaction module was replaced with BiFormer to improve contextual modeling. The neck was redesigned with ASF-CSA to enhance adaptive multi-scale fusion, and Focaler-Shape-IoU was introduced to refine box regression. Experiments were conducted on a five-class dataset reconstructed from public surveillance videos. The proposed model achieved 93.9% precision, 92.7% recall, and 94.2% mean average precision at an intersection-over-union threshold of 0.5. Compared with RT-DETR-L, these values increased by 1.4, 2.8, and 3.0 percentage points, respectively. At the same time, the number of parameters decreased from 32.0 M to 21.9 M, and GFLOPs decreased from 103.5 to 77.0. Supplementary experiments on a second public dataset supported the robustness of the method. Deployment on Jetson Orin NX Super reached 13.8 and 19.1 frames per second under PyTorch and TensorRT, respectively, indicating good edge-deployment potential.
Abstract in Chinese



