1 Introduction

Raw eggs with rich nutrition and edible convenience are the main variety of egg consumption and also important raw materials for food industry. Egg production in China has been increased, reaching 31.28 million tons in 2018 [5]. As fresh eggs come from livestock farms and farmers, production places are dispersed and purchase period is long. While the peak season of laying eggs is in spring, summer and early autumn with high temperature, fresh eggs are easy to oxidize in sale, storage and logistics.

Egg deterioration refers to rotten eggs caused by decomposition of egg contents by microorganisms such as bacteria and molds in appropriate temperature and humidity conditions. Liquid in eggs laid by healthy poultry is sterile. Membrane over eggshells and albumen membrane close the stomata to prevent microorganism invasion. But, these defense systems are temporary and vulnerable to microbial reproduction and destruction, resulting in complex physical and chemical changes in eggs, including protein spoilage, fat rancidity and sugar decomposition. At present, there are several universal indexes of egg freshness, including sensory indicators, air cell height, Haugh unit, pH value, yolk index, specific gravity of eggs and total volatile basic nitrogen (TVBN) content. In China, we divide egg freshness into four grades: the super grade (AA), the first grade (A), the second grade (B) and the third grade (C) [33]. In Europe, the classes of quality classification are Class A-Extra fresh, Class A-category I and Class B [50]. And US grades are AA, A and B Quality [4]. The grade ranges of standards above are different.

Egg freshness testing methods can be divided into destructive testing technology and non-destructive testing (NDT) technology. Although its testing results are accurate and reliable, the destructive test is time-consuming. Besides, the tested samples are no longer can be eaten, and thus only part samples can be tested. NDT, with fast detection speed and no pretreatment of stripping eggshell, is suitable for on-line detection. This paper listed traditional testing methods and NDT methods for freshness indexes, focused on existing problems of LF NMR application in this field and discussed methods of further study.

2 Freshness indexes and traditional testing methods

2.1 Sensory indicators

Sensory indicators include color, odor and state [35]. By visual inspection, inspectors observe the color and mildew of egg before the candling light and the color of yolk and albumen after being broken out. Inspectors also detect the odor of egg liquid by olfaction. This method is fast and simple without limitation of test conditions. However, it asks for a high need for inspectors’ ability and the results remain defects of subjectivity or one-sidedness.

2.2 Air cell height

Air cell is formed between albumen membrane and shell inner membrane at the blunt end of an egg. Air cell enlarges continuously during storage, as water evaporates through the stomata on the eggshell and thus air cell height can reflect egg freshness. According to Chinese regulations, which puts forward high requirements for detection accuracy, heights of super, first, second and third grade are less than 4 mm, 6 mm, 8 mm and 9.5 mm, respectively [33]. Stomata on the eggshell make egg transparent. Thus, air cell height can be observed with a graduated transparent plastic sheet when eggs are illuminated by light.

2.3 Haugh unit

Egg albumen can be divided into two types, thin albumen and thick albumen, based on their morphology. Thick albumen is gradually hydrolyzed during storage. When a fresh egg and a stale egg are broken and the contents are poured on a horizontal glass surface, we can see that the thick albumen of the fresh egg evenly adheres to the yolk, while the thick albumen of the stale egg is rare, almost all thin albumen. So, the height of thick albumen can be measured by a vertical micrometer to calculate Haugh unit (HU) as shown in Formula (1) [40]:

$$HU = 100\lg (H - 1.7m^{0.37} + 7.57)$$
(1)

where HU is the Haugh unit; H is the height of thick albumen (mm); m is the weight of egg (g).

In China, the HU of AA quality is above 72; The HU of A quality is between 60 and 72; The HU of B quality is between 31 and 59; The HU of C quality is below 31 [33]. The 3 grades in the US, is above 72 (AA), between 60 and 72 (A), below 60 (B).

2.4 pH value

pH value of albumen in a fresh egg is between 7.6 and 7.9. pH value gradually increases to 9.0–9.7, as CO2 diffuses from an egg into air through stomata during storage [24, 44]. Longer periods of storage resulted in higher albumen pH [38]. The greatest change in pH occurred during the beginning several days, and then the pH changed slowly [18, 41]. Because the change of yolk’s pH value is not obvious, egg freshness is usually judged by albumen pH value measured by pH meter [16].

2.5 Yolk index

