Issue 40, 2025

Research on egg yolk color detection based on near infrared spectroscopy and machine vision

Abstract

Yolk color is a key indicator of egg quality, as customers prefer eggs with intensely yellow yolks, which also signal nutrient richness. At present, the commonly used method for yolk color detection is to open the eggs and evaluate the yolk color using the Roche yolk color fan (RYCF), so developing a non-destructive method for discrimination of yolk color is of great significance. In order to overcome the human subjectivity associated with RYCF based on yolk color scoring, a machine vision method was built to classify the yolk color grades more objectively and precisely. In this work, a total of 150 egg samples with yolk color scores from 5 to 11 were collected and the near-infrared (NIR) spectral data of intact eggs and egg yolks were gathered independently, while the true scores of yolk color grades were acquired using the machine vision system as the target set for modeling. Finally, different regression prediction models for egg yolk color grades were constructed using chemometric Partial Least Squares (PLS) and machine learning techniques, such as Temporal Convolutional Network – Gated Recurrent Unit-Attention (TCN-GRU-Attention), Least Squares Support Vector Machines (LSSVM) and Convolutional Neural Network-Bidirectional Long Short Term Memory-Adaptive Boosting (CNN-BiLSTM-Adaboost). For the intact egg and separated yolk spectral data, the results show that the PLS model achieved the best prediction accuracy in the test set, with R2 values of 0.9035 and 0.9274, and the root mean square errors (RMSE) were 0.3665 and 0.2933, respectively, which accomplished the non-destructive quantitative detection of egg yolk color scores.

Graphical abstract: Research on egg yolk color detection based on near infrared spectroscopy and machine vision

Article information

Article type
Paper
Submitted
21 Jun 2025
Accepted
02 Sep 2025
First published
04 Sep 2025

Anal. Methods, 2025,17, 8190-8201

Research on egg yolk color detection based on near infrared spectroscopy and machine vision

Y. Wen, G. Dong, W. Yin, R. Yang, L. Li, X. Yu, Y. Li and Y. Yu, Anal. Methods, 2025, 17, 8190 DOI: 10.1039/D5AY01039J

To request permission to reproduce material from this article, please go to the Copyright Clearance Center request page.

If you are an author contributing to an RSC publication, you do not need to request permission provided correct acknowledgement is given.

If you are the author of this article, you do not need to request permission to reproduce figures and diagrams provided correct acknowledgement is given. If you want to reproduce the whole article in a third-party publication (excluding your thesis/dissertation for which permission is not required) please go to the Copyright Clearance Center request page.

Read more about how to correctly acknowledge RSC content.

Social activity

Spotlight

Advertisements