Next Article in Journal
Navigating the Cyber Threat Landscape: An In-Depth Analysis of Attack Detection within IoT Ecosystems
Next Article in Special Issue
The Eye in the Sky—A Method to Obtain On-Field Locations of Australian Rules Football Athletes
Previous Article in Journal
Generative Adversarial Networks for Synthetic Data Generation in Finance: Evaluating Statistical Similarities and Quality Assessment
Previous Article in Special Issue
Single Image Super Resolution Using Deep Residual Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Efficient Paddy Grain Quality Assessment Approach Utilizing Affordable Sensors

1
Center of Intelligent Robotics, Indian Institute of Information Technology, Allahabad 211015, India
2
SFI Centre for Research Training in Artificial Intelligence, School of Computing, Dublin City University, D09 V209 Dublin, Ireland
3
Aerospace Engineering Department, University of Michigan, Ann Arbor, MI 48109, USA
*
Author to whom correspondence should be addressed.
AI 2024, 5(2), 686-703; https://doi.org/10.3390/ai5020036
Submission received: 13 April 2024 / Revised: 4 May 2024 / Accepted: 7 May 2024 / Published: 14 May 2024
(This article belongs to the Special Issue Artificial Intelligence-Based Image Processing and Computer Vision)

Abstract

:
Paddy (Oryza sativa) is one of the most consumed food grains in the world. The process from its sowing to consumption via harvesting, processing, storage and management require much effort and expertise. The grain quality of the product is heavily affected by the weather conditions, irrigation frequency, and many other factors. However, quality control is of immense importance, and thus, the evaluation of grain quality is necessary. Since it is necessary and arduous, we try to overcome the limitations and shortcomings of grain quality evaluation using image processing and machine learning (ML) techniques. Most existing methods are designed for rice grain quality assessment, noting that the key characteristics of paddy and rice are different. In addition, they have complex and expensive setups and utilize black-box ML models. To handle these issues, in this paper, we propose a reliable ML-based IoT paddy grain quality assessment system utilizing affordable sensors. It involves a specific data collection procedure followed by image processing with an ML-based model to predict the quality. Different explainable features are used for classifying the grain quality of paddy grain, like the shape, size, moisture, and maturity of the grain. The precision of the system was tested in real-world scenarios. To our knowledge, it is the first automated system to precisely provide an overall quality metric. The main feature of our system is its explainability in terms of utilized features and fuzzy rules, which increases the confidence and trustworthiness of the public toward its use. The grain variety used for experiments majorly belonged to the Indian Subcontinent, but it covered a significant variation in the shape and size of the grain.

1. Introduction

Agriculture is a necessity for any human cycle to fulfill the basic needs of life. Rice (a product of paddy) is consumed as a primary food or supporting food in many countries. The rice production process involves a lot of effort from its sowing to final preparation, and it is often affected by various climate conditions [1]. After extracting paddy, farmers have three options depending on the quality of the grain: it can be stored as seed for the next crop, it can be stored for further consumption, or it has to be consumed instantly. These options are decided based on the moisture content (0–10%, 10–27% or more than that) of the grain. Other quality measures like adulteration, broken grain, and immature grain are also indicators used to predict the strength of the grain and its demand in the market. These parameters all have to be calculated to better postprocess the grain. Paddy has such wide varieties, and it varies in the form of changes in length, width, color, and gelatinization temperature [2,3]. To evaluate all of these parameters, there is a demand [4] for an integrated system connected through the internet that can detect the variation in the quality of different grain lots and update information automatically to a common server. Such an IoT systems would help in integrating all the procurement centers through a common server for centralized monitoring.
In India, a huge variety of paddy grains are available. In Figure 1, different variations for paddy grain are shown. All varieties belong to the Indian Subcontinent, and the names used are in the local Indian language. Of these varieties, Radha is the thickest grain, and Zeera is the thinnest grain. In contrast, Ranjit is the longest grain, and Kanxi is the shortest grain, and the other two varieties (Sona and Zaya) have in-between variations in color and size. Similarly, other paddy crop breeds also vary in shape, size, color, and moisture content. Grading paddy grains is a must-solve requirement for their fair pricing and exchange. It affects [5] exports, imports, procurement, and other economic activities. In our work, we solved a problem related to the procurement of paddy grain in the government procurement centers of India, where grain is procured by the government at an MSP (minimum support price) value and further used in PDSs (Public Distribution Schemes) and Food Security Schemes. The quality of grain for every lot is decided manually (visual observation) by the local representatives at every procurement center.
However, the main drawback of the existing paddy grain evaluation scheme is that some middlemen usually create hindrance for the innocent farmers while procuring agricultural produce by falsely claiming the quality of the produce [6]. They either falsely claim the quality, or they manipulate the local representative by some means, which creates a vacuum for the growth of corruption [7] in the system. This corruption works vice versa; a lot with bad quality can be claimed to have good quality. The quality decision process takes place at the procurement center, so to that extent, the farmer has already paid a lot of money in transporting the produce from his home to the center. This problem affects farmers’ economic conditions [8] in significant parts of India because they have to sell the produce at low prices in nearby shops to the procurement center to cover the transportation costs. The main reason for this issue is the unavailability of an automated quantitative grading system for such products. This problem is raised by the State Government of Jharkhand (India). It is worth noting that in Jharkhand, more than 125,000 farmers [9] depends on the paddy crop, and its cultivation is conducted across 90,000 acres of field. These numbers show that most farmers own a field of less than 1 acre, so any amount of corruption will significantly impact their lives. The confidence of farmers in the system is decreasing, and the adaptation of any new machinery for evaluation needs the trust [10] of the farmers in terms of its methodology.
This problem needs a robust, explainable, fair evaluation system with minor human intervention. Using an Internet of Things (IoT)-based [11] paddy grain grading system would improve the fairness of the process for farmers and their reliance on the procurement process at government centers by removing the human intervention in this process. This paper proposes a reliable, fully automatic, and explainable paddy grain quality assessment system based on affordable sensors and machine learning (ML) techniques.

1.1. Related Work

