Machine Learning and the Use of Spectroscopy for Adulteration Detection in Turmeric Powder
Open Access
Abstract
This research aimed to develop a rapid, non-destructive, and accurate method for detecting adulteration in turmeric using Visible–Near-Infrared (UV/Vis and NIR) spectroscopy combined with machine learning algorithms. Spectral data from the samples were collected and analyzed in two ranges: 170–870 nm (UV/Vis) and 900–2170 nm (NIR). Four supervised learning algorithms, including Support Vector Machine (SVM), Linear Discriminant Analysis (LDA), the Multilayer Perceptron (MLP) neural network, and Decision Tree, were evaluated for modeling. To quantitatively assess model performance, we employed not only the accuracy metric but also complementary performance indicators including precision, recall, and the F1-score to provide a more comprehensive evaluation of classification effectiveness. The models developed in the 900–2170 nm spectral range demonstrated highly significant performance, with most models achieving 100% accuracy on the independent test set. To reduce data dimensionality and enhance computational efficiency, a hybrid feature selection method combining SVM with five algorithms—League Championship Algorithm (LCA), Genetic Algorithm (GA), Particle Swarm Optimization (PSO), Ant Colony Optimization (ACO), and Imperialist Competitive Algorithm (ICA)—was employed. Upon evaluation of each method, the SVM-LCA was selected as the optimal feature selection technique. This algorithm successfully extracted the most effective wavelengths with the highest correlation and lowest error, which maintained or improved the accuracy of the classification models. This study confirms the high potential of UV/Vis and NIR spectroscopy as rapid, non-destructive, and precise tools for detecting adulteration in turmeric. The findings can pave the way for the development of intelligent quality control systems in the food and pharmaceutical industries, playing a crucial role in ensuring consumer health and safety.Keywords
This publication has 27 references indexed in Scilit:
- Chemometric-based approach for economically motivated fraud detection in organic spices via NIR spectroscopyJournal of Food Composition and Analysis, 2025
- Integrating CNNs and chemometrics for analyzing NIR spectra and RGB images in turmeric adulterant detectionJournal of Food Composition and Analysis, 2025
- New insights into raw milk adulterated with milk powder identification: ATR-FTIR spectroscopic fingerprints combined with machine learning and feature selection approachesJournal of Food Composition and Analysis, 2024
- Statistical machine learning techniques applied to NIR spectral data for rapid detection of sudan dye-I in turmeric powders with optimized pre-processing and wavelength selectionJournal of Food Science and Technology, 2024
- Portable system to detect starch adulteration in turmeric using NIR spectroscopyFood Control, 2023
- Rapid detection of adulteration in powder of ginger (Zingiber officinale Roscoe) by FT-NIR spectroscopy combined with chemometricsFood Chemistry: X, 2022
- Detection and quantification of adulteration in turmeric by spectroscopy coupled with chemometricsJournal of Consumer Protection and Food Safety, 2022
- Adulteration detection of Sudan Red and metanil yellow in turmeric powder by NIR spectroscopy and chemometrics: The role of preprocessing methods in analysisVibrational Spectroscopy, 2022
- Application of Near-Infrared Spectroscopy for the Detection of Metanil Yellow in Turmeric PowderFood Analytical Methods, 2017
- Assessing saffron (Crocus sativus L.) adulteration with plant-derived adulterants by diffuse reflectance infrared Fourier transform spectroscopy coupled with chemometricsTalanta, 2017