Next Article in Journal
Quality Evaluation of Wild and Cultivated Asparagus: A Comparison between Raw and Steamed Spears
Previous Article in Journal
Quality Variation of the Moldovan Origanum vulgare L. ssp. vulgare L. and Origanum vulgare L. ssp. hirtum (Link) Ietsw. Varieties in Drought Conditions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Discriminative Power of Geometric Parameters of Different Cultivars of Sour Cherry Pits Determined Using Machine Learning

1
Fruit and Vegetable Storage and Processing Department, The National Institute of Horticultural Research, Konstytucji 3 Maja 1/3, 96-100 Skierniewice, Poland
2
Department of Electrical and Electronics Engineering, Karamanoglu Mehmetbey University, Karaman 70100, Turkey
*
Author to whom correspondence should be addressed.
Agriculture 2021, 11(12), 1212; https://doi.org/10.3390/agriculture11121212
Submission received: 7 October 2021 / Revised: 18 November 2021 / Accepted: 30 November 2021 / Published: 2 December 2021

Abstract

:
The aim of this study was to develop models based on linear dimensions or shape factors, and the sets of combined linear dimensions and shape factors for discrimination of sour cherry pits of different cultivars (‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, ‘Kelleris’). The geometric parameters were calculated using image processing. The pits of different sour cherry cultivars statistically significantly differed in terms of selected dimensions and shape factors. The discriminative models built based on linear dimensions produced average accuracies of up to 95% for distinguishing the pit cultivars in the case of ‘Nefris’ vs. ‘Kelleris’ and 72% for all four cultivars. The average accuracies for the discriminative models built based on shape factors were up to 95% for the ‘Nefris’ and ‘Kelleris’ pits and 73% for four cultivars. The models combining the linear dimensions and shape factors produced accuracies reaching 96% for the ‘Nefris’ vs. ‘Kelleris’ pits and 75% for all cultivars. The geometric parameters with high discriminative power may be used for distinguishing different cultivars of sour cherry pits. It can be of great importance for practical applications. It may allow avoiding the adulteration and mixing of different cultivars.

1. Introduction

Sour (tart) cherry (Prunus cerasus L.) is one of the two main species from the Prunus genus, besides sweet cherry (Prunus avium L.), with fruits globally traded. These fruit crops have been used by humans since 5000–4000 BCE, which was determined based on cherry pits from archaeological sites. Nowadays, there are many sour cherry cultivars. Due to the health benefits of cherries, tree crop cultivation should increase, and processing technology should be improved [1]. The cherry fruit has low caloric content and significant amounts of nutrients and bioactive components, e.g., polyphenols, fiber, vitamin C, carotenoids, potassium, as well as melatonin, serotonin, and tryptophan. A small number of sour cherries is consumed fresh. Up to 97% of fruits are processed mainly for cooking or baking [2]. Before processing, cherries are usually accurately pitted, as the unintended pits in processed cherry products may be a major concern for consumers (potential for injury) and processors (litigation) [3]. The pit of cherry fruit accounts for 6.30% by weight or even 7–15% of the whole fruit and it consists of the shell (75–80%) and kernel (20–25%) [4,5]. The very hard shell contains sclerenchyma and fiber matters. The kernel contains dietary proteins and fiber, and it has antimicrobial and antioxidant activities. The kernels may be used for the production of oils for the pharmaceutical, perfume and cosmetic industries or the production of biodiesel [4]. Additionally, cherry pit biomass may be potentially used for conversion into biochar for water remediation. This biomass may be also cofired with coal for the generation of electricity. The cherry pit biochar may be applied as catalyst supports, alkaline-functionalized gas adsorbents, electrode materials, or soil amendments for greenhouse crop production [6,7,8,9,10,11]. However, pits are still an important waste disposal problem for the processing industry [4]. The traditional waste disposal should be replaced by greener ways of cherry pit biomass application [11].
Depending on the extraction procedure and roasting process, the nutrients may pass from the sour cherry kernels into the oil at different percentages [12]. The sour cherry cultivar may also influence the oil content of the kernel that is about 17–36% [5]. The cultivar of cherry kernel also has a great effect on lipophilic bioactive compounds, e.g., sterols, essential fatty acids, tocopherols, tocochromanols, squalene, carotenoids [5,13]. Due to the dependence of the chemical properties of sour cherry kernels on the cultivar, correct cultivar recognition may be important in practice. The processing of cherry kernels may require a uniform sample of kernels with the same characteristics. Some cultivars with certain chemical properties may be more desirable for processing than others. Therefore, there may be a need for authentication to avoid adulteration and mixing different cultivars.
The application of machine learning may be useful for plant research. Machine learning as a sub-class of artificial intelligence is an important topic in the computer field. Currently, researchers strive to increase the precision of algorithms and the intelligence of machines. Learning became a significant part of machines. Due to computer vision, which is a domain of machine learning, machines can be trained for processing, analyzing, and recognizing visual data [14]. Machine learning is intended to enable machines to learn using the available data and make predictions. The learning of computers automatically by themselves without human intervention may be important for precise prediction [15]. The prediction models developed using machine learning and artificial intelligence can provide promising and accurate results. The models based on artificial intelligence can learn from existing data and then predict even nonlinear phenomena related to, e.g., prediction of food production, crop yield, or identification of the number of immature fruits [16]. The application of machine learning in modern agriculture is important due to the increasing call for food, the necessity for increasing the effectiveness of agricultural practices and decreasing the environmental burden. Machine learning ensures an increase in computational power compared to conventional techniques of data processing, which can be incapable of extracting all necessary information from field data and thus meeting the growing demands of smart farming [17]. Machine learning focused on the detection of disease, species, and weeds in crops, the prediction of crop yield and soil parameters, and the classification of crop images to evaluate the plant quality and yield can be one of the key components of the agricultural revolution [18].
In the case of the seed industry, machine learning may be important for the production, correct cultivar identification, identification of contaminations, and quality control. The use of machine vision techniques can result in more accurate and faster classification results compared to the manual inspection performed by specialists based on the color and morphological features of seeds [19]. Machine learning caused significant advances in seed research by providing decision-making support and facilitating the development of robust approaches in the seed industry [20]. The usefulness of the application of machine learning for seed classification was reported in the available literature. The machine learning models were built based on various image features. In the case of cultivar discrimination of fruit seeds or pits and stones, the high efficiency of models based on texture parameters was reported for pepper seeds [21], apple seeds [22], peach seeds and stones [23], sour cherry pits [24], and sweet cherry pits [25]. Furthermore, the geometric features proved to be useful for the pit or stone discrimination for different cultivars of apricot [26], plum [27,28,29], olive [30], jujube [31], and sweet cherry [25]. However, in the present study, extensive research using dozens of geometric parameters, including linear dimensions and shape factors, was performed for the first time to discriminate sour cherry pits ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, ‘Kelleris’ using different classifiers (machine learning algorithms). The innovative models based on the sets of selected linear dimensions, shape factors, and combined linear dimensions and shape factors were developed. This approach to distinguishing cultivars of sour cherry pits is original.
The aim of this study was to develop discriminative models based on geometric features including linear dimensions and, separately, shape factors, as well as the combination of linear dimensions and shape factors for the discrimination of the sour cherry pits of different cultivars. The discriminative power of geometric parameters for distinguishing the pairs of cultivars and all four cultivars was compared.

