Next Article in Journal
CBMDB: A Database for Accessing, Analyzing, and Mining CBM Information
Previous Article in Journal
Fast Performance Evaluation for Switched-Capacitor Converter Based on Convolutional Neural Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Machine and Deep Learning in the Evaluation of Selected Qualitative Characteristics of Sweet Potatoes Obtained under Different Convective Drying Conditions

by
Krzysztof Przybył
1,*,
Franciszek Adamski
1,
Jolanta Wawrzyniak
1,
Marzena Gawrysiak-Witulska
1,
Jerzy Stangierski
2 and
Dominik Kmiecik
3,*
1
Department of Dairy and Process Engineering, Faculty of Food Science and Nutrition, Poznań University of Life Sciences, Ul. Wojska Polskiego 31, 60-624 Poznań, Poland
2
Department of Food Quality and Safety Management, Faculty of Food Science and Nutrition, Poznań University of Life Sciences, Ul. Wojska Polskiego 31, 60-624 Poznań, Poland
3
Department of Food Technology od Plant Origin, Faculty of Food Science and Nutrition, Poznań University of Life Sciences, Ul. Wojska Polskiego 31, 60-624 Poznań, Poland
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2022, 12(15), 7840; https://doi.org/10.3390/app12157840
Submission received: 16 July 2022 / Revised: 2 August 2022 / Accepted: 2 August 2022 / Published: 4 August 2022
(This article belongs to the Section Food Science and Technology)

Abstract

:
This paper discusses the use of various methods to distinguish between slices of sweet potato dried in different conditions. The drying conditions varied in terms of temperature, the values were: 60 °C, 70 °C, 80 °C, and 90 °C. Examination methods included instrumental texture analysis using a texturometer and digital texture analysis based on macroscopic images. Classification of acquired data involved the use of machine learning techniques using various types of artificial neural networks, such as convolutional neural networks (CNNs) and multi-layer perceptron (MLP). As a result, in the convective drying, changes in color darkening were found in products with the following temperature values: 60 °C (L = 83.41), 70 °C (L = 81.11), 80 °C (L = 79.02), and 90 °C (L = 75.53). The best-generated model achieved an overall classification efficiency of 77%. Sweet potato dried at 90 °C proved to be completely distinguishable from other classes, among which classification efficiency varied between 61–83% depending on the class. This means that image analysis using deep convolutional artificial neural networks is a valuable tool in the context of assessing the quality of convective-dried sweet potato slices.

1. Introduction

As a rich source of carbohydrates, sweet potatoes (Ipomoea batatas) are a basic component of the diet of a significant number of people living in warm climatic zones [1]. Their consumption may positively affect human health [2]. The relatively low glycemic index of their carbohydrates makes sweet potatoes often recommended in the diet of diabetics. Sweet potatoes also contain many minerals (Ca, P, K, Na, Mg, S, Cl, Fe, J and smaller amounts of Mn, Cu, Mo, Se), as well as vitamins B, C, and E [3,4,5]. Violet varieties of sweet potatoes are also rich in pro-health anthocyanins, which are strong antioxidants [6] that indirectly inhibit the secretion of glucose, decreasing its blood levels [7]. Cultivars with orange-colored flesh containing significant amounts of carotenoids are an important source of provitamin A [8], while those with yellow flesh are characterized by the presence of lutein. On the other hand, red sweet potatoes are a rich source of lycopene, which may reduce the risk of heart disease and some cancers. Due to its chemical composition and properties, sweet potatoes are considered one of the healthiest foods in the world [1] and are recommended by NASA as a superfood for space expeditions [9].
However, sweet potatoes are very unstable and difficult to transport and store over long periods of time due to their high moisture content and post-harvest metabolic activity and thin, permeable and brittle outer skin. For this reason, the transport of fresh sweet potatoes to places far away from their cultivation areas is significantly hampered by the loss of water from their tubers. Pre-treatment of sweet potatoes aimed at preserving this raw material minimizes the risk of their spoilage or quality deterioration. One of the most frequently used methods of maintaining the health-promoting properties of sweet potatoes is convective drying [10,11]. This technique is a development of a traditional method of food dehydration, namely sun drying. The dynamics of the process is conditioned by two mechanisms of water evaporation. The distinction is due to the formation of a crust on the surface of the dried material, which prevents the penetration of water vapor from the dried material into the drying air and heat in the opposite direction. In this context, it is important to distinguish between the evaporation from the surface of the material and the evaporation taking place inside it [12]. It allows the use of repeatable parameters in the drying process and thus the ability to obtain dried material with repeatable quality characteristics with low equipment and technical requirements [13]. Food waste has recently been reported to be a serious economic problem. It is estimated that in the USA alone, the amount of food lost is close to 103 million tons, of which 39.8 million tons are wasted by the food processing industry [14]. For this reason, efforts are made by the food production industry to implement solutions that will help alleviate hunger, a phenomenon that is still present in many underdeveloped countries. Such efforts involve the use of modern technological solutions to eliminate losses leading to the inefficient use of processed raw materials. Choosing non-invasive technologies with the lowest possible costs is particularly important, as well as the quality of obtained products. Growing consumer awareness puts pressure on food producers to supply products that meet certain standards (norms) [15], forcing them to search for methods allowing for effective control and assessment of the quality of manufactured food products. In connection with continuous development and actions taken to modernize and automate food production processes, methods used to assess the quality of raw materials and food products have also been evolving, and now also encompass analysis of sensory characteristics, including color [16,17,18], shape, and texture, using instrumental methods [19,20]. The adequate analysis of sensory characteristics of food products based on digital photos may be a key factor in the development of these methods. In this context, artificial intelligence methods appear to be the right tool to support various decision-making and food processing and preservation processes [21].
Evaluation of material based on digital photos requires appropriate statistical processing, necessitating the use of computational systems and complex statistical tools for data analysis. Of particular note is the use of artificial neural networks, including deep artificial neural networks, which enable the classification of photos based on objects visible in them. Neural networks as a subset of machine learning are increasingly used in supporting and solving many decision problems [22,23,24] and in additive manufacturing [25,26,27]. They are composed of multiple nodes that work together to obtain a response. Each node is responsible for a specific activation function and for assigning weightings [28,29,30,31,32]. Image analysis techniques using artificial intelligence have advanced significantly, opening new possibilities in food quality analysis. Until now, there is no evidence in the literature of the use of artificial intelligence to recognize and control the quality status of dried sweet potato slices under different temperature conditions in the convective drying process. Therefore, an attempt was made to develop effective neural models with the use of machine learning and deep learning to classify dried sweet potato slices subjected to the convective drying process at various temperatures based on their sensory characteristics to obtain the optimal final product.