Fresh yolk is raised after being poured on a horizontal glass surface, while stale yolk is flat. There are two main reasons: (1) fat and protein in yolk gradually hydrolyze during storage, which causes the decrease of yolk viscosity; (2) the yolk is wrapped by a permeable yolk membrane, and salt concentration of yolk is higher than albumen, which forms osmotic pressure between them. Salt in yolk permeates into albumen, and water of albumen permeates yolk. The longer an egg is stored, the longer penetration lasts, eventually leading to scattered yolk. Therefore, the yolk index (YI) can express egg freshness, as shown in Formula (2) [48]:

$$YI = H/W$$
(2)

where YI is the yolk index; H is the height of yolk (mm), which is measured by vertical micrometer; W is the diameter of yolk (mm) measured by vernier caliper.

It can be concluded that the staler the egg is, the smaller the YI is. The YI of fresh egg ranges from 0.3 to 0.5 with a mean value of 0.42 [13, 14]. When YI is less than 0.25, loose yolk appears [24].

2.6 Specific gravity

In an egg, water evaporates and albumen become thinner during storage, so specific gravity of an egg decreases gradually, which can be measured to get freshness. It is determined by salt water floatation method: 68 g NaCl is added into 1000 ml water, which is determined as level 0. Adding 1 grade, another 4 g NaCl is added, totaling 9 grades. Starting from Grade 0, an egg is put into the brine step by step, and the least brine specific gravity of a drifted egg is freshness level [32]; a fresh egg is classified as above Grade 3 [24].

2.7 Total volatile basic nitrogen

Albumen is decomposed by enzymes and bacteria to produce ammonia and amine alkaline substances, which are volatile and known as total volatile basic nitrogen (TVBN). The higher TVBN value is, the staler the egg is [45]. The commonly used determination methods are semi-micro distillation method in Kjeldahl nitrogen analyzer [51].

2.8 Comparison of indexes

Each freshness index reflects the change of egg freshness. Table 1 compares freshness indexes from test methods, tightness with freshness, convenience, accuracy, and so on. Sensory indicators, air cell height and HU are used for freshness evaluation [4, 33, 50]. Sensory indicators are suitable for rough examination of freshness, because they are susceptible to subjective factors of examiners. Air cell height and HU are accurate and credible, so they are the main basis for egg grading. However, measurement accuracy of air cell height and HU relies on the manual measurement level of testers. Besides, HU is obtained by destructive detection, which is difficult to achieve full-coverage test or online detection, so more and more researches focus on NDT method for egg freshness.

Table 1 Comparison of egg freshness attributes

3 NDT methods for egg freshness

NDT, which can quickly get freshness value by on-line and full inspection without destroying samples, has been widely used in egg freshness detection. NDT is of great significance to quality grade, pricing, and supervision of egg production and sale.

3.1 Visible/near infrared spectroscopy

The eggshell has dense stomata with an aperture of 4–40 µm and has good light transmittance. The chemical constituents related to egg freshness were characterized in visible and near-infrared spectra. Spectral analysis technology can realize freshness nondestructive detection. Spectral data are usually collected by transmission mode. Abdanan Mehdizadeh et al. [1] got 400–1100 nm spectra of eggs, used Fast Fourier transform (FFT) pre-processing algorithm and Genetic algorithm-Back propagation neuronal network (GA-BPNN) model to predict freshness with accuracy of 94%. It was also found that the transmission of light along the egg poles has a better spectral signal-to-noise ratio than that along the equator. Aboonajmi et al. [2] used principal component analysis (PCA) and radial basis function network to establish models for predicting HU and the height of an air cell in 300–1100 nm band. Dong et al. [10] proved that albumen pH prediction model based on 550–850 nm spectra was superior to the whole egg pH prediction model. Duan et al. [11] established a non-linear HU prediction model (550–950 nm) based on local linear embedding (LLE) and support vector regression (SVR) algorithm. Prediction accuracy of non-linear models was better than linear ones, which proved that the non-linear relationship exists between spectral data and freshness-related chemicals.

Eggshell color can disturb spectral data, which results in model differences. Dong et al. [9] studied calibration model transfer between White Leghorn eggs and Bantam eggs for prediction of albumen pH by partial least squares regression (PLSR). This transfer technology could be applied to predict egg freshness of a new variety without extra model building. Besides, the feasibility of predicting freshness by visible/near infrared spectroscopy has been proved by the optimization of spectral band, modeling algorithm and freshness indicators [7, 15, 25].

3.2 Machine vision

