Next Article in Journal
Stabilization Time of Running Equivalent Level LAeq for Urban Road Traffic Noise
Next Article in Special Issue
Evaluating Deep Learning Techniques for Natural Language Inference
Previous Article in Journal
Hey Max, Can You Help Me? An Intuitive Virtual Assistant for Industrial Robots
Previous Article in Special Issue
A Variable Neighbourhood Search-Based Algorithm for the Transit Route Network Design Problem
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Use of Digital Color Imaging and Machine Learning for the Evaluation of the Effects of Shade Drying and Open-Air Sun Drying on Mint Leaf Quality

1
Fruit and Vegetable Storage and Processing Department, The National Institute of Horticultural Research, 96-100 Skierniewice, Poland
2
Department of Electrical and Electronics Engineering, Karamanoglu Mehmetbey University, Karaman 70100, Turkey
*
Author to whom correspondence should be addressed.
Appl. Sci. 2023, 13(1), 206; https://doi.org/10.3390/app13010206
Submission received: 8 November 2022 / Revised: 17 December 2022 / Accepted: 21 December 2022 / Published: 23 December 2022
(This article belongs to the Special Issue Advances in Intelligent Information Systems and AI Applications)

Abstract

:
The objective of this study was to reveal the usefulness of image processing and machine learning for the non-destructive evaluation of the changes in mint leaves caused by two natural drying techniques. The effects of shade drying and open-air sun drying on the ventral side (upper surface) and dorsal side (lower surface) of leaves were compared. Texture parameters were extracted from the digital color images converted to color channels R, G, B, L, a, b, X, Y, and Z. Models based on image features selected for individual color channels were built for distinguishing mint leaves in terms of drying techniques and leaf side using machine learning algorithms from groups of Lazy, Rules, and Trees. In the case of classification of the images of the ventral side of fresh and shade-dried mint leaves, an average accuracy of 100% and values of Precision, Recall, F-Measure, and MCC of 1.000 were obtained for color channels B (KStar and J48 machine learning algorithms), a (KStar and J48), b (KStar), and Y (KStar). The effect of open-air sun drying was greater. Images of the ventral side of fresh and open-air sun-dried mint leaves were completely correctly distinguished (100% correctness) for more color channels and algorithms, such as color channels R and G (J48), B, a and b (KStar, JRip, and J48), and X and Y (KStar). The classification of the images of the dorsal side of fresh and shade-dried mint leaves provided 100% accuracy in the case of color channel B (KStar) and a (KStar, JRip, and J48). The fresh and open-air sun-dried mint leaves imaged on the dorsal side were correctly classified at an accuracy of 100% for selected textures from color channels a (KStar, JRip, J48), b (J48), and Z (J48). The developed approach may be used in practice to monitor the changes in the structure of mint leaves caused by drying in a non-destructive, objective, cost-effective, and fast manner without the need to damage the leaves.

1. Introduction

Plants commonly known as mint belong to the genus Mentha (Lamiaceae) and are of great economic importance [1]. Mint leaves can be considered an aromatic and medicinal plant material. Mint can alleviate flu, cold, fever, food poisoning, poor digestion, flatulence, motion sickness, rheumatism, hiccups, sinus and throat ailments, and earaches [2]. Consuming mint is highly desirable for its health benefits. However, this herb can only be grown for a certain period of the year. To store mint for a long time, it should be dehydrated [3]. Drying reduces the water content of the plants, inhibits microorganism development and biochemical reactions, and thus allows for preventing degradation, preserving and extending the shelf life of materials. Despite its disadvantages related to, among others, the evaporation of volatile compounds, open-air sun drying is common, mainly in places with plenty of solar radiation [4].
During open-air sun drying, plants are in an open environment directly exposed to solar radiation. This open exposure also results in direct exposure to contamination with insects, dust, or sand particles [5]. Furthermore, it causes discoloration and loss of aroma, which is important for consumers because it can reduce dehydrated-mint quality and quantity. Thermal processing results in numerous reactions affecting the hue. The Maillard reaction, degradation of chlorophyll pigment, and oxidation of ascorbic acid take place. Open-air sun drying causes browning. Furthermore, it destroys the vitamin C content, which is heat- and light-sensitive [3].
Another herb drying method that employs solar energy as a heating source is shade drying. This drying approach protects photosensitive compounds while reducing light-induced chemical reactions such as oxidation [6]. However, the drying time of shade drying is longer than that of sun drying [7]. Additionally, shade drying is a better method for drying herbs since it maintains the integrity of the trichomes [8]. Shade drying also causes less damage to the epidermal surface than sun drying [9]. Nonetheless, due to its low investment cost and high-quality dried products, shade drying, like sun drying, is still popular in rural areas and small enterprises [10].
The leaf classification can be performed based on color, shape, and texture parameters using computer vision [11]. Image processing can be used to detect leaves and extract leaf parameters useful for leaf classification using machine learning algorithms [12]. Machine learning techniques for developing Artificial Intelligence allow computers or machines to learn from experience without explicit programming. The objective of machine learning algorithms is to improve the performance of models using data [13]. Thanks to computer vision-based methods for classifying leaves, various and powerful features can be extracted from leaf images. The leaf features are easy to extract and analyze and can be used for the identification of plants. Manual identification can be vulnerable to human error. Therefore, automated system identification systems are desirable. In the case of mint leaf classification, features from the digital images of the front and back sides of leaves can be taken into account [14]. Intelligent computer models can be very effective in identifying herbs and their properties [15].
In the available literature, there is a lack of information on the presence of classification models based on textures of mint leaf images in the individual color channels R, G, B, L, a, b, X, Y, and Z, computed using image analysis techniques to monitor the effect of natural drying techniques on the changes in the structure of mint leaves. The novelty of the study is to reveal that the changes that occur after leaf drying can be distinguished with computer vision and machine learning applications. This study was aimed at comparing the effect of shade drying and open-air sun drying on the ventral side (upper surface) and dorsal side (lower surface) of mint leaves using image processing and machine learning. The reason for undertaking the research was a need for a more complete understanding of the changes occurring in the image textures of mint leaves caused by different drying techniques to acquire new knowledge and develop the procedure for the detection of these changes.
The contribution of the article is far superior to the current state of the art. The innovative nature of this study is related to the acquisition of new information, not found in the literature, on 1629 texture parameters of fresh and dried mint leaves and the selection of attributes with the highest discriminative power. The article presents a new approach to assessing changes in mint leaves caused by natural drying techniques. The leaf classification performed using models based on selected texture parameters extracted from the digital color images converted to color channels R, G, B, L, a, b, X, Y, and Z built using machine learning algorithms from groups of Lazy, Rules, and Trees is a unique approach to distinguish dried and fresh mint leaves. For the first time, the assessment of the influence of natural drying techniques on the structure of mint leaves was carried out using attributes selected from sets of 1629 image textures from different color channels. Furthermore, monitoring the degree of changes in the structure of leaves under the influence of drying without the need to damage or destroy the leaves can be a problem. The proposed approach may be a non-destructive, objective, cost-effective, and fast practical solution to this problem. Justification for tackling the problem results from insufficient data in the literature on an experimental and theoretical description of the changes in texture parameters of mint leaf images as a result of the drying. The problem addressed in this study is to reveal, with technological solutions, the textural changes caused by the drying techniques used to preserve the mint leaf for a long time. The proposed solution is to combine the power of computer vision and machine learning, as used in many different agricultural applications today [16,17]. In this way, discrimination systems with non-destructive, non-biased, high-accuracy, and autonomous capabilities can be developed. The proposed solution also does not depend on a single machine learning algorithm or a single color space of images. The robustness of the proposed approach was proven with different machine learning methods and image textures from different color spaces determined experimentally.