2. Materials and Methods

2.1. Material

Sweet potatoes (Ipomoea batatas), obtained from a local agricultural enterprise located in the Greater Poland voivodeship, near the town of Kleszczewo, were used as test material for the purposes of this paper. The raw material came from the USA.

2.2. Moisture Content

The initial moisture content of tested sweet potato slices, expressed in [%], was determined using an MA 30 weighing machine made by SATORIUS AG (Göttingen, Germany), which enabled us to determine the water content of tested samples with an accuracy of up to 0.05% in accordance with the manufacturer’s instructions, at a temperature of 95 °C, as per the PN-A-79011-3:1998 standard. Each sample was subjected to three test series. The average initial moisture content of the test material was 77.88 ± −0.6%.

2.3. Convective Drying Procedure

The raw material was sliced crosswise (2 ± 0.1 mm) using a vegetable slicer. The prepared test material (in the form of slices), with an initial weight of 150 ± 0.1 g, was placed in a single layer on the shelves of a convective dryer. Then, fresh research samples (sweet potato slices) were subjected to convective drying at four different temperatures: 60 °C, 70 °C, 80 °C, and 90 °C. The velocity of the flow of drying air was v = 1.0 m·s−1, as measured using an anemometer. The moisture content of tested samples was measured throughout the drying process and recorded using drying process monitoring software.

2.4. Color Measurement

The color of the dried research material was measured using an NH310 m (envisense.eu (accessed on 1 February 2021), EnviSense, Lublin, Poland), which was pressed into close contact with the surface of the material. The white balance of the instrument was calibrated before testing. The amount of light falling on the sensors behind the detector apertures (silicon photodiode) with different colors was measured. L*, a*, and b* values were recorded in the CIE-Lab system [33,34]. The L*, a*, and b* values indicate brightness, redness (+)/(−) green and yellowing (+)/(−) blue, respectively. During the color measurement tests, 15 repetitions were performed. Based on the measured values of L*, a*, and b*, the browning index was determined for each sample [35]:
B I = 100 ( a *     1.75     L * ) a * 5.645     L *   +   a *     3.012 b * 0.31 0.17

2.5. Texture Measurement

Dried sweet potato slices were cut into 1 cm wide strips and subjected to an instrumental texture analysis using a texturometer. Testing was carried out using a TA-XT2i Texture Analyzer (Stable Micro Systems, Godalming, Surrey, UK) [13,36]. Plots of the dependence of resistance posed by tested material on the travel distance of the cutting head were obtained. Based on the collected data, characteristic parameters describing the material texture were determined, such as skin elasticity, maximum shearing force, and work of shearing.

2.6. Acquisition of Image of Sweet Potatoes

Macroscopic digital images were acquired using a test rig under constant exposure conditions at the Department of Dairy and Process Engineering. The correct uniformity of illumination of the test sample inside the chamber was verified using a lux meter in accordance with PN-EN 12464-1:2004. Digital images were taken using a NIKON D5100 camera (Kabushiki-gaisha Nikon, Bangkok, Thailand) with a 16.2 megapixel sensor (CMOS sensor 23.1 × 15.4 mm—DX format) and a NIKKOR 28 mm fixed-telephoto lens. The test samples were placed in a shadowless 0.5 × 0.5 × 0.5 m tent, illuminated by visible light (VIS) with a cold white color temperature of 6500 Kelvin (K), in a room with no natural lighting [37]. To ensure reproducibility of results, the following image exposure parameters were used: aperture—F9, exposure time —125, and sensitivity—IS0-125. The light source used in the test and at the measurement station consisted of 6 lamps: 3 × 70 W (600 lm) and 3 × 60 W (806 lm). Digital image acquisition produced 180 original 24-bit images with a resolution of 4928 × 3264. Image processing resulted in the segmentation of primary images to a frame that included the entire sweet potato discs and a uniformly colored background. Finally, the 600 × 400 secondary images were saved in JPEG format and RGB color space.
Images belonging to each class formed equidistant subsets. The subsets were created by pre-extracting features by removing the background and replacing it with a uniform black. Furthermore, data augmentation was applied by rotating each image by 90 degrees to obtain 4 derived images. In addition, data augmentation also consisted of zooming in on a random section or shift of each epoch of the learning sessions [38]. Training, test, and validation sets accounted for 60%, 20%, and 20% of the total number of instances, respectively. Gray-Level Co-Occurrence Matrix (GLCM) discriminants were calculated according to the usage given in the documentation of the Python and MATLAB language function libraries and modules used [15,32,39,40].

2.7. Architecture of Used Artificial Neural Networks

Statistica software version 13.3.0 (TIBCO Software Inc., Palo Alto, CA, USA) was used to perform statistical analyses and produce MLP-type artificial neural networks as part of the study. In order to produce deep artificial neural networks, i.e., CNNs, the Python programming language, the Anaconda and IPython environments, and the Spyder editor terminal were used. The study utilized Python modules required for the deep network learning process, such as Numpy, Pandas, Matplotlib, Scikit-image, OpenCV, Tensorflow, and Keras. The operating system used for the deep learning of the artificial neural networks was Ubuntu 20.04 LTS, whereas the Statistica 13.3 package on a Windows 10 operating system was used for statistical calculations.
A Multi-Layer Perceptron neural network was designed using Statistica 13.3, which contained:
  • an input layer, i.e., numerical data in the form of 6 texture coefficients such as contrast, dissimilarity, homogeneity, and correlation (indirectly extracted from digital images using the GLCM matrix).
  • a hidden layer, for which a range of 5 to 25 neurons was set.
  • a set activation function for the hidden layer: Exponential, Hyperbolic Tangent (Tanh), Logistic and output layer type Hyperbolic Tangent (Tanh), Softmax, and Linear.
  • an output layer, i.e., numerical data of classes 1–4 on the different drying temperatures.
  • a Broyden–Fletcher–Goldfarb–Shanno (BFGS) learning algorithm was set up [41].