Although there are some existing methods for identifying the grain quality of paddy, they have a limited scope of applications. They are costly due to the use of an expensive setup (ranges between USD 1000 and 1500) and the requirement of manual expertise (laboratory testing). This cost can be reduced using a minimized setup, as proposed, which costs around USD 150 only. This setup can be employed at major procurement centers. Most studies in the literature are related to the evaluation of rice, and very few works are available for paddy grain assessments [12,13,14,15]. Existing methods can be broadly categorized as vision-based methods for appearance-related measurements and other sensory-based methods for moisture measurements. In vision-based methods, the grain image is captured using a camera setup. Then, feature extraction methods are applied, followed by machine learning algorithms to classify the quality into different classes.
In [16], many machine vision-based [17] methods for food grain quality measurements were compared. The study discussed using artificial intelligence (AI) in grading and identifying foreign matter, insect infestation, microbial infection, and discolored grains. In [18], rice grains’ morphological features and color features were extracted and combined to train an artificial neural network (ANN) classifier to identify the rice category. The major limitation of this method is increasing the number of features. The accuracy drops by a considerable amount. In paper [19], the authors evaluated two approaches for the classification of 14 categories of rice grain according to their morphological structures: (1) a deep convolutional neural network (CNN) [20] and (2) handcrafted features with a support vector machine (SVM) algorithm. The CNN achieved a 94% accuracy, while the SVM achieved results that were 86% accurate. In [21], a contour detection method followed by an SVM was used to identify adulteration in rice grains. Acceptable results were obtained on a custom dataset. Ref. [22] employed a CNN with morphological measurements for predicting the quality of rice grain, obtaining a 90.20% precision. This method is limited to the length and width measurement of rice grains.
It should be noted that the evaluation of paddy is different from that of rice, where the critical parameters for paddy are moisture and the morphological structure. Ref. [23] presented a principal component analysis (PCA)-based method to recognize the adulteration level in the bulk of paddy grain. It obtained an accuracy of 93% for adulteration recognition. Ref. [24] used T-20 HOG (Top-20 Histogram of Oriented Gradient) features and Haralick features for the identification of paddy varieties and achieved a precision of 99% on the BDRICE (private) dataset. Ref. [25] employed an SVM algorithm and image processing techniques to inspect paddy grain varieties. It obtained an accuracy of 94%. In [26], R-CNN deep learning models were used for categorizing the leaves of a paddy plant. In [27], an image processing-based method was proposed for breakage and adulteration measurements in paddy grains. This method detects the broken grain with 84% accuracy.
The main limitations of the above-mentioned methods are as follows: (1) they only work for the assessment of specific and limited types of grain quality and do not conduct an overall evaluation, and (2) deep learning-based methods are a black box and lack explainability. Also, these methods do not consider the moisture present in the grain.
Other studies have been presented for measuring moisture [28,29]. For instance, ref. [28] proposed a fluidized bed-based method and monitored the airflow parameters used for drying the paddy. These parameters were then used to train an ANN network for moisture prediction. In [30], a machine vision-based monitoring method was integrated with the bed-based solution for measuring the moisture. The processes involved in moisture measurement are usually used in the drying process, and this includes dedicated moisture sensors, which limit the evaluation for moisture only.
Some commercial systems like AmviCube [31], RIPMAPP [32,33] are also available for estimating the quality of paddy and rice, and deep learning has been widely used in different domains [34,35,36,37,38,39,40,41,42]. However, these systems are based on sophisticated and expensive setups, and skilled labor is needed to use these products. They use a measuring tray for reference in analyzing the quality of rice. For moisture, they use a separate machine that requires human involvement and expertise for the analysis. The major issue with these quality assessment systems is their high cost, which hinders their use for mass.
In the literature, IoT technologies have been used in grain procurement [4,43] and grain distribution [44] in public centers. Ref. [43] analyzed India’s challenges in grain procurement and its solutions based on IoT. Ref. [4] discussed the use of mobile technology in food collection and storage. In [44], a public distribution system was designed in an automated way using different sensors, which provide an ease to the flow of information. Our paper proposes an IoT system for paddy grain quality assessment. We used internet-connected affordable sensors and a Raspberry Pi computation unit hosting ML-based grain quality assessment and adulteration detection models. The proposed quality assessment system aims to support the system’s independence from middlemen and any manipulation.

1.2. Contribution and Paper Organization

As discussed above, most existing methods have been designed for rice grain quality assessments, noting that the key characteristics of paddy and rice are different. In addition, they have complex and expensive setups and utilize black-box AI models. To handle these issues, in this paper, we propose a reliable ML-based IoT paddy grain quality assessment system utilizing affordable sensors. This method uses a neuro-fuzzy [45] method to learn a mapping between grain features and its class. This fuzzy-based method helps us to understand the relationships of the paddy quality in terms of crisper commands. Image processing tools were used to calculate the grain parameters, and the ANFIS tool was then used to map those parameters to the end label. The ANFIS tool was designed in such a way that the resultant fuzzy rules are clearly visible for human understanding.
This paper includes the following main contributions:
  • Proposing a reliable, fully automatic, and explainable IoT paddy grain quality assessment system based on affordable sensors and ML techniques.
  • Proposing a novel method for moisture calculation based on paddy grain weight versus volume estimation.
  • Providing an extensive evaluation of the proposed method on a paddy grain dataset collected from distant locations in India.
The remaining parts of this paper include three sections. Section 2 presents the problem definition, dataset collection setup, and proposed paddy grain assessment method. Section 3 discusses the experiments and results of the proposed method, and Section 4 provides comparisons with other ML methods. Section 5 concludes the paper and discusses the future scope of the target problem.

2. Methodology

This section discusses the proposed neuro-fuzzy method for classifying grain versus non-grain. It discusses a detailed dataset collection process. It describes the feature extraction using image processing methods and methods for measuring adulteration using image processing operations. It finally describes the neuro-fuzzy method for determining the grain quality.

2.1. Hardware Setup for Paddy Grain Dataset Collection

The paddy was to be procured, stored, and then used required in the future. To evaluate the quality of paddy grains, we needed to check for the strength in terms of internal and external qualities. Hence, the evaluation criteria include the moisture present in the grain, adulteration percentage, and broken grain percentage; these three metrics are based on an outer morphological analysis and inner quality evaluation. The major problem in paddy or any grain quality analysis is the lack of a standard dataset. No particular data-based analysis is available for evaluating paddy grains’ moisture content.
The dataset collection is of significant importance in the whole process. This study collected a paddy grain dataset considering different aspects such as the grain color, size, and weight retained by the grain for different moisture levels. As shown in Figure 1, the dataset was collected from six different mills and government procurement centers in India and Nepal.
We selected different centers for collecting the dataset. These centers were either procurement centers or rice mills. As shown in Figure 2, the locations of all centers varied from the plains of the Ganges in Jharkhand to the Himalayan valley areas in Nepal. This geographic difference [46] created a considerable variation in terms of grain quality. These centers were equipped with different types of paddy, and some experts have been working in the field of procurement for a long time. The grains had variations in terms of moisture, size, and shape, enhancing the variance in the dataset.
Figure 3 presents the setup we used to capture images for each type of paddy grain with different quality conditions. The setup included an overhead camera to capture pictures. This setup facilitates uniformity in the dataset of images. These images were used for grain size and color analyses. For each paddy grain image, the corresponding moisture values were recorded. This study considered six wide paddy grain varieties, as shown in Figure 1. It should be mentioned that the same set of paddy types with different moisture and size values was tested for moisture, weight, size/shape, and color.
The LDS-1G [47] moisture meter was used to measure the moisture of different paddy grains. The functioning of this device is based on a capacitance and temperature detection circuit. With the help of these circuits, it will set the detected signal to the signal-chip microcomputer.
The LDS-1G moisture meter has different settings from  L 1  to  L 20 , which measures the moisture of objects like cereal, corn, paddy and other types of grains; it has a test loss less than  ± 0.5 % , and it has a repeat loss less than 0.2%. The sensitivity of the device ranges from 3 to 35%. Usually, it takes less than 10 s to measure the moisture content. It can sustain temperatures of 0–40 °C. In this study, we used two settings, namely,  L 1  and  L 7 , which are prescribed for paddy grains.
All varieties of paddy have different appearances and characteristics. Some are light in color, some are small, and some are thick. We intend to find how the weights of different shapes and sizes of paddy would vary per moisture content. Thus, we took the following readings for all types of paddy. The setting value shows the set scale of the moisture meter and varied between  L 1  and  L 7 . The paddy grain images and the corresponding moisture information were arranged in a dataset. Each sample was categorized based on four factors: paddy type, morphological details, moisture meter settings, and moisture content, as shown in Table 1. It should be mentioned that each dataset sample contains an image and weight value for a fixed volume of 1 L.

