Next Article in Journal
A Phenomics and Metabolomics Investigation on the Modulation of Drought Stress by a Biostimulant Plant Extract in Tomato (Solanum lycopersicum)
Previous Article in Journal
Mechanical Pruning of ‘Clemenules’ Mandarins in Spain: Yield Effects and Economic Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Diversity of Plum Stones Based on Image Texture Parameters and Machine Learning Algorithms

Fruit and Vegetable Storage and Processing Department, The National Institute of Horticultural Research, Konstytucji 3 Maja 1/3, 96-100 Skierniewice, Poland
Submission received: 27 February 2022 / Revised: 11 March 2022 / Accepted: 21 March 2022 / Published: 22 March 2022
(This article belongs to the Section Precision and Digital Agriculture)

Abstract

:
The objective of this study was to evaluate the usefulness of machine learning based on image texture parameters to discriminate plum stone cultivars. The plums of cultivars ‘Emper’, ‘Kalipso’, and ‘Polinka’ were sampled. For each cultivar, one hundred images of plum stones were acquired using a digital camera. Processing of the plum stone images included the conversion of the images to individual color channels, image segmentation, region of interest (ROI) determination, and texture parameter extraction. Then, the discriminant analysis, including the texture selection and building discriminative models for the evaluation of the diversity of the plum stone cultivars, was carried out. The obtained results of discrimination of plum stone cultivars were very accurate and confirmed the effectiveness of image processing to evaluate the cultivar diversity. The most satisfactory results, reaching 96.67% for the average accuracy for three cultivars (97% for ‘Emper’, ‘Kalipso’, and 96% for ‘Polinka’), were obtained for the models built based on combined textures selected from all the color channels using the IBk classifier. The developed procedure can be of practical importance for the correct identification of plum stone cultivars and avoiding their mixing to preserve cultivar uniformity.

1. Introduction

Plum is a stone fruit with an edible fleshy mesocarp and is included in the genus Prunus (Rosaceae). The cultivars belonging to the species Prunus domestica (European plum) and Prunus salicina (Asian or Japanese plum) are the most important. The cultivars of the European plum cultivated traditionally by farmers are intended for local fresh markets or processing. Some traditional cultivars are especially appreciated due to their flavor and taste. The cultivar differentiation is also important for farming due to its adaptation to climatic conditions and disease resistance. The evaluation of plum diversity may be essential; for example, for on-farm conservation schemes and the utilization of genetic resources for sustainable agriculture [1]. Plums are one of the major fruit crops worldwide. The plum is considered a health-promoting fruit [2]. Plums, apart from their diversity in terms of size, shape, taste, and appearance, may be characterized by cultivar differentiation in terms of chemical properties. Plums are rich, e.g., in polyphenols, among others, and flavonoids, proanthocyanidins, coumarins, and hydroxycinnamic acids that may be associated with health benefits [3]. Plums are characterized by a short postharvest life. Due to their high respiration rate, fragile structure, fungal infection, and high water content, the fruit quality declines after harvesting, storage for longer times, and the long-distance transport of plums without an edible coating on the surface are limited [4,5]. Plums are seasonal with short periods of harvest and a supply of fresh fruit. Therefore, plums are also commercially available in processed forms, e.g., as dried plum powders, prunes, jams, juices, and plums in cans [6,7]. Stone fruits consist of an epicarp (outer layer), a mesocarp (flesh), and an endocarp (stone) [8]. During plum processing, the flesh and skin are the main raw materials, and the stones are generated as by-products [9]. The stone of a plum consists of the seed covered with a hull. The seed may be a source of useful substances for food, cosmetics (e.g., personal care products), and pharmaceutical industries [10,11]. Plum seeds have a high content of proteins and lipids, but also amygdalin [10,12,13]. The cultivar affects the properties of plum stones and kernels and, thus, the quality of their products [9]. Therefore, the correct cultivar recognition of plum stones previously extracted from the fruit is important before their further processing.
The application of machine learning (ML) algorithms may be useful to carry out the discrimination of samples based on the texture, color, and shape parameters extracted from digital images. Due to this, the analysis is performed in a non-destructive, quick, inexpensive, reliable, and objective way [14]. Machine learning enables quantifying and understanding data-intensive processes due to learning machines without being strictly programmed. A learning process aims to learn from training data to perform a task. After the end of this process, the trained model can predict, classify, or cluster new testing data using the obtained experience [15]. The use of machine learning algorithms can provide many benefits to agriculture. It can help to maximize yields and minimize input costs. Machine learning can allow the enhancement of the selection and crop yield prediction, weather forecasting, crop diseases predictions, and smart irrigation system [16]. Classification in machine learning separates the data and refers to a predictive modeling problem, as well [17]. Machine learning algorithms, combined with imaging technologies or non-imaging spectroscopy, can provide successful results [18]. Therefore, image analysis with machine learning can be widely used for the classification of different plant materials, including seeds [19,20], grain [21,22,23], fruit [24,25], or other parts of plants, e.g., leaves [26].
The objective of this study was to evaluate the usefulness of a machine learning approach based on texture parameters selected from a set of about 1600 textures extracted from images color converted to the color channels R, G, B, L, a, b, X, Y, and Z to discriminate the plum stone cultivars. The criteria considered for evaluating the discrimination were accuracies and the values of other performance metrics, such as the precision, MCC (Matthews Correlation Coefficient), F-measure, Kappa statistic, mean absolute error, and root mean squared error. The available literature lacks information on the use of such a large data set (1600 attributes), including textures from the individual color channels of the images and machine learning algorithms from different groups (‘Bayes’, ‘Lazy’, ‘Trees’, ‘Meta’, ‘Functions’, and ‘Rules’) used for developing models for the evaluation of plum stone cultivar diversity, which is a great novelty of the present study. The innovation of the study involving developing models for the textures selected from a set included textures from all the color channels R, G, B, L, a, b, X, Y, and Z (about 1600 textures), as well as separately for each color channel (about 180 textures for each of the nine color channels).

