Skip to Content
FoodsFoods
  • Article
  • Open Access

6 December 2026

16 Pages

Distinguishing Organic from Enriched-Cage Eggs Using Egg Quality and Nutritional Traits: A Discriminant Analysis Approach

,
,
and
1
Departamento de Producción Animal y Salud Animal, Universidad Católica de Valencia San Vicente Mártir, 46001 Valencia, Spain
2
Instituto de Conservación y Mejora de la Agrobiodiversidad Valenciana, Departamento de Química, Universitat Politècnica de València, 46022 Valencia, Spain
*
Author to whom correspondence should be addressed.
Foods2026, 15(23), 4408;https://doi.org/10.3390/foods15234408 
(registering DOI)
This article belongs to the Special Issue Quality of Eggs, Poultry Meat and Egg Products

Abstract

Egg quality and nutritional traits may provide useful information for distinguishing organic from enriched-cage production systems, although previously reported differences between these systems do not necessarily imply reliable classification performance. This study conducted a secondary, exploratory multivariate analysis of a previously published dataset comprising 794 eggs from 15 Spanish commercial farms. Three linear discriminant analysis (LDA) models were evaluated: a nutritional model (n = 128), a combined model integrating physical and nutritional traits (n = 138), and a simplified model based on routinely measurable egg quality characteristics (n = 544). Classification performance was assessed using cross-validation strategies, including leave-one-farm-out cross-validation (LOFO-CV), and benchmarked against regularized logistic regression, random forest, and a majority-class baseline. The nutritional model achieved the highest LOFO-CV balanced accuracy (85.53%), compared with 72.92% and 74.97% for the combined and simplified models, respectively. Alternative classifiers did not consistently outperform LDA. However, the nutritional model included only 23 complete organic observations, and diagnostic analyses revealed departures from multivariate normality and covariance homogeneity assumptions. These findings indicate that nutritional and egg quality traits contain discriminatory information associated with production systems, but unequal sample representation, between-farm variability, and the absence of independent external validation limit their generalizability. Further validation is required before these approaches can be considered suitable for routine food-authenticity screening.

1. Introduction