2. Materials and Methods

2.1. Materials

The pits of sour cherries ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ were used in the research. The cherries were collected from the Experimental Orchard of the National Institute of Horticultural Research in Dąbrowice near Skierniewice (Poland). The pits were manually extracted from the fruits. For each cultivar, ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, ‘Kelleris’, two hundred pits were sampled, washed, cleaned and air-dried.

2.2. Image Analysis

The pits were imaged using a flatbed scanner. The sour cherry pits were scanned on a black background at the 1200 dpi resolution and the pit images were saved in TIFF. The images of sour cherry pits were analyzed with the use of Mazda software (Łódź University of Technology, Institute of Electronics, Poland) [32]. For each pit, the region of interest (ROI) including the whole pit was determined. A caliper image was used for the calibration. Then, for each pit with overlaid ROI, the geometric parameters were computed. Among the linear dimensions, the following features were determined: length (L); width (S); length of the skeletonized object (Lsz); area of circumscribing ellipse on the object (FE); maximal length of the ellipse axis on the object (LmaxE); minimal length of the ellipse axis on the object (LminE); area of circumscribing circle (Fd2); radius of circumscribing circle (D2); profile specific perimeter (Ul); Martin’s maximal radius (Mmax); Martin’s minimal radius (Mmin); vertical Feret diameter (Fv); convex perimeter (Uw); object boundary specific perimeter (Ug); equivalent circular area diameter (Spol); total object specific area (Ft); horizontal Feret diameter (Fh); maximal Feret diameter (Fmax); minimal Feret diameter (Fmin); Martin’s average radius (Maver). The calculated shape factors included: elliptic shape factor (W1); circular shape factor (W2); circularity (W3); folding factor (W4); mean thickness factor (W5); elongation and irregularity ratio (W7); rectangular aspect ratio (W8); area ratio (W9); radius ratio (W10); diameter range (W11); roundness ((4 π F)/(π Smax2)) (W12); roundness (Smax/F) (W13); roundness (F/Smax3) (W14); roundness (4F/(π Smin Smax)) (W15); standard deviation of all radii (SigR); Haralick ratio (RH); Blair–Bliss ratio (RB); Malinowska ratio (RM); Feret ratio (Fh/Fv) (RF); Feret ratio (Fmax/Fmin) (RFf); circularity (Rc1/Rc2) (Rc); circularity (2√(F/π)) (Rc1); circularity (Ug/π) (Rc2).

2.3. Statistical Analysis

The mean values of the linear dimensions and shape factors of the pits of sour cherries ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ were compared to determine the differences in parameters between sour cherry cultivars. The STATISTICA (StatSoft Inc., Tulsa, OK, USA) software program was used at a significance level of p ≤ 0.05. The normality of the distribution was checked using Kolmogorov–Smirnov, Lilliefors and Shapiro–Wilk tests. The Newman–Keuls test was used for the comparison of the means. The homogenous groups of sour cherry pits had no statistically significant differences in the geometric parameters and were indicated by the same letters in columns. The separate groups in terms of linear dimensions or shape factors with statistically significant differences were indicated by different letters in columns.
The usefulness of geometric parameters including linear dimensions and shape factors for distinguishing the pits of sour cherries belonging to different cultivars was analyzed using the WEKA (Machine Learning Group, University of Waikato) application [33]. In the first step of the analysis, the discriminative models were built based on linear dimensions. In the next step, the models based on shape factors were developed. Then, the discriminative models were built based on datasets of the combined linear dimensions and shape factors. The discriminative models were developed separately for each pair of cultivars and all four cultivars. The attribute selection to choose the parameters with the highest discriminative power was carried out using the Best First with the correlation-based feature selection (CFS) subset evaluator, the Ranker method with the Info Gain attribute evaluator, the Ranker method with the OneR attribute evaluator, the Genetic Search method with the CFS subset evaluator. The criterion for evaluating the usefulness of datasets selected with the use of search methods was the highest correctness of discrimination. However, a great reduction in the number of parameters decreased the correctness of the discrimination and analyzes were performed with the exclusion of only a few attributes. The datasets were manually split into a training (70%) and test set (30%). The application of a separate test set that was not used for training ensured the objectivity of the results. The discrimination was performed using the classifiers (machine learning algorithms): NaiveBayes, BayesNet (from the group of Bayes), JRip, PART (Rules), J48, RandomTree (decision trees), Logistic, MultilayerPerceptron (Functions), MultiClassClassifier, FilteredClassifier (Meta), and IBk, KStar (Lazy) [34]. Based on preliminary observations, the highest classification accuracy for discriminative models was found for the Logistic method and the results obtained for this classifier are shown in this paper. The results are presented as confusion matrices and average accuracies (rounded to integers), as well as the values of the true positive (TP) rate, precision, F-measure, receiver operating characteristic (ROC) area and precision–recall (PRC) area calculated using the Weka application based on the formulas:
TP Rate = TP/(TP + FN)
Precision = TP/(TP + FP)
F-Measure = 2 × ((Precision × Recall)/(Precision + Recall))
Recall = TP/(TP + FN)
where TP is true positive; FP is false positive; FN is false negative.

