Int. Agric. Eng. J. · 2020 · Archival Paper

Separation of partially occluded rice kernels and variety classification based on computer vision

Tchalla Korohou 1 , Cedric Okinda 1 , Innocent Nyalala 1 , I. Torotwa 1 , E. Mwangi 1
1College of Engineering, Nanjing Agricultural University, Nanjing, China
International Agricultural Engineering Journal, ISSN 0858-2114

Morphological watershed segmentation and classification for separating touching and occluded rice kernels across grain varieties.

Abstract

Summary

The classification of rice kernels based on machine vision systems is often a challenging task in an online production system due to grain occlusion problems. This study proposed a machine vision-based rice kernel classifier in an in-line production setting under partial occlusion. Firstly, a classifier model was developed based on shape, texture, and color image feature categories using single rice kernels. Four sets of classifiers were developed based on each feature category and a combination of all feature variables. The Support Vector Machine (Cubic), based on shape features, outperformed all other classifiers at an accuracy of 0.980. Secondly, a grain-splitting technique based on contour curvature analysis was introduced to separate touching rice kernels under partial occlusion (both simple and complex touching cases), achieving 100% separation accuracy on occluded rice clusters. Thirdly, the trained classifier was applied to each individually segmented rice kernel to predict its variety across Zhong Guang Si Miao No. 5 (VAR1), Zao Xian 788 (VAR2), and Nanjing 9108 (VAR3).

Quantitative Findings

Results

We applied distance-transform watershed segmentation to separate touching and partially occluded rice kernels captured in bulk postharvest inspection scenes. In addition, we extracted shape geometry and surface descriptors from separated kernel masks for multi-variety rice classification. We also removed manual single-kernel singulation bottlenecks prior to automated optical grain grading.

Grain Separation & Variety Grading Pipeline (IAEJ 2020)

Processing StepTechniqueRole in Postharvest Grading
1. Binary MaskingAdaptive thresholdingIsolates rice cluster foreground
2. Kernel SeparationDistance transform + WatershedSplits touching kernels to singles
3. ClassificationShape & texture descriptorsAssigns rice cultivar in-line
Reference Formats

Citation

@article{korohou2020ricekernels,
  title={Separation of partially occluded rice kernels and variety classification based on computer vision},
  author={Korohou, Tchalla and Okinda, Cedric and Nyalala, Innocent and Torotwa, I. and Mwangi, E.},
  journal={International Agricultural Engineering Journal},
  year={2020}
}