Eggs are an important component of the human diet and represent a major product of the European poultry sector. In addition to their nutritional value and sensory characteristics, the production system has become an increasingly relevant attribute in egg marketing because it is associated with animal welfare expectations, environmental considerations, production practices, and consumer preferences. In the European Union (EU), eggs are marketed according to legally defined production methods, including organic, free-range, barn, and enriched-cage systems, and the farming method must be identified through the producer code applied to the egg and the corresponding marketing information [1]. These requirements provide the basis for traceability but do not preclude interest in complementary analytical approaches capable of assessing whether the characteristics of an egg are consistent with its declared production system.
Organic egg production is subject to specific requirements concerning feed, outdoor access, stocking conditions, and production management [2]. The higher production costs and market value associated with organic products may consequently create economic incentives for fraudulent mislabeling. Food fraud involving incorrect production claims can undermine consumer confidence, distort competition among producers, and compromise the credibility of certification and traceability systems [3]. Eggs are particularly relevant in this context because the declared farming method is directly linked to the commercial value and consumer perception of the product. Fraudulent mislabeling of eggs with respect to their declared production system represents a potential food-authenticity concern, particularly when production categories differ in regulatory requirements and market value. Although traceability and certification systems provide essential mechanisms for verifying production claims, complementary analytical approaches may help to assess whether the physical and chemical characteristics of eggs are consistent with their declared production system [4].
This distinction has direct relevance to food authenticity: substitution of lower-value enriched-cage eggs for higher-value organic eggs could result in an incorrect production claim. In Spain, egg-production categories are also identified in the marketing system under Royal Decree 1027/2024 [5], complementing the European marketing framework. Analytical classification cannot prove mislabeling, but a reproducible mismatch between measured characteristics and the declared system might help direct subsequent traceability or regulatory checks. Recent studies have specifically examined production system authentication and the risk of misclassification [6,7].
Under the European regulatory framework, Commission Delegated Regulation (EU) 2023/2465 establishes marketing standards for eggs, while Spanish Royal Decree 1027/2024 specifies the corresponding national provisions. Eggs are identified by a producer code whose first digit indicates the production system: 0 for organic, 1 for free-range, 2 for barn, and 3 for enriched-cage production. Organic egg production is additionally regulated by Regulation (EU) 2018/848, which establishes specific requirements concerning organic feed, outdoor access, stocking density, and animal management. These regulatory distinctions are particularly relevant to food authentication, as eggs marketed under different production categories must comply with different production requirements. In this context, analytical classification based on egg quality and nutritional traits may provide complementary information for assessing consistency between an egg’s characteristics and its declared production system, particularly when distinguishing organic (code 0) from enriched-cage (code 3) eggs [1,2,5].
Egg quality and nutritional characteristics are influenced by multiple interacting factors, including dietary composition, genetic background, hen age, housing conditions, and farm management [8,9,10,11]. Previous research has demonstrated that these factors may influence external and internal egg quality traits, including egg weight, shell characteristics, albumen quality, and yolk properties. Consequently, differences observed between production systems should be interpreted cautiously, since housing conditions are often associated with simultaneous differences in feeding and management practices.
Nutritional variation in UK retail eggs from caged, free-range, organic, and extensive organic production systems was investigated across five sampling periods over one year, using linear mixed-effects models to account for production system effects and variability associated with sampling date and egg sourcing [12].Their findings demonstrated differences in fatty-acid composition, carotenoids, and selected vitamins between production systems, while also showing that the magnitude of these differences depended on the nutritional parameter considered. This evidence highlights both the potential relevance of nutritional characteristics for distinguishing production systems and the need to account for biological and management-related variability when interpreting such differences [12].
Organic and enriched-cage production systems differ in several aspects of housing, feeding, outdoor access, and management. Organic production is subject to specific requirements concerning feed ingredients, stocking density, and outdoor access, whereas enriched-cage production follows a different set of housing and management requirements [2,8]. In organic production systems, laying hens may consume vegetation and other resources available in outdoor areas in addition to their formulated diets. Experimental studies have shown that the inclusion of different forage materials in laying-hen diets can influence yolk pigmentation, carotenoid content, and fatty-acid composition [13,14]. However, the extent of these changes depends on the type and amount of forage consumed, the composition of the formulated diet, and other farm-specific factors. Therefore, access to outdoor resources should not be interpreted as producing a uniform nutritional signature in organic eggs.
Previous studies have reported differences in egg quality traits and fatty-acid composition between production systems, partly associated with feeding practices and access to outdoor resources [8,9,10,11,12,13,14,15]. In our previously published dataset [16], differences in MUFA, PUFA, and SFA proportions were observed between organic and enriched-cage eggs. These findings provided a rationale for investigating whether combined nutritional measurements could contribute to production system classification.
The potential of multivariate analytical approaches for egg authentication has consequently received increasing attention. Chemometric methods based on spectroscopic and compositional fingerprints have demonstrated that production systems can be differentiated under specific experimental conditions. For example, successful discrimination was reported [4] of eggs according to declared housing system using UV-VIS-NIR spectroscopy of yolk lipid extracts combined with chemometric classification. Similarly, HPLC-based chemical fingerprinting combined with chemometric methods has shown potential for distinguishing organic from non-organic eggs, indicating that authentication information may be distributed across multiple chemical variables rather than represented by a single marker [17]. NMR-based approaches have also been investigated for differentiating conventionally and organically produced eggs, further supporting the use of multivariate chemical fingerprints for production system authentication [18].
Stable-isotope approaches provide another example of the need to consider multiple sources of variation when developing authentication models [6]. Multivariate classification based on δ13C, δ15N, and δ34S has been investigated for differentiating husbandry systems, with classification performance varying according to the number of production categories considered. Seasonal variation in isotope values associated with changes in feeding practices has also been reported, illustrating that authentication models may be affected by temporal and production-related variation. These findings emphasize that discrimination within a defined sampling context should be distinguished from robust authentication across independent farms, batches, and production periods.
Despite their analytical potential, sophisticated approaches, such as spectroscopy, NMR, chromatography, and isotope ratio analysis, may require specialized instrumentation, trained personnel, and higher analytical costs. For routine commercial or regulatory screening, complementary approaches based on easily measurable egg quality and nutritional parameters may therefore be useful. Rather than replacing confirmatory analytical methods, such screening models could provide an initial assessment of whether the observed characteristics of an egg are consistent with its declared production system. This approach is particularly relevant when the objective is to identify samples requiring further investigation rather than to provide definitive authentication from a single analytical measurement.
Egg quality measurements include physical characteristics such as egg weight, shape index, shell thickness, and the relative proportions of shell, yolk, and albumen. In contrast, proximate nutritional composition refers to chemically determined constituents, including protein, total fat, moisture, and ash. Fatty-acid profiling provides additional information about lipid composition. These analytical categories differ in methodology, cost, and technical requirements, which may influence their suitability for routine screening applications [19].
Recent research illustrates both the potential and the limitations of using routinely measurable egg characteristics for housing-system classification. A recent study analyzed 33,216 eggs [7] from 76 commercial farms in Belgium to distinguish eggs from indoor and outdoor housing systems. Their best XGBClassifier model, based on all egg quality traits, achieved 76.6% accuracy on an independent test set, whereas a model using yolk color alone achieved 74.1%. Notably, the yolk color model had a lower false-positive rate for outdoor eggs than the full model (7% vs. 13%), a particularly relevant metric for fraud detection. Despite these results, the authors concluded that the use of machine learning based on egg quality traits to authenticate egg origin should be reconsidered. Their findings therefore highlight the limitations of relying on routine egg quality characteristics alone and the need to critically assess their discriminatory value. Although combining complementary egg quality and nutritional variables may provide additional information, classification performance must be interpreted in light of the production systems represented, the validation strategy, and the potential for selection bias when predictors are selected using the same dataset.
Within this context, linear discriminant analysis (LDA) offers an interpretable framework for investigating whether combinations of egg quality traits differentiate predefined production system categories. The present study is a secondary, exploratory classification analysis of the previously characterized dataset [16], rather than a new experimental investigation. Candidate predictors were informed by earlier findings, biological or analytical relevance, and the aim of comparing predictor sets with different levels of practical complexity. They were not restricted exclusively to statistically significant univariate variables.
The objective was to evaluate whether combinations of previously characterized nutritional and physical egg quality traits could discriminate organic from enriched-cage eggs, particularly for farms excluded from model training. Three LDA models were evaluated: a nutritional model, a combined model integrating physical and nutritional characteristics, and a simplified model based on routinely measurable egg quality traits. We examined overall and class-specific classification performance, sensitivity to class-prior specification, and generalizability using egg-level and farm-grouped validation. This secondary investigation explores classification potential rather than establishing a validated test for fraudulent labeling.

2. Materials and Methods

2.1. Experimental Design and Egg Samples

The present study is a secondary multivariate analysis of the egg quality dataset previously reported [16]. No additional eggs were collected for the present analysis. The original samples were obtained from commercial laying-hen farms located in Eastern and Southern Spain. Hens were semi-heavy birds belonging to the Hy-Line, ISA Brown, and Lohmann genetic lines and were sampled during the middle phase of the laying cycle, at 47–50 weeks of age.
The original dataset comprised 794 eggs: 409 organic eggs obtained from seven farms and 385 enriched-cage eggs obtained from eight farms. Enriched-cage farms included four Hy-Line, two ISA Brown, and two Lohmann farms, whereas organic farms included two Hy-Line, two ISA Brown, and three Lohmann farms. All eggs had been analyzed within four days after laying. The distribution of farms, genetic lines, and sampled eggs is summarized in Table 1.
Table 1. Distribution of sampled eggs by farm, production system, and hen genotype.

