Paddy seed variety identification using T20-HOG and Haralick textural features

The seed is an inevitable element for agricultural and industrial production. The non-destructive paddy seed variety identification is essential to assure paddy purity and quality. This research is aimed at developing a computer vision-based system to identify paddy varieties using multiple heterogeneous features, exploiting textural, external, and physical properties. We captured the paddy seed images without any fixed setup to make the system user friendly at both industry and farmer levels, which can lead to illumination problems in the images. To overcome this problem, we introduced a modified histogram oriented gradient (T20-HOG) feature that can describe the illumination, scale, and rotational variations of a paddy image. We also utilized the existing Haralick and traditional features and the dimensionality of the features is reduced by the Lasso feature selection technique. The selected features are used to train the feed-forward neural network (FNN) to predict the paddy variety. The experiments conducted on two different datasets: BDRICE, and VNRICE. Results of our method are shown in terms of four standard evaluation metrics, namely, accuracy, precision, recall, and F_1 score, and achieved 99.28%, 98.64%, 98.48%, and 98.56% score, respectively. We also compared our system efficiency with existing studies. The experimental results demonstrate that our proposed features are effective to identify paddy variety and achieved a new state-of-the-art performance. And we also observed that our newly proposed T20-HOG features have a major impact on overall system performance.


Introduction
Globally, paddy is the second most important cereal crop in terms of production area.It is also the staple food for nearly half of the world's people. 1 Agriculture is the largest employment sector in Bangladesh, and it is estimated that 71.9% of the total population lives in rural areas, while 47% of the labor forces are engaged in agriculture. 2 Bangladesh will require about 44.6 million tons of paddy in the year 2050 [31].During this time, the total paddy cultivation area will also be shrunk to 10.28 million hectares.Therefore, paddy yield needs to be increased by nearly 1.3 tons per hector.There are many factors involved in increasing crop yield.Among them, seed quality is one of the vital factors.Nobody can expect better crop yield in any circum-stances without genetically pure (e.g., a type of paddy seed variety that does not mix with other types of paddy seed varieties) quality seed [33,37].It has experimentally shown that using good quality seed paddy yield could be increased to 15%-20% [26].However, the mixture of different paddy varieties causes adulteration in the rice market, which reduces the economic value of rice and also the trust between buyer and seller [4,54].Paddy seed varieties are almost similar from outside, and it is tough to differentiate manually [18].If the farmer cultivates the wrong type of varieties by assuming their intended variety of paddy, the overall productivity might be decreased.Because, different varieties need different types of soil, methods of cultivation, as well as the duration of maturity [57].
There exist some laboratories for seed purity testing, where seed varieties are identified by human experts which require a notable amount of time and cost.To overcome these problems, different researchers have given their considerable attention to develop automatic seed grading system using classical image processing and computer vision techniques [8,10,23,24,29,36,38,45,50,52,58,59].
Different researchers [1,13,28,34,40,44,59] concentrated on paddy grain classification from a single kernel where they used heterogeneous features including geometrical, morphological, statistical, color, and textural features.Geometric features were utilized by several studies [1,12,44,47] with the combinations of other features.Because, only geometric features are not efficient for achieving high accuracy.A morphological feature can be a good representative to achieve the high accuracy [12,15,44,51,55,59].However, the morphological features may provide the wrong direction when the dataset contains images of different resolution.Many researchers used several statistical properties of an image [12,22], but these are sensitive to scale and rotational variations.Color can also be a good feature for paddy identification, because it varies over different paddy varieties.Researchers tried to use color features and conducted several studies [1,44,46,51].They also mentioned that this feature is very much sensitive to the room environment as well as lighting conditions.To overcome this problem, scientists proposed different textural features [1,3,12,28,46,47,51] including Haralick [3,6], HOG [19,41], GIST [28], and SIFT [28].Most of the textural feature generates a long vector which leads to increase system time complexity.
Another important part of paddy classification is to choose a perfect machine learning model, because an appropriate algorithm can provide a high performance.Different researchers applied artificial neural network (ANN) [3,6,12,46,59], support vector machine (SVM) [47,59], and deep learning [27] techniques for paddy variety identification.From the literature review of the mentioned studies, it is easy to say that the ANN outperformed other methods.However, the performance of classification techniques can be increased by reducing the time using different feature selection methods [16,19,20,61].
From the above literature review, we understood that many research works were conducted to identify paddy variety using machine learning and computer vision approaches.Most of the research works achieved a good performance; however, they used their self prepared dataset rather than validating with publicly available datasets, which are varying by size, resolution, types, environment, and lighting conditions.Again, most of the dataset was prepared to target a single kernel, while a few studies used multiple kernels on a single image.Interestingly, we observed that most of the high performing studies used their self dataset.We also observed that the textural feature generates a large vector.Therefore, an efficient modification of textural features is needed to reduce the time complexity.
In this research, we aim to develop a computer visionbased paddy variety identification system by exploiting heterogeneous features from paddy seeds.This system will be very useful for both industries and end-user levels.At the industry level, this system can be used at the packaging time using a conveyor belt, so that different categories of seeds are not mixed together.However, at the farmer level, the farmer can also verify their seed using our model.We also aim to develop a paddy dataset of large volume and compare our method with standard datasets.In this research, we used two datasets: BDRICE and VNRICE.BDRICE is prepared by us, which is a multiple kernel image dataset where the images were captured using a smartphone without a fixed setup.VNRICE is a standard paddy dataset of a single kernel, several research works have been conducted on this dataset [19,27,41].We extracted heterogeneous features and proposed a new feature set.After that, a feature selection technique is used to reduce the dimensionality problem.Then, we trained different machine learning algorithms and select the best model according to different evaluation metrics.
This work is organized as follows.First, we present the details of our proposed method to identify paddy seed variety in "Methodology".In "Experiments and evaluation", we discussed experimental results and evaluation.Finally, we summarize our work and draw some conclusions and future directions "Conclusion".

