Lightweight Sheep Head Detection and Dynamic Counting Method Based on Neural Network

Animals (Basel). 2023 Nov 9;13(22):3459. doi: 10.3390/ani13223459.

Abstract

To achieve rapid and precise target counting, the quality of target detection serves as a pivotal factor. This study introduces the Sheep's Head-Single Shot MultiBox Detector (SH-SSD) as a solution. Within the network's backbone, the Triple Attention mechanism is incorporated to enhance the MobileNetV3 backbone, resulting in a significant reduction in network parameters and an improvement in detection speed. The network's neck is constructed using a combination of the Spatial Pyramid Pooling module and the Triple Attention Bottleneck module. This combination enhances the extraction of semantic information and the preservation of detailed feature map information, with a slight increase in network parameters. The network's head is established through the Decoupled Head module, optimizing the network's prediction capabilities. Experimental findings demonstrate that the SH-SSD model attains an impressive average detection accuracy of 96.11%, effectively detecting sheep's heads within the sample. Notably, SH-SSD exhibits enhancements across various detection metrics, accompanied by a significant reduction in model parameters. Furthermore, when combined with the DeepSort tracking algorithm, it achieves high-precision quantitative statistics. The SH-SSD model, introduced in this paper, showcases commendable performance in sheep's head detection and offers deployment simplicity, thereby furnishing essential technical support for the advancement of intelligent animal husbandry practices.

Keywords: DeepSort; counting sheep; dynamic counting; improved SSD.