Explainable YOLO architectures for egg size measurement and classification

Read full text
Authors: Elsayed M. Atwa, Ibrahim Gad, Qiong Liu, Yunxiao Jiang, M. M. Abd El-Raouf, Shupeng He, Hongjian Lin, Jinming Pan
Cited by: 1
References: 35

Abstract

The poultry industry faces growing demands for automated, high-precision egg grading systems to ensure quality control and meet market standards. Traditional methods relying on manual inspection are time-consuming, subjective, and prone to human error. Although state-of-the-art YOLO architectures have achieved high accuracy in object detection, their limited interpretability constrains adoption in agricultural contexts where transparency and biological relevance are critical. This study presents an interpretable deep learning framework based on YOLOv12 architecture for real-time egg size detection and classification. Using a dataset of 844 egg images, the performance of YOLO models (v7–v12) is compared, with YOLOv12-X achieving a mean Average Precision (mAP) of 99.4%. To enhance transparency in automated decision-making, Explainable AI (XAI) techniques, including Grad-CAM and EigenCAM, are integrated to visualize the model’s focus regions during classification. This approach not only validates the model’s alignment with biologically relevant features, such as egg contours, but also provides actionable insights for stakeholders in agriculture and food processing. This work bridges the gap between high-accuracy detection and interpretability, paving the way for smarter, more trustworthy automation in the poultry supply chain.

Fields of Study & Subjects

Explainable Artificial Intelligence (XAI) Neural Networks and Applications Cell Image Analysis Techniques

Publication details

Journal / source
Scientific Reports
Publisher
Springer Science and Business Media LLC
Volume
16
Issue
1
Publication date
24 April 2026
Language
EN