3. Results and Discussion

The linear dimensions of ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ cherry pits were compared to determine the differences in the mean values between cultivars (Table 1). All four pit cultivars were different in the terms of their basic linear dimensions, such as length (L) and width (S). Each cultivar formed a separate homogenous group. The ‘Kelleris’ pits were characterized by the highest mean values of the parameter L equal to 12.14 mm. Subsequently, the length of the ‘Nefris’, ‘Łutówka’, and ‘Debreceni botermo’ pits was 11.80 mm, 11.54 mm, and 11.33 mm, respectively. The mean value of parameter S was the highest for the ‘Nefris’ pits (10.49 mm), followed by ‘Debreceni botermo’ (10.09 mm), ‘Łutówka’ (9.87 mm), and ‘Kelleris’ (9.49 mm). The four homogenous groups were also determined in the case of the length of the skeletonized object (Lsz), Martin’s minimal radius (Mmin), and minimal Feret diameter (Fmin). In the case of these parameters, the ‘Nefris’ pits were characterized by the highest values (Lsz—174.71 mm, Mmin—4.92 mm, Fmin—10.29 mm) and the ‘Kelleris’ pits had the lowest values (Lsz—125.55 mm, Mmin—4.45 mm, Fmin—9.32 mm). In the case of many parameters (Uw, Ug, Spol, Ft, Fh, Maver), the ‘Debreceni botermo’, ‘Łutówka’, and ‘Kelleris’ pits were in one homogenous group and the ‘Nefris’ pits formed the second homogenous group with a statistically significantly different mean value.
The mean values of the shape factors of ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ cherry pits are presented in Table 2. In terms of some parameters, such as mean thickness factor (W5), compactness (W6), area ratio (W9), roundness (W12) and (W14), Malinowska ratio (RM), and circularity (Rc), the pits were statistically significantly different, and each cultivar formed a separate homogenous group. For one parameter, Feret ratio (RF), the pits belonging to all cultivars were in one homogenous group with no statistically significant differences between the mean values. In the case of most shape factors, elliptic shape factor (W1), circular shape factor (W2), circularity (W3), elongation and irregularity ratio (W7), rectangular aspect ratio (W8), radius ratio (W10), diameter range (W11), roundness (W13) and (W15), standard deviation of all radii (SigR), Haralick ratio (RH), Blair–Bliss ratio (RB), and Feret ratio (RFf), three homogenous groups were formed, and in most cases (W7, W10, W11, W13, SigR, RH, RFf), the ‘Debreceni botermo’ and ‘Łutówka’ pits were in one group.
In the first step of the discriminant analysis, the cherry pits were compared in pairs including two different cultivars. The results of the discrimination based on selected linear dimensions are presented in Table 3. The highest average accuracy of 95% was determined in the case of distinguishing between ‘Nefris’ and ‘Kelleris’ pits. The confusion matrix revealed that 95% of the pits belonging to ‘Nefris’ were correctly included in the class ‘Nefris’ and 5% incorrectly assigned to the class ‘Kelleris’, whereas 94% of ‘Kelleris’ pits were correctly included in the class ‘Kelleris’ and 6% were incorrectly included in the class ‘Nefris’. For these pit cultivars, the values of the true positive (TP) rate (‘Nefris’—0.95, ‘Kelleris’—0.94), precision (‘Nefris’—0.94, ‘Kelleris’—0.96), F-measure (‘Nefris’—0.94, ‘Kelleris’—0.95), ROC (Receiver Operating Characteristic) Area (‘Nefris’—0.97, ‘Kelleris’—0.97) and precision–recall (PRC) area (‘Nefris’—0.95, ‘Kelleris’—0.95) were the highest. It may indicate that the ‘Nefris’ and ‘Kelleris’ pits were the most different in terms of linear dimensions. It confirmed the results of the comparison of the mean values of linear dimensions (Table 1) that indicated that for most parameters, the ‘Nefris’ and ‘Kelleris’ pits were not in one homogenous group and in some cases formed two of the most distant groups. The lowest average accuracies were observed for the discrimination of the pits of cherry ‘Łutówka’ vs. ‘Nefris’ (78%) and ‘Debreceni botermo’ vs. ‘Łutówka’ (84%). In these cases, the linear dimensions had the lowest discriminative power. The ‘Łutówka’ and ‘Nefris’ pits, as well as those of ‘Debreceni botermo’ and ‘Łutówka’ were the most similar in terms of length. The difference in length between the ‘Łutówka’ and ‘Nefris’ pits was 0.26 mm and the difference between the ‘Debreceni botermo’ and ‘Łutówka’ pits was equal to 0.21 mm (Table 1). In the case of other pairs of cherry pits, an average accuracy of 90% was found for distinguishing ‘Debreceni botermo’ vs. ‘Kelleris’, 87% for ‘Debreceni botermo’ vs. ‘Nefris’ and ‘Łutówka’ vs. ‘Kelleris’ (Table 3).
The results of discrimination of the pairs of pits of cherry ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, ‘Kelleris’ based on shape factors are shown in Table 4. The tendency was similar to the results of discriminative models built based on linear dimensions (Table 3). In both cases, the ‘Nefris’ and ‘Kelleris’ pits were characterized by the highest average discrimination accuracy of 95% (Table 3 and Table 4). The sour cherry pits of ‘Łutówka’ vs. ‘Nefris’ (78%) (Table 3 and Table 4) and ‘Debreceni botermo’ vs. ‘Łutówka’ (84% (Table 3), 85% (Table 4)) had the lowest average accuracies. The other discriminative models built based on shape factors produced average accuracies of 92% for ‘Debreceni botermo’ vs. ‘Kelleris’ pits, 88% for ‘Debreceni botermo’ vs. ‘Nefris’ pits, 87% for ‘Łutówka’ vs. ‘Kelleris’ pits (Table 4). It indicated that the accuracies for models built based on shape factors (Table 4) were slightly higher than models built based on linear dimensions (Table 3).
The accuracies of discrimination based on selected combined linear dimensions and shape factors (Table 5) were higher than for the discrimination performed with shape factors (Table 4) and linear dimensions (Table 3). In the case of models built based on sets of combined linear dimensions and shape factors (Table 5), the average accuracy reached 96% for distinguishing ‘Nefris’ and ‘Kelleris’. It is 1% higher than for the discrimination of the ‘Nefris’ and ‘Kelleris’ pits for models built based on linear dimensions (95%, Table 3) and shape factors (95%, Table 4). In addition, the lowest accuracy of 79%, determined based on combined linear dimensions and shape factors for ‘Łutówka’ vs. ‘Nefris’ pits (Table 5), was 1% higher than for the model based on linear dimensions (78%, Table 3) and shape factors (78%, Table 4) for the discrimination of the ‘Łutówka’ and ‘Nefris’ pits. Furthermore, the discrimination accuracies for all other pairs of cherry pits based on combined linear dimensions and shape factors (Table 5) increased and were equal to 86% for ‘Debreceni botermo’ vs. ‘Łutówka’, 89% for ‘Debreceni botermo’ vs. ‘Nefris’, 93% for ‘Debreceni botermo’ vs. ‘Kelleris’, and 90% for ‘Łutówka’ vs. ‘Kelleris’.
The performance of the discrimination for all four cultivars was compared for the models built separately for linear dimensions, shape factors and combined linear dimensions and shape factors (Table 6). The average accuracy of 75% was the highest for discriminative models including combined linear dimensions and shape factors. In this analysis, the pits ‘Debreceni botermo’ and ‘Kelleris’ were characterized by an accuracy of 82%. The correctness of 76% was determined for the pits ‘Nefris’ and 59% for the pits ‘Łutówka’. The least incorrectly classified cases were between the pits ‘Nefris’ and ‘Kelleris’, and the most incorrectly classified cases were between the pits ‘Łutówka’ and ‘Nefris’. The discriminative models built based on shape factors produced an accuracy of 73%. The lowest average accuracy of discrimination of four cherry cultivars was observed for models built based on linear dimensions (72%). It indicated that combined linear dimensions and shape factors had the highest discriminative power for distinguishing the cherry pits belonging to different cultivars, and the discriminative power of linear dimensions was the lowest.
The results of the studies revealed the usefulness of the geometric parameters for the discrimination of different cultivars of sour cherry pits. Both linear dimensions and shape factors had a high discriminative power. However, the models built based on combined linear dimensions and shape factors provided the highest results, equal to 96%, for the discrimination of two pit cultivars and 75% for four pit cultivars. The results obtained by Ropelewska [24] indicated that the textures had even higher discriminative power for the discrimination of the pits of different sour cherry cultivars. The pairs of cultivars were discriminated with an average accuracy of up to 100%, whereas, for the discrimination of four cultivars, the correctness of up to 96.25% was achieved. Ropelewska [25] reported that for sweet cherry pits as well, the discrimination accuracies for models built based on textural features (up to 100% for two pit cultivars and 95% for three cultivars) were higher than for geometric parameters (up to 99% for two cultivars and 95% for three cultivars). Additionally, Ropelewska [25] found that the models combining geometric and textural parameters provided the highest accuracies of up to 100% for two cultivars and 98% for three pit cultivars. The results of cultivar discrimination of sour cherry pits based on geometric parameters presented in this paper did not reach 100%. This may indicate some limitations of the developed models that make it impossible to distinguish ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ sour cherry pits based on geometric features with 100% accuracy. It prompts us to carry out further research on sour cherry pits to build discriminative models combining selected geometric and other features. However, the contribution of this study to distinguishing sour cherry pit cultivars using machine learning is significant. The linear dimensions and shape factors with the highest discriminative power were indicated. The mean values of these selected parameters differed the most among the cultivars. The next stage of the research may involve combining these geometric features and selected textures in the model to increase the discrimination accuracy. The developed models based on geometric and textural features could be more successfully applied in practice to detect falsification of sour cherry pit cultivars.

