This study aimed to determine the integrated freshness index (IFI) of eggs using Vis-NIR spectroscopy and optimized support vector regression, which gave the first insight into the freshness quality of eggs from the biochemical essence of quality changes. In this work, Vis-NIR transmission spectra of brown-shell and pink-shell egg samples were analyzed between 500 nm and 900 nm. Standard normal variables (SNV) were used to normalize the spectral data, and the Shuffled Frog Leaping Algorithm (SFLA) and Competitive Adaptive Reweighted Sampling (CARS) were used to choose the optimal wavelengths. ...