2. Materials and Methods

2.1. Materials

The mint plants were grown in a garden located in central Poland. The experiments were carried out in August. The plants were fully developed. The mint leaves were collected with short petioles. Two or three leaves were taken from a single branch. In total, one hundred and fifty leaves were sampled. The collection of leaves was divided into two parts. The first part of the seventy-five leaves was intended for shade drying. The remaining seventy-five leaves were subjected to open-air sun drying. Before drying, all leaves were imaged on the ventral side (upper surface) and dorsal side (lower surface).

2.2. Drying of Mint Leaves

Two drying techniques were applied. The mint leaves were subjected to shade drying and open-air sun drying. Both techniques were natural and used no dryers/dehydrators. The leaves were spread evenly over white sheets of paper placed in boxes with low side walls of about 5 cm. The leaves did not touch each other. Both shade and open-air sun drying experiments started on the same day at 11 a.m.

2.2.1. Shade Drying

The box with mint leaves was placed in a shaded place at room temperature. The leaves were turned over to the upper and lower sides every few hours. The color and structure of the leaves were controlled during the experiment. The leaves were dried for a week until they changed color and dried completely, as assessed organoleptically.

2.2.2. Open-Air Sun Drying

The experiment was carried out on a rainless, windless sunny day. The mint leaves were exposed to direct sunlight. During drying, the leaves were turned on their upper and lower sides every 15 min. When it was noticed that the leaves were beginning to curl, a metal mesh was placed over them for a while to keep the leaves flat. Drying took three hours to completely change the color of the entire leaf surface and to obtain dry leaves.

2.3. Image Analysis

One hundred and fifty fresh leaves directly after harvest were subjected to imaging on the ventral and dorsal sides. The same leaves were imaged as the seventy-five shade-dried leaves and seventy-five open-air sun-dried leaves after the drying experiments were completed. Dried mint leaves were also imaged on both sides (ventral and dorsal). Digital color imaging was performed in a dark room using a digital camera and LED (light-emitting diode) as a light source. Leaves were imaged on a white background. Each image contained five leaves. In total, the images of the following samples (classes) were acquired:
-
ventral side of seventy-five fresh mint leaves subjected to shade drying:
-
ventral side of seventy-five shade-dried mint leaves;
-
ventral side of seventy-five fresh mint leaves subjected to open-air sun drying;
-
ventral side of seventy-five open-air sun-dried mint leaves;
-
dorsal side of seventy-five fresh mint leaves subjected to shade drying;
-
dorsal side of seventy-five shade-dried mint leaves;
-
dorsal side of seventy-five fresh mint leaves subjected to open-air sun drying;
-
dorsal side of seventy-five open-air sun-dried mint leaves.
The sample images of the ventral sides of fresh and dried mint leaves are shown in Figure 1. The ventral side of fresh leaves was light green. Shade-dried leaves turned dark green. In the case of open-air sun-dried leaves, there was a clear change of color to brown as a result of drying. The exemplary leaves imaged on their dorsal side are presented in Figure 2. On the dorsal side of the leaves, all samples were lighter than on the ventral side. However, the effect of drying was similar. Shade-dried leaves changed color to darker green, whereas under the influence of open-air sun drying the leaves turned brown.
The obtained images were uploaded to a computer with programs for image processing and classification using a USB cable. After changing the image background to black and converting the images to the BMP file format, the image processing was carried out using the MaZda software (Łódź University of Technology, Institute of Electronics, Łódź, Poland) [18,19,20]. First, the mint leaf images were converted to individual color channels R, G, B, L, a, b, X, Y, and Z. The exemplary images of the ventral side (upper surface) of fresh and dried mint leaves (Figure 3) and the dorsal side (lower surface) of fresh and dried mint leaves (Figure 4) reveal the differentiation of images depending on the color channel and visible changes in leaves caused by drying. The image segmentation was performed to separate the leaves from the black background based on the pixel brightness intensity, and ROIs (regions of interest) were determined. Each ROI contained one whole mint leaf. For each ROI in each of the nine color channels, 181 texture parameters based on the histogram, gradient map, autoregressive model, run-length matrix, and co-occurrence matrix were extracted. In total, 1629 textures were determined for each leaf image.

2.4. Classification of Fresh, Shade and Open-Air Sun-dried Mint Leaves

The classification of leaf samples was performed using WEKA machine learning software (Machine Learning Group, University of Waikato) [21,22,23]. The influence of two drying techniques on the ventral and dorsal sides of mint leaves was compared. Models based on selected image features for individual color channels were built for distinguishing fresh vs. shade-dried mint leaves on the ventral side, fresh vs. open-air sun-dried mint leaves on the ventral side, fresh vs. shade-dried mint leaves on the dorsal side, and fresh vs. open-air sun-dried mint leaves on the dorsal side. First, the attribute (texture) selection was performed using the Best First algorithm with the Correlation-based Feature Selection (CFS) subset evaluator [24,25]. The attributes were selected separately from the datasets including texture parameters of images in each of color channels R, G, B, L, a, b, X, Y, and Z belonging to color spaces RGB, Lab, and XYZ. The classification analysis was performed using a test mode of 10-fold cross-validation. Various machine learning algorithms such as IBk, KStar and LWL from the group of Lazy, JRip and PART from Rules, Bayes Net and Naive Bayes from Bayes, Logistic, Multilayer Perceptron and RBF Classifier from Functions, Random Forest, J48 and LMT from Trees, and Filtered Classifier, Multi Class Classifier and Logit Boost from Meta were tested.
The methods chosen for classification are frequently used for machine learning. Any machine learning method used produces successful results if the extracted features strongly represent the target data. The physical changes caused by drying directly affect the pixel distribution in the image. For this, the texture-based extracted features are strong aids for distinguishing the drying method. In different spaces, the texture changes are also different. Some spaces show changes more clearly. For example, the green channel of the image is used in studies involving the segmentation of the retinal blood vessel, because in this channel the blood vessel is more vivid [26]. Therefore, examining the changes in texture on different channels may provide a more accurate distinction. In addition to the powerful features, the chosen classification algorithm also has a significant effect on success. Although strong features generally provide successful results, different learning methods provide different accuracy due to their methodology. In this context, extracting texture features from different channels and obtaining results with different classification algorithms makes the choice of method in this study powerful. The methodological steps of the study are shown in Figure 5. After all these steps, different result metrics and indicators showing the performance of the study are shared in the result section to show that all the experiments were done correctly. As a result, the confusion matrices with accuracies for each class, the average accuracies and values of Precision, Recall, F-Measure, and MCC (Matthews Correlation Coefficient) were determined [27,28,29,30].