Methodology
This section presents our proposed method for paddy variety identification.Our method broadly has five steps, namely, i. image acquisition, ii.image processing, iii.feature extraction, iv.feature selection, and v. training model.The block diagram of our proposed system is shown in Fig. 1.

MulƟ Kernel
Single Kernel Then, purified paddy of each variety have taken to the experimental area for sampling individually.In our experimental lab, cleaned paddy were placed on black cloth with the paddy not touching each other.After that, a smartphone (rear camera 8MP, 1.4GHz quad-core Qualcomm Snapdragon 425 processor) was used to acquire the images at an average height of 15-20 cm where the lighting condition was not fixed.The images were saved in JPG format.The sample images are shown in Fig. 2.

Image preprocessing
We applied different image processing techniques on paddy seed images such as binarization, individual seed segmentation, noise removing, overlapped seed segmentation, and hole filling.In the first step, we converted the RGB images into gray images and then binary images using the function rgb2gray and im2bw in MATLAB 2020a.In the next step, we applied MATLAB regionprops function with 8-connectivity for segmenting the paddy regions.After that, we analyzed all the regions to remove the noisy areas which were less than 100 pixels using bwareaopen method.In the final step, we applied watershed and imfill methods to split the overlapped paddy seed regions, and to fill the holes, respectively, if there any.  1.In nature, the maximum of the paddy grain seed color varies from yellow-green to yellow, and yellow to yellow-harden.

