Abstract

Attack behaviour detection of the pig is a valid method to protect the health of pig. Due to the farm conditions and the illumination changes of the piggery, the images of the pig in the videos are often being overlapped, which lead to difficulties in recognizing pig attack behaviour. We propose an improved YOLOX target detection model to overcome these difficulties. The improvements of the proposed model are: (1) the normalization attention mechanism is adopted to gain global information in the last block of the neck network and (2) the loss function IoU in YOLOX is replaced by DIoU to improve the detection accuracy. The pig attack behaviour considered in this paper includes the ear biting, the tail biting, the head to head collision and the head to body collision. The dataset is builded from the artificially observed attack video segments by using the inter-frame difference method. In the pig attack behaviour detection experiments, the improved YOLOX model achieves 93.21% precision which is 5.30% higher than the YOLOX model. The experiment results show that the improved YOLOX can realize pig attack behaviour detection with high precision.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call