2.2. Egg Quality Measurements

2.2.1. External Quality Parameters

Egg weight (EW) was determined by weighing each individual whole egg using an analytical balance (CS 100M Cobos, Barcelona, Spain) with an accuracy of ±0.001 g. The egg shape index (SI) was calculated as the equatorial diameter divided by egg length, multiplied by 100. Shell thickness (ST) was determined as the average of measurements obtained at the greater pole, smaller pole, and equator of the shell using a caliper (MITUTOYO 500–173 Comet, Sofia, Bulgaria), following a previously described procedure [15]. Shell percentage (SP) was expressed as a percentage of total egg weight [20].

2.2.2. Internal Quality Parameters

Haugh units (HUs) were calculated using the original Haugh method [21]. Dense albumen percentage (DAP) was determined by separating albumen from yolk using a domestic yolk separator. Albumen was deposited on a 2 mm sieve for 3 min; fluid albumen passed through, and dense albumen was retained. Both fractions were weighed, and dense albumen was expressed as a percentage of total egg weight.
The yolk percentage (YP) was expressed as a percentage of total egg weight. Total albumen percentage (TAP) was calculated as TAP = 100 − (SP + YP). Yolk color was measured using a chromameter (Konica Minolta Photo Imaging Inc., Mahwah, NJ, USA), from which the color index of the yolk (CIY) was obtained using a previously reported approach [22]. Yolk color intensity was also determined using the Roche color scale (DSM®), in which color intensity is expressed on a scale from 1 (yellow) to 15 (red), as commonly used in the egg industry [23].

2.3. Nutritional Quality Analyses

Nutritional analyses were performed in triplicate for each egg sample, and the mean of the three analytical determinations was used for statistical analysis; technical replicates were not considered independent observations. Moisture, ash, protein and total fat were expressed as percentages of the analyzed sample, while SFA, MUFA and PUFA were expressed as relative percentages of the fatty-acid profile. Moisture content was determined gravimetrically by mixing homogenized egg with washed and dried sea sand and drying in a forced-air oven (P-select Digitronic) at 100 °C for 24 h or until constant weight. Ash content was determined gravimetrically after pre-drying at 100 °C for 30 min and incineration in a muffle furnace (Carbolite, Hope Valley, UK) at 500 °C for 5 h, following AOAC methods [19]. Total protein was determined from nitrogen content using a Kjeldahl Foss Tecator 2006 system (Foss, Hillerød, Denmark). Total yolk carotenoids were determined by UV/visible spectrophotometry (Jenway 6305, Staffordshire, UK), following the method referenced by Karadas et al. (2006) [24]. Total fat was determined using a semiautomatic Soxhlet extraction system (Foss 2050 Soxtec, Hillerød, Denmark). Fatty-acid methyl esters were analyzed by gas chromatography with flame ionization detection following AOAC (2000) [19], using a Varian Star 3400cx gas chromatograph (Palo Alto, CA, USA) with a Combipal CTC automatic injector, an RTX-2330 column (Restek, Bellefonte, PA, USA), and helium as carrier gas. The oven temperature was held at 70 °C for 3 min and then increased to 260 °C at 10 °C/min; injector and detector temperatures were 230 °C and 260 °C, respectively. A Custom FAME Mix (Restek, ref. 35077) was used as the analytical standard. The analytical procedures are described in the original study [16], with relevant methodological standards documented by AOAC International [19]. For the multivariate analysis, saturated fatty acids (SFA) were calculated as the sum of the percentages of myristic, palmitic, lauric, stearic, heptadecanoic, arachidic, behenic, and lignoceric acids; monounsaturated fatty acids (MUFA) as the sum of oleic, erucic, eicosenoic, palmitoleic, and heptadecenoic acids; and polyunsaturated fatty acids (PUFA) as the sum of linoleic and linolenic acids.

2.4. Statistical Analysis and Discriminant Classification