2.2. Proposed System

We propose a fuzzy inference-based machine learning [48] model, which takes morphological features from image input and the weight from a weight sensor as input and outputs the form of the quality of the grain. In Figure 4, the overall setup is shown. It contains a raspberry pi computer to control the vision and weight sensors. The information extracted from these sensors is input into an ANFIS. The result from the grain analysis is used in the database, and it can be used as a reference in the future.
The acronym ANFIS refers to the Adaptive Neuro-Fuzzy Inference System. This model integrates a neural network framework based on the Sugeno method, a well-known technique in fuzzy logic. The ANFIS combines the learning capabilities of neural networks with the fuzzy logic principle of dealing with uncertainties, thereby enhancing its applicability in complex systems. The process involves not only the typical weight adjustments found in neural networks but also includes the fuzzification and defuzzification of crisp values. Fuzzification converts precise input values into fuzzy values, which are then processed and turned back into crisp outputs through defuzzification, thus enabling the system to handle a wider range of data scenarios effectively.
This process includes various steps like feature extraction from images (visual inspection), moisture prediction using the weight (weight inspection), and the usage of the ANFIS system, database, and connections.

2.2.1. Image Preprocessing

The proposed methodology takes an image of a random sample from each test case as input. The image contains grains scattered on a white plate. The image-based analysis is first used to check adulteration in the sample, and then the size and color features are used as input in our fuzzy inference system. The features of interest are the morphological structure of the grains and the color of their cover.
The images can have noise and disturbances in rice samples. The quality of the results can vary depending on the quality of the images. Hence, the images require preprocessing. Every image sample is converted to a size of 240 × 240. To remove the noise, a median filter is used. It uses a  3 × 3  kernel and replaces the kernel’s center value with the median of all values in that filter.
After noise removal, four specific processes using image processing techniques are used, as shown in Figure 5. The main motivation of image processing is to find the region of interest and the difference in the color of the grains. For finding the region of interest, contouring is used along with grayscale conversion, flood filling, and inversion; for the color analysis, a grayscale image is taken as input. These processes are the standard processes defined in the opencv library.
A color image is changed into a gray image to make the analysis easy. We used NTSC formulae, which can be expressed as follows:
G r a y = 0.299 × R e d + 0.587 × G r e e n + 0.114 × B l u e
It should be noted that the background of every image is white, so grains are easily distinguishable in some shades of gray. The flood fill algorithm is used to fill a connected segment with a particular color (in our case, gray). The proposed algorithm is used to distinguish the background from grains. It uses a threshold to define the level of connectivity while considering neighboring pixels, which range between 0 and 100. In our case, we selected it as ‘25’. The value ‘25’ was defined empirically by noticing the separation of grain and non-grain pixels. It was determined using the OpenCV library for flood filling. As shown in Figure 5, the flood fill algorithm converts the background into gray space and grains into white spaces. This image is inverted to the opposite color.
The inverted image contains paddy grain images in a segmented form. A contour method is used to detect the number of contours in the form of paddy. The cv.CHAIN_APPRO X_SIMPLE method is used for contouring. It compresses vertical, horizontal, and diagonal segments and creates the form of a four-point rectangle. It outputs a list of all the contours in the image, and each contour is a NumPy array of coordinates  ( x , y )  of the boundary points of the objects. As shown in Figure 5, some grains are not detected as contours. After analysis, we concluded that contour detection sometimes fails for grain and non-grain samples, which does not have much of an effect on the process.
The image preprocessing module results in a grayscale image and contour information in the form of a list of coordinates. We use the contour coordinates to calculate the length (L), width (W), and diameter (D) features. L and W are parameters related to the predicted contour, and D is the width covered by the grain inside the contour box. It should be noted that the L and W features are used for adulteration detection, while D is used as a size reference for the paddy grain quality assessment classifier.

2.2.2. Adulteration Detection Method

Algorithm 1 presents the steps of adulteration detection, which classifies the grains as paddy grains or non-paddy grains. The adulteration detection algorithm uses the grain color from a grayscale image (intensity of the center point of the contour,  I m i d ). If the grain color is darker than an intensity threshold ( T i n t e n s i t y ), then it is considered a low-quality grain; otherwise, it is considered a high-quality grain. A value of ‘1.3’ is used for comparing the ratio (R) of L and W. This value is defined empirically by observing different grain structures. The ‘R’ term is the ratio counted in the form of a structural representation because every grain in a paddy should have a difference in length and width. If the ratio goes beyond the value of R, then adulteration is considered in the grain and the contour is not used for analysis purposes.
Algorithm 1 Implementation of the Adulteration Detection Method
     Inputs:     Length (L), Width (W), and mid-point intensity ( I m i d )
     Output:     Paddy Grain or Foreign Element
    Step:1
    Calculate ratio ( R )  of L and W
    Step:2
    If  R < 1.3 :
        ‘Foreign Element’
    Else-If  I m i d < T i n t e n s i t y :
        ‘Foreign Element’
    Else:
        ‘Paddy Grain’
    Step:3
    Repeat the process for each contour
If a grain sample fails to qualify the adulteration criterion, then the sample is not used for further processing. If it qualifies, the mean value of the diameter is used as a reference for the size and mean grain pixel intensity as a reference for the color. In a sample of ‘n’ grains, the mean diameter ( D m e a n ) and mean intensity ( I m e a n ) are taken as references. The use of diameter overcomes the use of length and width as separate parameters, reflecting the grain size.  D m e a n  is treated as the average representation for all grains. In the same way, the mean pixel intensity ( I m e a n ) reflects the color value of the grains.

