Rice Classification and Quality Detection Based on Sparse Coding Technique


Department of Engineering and Technology, University of Mazandaran, Babolsar, Iran


Classification of various rice types and determination of its quality is a major issue in the scientific and commercial fields associated with modern agriculture. In recent years, various image processing techniques are used to identify different types of agricultural products. There are also various color and texture-based features in order to achieve the desired results in this area. In this paper, the problem of rice categorization and quality detection using compressive sensing concepts is considered. This issue includes sparse representation and dictionary learning techniques to achieve over-complete models and represent the structural content of rice variety. Also, dictionaries are learned in such a way to have the least coherence values to each other. The results of the proposed classifier based on the learned models are compared with the results obtained from the neural network and support vector machine classifiers. Simulation results show that the proposed method based on the combinational features is able to identify the type of rice grain and determine its quality with high accuracy rate.


1.     Food and agriculture organization of the United nations (FAO), “ Rice Market Monitor”, (2015), Vol. 18, 1-18.
2.     Neelamma, K. P., Virendra, S. M., Ravi, M. Y,. “Color and texture based identification and classification of food grains using different color models and haralick features”, International Journal on Computer Science and Engineering, (2011), Vol. 3, 3669-3680.
3.     Majumdar, S., Jayas, D. S., “Classification of cereal grains using machine vision: I. Morphology models”, Transactions of the ASAE, Vol. 43, No. 6, (2000), 1669-1675.
4.     Visen, N. S., Jayas, D. S., Paliwal, J., White, N. D. G., “Comparison of two neural network architectures for classification of singulated cereal grains”, Journal of Canadian Biosystem Engineering, Vol. 46,(2004),  7-14.
5.     Paliwal, J., Borhan, M. S., Jayas, D. S., “Classification of cereal grains using a flatbed scanner”, Canadian Biosystems Engineering, Vol. 46, No.3, (2004), 1-35.
6.     Liu, Z. y., Cheng, F., Ying, Y. b., Rao, X. Q., “Identification of rice seed varieties using neural network”, Journal of Zhejiang University. Science.B, Vol. 6, No. 11, (2005), 1095-1100.
7.     Verma, B., “Image processing techniques for grading & classification of rice”, In International Conferences on Computer and Communication Technology, India, (2010),  220-223.
8.     Jinorose, M., Prachayawarakorn, S., Soponronnarit, S., “Development of a computer vision system and novel evaluation criteria to characterize color and appearance of rice”, Drying Technology, Vol. 28, (2010), 1118-1124.
9.     Dalen, G. V., “Determination of the size distribution and percentage of broken kernels of rice using flatbed scanning and image analysis”, Food Research International, Vol. 37, (2004),51-58.
10.   Pabamalie, L., Premaratne, H., “An intelligent rice quality classifier”, International Journal of Internet Technology and Secured Transactions, Vol. 3, (2011), 386-406.
11.   Hatami, M., Rahmanididar, A., Khazaee, J., “Identification of common Iranian rice varieties using machine vision techniques”, Sixth National Congress of Agricultural Machinery Engineering and Mechanization, (2010), 1-9.
12.   Faiazi, S., Abaspourfard, M. H., Monajemi, S. A., Sadrnia, H., Rouhani, A., “Identification and separation of three Iranian rice products in mixed samples using texture based feature and LVQ”, Journal of Agricultural Mechanization, Vol. 1, (2013), 35-44.
13.   Golpour, I., Amiripanah, J., Amirichaichan, R., Khazaee, J., “Detection of rice varieties, brown rice and white rice based on image and artificial neural network”, Journal of Agricultural Machinery, Vol. 1, No. 5, (2015), 73-81.
14.   Mousavirad, S. J., Akhlaghiantab, F., “Design of an expert system to recognize the rice quality by a combination of texture properties of bulk rice samples”, Journal of Machine Vision and Image Processing, Vol. 1, No. 1, (2013).
15.   Agarwal, A., Anandkumar, A., Jain, P., Netrapalli, P., Tandon, R., “Learning Sparsely Used Overcomplete Dictionaries”, JMLR: Workshop and Conference Proceedings, Vol. 35, (2014), 1-15.
16.   Lee, H., Battle, A., Raina, R., Ng, A. Y., “Efficient sparse coding algorithms”, Advances in Neural Information Processing Systems, (2006), 1-8.
17.   Aharon, M., Elad, M., Bruckstein, A., “K-SVD: An algorithm for designing overcomplete dictionaries for sparse representation”, IEEE Trans. Signal Process, Vol. 54, No. 11, (2006), 4311-4322.
18.   Pradeep, J., Srinivasan, E., Himavanthi, S., “Neural network based recognition system integrating feature extraction and classification for english handwritten”, International Journal of Engineering Transactions B: Applications, Vol. 25, No.2, (2012), 99-106.
19.   Saleh, R., Farsi, H., “Optimum ensemble classification for fully polarimetric SAR data using global-local classification approach”, International Journal of Engineering Transactions, B: Applications, Vol. 31, No. 2,(2018), 331-338.  
20.   Singh, M. P., “Handwritten character recognition using modified gradient descent technique of neural networks and representation of conjugate descent for training patterns”, International Journal of Engineering Transactions A: Basics, Vol. 22, No. 2, (2009), 145-158.
21.   Nixon, M., Aguado, A., “Feature Extraction & Image Processing for Computer Vision”, Third Edition, Academic Press, (2012).
22.   Mathur, N. P., Gupta, S. K., “Performance analysis of feature extraction techniques for facial expression recognition”, International Journal of Computer Applications, Vol. 166, No. 1, (2017), 1-3.
23.   Dalal, N., Triggs, B. “Histograms of oriented gradients for human detection”, In Proc. IEEE Comput. Soc. Conf. Comput. Vis. Pattern Recognit. , Vol. 1, (2005),  886-893.
24.   Majumdar, S., Jayas, D. S., “Classification of cereal grains using machine vision: I. Morphology models”, Transactions of the ASAE, Vol. 43, No. 6, (2000), 1669-1675.
25.   Flusser, J., Suk, T., & Zitova╠ü, B., “Moments and moment invariants in pattern recognition”, Hichester, West Sussex, U.K: J. Wiley, (2009).
26.   Sigg, C. D., Dikk, T., Buhmann, J. M. “Speech enhancement using generative dictionary learning”, IEEE Transactions on Audio, Speech & Language Processing, Vol. 20, No. 6, (2012), 1698-1712.
27.   Barchiesi, D., Plumbley, M. D. “Learning incoherent dictionaries for sparse approximation using iterative projections and rotations”, IEEE Transactions on Signal Processing, Nol. 61, No. 8, (2013), 2055-2065.