3. Results

The results of the classification of fresh mint leaves and leaves dried using two natural drying techniques were obtained. The effect of shade drying and open-air sun drying on the ventral and dorsal leaf sides was assessed. The distinguishing of samples was carried out using models including textures selected separately for each color channel from color spaces RGB, Lab, and XYZ. Models were developed using different machine learning algorithms. It was found that KStar from the group of Lazy, JRip from the group of Rules, and J48 from the group of Trees were the most effective. These algorithms provided the highest average accuracies of the classification of up to 100% for the selected datasets, which meant distinguishing the samples entirely correctly. Therefore, the results obtained by the KStar, JRip and J48 algorithms were chosen to be presented in this paper.

3.1. The Effect of Shade Drying and Open-Air Sun Drying on the Ventral Side (Upper Surface) of Mint Leaves

In the case of the ventral side (upper surface) of mint leaves, the classifications were carried out to compare the structure of fresh vs. shade-dried leaves and fresh vs. open-air sun-dried leaves. The models were built separately for color channels R, G, and B from color space RGB, color channels L, a, and b from color space Lab, and color channels X, Y, and Z from color space XYZ.

3.1.1. Classification of the Images of the Ventral Side of Fresh and Shade-dried Mint Leaves

For models built based on selected textures of images in color channels R, G, and B from color space RGB, fresh and shade-dried mint leaves were classified with an average accuracy reaching 100% only in the case of color channel B and KStar and J48 machine learning algorithms (Table 1). This meant that both fresh and shade-dried leaves were completely correctly classified. Also, the results of Precision, Recall, F-Measure, and MCC (Matthews Correlation Coefficient) equal to 1.000 were the most satisfactory. In the case of color channel G, all presented algorithms (KStar, JRip, J48) provided an average accuracy of 97.5%. However, models built using KStar and JRip classified fresh leaves with an accuracy of 95% and shade-dried leaves with an accuracy of 100%. In contrast, the model developed using J48 was characterized by an accuracy of 100% for fresh leaves and 95% for shade-dried leaves. The lowest accuracies of distinguishing fresh and shade-dried mint leaves were determined for models built based on textures selected from images in color channel R. For the KStar and J48 algorithms, average accuracy reached 92.5%. The model built using JRip provided the lowest average accuracy, at 90%, and values of Precision, Recall, and F-Measure of 0.900 and MCC of 0.800 for both fresh and shade-dried classes.
In the case of individual color channels from the color space Lab (Table 2), an average accuracy of 100% and values of Precision, Recall, F-Measure, and MCC of 1.000 were obtained for color channels a (KStar and J48) and b (KStar). Selected textures belonging to these channels allowed for building models that completely and correctly distinguished fresh and shade-dried mint leaves. For color channel L, the correctness of the classification of both samples was also high, up to 97.5% for KStar and J48. The model developed using the KStar algorithm correctly classified shade-dried leaves in 100% of cases and of fresh leaves in 95%, while the remaining 5% of cases belonging to the actual class of fresh leaves were incorrectly classified as shade-dried ones. The application of J48 resulted in 100% correctness of the classification of fresh leaves and 95% for shade-dried samples.
Fresh and shade-dried mint leaves imaged on the ventral side were also classified with a correctness reaching 100% and other classification performance metrics equal to 1.000 for one color channel (Y) from color space XYZ using the KStar algorithm (Table 3). Models built based on selected textures from images in color channels X and Z produced an average accuracy of up to 97.5%. In the case of color channel X, the model built using JRip revealed accuracies of 100% and 95% for fresh and shade-dried mint leaves, respectively. For J48, shade-dried leaves were correctly distinguished from fresh ones with an accuracy of 100%, fresh samples were correctly classified as fresh in 95% of cases, and the remaining 5% of cases were classified as shade-dried leaves. For the color channel Z, fresh leaves were correctly classified in 100% of cases and shade-dried samples in 95% of cases, for KStar and JRip.

3.1.2. Classification of the Images of the Ventral Side of Fresh and Open-Air Sun-dried Mint Leaves

In the next step of classification analysis, images of the ventral side of fresh and open-air sun-dried mint leaves were compared using models based on selected textures from individual color channels. Table 4 presents the results of distinguishing samples using selected textures extracted from images in color channels R, G, and B. The obtained results were very successful. An average accuracy of 100% and values of Precision, Recall, F-Measure, and MCC of 1.000 were found in the case of each color channel as channels R and G for J48, and channel B for all KStar, JRip, and J48 algorithms. It proved the high differentiation of fresh and open-air sun-dried mint leaves in terms of selected textures belonging to color space RGB and thus the great influence of open-air sun drying on the structure of the outer surface of the mint leaves.
Very high correctness of classification of fresh and open-air sun-dried mint leaves was also obtained for color channels L, a, and b from the color space Lab (Table 5). A completely correct classification with an average accuracy of 100% was observed in the case of models built based on selected texture parameters from images in color channels a and b for all algorithms (KStar, JRip, and J48). A slightly lower average accuracy reaching 97.5% was determined for a model built using selected textures from color channels L and the J48 algorithm.
The models built using selected textures from color channels belonging to color space XYZ of images of the ventral side of leaves produced the lowest results for distinguishing fresh and open-air sun-dried mint classes (Table 6). Samples were completely correctly classified only in the case of models developed using the KStar algorithm for selected textures from color channels X and Y. For other machine learning algorithms of JRip and J48, an average accuracy of 95% was obtained for color channel X and 97.5% for color channel Y. An average accuracy of the classification of fresh and open-air sun-dried mint leaves reached 97.5% for a model including selected textures from color channel Z developed using J48.

3.2. The Effect of Shade Drying and Open-Air Sun Drying on the Dorsal Side (Lower Surface) of Mint Leaves

To assess the effect of different natural drying techniques on the structure of the dorsal side of mint leaves, various classification models were developed. In the case of both the classification of fresh vs. shade-dried mint leaves and fresh vs. open-air sun-dried leaves, models included image textures selected separately for individual color channels R, G, B, L, a, b, X, Y, and Z.

3.2.1. Classification of the Images of the Dorsal Side of Fresh and Shade-dried Mint Leaves

