A Platform for AI-Driven Egg Freshness Assessment from Near Infrared Spectral Data

Authors

  • Pongtachchai Panachaiboonpipop College of Interdisciplinary and Integrative Studies, Chulalongkorn University Author
  • Manoosak Wongphatcharachai CP Innovation Center of Excellence, Charoen Phokphand Group Author
  • Nutthawan Nonthabenjawan CP Innovation Center of Excellence, Charoen Phokphand Group Author
  • Kanet Wongravee Faculty of Science, Chulalongkorn University Author

Keywords:

Egg freshness, Near-infrared spectroscopy, Artificial intelligence

Abstract

Egg freshness is critical in industrial processing because variations in freshness can affect processing conditions and product quality, such as in boiled or soft-boiled eggs. Inconsistent freshness within a batch may cause processing defects, leading to product loss, food waste, and increased production costs. Freshness is conventionally quantified by the Haugh unit (HU); however, HU measurement is destructive, time-consuming and unsuitable for high-volume screening. Near infrared (NIR) spectroscopy offers a rapid, non-destructive alternative, but building a reliable calibration requires many preprocessing and model choices that are usually made by hand, applied inconsistently, and difficult to reproduce. This work presents a platform for AI-driven egg freshness assessment that standardizes and automates the complete NIR workflow (spectral ingestion, preprocessing, feature selection and AI model training) and applies it to two complementary tasks: a quantitative regression to predict HU, and a qualitative classification to classify standard grade (grade AA : HU ≥ 70). We illustrate the platform on 642 hen eggs stored at 25 °C, whose reflectance NIR spectra (1,000-2,500 nm) were acquired non-destructively over 0-10 days of storage. With no manual tuning, the platform automatically found the best preprocessing-wavelength-model combination for each task and showed it clearly outperformed the weaker combinations: the best regression; regularized linear model on the combined top-and-bottom spectra reached an RMSE of 7.0 HU, against up to about 8.7 HU for poorer combinations, and the best classifier; XGBoost about 82% accuracy, against about 71% for the weakest. The egg sample thus serves as a worked example showing that the platform can carry out a complete, quantitative and qualitative, egg-freshness assessment automatically, consistently and reproducibly.

Author Biography

  • Kanet Wongravee, Faculty of Science, Chulalongkorn University

    Department of Chemistry, Faculty of Science, Chulalongkorn University

Downloads

Published

24-11-2026

Issue

Section

Research Articles / Full paper