Feature extraction
For some of the varieties, colors vary from light black to deep black.Hence, the surface color feature can be used for describing individual paddy [5].Again, color is invariant with respect to scale, translation, and rotation, so it can be an important feature to describe paddy seed [4,34,42].Some seeds are smaller in length compared to others, while some are wider as well.Based on the length and width, paddy varieties are categorized into three types long, medium, and short.Therefore, the length and width of the paddy can be a distinctive descriptor [34,35].Flatten and rounded paddy shapes can be another distinguishing point.The total surrounding border describes an object's elongation, which also describes the seed is broken or not; hence, perimeter can be an important feature [7,13,34,35].The area expresses the amount of surface within the border.A maximum node possible polygon in a region describes all angular tuning points or corners in an object, which is represented as solidity in paddy.Hence, area and solidity are another shape descriptor for paddy variety identification [34].Different researchers used these features in paddy variety identification [44,51].
(B) Haralick features Texture means patterns or variations in an image surface.It is defined by the spatial distribution of neighborhood pixels of a surface [60].It can describe the object of different scales, rotation, and resolution [25].The gray-level co-occurrence matrix (GLCM) describes how frequently the different patterns exist including energy, contrast, correlation, roughness, and entropy of an image [4].Fourteen different Haralic [13] textural features can narrate a paddy seed and differentiate from other varieties.Let, the dimension of any co-occurrence matrix is N g × N g .The frequency of the gray-level values is N g , and the matrix spatial distributions of neighborhood pixel are P d ,.And P d (i, j) indicates (i, j)th elements of GLCM matrix.
The details are presented in Table 2.
Basically, these features compute the gradients' orien- tations of pixels in an object image.Then, it counts the frequency and creates a vector that is treated as a global descriptor of an object.These gradients can describe the illumination [43], 3 scale [21] and rotational variations [2] of an object.Practically, the size of the vector is large, where a lot of values are repeated.If we can shrink that large vector, it will reduce the dimensionality problem.To reduce the size of the vector by selecting the important features, we analyzed it in different ways, so that it can play a significant role to identify the object as well as reducing the time complexity.In this process, we first extracted the HOG features using the function extracthogfeatures in MATLAB.Usually, this function returns a vector of different dimensions for different sizes of input images, and the vector contains an enormous repetition of values.To solve the problems, we proposed a new Algorithm 1 called T20-HOG which can reduce the dimensionality problem as well as repetitions of the values.

Lasso feature selection
Feature selection algorithms are used to find the relevant features from a feature set.It tells us which features to consider, which ones to discard, and which ones have a negative impact on overall performance [16,20,61].Lasso is one of the feature selection methods which is widely used for classification problems.Lasso stands for least absolute shrinkage and selection operator.This technique works based on linear regression with L1 regularization 4 which is measured by where x (i) is the vector of actual value, y (i) is the vector of predicted value, m indicates the number of observation, λ is the regularization parameter, θ j is the gradient descent, and the cost function is

Eccentricity
The eccentricity is the ratio of the distance between the foci of the ellipse and its major axis length

Red channel mean
The average value of all red pixels in the paddy surface Green channel mean Mean value of all green pixels in paddy region

Blue channel mean
Average value of all blue pixels in paddy covered area Variance (sum of squares) max(H X,HY ) where H X = − i P x (i) log(P x (i)) is entropy of p x , HY = − j P y ( j) log(P y ( j)) is entropy of p y and H XY 1 = − i − j P(i, j) log(P x (i)P y ( j)) where We provide X × Y dimensions feature matrix and X × 1 dimensional level vector to the Lasso system, where X indicates the number of initial features and Y indicates the number of paddy seed.The Lasso function computes feature influence for every feature using the above formulas.Finally, it returns an Z vector which contains the ranking of features, where Z ≤ X .These selected Z × Y matrix and X × 1 dimensional level vector are passed to the FNN model.By applying this Lasso feature selection technique, we obtained the following important features from the three different groups of features depicted in Table 3.
Feed forward neural network model (FNN) After applying the Lasso feature selection technique, the selected features are feed into the FNN model to identify the paddy variety.FNN offers exciting possibilities to perform machine learning and the prediction that is utilized and performing in different areas of the real world including agriculture [9,32,39,48,53].It can detect the suitable pattern from input or training data.FNN is a special type of ANN, where information moves only in the forward direction, from input to hidden nodes, and then hidden to output nodes.There is no cyclic information flow in FNN.In our proposed system, we used 3 hidden layers, each containing 30 nodes and one node in the output layer.The selected features are considered as input in FNN.The training process is described below.
Let X be the input vector consists of all the selected features and W h and W o be the weight vector for the hidden layer and the output layer, respectively.The input vector is used by the hidden layer and the output of all neurons in the hidden layer are computed as the following tansig activation function: where V h denotes the result calculated by X and W h .The output of the hidden layer Y h is feed in the output layer as input vector.In this layer, we applied sigmoid activation function for the final outcome as follows: The difference between target Y and predicted Ŷ output is termed as error and calculated based on the square of difference between these two values using the following equation: where m is the total number of seeds to train.To build an optimal model, the goal is to minimize the error amount l.We divided our dataset into two sets: one is for training (75%) and the other is for testing (25%), using random selection.The training set is used to train the network and the testing set is used for computing the accuracy.We tested the trained FNN with the real world testing samples.This net-work is expected to identify the variety of the seed for a given input set.
Testing the model Our system segmented each paddy from captured paddy images using different image processing algorithms.Later, the features of that paddy are extracted.And all the features of the paddy are given to the trained model.It tells us the name of the paddy varieties.After that, we marked the paddy image by the obtained variety name.We also developed a software interface based on the image testing system that takes an image with multiple paddies.Our system identified each of the paddy varieties and marked them with a square boundary with their resultant variety name.The system is very simple to use by farmers.The sample output is shown in Fig. 3.