4. Conclusions

The geometric parameters such as linear dimensions and shape factors proved to be useful for the discrimination of sour cherry pits belonging to different cultivars. Higher accuracies were observed when distinguishing pairs of pit cultivars than four cultivars. The discriminative models built based on sets of linear dimensions or shape factors and combined linear dimensions and shape factors provided very high results. However, the highest discriminative power for distinguishing the different cultivars of sour cherry pits was observed for combined linear dimensions and shape factors, whereas the linear dimensions were characterized by the lowest discriminative power. The present study was the first extensive approach to classify sour cherry pits belonging to different cultivars using innovative models built based on geometric features by machine learning algorithms. Such models developed using the sets of selected linear dimensions, shape factors and combined linear dimensions and shape factors for the discrimination of ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ sour cherry pits were not found in the available literature. The results of the discrimination based on geometric features were high, comparable to the results obtained for models built using texture parameters reported in previous studies. Demonstrating the usefulness of geometric features to distinguish sour cherry pit cultivars can have practical importance to authenticate pit samples and avoid mixing different cultivars with different chemical properties. However, the limitation of the proposed approach may be the accuracy of the discrimination, which was less than 100%. Therefore, future research may focus on developing the models combining the geometric and texture features to increase their discrimination accuracy.

Author Contributions