A MobileNet type neural network was designed in Python [42], taking a tensor of shape (600, 400, 1) in the case of images expressed in greyscale or of shape (600, 400, 3) in the case of images expressed in RGB (Red Green Blue) as input [43]. The design of the network corresponded to the architecture proposed by Howard et al. [44], the premise of which is the use of separable convolutions, which in practice means the creation of repeating blocks of layers that successively perform the following operations: convolution relative to depth with a 3 × 3 convolution window, data normalization, ReLu activation function [45], 1 × 1 convolution, data normalization, and ReLu function. After the convolution operations, the edges of the bitmap were additionally padded with zeros (ZeroPadding2D) to maintain the dimensionality of the layer’s tensor. After 12 such blocks were applied, a sampling layer (GlobalAveragePooling2D) and a dropout layer were applied to convert random values into zeros in the input tensor. The resulting tensor of shape (1, 1, 1024) was transformed into a tensor of shape (1, 1, 4) by standard convolution. After processing using the softmax activation function, the layer returned a vector of values predicted by the network from the input data.

3. Results

3.1. Dynamics of Convective Drying Process Applied to Collected Samples

Figure 1 shows the convective drying curves for the four different temperatures used in the drying of test samples (sweet potato slices), i.e., classes 1–4. The total convective drying time at 60 °C (class 1) was 18.8 h, 18 h at 70 °C, 14.8 h at 80 °C, and 13.6 h at 90 °C (Figure 1). Differences between the results of convective drying in each class (1–4) indicated that the higher the temperature, the shorter the drying time. This also translates into noticeable drying shrinkage already in the initial drying phase. The loss of water content and movement of water-soluble compounds caused the stiffness of the cell walls of the sweet potato slices. The greater the loss of water in the sweet potato, the greater the drying shrinkage. This translates into a reduction in the quality of material, as wettability, absorption capacity, shape, and increased hardness all decrease. As the drying temperature increases between classes 1–4, greater changes in shape and shrinkage can also be observed. Considering their final stage of convective drying, where the final weight of the material was assumed to be 49 ± 0.5 g, it was determined that the final moisture content of the material in class 1 was 6%, the final moisture content in class 2 was 8.4%, the final moisture content in class 3 was 10.7%, and the final moisture content in class 4 was 7.9%. Thus, the longer the drying time, the greater the reduction of moisture content in research material, which indirectly influences factors such as changes in their shape and the hardness of the test material (classes 1–4).

3.2. Statistical Analysis by Mechanical Texture, Color RGB, Color Lab, Texture GLCM

The dried sweet potato slices were subjected to instrumental analysis in order to determine the color and texture discriminants (i.e., shearing force, skin elasticity, and work of shearing) of obtained dried material. Graphs of texture discriminants (Figure 2) illustrate slight differences between classes resulting from each variable, i.e., shearing force, skin elasticity, and work of shearing. The “maximum shearing force” and “skin elasticity” variables proved to be the best at discriminating variables between samples. Analysis of variance showed that class 3 (80 °C) showed statistically significant differences from classes 1 and 2 falling into the second homogeneous group together with class 4.
In the case of the color parameters expressed in the CIE L* a* b* system (Figure 3), a decreasing trend was observed for the L* parameter describing brightness and an increasing trend was observed for the b* parameter, which represents the yellowing of the tested samples with the increase in drying temperature. The a* parameter characterizing the green–red color axis is not characterized by an unambiguous decreasing or increasing trend. The analysis of variance of the L* variable showed the existence of four homogeneous groups, with the existence of four classes. The neighboring classes in this case overlap to form one homogeneous group for each pair of neighboring classes. The class affiliations for groups a, b, c, and d are as follows: 1dc, 2bc, 3ba, and 4a. The decreasing trend indicates a darkening of sweet potatoes as the drying temperature increases. For the parameter a*, two homogeneous groups were observed: 1ba, 2a, 3ba, and 4b. This means that classes 2 and 4 are distinguishable at an accepted level of significance. There were no statistically significant differences between classes 1, 2, and 3 and classes 1, 3, and 4. For the parameter b*, the existence of three completely separable homogeneous groups was observed, which, relative to the classes, are as follows: 1a, 2b, 3b, and 4c. This means that the change in parameter b* with the increase in drying temperature by each 20 °C resulted in a significant variation in the color of dried slices.
The change in color caused by convective drying is explained by two phenomena: Maillard reactions and enzymatic browning. The Maillard reaction is a reaction occurring between amino groups of free amino acids, peptides, or proteins and reducing sugars [46,47]. Products of this reaction are known as Amadori products—compounds with a brown color and a characteristic smell of roasted meat, but which are impossible to describe with a chemical formula due to their diversity caused by the variety of substrates in a given environment [48]. In food processing, decisive factors that positively influence the formation of Maillard reaction products are time, temperature, and water activity. This may indicate a potentially important role of non-enzymatic browning in color changes of convective-dried sweet potato slices.
The second phenomenon affecting the color change of raw plant materials during processing is enzymatic browning. An increase in temperature has a positive effect on the intensity of the browning reaction until the enzyme proteins start to denature. The products affecting the color change are melanin compounds formed in damaged plant cells. One of the enzymes involved in the formation of melanin compounds is polyphenol oxidase. Its action negatively affects the content of phenolic compounds in raw plant materials, which are desirable due to their antioxidant activity [49].
The shape of the graph of the dependence of the browning index value (Figure 4) on the drying temperature indicates that non-enzymatic browning is mainly responsible for the browning of dried sweet potato slices, the intensity of which becomes stronger as the temperature used in the drying process increases. No statistically significant differences in class 1.
An analysis of the variance of texture discriminants calculated from digital images was carried out with the use of different function libraries and programming environments. From among the various variables generated in the MATLAB environment based on the photographs, the six least correlated variables were selected: autocorr, homom, cshad, inf1h, corrm, and cprom. The projection of the aforementioned variables onto the principal component factor plane is shown in Figure 5.
The analysis of variance of the aforementioned variables showed that autocorr and homom were the differentiating variables. They enabled the separation of three partially separable homogeneous groups for classes 1–4: 1a, 2ab, 3bc, and 4c. Image-based texture analysis allowed a more effective distinction than instrumental texture analysis, with class 3 being the significantly different class in both cases. At the same time, class 3 falls into one homogeneous group together with cases from class 4. It can be difficult to effectively classify a single case due to the overlap between groups, with similar groups b and d not being contiguous groups. For the discriminants calculated using the scikit-image library, the following two homogeneous groups were observed through the analysis of variance: 1ab, 2ab, 3a, and 4b. The results obtained from the texture analysis do not indicate an upward or downward dependence of the variables studied with respect to the drying temperature as is the case with the color analysis.

