ML-driven olive oil quality prediction: Comparative evaluation of FTMIR data preprocessing techniques using RF and XGBoost models in multi-stage validation

• Five mid-FTIR processing methods were assessed for predicting olive oil quality using ML. • Smoothing and derivatives enhanced phenolic/flavonoid predictions (XGBoost R² ≤0.96); raw spectra sufficed for carotenoids (R² >0.89). • XGBoost outperformed RF via regularization, while RF maintained robustness across preprocessing. • Blind testing exposed overfitting (e.g., 25% R² drop in RF for DPPH), necessitating external validation. • Carotenoids' distinct spectral signatures minimized preprocessing needs compared to phenolics. 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.

Authors

Publication Details

Journal
Measurement Food
Published
2025-09-01
DOI
https://doi.org/10.1016/j.meafoo.2025.100249
Primary Topic
Spectroscopy and Chemometric Analyses
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

ML-driven olive oil quality prediction: Comparative evaluation of FTMIR data preprocessing techniques using RF and XGBoost models in multi-stage validation

Lahcen Hssaini
Measurement Food
Spectroscopy and Chemometric Analyses
article

ML-driven olive oil quality prediction: Comparative evaluation of FTMIR data preprocessing techniques using RF and XGBoost models in multi-stage validation

Lahcen Hssaini
article en

Abstract

• Five mid-FTIR processing methods were assessed for predicting olive oil quality using ML. • Smoothing and derivatives enhanced phenolic/flavonoid predictions (XGBoost R² ≤0.96); raw spectra sufficed for carotenoids (R² >0.89). • XGBoost outperformed RF via regularization, while RF maintained robustness across preprocessing. • Blind testing exposed overfitting (e.g., 25% R² drop in RF for DPPH), necessitating external validation. • Carotenoids' distinct spectral signatures minimized preprocessing needs compared to phenolics. 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.

Measurement FoodVol. 19
Openalex Percentile: Top 74%
Spectroscopy and Chemometric Analyses
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

ML-driven olive oil quality prediction: Comparative evaluation of FTMIR data preprocessing techniques using RF and XGBoost models in multi-stage validation — Lahcen Hssaini · Measurement Food (2025) | TGRS Research Map | TGRS