Body Condition Scoring Network Based on Improved YOLOX.

Hengxiang He,Chunyu Chen,Weiwei Zhang,Zhiwen Wang,Xingfu Zhang
DOI: https://doi.org/10.1007/s10044-023-01171-x
IF: 2.307
2023-01-01
Pattern Analysis and Applications
Abstract:In the process of pig growth, key biological indicators, especially body condition scoring can accurately reflect the body condition of pigs, which has great essentiality. However, the existing manual scoring is time-consuming and labor-intensive and is readily influenced by the operator's subjective, resulting in large deviations. At present, the automatic measurement network for pig body condition scoring has not been popularized, so it is necessary to research and develop an automatic, efficient and accurate pig body condition scoring (BCS) algorithm. We extracted a total of 21,943 rear and upper images of 1674 pigs from videos in the piggery and then devised an automatic labeling method for the dataset. After being scored and processed by professionals, the dataset is fed into a YOLOX-based improved object detection and measurement network. In order to further improve the BCS estimation accuracy, we introduce an attention mechanism in the measurement network and design a dynamic loss weight optimizer. Compared with the basic YOLOX network, the improved network has got promising test results. We conduct experiments on 380 pictures completely independent of the training set. The model experiment result demonstrates that the accuracy rate of the pig body condition scoring algorithm proposed in this paper can achieve a AP of 80.06%. After deployed on the jetson NX, the accuracy of model drops by only 1.53%, and the inference speed is able to reach 29FPS. This means that it have access to be applied to actual pig breeding.
What problem does this paper attempt to address?