This secondary, exploratory classification analysis used candidate predictors selected considering the results of the previously published univariate analysis [16], their biological or analytical relevance, and the objective of constructing models with different levels of analytical complexity. Selection was not restricted exclusively to variables showing statistically significant univariate differences. Three predictor sets were evaluated: nutritional, combined physical–nutritional, and simplified routine egg quality traits. Because predictor selection was informed by the same source dataset, the resulting performance should not be interpreted as independently validated. The original study comprised 794 eggs from 15 farms (409 organic from seven farms and 385 enriched-cage from eight farms). Not all measurements were available simultaneously for each egg; each model therefore used complete cases for its specific predictors. The nutritional model required MUFA, PUFA, SFA, fat, protein and ash on the same observation; absence from the complete-case dataset does not imply that no individual nutritional parameter was measured.
Because the availability of individual measurements differed across eggs, the three classification models were developed using model-specific complete-case datasets. Observations were excluded from a given model when at least one of its required predictors was unavailable. This resulted in different sample sizes and class distributions among the models. The proportions of complete observations were substantially lower for organic eggs, particularly in the nutritional and simplified models, and this imbalance was considered when interpreting model performance and potential selection bias.
The first model, designated the nutritional model, included MUFA, PUFA, SFA, total fat, protein, and ash. SFA, MUFA, and PUFA represent aggregated percentages derived from the individual fatty acids specified in Section 2.3 and were not calculated from one another. Their simultaneous inclusion was intended to represent the multivariate lipid-composition pattern together with proximate nutritional composition among the variables previously associated with the production system.
The second model, designated the combined model, included yolk percentage (YP), total fat, shell percentage (SP), and ash, integrating internal egg quality and proximate compositional traits. Total albumen percentage (TAP) was excluded because TAP = 100 − (SP + YP), which would introduce exact linear dependency if all three variables were included.
The third model, designated the simplified model, included shape index (SI), shell percentage (SP), and total albumen percentage (TAP), selected to represent routine physical egg quality measurements without nutritional laboratory analysis.
For each model, the linear discriminant function was expressed as
D = a + b1X1 + b2X2 + … + bpXp
where D is the discriminant score, a is the intercept, bi is the coefficient associated with predictor variable Xi, and p is the number of predictor variables included in the model. Coefficients were estimated directly from the complete observations available for each model.
Model discrimination was evaluated using Wilks’ lambda (λ), calculated as
λ = |W| / |T|
where W represents the within-group sums-of-products-and-cross-products matrix and T represents the corresponding total matrix. For the two-group discriminant analysis, the statistical significance of the discriminant function was assessed using the corresponding F approximation.
Classification performance was evaluated by comparing the predicted production system with the recorded system. Organic production was designated the positive class. True positives were organic eggs correctly classified as organic, while true negatives were enriched-cage eggs correctly classified as enriched-cage. Accordingly, a false positive was an enriched-cage egg classified as organic, whereas a false negative was an organic egg classified as enriched-cage. These discrepancies are classification errors, not evidence of deliberate mislabeling. Because the complete-case subsets were imbalanced, equal prior probabilities were used for the main LDA analyses (0.50 per class). Apparent accuracy, balanced accuracy and class-specific correct-classification rates were evaluated.
Statistical analyses were implemented in Python 3.13.5 using scikit-learn 1.8.0, pandas 2.2.3 and NumPy 2.3.5. LDA was fitted with sklearn.discriminant_analysis.LinearDiscriminantAnalysis (solver=“svd”; equal class priors). The scikit-learn implementation followed the reference description [25]. The organic-versus-enriched-cage log-posterior contrast was used as a classification score; positive values indicated organic predictions. Within-group standardized coefficients were derived from the pooled within-class standard deviation.
Internal model performance was first assessed by stratified five-fold cross-validation at the egg level using a fixed random seed (random_state = 42). The complete-case observations available for each model were randomly divided into five folds while preserving the relative proportions of organic and enriched-cage eggs. In each iteration, the equal-prior LDA model was fitted using four folds and evaluated on the remaining fold. Mean cross-validated accuracy and balanced accuracy were calculated across the five folds.
Because several eggs originated from the same commercial farm, two farm-grouped validation strategies were performed. In leave-one-farm-out cross-validation (LOFO-CV), all eggs from one farm were excluded in each iteration, the equal-prior LDA model was fitted to eggs from the remaining farms, and the withheld eggs were classified. Predictions were pooled across held-out farms to calculate accuracy, balanced accuracy and class-specific correct-classification rates. In paired-farm-out validation, one enriched-cage and one organic farm were excluded simultaneously in every iteration, and the fitted model was evaluated on both excluded farms. All possible combinations were evaluated: 42 for the nutritional model, 36 for the combined model, and 56 for the simplified model. Mean accuracy and balanced accuracy across farm pairs and pooled metrics across repeated paired-farm-out predictions were calculated. Complete-case analysis resulted in 128 eggs from 13 farms, 138 eggs from 12 farms, and 544 eggs from all 15 farms, respectively.
For each model, the number of complete observations, class distribution, discriminant coefficients, intercept, classification matrix, apparent accuracy, Wilks’ lambda, F statistic, five-fold cross-validated performance, LOFO-CV performance, paired-farm-out performance, balanced accuracy, and class-specific correct-classification rates were recorded.
LDA assumptions were assessed on each complete-case subset. Multivariate normality was evaluated separately by production system using Mardia’s skewness and kurtosis tests; the equality of group covariance matrices was assessed using Box’s M test. These diagnostics are approximate in the presence of unequal group sizes, possible nonnormality, and within-farm clustering; they were interpreted as limitations of the LDA framework.
As an additional methodological benchmark, LDA was compared with L2-regularized logistic regression, random forest and a majority-class baseline using the same complete-case subsets and outer leave-one-farm-out cross-validation (LOFO-CV). Within each training partition, logistic regression hyperparameter C (0.1 or 1) and Random Forest minimum leaf size (3 or 10; 30 trees) were chosen using internal three-fold farm-grouped cross-validation. Logistic regression used balanced class weights, and random forest used balanced subsampling. Classification metrics were calculated from pooled held-out predictions. This was a limited descriptive benchmark, not exhaustive algorithm optimization or a formal test of superiority.

3. Results

External, internal and nutritional differences in the original dataset have already been reported [16]. This article focuses on multivariate classification and validation rather than repeating the previous univariate significance tests. Model-specific sample sizes and the contributing farms are shown in Table 2; descriptive statistics of the predictors within each model-specific complete-case subset are reported as mean ± SD in Supplementary Table S2. Additional benchmarking results are given in Supplementary Table S1 and LDA diagnostic results in Supplementary Table S3.
Table 2. Composition and complete-case samples of the three discriminant models evaluated for classification of eggs according to production system.
Descriptive statistics for the predictors included in each discriminant model are presented in Supplementary Table S2 as means ± standard deviations, separately for organic and enriched-cage eggs. These values were calculated using the complete-case observations corresponding to each model. They are provided to facilitate interpretation of the multivariate classification results and should not be directly equated with the descriptive estimates reported for the complete original dataset [16].
Because not every analytical determination was available for every egg, the three models were fitted to different subsets. Data availability differed markedly between production systems. The nutritional model retained 105 of 385 enriched-cage eggs (27.3%) but only 23 of 409 organic eggs (5.6%), the combined model 28.8% and 6.6%, and the simplified model 97.4% and 41.3%, respectively. The nutritional complete-case subset nevertheless represented 13 of the 15 farms, including all seven organic farms, although with as few as one egg from some of them. Model accuracies are therefore not directly comparable with one another, and the comparison of trait groups below refers to the information carried by each group of variables rather than to a controlled contrast between equally sampled models.

