ML-driven olive oil quality prediction: Comparative evaluation of FTMIR data preprocessing techniques using RF and XGBoost models in multi-stage validation
Year: 2025
Type: article
Abstract: This study evaluates the impact of four mid-FTIR spectral preprocessing strategies—baseline correction, normalization, smoothing, first derivative transformation, all compared to raw data—on the performance of Random Forest (RF) and XGBoost (XGB) models for predicting key olive oil quality parameters mainly total phenolic content (TPC), total flavonoid content (TFC), DPPH radical scavenging activity, and carotenoid levels in the Picholine Marocaine cultivar. Using a dataset of 324 olive oil samples, models were trained and validated via a multi-stage framework (5-fold CV and 20% external validation). Results revealed that smoothing significantly enhanced TPC prediction (XGB R² = 0.96, RMSE = 24.5 mg GAE/kg) while first derivative transformation optimized TFC prediction (R² = 0.93, RMSE = 18.2 mg QE/kg). Raw data sufficed for carotenoids (R² > 0.89). XGBoost consistently outperformed RF by 7-15% across parameters due to its superior regularization capabilities. Notably, blind testing exposed a 25% R² drop for DPPH with RF, underscoring the necessity of external validation. These findings support the development of rapid, non-destructive quality assessment tools with applications in industrial quality control, authentication systems, and regulatory compliance. Future research should explore hybrid preprocessing combinations, deep chemometric feature extraction, multi-cultivar validation, and seasonal model transferability to enhance robustness and commercial viability.
Source: Measurement Food
Author: Lahcen Hssaini
Institution: Institut National de la Recherche Agronomique
Language: English
Subfield: Analytical Chemistry
Field: Chemistry
Domain: Physical Sciences
SDG: Zero hunger
Open Access status: gold
Estimated APC paid: $1,810
OpenAlex ID: W4413996502
