Comparative Analysis of Long Short-Term Memory and Gated Recurrent Unit Models for Chicken Egg Fertility Classification Using Deep Learning

This study explores the application of advanced Recurrent Neural Network (RNN) architectures—specifically Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU)—for classifying chicken egg fertility based on embryonic development detected in egg images. Traditional methods, such as candling, are labor-intensive and often inaccurate, making them unsuitable for large-scale poultry operations. By leveraging the capabilities of LSTM and GRU models, this research aims to automate and enhance the accuracy of egg fertility classification, thereby contributing to agricultural automation. A dataset comprising 240 high-resolution egg images was employed, resized to 256 × 256 pixels for optimal processing efficiency. LSTM and GRU models were trained to discern fertile from infertile eggs by analyzing the sequential data represented by the pixel rows in these images. The LSTM model demonstrated superior performance, achieving a validation accuracy of 89.58%, significantly surpassing the GRU model (66.67%). Compared to classical methods such as Decision Tree (85%), Logistic Regression (88.3%), the LSTM model demonstrated superior performance, achieving a validation accuracy of 89.58%, significantly surpassing the GRU model (66.67%). Compared to Decision Tree (85%), Logistic Regression (88.3%), SVM (84.57%), K-means (82.9%), and R-CNN (70%), the LSTM model achieved the highest classification accuracy. Unlike classical machine learning approaches that rely on handcrafted features and predefined decision rules, LSTM effectively learns complex sequential dependencies within images, improving fertility classification accuracy in real-world poultry farming applications. In contrast, GRU models, while more computationally efficient, may struggle with generalization under constrained data conditions. This study underscores the potential of advanced RNNs in enhancing the efficiency and accuracy of automated farming systems, paving the way for future research to further optimize these models for real-world agricultural applications.

Authors

Institutions

Publication Details

Published
2025-02-20
DOI
https://doi.org/10.3390/engproc2025087007
Citations
5
Primary Topic
Genetic and phenotypic traits in livestock
Type
article
Field-Weighted Citation Impact
9.09
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative Analysis of Long Short-Term Memory and Gated Recurrent Unit Models for Chicken Egg Fertility Classification Using Deep Learning

Shoffan Saifullah
5 citations
Genetic and phenotypic traits in livestock
9.09
article

Comparative Analysis of Long Short-Term Memory and Gated Recurrent Unit Models for Chicken Egg Fertility Classification Using Deep Learning

Shoffan Saifullah
article en
5 citations

Abstract

This study explores the application of advanced Recurrent Neural Network (RNN) architectures—specifically Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU)—for classifying chicken egg fertility based on embryonic development detected in egg images. Traditional methods, such as candling, are labor-intensive and often inaccurate, making them unsuitable for large-scale poultry operations. By leveraging the capabilities of LSTM and GRU models, this research aims to automate and enhance the accuracy of egg fertility classification, thereby contributing to agricultural automation. A dataset comprising 240 high-resolution egg images was employed, resized to 256 × 256 pixels for optimal processing efficiency. LSTM and GRU models were trained to discern fertile from infertile eggs by analyzing the sequential data represented by the pixel rows in these images. The LSTM model demonstrated superior performance, achieving a validation accuracy of 89.58%, significantly surpassing the GRU model (66.67%). Compared to classical methods such as Decision Tree (85%), Logistic Regression (88.3%), the LSTM model demonstrated superior performance, achieving a validation accuracy of 89.58%, significantly surpassing the GRU model (66.67%). Compared to Decision Tree (85%), Logistic Regression (88.3%), SVM (84.57%), K-means (82.9%), and R-CNN (70%), the LSTM model achieved the highest classification accuracy. Unlike classical machine learning approaches that rely on handcrafted features and predefined decision rules, LSTM effectively learns complex sequential dependencies within images, improving fertility classification accuracy in real-world poultry farming applications. In contrast, GRU models, while more computationally efficient, may struggle with generalization under constrained data conditions. This study underscores the potential of advanced RNNs in enhancing the efficiency and accuracy of automated farming systems, paving the way for future research to further optimize these models for real-world agricultural applications.

Jagiellonian University (PL), Universitas Pembangunan Nasional Veteran Yogyakarta (ID), AGH University of Krakow (PL)
Zero hunger
Openalex Percentile: Top 2%
Genetic and phenotypic traits in livestock
9.09
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.