3.1. Nutritional Discriminant Model

The nutritional model included MUFA, PUFA, SFA, fat, protein and ash (n = 128; 105 enriched-cage and 23 organic eggs). These complete-case observations came from 13 of the 15 farms in the original study: six of the eight enriched-cage farms and all seven organic farms. The other two enriched-cage farms did not contribute eggs with a complete set of all six nutritional predictors; this does not establish that every nutritional measurement was unavailable at those farms. Discrimination was statistically significant (Wilks’ λ = 0.4264; F = 27.12; p < 0.001). Apparent accuracy was 92.97%, and mean stratified five-fold accuracy was 93.02%. LOFO-CV accuracy was 92.97% (balanced accuracy 85.53%), corresponding to correct classification of 97.14% of enriched-cage eggs and 73.91% of organic eggs. Because only 23 organic eggs were complete cases, estimates for this group remain uncertain despite representation of all seven organic farms. The nutritional model’s apparent and cross-validated classification rates are summarized in Table 3; the corresponding apparent confusion matrix is included in Table 4.
Table 3. Classification performance of the three equal-prior LDA models (apparent, five-fold and leave-one-farm-out validation).
Table 4. Apparent equal-prior classification matrices for the nutritional, combined and simplified models. Values are numbers of eggs except where percentages are indicated.

3.2. Combined Discriminant Model

The combined model comprised yolk percentage (YP), fat, shell percentage (SP) and ash. It included 138 eggs (111 enriched-cage and 27 organic) from 12 farms. The discriminant function remained significant (Wilks’ λ = 0.7037; F = 14.00; p < 0.001). Apparent classification accuracy was 83.33% (balanced accuracy 77.03%). Mean five-fold accuracy was 81.08%, whereas LOFO-CV yielded 78.99% accuracy and 72.92% balanced accuracy. Under LOFO-CV, 82.88% of enriched-cage eggs and 62.96% of organic eggs were correctly classified. Table 3 and Table 4 summarize, respectively, its validation performance and apparent classification counts.

3.3. Simplified Discriminant Model

The simplified model included shape index (SI), shell percentage (SP) and total albumen percentage (TAP), using routine egg quality measurements without nutritional laboratory determinations. It was based on 544 eggs (375 enriched-cage and 169 organic) from all 15 farms. The model was significant (Wilks’ λ = 0.7154; F = 71.62; p < 0.001), with apparent accuracy of 79.41% and mean five-fold accuracy of 79.05%. LOFO-CV accuracy was 76.47% (balanced accuracy, 74.97%), with class-specific correct-classification rates of 78.93% and 71.01% for enriched-cage and organic eggs, respectively. Table 3 and Table 4 provide its validation accuracies and apparent classification matrix, respectively.

3.4. Comparison and Farm-Grouped Validation

The nutritional model achieved the highest overall performance, as illustrated by the discriminant-score distributions (Figure 1) and farm-grouped classification rates (Figure 2). Direct comparisons between model accuracies must nevertheless account for substantially different complete-case datasets and class distributions. Paired-farm-out validation excluded one farm from each production system simultaneously. Across 42, 36 and 56 farm pairs for the nutritional, combined and simplified models, respectively, pooled accuracies were 93.36%, 78.86% and 76.26%. Individual eggs appear repeatedly in different paired holdouts. Pooled estimates are therefore descriptive summaries of repeated predictions, not independent external test results. The use of a limited number of eggs from some farms, especially in the nutritional subset, restricts assessment of new-farm reliability. Table 5 compares paired-farm-out validation, including mean and pooled accuracy, whereas Table 3 compares apparent, five-fold and LOFO-CV performance. Table 4 combines the three apparent classification matrices, and Table 6 presents the discriminant coefficients used in the fitted models.
Figure 1. Distributions of apparent LDA decision scores for the nutritional (n = 128), combined (n = 138) and simplified (n = 544) models, fitted with equal class priors. Dashed line: zero decision threshold. Rug marks represent eggs; open circles denote apparent misclassifications. The figure illustrates model fit, not held-out predictive performance.
Figure 2. Leave-one-farm-out cross-validation (LOFO-CV) performance for the nutritional (n = 128; 13 farms), combined (n = 138; 12 farms), and simplified (n = 544; 15 farms) equal-prior LDA models. Green and orange bars show the percentages of correctly classified organic and enriched-cage eggs, respectively. The red line connects class-specific rates; black dashed and grey dotted lines indicate overall accuracy and balanced accuracy. The figure displays held-out farm-grouped predictions rather than apparent training-set performance.
Table 5. Paired-farm-out cross-validation of the three equal-prior models.
Table 6. Unstandardized and within-group standardized LDA coefficients (organic minus enriched-cage); equal-prior classification threshold = 0.

3.5. Assessment of LDA Assumptions

Diagnostic analyses did not support all distributional assumptions of LDA (Table S3). Box’s M tests rejected covariance-matrix equality for the nutritional (approximate χ2 = 104.631, df = 21, p < 0.001), combined (χ2 = 27.082, df = 10, p = 0.0025) and simplified models (χ2 = 73.098, df = 6, p < 0.001). Mardia’s tests indicated deviations from multivariate normality in the enriched-cage group for all models, and significant skewness for the organic group in the simplified model (p = 0.001). Failure to reject normality in the smaller organic subsets should not be interpreted as proof of normality.

3.6. Comparison with Alternative Classifiers