2.2.3. Moisture Prediction Method

This study proposes a novel method to calculate the moisture based on paddy grain weight. This method compares the weight of two different sets of grain for a fixed amount of volume as follows:
M o i s t u r e w e i g h t ( f o r f i x e d v o l u m e )
More weight indicates a higher presence of moisture in the sample. This fact is also validated during the dataset collection.

2.2.4. Constructing a Quality Assessment Model Based on ANFIS

The focus of our work was to make our process more explainable, which results in the form of the belief of a layman. We selected fuzzy Logic to handle this problem. A neuro-fuzzy model was trained to find the best weights of the fuzzy rules and membership functions for grain classification. As shown in Figure 6, it uses three inputs—size, weight, and color—and outputs the class of the grain as good or bad.
In our dataset, all three inputs have a different range of values, which are as follows:
  • Color: 0–1;
  • Size: 3–9 mm;
  • Weight: 1000–1010 g.
The color value is taken as the normalized value of the intensity of the center pixel of the grains; the size value is derived using the size of contour, and it varies in the range of 3–9 mm for our case. The weight value corresponds to a 1 litre volume of grain.
The proposed adaptive neuro-fuzzy inference system (ANFIS) uses a rule base to predict the quality of grain using three inputs. The structure of the fuzzy inference system is shown in Figure 6 and can be explained as follows:
I f Size i s Large o r Small a n d Colour i s Peach o r Brown a n d Weight i s High o r Low , t h e n Grain i s Good o r Bad
This can result in the form of many combinations using a rule base and a membership function. The rule base is trained using network training.
The ANFIS model consists of five layers, as shown in Figure 6. These layers serve different purposes, which are as follows:
  • Layer 1: This layer serves the purpose of fuzzification. It uses input membership functions (MFs) for input variables and converts them into the input for the next layer. Every node ‘i’ with a corresponding membership function  μ i  outputs the following:
    O u t 1 , i = μ i ( s i z e ) f o r i = 1 , 2
    O u t 1 , i = μ i ( c o l o u r ) f o r i = 1 , 2
    O u t 1 , i = μ i ( w e i g h t ) f o r i = 1 , 2
  • Layer 2: This layer acts as the rule base. It takes membership values as input. Each node multiplies the input and outputs the value according to the rule. The output of this layer is
    O u t 2 , i = w i = μ i ( s i z e ) μ i ( c o l o u r ) μ i ( w e i g h t ) f o r i = 1 , 2
  • Layer 3: This layer is used to normalize the range of firing by the neurons. The ratio of every node strength ( W i ) to the sum of strengths of all node strengths is used to denote it:
    O u t 3 , i = W i W i
    where  W i  is the firing strength of the i neuron.
  • Layer 4: This layer is also called the defuzzification layer. It calculates the parameter functions for the previous layer’s outputs. The output of this layer is the summation of all incoming outputs from previous cells:
    O u t 4 , i = O u t 3 , i ( ˙ p i s i z e + q i w e i g h t + r i c o l o u r + s i )
    where  ( p i s i z e + q i w e i g h t + r i c o l o u r + s i )  is the parameter set.
  • Layer 5: This is the output layer. The output node calculates the whole output as the sum of all input signals. It is stated as
    O u t 5 , i = O u t 3 , i ( ˙ p i s i z e + q i w e i g h t + r i c o l o u r + s i )
As shown in Figure 6, all three inputs are converted to their respective fuzzy values. The first input is color since the quality of paddy moves from bad to good with a change in color from brown to yellow. We used the ZMF (Z-shaped membership function) membership function to gauge the brown color from 0 to 0.7 and the yellow color from 0.7 to 1. Using these two membership values, we can more accurately describe the color of the paddy grain: the amount of yellow and brown noticed in a paddy grain. The membership function is defined as
f ( x , a , b ) = 1 , x a . 1 2 ( x a b a ) 2 , a x a + b 2 . 2 ( x a b a ) 2 , a + b 2 x b . 0 , x b .
where ‘a’ and ‘b’ are the maximum and minimum ranges of the input parameter.
The second input is size. We used the scaled grain’s diameter (D) parameter as a size metric. As there is a minimum of a 3 mm diameter for the paddy grains, we considered a range of 3–9 mm for the paddy grains. We again used a ZMF for converting the size metrics. The third input is weight. It was noticed that 1 L of paddy grain usually has 1002 g fora 10% moisture content and 1005 g for an 18–22% moisture content. In the same way, the weight value is converted to the respective fuzzy value using the ZMF.
The training of the ANFIS model was performed using a hybrid method: a combination of the steepest descent algorithm and least square method using backpropagation as shown in Figure 7. The convergence of the error is easily achieved in hybrid models. In Figure 7, it is clearly shown that the error convergence is smooth in hybrid mode but backpropagation is abrupt in nature.
The ANFIS uses two different criteria for tuning. It uses first-layer tuning and consequent parameters in the fourth layer. These parameters are untouched during training until the required response is being achieved. This can be written as
f = W 1 W 1 + W 2 f 1 + W 2 W 1 + W 2 f 2
where  W 1  and  W 2  are the respective firing weight parameters for both training criteria.

2.2.5. Database and Connections

The proposed system includes two databases for farmers; one is at the procurement center level, and the other is at the global agriculture database. The local database stores identity information about the farmer and quality information about the grain. This information is being used to update the information in a global database, which is used to arrange equivalent remuneration for the procured grain.
The procurement center unit and the raspberry pi-based system are connected on a local network and provide a quick response to the system even in remote areas. The connection between the local and global server is achieved using the internet, which is not desired every time. The local system connects to the global system to update the information for every season.

3. Experiments and Results

3.1. Analyzing the Changes in the Moisture and Weight of Paddy Grain

Table 2 shows the changes in moisture and weight in 1 liter of all paddy grain. After all the readings were collected, we observed that the paddy weight does not increase with a 6–7% increase in moisture. After a certain limit, if the paddy has a moisture content above 25%, then a significant increase in weight is observed. Figure 8 compares the change in weight with the increase in moisture content for Ranjit paddy grains. We utilized the property of a sudden increase in weight after about 25% moisture content to distinguish between low-moisture and high-moisture grain.

3.2. Performance of ANFIS-Based Paddy Grain Quality Assessment Model

