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 of yolk color detection is to open the eggs and discriminate the yolks color by 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 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 of yolk color scores from 5 to 11 were collected, 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 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 eggs and separated yolks spectral data, the results show that the PLS model achieved the best prediction accuracy, with test set R2 of 0.9035 and 0.9274, the root mean square errors (RMSE) of the test set are 0.3665 and 0.2933, respectively, which accomplished the non-destructive quantitative detection of egg yolk color scores.

Article information

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

Anal. Methods, 2025, Accepted Manuscript

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, Accepted Manuscript , 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