An Automated Image Processing Module for Quality Evaluation of Milled Rice

Foods. 2023 Mar 16;12(6):1273. doi: 10.3390/foods12061273.

Abstract

The paper demonstrates a low-cost rice quality assessment system based on image processing and machine learning (ML) algorithms. A Raspberry-Pi based image acquisition module was developed to extract the structural and geometric features from 3081 images of eight different varieties of rice grains. Based on features such as perimeter, area, solidity, roundness, compactness, and shape factor, an automatic identification system is developed to segment the grains based on their types and classify them by using seven machine learning algorithms. These ML models are trained using the images and are compared using different ML models. ROC curves are plotted for each model for quantitative analysis to assess the model's performance. It is concluded that the random forest classifier presents an accuracy of 77 percent and is the best-performing model for the classification of rice varieties. Furthermore, the same algorithm is efficiently employed to determine the price of adulterated rice samples based upon the market price of individual rice.

Keywords: Raspberry-Pi; automation; computer vision; machine learning; quality assessment; rice grains.

Grants and funding

This research received no external funding.