The neuro-fuzzy model was trained on a paddy grain image dataset [49]. We used a custom dataset consisting of 140 samples. We used 126 samples for training and 14 samples for testing the model. The prediction ability was tested on the neuro-fuzzy model using ‘backpropagation’ and ‘hybrid’ approaches. The model was trained for 100 epochs for each method, and two membership values were used for each input. The evaluation was performed using the model’s average testing error and classification accuracy. The mean squared error criterion was used for the error computation:
M S E = 1 n i = 1 n ( a c t u a l t a r g e t ) 2
Accuracy was calculated as the ratio of correct predictions and total predictions:
Accuracy = T P + T N T P + T N + F P + F N
where TP denotes the proportion of HQ paddy grains that were correctly identified as HQ; TN, the proportion of LQ paddy grains that were correctly identified as LQ; FP, the proportion of LQ paddy grains that were incorrectly identified as HQ; and FN, the proportion of HQ paddy grains that were incorrectly identified as LQ.
In Figure 9, it is visible that the hybrid approach could successfully classify grain versus non-grain on all 14 test samples. The average testing error is 0.0007, which is far less than that of the backpropagation algorithm. We also tested classifying some random samples for real-time testing. The performance of the system also proved good for real time. Table 3 shows the performance results for the neuro-fuzzy model with hybrid learning.

3.3. Rule Base Extraction

The fuzzy inference model was trained using a combination of the hybrid and backpropagation methods, with the hybrid approach proving to be more precise in classifying grain quality. To gain insights into the model’s behavior with changes in input variables, we conducted fuzzy rule extraction. This process enabled us to comprehend how the model makes decisions based on varying inputs. The extracted rules, as presented in Table 4, reveal that all three input variables influence the output in different combinations. Notably, our observations indicate that the weight factor plays a crucial role in predicting grain quality. Specifically, smaller-sized grains tend to exhibit higher moisture content compared to larger grains, while grains with a peach coloration are generally preferred. This understanding enhances our ability to interpret and refine the model, ultimately improving its accuracy and utility in real-world applications.

4. Assessing the Performances of Other ML Classifiers

The fuzzy-inference system proved good for classifying the quality of paddy grains. We tested other machine learning techniques such as an SVM (support vector machine), Naive base, logistic regression, and K-NN. We found three variants of the SVM that were most suitable for our application:  SVM 1  with a soft margin (c = 50,  α  = 0.3, kernel = RBF),  SVM 2  with a soft margin (c = 30,  α  = 0.3, kernel = RBF), and  SVM 3  with a hard margin ( α  = 1, kernel = Sigmoid). In the same way, LR (logistic regression), MNB (multinomial Naive Bayes), BNB (Bernoulli Naive Bayes), GNB (Gaussian Naive Bayes), and KNN (K-nearest neighbor) with k = 3 were tested. These methods were tested for different train test ratios as needed. A quantitative comparison is shown in Table 5 for all the techniques. Different combinations of the SVM, logistic regression and KNN achieved a good accuracy in classification. Still, our proposed solution using neuro-fuzzy logic achieves a better accuracy, and this model is explainable also. The explainability of the model in terms of extracted rules makes it a reliable solution for a layman or a farmer.
Furthermore, we tested the skill score for each method. It can be expressed as follows:
η = 1 P r / P M
where  P M  is the accuracy of the tested classifier, and  P r  is the accuracy of the persistence classifier (Naive Bayes). In Figure 10, the skill score for each model is compared. Figure 10 presents the skill scores of the proposed paddy grain quality grading method based on the ANFIS and other ML techniques. Our proposed method using thhe ANFIS has the best skill score compared to that of the persistence classifier. The variants of the SVM have a comparable result, but they suffer in terms of explanation.

Real-Time Performance

This system was tested at ARM-mill, Nepal, for the evaluation of some samples of paddy grain. The testing was conducted in the presence of mill experts. The overall evaluation time consisted of several processes, from sample uploading to the unloading of the machine. The processes of weighing and image processing were controlled through a Raspberry Pi [50] Computer with 1 GB of ram. The processing time for the weight and image information was less than a second, which supports the selection of the device. It was not easy to calculate many systems’ performance parameters due to the system’s complexity, but per expert reviews, it is a good solution for real-time paddy analysis.

5. Conclusions and Future Work

This paper introduced an integrated system for the real-time monitoring and quality assessment of paddy grain, leveraging low-cost IoT sensors such as a camera strain bar for weighing and a Raspberry Pi sensor for system governance. Beyond its immediate application, the broader implications of utilizing IoT devices include considerations such as connectivity limitations, device reliability, and protocols, which impact system scalability and robustness. Additionally, while the proposed machine learning-based classification algorithm demonstrates high accuracy (98.58% on test data), ensuring the explainability of more advanced AI approaches is crucial for building trust and facilitating wider adoption. Potential barriers to scaling up this approach include data collection challenges, interoperability issues, and the need for standardized protocols. Moreover, increasing the sample size may potentially alter the results, necessitating careful consideration in future implementations. Moving forward, this solution holds promise for widespread use in both public and private procurement centers, with future directions focusing on extending its applicability to other grains and integrating automation for enhanced process efficiency.

Author Contributions

Conceptualization, A.S. and A.M.R.; methodology, A.S. and T.M.; software, K.R.; validation, A.S. and K.R.; formal analysis, A.S. and K.R.; investigation, A.S. and K.R.; resources, A.S. and K.R.; data curation, A.S. and K.R.; writing—original draft preparation, A.S. and K.R.; writing—review and editing, A.S. and K.R.; visualization, A.S. and K.R.; supervision, A.S. and A.M.R.; project administration, A.S. and K.R.; funding acquisition, A.S. and K.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author/s.

Acknowledgments

This work was partially supported by the National Informatics Center, Jharkhand, India, and Government of Jharkhand. This work was funded by the Ministry of Education, India. The authors want to thank ARM Mill, Nepal and its staff for support in the analysis and problem definition.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
MSEMean Squared Error;
AIArtificial Intelligence;
MLMachine Learning;
ZMFZ Membership Function.