Conceptualization, E.R.; methodology, E.R.; software, E.R.; validation, E.R., K.S. and M.F.A.; formal analysis, E.R.; investigation, E.R.; resources, E.R.; data curation, E.R.; writing—original draft preparation, E.R., K.S. and M.F.A.; writing—review and editing, E.R., K.S., and M.F.A.; visualization, E.R.; supervision, E.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 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. Blando, F.; Oomah, B.D. Sweet and sour cherries: Origin, distribution, nutritional composition and health benefits. Trends Food Sci. Technol. 2019, 86, 517–529. [Google Scholar] [CrossRef]
  2. Kelley, D.S.; Adkins, Y.; Laugero, K.D. A Review of the Health Benefits of Cherries. Nutrients 2018, 10, 368. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  3. Liang, P.S.; Moscetti, R.; Massantini, R.; Light, D.; Haff, R.P. Detection of pits and pit fragments in fresh cherries using near infrared spectroscopy. J. Near Infrared Spectrosc. 2017, 25, 196–202. [Google Scholar] [CrossRef]
  4. Mousa, A.M.; Ghanem, H.G. Mechanical Behavior of Apricot and Cherry Pits under Compression Loading. J. Soil Sci. Agric. Eng. 2019, 10, 867–872. [Google Scholar] [CrossRef] [Green Version]
  5. Yılmaz, F.M.; Görgüç, A.; Karaaslan, M.; Vardin, H.; Ersus Bilek, S.; Uygun, Ö.; Bircan, C. Sour Cherry By-products: Compositions, Functional Properties and Recovery Potentials—A Review. Crit. Rev. Food Sci. Nutr. 2019, 59, 3549–3563. [Google Scholar] [CrossRef] [PubMed]
  6. Savova, D.; Apak, E.; Ekinci, E.; Yardim, F.; Petrov, N.; Budinova, T.; Razvigorova, M.; Minkova, V. Biomass conversion to carbon adsorbents and gas. Biomass Bioenergy 2001, 21, 133–142. [Google Scholar] [CrossRef]
  7. Yangali, P.; Celaya, A.M.; Goldfarb, J.L. Co-pyrolysis reaction rates and activation energies of West Virginia coal and cherry pit blends. J. Anal. Appl. Pyrolysis 2014, 108, 203–211. [Google Scholar] [CrossRef]
  8. Barber, S.T.; Yin, J.; Draper, K.; Trabold, T.A. Closing nutrient cycles with biochar-from filtration to fertilizer. J. Clean. Prod. 2018, 197, 1597–1606. [Google Scholar] [CrossRef]
  9. Hernández-Rentero, C.; Córdoba, R.; Moreno, N.; Caballero, A.; Morales, J.; Olivares-Marín, M.; Gómez-Serrano, V. Low-cost disordered carbons for Li/S batteries: A high-performance carbon with dual porosity derived from cherry pits. Nano Res. 2018, 11, 89–100. [Google Scholar] [CrossRef]
  10. Li, X.; Tie, K.; Li, Z.; Guo, Y.; Liu, Z.; Liu, X.; Liu, X.; Feng, H.; Zhao, X.S. Nitrogen-doped hierarchically porous carbon derived from cherry stone as a catalyst support for purification of terephthalic acid. Appl. Surf. Sci. 2018, 447, 57–62. [Google Scholar] [CrossRef]
  11. Pollard, Z.A.; Goldfarb, J.L. Valorization of cherry pits: Great Lakes agro-industrial waste to mediate Great Lakes water quality. Environ. Pollut. 2021, 270, 116073. [Google Scholar] [CrossRef]
  12. Yılmaz, C.; Gökmen, V. Compositional characteristics of sour cherry kernel and its oil as influenced by different extraction and roasting conditions. Ind. Crops Prod. 2013, 49, 130–135. [Google Scholar] [CrossRef]
  13. Górnaś, P.; Rudzińska, M.; Raczyk, M.; Mišina, I.; Soliven, A.; Seglina, D. Composition of bioactive compounds in kernel oils recovered from sour cherry (Prunus cerasus L.) by-products: Impact of the cultivar on potential applications. Ind. Crops Prod. 2016, 82, 44–50. [Google Scholar] [CrossRef]
  14. Sharma, N.; Sharma, R.; Jindal, N. Machine Learning and Deep Learning Applications—A Vision. Glob. Transit. Proc. 2021, 2, 24–28. [Google Scholar] [CrossRef]
  15. Asongo, A.I.; Barma, M.; Muazu, H.G. Machine Learning Techniques, methods and Algorithms: Conceptual and Practical Insights. Int. J. Eng. Res. Appl. 2021, 11, 55–64. [Google Scholar]
  16. Nosratabadi, S.; Ardabili, S.; Lakner, Z.; Mako, C.; Mosavi, A. Prediction of Food Production Using Machine Learning Algorithms of Multilayer Perceptron and ANFIS. Agriculture 2021, 11, 408. [Google Scholar] [CrossRef]
  17. 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]
  18. Sharma, A.; Jain, A.; Gupta, P.; Chowdary, V. Machine learning applications for precision agriculture: A comprehensive review. IEEE Access 2020, 9, 4843–4873. [Google Scholar] [CrossRef]
  19. Ajaz, R.H.; Hussain, L. Seed Classification using Machine Learning Techniques. J. Multidiscip. Eng. Sci. Technol. (JMEST) 2015, 2, 1098–1102. [Google Scholar]
  20. de Medeiros, A.D.; da Silva, L.J.; Ribeiro, J.P.O.; Ferreira, K.C.; Rosas, J.T.F.; Santos, A.A.; da Silva, C.B. Machine learning for seed quality classification: An advanced approach using merger data from FT-NIR spectroscopy and X-ray imaging. Sensors 2020, 20, 4319. [Google Scholar] [CrossRef]
  21. Ropelewska, E.; Szwejda-Grzybowska, J. A comparative analysis of the discrimination of pepper (Capsicum annuum L.) based on the cross-section and seed textures determined using image processing. J. Food Process Eng. 2021, 44, 13694. [Google Scholar] [CrossRef]
  22. 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]
  23. 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]
  24. 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]
  25. Ropelewska, E. The Application of Machine Learning for Cultivar Discrimination of Sweet Cherry Endocarp. Agriculture 2021, 11, 6. [Google Scholar] [CrossRef]
  26. Milatović, D.; Ðurović, D.; Milivojević, J. Stone and kernel characteristics as elements in identification of apricot cultivars. Voćarstvo 2006, 40, 311–319. [Google Scholar]
  27. Depypere, L.; Chaerle, P.; Mijnsbrugge, K.V.; Goetghebeur, P. Stony endocarp dimension and shape variation in Prunus section Prunus. Ann. Bot. 2007, 100, 1585–1597. [Google Scholar] [CrossRef] [PubMed]
  28. Sarigu, M.; Grillo, O.; Lo Bianco, M.; Ucchesu, M.; d’Hallewin, G.; Loi, M.C.; Venora, G.; Bacchetta, G. Phenotypic identification of plum varieties (Prunus domestica L.) by endocarps morpho-colorimetric and textural descriptors. Comput. Electron. Agric. 2017, 136, 25–30. [Google Scholar] [CrossRef]
  29. Frigau, L.; Antoch, J.; Bacchetta, G.; Sarigu, M.; Ucchesu, M.; Zaratin Alves, C.; Mola, F. Statistical Approach to the Morphological Classification of Prunus sp. Seeds. Plant Biosyst. 2020, 154, 877–886. [Google Scholar] [CrossRef]
  30. Beyaz, A.; Öztürk, R. Identification of olive cultivars using image processing techniques. Turk. J. Agric. For. 2016, 40, 671–683. [Google Scholar] [CrossRef]
  31. Kim, S.H.; Nam, J.I.; Kim, C.W. Analysis of Qualitative and Quantitative Traits to Identify Different Chinese Jujube Cultivars. Plant Breed. Biotechnol. 2019, 7, 175–185. [Google Scholar] [CrossRef]
  32. 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]
  33. 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]
  34. Witten, I.H.; Frank, E. Data mining. In Practical Machine Learning Tools and Techniques, 2nd ed.; Elsevier: San Francisco, CA, USA, 2005. [Google Scholar]