In the case of color channels R, G, and B from color space RGB, the images of the dorsal side of shade-dried mint leaves were distinguished from the fresh ones with an average accuracy of 75% for a model built based on selected textures from color channel G using the KStar algorithm to 100% in the case of color channel B and KStar (Table 7). For the model producing 75% correctness, fresh leaves were classified with an accuracy of 70% and shade-dried samples with an accuracy of 80%. The values of Precision, Recall, and F-Measure were in the range of 0.700–0.800, and MCC was equal to 0.503 for both classes. These results are relatively low compared with the 100% accuracy and values of other metrics of 1.000 for one model including selected texture parameters extracted from images in color channel B. For color channel G, average accuracy reached 82.5% (75% for fresh leaves and 90% for shade-dried leaves) for the J48 algorithm. For models built for selected textures from images in color channel R, average accuracy ranged from 77.5% (KStar) to 90% (JRip).
The higher accuracies of the classification of images of the dorsal side of fresh and shade-dried mint leaves were obtained for the models built based on textures selected separately for individual color channels of Lab space (Table 8). It indicated that the differences in the image textures were more noticeable. All applied machine learning algorithms provided 100% accuracy for textures from images in color channel a. Slightly lower average accuracies reaching 97.5% (KStar, J48) and 95% (J48) were found in the case of the color channels b and L, respectively.
In the case of models including selected image textures from color channels X, Y, and Z, a completely correct classification was not observed (Table 9). The differentiation of the structure of the dorsal side of fresh and shade-dried mint leaves allowed for distinguishing both samples at an average accuracy of up to 97.5% (100% for fresh and 95% for dried leaves) for color channel X and J48 as well as color channel Z and KStar and J48. An average accuracy of 95% was determined for models developed based on selected textures of images in color channel Y using all algorithms.

3.2.2. Classification of the Images of the Dorsal Side of Fresh and Open-Air Sun-dried Mint Leaves

Very successful classifications were performed for the fresh and open-air sun-dried mint leaves using models built based on selected textures of the dorsal leaf side images converted to color channels R, G, and B (Table 10). Average accuracy reached 97.5% for models developed using the KStar, JRip, and J48 algorithms based on features of images in color channel B. All the other models produced an average accuracy of 92.5% in the case of color channels R and G.
In the case of the color space Lab, images of the dorsal side of fresh and open-air sun-dried mint leaves turned out to be completely different in terms of selected textures from color channels a (KStar, JRip, J48) and b (J48) (Table 11). The accuracies were equal to 100% and the values of Precision, Recall, F-Measure, and MCC were 1.000 for both classes. In the case of the color channel L, the correctness of classification was slightly lower, reaching 97.5% for the model built using the JRip machine learning algorithm.
The classification of fresh and open-air sun-dried mint leaves based on image textures of the dorsal leaf side revealed 100% correctness in the case of color channel Z and the J48 algorithm (Table 12). For channel Z, other algorithms (KStar, JRip) also produced a high average accuracy of 97.5%. Furthermore, an average accuracy of 97.5% was found for models built using KStar and J48 based on selected textures of images in color channel Y. In the case of individual color channels from color space XYZ, the lowest correctness of distinguishing fresh and open-air sun-dried mint leaves based on image textures of the dorsal leaf side was determined for color channel X. Average accuracy reached 95% for a model developed using J48.
Texture features from images in color channels R, G, B, L, a, b, X, Y, and Z and artificial intelligence involving models built by traditional machine learning algorithms proved to be useful for distinguishing fresh and shade drying or open-air sun-dried mint leaves. Machine learning-based algorithms are considered an innovative approach to advancing food drying technology. Machine learning algorithms have a superior capacity to predict specific trends and patterns using large volumes of data. Machine learning-based strategies are used, among others, for drying modeling to determine the optimal drying condition to improve product quality and reduce energy consumption. Machine learning models can also be used for modeling to predict food properties during drying [31]. Machine learning found application for the monitoring of different drying processes employed in industry, for example, of convective drying, osmotic-convective drying, microwave drying, infrared drying, microwave- and infrared-assisted drying, fluidized bed drying, spouted bed drying, spray drying, rotary drying, deep bed drying, renewable drying, and freeze drying [13,32]. In the case of mint, machine learning was also used to investigate drying behavior and assess drying kinetics [33]. Additionally, machine learning algorithms were successfully applied to discriminate between different mint samples [34]. Our research has set new directions for the application of machine learning in the drying and discrimination of mint. The research carried out with the use of traditional machine learning models may be expanded in the future to include deep learning to distinguish fresh and dried mint leaves.

4. Conclusions

