A Lightweight Pig Face Recognition Method Based on Efficient Mobile Network and Horizontal Vertical Attention Mechanism

Shuiqing Xu,Haodong Zheng,Songbing Tao,Yi Chai,Qihang He,Hongtian Chen
DOI: https://doi.org/10.1109/tim.2024.3374313
IF: 5.6
2024-03-22
IEEE Transactions on Instrumentation and Measurement
Abstract:Pig face recognition is a crucial tool in preventing and controlling swine fever, as well as optimizing pig farming practices. This study proposes an end-to-end lightweight pig face recognition method called EHV-YOLO, which can accurately identify pig faces from multiple angles and detect faces covered with dirt or external objects. First, to enhance the effectiveness of pig face feature extraction, the study innovatively designs the efficient mobile network (EMobileNet) as the backbone network and constructs a spatial pyramid pooling-fast (SPPF) module to be added to the end of the network. Subsequently, to improve the accuracy of pig face detection and identification, a horizontal–vertical attention mechanism (HVAM) is designed and inserted into the EMobileNet. Meanwhile, HVAM is a generic module that can be easily integrated into other network models. Based on the above designs, the EHV-YOLO model has a parameter count of only 0.97M and achieves a real-time detection speed of over 120 frames per second (FPS) with a 99.34% mean average precision (mAP) on the JD pig face dataset, outperforming other existing methods. These results demonstrate the excellent performance of the proposed method and its potential usefulness in practical applications.
engineering, electrical & electronic,instruments & instrumentation
What problem does this paper attempt to address?