2. Materials and Methods

2.1. Materials

The plum stones belonging to the ‘Emper’, ‘Kalipso’, and ‘Polinka’ cultivars were obtained manually from the mature fruits harvested from an orchard in central Poland. The plums were cut in half to extract the stones. The removed stones were washed and cleaned of their flesh. After air-drying, the undamaged stones were subjected to imaging.

2.2. Image Processing

The whole plum stones were imaged using a digital camera placed on a tripod, LED illumination, and a black box. Images were acquired under room conditions. Color calibration of the digital camera was carried out. The stones were positioned against a black background. This facilitated the segmentation of the images. In the case of each cultivar, ‘Emper’, ‘Kalipso’, and ‘Polinka’, one hundred imaged stones were obtained. Ten images were taken for each cultivar. There were ten plum stones in each image. In total, the obtained set consisted of images for three hundred plum stones. For the acquired images, a traditional image processing approach was applied. The image segmentation and texture determination were performed with the use of MaZda software (Łódź University of Technology, Institute of Electronics, Łódź, Poland) [27]. The procedure of image acquisition and processing is presented in Figure 1. The lighter plum stones were separated from the black background using the segmentation of the images into brightness regions. For each plum stone considered as a set of pixels, the region of interest (ROI) was overlaid. The image textures were considered as a function of the spatial variation of the pixel brightness intensity. The images can have repeated subpatterns of the distribution of pixel brightness. Textures can provide information about the structure of the objects. The quantitative texture analysis can provide important insights about object quality [19]. The texture parameters were calculated for stone images converted to color channels R, G, B, L, a, b, X, Y, and Z. The examples of original plum stone images and images converted to randomly selected color channels, for which significant differences between H Mean textures were determined based on the results performed using a one-way ANOVA in Statistica (StatSoft Inc., Tulsa, OK, USA) software at a significance level of p ≤ 0.05, are shown in Figure 2.
In the case of each ROI (each plum stone) in each of the nine color channels, about 180 textures, based on the co-occurrence matrix (132 texture parameters, including 11 features computed for 4 various directions and 3 between-pixels distances), run-length matrix (20 texture parameters, including 5 features computed for 4 various directions), histogram (9 texture parameters), Haar wavelet transform (10 texture parameters), gradient map (5 texture parameters), and autoregressive model (5 texture parameters), were computed [27]. In total, about 1600 image textures were determined for each stone. These textures were used first for the selection step and then for the development of models to distinguish plum stone cultivars.

2.3. Plum Stone Cultivar Discrimination Using Machine Learning Algorithms

The plum stones were discriminated into ‘Emper’, ‘Kalipso’, and ‘Polinka’ cultivars with the use of the WEKA (Machine Learning Group, University of Waikato, Hamilton and Tauranga, New Zealand) machine learning software [28,29]. The analysis included attribute selection and building the models for the discrimination of the plum stone cultivars (Figure 3). The textures with the highest discriminative power were selected using the Best–first algorithm. The texture selection step was performed for a set of textures from color channels R, G, B, L, a, b, X, Y, and Z, and separately for individual color channels R, G, and B from the color space RGB, color channels L, a, and b from the color space Lab, and the color channels X, Y, and Z from the color space XYZ. Then, the models were developed for each set of selected textures using the machine learning algorithms (classifiers) [30]. The algorithms from different groups (‘Bayes’, ‘Lazy’, ‘Trees’, ‘Meta’, ‘Functions’, and ‘Rules’) were tested. The classification was performed using a 10-fold cross-validation mode. The dataset was randomly divided into 10 parts. The learning was performed a total of 10 times using different training sets. Each of the 10 parts was used as the test set, and the remaining 9 parts as the training sets, in turn. The results were the average of 10 estimates [30]. The discriminant analysis allowed the determination of the confusion matrices with the discrimination accuracies, as well as the values of the precision, MCC (Matthews Correlation Coefficient), and F-measure. The equations for the computation of these metrics are presented in Equations (1)–(4). The range of values for accuracy was 0–100%, and for the precision, MCC, and F-measure—0.000–1.000. The decision on the effectiveness of the model was made based on the highest performance metrics. The higher the values of the metrics, the more correct the classifications are. Additionally, the values of the Kappa statistic, mean absolute error, and root mean squared error (range of 0.000–1.000) were determined. The high value of the Kappa statistic was considered desirable, whereas the values of the errors should be as low as possible. Based on the most successful values of the metrics obtained for the IBk (Instance-Based Learning with parameter, k) (‘Lazy’), QDA (Quadratic Discriminant Analysis) (‘Functions’), LDA (Linear Discriminant Analysis) (‘Functions’) and Random Forest (‘Trees’), the results for these algorithms were chosen to be presented in this paper. The parameters of these selected algorithms were the following: for IBk—do Not Check Capabilities: False, batch Size: 100, KNN: 1, debug: False, mean Squared: False, window Size: 0, nearest Neighbour Search Algorithm: Linear NN Search (distance Function: Euclidean Distance-R first-last); for QDA and LDA—do Not Check Capabilities: False, ridge: 1 × 10−6, batch Size: 100, debug: False; for Random Forest—bag Size Percent: 100, batch Size: 100, break Ties Randomly: False, debug: False, do Not Check Capabilities: False, num Excecution Slots: 1, num Interactions: 100, seed: 1.
Accuracy = TP + TN TP + FP + TN + FN × 100
Precision = T P TP + FP
MCC = TP × TN FN × FP TP + FN × TN + FP × TP + FP × TN + FN
F 1 Measure = 2 TP 2 TP + FP + FN
TP: True Positive; TN: True Negative; FP: False Positive; FN: False Negative.
In order to verify the correctness of the approach used, the automatic General Discriminant Analysis (GDA) model involving the progressive discrimination was tested in STATISTICA (StatSoft Inc., Tulsa, OK, USA) software at suggested parameters. Different software and a different procedure for building the model than in WEKA were chosen to ensure the independence of the analysis. The verification was used for models including textures selected from color channels R, G, B, L, a, b, X, Y, and Z and built into WEKA using various machine learning algorithms.