Eggshells are transparent. Air cell size and ellipticity of yolk can be observed by transmission light and prediction models of freshness indexes based on machine vision are established [23, 25, 30]. This technology can achieve on-line and full inspection of egg freshness. At present, mature commercial detection schemes are available [34, 37]. Soltani et al. [43] designed a device combining machine vision with dielectric constant detection and established a multi-source data fusion model to predict egg freshness. Hyperspectral image analysis technology can not only reflect image information of samples and machine vision but also reflect spectral information of each pixel in the image. Its freshness information can be observed more clearly in high dimension of multi-band spectra, such as scattered yolk detection (spectral band: 380–1010 nm) [53] and analysis of spatial distribution information of egg freshness in image (spectral band: 900–1700 nm) [46].

3.3 Electronic nose

Gas sensors named electronic noses can collect deteriorating gas during egg spoiling, such as ammonia oxides, alkanes and alcohols. The sensors’ data distinguish egg freshness grade with the help of pattern recognition algorithms [28]. Li et al. [20] distinguished eggs stored for different days through linear discriminant analysis (LDA) method, whose correlation coefficient was 0.84. Li et al. [21] used wavelet energy analysis to process data from electronic nose, and evaluated storage time and yolk index. Liu and Tu [29] predicted TVBN content in an egg by an SVR model. Deng et al. [8] made a comparative study of gas sensor materials’ sensibility to freshness changing.

3.4 Dielectric spectroscopy

Generally, an egg contains 73% water, 13% hydrated protein and trace Na+ and K+ ions, with conductivity characteristics. Component deterioration in eggs will change their dielectric spectroscopy.[48]used two parallel plates to measure the dielectric spectroscopy of eggs with different freshness grades at a frequent band of 1–200 kHz, and found that dielectric parameters decreased with the increase of frequency and YI. Soltani and Omid [42] designed an electronic device based on dielectric technique operated at radio frequencies 0.04–20 MHz, which collected data into computers within just 700 ms. Some machine learning methods, such as artificial neural networks (ANN), support vector machines (SVMs), decision trees (DTs) and Bayesian networks (BNs), were used to establish classification models of egg freshness, with good predictive performance. Lau and Subbiah [19] developed a high-frequency system (10–3000 MHz) for an automatic dielectric test of yolk, albumen, and a whole egg. It had been proved that freshness has a great influence on egg dielectric properties, except temperature and frequency. Akbarzadeh et al. [3] constructed a high frequency waveguide device (0.9–1.7 GHz) to get high-frequency dielectric properties of eggs in transmission and reflection modes. An optimal ANN model was built to predict YI, air cell height, HU and pH value of albumen.

3.5 Low-field nuclear magnetic resonance

Compared with high-field nuclear magnetic resonance, low-field nuclear magnetic resonance (LF NMR) testing equipment adopts permanent magnet structure, without complex cooling device and shield, which reduces the size and cost of equipments. LF NMR technology is widely used in food field to determine quality by measuring relaxation characteristics and describing magnetic resonance imaging (MRI) of different components (water, protein or oil) in food [26, 36, 39, 49]. This NDT application can help realize dynamic monitoring of food processes and production. LF NMR analysis technology mainly includes two aspects, relaxation spectrum analysis technology and MRI analysis technology.

Spin space orientation of the 1H nuclei in water molecules transits from disorder to order and reaches thermal equilibrium state after applying to an external magnetic field, and magnetization vector is in equilibrium position. When the spin system is affected by external radio frequency (RF) field, magnetization vector deviates from equilibrium position. When RF field stops, spin system returns to equilibrium. This process is called relaxation process, which can be divided into two types:

  • Spin–lattice relaxation is also known as longitudinal relaxation. Half-life of relaxation process is expressed T1.

  • Spin–spin relaxation is also known as transverse relaxation, whose half-life is expressed as T2.

These relaxation signals need to be inverted to get signal intensity of each component at different relaxation time, which is related to component information. The research mainly concentrated on the influence of water content on food, such as meat taste [36],and internal water content change during food drying [22], and also focused on oil detection, such as oil variety monitoring [31], oil and water content determination in fried starch food [6].

If a gradient magnetic field applies to a sample, nuclear spin in the only one narrow layer is excited, and relaxation signals within this layer can be received to form MRI. Like the means of medical MRI analysis, the shape and size of the target object are analyzed by in situ detection and image processing technology to determine sample quality, such as flesh change of fresh Jujube during storage [47], internal moisture state of sea cucumber during rehydration process [54].

