Combining Object Detection and Geometric Analysis for Egg Dimension Estimation in Smart Farming

Closed

Hasan Zidni, Karisma Trinanda Putra, Nor Salwa Damanhuri, Sarwo Pranoto, Deri Aditya Romadhon, Rustam Asnawi

2025 ICE3IS 2025 - Conference Proceedings: 5th International Conference on Electronic and Electrical Engineering and Intelligent System Conference paper Cited by 0 Quartile

Abstract

Accurate measurement of egg dimensions is essential in modern poultry farming for effective grading, sorting, and quality control. However, traditional manual methods are time-consuming and susceptible to inconsistency, limiting their scalability in large-scale operations. This study presents a hybrid approach that combines YOLOv8-based object detection with geometric analysis to automatically estimate egg lengths from digital images. A custom YOLOv8n model was trained on annotated egg datasets and evaluated for detection performance, achieving 0.87 mAP @ 0.5, 0.75 mAP @ 0.5: 0.95,0.88 precision, and 0.86 recall. Detected bounding boxes were converted from pixels to centimetres using a calibrated pixel-to-length ratio. The estimated dimensions were compared with ground-truth measurements taken manually using callipers. Across multiple test samples, the proposed method achieved a mean absolute error (MAE) of 0.056 cm and an average relative error of 1.29%, demonstrating high estimation accuracy. These results demonstrate both high estimation accuracy and the system's potential to reduce measurement time and human subjectivity, supporting scalable and contactless egg size classification in smart farming. © 2025 IEEE.

Affiliations

Universitas Negeri Yogyakarta, Departement Of Electrical Engineering Education, Yogyakarta, Indonesia; Universitas Muhammadiyah Bantul, Department of Electrical Engineering, Yogyakarta, Indonesia; University Teknologi Mara, Faculty of Electrical Engineering, Penang, Malaysia