{"title":"Noninvasive multiclass milk contaminants detection using hyperspectral imaging and hybrid ensemble learning.","authors":"Muhammad Iqbal, Muhammad Aqeel, Ahmed Sohaib","doi":"10.3168/jds.2025-27141","DOIUrl":null,"url":null,"abstract":"<p><p>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.</p>","PeriodicalId":354,"journal":{"name":"Journal of Dairy Science","volume":" ","pages":""},"PeriodicalIF":4.4000,"publicationDate":"2025-09-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Dairy Science","FirstCategoryId":"97","ListUrlMain":"https://doi.org/10.3168/jds.2025-27141","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, DAIRY & ANIMAL SCIENCE","Score":null,"Total":0}
引用次数: 0
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.
期刊介绍:
The official journal of the American Dairy Science Association®, Journal of Dairy Science® (JDS) is the leading peer-reviewed general dairy research journal in the world. JDS readers represent education, industry, and government agencies in more than 70 countries with interests in biochemistry, breeding, economics, engineering, environment, food science, genetics, microbiology, nutrition, pathology, physiology, processing, public health, quality assurance, and sanitation.