Laghi et al. [17] studied relaxation signals of eggs related to freshness, predicted the feasibility of egg freshness NDT by MRI, and analyzed the reason for relaxation signal change during storage, because the increased albumen pH value leads to changes of spin environment of 1H protons. But the inversion spectra of relaxation signals were not calculated. The samples only covered storage time at d0 and d7, with no other spoiling period. Because of weak instrument performance, the relaxation signal had a low temporal resolution, and it was hard to observe relaxation characteristics of protein hydrolysis process related to freshness. Lin et al. [27] studied egg spoilage by LF NMR and MRI. It was found that the relaxation characteristics are significantly correlated with freshness indexes, such as storage time, air cell height, YI and HU. However, the predictive model was not established. The inner structure of an egg was observed by MRI, and the gradually increased air cell in metamorphic process was shown. Unfortunately, this MRI did not use situ technique, and yolk outline was not clear enough. Xu et al. [52] studied the significant correlation between relaxation signals of albumen and freshness indexes. It was proved that CO2 modified atmosphere storage could restrain the decline of water-protein combination capacity and boost the dynamic characteristics of free water, which could be expressed by relaxation signals, but the pretreatment of albumen separation was destructive. Duan et al. [12] pointed out that relaxation signals interrelate with moisture loss and oxidization of boiled eggs, but there was no raw sample.

It can be concluded that the LF NMR NDT for egg freshness, including relaxation spectral analysis and MRI analysis, has not been fully studied.

3.6 Research assumption for LF NMR

Albumen gradually hydrolyzes as freshness decreases. Water and CO2 in an egg also gradually dissipate through stomata. These changes are reflected in the relaxation signals T1 and T2, and can be observed through T1 or T2 spectra after inversion. We can get changes of substances related to freshness in samples and realize LF NMR test of freshness, by analyzing spectra and establishing chemometric models of relationship between spectral data and freshness indexes. We need sufficient samples and suitable models, which is important for future research.

Several raw eggs were stored for 42 days in a constant temperature box at 25 °C and 60% humidity. The experimental data of an optional egg was displayed in this paper. T1 and T2 relaxation spectra were shown in Fig. 1. Peaks in spectra corresponding to freshness components need to be further identified through experiments.

Fig. 1
figure 1

Relaxation spectra of a raw egg: a T1 spectra, b T2 spectra

As shown in Fig. 2, yolk contour and outline of air cell can be seen in MRI for the differences in components and relaxation signal energy. Similar to the NDT method of machine vision, an MRI NDT model for predicting freshness can be established by observing the size and shape of the air cell and yolk. Compared with machine vision and visible/near infrared spectroscopy, MRI technology is more compatible without the interference of eggshell color and pollutants on the surface.

Fig. 2
figure 2

MRI of a raw egg. With the increase of storage time, the area of air cell was increasing (right side of the egg contour), the oval shape of the yolk edge was losing, and water of albumen was permeating into the yolk

LF NMR tested 9 raw eggs with different freshness. The size of air cell and yolk were collected from MRI without being broken out. Then, their HU values were tested after being broken out. These data established an MRI NDT model for predicting freshness. Figure 3 is the scatter plot between measured HU values and NDT model predicted results. The accuracy of prediction shows further research is needed, including more samples and more accurate prediction model, which are our study directions.

Fig. 3
figure 3

Relationship between the measured and predicted HU: a all samples, b the outlier was removed. An MRI NDT model for predicting HU was established by leave-one-out cross validation (LOOCV) and back propagation artificial neural network (BPANN) upon MRI data (size of air cell and yolk) and measured HU. There was a sample away from the 45°line. It may be caused by errors in the manual measurement of HU. The sample couldn't be used for analysis. So it was removed and the model’s root mean square error of prediction (RMSECV) and correlation coefficient (RCV) were 0.49 and 0.99 respectively

4 Conclusion

Egg freshness indexes include sensory, air cell height and HU. Compared with meat and vegetables, it is difficult to judge egg freshness without removing the opaque shell which increases the difficulty of quality control in production and distribution. Although the destructive detection methods have high accuracy, they are time consuming because of complex operation. NDT methods are fast and easy to operate with no damage to the egg, which can achieve online detection. NDT technologies and accuracy have improved. The advantages and disadvantages of NDT techniques above are shown in Table 2.

Table 2 Analysis of advantages and disadvantages of NDT technologies

Researches of LF NMR for egg freshness started late and are not thorough. It is workable to detect egg freshness by relaxation spectroscopy and MRI analysis technology. These two data sources can be further fused to establish a more accurate NDT model. It is significant to develop LF NMR NDT equipment for rapid detection of egg quality.