Improved ResNet-50 deep learning algorithm for identifying chicken gender

•Proposing the improved ResNet-50 deep learning algorithm for chicken gender identification.•Realizing chicken gender recognition in real farming scenarios.•The methodology of this study was carefully compared with existing relevant studies.•This study contributes to the development of chicken inspe...

Full description

Saved in:
Bibliographic Details
Published inComputers and electronics in agriculture Vol. 205; p. 107622
Main Authors Wu, Dihua, Ying, Yibin, Zhou, Mingchuan, Pan, Jinming, Cui, Di
Format Journal Article
LanguageEnglish
Published Elsevier B.V 01.02.2023
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:•Proposing the improved ResNet-50 deep learning algorithm for chicken gender identification.•Realizing chicken gender recognition in real farming scenarios.•The methodology of this study was carefully compared with existing relevant studies.•This study contributes to the development of chicken inspection robots with gender identification. Accurate identification of chicken gender helps farms to optimize breeding sex ratios and programs. A chicken gender identification method based on an improved ResNet-50 deep learning algorithm was proposed in this study. The Squeeze-and-Excitation (SE) attention was introduced to improve the residual units of ResNet-50, and the Swish function and Ranger optimizer were combined for ensuring feature learning and training effectiveness to further enhance the model performance. A public dataset acquired from a commercial farm was used to train and test the algorithm, which has a total of 960 images of chickens with different genders, scenes, and behaviors. The ablation tests were performed to verify the contribution of the SE module, Swish, and Ranger optimizer to the algorithm. The deep features of the proposed algorithm were visualized with heat maps to show the contribution of different body parts to gender identification. Moreover, the algorithm was compared with five typical recognition algorithms including AlexNet, GoogleNet, VGG-16, ResNet-18, and DenseNet-201, as well as four state-of-the-art (SOTA) animal gender identification methods. The results showed that the ranger optimizer, Swish activation function, and SE attention improved the accuracy of gender recognition by 0.14%, 0.35%, and 1.81%, and the heat maps indicated that the head and tail contributed more to gender recognition. More specifically, the algorithm achieved better overall performance than the five algorithms and four gender identification methods with the Accuracy, Precision, Recall, F1, and Inference time of 98.42%, 97.92%, 98.95%, 98.43%, and 4.79 ms, respectively. Furthermore, tests on the private dataset collected in a real chicken farm by the poultry house inspection robot revealed that the algorithm could identify chicken gender well, and initially reflected that it was feasible to develop a gender recognition function on an inspection robot. The code and dataset of this study will be released on GitHub (https://github.com/PuristWu/Identifying-gender) as soon as the study is published, and new data would be updated as well in the future.
ISSN:0168-1699
1872-7107
DOI:10.1016/j.compag.2023.107622