Experiments and evaluation
This section presents the dataset collection, experimental setup, experimental results, findings, and discussions.We will also discuss the efficiency of different features with different machine learning models.

Dataset and experimental configurations
In our experiment, we used two different dataset: BDRICE (prepared by us) and VNRICE [19,27,41].The BDRICE consists of 60,800 paddy seed images of four different varieties.The VNRICE [19,27,41] is comprised with six paddy varieties.The description of both datasets is given in Table 4.We used 75% data for training the model and 25% for testing purposes.

Experimental setup
To evaluate the proposed model's effectiveness, we conducted experiments on eight different settings.The names and the description of the settings and their corresponding results are described in Table 5.
We also evaluated our proposed system in terms of robustness by conducting experiments on two different settings.In the first setting, we have taken different combinations of paddy varieties.In the second setting, we have changed the ratio of training and testing images.We conducted all the above experiments on the BDRICE dataset, and the best result is applied on the VNRICE dataset to evaluate our system performance with other models.

Machine learning model configuration
In this study, we used four different ML models: FNN, SVM, K-nearest neighbor (KNN), and decision tree (DT).We configured FNN with 30 nodes, 3 hidden layer, 1 output layer, tansig activation function in hidden layer, and sigmoid activation function in output layer.In case of SVM, we used multiclass model support vector machine onevsall technique with Gaussian kernel

Experimental results
To evaluate the performance of our experiments, we used a tenfold cross-validation technique with four different machine learning models: FNN, SVM, K-nearest neighbor (KNN), and decision tree (DT).The performance was evaluated utilizing four different evaluation metrics: accuracy, precision, recall, and F1_score.Let, we have five classes in our dataset, and then, we get five values for each evaluation metric (e.g., accuracy) in each setup.For brevity, from there, we present only the best result of five values.Our experimental results are described in Table 5.We observed that the minimum performance achieved in Trad_NM settings, and the maximum performance in Lasso_NM settings where the difference between the accuracy of these two settings is 78.75%.The performance of evaluation metrics indicates that Lasso_NM performing better than all the other techniques.This can also be identified from the results of all the machine learning model's accuracy, where the accuracy varies from 0.05% to 4%.
We present our confusion matrix for the BDRICE dataset in Fig. 4 using the features obtained from Lasso_NM settings with the FNN model.In the confusion matrix, we use actual and predicted levels for comparison, and then, we calculate different evaluation metrics from the matrix.Finally, we select the best results among all varieties.