In the supplementary LOFO-CV benchmark (Table S1), LDA achieved balanced accuracies of 85.53%, 72.92% and 74.97% for the nutritional, combined and simplified datasets. The corresponding logistic regression results were 82.67%, 71.57% and 74.49%, and Random Forest results were 81.93%, 67.37% and 73.61%. The majority-class baseline achieved 50.00% balanced accuracy in each dataset. These results are descriptive; no formal superiority test was performed. Notably, in the combined dataset, the majority-class baseline achieved 80.43% overall accuracy versus 78.99% for LDA, emphasizing the importance of class-specific and balanced metrics.

4. Discussion

This secondary classification analysis evaluated conventional egg quality and nutritional measurements as potential signatures of the declared production system. The central finding is that the nutritional discriminant function showed relatively strong classification performance, while models incorporating fewer composition measurements or routine physical traits showed more modest discrimination. The class overlap in Figure 1 and the unequal class-specific LOFO-CV rates in Figure 2 underscore why these models should be evaluated as exploratory screening approaches. This contrasts with a simple claim that easy-to-measure egg characteristics alone can reliably authenticate housing systems. Since predictor sets were selected using earlier comparisons on the same source data [16], the findings are exploratory and may overestimate performance on future, independent samples.
The nutritional model achieved 92.97% overall LOFO-CV accuracy but only 85.53% balanced accuracy, with 97.14% correct classification of enriched-cage eggs and 73.91% of organic eggs (Table 3). Only 23 organic eggs and 105 enriched-cage eggs were complete cases; these observations represented all seven organic and six of eight enriched-cage farms. The small number of organic observations per farm limits precision and raises the possibility of selection bias. Although pooled paired-farm-out accuracy was 93.36% (Table 5), those pooled predictions contain repeated assessments of individual eggs and are not an independent external validation.
The combined model yielded 78.99% LOFO-CV accuracy and 72.92% balanced accuracy, while the simplified model achieved 76.47% and 74.97%, respectively (Table 3). The combined model’s overall accuracy was lower than the 80.43% majority-class baseline, which nevertheless had only 50% balanced accuracy. These results illustrate why overall accuracy alone is inadequate for imbalanced datasets. Neither model can currently be recommended for standalone regulatory authentication; exploratory screening would require independently evaluated decision thresholds, misclassification costs, and confirmatory procedures.
Differences in fatty-acid composition may reflect dietary lipid sources and other feeding practices that influence egg-yolk lipids [13,14,15]. In the original dataset [16], enriched-cage eggs had higher mean MUFA proportions and organic eggs higher PUFA proportions. However, genotype, hen age, outdoor access, geography and farm management may also affect egg characteristics [8,9,10,11], and these factors were not independently isolated in this classification analysis. MUFA, PUFA and SFA represent interdependent proportions of the same fatty-acid profile; coefficients should therefore be interpreted as elements of a multivariate signature, not independent causal effects.
Egg nutritional characteristics are influenced by dietary composition, hen physiology, and farm-specific management practices, which may contribute to variation in the discriminatory patterns observed across production systems. HHigher PUFA proportions in organic eggs than in caged eggs (23.3 vs. 17.1 g/100 g total fatty acids), whereas MUFA proportions were higher in caged eggs (47.4 vs. 43.0 g/100 g total fatty acids) was reported in a 2024 study [12]. Total omega-3 fatty acids were also higher in organic eggs (2.82 vs. 1.80 g/100 g total fatty acids) [12]. These findings are consistent with the general direction of the differences reported in our original dataset [16], although direct quantitative comparisons are limited by differences in sampling and analytical methods and by the individual fatty acids included in each aggregate category. Chatzidimitriou et al. found that fatty-acid profiles remained relatively stable across sampling periods, whereas certain vitamin concentrations varied seasonally; seasonal effects therefore depend on the nutritional parameter and should not be assumed to reduce classification accuracy uniformly. Importantly, the present discriminant models identify nutritional patterns associated with the production systems and farms represented in the dataset rather than universal nutritional markers of organic production. Their transferability to other farms, diets, production periods, and geographic regions requires independent external validation.
The comparison was confined to organic and enriched-cage eggs, which differ in several production requirements. Discrimination may be more difficult for closer production categories, such as organic and free-range systems. Accordingly, these results cannot be extrapolated to those systems or to real-world substitution scenarios without further study. Geographic and environmental variables, including soil composition, were not independently evaluated, and their possible effects cannot be separated from production system and farm-specific practices.
An important practical feature of the present approach is its reliance on established analytical determinations rather than newly developed molecular or proprietary authentication tests. Egg weight and component proportions are standard egg quality measurements; proximate analyses, such as fat, protein and ash, are conventional food laboratory procedures, and fatty-acid profiles can be determined by established gas-chromatographic methods [19]. Thus, laboratories already equipped for nutritional analysis may be able to evaluate these models using existing analytical workflows, although the fatty-acid measurements still require chromatography, technical expertise, sample preparation and associated costs. The simplified model is analytically less demanding, but its more modest discrimination prevents treating it as a stand-alone fraud-detection assay. No cost-effectiveness, interlaboratory reproducibility or high-throughput implementation study was conducted here; operational or economic advantages therefore remain hypotheses for future evaluation.
Prior studies using NMR fingerprints [18,26], chromatography [17], spectroscopy [4], hyperspectral imaging [27] and stable isotopes [6] likewise indicate that production-related signatures can be recovered from several analytical platforms. However, their reported rates are not directly comparable because production categories, sampling units, class balances, and validation strategies differ. A recent study [7] notably emphasized limitations of generalizing quality-based classification to commercial housing-system authentication. The present results reinforce the need for validation across genuinely independent farms rather than relying on egg-level random partitions.
For interpretation of classification errors, organic eggs were treated as the positive class. An enriched-cage egg classified as organic was a false positive, and an organic egg classified as enriched-cage was a false negative. The observed discordance with recorded production system is not proof of product fraud, and a concordant model prediction is not independent certification of authenticity. Traceability records and, when appropriate, confirmatory testing would be needed for any regulatory investigation.
Important limitations are the unequal availability of complete records (especially only 23 organic observations in the nutritional dataset), possible nonrandom missingness, limited geographic coverage, unequal contributions of farms, predictor selection and the nutritional patterns observed in the dependent validation cohort. In addition, Box’s M and Mardia’s diagnostics revealed violations of LDA distributional assumptions; associated inferential statistics and classification performance warrant cautious interpretation. The alternative-classifier benchmark did not consistently improve balanced accuracy but does not eliminate these limitations or demonstrate formal equivalence. Future studies should prespecify predictors, collect more balanced and geographically diverse samples across organic, free-range, barn and enriched-cage production, and prospectively evaluate classification thresholds, error costs and reproducibility across farms and seasons.
An additional methodological limitation concerns the distributional assumptions of LDA. Diagnostic testing revealed significant heterogeneity of covariance matrices and departures from multivariate normality. These violations warrant caution when interpreting the discriminant functions and their associated inferential statistics. Nevertheless, the additional benchmarking analysis showed that regularized logistic regression and Random Forest did not consistently improve balanced classification accuracy under farm-grouped cross-validation. This does not eliminate the limitations associated with the violated LDA assumptions, class imbalance, or the absence of independent external validation.