3.3. Classification of Samples Using Artificial Neural Networks

Artificial neural networks were used to classify the samples based on their discriminants. Classification artificial neural network models of densely connected units were generated using the Statistica 13.3 package, using different color and texture discriminants as arguments. These models were characterized by the presence of a single hidden layer. Table 1 and Table 2. present the results of learning artificial neural networks for four-class classification on the basis of GLCM discriminants calculated using functions in scikit-image packages or the MATLAB environment. Among the variables returned by the MATLAB environment functions, those least correlated with each other were selected (Figure 5). The top five models were selected based on the quality of testing and validation. The general observable correlation for both types of MLP models considered is low learning quality values, lower than test and validation quality values. This indicates the possibility of random occurrence of correctly classified cases and the uncertainty of the models. This may be related to the low set sizes and the random selection of elements into individual sets. The random selection of sets creates the risk that cases from a significantly different class are aggregated in a single set and that false high learning, testing, or validation quality values occur.
The learning qualities of presented machine learning models are characterized by incomplete training against learning sets. A different behavior is characterized by deep artificial neural networks, for which 100% of the four-class classification quality was achieved in the case of a network analyzing images expressed on an 8-bit greyscale (Figure 6a). This leads us to believe that the deep networks used with the MobileNet architecture seek solutions to the classification problem within the boundaries defined by the training set in the considered hyperspace. This increases the reliability of learning, testing, and validation results returned by MobileNet models. The results of learning, testing, and validation are presented as a confusion matrix in Figure 6, Figure 7 and Figure 8.
MobileNet (greyscale) for the four-class classification also achieved high test (Figure 7a) and validation quality values (Table 3). In the test set, the best-discriminated class was class 4, of which 83% of the cases were classified correctly (Figure 7a). The remaining 17% of misclassified cases were assessed by the network as class 3. In the test set, 78% of cases belonging to class 3 were classified correctly, while confusions were assessed as belonging to classes 1 and 2 (Figure 7a). Moreover, 72% of cases belonging to class 2 were classified correctly, while 22% were confused with class 3. This indicates that there is some similarity in the texture of cases in classes 2 and 3. Only 6% of cases were falsely assigned to class 1. Whereas, 78% of cases belonging to class 1 were classified correctly and 17% were misclassified as class 2. Only 6% were misclassified as class 3 (Figure 7a). The MobileNet model validation results (greyscale) are more similar to the ANOVA results. The best distinguishable class was found to be class 2, for which 83% of cases were classified correctly, while 6% and 11% were falsely classified as classes 3 and 4, respectively (Figure 8a). Cases belonging to class 1 were correctly classified in only 61%, while 17% and 22% were misclassified as classes 2 and 3, respectively (Figure 8a). The classification results show a high similarity between classes 3 and 4. Cases belonging to class 3 were correctly classified in 67%. Furthermore, 6% were misclassified as class 2 and 28% were misclassified as class 4 (Figure 8a). Cases belonging to class 4 were assigned correctly in 78% and the remaining 22% were misclassified as class 3. The test set in MobileNet (greyscale) indicates the similarity in the texture of sweet potatoes dried at 60–80 °C and the distinctiveness of samples dried at 90 °C. The validation set in MobileNet (greyscale) allows inference of similarity between samples dried at 80 and 90 °C. For comparison, a deep neural network was also created with the MobileNet model, taking into account the color expressed in RGB (Table 3). In the training set, the lowest quality of learning occurred for class 2 and amounted to 83% (Figure 6b). Most often, classification errors resulted from the incorrect assignment of cases in the training set from classes 1–3 to class 4. In the case of the test set, the highest quality of classification occurred for class 4 and amounted to 100%. Only 39% of the class 3 cases were correctly classified and the errors were associated with all other classes. In addition, 72% of cases were classified correctly in class 2, 22% of cases were incorrectly classified in class 4, and 6% as belonging to class 3. Class 1 was also correctly classified in 72%, while 17% and 11% were incorrectly classified in classes: 2 and 4. (Figure 7b). In the validation set, the class 4 cases turned out to be distinct from the others, with 17% of class 3 cases, 72% of class 2 cases, and 56% of class 1 cases correctly classified (Figure 8b).
The above-described learning results suggest the existence of specific distinguishing characteristics of each of the classes studied. This indicates that the material deforms differently during convective drying depending on the rate of formation of dry skin on the material surface. This is also justified by the increasing trend observed among the results of the instrumental texture analysis. The phenomenon explaining the existence of the observed differences may lie in the thermal decomposition of the hemicelluloses in the plant material during long drying. In this case, the long-dried material would be more susceptible to deformation due to a reduction in the volume of the outer layer compared to material dried at a relatively high temperature, where the hemicelluloses had not decomposed before water drained from the center of the raw material to reach the desired moisture content of the material. Color appeared to introduce noise information in combination with information on the shape and texture of the dried material. The high variability of the color characteristics can be explained by the simultaneous occurrence of two mechanisms that are opposite in terms of visual effect, namely enzymatic and non-enzymatic browning.
The results presented are comparable or inferior to the performance of artificial neural network classification models reported in literature [32,50,51,52].