Machine learning model selection
We conducted experiments to determine the best machine learning model in terms of different evaluation metrics.From Table 5, we can see that the highest performance is achieved on Lasso_NM settings, and applied it to find the best machine learning model.The experimental results are shown in Fig. 5, and we achieved high performance for all the models, where the minimum accuracy is 97.66%, and the maximum one is 99.28%.In terms of different evaluation metrics, we observed that the best and lowest performance achieved on FNN, DT, where the difference of precision and F1_score is 2.58% and 1.79%, respectively.

Necessity of feature selection
We experimented to determine the importance of feature selection in machine learning.We used two different settings: features without filtering AF_NM and features selected by Lasso LS_NM (Table 5).
123 From Fig. 6 we see that between these two settings, the recall value varies from 8% to 11% and the accuracy varies from 7% to 9% where LS_NM setting provides a good score in both cases.We also observe that the FNN contributes significantly in terms of accuracy, whereas KNN performs well for recall value.These results reveal that feature selection boosts performance and plays a vital role to develop an appropriate model.

Performance stability on the number of variety
We conducted an experiment to visualize the performance effect

EvaluaƟon metrics EvaluaƟon measures
Fig. 4 Performance comparison of different varieties on BDRICE dataset using Lasso_NM settings from Table 5 with FNN model.Here, we use different evaluation measures including true positive (TP), true negative (TN), false positive (FP), and false negative (FN).Also, we use different evaluation metrics including accuracy (Accr), precision (Prcn), recall, and F1_Score (F1) Fig. 5 Performance comparison of different machine learning models with features selected by Lasso Lasso_NM settings from (Table 5 of changing the number of paddy varieties.First, we obtained the accuracy by considering two varieties termed as 2V_NM which consists of all combinations of two varieties determined by 4 C 2 formula.It means that there are 6 subsets {(BRRI11, BRRI28),(BRRI11, BRRI29),(BRRI11, BRRI81),(BRRI28, BRRI29), (BRRI28, BRRI81), and (BRRI29, BRRI81)}.All the subsets are examined with a tenfold cross-validation technique, and average accuracy is shown in Fig. 7. Similarly, we experimented on three and four varieties termed as 3V_NM and 4V_NM, respectively.For all settings, we used the FNN model to train features.We observed that with the number of varieties, the accuracy changes slightly which implies that if we change the number of paddy varieties, it will not have much effect on the overall performance of the model.We conducted a tenfold cross-validation technique for all varieties using Lasso_NM features with the FNN model and the best result is depicted in Fig. 8.We observed the nominal performance difference between the setting, where the minimum accuracy is 98.76% for 2BY8_NM and maximum accuracy 99.28% for 8BY2_NM settings.To conclude, the number of paddy seeds in training and testing is not influencing remarkably which demonstrates the robustness of the proposed system.

Feature efficiency
To evaluate the influences of proposed textural features over traditional features on the model building, we conducted experiments in two settings.The first one includes the traditional features described in Table 1 which is expressed as OTF_NM.In another setting, we considered the textural features of both Haralick and our newly proposed T20-HOG which is denoted by HTF_NM (Table 5).The experiment results are depicted in Fig. 9.We observed that traditional features have less importance rather than textural features and the differences between accuracy and precision on two settings are 64%, and 65%, respectively.In addition, for all evaluation metrics, HTF_NM settings provide very high performance in comparison to OTF_NM settings.
In our experiment, we have taken images of paddy in an open environment, so the resolution and depth of our pictures are different.Due to these reasons, the values of traditional features (height, width, area, perimeter, etc.) have deviated a lot.That can lead to bad results in OTF_NM setting.On the contrary, textural features address these limitations; that is why, HTF_NM (Table 5) setting provides good results.

Dominance of brand new T20-HOG:
It is inferred that textural features are very powerful for our research.However, we have two different groups of textural features one is our brand new T20-HOG and the other is existing Haralick features.Therefore, we analyzed in detail to find the impact of each group of textural features.Here, we also considered two different settings.One is building and testing the model with only T20-HOG features, expressed as T20_NM (Table 5), and another setting comprises of Haralick textural features represented by HF_NM (Table 5).The result is shown in Fig. 10.From the graph, we see that the minimum result variation of the two settings is 8.29%, and the maximum is 11.66%.Overall, the performance of T20_NM settings is remarkably high, because T20-HOG features can represent the textural changes effectively and boost up the performance.

Robustness of proposed T20-HOG:
We compared the performance of T20-HOG (T20_NM setting) with traditional HOG features (HOG_NM setting), shown in Table 5.The result is depicted in Fig. 11, from this figure we observed that the performance of T20-HOG outperformed the HOG in all four evaluation metrics, which indicates the robustness of our newly proposed T20-HOG features.
Moreover, we experimented by taking T40-HOG, T30-HOG, T20-HOG, and T10-HOG features from sorted HOG count values.Then, we feed these features into FNN to find the accuracy of the BDRICE dataset.Later, we applied the Lasso features selection technique on the feature set and calculated the accuracy again.The detailed result with and without feature selection, no of selected features by Lasso, and selected feature names are presented in Table 6.From the table, we can see that T20-HOG with feature selection provides the best result.Besides, the lowest performance is achieved on T40-HOG without feature selection.Hence, we can conclude that our proposed T20-HOG with lasso feature selection is highly effective for paddy classification.5) and textural HTF_NM (Table 5

Comparison with standard dataset
We also used a standard dataset VNRICE to measure our system efficiency.Several research works have been conducted on this dataset [19,27,41] for paddy variety identification.Duong et al. [19] applied HOG and feature selection techniques to achieve better accuracy.Nguyen et al. [41] worked on the same dataset and tried to classify paddy variety by utilizing HOG and missing value imputation technique.Hoai et al. [27] applied different deep learning techniques to determine the paddy type and they achieved the highest accuracy for DenseNet121.We compared our system accuracy with the above studies, where we used our best model comprised with Lasso_NM (Table 5) features trained with the FNN model.The comparison result is shown in Table 7. From this table, we observe that our method is superior to other studies applied on the VNRICE dataset.From Table 5, we observed that T20-HOG features achieved better performance than   traditional HOG, which is why our system shows better accuracy than Nguyen et al. [41].

Comparison with recent works
To evaluate the comparative performance, we considered a few prominent recent works in paddy classification.We applied their techniques in our BDRICE dataset and com-pared them with our results.At first, we considered Ansari et al. [7] work where they trained an SVM model by extracting twenty features: seven color, nine morphological, and four textural features.They converted input RGB image to HSV, and then applied imfill and bwareaopen for removing small objects under 100 pixels.We applied their technique in our dataset and found accuracy 78.21% which is presented in Table 8.However, it is far less than our proposed method's accuracy.
We also considered Javanmardi et al. [30] study where they used VGG16 convolutional neural network (CNN) architecture for feature extraction from corn seeds.They extracted corn seed features using the VGG16 CNN model and these features are feed into the ANN model.We applied their technique in our BDRICE dataset where the configurations were Image size: 224 × 224 × 3, depth: 16, optimizer: RMSprop, loss function: cross-entropy, max epochs: 100, batch size: 32, learning rate: 0.01, parameters: 138 M. The accuracy of this experiment is 99.36% which is identical to our proposed model.Finally, we can say that our method is effective and suitable for paddy seed classification.In summary, we can say with conviction that feature selection significantly improves performance.Interclass similarity and intraclass variability are clearly visible in our features selection.The system performance is almost stable when we changed the number of paddy varieties as well as the training and testing ratio.The textural features are efficient in identifying paddy seeds' variety.Our brand new T20-HOG feature has a notable impact on overall performance in comparison to the traditional HOG, while the combination of T20-HOG and Haralick features boost the system performance.We also applied our system to the VNRICE dataset and compared it with the existing works and observed that our system outperformed all the existing systems which indicates the robustness of our new system.

Conclusion
In this paper, we proposed a new method to identify paddy variety with the help of the FNN model trained with different heterogeneous features.The T20-HOG features were introduced in paddy seed identification for the first time and we found that it has a considerable impact on overall performance as compared to the other textural features and traditional features.We applied the feature selection techniques to find the impact of each feature in the model building that helps to reduce the dimensionality.The accuracy of experimental results on feature selection is 99.28% which concluded that our introduced features have a great impact to identify paddy variety.We also evaluated the system performance by changing the number of varieties, the number of train, and test ratios.For all experimental settings, our method showed promising performance in different evaluation metrics.The system is also applied on the VNRICE dataset for comparison with existing systems which also applied on that dataset.We observed that our accuracy on that dataset is 99.71%, whereas the accuracy of other models Duong et al. [19], Nguyen et al. [41], and Hoai et al. [27] DenseNet121 are 93.34%,99.66% and 99.04%, respectively.From this experiment, we can say that our result is superior among all the feature and deep learning-based methods, leading to evidence of the robustness of the newly proposed system.Moreover, we compared the performance achieved by our method with some recent existing works.The accuracy of our model is 99.28% whereas the performance of Ansari et al. [7] and Javanmardi et al. [30] are 78.21% and 99.36% respectively.These comparisons reveal that our method is superior to the Ansari et al. [7] method and almost identical to Javanmardi et al. [30] VGG16 CNN method.Hence, this system can be used in both the industry and farmers' levels efficiently and effectively.
We prepared an annotated dataset with 60800 paddy images, which can be used as a benchmark dataset in seed variety identification.However, in this study, bulky seeds, heavily overlapped or connected paddy seeds were not considered.In the future, we would like to focus on enriching the dataset by including more available paddy varieties and increasing the number of paddy images in each variety.

Fig. 1
Fig. 1 Block diagram of our proposed system Image Acquisition Classification Identified Variety Image Preprocessing

) BDRICEFig. 2
Fig. 2 Sample images from two datasets: BDRICE and VNRICE.Here, a-g represent BDRICE which is our prepared dataset.Where a-d is a multiple kernel paddy image dataset of four varieties BRRI 11, BRRI 28, BRRI 29, and BRRI 81 are represented sequentially.e-g represents