5. Conclusions

This secondary analysis suggests that combinations of nutritional and physical egg quality traits can carry information relevant to discriminating organic from enriched-cage production systems. Nutritional composition offered greater exploratory discriminatory potential, whereas routine physical measurements showed more modest performance. Differences among the model-specific complete-case datasets, particularly the restricted organic nutritional subset, limit direct comparisons and generalization.
The findings should not be interpreted as establishing an authentication test or demonstrating fraudulent labeling. Farm-grouped cross-validation reduces direct overlap of training and testing farms but does not replace independent external validation. Before considering practical screening applications, future work should determine realistic false-positive and false-negative costs, assess more closely related production systems, and verify robustness across geographic regions and production periods.
The present models therefore provide an exploratory basis for future research on egg-production classification rather than a method ready for regulatory use.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/foods15234408/s1, Table S1: Benchmarking of classifiers using leave-one-farm-out cross-validation (LOFO-CV); Table S2: Descriptive statistics of predictors in model-specific complete-case subsets; Table S3: Diagnostic tests of linear discriminant analysis (LDA) assumptions.

Author Contributions

Conceptualization, A.R.-M. and C.M.; methodology, A.R.-M., M.J.D.-G. and M.D.R.; software, A.R.-M.; validation, A.R.-M. and C.M.; formal analysis, A.R.-M. and C.M.; investigation, A.R.-M., M.J.D.-G. and M.D.R.; resources, M.D.R. and C.M.; data curation, A.R.-M.; writing—original draft preparation, A.R.-M.; writing—review and editing, A.R.-M., M.J.D.-G., M.D.R. and C.M.; visualization, A.R.-M.; supervision, C.M.; project administration, C.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research has been funded by the Catholic University of Valencia.

Institutional Review Board Statement

Ethical review and approval were not required for this study, as it involved a secondary analysis of egg quality and nutritional data obtained from commercially produced eggs, without experimental procedures involving live animals.

Data Availability Statement

The individual egg-level data supporting this study are subject to confidentiality restrictions associated with the participating commercial farms. A reduced, pseudonymized dataset containing the variables, production system labels, and farm identifiers required to reproduce the classification analyses has been prepared. Access to this dataset may be requested through the corresponding author, subject to applicable confidentiality requirements and data-sharing permissions. The dataset may also be provided to the journal’s editorial office for confidential peer-review purposes, subject to editorial approval.

Acknowledgments