3. Results

Firstly, the discriminative models were built based on the combined textures selected from the color channels R, G, B, L, a, b, X, Y, and Z (Table 1). The textures contributing most to the accuracy of the models were from the color channels G and B. They were characterized by the highest discriminative power. Examples of these textures are GS5SH5SumOfSqs, GS5SV1SumVarnc, BS5SZ1SumOfSqs, BS5SV1SumOfSqs, GHPerc10, GHKurtosis, and BHPerc10. The obtained results were very satisfactory. The ‘Emper’, ‘Kalipso’, and ‘Polinka’ plum stones were discriminated with a high average accuracy of up to 96.67% for the model developed using the IBk classifier. The individual cultivars were distinguished in 97% for ‘Emper’ and ‘Kalipso’, and 96% for ‘Polinka’. None of the cases belonging to the other cultivars were incorrectly included in the class ‘Polinka’. In the case of the predicted class ‘Emper’, 3% of the stones, ‘Kalipso’, and 4% of the stones, ‘Polinka’, were incorrectly classified as ‘Emper’. Additionally, 3% of the ‘Emper’ stones were incorrectly included in the class ‘Kalipso’. The values of the precision, MCC, and F-measure were the highest for ‘Polinka’ and were equal to 1.000, 0.970, and 0.980, respectively. Additionally, the Kappa statistic, equal to 0.95, was high, whereas the values of mean absolute error (0.0247) and root mean squared error (0.1369) were low.
In the case of the other classifiers, the average accuracies of the discrimination of ‘Emper’, ‘Kalipso’, and ‘Polinka’ plum stones, based on models including the textures selected from the color channels R, G, B, L, a, b, X, Y, and Z, reached 95.33% for QDA, 95% for LDA, and 94.67% for ‘Random Forest’ (Table 1). Based on the confusion matrices, it was observed that the stones, ‘Kalipso’, were discriminated with the highest accuracies of up to 97% (QDA), 98% (LDA), and 99% (Random Forest). The models built with the use of the QDA and ‘Random Forest’ algorithms allowed for the complete differentiation of the ‘Kalipso’ and ‘Polinka’ plum stones, whereas the greatest mixing of cases occurred between the ‘Emper’ and ‘Polinka’ stones. In the case of the ‘Random Forest’, 8% of the cases belonging to the class ‘Polinka’ were incorrectly included in the class ‘Emper’, and 5% of the stones, ‘Polinka’, were incorrectly classified as ‘Emper’. The ‘Kalipso’ plum stones were characterized by a very high precision (0.990) for the model built using the QDA algorithm, whereas the values of the MCC (0.978) and F-measure (0.985) were the most satisfactory for the ‘Kalipso’ cultivar and ‘Random Forest’ algorithm. The values of the Kappa statistic were high for QDA (0.93), LDA (0.925), and ‘Random Forest’ (0.92). In the case of each classifier, the mean absolute error and root mean squared error were low, up to 0.1136 and 0.1918 (Random Forest), respectively. The verification of these models built based on the textures selected from the color channels R, G, B, L, a, b, X, Y, and Z (Table 1) and carried out using automatic General Discriminant Analysis (GDA), proved the high accuracy of discrimination. The plum stones were correctly discriminated in 96.67%. The accuracies for the stones belonging to individual cultivar were equal to 96% for ‘Emper’ and ‘Polinka’ and 98% for ‘Kalipso’.
The mean values of some of the image textures from the selected color channels are presented in Figure 4. The differences between the plum stone cultivars were visible. The most noticeable differentiation was observed between ‘Kalipso’ and ‘Polinka’. This confirmed the high correctness of the discrimination between these cultivars and the lack, or slight mixing of cases, between them (Table 1). The results of a one-way ANOVA revealed that the differences in the means of the GH Mean, LH Mean, XH Mean, and BH Mean, between the ‘Emper’, ‘Kalipso’, and ‘Polinka’ plum stones, were statistically significant and that each cultivar formed the separate homogenous group. The values of the GH Mean were equal to 140.34 for ‘Polinka’, 160.60 for ‘Emper’, and 170.02 for ‘Kalipso’. The LH Mean variable was characterized by the values of 172.97 for ‘Polinka’, 188.15 for ‘Emper’, and 195.12 for ‘Kalipso’. The values of the XH Mean were equal to 91.56 for ‘Polinka’, 111.65 for ‘Emper’, 121.46 for ‘Kalipso’. The determined BH Mean values were equal to 84.21 for ‘Polinka’, 105.05 for ‘Emper’, and 111.12 for ‘Kalipso’.
In the next steps of the analysis, the models were built based on the textures selected from individual color channels from the color spaces RGB, Lab, and XYZ, using two selected classifiers (QDA and LDA) and providing the most satisfactory results. Among the individual color channels from the color space RGB (Table 2), the highest average accuracy, equal to 94.67%, was obtained in the case of the model built based on the textures selected from images converted to the color channel G, using the QDA classifier. The stones ‘Emper’, ‘Kalipso’, and ‘Polinka’ were discriminated with very high accuracies up to 96%, 97%, and 91%, respectively. The values of the other metrics were the highest for ‘Kalipso’, were equal to 0.990 for the precision, were 0.970 for the MCC, and were 0.980 for the F-measure. For the analysis performed for the color channel G and the LDA classifier, the accuracies were lower, reaching 90.67% in the case of average accuracy, and 88% for ‘Emper’, 95% for ‘Kalipso’, and 89% for ‘Polinka’. The results for the other performance metrics were also the highest for the ‘Kalipso’ plum stones (with the precision at 0.950, the MCC at 0.925, and the F-measure at 0.950). Slightly lower results were observed for the models developed based on the textures selected from channel B. The average accuracies were equal to 93.33% in the case of the QDA classifier and 90.67% for the LDA classifier. The stones, ‘Kalipso’, were discriminated with the highest performance metrics. In the case of the textures from the color channel R, the average accuracy reached 90.67% for the QDA and 88% for the LDA classifier. The Kappa statistic was in the range of 0.82 to 0.92, with the mean absolute error from 0.0921 to 0.0373 and the root mean squared error from 0.2350 to 0.1747. The lowest values were obtained for the model developed based on the selected image textures from the color channel R using the LDA algorithm. The highest values were determined in the case of the color channel G and QDA.
The metrics of the discrimination analysis performed for the color channels L, a, and b from the color space Lab are presented in Table 3. The plum stones were distinguished with lower average accuracies in the range of 79.67% (75% for ‘Emper’, 85% for ‘Kalipso’, 79% for ‘Polinka’) for color channel b and the LDA classifier to 93.67% (94% for ‘Emper’, 93% for ‘Kalipso’, 94% for ‘Polinka’) for color channel L and the QDA classifier. In the case of the model built for textures from the color channels L using the LDA classifier, the average accuracy was quite high and reached 93.33%. For textures selected from color channel a, the average accuracy was equal to 88.67% for both the QDA and LDA classifiers. The highest Precision equal to 0.979 was found for the ‘Kalipso’, the color channels L and QDA. The highest MCC (0.941) and F-measure (0.961) were determined for the ‘Kalipso’, the color channels L and LDA. The model built for textures selected from the color channels L using QDA was characterized by the highest Kappa statistic (0.905) and the lowest mean absolute error (0.0423). The lowest root mean squared error was observed for the color channels L and LDA. Whereas the highest mean absolute error (0.1575, LDA) and root mean squared error (0.3142, QDA), as well as the lowest Kappa statistic (0.695, LDA), were found in the case of classification performed based on textures selected from color channel b.
In the case of models built for individual color channels from color space XYZ (Table 4), the cultivar discrimination of plum stones reached 92% for channel X and the QDA classifier. For the stones ‘Emper’ and ’Kalipso’, the discrimination accuracy was equal to 95%, and for the class ‘Polinka’, the accuracy reached 86%. In the case of the LDA classifier, the cultivar discrimination of the plum stones based on the textures selected from the color channel X was characterized by an average accuracy of 88.67%. The models developed using the textures selected from images from the color channel Y provided average accuracies of up to 90% and 89.67% for the QDA and LDA classifiers, respectively, whereas the average accuracies for the models built based on the textures selected from the color channel Z were equal to 89% (QDA) and 87.67% (LDA). The most satisfactory precision (0.990MCC (0.955) and F-measure (0.969) were obtained for the ‘Kalipso’ color channel X and QDA. The Kappa statistic (0.88) was the highest, and the values of the mean absolute error (0.0561) and root mean squared error (0.2063) were the lowest in the case of the model built for the textures selected from the color channel X using QDA. In the case of the color channel Z and LDA, the Kappa statistic, equal to 0.815, was the lowest, and the root mean squared error of 0.2650 was the highest. The highest mean absolute error equal to 0.0924 was observed for the color channel X and LDA.

4. Discussion

The obtained results proved the usefulness of machine learning algorithms to discriminate the plum stone cultivars based on selected image texture parameters. The machine learning algorithms were also successively applied to discriminate the stones or pits of other species in previous studies, which confirms the usefulness of this approach. For example, in the case of sour cherry pits, machine learning was used for the discrimination based on geometric parameters, reaching the average accuracy of 96% for two cultivars and 75% for four cultivars for the logistic classifier [31]. The discrimination accuracy of two cultivars of peach stone equal to 100% based on seed textures was observed for the BayesNet algorithm [32]. The selected machine learning algorithms allowed, also, for the successful discrimination of two different cultivars of sweet cherry pits were based on selected textures (accuracy of 100%) and combined selected textures and geometric features (100%) for the BayesNet, logistic classifier, multi-class classifier, PART, LMT, as well as the geometric features (99%) for the BayesNet and LMT. Three sweet cherry cultivars were discriminated with the average accuracies of 95% for selected textures and the LMT classifier, 93% for selected geometric features and the LMT classifier, and 98% for combined textures and geometric features and the logistic classifier [33]. The average discrimination accuracy of 96.25% was obtained for four cultivars of sour cherry pits for the models built based on texture parameters using the multilayer perceptron classifier and 100% for two cultivars for all the applied algorithms (BayesNet, multilayer perceptron, multi-class classifier, and ‘Random Forest’) [34]. In the case of the discrimination of plum kernels using models developed using textures and machine learning algorithms, the average accuracy reached 98% for the set of textures selected from the color space Lab and the KStar algorithm [35]. The developed models can be of great practical use. They may allow the detection of adulteration in a set of stones and the identification of a cultivar of unknown cases. The prediction of the classes of examined objects using the constructed classifiers is the aim of the classification analysis. It can be useful for both binary and multiclass classifications. The categorization of future objects can be performed using their known vectors of features included in the training data set with the known correct classifications. Classification methods may be used for the categorization to classify new objects automatically [36]. The discriminative models can model the posterior probabilities. A large training set may allow the tuning of the parameters of an adaptive model using a machine learning approach. Training the model enables the identification of new cases included in a test set [37]. It is important to train the model correctly using as many cases as possible to recognize the cultivar of unknown cases. Therefore, future research may be expanded to other cultivars and other species of stone fruit to evaluate the diversity and identify and confirm the authenticity of the stone cultivar and species based on texture, as well as color and geometric features.

5. Conclusions

The application of machine learning allowed us to obtain satisfactory results with the use of a non-destructive, inexpensive, and objective approach. The average accuracy of the discrimination of plum stones belonging to the cultivars ‘Emper’, ‘Kalipso’, and ‘Polinka’ reached 96.67%. This result was obtained for the model, including the selected textures extracted from the images from all the color channels R, G, B, L, a, b, X, Y, and Z. This proved that it is possible to distinguish the cultivars of fruit stone with a very high probability using image textures and machine learning algorithms. Future research may be expanded to other species and cultivars of stone fruit. An increase of correctness and, also, other features, such as color and geometric features, can be included in the discriminative models. These models can be useful in practice to evaluate the diversity and identify and confirm the authenticity of the stone cultivar.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Manco, R.; Basile, B.; Capuozzo, C.; Scognamiglio, P.; Forlani, M.; Rao, R.; Corrado, G. Molecular and Phenotypic Diversity of Traditional European Plum (Prunus domestica L.) Germplasm of Southern Italy. Sustainability 2019, 11, 4112. [Google Scholar] [CrossRef] [Green Version]
  2. Lammerich, S.; Kunz, A.; Damerow, L.; Blanke, M. Mechanical Crop Load Management (CLM) Improves Fruit Quality and Reduces Fruit Drop and Alternate Bearing in European Plum (Prunus domestica L.). Horticulturae 2020, 6, 52. [Google Scholar] [CrossRef]
  3. Navarro-Hoyos, M.; Arnáez-Serrano, E.; Quesada-Mora, S.; Azofeifa-Cordero, G.; Wilhelm-Romero, K.; Quirós-Fallas, M.I.; Alvarado-Corella, D.; Vargas-Huertas, F.; Sánchez-Kopper, A. Polyphenolic QTOF-ESI MS Characterization and the Antioxidant and Cytotoxic Activities of Prunus domestica Commercial Cultivars from Costa Rica. Molecules 2021, 26, 6493. [Google Scholar] [CrossRef]
  4. Panahirad, S.; Naghshiband-Hassani, R.; Bergin, S.; Katam, R.; Mahna, N. Improvement of Postharvest Quality of Plum (Prunus domestica L.) Using Polysaccharide-Based Edible Coatings. Plants 2020, 9, 1148. [Google Scholar] [CrossRef]
  5. Nogueira, G.F.; Leme, B.d.O.; Santos, G.R.S.d.; Silva, J.V.d.; Nascimento, P.B.; Soares, C.T.; Fakhouri, F.M.; de Oliveira, R.A. Edible Films and Coatings Formulated with Arrowroot Starch as a Non-Conventional Starch Source for Plums Packaging. Polysaccharides 2021, 2, 373–386. [Google Scholar] [CrossRef]
  6. Silvan, J.M.; Michalska-Ciechanowska, A.; Martinez-Rodriguez, A.J. Modulation of Antibacterial, Antioxidant, and Anti-Inflammatory Properties by Drying of Prunus domestica L. Plum Juice Extracts. Microorganisms 2020, 8, 119. [Google Scholar] [CrossRef] [Green Version]
  7. Vitalis, F.; Tjandra Nugraha, D.; Aouadi, B.; Aguinaga Bósquez, J.P.; Bodor, Z.; Zaukuu, J.-L.Z.; Kocsis, T.; Zsom-Muha, V.; Gillay, Z.; Kovacs, Z. Detection of Monilia Contamination in Plum and Plum Juice with NIR Spectroscopy and Electronic Tongue. Chemosensors 2021, 9, 355. [Google Scholar] [CrossRef]
  8. Hong, Y.; Wang, Z.; Barrow, C.J.; Dunshea, F.R.; Suleria, H.A.R. High-Throughput Screening and Characterization of Phenolic Compounds in Stone Fruits Waste by LC-ESI-QTOF-MS/MS and Their Potential Antioxidant Activities. Antioxidants 2021, 10, 234. [Google Scholar] [CrossRef]
  9. Górnaś, P.; Rudzińska, M.; Soliven, A. Industrial by-products of plum Prunus domestica L. and Prunus cerasifera Ehrh. as potential biodiesel feedstock: Impact of variety. Ind. Crops Prod. 2017, 100, 77–84. [Google Scholar] [CrossRef]
  10. González-García, E.; Marina, M.L.; García, M.C. Plum (Prunus Domestica L.) by-product as a new and cheap source of bioactive peptides: Extraction method and peptides characterization. J. Funct. Foods 2014, 11, 428–437. [Google Scholar] [CrossRef]
  11. Plainfossé, H.; Burger, P.; Verger-Dubois, G.; Azoulay, S.; Fernandez, X. Design Methodology for the Development of a New Cosmetic Active Based on Prunus domestica L. Leaves Extract. Cosmetics 2019, 6, 8. [Google Scholar] [CrossRef] [Green Version]
  12. Li, C.; Pei, J.; Xiong, X.; Xue, F. Encapsulation of Grapefruit Essential Oil in Emulsion-Based Edible Film Prepared by Plum (Pruni Domesticae Semen) Seed Protein Isolate and Gum Acacia Conjugates. Coatings 2020, 10, 784. [Google Scholar] [CrossRef]
  13. Savic, I.; Savic Gajic, I.; Gajic, D. Physico-Chemical Properties and Oxidative Stability of Fixed Oil from Plum Seeds (Prunus domestica Linn.). Biomolecules 2020, 10, 294. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Koklu, M.; Cinar, I.; Taspinar, Y.S. Classification of rice varieties with deep learning methods. Comput. Electron. Agric. 2021, 187, 106285. [Google Scholar] [CrossRef]
  15. Liakos, K.G.; Busato, P.; Moshou, D.; Pearson, S.; Bochtis, D. Machine Learning in Agriculture: A Review. Sensors 2018, 18, 2674. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  16. Rehman, T.U.; Mahmud, M.S.; Chang, Y.K.; Jin, J.; Shin, J. Current and future applications of statistical machine learning algorithms for agricultural machine vision systems. Comput. Electron. Agric. 2019, 156, 585–605. [Google Scholar] [CrossRef]
  17. Sarker, I.H. Machine Learning: Algorithms, Real-World Applications and Research Directions. SN Comput. Sci. 2021, 2, 160. [Google Scholar] [CrossRef]
  18. Benos, L.; Tagarakis, A.C.; Dolias, G.; Berruto, R.; Kateris, D.; Bochtis, D. Machine Learning in Agriculture: A Comprehensive Updated Review. Sensors 2021, 21, 3758. [Google Scholar] [CrossRef]
  19. Ropelewska, E. The use of seed texture features for discriminating different cultivars of stored apples. J. Stored Prod. Res. 2020, 88, 101668. [Google Scholar] [CrossRef]
  20. Sabanci, K.; Aslan, M.F.; Ropelewska, E.; Unlersen, M.F. A convolutional neural network-based comparative study for pepper seed classification: Analysis of selected deep features with support vector machine. J. Food Process Eng. 2021, e13955. [Google Scholar] [CrossRef]
  21. Sabanci, K.; Akkaya, M. Classification of Different Wheat Varieties by Using Data Mining Algorithms. IJISAE 2016, 4, 40. [Google Scholar] [CrossRef] [Green Version]
  22. Aslan, M.F.; Sabanci, K.; Durdu, A. Different wheat species classifier application of ANN and ELM. J. Multidiscip. Eng. Sci. Technol. 2017, 4, 8194–8198. [Google Scholar]
  23. Sabanci, K. Detection of sunn pest-damaged wheat grains using artificial bee colony optimization-based artificial intelligence techniques. J. Sci. Food Agric. 2020, 100, 817–824. [Google Scholar] [CrossRef] [PubMed]
  24. Moreira, G.; Magalhães, S.A.; Pinho, T.; dos Santos, F.N.; Cunha, M. Benchmark of Deep Learning and a Proposed HSV Colour Space Models for the Detection and Classification of Greenhouse Tomato. Agronomy 2022, 12, 356. [Google Scholar] [CrossRef]
  25. Sadrnia, H.; Rajabipour, A.; Jafary, A.; Javadi, A.; Mostofi, Y. Classification and analysis of fruit shapes in long type watermelon using image processing. Int. J. Agric. Biol. 2007, 9, 68–70. [Google Scholar]
  26. Koklu, M.; Unlersen, M.F.; Ozkan, I.A.; Aslan, M.F.; Sabanci, K. A CNN-SVM study based on selected deep features for grapevine leaves classification. Measurement 2022, 188, 110425. [Google Scholar] [CrossRef]
  27. Szczypinski, P.M.; Strzelecki, M.; Materka, A.; Klepaczko, A. MaZda—A software package for image texture analysis. Comput. Meth. Prog. Biomed. 2009, 94, 66–76. [Google Scholar] [CrossRef]
  28. Bouckaert, R.R.; Frank, E.; Hall, M.; Kirkby, R.; Reutemann, P.; Seewald, A.; Scuse, D. WEKA Manual for Version 3-9-1; The University of Waikato: Hamilton, New Zealand, 2016. [Google Scholar]
  29. Frank, E.; Hall, M.A.; Witten, I.H. The WEKA Workbench. Online Appendix for Data Mining: Practical Machine Learning Tools and Techniques, Morgan Kaufmann, 4th Ed. 2016. Available online: https://www.cs.waikato.ac.nz/ml/weka/Witten_et_al_2016_appendix.pdf (accessed on 14 February 2022).
  30. Witten, I.H.; Frank, E. Data mining. In Practical Machine Learning Tools and Techniques, 2nd ed.; Elsevier: San Francisco, CA, USA, 2005. [Google Scholar]
  31. Ropelewska, E.; Sabanci, K.; Aslan, M.F. Discriminative Power of Geometric Parameters of Different Cultivars of Sour Cherry Pits Determined Using Machine Learning. Agriculture 2021, 11, 1212. [Google Scholar] [CrossRef]
  32. Ropelewska, E.; Rutkowski, K.P. Differentiation of peach cultivars by image analysis based on the skin, flesh, stone and seed textures. Eur. Food Res. Technol. 2021, 247, 2371–2377. [Google Scholar] [CrossRef]
  33. Ropelewska, E. The Application of Machine Learning for Cultivar Discrimination of Sweet Cherry Endocarp. Agriculture 2021, 11, 6. [Google Scholar] [CrossRef]
  34. Ropelewska, E. Classification of the pits of different sour cherry cultivars based on the surface textural features. J. Saudi Soc. Agric. Sci. 2021, 20, 52–57. [Google Scholar] [CrossRef]
  35. Ropelewska, E.; Cai, X.; Zhang, Z.; Sabanci, K.; Aslan, M.F. Benchmarking Machine Learning Approaches to Evaluate the Cultivar Differentiation of Plum (Prunus domestica L.) Kernels. Agriculture 2022, 12, 285. [Google Scholar] [CrossRef]
  36. Harman, R. Multivariate Statistical Analysis, Selected Lecture Notes. Available online: http://www.iam.fmph.uniba.sk/ospm/Harman/VSAp.pdf (accessed on 9 January 2022).
  37. Bishop, C.M. Pattern Recognition and Machine Learning; Information Science and Statistics Series; Jordan, M., Kleinberg, J., Schölkopf, B., Eds.; Springer Science and Business Media, LLC: New York, NY, USA, 2006. [Google Scholar]
Figure 1. The scheme procedure for the processing of acquired plum stone images using the MaZda software.
Figure 1. The scheme procedure for the processing of acquired plum stone images using the MaZda software.
Agronomy 12 00762 g001
Figure 2. The plum stone images converted to different color channels.
Figure 2. The plum stone images converted to different color channels.
Agronomy 12 00762 g002
Figure 3. The steps for plum stone cultivar discrimination using the WEKA machine learning software.
Figure 3. The steps for plum stone cultivar discrimination using the WEKA machine learning software.
Agronomy 12 00762 g003
Figure 4. The mean values of selected textures from color channels G, L, X, and B of plum stone images; SEM—standard error of the mean.
Figure 4. The mean values of selected textures from color channels G, L, X, and B of plum stone images; SEM—standard error of the mean.
Agronomy 12 00762 g004
Table 1. The confusion matrices, average accuracies, and values of precision, MCC, F-measure, Kappa statistic, mean absolute error, and root mean squared error of discrimination of plum stones belonging to different cultivars based on models including textures selected from color channels R, G, B, L, a, b, X, Y, and Z.
Table 1. The confusion matrices, average accuracies, and values of precision, MCC, F-measure, Kappa statistic, mean absolute error, and root mean squared error of discrimination of plum stones belonging to different cultivars based on models including textures selected from color channels R, G, B, L, a, b, X, Y, and Z.
ClassifierPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionMCCF-MeasureKappa StatisticMean Absolute ErrorRoot Mean Squared Error
‘Emper’‘Kalipso’‘Polinka’
Lazy.
IBk
9730‘Emper’96.670.9330.9260.9510.950.02470.1369
3970‘Kalipso’0.9700.9550.970
4096‘Polinka’1.0000.9700.980
Functions.
QDA
9613‘Emper’95.330.9060.8970.9320.930.0310.1756
3970‘Kalipso’0.9900.9700.980
7093‘Polinka’0.9690.9250.949
Functions.
LDA
9316‘Emper’950.9300.8950.9300.9250.03780.1692
2980‘Kalipso’0.9800.9700.980
5194‘Polinka’0.9400.9100.940
Trees.
Random Forest
9325‘Emper’94.670.9120.8810.9210.920.11360.1918
1990‘Kalipso’0.9800.9780.985
8092‘Polinka’0.9480.9020.934
MCC—Matthews Correlation Coefficient.
Table 2. The results of cultivar discrimination of plum stones based on textures selected from individual color channels R, G, and B.
Table 2. The results of cultivar discrimination of plum stones based on textures selected from individual color channels R, G, and B.
ClassifierPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionMCCF-MeasureKappa StatisticMean Absolute ErrorRoot Mean Squared Error
‘Emper’‘Kalipso’‘Polinka’
Color channel R
Functions.
QDA
8857‘Emper’90.670.8630.8060.8710.860.06170.2302
4942‘Kalipso’0.9490.9170.945
10090‘Polinka’0.9090.8570.905
Functions.
LDA
86113‘Emper’880.8040.7430.8310.820.09210.2350
3970‘Kalipso’0.8900.8920.928
18181‘Polinka’0.9640.8350.880
Color channel G
Functions.
QDA
9613‘Emper’94.670.8890.8840.9230.920.03730.1747
3970‘Kalipso’0.9900.9700.980
9091‘Polinka’0.9680.9100.938
Functions.
LDA
8848‘Emper’90.670.8540.7990.8670.860.07100.2103
5950‘Kalipso’0.9500.9250.950
10189‘Polinka’0.9180.8570.904
Color channel B
Functions.
QDA
9613‘Emper’93.330.8570.8580.9060.900.04890.2012
4960‘Kalipso’0.9900.9620.975
12088‘Polinka’0.9670.8870.921
Functions.
LDA
83710‘Emper’90.670.8830.7880.8560.860.07000.2126
3970‘Kalipso’0.9330.9260.951
8092‘Polinka’0.9020.8660.911
MCC—Matthews Correlation Coefficient.
Table 3. The metrics of cultivar discrimination of plum stones based on textures selected from individual color channels L, a, b.
Table 3. The metrics of cultivar discrimination of plum stones based on textures selected from individual color channels L, a, b.
ClassifierPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionMCCF-MeasureKappa StatisticMean Absolute ErrorRoot Mean Squared Error
‘Emper’‘Kalipso’‘Polinka’
Color channel L
functions.
QDA
9424‘Emper’93.670.8790.8610.9080.9050.04230.1933
7930‘Kalipso’0.9790.9320.954
6094‘Polinka’0.9590.9250.949
functions.
LDA
8956‘Emper’93.330.9180.8570.9040.900.05870.1884
2980‘Kalipso’0.9420.9410.961
6193‘Polinka’0.9390.9020.935
Color channel a
functions.
QDA
8749‘Emper’88.670.8130.7580.8410.830.07970.2432
10891‘Kalipso’0.9570.8870.922
10090‘Polinka’0.9000.8500.900
functions.
LDA
8893‘Emper’88.670.8300.7790.8540.830.10340.2376
5950‘Kalipso’0.8800.8690.913
13483‘Polinka’0.9650.8500.892
Color channel b
functions.
QDA
8974‘Emper’810.7120.6790.7910.7150.12510.3142
13852‘Kalipso’0.8500.7750.850
23869‘Polinka’0.9200.7190.789
functions.
LDA
751213‘Emper’79.670.8150.6800.7810.6950.15750.2967
8857‘Kalipso’0.7800.7150.813
91279‘Polinka’0.7980.6920.794
MCC—Matthews Correlation Coefficient.
Table 4. The cultivar discrimination of plum stones based on textures selected from individual color channels X, Y, and Z.
Table 4. The cultivar discrimination of plum stones based on textures selected from individual color channels X, Y, and Z.
ClassifierPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionMCCF-MeasureKappa StatisticMean Absolute ErrorRoot Mean Squared Error
‘Emper’‘Kalipso’‘Polinka’
Color channel X
Functions.
QDA
9514‘Emper’920.8330.8300.8880.880.05610.2063
5950‘Kalipso’0.9900.9550.969
14086‘Polinka’0.9560.8640.905
Functions.
LDA
8587‘Emper’88.670.8250.7550.8370.830.09240.2335
7930‘Kalipso’0.9120.8810.921
11188‘Polinka’0.9260.8560.903
Color channel Y
Functions.
QDA
9028‘Emper’900.8180.7830.8570.850.06830.2267
7930‘Kalipso’0.9790.9320.954
13087‘Polinka’0.9160.8410.892
Functions.
LDA
8389‘Emper’89.670.8560.7660.8430.8450.08560.2340
5950‘Kalipso’0.9220.9030.936
9091‘Polinka’0.9100.8650.910
Color channel Z
Functions.
QDA
84610‘Emper’890.8320.7530.8360.8350.07700.2198
7930‘Kalipso’0.9390.9020.935
10090‘Polinka’0.9000.8500.900
Functions.
LDA
9136‘Emper’87.670.7650.7420.8310.8150.07840.2650
8920‘Kalipso’0.9680.9170.944
20080‘Polinka’0.9300.8030.860
MCC—Matthews Correlation Coefficient.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Ropelewska, E. Diversity of Plum Stones Based on Image Texture Parameters and Machine Learning Algorithms. Agronomy 2022, 12, 762. https://0-doi-org.brum.beds.ac.uk/10.3390/agronomy12040762

AMA Style

Ropelewska E. Diversity of Plum Stones Based on Image Texture Parameters and Machine Learning Algorithms. Agronomy. 2022; 12(4):762. https://0-doi-org.brum.beds.ac.uk/10.3390/agronomy12040762

Chicago/Turabian Style

Ropelewska, Ewa. 2022. "Diversity of Plum Stones Based on Image Texture Parameters and Machine Learning Algorithms" Agronomy 12, no. 4: 762. https://0-doi-org.brum.beds.ac.uk/10.3390/agronomy12040762

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop