Publications
Sort:
Open Access Issue
Coffee Powder Adulteration Detection Based on Near-Infrared Spectroscopy Combined with Machine Learning
Food Science 2026, 47(1): 309-316
Published: 15 January 2026
Abstract PDF (4.6 MB) Collect
Downloads:1

This study aims to develop a rapid and non-destructive method based on near-infrared (NIR) spectroscopy combined with machine learning modeling for the quantitative detection of soybean-adulterated coffee powder. A hierarchical modeling strategy was adopted to improve prediction accuracy. Support vector regression (SVR) combined with three spectral preprocessing methods was used to construct prediction models. A total of 30 characteristic wavelengths were selected by comparing competitive adaptive reweighted sampling (CARS) and iteratively retains informative variables (IRIV). Furthermore, three optimization algorithms: dung beetle optimization (DBO), particle swarm optimization (PSO), and grey wolf optimizer (GWO) were tested to find the most effective algorithm. The CARS-DBO-SVR model exhibited coefficients of determination (R2) of 0.9784 and 0.9669, root mean square error (RMSE) of 0.0157 and 0.0228, and residual prediction deviation (RPD) of 6.8096 and 5.4998 for the calibration and test sets, respectively. This study demonstrates that NIR spectroscopy provides an effective technical means for detecting soybean powder adulteration in coffee.

Total 1