A Comprehensive Machine Learning Framework for Detection of Red Sumac (Rhus coriaria) Adulteration with Barberry Using Hyperspectral Imaging

Document Type : Original Research

Authors

1 Biomedical Engineering Group, Department of Electrical Engineering and Information Technology, Iranian Research Organization for Science and Technology (IROST)

2 Information Technology and Intelligent Systems Group, Department of Electrical Engineering and Information Technology, Iranian Research Organization for Science and Technology (IROST), 33535111, Tehran, Iran

3 Biomedical Engineering Group, Department of Electrical Engineering and Information Technology, Iranian Research Organization for Science and Technology (IROST), 33535111, Tehran, Iran

4 Department of Chemical Technologies, Iranian Research Organization for Science and Technology (IROST), 33535111, Tehran, Iran

10.22103/bbr.2026.27386.1157

Abstract

This research proposes a comprehensive machine learning framework for detecting red sumac adulteration with barberry using hyperspectral imaging. Various features including statistical features, Discrete Cosine Transform (DCT) features, and shape features were extracted and analyzed for classification performance. Results demonstrate that among traditional classifiers, Random Forest achieved the highest accuracy (91.11%) when utilizing all features, with statistical features having the most significant impact on classification. Among deep learning approaches, LSTM networks outperformed all other methods with accuracy exceeding 96%, demonstrating the importance of sequential spectral information in adulteration detection. Further analysis revealed that even with aggressive spectral down sampling (30×), the LSTM model maintained high accuracy (93.9%), suggesting potential for implementation in cost-effective systems. These findings advance food authentication technology by offering both high-performance detection methods and practical implementation strategies for identifying red sumac adulteration, contributing to food safety and quality assurance efforts.

Keywords


