Research on the Identification of Composite Spices Based on Terahertz Spectroscopy and Machine Learning Algorithms
1School of Information Engineering, North China University of Water Resources and Electric Power, Zhengzhou 450046, China.
None:
The similar appearance and composition of pungent spices frequently give rise to adulteration, which not only causes market confusion but also results in inconsistent product quality. This study employed terahertz time-domain spectra and absorption spectra coupled with three machine learning algorithms-Random Forest (RF), Support Vector Machine (SVM), and Deep Neural Network (DNN)-for the classification and identification of five spices (garlic, green pepper, Zanthoxylum bungeanum, Toona sinensis, and Qin pepper) as well as their binary mixtures. For single-component spices, all three models achieved classification accuracies exceeding 95% for both time-domain and absorption spectra. Among these models, the SVM model exhibited the best performance, with accuracies of 96.82% for time-domain spectra and 98.75% for absorption spectra. When classifying binary mixtures, models based on time-domain spectra significantly outperformed those based on absorption spectra. Notably, the DNN model demonstrated superior capability in this context, achieving an accuracy of 94.97% for the green pepper-Zanthoxylum bungeanum mixture. To further improve classification accuracy, an innovative multimodal classification model integrating time-domain and absorption spectra was developed. This multimodal model achieved an outstanding accuracy of 98.85%. Collectively, these results confirmed the effectiveness of terahertz spectroscopy combined with machine learning for spice identification, thereby providing robust technical support for nondestructive testing and quality monitoring in the global spice industry.
Related Concept Videos
IR Frequency Region: Fingerprint Region
MALDI-TOF Mass Spectrometry
Attenuated Total Reflectance (ATR) Infrared Spectroscopy: Overview
The ATR process begins by directing a beam...
Raman Spectroscopy Instrumentation: Overview
The monochromatic laser source, typically using visible or near-infrared radiation, generates a highly focused beam of light. This light interacts with the molecules of the sample, scattering some of the light. Liquid and gaseous samples are usually tested in ordinary glass capillaries, while solids can be analyzed as powders packed in capillaries or as potassium...
Applications of IR Spectroscopy: Overview
Raman Spectroscopy: Overview
However, a small fraction of the scattered light exhibits a frequency shift due to the exchange of energy between the incident photons and...


