Skip to main navigation menu Skip to main content Skip to site footer

Research communications

Vol. 12 No. sp4 (2025): Recent Advances in Agriculture by Young Minds - III

A contour-based pixel distribution for segmenting unpolished and broken rice grain

DOI
https://doi.org/10.14719/pst.7844
Submitted
21 February 2025
Published
24-11-2025

Abstract

Rice quality grading is a critical step in ensuring the market value and consumer acceptance of rice. It involves assessing various physical attributes such as grain integrity, polish level and shape to determine its suitability for consumption, processing, or export. Traditional methods of identifying unpolished and broken rice grains rely on manual inspection, which is time-consuming and prone to human error. This article suggests an automatic segmentation of unpolished and broken rice grains using contour-based pixel distribution approach. The method leverages image processing techniques such as greyscale conversion, adaptive thresholding and morphological operations to extract individual grains from a sample. Contours are detected using the Canny edge detection algorithm, followed by connected component analysis to segment grains based on their shape and size. To differentiate the unpolished grains, pixel intensity distributions are analysed, as unpolished rice exhibits higher roughness and uneven textures. Similarly, broken grains are identified based on contour perimeter, aspect ratio and area thresholds. The proposed system was tested on rice samples collected from the VIT School of Agricultural Innovations and Advanced Learning (VAIAL), Vellore and NK Rice Mill, Redhills, Chennai, achieving high accuracy in distinguishing whole, broken and unpolished grains. This approach provides a cost-effective, non-destructive and efficient solution for automated rice quality grading, reducing dependency on manual inspection. 

References

  1. 1. FAO. Rice (Production - Crops and Livestock Products). FAO; 2024. FAO STAT.
  2. 2. U.S. Department of Agriculture, Economic Research Service (USDA‐ERS). Rice Outlook: November 2024. Washington (DC): USDA; 2024.
  3. 3. Tong C, Gao H, Luo S, Liu L, Jinsong B. Impact of postharvest operations on rice grain quality: a review. Compr Rev Food Sci Food Saf. 2019;18(3):626–40. https://doi.org/10.1111/1541-4337.12439
  4. 4. Rehal J, Kaur GJ, Singh AK. Influence of milling parameters on head rice recovery: a review. Int J Curr Microbiol App Sci. 2017;6(10):1278–95. https://doi.org/10.20546/ijcmas.2017.610.152
  5. 5. Dutta H, Mahanta CL. Traditional parboiled rice-based products revisited: current status and future research challenges. Rice Sci. 2014;21:187–200. https://doi.org/10.1016/S1672-6308(13)60191-2
  6. 6. Ayalew Z, Fanta A, Abera S. Effect of parboiling treatment on the milling quality of selected rice varieties. J Post Harvest Technol. 2013;1(1):60–8.
  7. 7. Buggenhout J, Brijs K, Celus I, Delcour JA. The breakage susceptibility of raw and parboiled rice: a review. J Food Eng. 2013;117(3):304–15. https://doi.org/10.1016/j.jfoodeng.2013.03.009
  8. 8. Moses MO, Aishat AB, Olanrewaju OM. Suitability of dimensional, physical and physicochemical properties of selected eight improved rice (Oryza sativa L.) varieties for extrusion cooking. Food Biophys. 2016;20(1). https://doi.org/10.1007/s11483-024-09902-1
  9. 9. Krishnamurthy GN, Chakrasali S, Harini S. Machine learning-based approach for degree of milling analysis of Indian rice variety. Int J Agric Innov Technol Globalisation. 2023;3(1):177–92. https://doi.org/10.1504/IJAITG.2023.10058269
  10. 10. De Oliveira Carneiro L, Coradi PC, Rodrigues DM, Lima RE, Teodoro LPR, Santos de Moraes R, et al. Characterizing and predicting the quality of milled rice grains using machine learning models. J Agric Eng. 2023;5(3):1196–1215. https://doi.org/10.3390/agriengineering5030076
  11. 11. Ye J, Hu Z, Chen Y, Fu D, Zhang J. Identification of broken rice rate based on grading and morphological classification. LWT. 2025;215:117175. https://doi.org/10.1016/j.lwt.2024.117175
  12. 12. Lin P, Chen YM, He Y, Hu GW. A novel matching algorithm for splitting touching rice kernels based on contour curvature analysis. Comput Electron Agric. 2014;109:124–33. https://doi.org/10.1016/j.compag.2014.09.015
  13. 13. Bhattacharyya SK, Pal S. Dimensional analysis and gradation of rice grain using image processing. In: Lecture Notes in Electrical Engineering. Vol. 740. Singapore: Springer; 2021. p. 109–19. https://doi.org/10.1007/978-981-33-6393-9_13
  14. 14. Zareiforoush H, Minaei S, Alizadeh MR, Banakar A. Potential applications of computer vision in quality inspection of rice: a review. Food Eng Rev. 2015;7(3):321–45. https://doi.org/10.1007/s12393-014-9101-z
  15. 15. Wu Z, Chen J, Ma Z, Li Y, Zhu Y. Development of a lightweight online detection system for impurity content and broken rate in rice for combine harvesters. Comput Electron Agric. 2024;218:108689. https://doi.org/10.1016/j.compag.2024.108689
  16. 16. Zareiforoush H, Minaei S, Alizadeh MR, Banakar A. Qualitative classification of milled rice grains using computer vision and metaheuristic techniques. J Food Sci Technol. 2016;53(1):118–31. https://doi.org/10.1007/s13197-015-1947-4
  17. 17. Vithu P, Moses JA. Machine vision system for food grain quality evaluation: a review. Trends Food Sci Technol. 2016;56:13–20. https://doi.org/10.1016/j.tifs.2016.07.011
  18. 18. Liu J, Tang Z, Chen Q, Xu P, Liu W, Zhu J. Toward automated quality classification via statistical modeling of grain images for rice processing monitoring. Int J Comput Intell Syst. 2016;9(1):120–32. https://doi.org/10.1080/18756891.2016.1144158
  19. 19. Samanta S, Ajij M, Chatterji S, Pratihar S. Fast and robust monitoring of broken rice kernels in the course of milling. Multimed Tools Appl. 2024;83(17):51337–65. https://doi.org/10.1007/s11042-023-17455-7
  20. 20. Yadav BK, Jindal VK. Monitoring milling quality of rice by image analysis. Comput Electron Agric. 2001;33(1):19–33. https://doi.org/10.1016/S0168-1699(01)00169-7
  21. 21. Aghayeghazvini H, Afzal A, Heidarisoltanabadi M, Malek S, Mollabashi L. Determining percentage of broken rice by using image analysis. In: International Conference on Computer and Computing Technologies in Agriculture. Boston (MA): Springer US; 2008. p. 1019–27. https://doi.org/10.1007/978-1-4419-0211-5_27
  22. 22. Yao M, Muhua L, Huadong Z. Exterior quality inspection of rice based on computer vision. In: 2010 IEEE World Automation Congress; 2010. p. 369–74.
  23. 23. Feng A, Li H, Liu Z, Luo Y, Pu H, Lin B, et al. Research on a rice counting algorithm based on an improved MCNN and a density map. Entropy. 2021;23(6):721. https://doi.org/10.3390/e23060721
  24. 24. Courtois F, Faessel M, Bonazzi C. Assessing breakage and cracks of parboiled rice kernels by image analysis techniques. Food Control. 2010;21(4):567–72. https://doi.org/10.1016/j.foodcont.2009.08.006
  25. 25. Kiratiratanapruk K, Temniranrat P, Sinthupinyo W, Prempree P, Chaitavon K, Porntheeraphat S, et al. Development of paddy rice seed classification process using machine learning techniques for automatic grading machine. J Sens. 2020;2020:7041310. https://doi.org/10.1155/2020/7041310
  26. 26. Xu S, Zhou Z, Lu H, Luo X, Lan Y. Improved algorithms for the classification of rough rice using a bionic electronic nose based on PCA and the Wilks distribution. Sensors. 2014;14(3):5486–501. https://doi.org/10.3390/s140305486

Downloads

Download data is not yet available.