References

  1. Nagarajan, S.; Jagadish, S.V.K.; Prasad, A.H.; Thomar, A.K.; An, A.; Pal, M.; Agarwal, P.K. Local climate affects growth, yield and grain quality of aromatic and non-aromatic rice in northwestern India. Agric. Ecosyst. Environ. 2010, 138, 274–281. [Google Scholar] [CrossRef]
  2. Rebeira, S.P.; Wickramasinghe, H.A.M.; Samarasinghe, W.L.G.; Prashantha, B.D.R. Diversity of grain quality characteristics of traditional rice (Oryza sativa L.) varieties in Sri Lanka. Trop. Agric. Res. 2014, 25, 470–478. [Google Scholar] [CrossRef]
  3. Chen, Z.; Lu, Y.; Feng, L.; Hao, W.; Li, C.; Yang, Y.; Fan, X.; Li, Q.; Zhang, C.; Liu, Q. Genetic dissection and functional differentiation of ALKa and ALKb, two natural alleles of the ALK/SSIIa gene, responding to low gelatinization temperature in rice. Rice 2020, 13, 39. [Google Scholar] [CrossRef] [PubMed]
  4. Hema, L.K.; Velmurugan, S.; Sunil, D.N.; Aziz, S.T.; Thirunavkarasu, S. IOT based real-time control and monitoring system for food grain procurement and storage. IOP Conf. Ser. Mater. Sci. Eng. 2020, 993, 012079. [Google Scholar] [CrossRef]
  5. Hill, L.D. Grain grades and standards. In Grain Marketing; CRC Press: Boca Raton, FL, USA, 2021; pp. 121–158. [Google Scholar]
  6. Fuentes, G.A. Middlemen and agents in the procurement of paddy: Institutional arrangements from the rural Philippines. J. Asian Econ. 1998, 9, 307–331. [Google Scholar] [CrossRef]
  7. Dreze, J.; Khera, R. Understanding leakages in the public distribution system. Econ. Political Wkly. 2015, 50, 39–42. [Google Scholar]
  8. Keshava, S.R. Economic Conditions of Farmers. Indian Econ. 2023, 132. Available online: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4338334 (accessed on 15 April 2024).
  9. Rice in Jharkhand. Available online: http://forest.jharkhand.gov.in/fresearch/admin/file/research_665.pdf (accessed on 17 April 2022).
  10. Yayock, E.S.; Ishaya, J. Development and performance evaluation of a grain grading machine for small and medium scale farmers. IOSR J. Agric. Vet. Sci. (IOSR-JAVS) 2020, 13, 33–40. [Google Scholar]
  11. Singh, A.; Pandey, P.; Nandi, G.C. Influence of human mindset and societal structure in the spread of technology for Service Robots. In Proceedings of the 2021 IEEE 8th Uttar Pradesh Section International Conference on Electrical, Electronics and Computer Engineering (UPCON), Dehradun, India, 11–13 November 2021; pp. 1–6. [Google Scholar]
  12. Patrício, D.I.; Rieder, R. Computer vision and artificial intelligence in precision agriculture for grain crops: A systematic review. Comput. Electron. Agric. 2018, 153, 69–81. [Google Scholar] [CrossRef]
  13. Wah, T.N.; San, P.E.; Hlaing, T. Analysis on feature extraction and classification of rice kernels for Myanmar rice using image processing techniques. Int. J. Sci. Res. Publ. 2018, 8, 603–606. [Google Scholar] [CrossRef]
  14. Ajay, G.; Suneel, M.; Kumar, K.K.; Prasad, P.S. Quality evaluation of rice grains using morphological methods. Int. J. Soft Comput. Eng. 2013, 2, 35–37. [Google Scholar]
  15. Maheshwari, C.V.; Jain, K.R.; Modi, C.K. Non-destructive quality analysis of Indian Basmati Oryza sativa SSP indica (Rice) using image processing. In Proceedings of the 2012 International Conference on Communication Systems and Network Technologies, Rajkot, Gujarat, India, 11–13 May 2012. [Google Scholar]
  16. Vithu, P.; Moses, J.A. Machine vision system for food grain quality evaluation: A review. Trends Food Sci. Technol. 2016, 56, 13–20. [Google Scholar] [CrossRef]
  17. Singh, A.; Narula, R.; Rashwan, H.A.; Abdel-Nasser, M.; Puig, D.; Nandi, G.C. Efficient deep learning-based semantic mapping approach using monocular vision for resource-limited mobile robots. Neural Comput. Appl. 2022, 34, 15617–15631. [Google Scholar] [CrossRef]
  18. Wijerathna, P.; Lochandaka, R. Rice category identification using heuristic feature guided machine vision approach. In Proceedings of the 2018 IEEE 13th International Conference on Industrial and Information Systems (ICIIS), Rupnagar, India, 1–2 December 2018. [Google Scholar]
  19. Kiratiratanapruk, K.; Temniranrat, P.; Sinthupinyo, W.; Prempree, P.; Chaitavon, K.; Porntheeraphat, S.; Prasertsak, A. Development of paddy rice seed classification process using machine learning techniques for automatic grading machine. J. Sens. 2020, 2020, 7041310. [Google Scholar] [CrossRef]
  20. Singh, A.; Pandey, P.; Nandi, G.C. Effectiveness of multi-gated sequence model for the learning of kinematics and dynamics of an industrial robot. Ind. Robot Int. J. Robot. Res. Appl. 2021, 48, 62–70. [Google Scholar] [CrossRef]
  21. Nagoda, N.; Ranathunga, L. Rice sample segmentation and classification using image processing and support vector machine. In Proceedings of the 2018 IEEE 13th International Conference on Industrial and Information Systems (ICIIS), Rupnagar, India, 1–2 December 2018. [Google Scholar]
  22. Herath, H.M.K.K.M.B.; Karunasena, G.M.K.B.; Prematilake, R.D.D. Computer Vision for Agro-Foods: Investigating a Method for Grading Rice Grain Quality in Sri Lanka. In Advance Concepts of Image Processing and Pattern Recognition; Springer: Singapore, 2022; pp. 21–34. [Google Scholar]
  23. Anami, B.S.; Malvade, N.N.; Palaiah, S. Automated recognition and classification of adulteration levels from bulk paddy grain samples. Inf. Process. Agric. 2019, 6, 47–60. [Google Scholar] [CrossRef]
  24. Uddin, M.; Islam, M.A.; Shajalal, M.; Hossain, M.A.; Yousuf, M.S.I. Paddy seed variety identification using t20-hog and haralick textural features. Complex Intell. Syst. 2022, 8, 657–671. [Google Scholar] [CrossRef]
  25. Ansari, N.; Ratri, S.S.; Jahan, A.; Ashik-E-Rabbani, M.; Rahman, A. Inspection of paddy seed varietal purity using machine vision and multivariate analysis. J. Agric. Food Res. 2021, 3, 100109. [Google Scholar] [CrossRef]
  26. Anandhan, K.; Singh, A.S. Detection of paddy crops diseases and early diagnosis using faster regional convolutional neural networks. In Proceedings of the 2021 International Conference on Advance Computing and Innovative Technologies in Engineering (ICACITE), Greater Noida, India, 4–5 March 2021. [Google Scholar]
  27. Chen, J.; Gu, Y.; Lian, Y.; Han, M. Online recognition method of impurities and broken paddy grains based on machine vision. Trans. Chin. Soc. Agric. Eng. 2018, 34, 187–194. [Google Scholar]
  28. Chokphoemphun, S.; Chokphoemphun, S. Moisture content prediction of paddy drying in a fluidized-bed drier with a vortex flow generator using an artificial neural network. Appl. Therm. Eng. 2018, 145, 630–636. [Google Scholar] [CrossRef]
  29. Kaveh, M.; Sharabiani, V.R.; Chayjan, R.A.; Taghinezhad, E.; Abbaspour-Gilandeh, Y.; Golpour, I. ANFIS and ANNs model for prediction of moisture diffusivity and specific energy consumption potato, garlic and cantaloupe drying under convective hot air dryer. Inf. Proc. Agric. 2018, 5, 372–387. [Google Scholar] [CrossRef]
  30. Ahmad, F.; Younis, M.S.; Zahid, R.U.; Shahid, L.A. Machine Learning Based Grain Moisture Estimation for Real-time Monitoring of High-Temperature Paddy Drying Silo. In Proceedings of the 2020 IEEE 23rd International Multitopic Conference (INMIC), Bahawalpur, Pakistan, 5–7 November 2020. [Google Scholar]
  31. Amvicube. Available online: https://tracxn.com/d/companies/amvicube.com (accessed on 17 April 2022).
  32. RIPMAPP. Available online: https://riceforafrica.net/old-site/ (accessed on 17 April 2022).
  33. International Rice Research Institute. Available online: https://www.irri.org/ (accessed on 17 April 2022).
  34. Chandio, A.; Shen, Y.; Bendechache, M.; Inayat, I.; Kumar, T. AUDD: Audio Urdu digits dataset for automatic audio Urdu digit recognition. Appl. Sci. 2014, 11, 8842. [Google Scholar] [CrossRef]
  35. Kumar, T.; Park, J.; Bae, S. Intra-Class Random Erasing (ICRE) augmentation for audio classification. In Proceedings of the Korean Society of Broadcast Engineers Conference, Jeju, Korea, 3–7 November 2020; pp. 244–247. [Google Scholar]
  36. Turab, M.; Kumar, T.; Bendechache, M.; Saber, T. Investigating Multi-Feature Selection and Ensembling for Audio Classification. arXiv 2022, arXiv:2206.07511. [Google Scholar] [CrossRef]
  37. Kumar, T.; Park, J.; Ali, M.; Uddin, A.; Ko, J.; Bae, S. Binary-classifiers-enabled filters for semi-supervised learning. IEEE Access 2021, 9, 167663–167673. [Google Scholar] [CrossRef]
  38. Khan, W.; Raj, K.; Kumar, T.; Roy, A.; Luo, B. Introducing Urdu Digits Dataset with Demonstration of an Efficient and Robust Noisy Decoder-Based Pseudo Example Generator. Symmetry 2022, 14, 1976. [Google Scholar] [CrossRef]
  39. Kumar, T.; Park, J.; Ali, M.; Uddin, A.; Bae, S. Class Specific Autoencoders Enhance Sample Diversity. J. Broadcast Eng. 2021, 26, 844–854. [Google Scholar]
  40. Khan, W.; Kumar, T.; Cheng, Z.; Raj, K.; Roy, A.; Luo, B. SQL and NoSQL Databases Software architectures performance analysis and assessments—A Systematic Literature review. arXiv 2022, arXiv:2209.06977. [Google Scholar]
  41. Singh, A.; Raj, K.; Kumar, T.; Verma, S.; Roy, A. Deep learning-based cost-effective and responsive robot for autism treatment. Drones 2023, 7, 81. [Google Scholar] [CrossRef]
  42. Roy, A.M.; Bhaduri, J.; Kumar, T.; Raj, K. A Computer Vision-Based Object Localization Model for Endangered Wildlife Detection (September 5, 2022). Ecological Economics, Forthcoming. Available online: https://ssrn.com/abstract=4315295 (accessed on 15 April 2024).
  43. Mahapatra, M.S.; Mahanty, B. Effective public procurement of food grains: A case of India under differential charges. Comput. Ind. Eng. 2021, 154, 107165. [Google Scholar] [CrossRef]
  44. Verma, A.; Rathore, A.S.; Kumari, A.C. An automated approach to public distribution system using internet of things. Procedia Comput. Sci. 2018, 132, 288–296. [Google Scholar] [CrossRef]
  45. Singh, A.; Pandey, P.; Puig, D.; Nandi, G.C.; Abdel-Nasser, M. Reliable Scene Recognition Approach for Mobile Robots with Limited Resources Based on Deep Learning and Neuro-Fuzzy Inference. Trait. Signal 2022, 39, 1255. [Google Scholar] [CrossRef]
  46. Matuzeviciute, G.M.; Abdykanova, A.; Kume, S.; Nishiaki, Y.; Tabaldiev, K. The effect of geographical margins on cereal grain size variation: Case study for highlands of Kyrgyzstan. J. Archaeol. Sci. Rep. 2018, 20, 400–410. [Google Scholar] [CrossRef]
  47. Zhang, X.; Guan, Z.; Wang, L.; Fu, J.; Zhang, Y.; Li, Z.; Ma, L.; Liu, P.; Zhang, Y.; Liu, M.; et al. Combined GWAS and QTL analysis for dissecting the genetic architecture of kernel test weight in maize. Mol. Genet. Genom. 2020, 295, 409–420. [Google Scholar] [CrossRef] [PubMed]
  48. Singh, A.; Nandi, G.C. Machine learning based joint torque calculations of industrial robots. In Proceedings of the 2018 Conference on Information and Communication Technology (CICT), Jabalpur, India, 26–28 October 2018; pp. 1–6. [Google Scholar]
  49. Karaboga, D.; Kaya, E. Adaptive network based fuzzy inference system (ANFIS) training approaches: A comprehensive survey. Artif. Intell. Rev. 2019, 52, 2263–2293. [Google Scholar] [CrossRef]
  50. Pi, Raspberry. Raspberry pi 3 Model b. 2015. Available online: https://www.raspberrypi.org (accessed on 15 April 2024).