Ahmad, M., Shabbir, S., Roy, S. K., Hong, D., Wu, X., Yao, J., Khan, A. M., Mazzara, M., Distefano, S., & Chanussot, J. (2021). Hyperspectral image classification—Traditional to deep models: A survey for future prospects. IEEE journal of selected topics in applied earth observations and remote sensing, 15, 968–999. https://doi.org/10.1109/JSTARS.2021.3133021
Ahmed, E. (2024). Detection of honey adulteration using machine learning. PLOS digital health, 3(6), e0000536. https://doi.org/10.1371/journal.pdig.0000536
Aqeel, M., Sohaib, A., Iqbal, M., Rehman, H. U., & Rustam, F. (2024). Hyperspectral identification of oil adulteration using machine learning techniques. Current Research in Food Science, 8, 100773. https://doi.org/10.1016/j.crfs.2024.100773
Chen, Y., Zhao, X., & Jia, X. (2015). Spectral–spatial classification of hyperspectral data based on deep belief network. IEEE journal of selected topics in applied earth observations and remote sensing, 8(6), 2381–2392. https://doi.org/10.1109/JSTARS.2015.2388577
Fan, B., Zhu, R., He, D., Wang, S., Cui, X., & Yao, X. (2022). Evaluation of mutton adulteration under the effect of mutton flavour essence using hyperspectral imaging combined with machine learning and sparrow search algorithm. Foods, 11(15), 2278. https://doi.org/10.3390/foods11152278
Ferrari, V., Calvini, R., Menozzi, C., Ulrici, A., Bragolusi, M., Piro, R., Tata, A., Suman, M., & Foca, G. (2024). Addressing adulteration challenges of dried oregano leaves by NIR HyperSpectral Imaging. Chemometrics and Intelligent Laboratory Systems, 249, 105133. https://doi.org/10.1016/j.chemolab.2024.105133
Fu, H., Zhang, A., Sun, G., Ren, J., Jia, X., Pan, Z., & Ma, H. (2022). A novel band selection and spatial noise reduction method for hyperspectral image classification. IEEE transactions on geoscience and remote sensing, 60, 1–13. https://doi.org/10.1109/TGRS.2022.3189015
Galvin-King, P., Haughey, S. A., & Elliott, C. T. (2018). Herb and spice fraud; the drivers, challenges and detection. Food Control, 88, 85–97. https://doi.org/10.1016/j.foodcont.2017.12.031
Grivetti, L. E. (2016). Herbs, spices, and flavoring agents: Part 1: Old world contributions. Nutrition Today, 51(3), 139–150. https://doi.org/10.1097/NT.0000000000000149
Gul, N., Muzaffar, K., Shah, S. Z. A., Assad, A., Makroo, H. A., & Dar, B. (2024). Deep learning hyperspectral imaging: a rapid and reliable alternative to conventional techniques in the testing of food quality and safety. Quality Assurance and Safety of Crops & Foods, 16(1), 78–97. https://doi.org/10.15586/qas.v16i1.1392
Jia, S., Jiang, S., Lin, Z., Li, N., Xu, M., & Yu, S. (2021). A survey: Deep learning for hyperspectral image classification with few labeled samples. Neurocomputing, 448, 179–204. https://doi.org/10.1016/j.neucom.2021.03.035
Jiang, Z., Lv, A., Zhong, L., Yang, J., Xu, X., Li, Y., Liu, Y., Fan, Q., Shao, Q., & Zhang, A. (2023). Rapid prediction of adulteration content in Atractylodis rhizoma based on data and image features fusions from near-infrared spectroscopy and hyperspectral imaging techniques. Foods, 12(15), 2904. https://doi.org/10.3390/foods12152904
Johnson, N. A. N., Adade, S. Y.-S. S., Ekumah, J.-N., Kwadzokpui, B. A., Xu, J., Xu, Y., & Chen, Q. (2025). A comprehensive review of analytical techniques for spice quality and safety assessment in the modern food industry. Critical reviews in food science and nutrition, 65(30), 7225–7250. https://doi.org/10.1080/10408398.2025.2462721
Khan, M. H., Saleem, Z., Ahmad, M., Sohaib, A., Ayaz, H., & Mazzara, M. (2020). Hyperspectral imaging for color adulteration detection in red chili. Applied Sciences, 10(17), 5955. https://doi.org/10.3390/app10175955
Kiani, S., van Ruth, S. M., van Raamsdonk, L. W., & Minaei, S. (2019). Hyperspectral imaging as a novel system for the authentication of spices: A nutmeg case study. Lwt, 104, 61–69. https://doi.org/10.1016/j.lwt.2019.01.045
Kishani Farahani, E., & Shojaielangari, S. (2026). Non-Destructive Authentication of Rice Varieties Using Hyperspectral Imaging and Machine Learning. Biomechanism and Bioenergy Research, 5(1), 1–19. https://doi.org/10.22103/bbr.2026.26384.1142
Liu, T., Zhang, W., Xu, H., Yu, J., Sang, T., Wang, Y., & Wang, S. (2025). Non-destructive quantitative detection of lymphatic meat adulterated in beef by hyperspectral imaging combined with interpretable deep learning. Food Control, 181, 111742. https://doi.org/10.1016/j.foodcont.2025.111742
Lu, B., Dao, P. D., Liu, J., He, Y., & Shang, J. (2020). Recent advances of hyperspectral imaging technology and applications in agriculture. Remote sensing, 12(16), 2659. https://doi.org/10.3390/rs12162659
Meng, R., Lv, Z., Yan, J., Chen, G., Zhao, F., Zeng, L., & Xu, B. (2020). Development of spectral disease indices for southern corn rust detection and severity classification. Remote sensing, 12(19), 3233. https://doi.org/10.3390/rs12193233
Mou, L., Ghamisi, P., & Zhu, X. X. (2017). Deep recurrent neural networks for hyperspectral image classification. IEEE transactions on geoscience and remote sensing, 55(7), 3639–3655. https://doi.org/10.1109/TGRS.2016.2636241
Orrillo, I., Cruz-Tirado, J., Cardenas, A., Oruna, M., Carnero, A., Barbin, D. F., & Siche, R. (2019). Hyperspectral imaging as a powerful tool for identification of papaya seeds in black pepper. Food Control, 101, 45–52. https://doi.org/10.1016/j.foodcont.2019.02.036
Sahu, P. K., Purohit, S., Tripathy, S., Mishra, D. P., & Acharya, B. (2023). Current trends in HPLC for quality control of spices. In High Performance Liquid Chromatography-Recent Advances and Applications. IntechOpen. https://doi.org/10.5772/intechopen.110897
Savitzky, A., & Golay, M. J. (1964). Smoothing and differentiation of data by simplified least squares procedures. Analytical chemistry, 36(8), 1627–1639. https://doi.org/10.1021/ac60214a047
Schumer, N. G., Ahmed, M. W., Rausch, K., Singh, V., & Kamruzzaman, M. (2025). Chemometric-based approach for economically motivated fraud detection in organic spices via NIR spectroscopy. Journal of Food Composition and Analysis, 142, 107538. https://doi.org/10.1016/j.jfca.2025.107538
Sebaei, A. S., Youssif, M. I., & Ghazi, A. A.-M. (2019). Determination of seven illegal dyes in Egyptian spices by HPLC with gel permeation chromatography clean up. Journal of Food Composition and Analysis, 84, 103304. https://doi.org/10.1016/j.jfca.2019.103304
Sharma, A., & MMR, M. (2022). A HPTLC method for the quantitative determination of Piperine and Capsaicin in Rasam, A South Indian spice soup. Int J Ayurvedic Med, 13(2), 483–486. https://doi.org/10.47552/ijam.v13i2.2548
Shojaeilangari, S., Kishani Farahani, E., & Basiri, A. (2026). Deep Learning-Enabled Hyperspectral Classification of ham. Innovative Food Technologies, 13(3), 281–295. (In Persian) https://doi.org/10.22104/ift.2025.8010.2255
Signoroni, A., Savardi, M., Baronio, A., & Benini, S. (2019). Deep learning meets hyperspectral image analysis: A multidisciplinary review. Journal of imaging, 5(5), 52. https://doi.org/10.3390/jimaging5050052
Su, W. H., & Sun, D. W. (2018). Fourier transform infrared and Raman and hyperspectral imaging techniques for quality determinations of powdery foods: A review. Comprehensive Reviews in Food Science and Food Safety, 17(1), 104–122. https://doi.org/10.1111/1541-4337.12314
Temiz, H. T., & Ulaş, B. (2021). A review of recent studies employing hyperspectral imaging for the determination of food adulteration. Photochem, 1(2), 125–146. https://doi.org/10.3390/photochem1020008