This study aimed to analyze the changes caused by two different drying methods on mint leaves. Because these changes cause significant changes in the nutrient content of the leaf, it is important to provide drying with the least loss and to develop additional techniques to do so. In order to clearly observe the effect of drying, the detectability of these changes with computer vision and machine learning algorithms is adopted as a hypothesis. The most obvious changes as a result of drying occur in leaf textures, and therefore texture analysis is performed for computer vision. In experimental studies, different image spaces and different machine learning techniques are used to prove that the proposed method is scientifically sound.
The combination of digital color imaging and machine learning proved to be an effective approach to the evaluation of the effect of natural drying techniques on mint leaf structure. Models built based on selected textures of images in color channels R, G, B, L, a, b, X, Y, and Z were useful for monitoring the changes in the ventral side (upper surface) and dorsal side (lower surface) of mint leaves caused by shade drying and open-air sun drying. Fresh and dried leaves were distinguished with an accuracy of up to 100% using selected machine learning algorithms from groups of Lazy, Rules, and Trees. The obtained results were promising, and the developed procedure involving image features and machine learning could be used to evaluate the quality of mint leaves dried by other techniques. When the accuracy rates obtained as a result of experimental studies are examined, it is seen that the discrimination accuracy in all steps is generally above 90%. Compliance and consistency of all results indicate the accuracy and robustness of the results. Besides traditional machine learning, deep learning as well could be applied in further studies for the classification of fresh and dried leaves. For the deep learning application, data with more samples will be created in the future, and experiments will be carried out with different deep learning models on this data. Different drying techniques will also be included in the dataset.

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.; 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. Park, Y.J.; Baek, S.-A.; Choi, Y.; Kim, J.K.; Park, S.U. Metabolic profiling of nine Mentha species and prediction of their antioxidant properties using chemometrics. Molecules 2019, 24, 258. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  2. Kishk, S.S.; El-Reheem, A.; Solaf, S.; ElGamal, R.A. Experimental and mathematical modeling study for solar drying of mint. Misr J. Agric. Eng. 2018, 35, 1327–1344. [Google Scholar] [CrossRef]
  3. Rehman, S.; Rubab, S. Solar radiation impact on drying parameters of mint (Mentha spicata L.). Int. J. Health Sci. 2022, 6, 3235–3246. [Google Scholar] [CrossRef]
  4. Ismail, O.; Beyribey, B. Open-air sun drying in thrace region of greece: The experimental investigation of thyme and mint leaves. Lat. Am. Appl. Res. 2013, 43, 137–142. [Google Scholar]
  5. Sallam, Y.; Aly, M.; Nassar, A.; Mohamed, E. Solar drying of whole mint plant under natural and forced convection. J. Adv. Res. 2015, 6, 171–178. [Google Scholar] [CrossRef] [Green Version]
  6. Thamkaew, G.; Sjöholm, I.; Galindo, F.G. A review of drying methods for improving the quality of dried herbs. Crit. Rev. Food Sci. Nutr. 2021, 61, 1763–1786. [Google Scholar] [CrossRef]
  7. Pirbalouti, A.G.; Mahdad, E.; Craker, L. Effects of drying methods on qualitative and quantitative properties of essential oil of two basil landraces. Food Chem. 2013, 141, 2440–2449. [Google Scholar] [CrossRef]
  8. Ebadi, M.T.; Azizi, M.; Sefidkon, F.; Ahmadi, N. Influence of different drying methods on drying period, essential oil content and composition of Lippia citriodora Kunth. J. Appl. Res. Med. Aromat. Plants 2015, 2, 182–187. [Google Scholar] [CrossRef]
  9. Alara, O.R.; Abdurahman, N.H.; Mudalip, S.K.A.; Olalere, O.A. Mathematical modeling of thin layer drying using open sun and shade of Vernonia amygdalina leaves. Agric. Nat. Resour. 2018, 52, 53–58. [Google Scholar] [CrossRef]
  10. Janjai, S.; Bala, B. Solar drying technology. Food Eng. Rev. 2012, 4, 16–54. [Google Scholar] [CrossRef]
  11. Kayhan, G.; Ergun, E. Medicinal and Aromatic Plants Identification Using Machine Learning Methods. Balk. J. Electr. Comput. Eng. 2020, 8, 81–87. [Google Scholar] [CrossRef]
  12. Pushpanathan, K.; Hanafi, M.; Mashohor, S.; Fazlil Ilahi, W.F. Machine learning in medicinal plants recognition: A review. Artif. Intell. Rev. 2021, 54, 305–327. [Google Scholar] [CrossRef]
  13. Martynenko, A.; Misra, N. Machine learning in drying. Dry. Technol. 2020, 38, 596–609. [Google Scholar] [CrossRef]
  14. Naeem, S.; Ali, A.; Chesneau, C.; Tahir, M.H.; Jamal, F.; Sherwani, R.A.K.; Ul Hassan, M. The classification of medicinal plant leaves based on multispectral and texture feature using machine learning approach. Agronomy 2021, 11, 263. [Google Scholar] [CrossRef]
  15. Mookdarsanit, L.; Mookdarsanit, P. Thai Herb Identification with Medicinal Properties Using Convolutional Neural Network. Suan Sunandha Sci. Technol. J. 2019, 6, 34–40. [Google Scholar]
  16. Aslan, M.F.; Durdu, A.; Sabanci, K.; Ropelewska, E.; Gültekin, S.S. A Comprehensive Survey of the Recent Studies with UAV for Precision Agriculture in Open Fields and Greenhouses. Appl. Sci. 2022, 12, 1047. [Google Scholar] [CrossRef]
  17. Sabanci, K.; Aslan, M.F.; Ropelewska, E.; Unlersen, M.F.; Durdu, A. A Novel Convolutional-Recurrent Hybrid Network for Sunn Pest–Damaged Wheat Grain Detection. Food Anal. Methods 2022, 15, 1748–1760. [Google Scholar] [CrossRef]
  18. Strzelecki, M.; Szczypinski, P.; Materka, A.; Klepaczko, A. A software tool for automatic classification and segmentation of 2D/3D medical images. Nucl. Instrum. Methods Phys. Res. Sect. A Accel. Spectrometers Detect. Assoc. Equip. 2013, 702, 137–140. [Google Scholar] [CrossRef]
  19. Szczypinski, P.M.; Strzelecki, M.; Materka, A. Mazda-a software for texture analysis. In Proceedings of the 2007 International Symposium on Information Technology Convergence (ISITC 2007), Sori Art Center, Jeonju, Republic of Korea, 23–24 November 2007; pp. 245–249. [Google Scholar]
  20. Szczypiński, P.M.; Strzelecki, M.; Materka, A.; Klepaczko, A. MaZda—A software package for image texture analysis. Comput. Methods Programs Biomed. 2009, 94, 66–76. [Google Scholar] [CrossRef]
  21. Bouckaert, R.R.; Frank, E.; Hall, M.; Kirkby, R.; Reutemann, P.; Seewald, A.; Scuse, D. WEKA Manual for Version 3-9-1; University of Waikato: Hamilton, New Zealand, 2016. [Google Scholar]
  22. Witten, I.H.; Frank, E. Data Mining: Practical Machine Learning Tools and Techniques, 2nd ed.; Morgan Kaufmann: San Francisco, CA, USA, 2005. [Google Scholar]
  23. Witten, I.H.; Frank, E.; Hall, M.A.; Pal, C.J. Data Mining: Practical Machine Learning Tools and Techniques, 4th ed.; Elsevier Inc.: Amsterdam, The Netherlands, 2016; pp. 1–621. [Google Scholar]
  24. Hall, M.A. Correlation-Based Feature Selection for Machine Learning; The University of Waikato: Hamilton, New Zealand, 1999. [Google Scholar]
  25. Yigit, E.; Sabanci, K.; Toktas, A.; Kayabasi, A. A study on visual features of leaves in plant identification using artificial intelligence techniques. Comput. Electron. Agric. 2019, 156, 369–377. [Google Scholar] [CrossRef]
  26. Tamim, N.; Elshrkawey, M.; Abdel Azim, G.; Nassar, H. Retinal Blood Vessel Segmentation Using Hybrid Features and Multi-Layer Perceptron Neural Networks. Symmetry 2020, 12, 894. [Google Scholar] [CrossRef]
  27. Ropelewska, E. Distinguishing lacto-fermented and fresh carrot slice images using the Multilayer Perceptron neural network and other machine learning algorithms from the groups of Functions, Meta, Trees, Lazy, Bayes and Rules. Eur. Food Res. Technol. 2022, 248, 2421–2429. [Google Scholar] [CrossRef]
  28. 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, e13694. [Google Scholar] [CrossRef]
  29. Sabanci, K.; Aslan, M.F.; Ropelewska, E. Benchmarking analysis of CNN models for pits of sour cherry cultivars. Eur. Food Res. Technol. 2022, 248, 2441–2449. [Google Scholar] [CrossRef]
  30. 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. 2022, 45, e13955. [Google Scholar] [CrossRef]
  31. Khan, M.I.H.; Sablani, S.S.; Joardder, M.; Karim, M. Application of machine learning-based approach in food drying: Opportunities and challenges. Dry. Technol. 2022, 40, 1051–1067. [Google Scholar] [CrossRef]
  32. Sun, Q.; Zhang, M.; Mujumdar, A.S. Recent developments of artificial intelligence in drying of fresh food: A review. Crit. Rev. Food Sci. Nutr. 2019, 59, 2258–2275. [Google Scholar] [CrossRef]
  33. de Holanda Rosanova, A.; Maia, G.D.; Freire, F.B.; do Carmo Ferreira, M. A neural based modeling approach for drying kinetics analysis of mint branches and their fractions (leaves and stems). Adv. Chem. Eng. Sci. 2017, 7, 154–174. [Google Scholar] [CrossRef] [Green Version]
  34. Amkor, A.; Maaider, K.; El Barbri, N. Mint treatment day prediction using a multi-sensors system and machine learning algorithms. Sens. Actuators A Phys. 2021, 328, 112787. [Google Scholar] [CrossRef]
