An Ultra-Lightweight Method for Individual Identification of Cow Back Pattern Images in an Open Image Set

27 Pages Posted: 30 May 2023

See all articles by Rong Wang

Rong Wang

Beijing Academy of Agriculture and Forestry Sciences

ronghua Gao

Beijing Academy of Agriculture and Forestry Sciences

Qifeng Li

Beijing Academy of Agriculture and Forestry Sciences

Chunjiang Zhao

Beijing Forestry University

Lin Ru

Heilongjiang Bayi Agricultural University

Luyu Ding

Beijing Academy of Agriculture and Forestry Sciences

Ligen Yu

Beijing Academy of Agriculture and Forestry Sciences

Weihong Ma

Beijing Academy of Agriculture and Forestry Sciences

Abstract

The present study proposes a novel open-set metric learning-based recognition framework for cow-back patterns. The framework is designed to resolve a major issue with individual cow recognition models, which are unable to identify cows that have not appeared in the training set. The proposed framework integrates various loss functions, metric methods, and backbone networks to achieve the open-set recognition of cow back pattern images, thereby identifying cows that the recognition model was unable to identify previously. In order to reduce hardware resource consumption, a novel ultra-lightweight backbone network, LightCowsNet, is designed based on the existing lightweight backbone networks (MobileFaceNet, MobileViT, and EfficientNetV2) to extract features from the images of cow back patterns. LightCowsNet first uses attention mechanisms, inverted residual structures, and depth-wise separable convolutions to design multiple new feature extraction modules and then places these feature extraction modules with different structures for extracting different levels of image information, which enables complete extraction of the texture information of cow back patterns. The present study reorganized the Cows2021 dataset to render it suitable for open-set recognition of cow-back patterns, with the test set comprising image pairs. The results revealed that using A-SoftMax as the loss function and Euclidean distance as the metric method enabled LightCowsNet to achieve the highest accuracy of 94.26%, with a model weight space occupation of just 4.06 MB. LightCowsNet exhibited increased accuracy on the test set compared to MobileFaceNet, MobileViT, and EfficientNetV2, by 6.24%, 8.82%, and 2.3%, respectively, while its weight size decreased by 0.71 MB, 0.24 MB, and 4.3 MB, respectively. These results demonstrate that the proposed model achieved both accuracy improvement and model light-weightedness, and these findings could serve as reference solutions for intelligent farming in cow farms.

Keywords: Cow-back pattern, Cow recognition, LightCowsNet, Open image set, Deep Learning

Suggested Citation

Wang, Rong and Gao, ronghua and Li, Qifeng and Zhao, Chunjiang and Ru, Lin and Ding, Luyu and Yu, Ligen and Ma, Weihong, An Ultra-Lightweight Method for Individual Identification of Cow Back Pattern Images in an Open Image Set. Available at SSRN: https://ssrn.com/abstract=4463666 or http://dx.doi.org/10.2139/ssrn.4463666

Rong Wang

Beijing Academy of Agriculture and Forestry Sciences ( email )

11 Shuguang Huayuan Middle Road
Beijing, 100097
China

Ronghua Gao (Contact Author)

Beijing Academy of Agriculture and Forestry Sciences ( email )

11 Shuguang Huayuan Middle Road
Beijing, 100097
China

Qifeng Li

Beijing Academy of Agriculture and Forestry Sciences ( email )

11 Shuguang Huayuan Middle Road
Beijing, 100097
China

Chunjiang Zhao

Beijing Forestry University ( email )

35 Qinghua E Rd.
WuDaoKou
Beijing, 100085
China

Lin Ru

Heilongjiang Bayi Agricultural University ( email )

Daqing
China

Luyu Ding

Beijing Academy of Agriculture and Forestry Sciences ( email )

11 Shuguang Huayuan Middle Road
Beijing, 100097
China

Ligen Yu

Beijing Academy of Agriculture and Forestry Sciences ( email )

11 Shuguang Huayuan Middle Road
Beijing, 100097
China

Weihong Ma

Beijing Academy of Agriculture and Forestry Sciences ( email )

11 Shuguang Huayuan Middle Road
Beijing, 100097
China

Do you have a job opening that you would like to promote on SSRN?

Paper statistics

Downloads
54
Abstract Views
229
Rank
830,198
PlumX Metrics