Applied Sciences (Feb 2024)

SqueezeNet: An Improved Lightweight Neural Network for Sheep Facial Recognition

  • Min Hao,
  • Quan Sun,
  • Chuanzhong Xuan,
  • Xiwen Zhang,
  • Minghui Zhao

DOI
https://doi.org/10.3390/app14041399
Journal volume & issue
Vol. 14, no. 4
p. 1399

Abstract

Read online

To quickly realize facial identity recognition in sheep, this paper proposes a lightweight detection algorithm based on SSD with a self-constructed dataset. Firstly, the algorithm replaces the VGG16 backbone of SSD with the lightweight neural network SqueezeNet, creating a lightweight hybrid network model. Secondly, an ECA mechanism is introduced at the front end of the pooling layer with a parameter volume of 12 × 1000 into the feature extraction network. Lastly, the smoothL1 loss function is replaced with the BalancedL1 loss function. The optimal model size has been reduced from the original SSD’s 132 MB to 35.8 MB. The average precision is 82.39%, and the mean frame rate is 66.11 frames per second. Compared to the baseline SSD model, the average precision has improved by 2.17%, the model volume has decreased by 96.2 MB, and the detection speed has increased by 7.13 frames per second. Using the same dataset on different target detection models for comparison tests, the average accuracy mean values are improved by 2.17%, 3.63%, and 1.30% compared to the SSD model, Faster R-CNN model, and Retinanet model, respectively, which substantiates a better overall performance compared to the pre-improvement model. This paper proposes an improved model that significantly reduces the model size and its computation while keeping the model performance at a high level, providing a methodological reference for the digitization of livestock farming.

Keywords