Figure 1. The images of the ventral side (upper surface) of fresh and dried mint leaves.
Figure 1. The images of the ventral side (upper surface) of fresh and dried mint leaves.
Applsci 13 00206 g001
Figure 2. The images of the dorsal side (lower surface) of fresh and dried mint leaves.
Figure 2. The images of the dorsal side (lower surface) of fresh and dried mint leaves.
Applsci 13 00206 g002
Figure 3. The images of the ventral side (upper surface) of fresh and dried mint leaves in selected color channels R, G, B, L, a, X, and Y.
Figure 3. The images of the ventral side (upper surface) of fresh and dried mint leaves in selected color channels R, G, B, L, a, X, and Y.
Applsci 13 00206 g003
Figure 4. The images of the dorsal side (lower surface) of fresh and dried mint leaves in different color channels R, G, B, L, a, X, and Y.
Figure 4. The images of the dorsal side (lower surface) of fresh and dried mint leaves in different color channels R, G, B, L, a, X, and Y.
Applsci 13 00206 g004
Figure 5. Algorithm steps applied to experimental study.
Figure 5. Algorithm steps applied to experimental study.
Applsci 13 00206 g005
Table 1. The classification of images of the ventral side of fresh and shade-dried mint leaves based on selected textures from color channels R, G, and B belonging to color space RGB.
Table 1. The classification of images of the ventral side of fresh and shade-dried mint leaves based on selected textures from color channels R, G, and B belonging to color space RGB.
AlgorithmPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionRecallF-MeasureMCC
FreshShade-Dried
Color channel R
lazy.KStar9010Fresh92.50.9470.9000.9230.851
595Shade-dried0.9050.9500.9270.851
rules.JRip9010Fresh900.9000.9000.9000.800
1090Shade-dried0.9000.9000.9000.800
trees.J489010Fresh92.50.9470.9000.9230.851
595Shade-dried0.9050.9500.9270.851
Color channel G
lazy.KStar955Fresh97.51.0000.9500.9740.951
0100Shade-dried0.9521.0000.9760.951
rules.JRip955Fresh97.51.0000.9500.9740.951
0100Shade-dried0.9521.0000.9760.951
trees.J481000Fresh97.50.9521.000 0.9760.951
595Shade-dried1.0000.9500.9740.951
Color channel B
lazy.KStar1000Fresh1001.0001.0001.0001.000
0100Shade-dried1.0001.0001.0001.000
rules.JRip955Fresh950.9500.9500.9500.900
595Shade-dried0.9500.9500.9500.900
trees.J481000Fresh1001.0001.0001.0001.000
0100Shade-dried1.0001.0001.0001.000
MCC—Matthews Correlation Coefficient.
Table 2. The results of the classification of fresh and shade-dried mint leaves imaged on the ventral side using models built based on selected textures from color channels L, a, and b from color space Lab.
Table 2. The results of the classification of fresh and shade-dried mint leaves imaged on the ventral side using models built based on selected textures from color channels L, a, and b from color space Lab.
AlgorithmPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionRecallF-MeasureMCC
FreshShade-dried
Color channel L
lazy.KStar955Fresh97.51.0000.9500.9740.951
0100Shade-dried0.9521.0000.9760.951
rules.JRip955Fresh950.9500.9500.9500.900
595Shade-dried0.9500.9500.9500.900
trees.J481000Fresh97.50.9521.0000.9760.951
595Shade-dried1.0000.9500.9740.951
Color channel a
lazy.KStar1000Fresh1001.0001.0001.0001.000
0100Shade-dried1.0001.0001.0001.000
rules.JRip955Fresh97.51.0000.9500.9740.951
0100Shade-dried0.9521.0000.9760.951
trees.J481000Fresh1001.0001.0001.0001.000
0100Shade-dried1.0001.0001.0001.000
Color channel b
lazy.KStar1000Fresh1001.0001.0001.0001.000
0100Shade-dried1.0001.0001.0001.000
rules.JRip1000Fresh97.50.9521.0000.9760.951
595Shade-dried1.0000.9500.9740.951
trees.J481000Fresh97.50.9521.0000.9760.951
595Shade-dried1.0000.9500.9740.951
MCC—Matthews Correlation Coefficient.
Table 3. The performance metrics of distinguishing images of the ventral side of fresh and shade-dried mint leaves using selected textures from color channels X, Y, and Z from color space XYZ.
Table 3. The performance metrics of distinguishing images of the ventral side of fresh and shade-dried mint leaves using selected textures from color channels X, Y, and Z from color space XYZ.
AlgorithmPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionRecallF-MeasureMCC
FreshShade-Dried
Color channel X
lazy.KStar955Fresh950.9500.9500.9500.900
595Shade-dried0.9500.9500.9500.900
rules.JRip1000Fresh97.50.9521.0000.9760.951
595Shade-dried1.0000.9500.9740.951
trees.J48955Fresh97.51.0000.9500.9740.951
0100Shade-dried0.9521.0000.9760.951
Color channel Y
lazy.KStar1000Fresh1001.0001.0001.0001.000
0100Shade-dried1.0001.0001.0001.000
rules.JRip955Fresh97.51.0000.9500.9740.951
0100Shade-dried0.9521.0000.9760.951
trees.J48955Fresh950.9500.9500.9500.900
595Shade-dried0.9500.9500.9500.900
Color channel Z
lazy.KStar1000Fresh97.50.9521.0000.9760.951
595Shade-dried1.0000.9500.9740.951
rules.JRip1000Fresh97.50.9521.0000.9760.951
595Shade-dried1.0000.9500.9740.951
trees.J48955Fresh950.9500.9500.9500.900
595Shade-dried0.9500.9500.9500.900
MCC—Matthews Correlation Coefficient.
Table 4. The distinguishing of fresh and open-air sun-dried mint leaves imaged on the ventral side based on models including selected textures from color channels R, G, and B belonging to color space RGB.
Table 4. The distinguishing of fresh and open-air sun-dried mint leaves imaged on the ventral side based on models including selected textures from color channels R, G, and B belonging to color space RGB.
AlgorithmPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionRecallF-MeasureMCC
FreshOpen-Air Sun-dried
Color channel R
lazy.KStar955Fresh950.9500.9500.9500.900
595Open-air sun-dried0.9500.9500.9500.900
rules.JRip9010Fresh92.50.9470.9000.9230.851
595Open-air sun-dried0.9050.9500.9270.851
trees.J481000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
Color channel G
lazy.KStar1000Fresh97.50.9521.0000.9760.951
595Open-air sun-dried1.0000.9500.9740.951
rules.JRip9010Fresh951.0000.9000.9470.905
0100Open-air sun-dried0.9091.0000.9520.905
trees.J481000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
Color channel B
lazy.KStar1000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
rules.JRip1000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
trees.J481000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
MCC—Matthews Correlation Coefficient.
Table 5. The classification of images of the ventral side of fresh and open-air sun-dried mint leaves using models including selected textures from color channels L, a, and b from color space Lab.
Table 5. The classification of images of the ventral side of fresh and open-air sun-dried mint leaves using models including selected textures from color channels L, a, and b from color space Lab.
AlgorithmPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionRecallF-MeasureMCC
FreshOpen-Air Sun-dried
Color channel L
lazy.KStar955Fresh950.9500.9500.9500.900
595Open-air sun-dried0.9500.9500.9500.900
rules.JRip955Fresh950.9500.9500.9500.900
595Open-air sun-dried0.9500.9500.9500.900
trees.J481000Fresh97.50.9521.0000.9760.951
595Open-air sun-dried1.0000.9500.9740.951
Color channel a
lazy.KStar1000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
rules.JRip1000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
trees.J481000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
Color channel b
lazy.KStar1000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
rules.JRip1000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
trees.J481000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
MCC—Matthews Correlation Coefficient.
Table 6. The classification performance metrics for fresh vs. open-air sun-dried mint leaves imaged on the ventral side based on models including selected textures from color channels X, Y, and Z from color space XYZ.
Table 6. The classification performance metrics for fresh vs. open-air sun-dried mint leaves imaged on the ventral side based on models including selected textures from color channels X, Y, and Z from color space XYZ.
AlgorithmPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionRecallF-MeasureMCC
FreshOpen-Air Sun-dried
Color channel X
lazy.KStar1000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
rules.JRip955Fresh950.9500.9500.9500.900
595Open-air sun-dried0.9500.9500.9500.900
trees.J48955Fresh950.9500.9500.9500.900
595Open-air sun-dried0.9500.9500.9500.900
Color channel Y
lazy.KStar1000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
rules.JRip955Fresh97.51.0000.9500.9740.951
0100Open-air sun-dried0.9521.0000.9760.951
trees.J48955Fresh97.51.0000.9500.9740.951
0100Open-air sun-dried0.9521.0000.9760.951
Color channel Z
lazy.KStar955Fresh92.50.9050.9500.9270.851
1090Open-air sun-dried0.9470.9000.9230.851
rules.JRip9010Fresh92.50.9470.9000.9230.851
595Open-air sun-dried0.9050.9500.9270.851
trees.J481000Fresh97.50.9521.0000.9760.951
595Open-air sun-dried1.0000.9500.9740.951
MCC—Matthews Correlation Coefficient.
Table 7. The performance metrics of the classification of the dorsal side of fresh and shade-dried mint leaves based on selected textures of images in color channels R, G, and B from color space RGB.
Table 7. The performance metrics of the classification of the dorsal side of fresh and shade-dried mint leaves based on selected textures of images in color channels R, G, and B from color space RGB.
AlgorithmPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionRecallF-MeasureMCC
FreshShade-Dried
Color channel R
lazy.KStar7525Fresh77.50.7890.7500.7690.551
2080Shade-dried0.7620.8000.7800.551
rules.JRip8515Fresh900.9440.8500.8950.804
595Shade-dried0.8640.9500.9050.804
trees.J488515Fresh87.50.8950.8500.8720.751
1090Shade-dried0.8570.9000.8780.751
Color channel G
lazy.KStar7030Fresh750.7780.7000.7370.503
2080Shade-dried0.7270.8000.7620.503
rules.JRip8515Fresh77.50.7390.8500.7910.556
3070Shade-dried0.8240.7000.7570.556
trees.J487525Fresh82.50.8820.7500.8110.657
1090Shade-dried0.7830.9000.8370.657
Color channel B
lazy.KStar1000Fresh1001.0001.0001.0001.000
0100Shade-dried1.0001.0001.0001.000
rules.JRip1000Fresh97.50.9521.0000.9760.951
595Shade-dried1.0000.9500.9740.951
trees.J48955Fresh97.51.0000.9500.9740.951
0100Shade-dried0.9521.0000.9760.951
MCC—Matthews Correlation Coefficient.
Table 8. The classification of the dorsal side of fresh and shade-dried mint leaves using models including selected image textures from color channels L, a, and b.
Table 8. The classification of the dorsal side of fresh and shade-dried mint leaves using models including selected image textures from color channels L, a, and b.
AlgorithmPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionRecallF-MeasureMCC
FreshShade-Dried
Color channel L
lazy.KStar7030Fresh77.50.8240.7000.7570.556
1585Shade-dried0.7390.8500.7910.556
rules.JRip9010Fresh92.50.9470.9000.9230.851
595Shade-dried0.9050.9500.9270.851
trees.J481000Fresh950.9091.0000.9520.905
1090Shade-dried1.0000.9000.9470.905
Color channel a
lazy.KStar1000Fresh1001.0001.0001.0001.000
0100Shade-dried1.0001.0001.0001.000
rules.JRip1000Fresh1001.0001.0001.0001.000
0100Shade-dried1.0001.0001.0001.000
trees.J481000Fresh1001.0001.0001.0001.000
0100Shade-dried1.0001.0001.0001.000
Color channel b
lazy.KStar1000Fresh97.50.9521.0000.9760.951
595Shade-dried1.0000.9500.9740.951
rules.JRip955Fresh950.9500.9500.9500.900
595Shade-dried0.9500.9500.9500.900
trees.J481000Fresh97.50.9521.0000.9760.951
595Shade-dried1.0000.9500.9740.951
MCC—Matthews Correlation Coefficient.
Table 9. The results of the classification of fresh and shade-dried mint leaves imaged on the dorsal side using models built based on selected texture parameters from color channels X, Y, and Z of images.
Table 9. The results of the classification of fresh and shade-dried mint leaves imaged on the dorsal side using models built based on selected texture parameters from color channels X, Y, and Z of images.
AlgorithmPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionRecallF-MeasureMCC
FreshShade-Dried
Color channel X
lazy.KStar9010Fresh92.50.9470.9000.9230.851
595Shade-dried0.9050.9500.9270.851
rules.JRip955Fresh950.9500.9500.9500.900
595Shade-dried0.9500.9500.9500.900
trees.J481000Fresh97.50.9521.0000.9760.951
595Shade-dried1.0000.9500.9740.951
Color channel Y
lazy.KStar955Fresh950.9500.9500.9500.900
595Shade-dried0.9500.9500.9500.900
rules.JRip955Fresh950.9500.9500.9500.900
595Shade-dried0.9500.9500.9500.900
trees.J48955Fresh950.9500.9500.9500.900
595Shade-dried0.9500.9500.9500.900
Color channel Z
lazy.KStar1000Fresh97.50.9521.0000.9760.951
595Shade-dried1.0000.9500.9740.951
rules.JRip955Fresh950.9500.9500.9500.900
595Shade-dried0.9500.9500.9500.900
trees.J481000Fresh97.50.9521.0000.9760.951
595Shade-dried1.0000.9500.9740.951
MCC—Matthews Correlation Coefficient.
Table 10. The differentiation of fresh and open-air sun-dried mint leaves in terms of selected image textures of the dorsal leaf side based on models built for color channels R, G, and B from color space RGB.
Table 10. The differentiation of fresh and open-air sun-dried mint leaves in terms of selected image textures of the dorsal leaf side based on models built for color channels R, G, and B from color space RGB.
AlgorithmPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionRecallF-MeasureMCC
FreshOpen-Air Sun-dried
Color channel R
lazy.KStar955Fresh92.50.9050.9500.9270.851
1090Open-air sun-dried0.9470.9000.9230.851
rules.JRip1000Fresh92.50.8701.0000.9300.860
1585Open-air sun-dried1.0000.8500.9190.860
trees.J481000Fresh92.50.8701.0000.9300.860
1585Open-air sun-dried1.0000.8500.9190.860
Color channel G
lazy.KStar955Fresh92.50.9050.9500.9270.851
1090Open-air sun-dried0.9470.9000.9230.851
rules.JRip1000Fresh92.50.8701.0000.9300.860
1585Open-air sun-dried1.0000.8500.9190.860
trees.J481000Fresh92.50.8701.0000.9300.860
1585Open-air sun-dried1.0000.8500.9190.860
Color channel B
lazy.KStar1000Fresh97.50.9521.0000.9760.951
595Open-air sun-dried1.0000.9500.9740.951
rules.JRip955Fresh97.51.0000.9500.9740.951
0100Open-air sun-dried0.9521.0000.9760.951
trees.J48955Fresh97.51.0000.9500.9740.951
0100Open-air sun-dried0.9521.0000.9760.951
MCC—Matthews Correlation Coefficient.
Table 11. The distinguishing of fresh and open-air sun-dried mint leaves imaged on the dorsal side using models developed based on selected textures from color channels L, a, and b from color space Lab.
Table 11. The distinguishing of fresh and open-air sun-dried mint leaves imaged on the dorsal side using models developed based on selected textures from color channels L, a, and b from color space Lab.
AlgorithmPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionRecallF-MeasureMCC
FreshOpen-Air Sun-dried
Color channel L
lazy.KStar955Fresh900.8640.9500.9050.804
1585Open-air sun-dried0.9440.8500.8950.804
rules.JRip1000Fresh97.50.9521.0000.9760.951
595Open-air sun-dried1.0000.9500.9740.951
trees.J481000Fresh950.9091.0000.9520.905
1090Open-air sun-dried1.0000.9000.9470.905
Color channel a
lazy.KStar1000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
rules.JRip1000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
trees.J481000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
Color channel b
lazy.KStar1000Fresh97.50.9521.0000.9760.951
595Open-air sun-dried1.0000.9500.9740.951
rules.JRip1000Fresh97.50.9521.0000.9760.951
595Open-air sun-dried1.0000.9500.9740.951
trees.J481000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
MCC—Matthews Correlation Coefficient.
Table 12. The performance metrics of distinguishing fresh and open-air sun-dried mint leaves using textures from images of the dorsal leaf side in color channels X, Y, and Z from color space XYZ.
Table 12. The performance metrics of distinguishing fresh and open-air sun-dried mint leaves using textures from images of the dorsal leaf side in color channels X, Y, and Z from color space XYZ.
AlgorithmPredicted Class (%)Actual ClassAverage Accuracy (%)PrecisionRecallF-MeasureMCC
FreshOpen-Air Sun-dried
Color channel X
lazy.KStar955Fresh92.50.9050.9500.9270.851
1090Open-air sun-dried0.9470.9000.9230.851
rules.JRip955Fresh900.8640.9500.9050.804
1585Open-air sun-dried0.9440.8500.8950.804
trees.J481000Fresh950.9091.0000.9520.905
1090Open-air sun-dried1.0000.9000.9470.905
Color channel Y
lazy.KStar1000Fresh97.50.9521.0000.9760.951
595Open-air sun-dried1.0000.9500.9740.951
rules.JRip9010Fresh92.50.9470.9000.9230.851
595Open-air sun-dried0.9050.9500.9270.851
trees.J481000Fresh97.50.9521.0000.9760.951
595Open-air sun-dried1.0000.9500.9740.951
Color channel Z
lazy.KStar1000Fresh97.50.9521.0000.9760.951
595Open-air sun-dried1.0000.9500.9740.951
rules.JRip1000Fresh97.50.9521.0000.9760.951
595Open-air sun-dried1.0000.9500.9740.951
trees.J481000Fresh1001.0001.0001.0001.000
0100Open-air sun-dried1.0001.0001.0001.000
MCC—Matthews Correlation Coefficient.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ropelewska, E.; Sabanci, K.; Aslan, M.F. The Use of Digital Color Imaging and Machine Learning for the Evaluation of the Effects of Shade Drying and Open-Air Sun Drying on Mint Leaf Quality. Appl. Sci. 2023, 13, 206. https://doi.org/10.3390/app13010206

AMA Style

Ropelewska E, Sabanci K, Aslan MF. The Use of Digital Color Imaging and Machine Learning for the Evaluation of the Effects of Shade Drying and Open-Air Sun Drying on Mint Leaf Quality. Applied Sciences. 2023; 13(1):206. https://doi.org/10.3390/app13010206

Chicago/Turabian Style

Ropelewska, Ewa, Kadir Sabanci, and Muhammet Fatih Aslan. 2023. "The Use of Digital Color Imaging and Machine Learning for the Evaluation of the Effects of Shade Drying and Open-Air Sun Drying on Mint Leaf Quality" Applied Sciences 13, no. 1: 206. https://doi.org/10.3390/app13010206

APA Style

Ropelewska, E., Sabanci, K., & Aslan, M. F. (2023). The Use of Digital Color Imaging and Machine Learning for the Evaluation of the Effects of Shade Drying and Open-Air Sun Drying on Mint Leaf Quality. Applied Sciences, 13(1), 206. https://doi.org/10.3390/app13010206

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