The authors acknowledge the collaboration of the commercial poultry farms that provided the egg samples used in the original study. ChatGPT-6 (OpenAI) was used for figure generation and language editing. The authors reviewed and approved the final content and take full responsibility for the manuscript.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. European Commission. Commission Delegated Regulation (EU) 2023/2465 of 17 August 2023 Supplementing Regulation (EU) No 1308/2013 of the European Parliament and of the Council as Regards Marketing Standards for Eggs, and Repealing Commission Regulation (EC) No 589/2008. Available online: https://eur-lex.europa.eu/legal-content/ES/ALL/?uri=CELEX%3A32023R2465 (accessed on 10 September 2026).
  2. European Union. Regulation (EU) 2018/848 of the European Parliament and of the Council of 30 May 2018 on Organic Production and Labelling of Organic Products and Repealing Council Regulation (EC) No 834/2007. Off. J. Eur. Union 2018, L 150, 1–92. [Google Scholar]
  3. Smaoui, S.; Tarapoulouzi, M.; Agriopoulou, S.; D’Amore, T.; Varzakas, T. Current state of milk, dairy products, meat and meat products, eggs, fish and fishery products authentication and chemometrics. Foods 2023, 12, 4254. [Google Scholar] [CrossRef] [Scilit]
  4. Puertas, G.; Vázquez, M. Fraud detection in hen housing system declared on the eggs’ label: An accuracy method based on UV-VIS-NIR spectroscopy and chemometrics. Food Chem. 2019, 288, 8–14. [Google Scholar] [CrossRef] [Scilit]
  5. Government of Spain. Royal Decree 1027/2024, of 8 October, Regulating the Conditions for the Application of European Union Regulations on the Marketing of Eggs. Boletín Of. Del Estado 2024, 244, 126972–126987. [Google Scholar]
  6. Geist, J.; Molkentin, J.; Döring, M.; Haase, I. Egg authentication under seasonal variation using stable isotope analysis combined with machine learning classification. Food Control 2025, 168, 110898. [Google Scholar] [CrossRef] [Scilit]
  7. Van Nerom, S.; De Grande, A.; Heim, R.; Delezie, E.; Buyse, K. Research note: A machine learning approach for authentication of laying hen housing systems based on egg quality parameters. Poult. Sci. 2026, 105, 107219. [Google Scholar] [CrossRef] [Scilit]
  8. Silva Pires, P.G.; Bavaresco, C.; Prato, B.S.; Wirth, M.L.; Oliveira Moraes, P. The relationship between egg quality and hen housing systems: A systematic review. Livest. Sci. 2021, 250, 104597. [Google Scholar] [CrossRef] [Scilit]
  9. Minelli, G.; Sirri, F.; Folegatti, E.; Meluzzi, A.; Franchini, A. Egg quality traits of laying hens reared in organic and conventional systems. Ital. J. Anim. Sci. 2007, 6, 728–730. [Google Scholar] [CrossRef] [Scilit]
  10. Hammershøj, M.; Kristiansen, G.H.; Steenfeldt, S. Dual-purpose poultry in organic egg production and effects on egg quality parameters. Foods 2021, 10, 897. [Google Scholar] [CrossRef] [Scilit]
  11. Begum, F.; Sheehy, P.A.; Downing, J.A. Standardising comparisons of egg quality from different production systems by identifying confounding influences. Anim. Prod. Sci. 2025, 65, AN25029. [Google Scholar] [CrossRef] [Scilit]
  12. Chatzidimitriou, E.; Davis, H.; Baranski, M.; Jakobsen, J.; Seal, C.; Leifert, C.; Butler, G. Variation in nutritional quality in UK retail eggs. Food Chem. 2024, 454, 139783. [Google Scholar] [CrossRef] [Scilit]
  13. Hammershøj, M.; Johansen, N.F. Review: The effect of grass and herbs in organic egg production on egg fatty acid composition, egg yolk colour and sensory properties. Livest. Sci. 2016, 194, 37–43. [Google Scholar] [CrossRef] [Scilit]
  14. Hammershøj, M.; Steenfeldt, S. The effects of kale (Brassica oleracea ssp. acephala), basil (Ocimum basilicum) and thyme (Thymus vulgaris) as forage material in organic egg production on egg quality. Br. Poult. Sci. 2012, 53, 245–256. [Google Scholar] [CrossRef] [Scilit]
  15. Dalle Zotte, A.; Cullere, M.; Pellattiero, E.; Sartori, A.; Marangon, A.; Bondesan, V. Is the farming method (cage, barn, organic) a relevant factor for marketed egg quality traits? Livest. Sci. 2021, 246, 104453. [Google Scholar] [CrossRef] [Scilit]
  16. Rodríguez-Mengod, A.; Domínguez-Gómez, M.J.; Calvo, A.; Raigón, M.D.; Mínguez, C. Influence of organic and cage housing system on egg quality in laying hens. Renew. Agric. Food Syst. 2024, 39, e19. [Google Scholar] [CrossRef] [Scilit]
  17. Campmajó, G.; Cayero, L.; Saurina, J.; Núñez, O. Classification of hen eggs by HPLC-UV fingerprinting and chemometric methods. Foods 2019, 8, 310. [Google Scholar] [CrossRef] [Scilit]
  18. Ackermann, S.M.; Lachenmeier, D.W.; Kuballa, T.; Schütz, B.; Spraul, M.; Bunzel, M. NMR-based differentiation of conventionally from organically produced chicken eggs in Germany. Magn. Reson. Chem. 2019, 57, 579–588. [Google Scholar] [CrossRef] [Scilit]
  19. AOAC International. Official Methods of Analysis of AOAC International, 17th ed.; Horwitz, W., Ed.; AOAC International: Gaithersburg, MD, USA, 2000. [Google Scholar]
  20. Roberts, J.R. Factors affecting egg internal quality and egg shell quality in laying hens. J. Poult. Sci. 2004, 41, 161–177. [Google Scholar] [CrossRef] [Scilit]
  21. Haugh, R.R. The Haugh unit for measuring egg quality. US Egg Poult. Mag. 1937, 43, 552–555, 572. [Google Scholar]
  22. Bovšková, H.; Míková, K.; Panovská, Z. Evaluation of egg yolk colour. Czech J. Food Sci. 2014, 32, 213–217. [Google Scholar] [CrossRef] [Scilit]
  23. Galobart, J.; Sala, R.; Rincón-Carruyo, X.; Manzanilla, E.G.; Vilà, B.; Gasa, J. Egg yolk colour as affected by saponification of different natural pigmenting sources. J. Appl. Poult. Res. 2004, 13, 328–334. [Google Scholar] [CrossRef] [Scilit]
  24. Karadas, F.; Grammenidis, E.; Surai, P.F.; Acamovic, T.; Sparks, N.H.C. Effects of carotenoids from lucerne, marigold and tomato on egg yolk pigmentation and carotenoid composition. Br. Poult. Sci. 2006, 47, 561–566. [Google Scholar] [CrossRef] [Scilit]
  25. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
  26. Xia, F.; Zhao, Y.; Xing, M.; Sun, Z.; Huang, Y.; Feng, J.; Shen, G. Discriminant analysis of the nutritional components between organic eggs and conventional eggs: A 1H NMR-based metabolomics study. Molecules 2022, 27, 3008. [Google Scholar] [CrossRef] [Scilit]
  27. Sahachairungrueng, W.; Thompson, A.K.; Terdwongworakul, A.; Teerachaichayut, S. Non-destructive classification of organic and conventional hens’ eggs using near-infrared hyperspectral imaging. Foods 2023, 12, 2519. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Article metric data becomes available approximately 24 hours after publication online.