4. Conclusions

It was demonstrated that the research can be continued in the qualitative evaluation of sweet potatoes during convective drying. The designed and generated artificial neural networks, especially with the use of deep learning, made it possible to assess the quality, state, and color parameters of dried sweet potatoes based on images (indirectly via the GLCM matrix). Based on tests and analysis of data obtained, we can conclude that there are differences in color and texture between samples of sweet potato convective dried at 60, 70, 80, and 90 °C. The color expressed in the CIE L* a* b* system makes it possible to distinguish sweet potatoes dried at 90 °C from other classes, but involves the possibility of erroneously assigning a sample that does not belong to this class. At the same time, the color expressed in RGB space calculated from digital images does not make it possible to distinguish effectively between the samples tested and, when analyzed using artificial neural networks, makes classification difficult. The positive aspect of using color as a discriminator is that the identification of sweet potato discs dried at 90 °C is subject to the error of falsely assigning the test sample to this class.
A deep artificial neural network of the MobileNet type accepting a greyscale bitmap as input proved to be the most effective tool for dividing dried sweet potato slices by drying temperature. The use of the aforementioned architecture enables a 77% accuracy of the four-class classification. At the same time, binary classification using the MobileNet architecture for greyscale data makes it possible to distinguish with 89% accuracy between sweet potato discs dried at 60 and 70 °C and those dried at 80–90 °C. The use of image analysis and deep artificial neural networks proved to be a more effective method of dividing samples by drying temperature relative to data from a colorimeter or mechanical texture analyzer. This justifies further research into the use of image analysis to evaluate the quality of convective-dried products in online mode. Describing the mechanism of shape and texture change in convective-dried sweet potatoes at different temperatures remains a topic for further research.

Author Contributions

