Noninvasive multiclass milk contaminant detection using hyperspectral imaging and hybrid ensemble learning

Food contamination remains a serious global concern due to its health risks, with milk being one of the most commonly adulterated foods in developing countries such as Pakistan, India, and Bangladesh. Accurate detection of milk contamination is essential for ensuring consumer safety and maintaining food industry standards. This study explores both invasive and noninvasive approaches for contamination analysis. The invasive method uses the Lactoscan system to assess parameters such as fat, conductivity, protein, density, solids, lactose, temperature, pH, and SNF across varying contamination levels. The noninvasive method employs hyperspectral imaging using the Specim FX-10 system (400-1,000 nm) to detect contamination through spectral and spatial analysis. Preprocessing involved image resizing and region of interest selection for feature extraction, as well as radiometric correction using the empirical line method. Postprocessing included noise reduction and spectral smoothing using the Savitzky-Golay filter. The resulting clean spectral data were classified using a hybrid ensemble learning (HEL) framework, which combines voting and stacking ensembles of gradient boosting, XGBoost, LightGBM, and multilayer perceptron models. Comparative results show the HEL approach significantly outperforms existing methods, achieving 100% training and 96% validation accuracy-demonstrating its potential for real-time, noninvasive milk quality assurance.

Authors

Institutions

Publication Details

Journal
Journal of Dairy Science
Published
2025-09-04
DOI
https://doi.org/10.3168/jds.2025-27141
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

Noninvasive multiclass milk contaminant detection using hyperspectral imaging and hybrid ensemble learning

Ahmed Sohaib, Muhammad Aqeel, Muhammad Iqbal
Journal of Dairy Science
Spectroscopy and Chemometric Analyses
article

Noninvasive multiclass milk contaminant detection using hyperspectral imaging and hybrid ensemble learning

Ahmed Sohaib, Muhammad Aqeel, Muhammad Iqbal
article en

Abstract

Food contamination remains a serious global concern due to its health risks, with milk being one of the most commonly adulterated foods in developing countries such as Pakistan, India, and Bangladesh. Accurate detection of milk contamination is essential for ensuring consumer safety and maintaining food industry standards. This study explores both invasive and noninvasive approaches for contamination analysis. The invasive method uses the Lactoscan system to assess parameters such as fat, conductivity, protein, density, solids, lactose, temperature, pH, and SNF across varying contamination levels. The noninvasive method employs hyperspectral imaging using the Specim FX-10 system (400-1,000 nm) to detect contamination through spectral and spatial analysis. Preprocessing involved image resizing and region of interest selection for feature extraction, as well as radiometric correction using the empirical line method. Postprocessing included noise reduction and spectral smoothing using the Savitzky-Golay filter. The resulting clean spectral data were classified using a hybrid ensemble learning (HEL) framework, which combines voting and stacking ensembles of gradient boosting, XGBoost, LightGBM, and multilayer perceptron models. Comparative results show the HEL approach significantly outperforms existing methods, achieving 100% training and 96% validation accuracy-demonstrating its potential for real-time, noninvasive milk quality assurance.

Journal of Dairy ScienceVol. 108(11)
Khwaja Fareed University of Engineering and Information Technology (PK), National University of Sciences and Technology (PK)
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.