Figure 1. Examples of paddy grains are from the states of Jharkhand, Bihar, India, and Nepal. These paddy varieties have different morphological structures in terms of length and width.
Figure 1. Examples of paddy grains are from the states of Jharkhand, Bihar, India, and Nepal. These paddy varieties have different morphological structures in terms of length and width.
Ai 05 00036 g001
Figure 2. Centres for dataset collection. The dataset was collected at two centers in Jharkhand state (1 and 2), one center (mill) in Bihar state (3), and two centers in the country of Nepal (4 and 5). These centers were either procurement centers or rice mills.
Figure 2. Centres for dataset collection. The dataset was collected at two centers in Jharkhand state (1 and 2), one center (mill) in Bihar state (3), and two centers in the country of Nepal (4 and 5). These centers were either procurement centers or rice mills.
Ai 05 00036 g002
Figure 3. This setup was used for the image capturing of scattered paddy grain. It consists of a rigid frame with an overhead position for mounting the camera. It consists of a horizontal white tray for scattering grains.
Figure 3. This setup was used for the image capturing of scattered paddy grain. It consists of a rigid frame with an overhead position for mounting the camera. It consists of a horizontal white tray for scattering grains.
Ai 05 00036 g003
Figure 4. Schematic of the flow of the process in the proposed system. The produce from the farmer is collected at the procurement center. It is separated into two portions. One portion is used for weighing (moisture analysis), and another for image processing based on a feature extraction and adulteration check. Features extracted from both portions are then used in a fuzzy inference system to classify the grain quality. All the sensors are controlled through a Raspberry Pi device, which is connected to the server of the procurement center. The quality information for the grain is added to the farmer database and updated on the global server for further actions.
Figure 4. Schematic of the flow of the process in the proposed system. The produce from the farmer is collected at the procurement center. It is separated into two portions. One portion is used for weighing (moisture analysis), and another for image processing based on a feature extraction and adulteration check. Features extracted from both portions are then used in a fuzzy inference system to classify the grain quality. All the sensors are controlled through a Raspberry Pi device, which is connected to the server of the procurement center. The quality information for the grain is added to the farmer database and updated on the global server for further actions.
Ai 05 00036 g004
Figure 5. Processes involved in image processing. It converts the color image to grayscale, and the flood fill process fills the background area with color and leaves the region of interest. The flood-filled image is then inverted to identify the presence of grain particles. The contouring process counts and locates the grains in the image.
Figure 5. Processes involved in image processing. It converts the color image to grayscale, and the flood fill process fills the background area with color and leaves the region of interest. The flood-filled image is then inverted to identify the presence of grain particles. The contouring process counts and locates the grains in the image.
Ai 05 00036 g005
Figure 6. Neuro-fuzzy network. Input—size value, color value, and weight value. Output—high-quality grain or low-quality grain. It converts each input into two fuzzy values used for decision making using a rule base. The whole network is trained using the hybrid method of training.
Figure 6. Neuro-fuzzy network. Input—size value, color value, and weight value. Output—high-quality grain or low-quality grain. It converts each input into two fuzzy values used for decision making using a rule base. The whole network is trained using the hybrid method of training.
Ai 05 00036 g006
Figure 7. Training of the ANFIS. Two methods are used for training and updating the weight of the network: (right) hybrid and (left) backpropagation.
Figure 7. Training of the ANFIS. Two methods are used for training and updating the weight of the network: (right) hybrid and (left) backpropagation.
Ai 05 00036 g007
Figure 8. Moisture versus weight variation for Ranjit grain. Initially, the grain weight increases slowly with the change in moisture content, but after a threshold (∼20%), it increases rapidly.
Figure 8. Moisture versus weight variation for Ranjit grain. Initially, the grain weight increases slowly with the change in moisture content, but after a threshold (∼20%), it increases rapidly.
Ai 05 00036 g008
Figure 9. Classification result on the test set: (left) hybrid and (right) backpropagation tested on test samples. Red points are predictions, and blue points are target values.
Figure 9. Classification result on the test set: (left) hybrid and (right) backpropagation tested on test samples. Red points are predictions, and blue points are target values.
Ai 05 00036 g009
Figure 10. Skill scores of the proposed paddy grain quality grading method based on the ANFIS and other ML techniques.
Figure 10. Skill scores of the proposed paddy grain quality grading method based on the ANFIS and other ML techniques.
Ai 05 00036 g010
Table 1. Specification of each grain sample in the dataset.
Table 1. Specification of each grain sample in the dataset.
Paddy TypeMorphologyMeter SettingsMoisture
RadhaThickestL110.2
Radha MoistThickL120.1
RanjitLongest, thickL714.7
JayaPale Yellowish, thickL112.7
KanxiPure Yellow, ThickL114.3
SonaThin, SmallL712.2
ZeeraThinnest, LongL713
Table 2. Variations in weight of all grains with the change in moisture content.
Table 2. Variations in weight of all grains with the change in moisture content.
Moist (%)Weight (in Kgs)
RanjitZeeraRadhaSonaKanxiZaya
101.021.011.021.031.031.02
131.021.011.021.031.031.02
18.241.021.031.031.041.041.02
221.041.041.041.051.051.04
25.41.081.071.071.091.081.08
30.71.091.081.081.11.11.1
Table 3. Performance evaluation of the proposed method (neuro-fuzzy with hybrid learning).
Table 3. Performance evaluation of the proposed method (neuro-fuzzy with hybrid learning).
MetricValue
Training error0.0011855
Testing error0.0007
Test Accuracy98.58
Table 4. Extracted rules of the proposed approach. P, B, SS, LS, L, H, LQ, and HQ stand for peach, brown, small size, large size, low, high, low quality, and high quality, respectively.
Table 4. Extracted rules of the proposed approach. P, B, SS, LS, L, H, LQ, and HQ stand for peach, brown, small size, large size, low, high, low quality, and high quality, respectively.
Rule No.ColourSizeWeightQuality
Rule  # 1 PSSLHQ
Rule  # 2 PSSHHQ
Rule  # 3 PLSHLQ
Rule  # 4 PLSLHQ
Rule  # 5 BSSHLQ
Rule  # 6 BLSLLQ
Rule  # 7 BSSLHQ
Rule  # 8 BLSHLQ
Table 5. Comparing the proposed ANFIS-based paddy grain quality assessment approach with other methods.
Table 5. Comparing the proposed ANFIS-based paddy grain quality assessment approach with other methods.
MethodTraining
Accuracy (%)
Testing
Accuracy (%)
SVM 1 99.2897.14
SVM 2 99.2896.42
SVM 3 98.5796.42
LR97.8595.0
MNB87.8586.42
BNB97.1495.71
GNB92.8589.28
KNN97.1492.85
Proposed99.28 98.58
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Singh, A.; Raj, K.; Meghwar, T.; Roy, A.M. Efficient Paddy Grain Quality Assessment Approach Utilizing Affordable Sensors. AI 2024, 5, 686-703. https://doi.org/10.3390/ai5020036

AMA Style

Singh A, Raj K, Meghwar T, Roy AM. Efficient Paddy Grain Quality Assessment Approach Utilizing Affordable Sensors. AI. 2024; 5(2):686-703. https://doi.org/10.3390/ai5020036

Chicago/Turabian Style

Singh, Aditya, Kislay Raj, Teerath Meghwar, and Arunabha M. Roy. 2024. "Efficient Paddy Grain Quality Assessment Approach Utilizing Affordable Sensors" AI 5, no. 2: 686-703. https://doi.org/10.3390/ai5020036

Article Metrics

Back to TopTop