Conceptualization, K.P.; methodology, F.A., K.P., J.W. and J.S.; software, F.A. and K.P.; validation, F.A. and K.P.; formal analysis, K.P. and J.W.; investigation, K.P. and J.W.; resources, F.A., J.S. and K.P.; data curation, F.A. and K.P.; writing—original draft preparation, K.P., F.A. and J.W.; writing—review and editing, K.P., J.W., F.A., M.G.-W. and J.S.; visualization, F.A., K.P., D.K. and M.G.-W.; supervision, M.G.-W., D.K. and K.P.; project administration, K.P.; funding acquisition, D.K. and K.P. 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

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kim, S.Y.; Wi, H.-R.; Choi, S.; Ha, T.J.; Lee, B.W.; Lee, M. Inhibitory effect of anthocyanin-rich black soybean testa (Glycine max (L.) Merr.) on the inflammation-induced adipogenesis in a DIO mouse model. J. Funct. Foods 2015, 14, 623–633. [Google Scholar] [CrossRef]
  2. Jiao, Q.; Lin, B.; Mao, Y.; Jiang, H.; Guan, X.; Li, R.; Wang, S. Effects of combined radio frequency heating with oven baking on product quality of sweet potato. Food Control 2022, 139, 109097. [Google Scholar] [CrossRef]
  3. Suárez, M.H.; Hernández, A.I.M.; Galdón, B.R.; Rodríguez, L.H.; Cabrera, C.E.M.; Mesa, D.R.; Rodríguez-Rodríguez, E.M.; Romero, C.D. Application of multidimensional scaling technique to differentiate sweet potato (Ipomoea batatas (L.) Lam) cultivars according to their chemical composition. J. Food Compos. Anal. 2016, 46, 43–49. [Google Scholar] [CrossRef]
  4. Alam, M.K.; Sams, S.; Rana, Z.H.; Akhtaruzzaman, M.; Islam, S.N. Minerals, vitamin C, and effect of thermal processing on carotenoids composition in nine varieties orange-fleshed sweet potato (Ipomoea batatas L.). J. Food Compos. Anal. 2020, 92, 103582. [Google Scholar] [CrossRef]
  5. Hossain, M.; Rahim, A.; Moutosi, H.N.; Das, L. Evaluation of the growth, storage root yield, proximate composition, and mineral content of colored sweet potato genotypes. J. Agric. Food Res. 2022, 8, 100289. [Google Scholar] [CrossRef]
  6. Mazza, G. Anthocyanins in Fruits, Vegetables, and Grains; Mazza, G., Miniati, E., Eds.; CRC Press: Boca Raton, FL, USA, 2018; ISBN 9781351069700. [Google Scholar]
  7. Jang, H.H.; Kim, H.W.; Kim, S.Y.; Kim, S.M.; Kim, J.B.; Lee, Y.M. In vitro and in vivo hypoglycemic effects of cyanidin 3-caffeoyl-p-hydroxybenzoylsophoroside-5 glucoside, an anthocyanin isolated from purple-fleshed sweet potato. Food Chem. 2019, 272, 688–693. [Google Scholar] [CrossRef]
  8. Amagloh, F.; Yada, B.; Tumuhimbise, G.; Amagloh, F.; Kaaya, A. The Potential of Sweetpotato as a Functional Food in Sub-Saharan Africa and Its Implications for Health: A Review. Molecules 2021, 26, 2971. [Google Scholar] [CrossRef]
  9. Wilson, C.D.; Pace, R.D.; Bromfield, E.; Jones, G.; Lu, J.Y. Consumer acceptance of vegetarian sweet potato products intended for space missions. Life Support Biosph. Sci. 1998, 5, 339–346. [Google Scholar]
  10. Salinas, J.G.; Alvarado, J.A.; Bergenståhl, B.; Tornberg, E. The influence of convection drying on the physicochemical properties of yacón (Smallanthus sonchifolius). Heat Mass Transf. 2018, 54, 2951–2961. [Google Scholar] [CrossRef] [Green Version]
  11. Campos, D.; Aguilar-Galvez, A.; Pedreschi, R. Stability of fructooligosaccharides, sugars and colour of yacon (Smallanthus sonchifolius) roots during blanching and drying. Int. J. Food Sci. Technol. 2016, 51, 1177–1185. [Google Scholar] [CrossRef]
  12. Oke, M.O.; Workneh, T.S. Convective Hot Air Drying of Different Varieties of Blanched Sweet Potato Slices. Int. J. Agric. Biosyst. Eng. 2014, 8, 12. [Google Scholar] [CrossRef]
  13. Pawlak, T.; Pilarska, A.A.; Przybył, K.; Stangierski, J.; Ryniecki, A.; Cais-Sokolińska, D.; Pilarski, K.; Peplińska, B. Application of Machine Learning Using Color and Texture Analysis to Recognize Microwave Vacuum Puffed Pork Snacks. Appl. Sci. 2022, 12, 5071. [Google Scholar] [CrossRef]
  14. Sebatjane, M. The impact of preservation technology investments on lot-sizing and shipment strategies in a three-echelon food supply chain involving growing and deteriorating items. Oper. Res. Perspect. 2022, 9, 100241. [Google Scholar] [CrossRef]
  15. Przybył, K.; Gawałek, J.; Koszela, K.; Wawrzyniak, J.; Gierz, L. Artificial neural networks and electron microscopy to evaluate the quality of fruit and vegetable spray-dried powders. Case study: Strawberry powder. Comput. Electron. Agric. 2018, 155, 314–323. [Google Scholar] [CrossRef]
  16. Saldaña, E.; Siche, R.; Castro, W.; Huamán, R.; Quevedo, R. Measurement parameter of color on yacon (Smallanthus sonchifolius) slices using a computer vision system. LWT Food Sci. Technol. 2014, 59, 1220–1226. [Google Scholar] [CrossRef]
  17. Hameed, K.; Chai, D.; Rassau, A. A comprehensive review of fruit and vegetable classification techniques. Image Vis. Comput. 2018, 80, 24–44. [Google Scholar] [CrossRef]
  18. Przybył, K.; Masewicz, Ł.; Koszela, K.; Duda, A.; Szychta, M.; Gierz, Ł. An MLP Artificial Neural Network for Detection of the Degree of Saccharification of Arabic Gum Used as a Carrier Agent of Raspberry Powders. In Proceedings of the Thirteenth International on Digital Image Processing (ICDIP 2021), Bellingham, WA, USA, 30 June 2021; Jiang, X., Fujita, H., Eds.; SPIE: Bellingham, WA, USA, 2021; Volume 11878, p. 93. [Google Scholar]
  19. Zhang, Y.; Wang, S.; Ji, G.; Phillips, P. Fruit classification using computer vision and feedforward neural network. J. Food Eng. 2014, 143, 167–177. [Google Scholar] [CrossRef]
  20. Cheng, X.; Yan, X.; Hu, M. The effect of storage pressure on the mechanical properties of paddy grains. J. Stored Prod. Res. 2016, 68, 19–24. [Google Scholar] [CrossRef]
  21. Przybył, K.; Samborska, K.; Koszela, K.; Masewicz, L.; Pawlak, T. Artificial neural networks in the evaluation of the influence of the type and content of carrier on selected quality parameters of spray dried raspberry powders. Measurement 2021, 186, 110014. [Google Scholar] [CrossRef]
  22. Soltani, M.; Omid, M.; Alimardani, R. Egg volume prediction using machine vision technique based on pappus theorem and artificial neural network. J. Food Sci. Technol. 2015, 52, 3065–3071. [Google Scholar] [CrossRef] [Green Version]
  23. Rad, M.R.N.; Koohkan, S.; Fanaei, H.R.; Rad, M.R.P. Application of Artificial Neural Networks to predict the final fruit weight and random forest to select important variables in native population of melon (Cucumis melo L.). Sci. Hortic. 2015, 181, 108–112. [Google Scholar] [CrossRef]
  24. Agarwal, M.; Singh, M.K.; Srivastava, R.; Gautam, R.K. Microstructural measurement and artificial neural network analysis for adhesion of tribolayer during sliding wear of powder-chip reinforcement based composites. Measurement 2021, 168, 108417. [Google Scholar] [CrossRef]
  25. Lu, C.; Shi, J. Relative density prediction of additively manufactured Inconel 718: A study on genetic algorithm optimized neural network models. Rapid Prototyp. J. 2022, 28, 1425–1436. [Google Scholar] [CrossRef]
  26. Rashed, K.; Kafi, A.; Simons, R.; Bateman, S. Fused filament fabrication of nylon 6/66 copolymer: Parametric study comparing full factorial and Taguchi design of experiments. Rapid Prototyp. J. 2022, 28, 1111–1128. [Google Scholar] [CrossRef]
  27. Agrawal, R. Sustainable design guidelines for additive manufacturing applications. Rapid Prototyp. J. 2022, 28, 1221–1240. [Google Scholar] [CrossRef]
  28. Krohn, J.; Beyleveld, G.; Bassens, A. Deep Learning Illustrated: A Visual, Interactive Guide to Artificial Intelligence; Addison-Wesley Professional: Boston, MA, USA, 2020. [Google Scholar]
  29. Boniecki, P.; Nowakowski, K.; Tomczak, R.J. Neural Networks Type MLP in the Process of Identification Chosen Varieties of Maize. In Proceedings of the 3rd International Conference on Digital Image Processing (ICDIP 2011), Chengdu, China, 8 July 2011; Volume 8009, pp. 11–13. [Google Scholar] [CrossRef]
  30. Kwon, S.J. Artificial Neural Networks; Nova Science Publishers, Inc.: London, UK, 2011; ISBN 9781617615535. [Google Scholar]
  31. Marwala, T. Multi-Layer Perceptron. In Handbook of Machine Learning; World Scientific: Singapore, 2018. [Google Scholar]
  32. Przybył, K.; Koszela, K.; Adamski, F.; Samborska, K.; Walkowiak, K.; Polarczyk, M. Deep and Machine Learning Using SEM, FTIR, and Texture Analysis to Detect Polysaccharide in Raspberry Powders. Sensors 2021, 21, 5823. [Google Scholar] [CrossRef] [PubMed]
  33. Kulapichitr, F.; Borompichaichartkul, C.; Fang, M.; Suppavorasatit, I.; Cadwallader, K.R. Effect of post-harvest drying process on chlorogenic acids, antioxidant activities and CIE-Lab color of Thai Arabica green coffee beans. Food Chem. 2022, 366, 130504. [Google Scholar] [CrossRef]
  34. Azetsu, T.; Suetake, N. Chroma Enhancement in CIELAB Color Space Using a Lookup Table. Designs 2021, 5, 32. [Google Scholar] [CrossRef]
  35. Pathare, P.; Opara, U.L.; Al-Said, F.A.-J. Colour Measurement and Analysis in Fresh and Processed Foods: A Review. Food Bioprocess Technol. 2013, 6, 36–60. [Google Scholar] [CrossRef]
  36. Pawlak, T.; Gawałek, J.; Ryniecki, A.; Stangierski, J.; Siatkowski, I.; Peplińska, B.; Pospiech, E. Microwave vacuum drying and puffing of the meat tissue—Process analysis. Dry. Technol. 2018, 37, 156–163. [Google Scholar] [CrossRef]
  37. Przybył, K.; Ryniecki, A.; Niedbała, G.; Mueller, W.; Boniecki, P.; Zaborowicz, M.; Koszela, K.; Kujawa, S.; Kozłowski, R.J. Software supporting definition and extraction of the quality parameters of potatoes by using image analysis. In Proceedings of the Eighth International Conference on Digital Image Processing, Chengu, China, 20–22 May 2016; p. 100332L. [Google Scholar] [CrossRef]
  38. Chollet, F. Deep Learning. Praca z Językiem Python i Biblioteką Keras; HELION SA: Gliwice, Poland, 2019; ISBN 978-83-283-4778-6. [Google Scholar]
  39. Haralick, R.M.; Shanmugam, K.; Dinstein, I.H. Textural Features for Image Classification. IEEE Trans. Syst. Man Cybern. 1973, 6, 610–621. [Google Scholar] [CrossRef] [Green Version]
  40. Unser, M. Texture classification and segmentation using wavelet frames. IEEE Trans. Image Process. 1995, 4, 1549–1560. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  41. Atsamnia, D.; Hamadache, M.; Hanini, S.; Benkortbi, O.; Oukrif, D. Prediction of the antibacterial activity of garlic extract on E. coli, S. aureus and B. subtilis by determining the diameter of the inhibition zones using artificial neural networks. LWT Food Sci. Technol. 2017, 82, 287–295. [Google Scholar] [CrossRef]
  42. Chen, H.-Y.; Su, C.-Y. An Enhanced Hybrid MobileNet. In Proceedings of the 2018 9th International Conference on Awareness Science and Technology (iCAST), Fukuoka, Japan, 19–21 September 2018; pp. 308–312. [Google Scholar] [CrossRef] [Green Version]
  43. Manickavasagan, A.; Al-Mezeini, N.; Al-Shekaili, H. RGB color imaging technique for grading of dates. Sci. Hortic. 2014, 175, 87–94. [Google Scholar] [CrossRef]
  44. Howard, A.G.; Zhu, M.; Chen, B.; Kalenichenko, D.; Wang, W.; Weyand, T.; Andreetto, M.; Adam, H. MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications. arXiv 2017, arXiv:1704.04861. [Google Scholar]
  45. Nelli, F. Deep Learning with TensorFlow. In Python Data Analytics; Apress: Berkeley, CA, USA, 2018. [Google Scholar]
  46. Gamboa-Santos, J.; Soria, A.C.; Fornari, T.; Villamiel, M.; Montilla, A. Optimisation of convective drying of carrots using selected processing and quality indicators. Int. J. Food Sci. Technol. 2013, 48, 1998–2006. [Google Scholar] [CrossRef] [Green Version]
  47. Chen, P.; Cheng, F.; Wei, L.; Wang, S.; Zhang, Z.; Hang, F.; Li, K.; Xie, C. Effect of Maillard reaction browning factors on color of membrane clarification non-centrifugal cane sugar during storage. Food Sci. Technol. 2022, 42. [Google Scholar] [CrossRef]
  48. Martins, S.I.F.S.; Jongen, W.M.F.; van Boekel, M.A.J.S. A review of Maillard reaction in food and implications to kinetic modelling. Trends Food Sci. Technol. 2011, 11, 364–373. [Google Scholar] [CrossRef]
  49. Lim, W.Y.; Cheun, C.F.; Wong, C.W. Inhibition of enzymatic browning in sweet potato (Ipomoea batatas (L.)) with chemical and natural anti-browning agents. J. Food Process. Preserv. 2019, 43, 11. [Google Scholar] [CrossRef]
  50. Raj, M.P.; Swaminarayan, P.R. Applications of Image Processing for Grading Agriculture products. Int. J. Recent Innov. Trends Comput. Commun. 2015, 3, 1194–1201. [Google Scholar]
  51. Przybył, K.; Wawrzyniak, J.; Koszela, K.; Adamski, F.; Gawrysiak-Witulska, M. Application of Deep and Machine Learning Using Image Analysis to Detect Fungal Contamination of Rapeseed. Sensors 2020, 20, 7305. [Google Scholar] [CrossRef] [PubMed]
  52. Naik, S.; Patel, B. Machine Vision based Fruit Classification and Grading—A Review. Int. J. Comput. Appl. 2017, 170, 9. [Google Scholar] [CrossRef]