Fig. 3
Fig. 3 Resultant paddy image marked with identified variety

Fig. 8
Fig.8 Performance evaluation on changing the number of paddy seed images in train and test set

Fig. 11
Fig.11Performance analysis of newly proposed T20-HOG T20_NM over traditional HOG features HOG_NM (Table5) HoG an input vector, with 1 × S dimension 2 Vector H HoG = histogram(HoG) H HoG size is L dimensional, where L ranges from 1 to S 3 Vector H HoG sort = sort Descending(H HoG) H HoG sort size is similar to the size of H HoG vector 4 Select first 20 features from H HoG sort in M 5lgorithm 1: Algorithm for finding T20 value from a vector Input: Vector HoG, Var S Output: 20 features 15Return M

Table 1
Physical and external featuresFeature nameFeature descriptionAreaThe actual number of pixels in the region of paddy seedWidthThe maximum number of pixels in the horizontal region of paddy seedHeightThe maximum number of pixels in the vertical region of paddy seedPerimeterThe perimeter is the distance around the boundary of the region.The perimeter is computed by calculating the distance between each adjoining pair of pixels around the border of the region Solidity Solidity is the proportion of the pixels in the convex hull in the region.It is computed as

Table 3
The number of selected features

Table 4 The
where the learning parameters were matlab default values.Again, we used the configuration for KNN with 4-neighbors, mahalanobis distance, squaredinverse weight, and quadratic loss function.Finally, we configured DT with MaxNum-Splits 4, KFold 10, optimizer bayesopt, acquisition function expected-improvement, and repartition status false.

Table 5
Performance scores were obtained in different settings on the various evaluation metrics using the BDRICE dataset ) ) features

Table 6
T10-HOG, T20-HOG, T30-HOG and T40-HOG performance comparison with and without Lasso feature selection with respect to BDRICE dataset

Table 8
Accuracy comparison with recent prominent works according to BDRICE dataset