Rice Grain Quality Analysis Using Image Processing
Main Article Content
Abstract
Background of study: Rice quality is crucial for global food security and market value, but traditional assessment relies on labor-intensive, inconsistent, and error-prone manual inspection.
Aims and scope of paper: This research proposes an automated system using image processing and AI for comprehensive rice grain quality analysis. The goal is to develop a robust, objective, and precise system to classify rice varieties and evaluate quality with minimal human intervention, reducing the effort, cost, and time of traditional methods.
Methods: The core contribution is a computerized model that uses digital image processing to automatically segment, identify, and extract key quality parameters like length, width, area, perimeter, and shape descriptors. The methodology includes image acquisition, preprocessing (binary conversion, thresholding, noise reduction, morphological operations), edge detection, feature extraction (especially aspect ratio), classification, and visualization. The system was trained on a self-curated dataset of various rice varieties.
Result: The system successfully analyzed Sona Masuri, Basmati, and Jasmine rice varieties based on grain count and average aspect ratio. Sona Masuri (211 grains, 1.57 aspect ratio) and Basmati (261 grains, 1.8 aspect ratio) were classified as 'Bold'. Jasmine (30 grains, 2.1 aspect ratio) was classified as 'Medium' , consistent with defined criteria.
Conclusion: The project successfully analyzed and processed rice grain images to determine size, shape, and quality, accurately measuring length, width, and aspect ratio for classification. Image processing techniques improved image quality and defect detection. The system objectively applied classification logic, demonstrating high precision in rice grain quality determination, which is crucial for market value and consumer satisfaction.
Article Details
Copyright (c) 2025 K.Sandhya Rani, K Swetha, K. Amrutha Varshini , G Harika

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
References
Araújo, S. O., Peres, R. S., Ramalho, J. C., Lidon, F., & Barata, J. (2023). Machine Learning Applications in Agriculture: Current Trends, Challenges, and Future Perspectives. Agronomy, 13(12), 1–27. https://doi.org/10.3390/agronomy13122976
Arora, B., Bhagat, N., Saritha, L., & Arcot, S. (2020). Rice Grain Classification using Image Processing Machine Learning Techniques. Proceedings of the 5th International Conference on Inventive Computation Technologies, ICICT 2020, February, 205–208. https://doi.org/10.1109/ICICT48043.2020.9112418
Asma, J., D, S., & D, K. (2023). The Global Lifeline: A Staple Crop Sustaining Two-Thirds of the World’s Population. Agriculture Archives, 2(3), 15–18. https://doi.org/10.51470/agri.2023.2.3.15
Aznan, A., Gonzalez Viejo, C., Pang, A., & Fuentes, S. (2022). Rapid Assessment of Rice Quality Traits Using Low-Cost Digital Technologies. Foods, 11(9). https://doi.org/10.3390/foods11091181
Custodio, M. C., Cuevas, R. P., Ynion, J., Laborte, A. G., Velasco, M. L., & Demont, M. (2019). Rice quality: How is it defined by consumers, industry, food scientists, and geneticists? Trends in Food Science and Technology, 92(September 2017), 122–137. https://doi.org/10.1016/j.tifs.2019.07.039
Gupta, P. K., & Waoo, A. A. (2024). Analyzing Machine Learning Methods To Enhance Grain Quality Assessment and Evolution. ShodhKosh: Journal of Visual and Performing Arts, 5(1), 513–525. https://doi.org/10.29121/shodhkosh.v5.i1.2024.1876
Hashim, N., Ali, M. M., Mahadi, M. R., Abdullah, A. F., Wayayok, A., Mohd Kassim, M. S., & Jamaluddin, A. (2024). Smart Farming for Sustainable Rice Production: An Insight into Application, Challenge, and Future Prospect. Rice Science, 31(1), 47–61. https://doi.org/10.1016/j.rsci.2023.08.004
Hira, S., & Lande, S. (2022). Detection of fruit ripeness using image processing. International Journal of Health Sciences, 6(March), 3874–3886. https://doi.org/10.53730/ijhs.v6ns6.10146
J., P. S., Gupta, P., Balas, P. R., & Bambhaniya, V. U. (2024). Comparison between Manual Harvesting and Mechanical Harvesting. Journal of Scientific Research and Reports, 30(6), 917–934. https://doi.org/10.9734/jsrr/2024/v30i62110
Kaur, S., & Singh, D. (2015). Geometric Feature Extraction of Selected Rice Grains using Image Processing Techniques. International Journal of Computer Applications, 124(8), 41–46. https://doi.org/10.5120/ijca2015905576
Korohou, T., Okinda, C., Li, H., Cao, Y., Nyalala, I., Huo, L., Potcho, M., Li, X., & Ding, Q. (2020). Wheat Grain Yield Estimation Based on Image Morphological Properties and Wheat Biomass. Journal of Sensors, 1–11. https://doi.org/10.1155/2020/1571936
Kurade, C., Meenu, M., Kalra, S., Miglani, A., Neelapu, B. C., Yu, Y., & Ramaswamy, H. S. (2023). An Automated Image Processing Module for Quality Evaluation of Milled Rice. Foods, 12(6), 1–14. https://doi.org/10.3390/foods12061273
Medus, L. D., Saban, M., Francés-Víllora, J. V., Bataller-Mompeán, M., & Rosado-Muñoz, A. (2021). Hyperspectral image classification using CNN: Application to industrial food packaging. Food Control, 125(January). https://doi.org/10.1016/j.foodcont.2021.107962
Mohammadi, F. S., Mohammadi, S. E., Mojarad Adi, P., Mirkarimi, S. M. A., & Shabani, H. (2024). A comparative analysis of pairwise image stitching techniques for microscopy images. Scientific Reports, 14(1), 1–11. https://doi.org/10.1038/s41598-024-59626-y
Mohidem, N. A., Hashim, N., Shamsudin, R., & Man, H. C. (2022). Rice for Food Security: Revisiting Its Production, Diversity, Rice Milling Process and Nutrient Content. Agriculture (Switzerland), 12(6). https://doi.org/10.3390/agriculture12060741
Radillah, T., Veza, O., & Sumijan, S. (2024). Comparative Analysis of Canny, Sobel, Prewitt and Roberts Edge Detection Operators on Eye Iris Images. JITK (Jurnal Ilmu Pengetahuan Dan Teknologi Komputer), 10(1), 83–90. https://doi.org/10.33480/jitk.v10i1.5062
Rajalakshmi, R., Faizal, S., Sivasankaran, S., & Geetha, R. (2024). RiceSeedNet: Rice seed variety identification using deep neural network. Journal of Agriculture and Food Research, 16, 101062. https://doi.org/10.1016/j.jafr.2024.101062
Saha, D., Padhiary, M., & Chandrakar, N. (2025). AI vision and machine learning for enhanced automation in food industry: A systematic review. Food and Humanity, 4(March), 100587. https://doi.org/10.1016/j.foohum.2025.100587
Velesaca, H. O., Suárez, P. L., Mira, R., & Sappa, A. D. (2021). Computer vision based food grain classification: A comprehensive survey. Computers and Electronics in Agriculture, 187. https://doi.org/10.1016/j.compag.2021.106287
Zia, H., Fatima, H. S., Khurram, M., Hassan, I. U., & Ghazal, M. (2022). Rapid Testing System for Rice Quality Control through Comprehensive Feature and Kernel-Type Detection. Foods, 11(18), 1–17. https://doi.org/10.3390/foods11182723
Zou, Y., Tian, Z., Cao, J., Ren, Y., Zhang, Y., Liu, L., Zhang, P., & Ni, J. (2023). Rice Grain Detection and Counting Method Based on TCLE–YOLO Model. Sensors, 23(22). https://doi.org/10.3390/s23229129
K.Sandhya Rani