Next Article in Journal
An Agile and Scalable Hybrid Blockchain Architecture for Seed Traceability
Previous Article in Journal
A Review of Mechanized Harvesting, Threshing, and Cleaning Devices for Pulses
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

Measurement Method for the Egg Shape Index of Breeding Egg Based on a Lightweight YOLOv12n-Seg Model

1
College of Engineering, Huazhong Agricultural University, Wuhan 430070, China
2
College of Animal Science and Technology, College of Veterinary Medicine, Huazhong Agricultural University, Wuhan 430070, China
*
Author to whom correspondence should be addressed.
Agriculture 2026, 16(10), 1052; https://doi.org/10.3390/agriculture16101052
Submission received: 9 April 2026 / Revised: 6 May 2026 / Accepted: 10 May 2026 / Published: 12 May 2026
(This article belongs to the Section Artificial Intelligence and Digital Agriculture)

Abstract

To address the strong reliance on manual operations and the low efficiency of egg shape index (ESI) phenotyping in layer breeding, this study proposed an ESI measurement method based on an improved YOLOv12n-seg model. Ghost Bottleneck modules were introduced into the backbone to reduce model complexity. In addition, a boundary-aware loss combining Binary cross entropy (BCE), Dice, and Boundary Loss was designed to improve mask quality. Based on the segmentation results generated by YOLO-Ghost, principal component analysis was employed to extract the orientation and scale of the principal axes of the segmented regions. The major and minor axes of the pixel-level masks were then obtained, and their ratio was used as the measured ESI value. Compared with YOLOv12n-seg, YOLO-Ghost reduced the number of model parameters and computational cost by 39.86% and 17.58%, respectively, while increasing the frame rate by 40.91%. The model achieved an mAP@0.50–0.95 of 92.10%, BF1 of 86.28%, and BIoU of 74.99%. Compared with other instance segmentation models, YOLO-Ghost achieved a precision of 99.96%, a recall of 99.69%, and a detection speed of 454.55 f/s. For ESI estimation, the predicted values showed good agreement with manual measurements, with an R2 of 0.8184, MAE of 0.03219, and RMSE of 0.03681. The results indicate that the proposed method can achieve non-contact, automated, and accurate measurement of ESI, and provides technical support for high-throughput automated phenotypic data collection in layer breeding.
Keywords: egg shape index; instance segmentation; YOLOv12n-seg; intelligent breeding; deep learning egg shape index; instance segmentation; YOLOv12n-seg; intelligent breeding; deep learning

Share and Cite

MDPI and ACS Style

Heng, Y.; Wang, S.; Du, H.; Fan, Z.; Sheng, Z. Measurement Method for the Egg Shape Index of Breeding Egg Based on a Lightweight YOLOv12n-Seg Model. Agriculture 2026, 16, 1052. https://doi.org/10.3390/agriculture16101052

AMA Style

Heng Y, Wang S, Du H, Fan Z, Sheng Z. Measurement Method for the Egg Shape Index of Breeding Egg Based on a Lightweight YOLOv12n-Seg Model. Agriculture. 2026; 16(10):1052. https://doi.org/10.3390/agriculture16101052

Chicago/Turabian Style

Heng, Yifan, Shucai Wang, Hao Du, Zhiwei Fan, and Zheya Sheng. 2026. "Measurement Method for the Egg Shape Index of Breeding Egg Based on a Lightweight YOLOv12n-Seg Model" Agriculture 16, no. 10: 1052. https://doi.org/10.3390/agriculture16101052

APA Style

Heng, Y., Wang, S., Du, H., Fan, Z., & Sheng, Z. (2026). Measurement Method for the Egg Shape Index of Breeding Egg Based on a Lightweight YOLOv12n-Seg Model. Agriculture, 16(10), 1052. https://doi.org/10.3390/agriculture16101052

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop