Non-Destructive Authentication of Rice Varieties Using Hyperspectral Imaging and Machine Learning

Document Type : Original Research

Authors

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

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

10.22103/bbr.2026.26384.1142

Abstract

This study develops a non-destructive method for authenticating four commercial rice varieties: Sargol, Domsiyah, AliKazemi, and Aria-Paria, by integrating hyperspectral imaging (HSI) with machine learning. Hyperspectral data in the visible–near infrared range (400–950 nm) were acquired from 4,305 individual rice grains. Effective preprocessing mitigated initial anisotropic spatial sampling by resizing images to achieve isotropic resolution, preventing grain loss during segmentation. Two analytical strategies were investigated: one relying on handcrafted features and another directly exploiting reduced spectral profiles as sequential data. Comparative evaluation showed that models trained on sequential spectral information consistently outperformed feature-based methods. Among the evaluated classifiers, a Support Vector Machine (SVM) achieved the highest classification accuracy of 92.62%, exceeding both classical machine learning models and deep learning approaches, including Long Short-Term Memory (LSTM) networks, one-dimensional Convolutional Neural Networks (1D-CNNs), and a hybrid CNN-LSTM architecture. The proposed HSI–SVM framework demonstrates strong potential for accurate rice variety authentication and offers practical applicability in quality control and supply chain monitoring.

Keywords


Ahmed, M. T., Monjur, O., Khaliduzzaman, A., & Kamruzzaman, M. (2025). A comprehensive review of deep learning-based hyperspectral image reconstruction for agri-food quality appraisal. Artificial Intelligence Review, 58(4), 96. https://doi.org/10.1007/s10462-024-11090-w
Bajait, V., & Malarvizhi, N. (2024). Automated grape leaf nutrition deficiency disease detection and classification Equilibrium Optimizer with deep transfer learning model. Network: Computation in Neural Systems, 35(1), 55–72. https://doi.org/10.1080/0954898X.2023.2275722
Beucher, S., & Meyer, F. (2018). The morphological approach to segmentation: the watershed transformation. In Mathematical morphology in image processing (pp. 433–481). CRC Press. https://doi.org/10.1201/9781482277234
Breiman, L. (2001). Random forests. Machine learning, 45(1), 5–32. https://doi.org/10.1023/A:1010933404324
Breiman, L., Friedman, J., Olshen, R. A., & Stone, C. J. (2017). Classification and regression trees. Chapman and Hall/CRC. https://doi.org/10.1201/9781315139470
Cortes, C., & Vapnik, V. (1995). Support-vector networks. Machine learning, 20(3), 273–297. https://doi.org/10.1023/A:1022627411411
Fabiyi, S. D., Vu, H., Tachtatzis, C., Murray, P., Harle, D., Dao, T. K., Andonovic, I., Ren, J., & Marshall, S. (2020). Varietal classification of rice seeds using RGB and hyperspectral images. IEEE access, 8, 22493–22505. https://doi.org/10.1109/ACCESS.2020.2969847
Feng, L., Wu, B., Zhu, S., He, Y., & Zhang, C. (2021). Application of visible/infrared spectroscopy and hyperspectral imaging with machine learning techniques for identifying food varieties and geographical origins. Frontiers in Nutrition, 8, 680357. https://doi.org/10.3389/fnut.2021.680357
Friedman, J. H. (2002). Stochastic gradient boosting. Computational statistics & data analysis, 38(4), 367–378. https://doi.org/10.1016/S0167-9473(01)00065-2
Géron, A. (2022). Hands-on machine learning with Scikit-Learn, Keras, and TensorFlow. " O'Reilly Media, Inc.".
Hartigan, J. A., & Wong, M. A. (1979). Algorithm AS 136: A k-means clustering algorithm. Journal of the royal statistical society. series c (applied statistics), 28(1), 100–108. https://doi.org/10.2307/2346830
Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural computation, 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735
Jin, C., Zhou, L., Zhao, Y., Qi, H., Wu, X., & Zhang, C. (2025). Classification of rice varieties using hyperspectral imaging with multi-dimensional fusion convolutional neural networks. Journal of Food Composition and Analysis, 148, 108389. https://doi.org/10.1016/j.jfca.2025.108389
Kang, Z., Fan, R., Zhan, C., Wu, Y., Lin, Y., Li, K., Qing, R., & Xu, L. (2024). The rapid non-destructive differentiation of different varieties of rice by fluorescence hyperspectral technology combined with machine learning. Molecules, 29(3), 682. https://doi.org/10.3390/molecules29030682
Kiranyaz, S., Ince, T., Abdeljaber, O., Avci, O., & Gabbouj, M. (2019). 1-D convolutional neural networks for signal processing applications. ICASSP 2019-2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP),  (pp. 8360-8364). IEEE.
Kiratiratanapruk, K., Temniranrat, P., Sinthupinyo, W., Prempree, P., Chaitavon, K., Porntheeraphat, S., & Prasertsak, A. (2020). Development of paddy rice seed classification process using machine learning techniques for automatic grading machine. Journal of Sensors, 2020(1), 7041310. https://doi.org/10.1155/2020/7041310
Komal, Sethi, G. K., & Bawa, R. K. (2022). A prototype of automatic rice variety identification system using artificial intelligence techniques. AIP Conference Proceedings, (Vol. 2455, No. 1, p. 040004). AIP Publishing LLC.
Kurniawan, R., & Sunardi, L. (2025). Integration of image enhancement technique with DenseNet201 architecture for identifying grapevine leaf disease. MATRIK: Jurnal Manajemen, Teknik Informatika dan Rekayasa Komputer, 24(2), 333–346. https://doi.org/10.30812/matrik.v24i2.4137
Liu, D. C., & Nocedal, J. (1989). On the limited memory BFGS method for large scale optimization. Mathematical programming, 45(1), 503–528. https://doi.org/10.1007/BF01589116
Prova, N. N. I. (2025). Enhancing agricultural research with an attention-based hybrid model for precise classification of rice varieties. International Journal of Cognitive Computing in Engineering, 6, 412–430. https://doi.org/10.1016/j.ijcce.2025.02.002
Qiu, Z., Chen, J., Zhao, Y., Zhu, S., He, Y., & Zhang, C. (2018). Variety identification of single rice seed using hyperspectral imaging combined with convolutional neural network. Applied Sciences, 8(2), 212. https://doi.org/10.3390/app8020212
Rao, K. R., Kim, D. N., & Hwang, J. J. (2010). Fast Fourier transform-algorithms and applications (Vol. 32). Springer. https://doi.org/10.1007/978-1-4020-6629-0
Rinnan, Å., Van Den Berg, F., & Engelsen, S. B. (2009). Review of the most common pre-processing techniques for near-infrared spectra. TrAC Trends in Analytical Chemistry, 28(10), 1201–1222. https://doi.org/10.1016/j.trac.2009.06.007
Saber, A., Mahmoud, A., & El-Sharkawy, Y. H. (2025). Hyperspectral imaging and K-means clustering for material structure classification and detection of unmanned aerial vehicles. Scientific Reports, 15(1), 31145. https://doi.org/10.1038/s41598-025-16205-z
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
Sperandei, S. (2014). Understanding logistic regression analysis. Biochemia medica, 24(1), 12–18. https://doi.org/10.11613/BM.2014.003
Zhang, A., Lipton, Z. C., Li, M., & Smola, A. J. (2023). Dive into deep learning. Cambridge University Press.
Zuiderveld, K. (1994). Contrast limited adaptive histogram equalization. In Graphics gems IV (pp. 474–485). https://doi.org/10.1016/B978-0-12-336156-1.50061-6