Figure 1. Curve of water content per time unit u(τ) at 60 °C (class 1), 70 °C (class 2), 80 °C (class 3), and 90 °C (class 4).
Figure 1. Curve of water content per time unit u(τ) at 60 °C (class 1), 70 °C (class 2), 80 °C (class 3), and 90 °C (class 4).
Applsci 12 07840 g001
Figure 2. Average values of shearing force, skin elasticity, and work of shearing for samples belonging to classes 1–4, which corresponded to drying temperatures of 60, 70, 80, and 90 °C.
Figure 2. Average values of shearing force, skin elasticity, and work of shearing for samples belonging to classes 1–4, which corresponded to drying temperatures of 60, 70, 80, and 90 °C.
Applsci 12 07840 g002
Figure 3. Mean values and 0.95 confidence intervals for the color parameters expressed in the CIE L* a* b* system for samples belonging to classes 1–4, which corresponded to drying temperatures of 60, 70, 80, and 90 °C.
Figure 3. Mean values and 0.95 confidence intervals for the color parameters expressed in the CIE L* a* b* system for samples belonging to classes 1–4, which corresponded to drying temperatures of 60, 70, 80, and 90 °C.
Applsci 12 07840 g003
Figure 4. Mean values and 0.95 confidence intervals for the BI coefficient for samples belonging to classes 1–4, which corresponded to drying temperatures of 60, 70, 80, and 90 °C.
Figure 4. Mean values and 0.95 confidence intervals for the BI coefficient for samples belonging to classes 1–4, which corresponded to drying temperatures of 60, 70, 80, and 90 °C.
Applsci 12 07840 g004
Figure 5. Projection of selected GLCM texture discriminants calculated in the MATLAB environment onto the principal component factor plane generated using Statistica 13.3.
Figure 5. Projection of selected GLCM texture discriminants calculated in the MATLAB environment onto the principal component factor plane generated using Statistica 13.3.
Applsci 12 07840 g005
Figure 6. Confusion matrix of the MobileNet model for greyscale (a) and RGB color space (b) calculated from the training set.
Figure 6. Confusion matrix of the MobileNet model for greyscale (a) and RGB color space (b) calculated from the training set.
Applsci 12 07840 g006
Figure 7. Confusion matrix of the MobileNet model for greyscale (a) and RGB color space (b) calculated from the test set.
Figure 7. Confusion matrix of the MobileNet model for greyscale (a) and RGB color space (b) calculated from the test set.
Applsci 12 07840 g007
Figure 8. Confusion matrix of the MobileNet model for greyscale (a) and RGB color space (b) calculated from the validation set.
Figure 8. Confusion matrix of the MobileNet model for greyscale (a) and RGB color space (b) calculated from the validation set.
Applsci 12 07840 g008
Table 1. Results of learning artificial neural networks created in Statistica 13.3, together with parameters of the best models created for the four-class classification on the basis of GLCM features calculated using the scikit-image library (variables contrast, dissimilarity, homogeneity, correlation).
Table 1. Results of learning artificial neural networks created in Statistica 13.3, together with parameters of the best models created for the four-class classification on the basis of GLCM features calculated using the scikit-image library (variables contrast, dissimilarity, homogeneity, correlation).
Name of ANNMLP 4-3-4MLP 4-10-4MLP 4-3-4MLP 4-6-4MLP 4-7-4
Quality of learning40.47643.65134.12727.77843.651
Quality of testing48.14855.55651.85251.85255.556
Quality of validation55.55651.85251.85251.85251.852
Algorithm of trainingBFGS 21BFGS 52BFGS 35BFGS 9BFGS 28
Error functionEntropySOSEntropyEntropySOS
Hidden activationExponentialExponentialTanhTanhLogistic
Output activationSoftmaxLinearSoftmaxSoftmaxTanh
Table 2. Results of learning artificial neural networks created in Statistica 13.3, together with the parameters of the best models created for the four-class classification on the basis of the GLCM characteristics calculated using MATLAB (autocorr, homom, cshad, inf1h, corrm, cprom).
Table 2. Results of learning artificial neural networks created in Statistica 13.3, together with the parameters of the best models created for the four-class classification on the basis of the GLCM characteristics calculated using MATLAB (autocorr, homom, cshad, inf1h, corrm, cprom).
Name of ANNMLP 6-11-4MLP 6-11-4MLP 6-10-4MLP 6-10-4MLP 6-8-4
Quality of learning66.6732.5434.9237.336.51
Quality of testing55.5640.7440.7444.4440.74
Quality of validation44.4448.1551.8548.1548.15
Algorithm of trainingBFGS 60BFGS 7BFGS 4BFGS 9BFGS 6
Error functionEntropySOSEntropySOSEntropy
Hidden activationTanhLogisticLinearLogisticLinear
Output activationSoftmaxLogisticSoftmaxExponentialSoftmax
Table 3. Learning results of MobileNettype artificial neural networks against images expressed in RGB or greyscale space.
Table 3. Learning results of MobileNettype artificial neural networks against images expressed in RGB or greyscale space.
Name of ANNMobileNet-ColorMobileNet-Gray
Quality of learning100.00100.00
Quality of testing0.70830.7778
Quality of validation0.61110.7222
Algorithm of trainingAdamAdam
Error functionEntropyEntropy
Hidden activation functionReLuReLu
Output activation functionSoftmaxSoftmax
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Przybył, K.; Adamski, F.; Wawrzyniak, J.; Gawrysiak-Witulska, M.; Stangierski, J.; Kmiecik, D. Machine and Deep Learning in the Evaluation of Selected Qualitative Characteristics of Sweet Potatoes Obtained under Different Convective Drying Conditions. Appl. Sci. 2022, 12, 7840. https://doi.org/10.3390/app12157840

AMA Style

Przybył K, Adamski F, Wawrzyniak J, Gawrysiak-Witulska M, Stangierski J, Kmiecik D. Machine and Deep Learning in the Evaluation of Selected Qualitative Characteristics of Sweet Potatoes Obtained under Different Convective Drying Conditions. Applied Sciences. 2022; 12(15):7840. https://doi.org/10.3390/app12157840

Chicago/Turabian Style

Przybył, Krzysztof, Franciszek Adamski, Jolanta Wawrzyniak, Marzena Gawrysiak-Witulska, Jerzy Stangierski, and Dominik Kmiecik. 2022. "Machine and Deep Learning in the Evaluation of Selected Qualitative Characteristics of Sweet Potatoes Obtained under Different Convective Drying Conditions" Applied Sciences 12, no. 15: 7840. https://doi.org/10.3390/app12157840

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