Abstract:Pig daily behavior recognition is a core support of the intelligent breeding technology system, which is of great significance for accurately monitoring the health status and production performance of pig herds. Aiming at the key problem that existing recognition models are difficult to balance accuracy and efficiency, a pig daily behavior recognition model AHMA – PBRNet was proposed based on multi-scale features and adaptive hybrid multi-attention. Firstly, the model adopted the improved FasterNet as the backbone network, which significantly improved the computational efficiency while retaining strong feature extraction capability. Secondly, it innovatively designed the frequency-domain attention module (FAM) and adaptive spatial channel mixed attention mechanism ( ASCAM). By suppressing image noise interference and dynamically focusing on key regions of features at different levels, it realized the accurate capture of the essential features of pig behaviors and effectively strengthened the learning ability of the model. Finally, a weighted combination loss function was introduced to further optimize the detection accuracy. Experimental verification based on the self-constructed high-quality pig behavior dataset showed that: AHMA – PBRNet achieved recognition accuracies of 97.3% , 91.8% , 97.0% , 88.8% , 98.6% , 92.9% and 99.5% for seven kinds of pig daily behaviors, including standing, sitting, lying prone, lying on side, eating, drinking and mounting respectively. The overall recognition accuracy, recall rate and mean average precision reached 92.7% , 90.4% and 95.1% respectively, while the model parameter quantity was only 4.07×10? and the computational quantity was 1.11×101?, with comprehensive performance superior to current mainstream models. In addition, the group-housed pig behavior recognition interactive platform built based on this model significantly improved the intuitiveness and operational convenience of the recognition process, providing strong technical support for the development of modern intelligent pig breeding industry.