Table 1. Comparison of the mean values of linear dimensions of ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ cherry pits.
Table 1. Comparison of the mean values of linear dimensions of ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ cherry pits.
ParameterCultivar
‘Debreceni Botermo’‘Łutówka’‘Nefris’‘Kelleris’
L (mm)11.33 a11.54 b11.80 c12.14 d
S (mm)10.09 c9.87 b10.49 d9.49 a
Lsz (mm)141.68 b150.88 c174.71 d125.55 a
FE (mm2)116.98 a114.59 a119.62 b121.63 b
LmaxE (mm)12.42 a12.23 b12.42 a12.68 c
LminE (mm)11.96 a11.90 a12.23 b12.18 b
Fd2 (mm2)120.41 a117.07 b121.14 a125.20 c
D2 (mm)6.18 a6.10 b6.20 a6.30 c
Ul (mm)100.37 a101.16 a105.06 b100.83 a
Mmax (mm)6.27 a6.21 b6.31 a6.39 c
Mmin (mm)4.67 c4.58 b4.92 d4.45 a
Fv (mm)10.69 bc10.44 a10.86 c10.59 ab
Uw (mm)34.44 a34.19 a35.60 b34.52 a
Ug (mm)100.45 a101.54 a105.19 b101.50 a
Spol (mm)10.70 a10.62 a11.12 b10.67 a
Ft (mm2)90.20 a88.74 a97.31 b89.57 a
Fh (mm)11.09 a11.13 a11.59 b11.23 a
Fmax (mm)12.34 a12.15 b12.35 a12.58 c
Fmin (mm)9.78 c9.63 b10.29 d9.32 a
Maver (mm)5.36 a5.32 a5.56 b5.35 a
L—length; S—width; Lsz—length of the skeletonized object; FE—area of circumscribing ellipse on the object; LmaxE—maximal length of the ellipse axis on the object; LminE—minimal length of the ellipse axis on the object; Fd2—area of circumscribing circle; D2—radius of circumscribing circle; Ul—profile specific perimeter; Mmax—Martin’s maximal radius; Mmin—Martin’s minimal radius; Fv—vertical Feret diameter; Uw—convex perimeter; Ug—object boundary specific perimeter; Spolequivalent circular area diameter; Ft—total object specific area; Fh—horizontal Feret diameter; Fmax—maximal Feret diameter; Fmin—minimal Feret diameter; Maver—Martin’s average radius. a,b,c,d—the same letters in rows denote no statistical differences between samples.
Table 2. Comparison of the mean values of shape factors of ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ cherry pits.
Table 2. Comparison of the mean values of shape factors of ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ cherry pits.
ParameterCultivar
‘Debreceni Botermo’‘Łutówka’‘Nefris’‘Kelleris’
W1 (-)1.04 a1.03 b1.02 c1.05 a
W2 (-)0.11 c0.11 b0.11 a0.11 a
W3 (-)111.91 b115.58 c113.67 a113.83 a
W4 (-)2.91 a2.96 b2.95 b2.92 a
W5 (-)0.67 c0.61 b0.57 a0.75 d
W6 (-)0.09 b0.09 d0.09 a0.09 c
W7 (-)1.30 a1.30 a1.24 b1.38 c
W8 (-)0.89 a0.86 c0.89 a0.78 b
W9 (-)1.27 a1.28 c1.27 b1.29 d
W10 (-)0.75 a0.74 a0.78 c0.70 b
W11 (-)2.57 a2.52 a2.52 b3.27 c
W12 (-)2.37 b2.41 c2.55 d2.26 a
W13 (-)0.14 a0.14 a0.13 b0.14 c
W14 (-)0.05 b0.05 c0.05 d0.04 a
W15 (-)0.95 b0.96 c0.97 a0.97 a
SigR (-)204.90 a198.94 a133.71 b322.29 c
RH (-)1.00 a1.00 a1.00 c0.99 b
RB (-)9.35 b9.28 ab9.77 c9.24 a
RM (-)10.94 a11.17 d11.04 b11.11 c
RF (-)1.05 a1.08 a1.08 a1.08 a
RFf (-)0.79 a0.79 a0.83 c0.74 b
Rc (-)0.33 d0.33 a0.33 c0.33 b
Rc1 (-)10.70 a10.62 a11.12 b10.67 a
Rc2 (-)31.97 a32.32 a33.48 b32.31 a
W1—elliptic shape factor; W2—circular shape factor; W3—circularity; W4—folding factor; W5—mean thickness factor; W6—compactness; W7—elongation and irregularity ratio; W8—rectangular aspect ratio; W9—area ratio; W10—radius ratio; W11—diameter range; W12—roundness ((4 π F)/(π Smax2)); W13—roundness (Smax/F); W14—roundness (F/Smax3); W15—roundness (4F/(π Smin Smax)); SigR—standard deviation of all radii; RH—Haralick ratio; RB—Blair–Bliss ratio; RM—Malinowska ratio; RF—Feret ratio (Fh/Fv); RFf—Feret ratio (Fmax/Fmin); Rc—circularity (Rc1/Rc2); Rc1—circularity (2√(F/π)); Rc2—circularity (Ug/π). a,b,c,d—the same letters in rows denote no statistical differences between samples.
Table 3. The discrimination performance for the pair comparison of the pits of cherry ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ based on selected linear dimensions.
Table 3. The discrimination performance for the pair comparison of the pits of cherry ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ based on selected linear dimensions.
Pair ComparisonPredicted Class (%)Actual ClassAverage Accuracy (%)TP RatePrecisionF-MeasureROC AreaPRC Area
‘Debreceni botermo’ vs. ‘Łutówka’‘Debreceni botermo’‘Łutówka’
8515‘Debreceni botermo’840.850.860.860.910.92
1684‘Łutówka’0.840.820.830.910.87
‘Debreceni botermo’ vs. ‘Nefris’‘Debreceni botermo’‘Nefris’
8713‘Debreceni botermo’870.870.900.880.930.94
1387‘Nefris’0.870.840.850.930.92
‘Debreceni botermo’ vs. ‘Kelleris’‘Debreceni botermo’‘Kelleris’
928‘Debreceni botermo’900.920.910.910.950.93
1189‘Kelleris’0.890.900.890.950.93
‘Łutówka’ vs. ‘Nefris’‘Łutówka’‘Nefris’
7822‘Łutówka’780.780.790.780.850.85
2278‘Nefris’0.780.760.770.850.82
‘Łutówka’ vs. ‘Kelleris’‘Łutówka’‘Kelleris’
8713‘Łutówka’870.870.860.870.920.91
1387‘Kelleris’0.870.870.870.920.92
‘Nefris’ vs. ‘Kelleris’‘Nefris’‘Kelleris’
955‘Nefris’950.950.940.940.970.95
694‘Kelleris’0.940.960.950.970.95
TP Rate—true positive rate; ROC Area—receiver operating characteristic area; PRC Area—precision–recall area.
Table 4. The discrimination performance for the pair comparison of the pits of cherry ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ based on selected shape factors.
Table 4. The discrimination performance for the pair comparison of the pits of cherry ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ based on selected shape factors.
Pair ComparisonPredicted Class (%)Actual ClassAverage Accuracy (%)TP RatePrecisionF-MeasureROC AreaPRC Area
‘Debreceni botermo’ vs. ‘Łutówka’‘Debreceni botermo’‘Łutówka’
8713‘Debreceni botermo’850.870.860.860.910.93
1882‘Łutówka’0.820.840.830.910.87
‘Debreceni botermo’ vs. ‘Nefris’‘Debreceni botermo’‘Nefris’
8911‘Debreceni botermo’880.890.900.900.940.93
1387‘Nefris’0.870.860.860.940.88
‘Debreceni botermo’ vs. ‘Kelleris’‘Debreceni botermo’‘Kelleris’
928‘Debreceni botermo’920.920.930.920.960.96
892‘Kelleris’0.920.900.910.960.92
‘Łutówka’ vs. ‘Nefris’‘Łutówka’‘Nefris’
7723‘Łutówka’780.770.790.780.860.86
2179‘Nefris’0.790.760.770.860.80
‘Łutówka’ vs. ‘Kelleris’‘Łutówka’‘Kelleris’
8713‘Łutówka’870.870.860.870.940.94
1387‘Kelleris’0.870.870.870.940.93
‘Nefris’ vs. ‘Kelleris’‘Nefris’‘Kelleris’
955‘Nefris’950.950.950.950.980.96
595‘Kelleris’0.950.960.950.980.97
TP Rate—true positive rate; ROC Area—receiver operating characteristic area; PRC Area—precision–recall area.
Table 5. The discrimination performance for the pair comparison of the pits of cherry ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ based on selected combined linear dimensions and shape factors.
Table 5. The discrimination performance for the pair comparison of the pits of cherry ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ based on selected combined linear dimensions and shape factors.
Pair ComparisonPredicted Class (%)Actual ClassAverage Accuracy (%)TP RatePrecisionF-MeasureROC AreaPRC Area
‘Debreceni botermo’ vs. ‘Łutówka’‘Debreceni botermo’‘Łutówka’
8713‘Debreceni botermo’860.870.880.870.920.92
1585‘Łutówka’0.850.840.850.920.89
‘Debreceni botermo’ vs. ‘Nefris’‘Debreceni botermo’‘Nefris’
8911‘Debreceni botermo’890.890.910.900.940.95
1288‘Nefris’0.880.850.870.940.90
‘Debreceni botermo’ vs. ‘Kelleris’‘Debreceni botermo’‘Kelleris’
928‘Debreceni botermo’930.920.940.930.970.97
793‘Kelleris’0.930.910.920.970.96
‘Łutówka’ vs. ‘Nefris’‘Łutówka’‘Nefris’
7921‘Łutówka’790.790.800.800.850.86
2179‘Nefris’0.790.770.780.850.79
‘Łutówka’ vs. ‘Kelleris’‘Łutówka’‘Kelleris’
9010‘Łutówka’900.900.890.900.940.92
1090‘Kelleris’0.900.900.900.940.91
‘Nefris’ vs. ‘Kelleris’‘Nefris’‘Kelleris’
964‘Nefris’960.960.960.960.990.99
496‘Kelleris’0.960.960.960.980.98
TP Rate—true positive rate; ROC Area—receiver operating characteristic area; PRC Area—precision–recall area.
Table 6. The performance of discrimination of the pits of cherry ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ based on selected geometric parameters.
Table 6. The performance of discrimination of the pits of cherry ‘Debreceni botermo’, ‘Łutówka’, ‘Nefris’, and ‘Kelleris’ based on selected geometric parameters.
Predicted Class (%)Actual Class Average Accuracy (%)TP RatePrecisionF-MeasureROC AreaPRC Area
Linear dimensions
‘Debreceni botermo’ ‘Łutówka’‘Nefris’‘Kelleris’
76978‘Debreceni botermo’720.760.760.760.910.81
13551913‘Łutówka’0.550.600.570.820.58
1117711‘Nefris’0.710.700.700.910.75
510184‘Kelleris’0.840.790.820.950.87
Shape factors
‘Debreceni botermo’ ‘Łutówka’‘Nefris’‘Kelleris’
79975‘Debreceni botermo’730.790.780.780.920.85
13542013‘Łutówka’0.540.590.560.830.60
818731‘Nefris’0.730.690.710.930.77
610084‘Kelleris’0.840.820.830.960.88
Linear dimensions + shape factors
‘Debreceni botermo’ ‘Łutówka’‘Nefris’‘Kelleris’
82675‘Debreceni botermo’750.820.820.820.930.84
9592012‘Łutówka’0.590.640.610.820.59
716761‘Nefris’0.760.700.730.930.77
710182‘Kelleris’0.820.810.810.950.88
TP Rate—true positive rate; ROC Area—receiver operating characteristic area; PRC Area—precision–recall area.
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.; 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. https://doi.org/10.3390/agriculture11121212

AMA Style

Ropelewska E, Sabanci K, Aslan MF. Discriminative Power of Geometric Parameters of Different Cultivars of Sour Cherry Pits Determined Using Machine Learning. Agriculture. 2021; 11(12):1212. https://doi.org/10.3390/agriculture11121212

Chicago/Turabian Style

Ropelewska, Ewa, Kadir Sabanci, and Muhammet Fatih Aslan. 2021. "Discriminative Power of Geometric Parameters of Different Cultivars of Sour Cherry Pits Determined Using Machine Learning" Agriculture 11, no. 12: 1212. https://doi.org/10.3390/agriculture11121212

APA Style

Ropelewska, E., Sabanci, K., & Aslan, M. F. (2021). Discriminative Power of Geometric Parameters of Different Cultivars of Sour Cherry Pits Determined Using Machine Learning. Agriculture, 11(12), 1212. https://doi.org/10.3390/agriculture11121212

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