Next Article in Journal
Effects of Cherry (Prunus cerasus L.) Powder Addition on the Physicochemical Properties and Oxidation Stability of Jiangsu-Type Sausage during Refrigerated Storage
Next Article in Special Issue
Effects of Pulsed Pressure Curing on Beef Quality
Previous Article in Journal
Impacts of the Dynamic High-Pressure Pre-Treatment and Post-Treatment of Whey Protein Aggregates on Their Physicochemical Properties and Emulsifying Activities
Previous Article in Special Issue
Detection of the Inoculated Fermentation Process of Apo Pickle Based on a Colorimetric Sensor Array Method
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Application of Imaging and Artificial Intelligence for Quality Monitoring of Stored Black Currant (Ribes nigrum L.)

Fruit and Vegetable Storage and Processing Department, The National Institute of Horticultural Research, Konstytucji 3 Maja 1/3, 96-100 Skierniewice, Poland
Foods 2022, 11(22), 3589; https://doi.org/10.3390/foods11223589
Submission received: 18 October 2022 / Revised: 27 October 2022 / Accepted: 8 November 2022 / Published: 11 November 2022
(This article belongs to the Special Issue Advanced Analytical Strategies in Food Safety and Quality Monitoring)

Abstract

:
The objective of this study was to assess the influence of storage under different storage conditions on black currant quality in a non-destructive and inexpensive manner using image processing and artificial intelligence. Black currants were stored at a room temperature of 20 ± 1 °C and a temperature of 3 °C (refrigerator). The images of black currants directly after harvest and fruit stored for one and two weeks were obtained using a digital camera. Then, texture parameters were computed from the images converted to color channels R (red), G (green), B (blue), L (lightness component from black to white), a (green for negative and red for positive values), b (blue for negative and yellow for positive values), X (component with color information), Y (lightness), and Z (component with color information). Models for the classification of black currants were built using various machine learning algorithms based on selected textures for RGB, Lab, and XYZ color spaces. Models built using the IBk, multilayer perceptron, and multiclass classifier for textures from RGB color space, and the IBk algorithm for textures from Lab color space distinguished unstored black currants and samples stored in the room for one and two weeks with an average accuracy of 100%, and the kappa statistic and weighted averages of precision, recall, Matthews correlation coefficient (MCC), receiver operating characteristic (ROC) area, and precision–recall (PRC) area equal to 1.000. This indicated a very distinct change in the external structure of the fruit after the first week and more and more visible changes in quality with increasing storage time. A classification accuracy reaching 98.67% (multilayer perceptron, Lab color space) for the samples stored in the refrigerator may indicate smaller quality changes caused by storage at a low temperature. The approach combining image textures and artificial intelligence turned out to be promising to monitor the quality changes in black currants during storage.

1. Introduction

Black currant (Ribes nigrum L.) is a deciduous shrub with dark fruit native to northern and central Europe and Asia. Black currant is grown for the production of fruit and for ornamental purposes. The cultivation is a cost-effective and profitable mainly due to using black currant as a valuable ingredient in a healthy diet [1]. Black currant shrubs have high cold tolerance and can be cultivated in cooler and humid areas. In addition to crops for economic purposes, black currant shrubs are important components of forest ecosystems of the Northern Hemisphere in terms of their productivity and diversity [2]. After domestication, black currant was spread throughout Europe, China, North America, and New Zealand. Poland is considered the top producer and the primary exporter of fresh and processed black currant. Due to its importance in human nutrition and suitability for industrial processing, the cultivation of black currants is in continuous expansion [3,4].
Fruits are small, astringent berries containing bioactive compounds and nutrients with health benefits. Black currants contain polyphenols and high levels of calcium, potassium, and phosphorus [5]. Black currants are rich in flavonoids, anthocyanins, organic acids, vitamins, polysaccharides, and unsaturated fatty acids [6]. The unique flavor of black currant and its health-promoting and nutritional properties, mainly due to the high contents of phenolic acids, anthocyanins, and vitamin C, contributed to increasing its consumption [7,8,9]. Black currants are characterized by typical flavor and distinct purple-black color. Black currant crop is economically important and especially popular in northern and eastern European countries [10]. Black currants can be consumed fresh and in their processed forms, among others, as jams, juices, jellies, purees, yogurt ingredients, and syrups with health-promoting properties and nutraceutical composition [3,10]. Black currant fruit and buds can also be used for the production of alcoholic beverages, such as wine, spirits, or liqueur, and essential oil for perfumes and food flavoring [11]. Black currant, due to its high level of colored pigments, can be a natural food colorant and dye [12]. As a nutraceutical, black currant can regulate or alleviate some diseases [12]. Fruit can be characterized by antioxidant, antimicrobial, anticancer, anti-inflammatory, anti-obesity, and immuno-stimulating effects and can protect blood vessels, improve eye functions, and promote dark adaptation [6,13,14].
Black currants in their fresh form are available for a few weeks in the year. They are very perishable and have a very short shelf life. Therefore, lowering the storage temperature or even freezing them can extend their shelf life [15,16]. Black currant is a non-climacteric fruit. The respiration rate decreases after harvest and is significantly higher for freshly harvested fruit than for the air-stored samples. Black currants designated for consumption can be stored under room conditions for about 2–3 weeks [17]. Storage can cause some quality changes in black currant [18]. Generally, berries as non-climacteric fruit are harvested fully ripened and are characterized by relatively rapid water loss and susceptibility toward damage and decay. Changes in berry quality during storage can also include the content of polyphenols, vitamins, minerals, titratable acidity, soluble solids, and pH. Refrigeration and freezing used for short- and long-term storage protect against the loss of heat-sensitive nutrients. Lowering the storage temperature reduces respiration rate, mold growth, pigment degradation, chemical changes, enzymatic reactions, and changes in cell structure [19]. Besides chemical composition and internal structure, external characteristics of black currant berries are important quality parameters. For example, fruit color and gloss are essential quality indicators [20]. In addition to the quality and chemical composition of berries, sensory attributes related to taste, appearance, and structure can also change during storage [21,22].
Instead of traditional manual fruit quality evaluation, machine vision enables more accurate and rapid detection of wrinkled berries and other defects caused by water loss, mechanical damage, or fungal decay. Non-destructive fruit quality evaluation using computer vision techniques and artificial intelligence can reduce food postharvest losses [23]. Artificial intelligence (AI) is increasingly used in agriculture, including precision agriculture and smart farming, also to obtain better yield quality. Artificial intelligence can help humanity address some of the most important challenges, such as feeding a rapidly increasing human population [24]. AI techniques are widely used in various fields of smart farming and agriculture for monitoring the quality of fruit [25]. The robustness and fault tolerance of fruit quality control can be enhanced by the ability to learn and continuously adapt AI systems. Computer vision systems are composed of an imaging device, e.g., a digital camera; a light source; and computer hardware with software. These systems can enable the measurements of quality parameters of products due to image acquisition, segmentation, feature extraction, classification, and data interpretation [26]. Computer vision as a part of AI allows the classification of fruit based on quality and identification of damages [27]. Fruit classification using machine vision using appropriate image features and learning algorithms can result in achieving the maximum economic value of fruit efficiently and accurately [28].
In this study, an innovative approach to monitoring the quality of black currant during storage was used. The undertaken research was intended to extend the use of artificial intelligence in fruit quality assessment. This study aimed to prove the effectiveness of the models developed based on image textures using artificial intelligence algorithms to identify changes in the quality of black currant with increasing time during storage under various conditions. The novelty of the present study was related to the classification of black currant samples using models built for textures selected for color space RGB including images from color channels R, G, and B; color space Lab, images from color channels L, a, and b; and color space XYZ, images from color channels X, Y, and Z. In the case of each color space, textures with the highest power for distinguishing the samples were selected from sets of 543 image parameters. The application of image analysis and artificial intelligence allowed for the objective, non-destructive, fast, and inexpensive assessment of the quality of stored black currant.

2. Materials and Methods

2.1. Materials

The black currants were harvested on 1 August from a garden located in Olsztyn in northeastern Poland. Black currant berries were characterized by maturity but were not overripe. The black currant bunches were transported to the laboratory in plastic boxes with perforated walls. Only fully developed and undamaged black currants from each bunch were considered. Storage experiments began immediately after the fruit was harvested. Two hundred black currants were sampled to divide them into a set of one hundred objects intended to be stored in a room and a set of one hundred objects for storage in a refrigerator. Berries were arranged in a single layer at the bottom of the plastic boxes with perforated walls. One hundred black currants stored in the room were placed in a shaded place at an ambient temperature of 20 ± 1 °C. The remaining one hundred black currants were stored at a low temperature of 3 °C (refrigerator). Black currants were stored for two weeks.

2.2. Image Processing

The vision system was composed of a digital camera (Canon Inc., Tokyo, Japan), two LED (light-emitting diode) lamps as a light source, and a computer (HP Inc., Palo Alto, CA, USA) with programs for image analysis and classification. The imaging was performed in a completely dark room. Black currants were placed on a white surface. Samples were imaged directly after harvest, treating the part for storage in the room and the part for storage in the refrigerator separately. For each set of one hundred black currants, five images were obtained with twenty fruits in each image. Then, samples were subjected to storage for one week. After one week, black currants stored at room temperature and in the refrigerator were imaged again. In the case of the fruit stored in the refrigerator, no changes in the shape and structure of the outer surface were visible to the naked eye. In the case of samples kept in the room, only some of the fruit showed visible quality changes, such as wrinkling, water and mass losses, color fading, and changes in gloss. Based on visual observations, it was decided to extend the storage for another week. Afterward, the images of samples stored in the room and the refrigerator for two weeks were acquired. After two weeks of storage under room conditions, all black currants were wrinkled with visible loss of water and mass and changes in color and gloss that indicated a distinct change in quality. The changes were less noticeable for the fruit stored at a lower temperature in the refrigerator. However, after two weeks of storage, the quality of the fruit in the room did not allow the experiment to be continued.
The obtained images for unstored black currant and samples stored for one and two weeks in the room and the refrigerator were processed with the use of the MaZda software (Łódź University of Technology, Institute of Electronics, Łódź, Poland) [29,30,31]. Firstly, the images were converted to the BMP (bitmap) file format, and the background of the images was changed to black (intensity of 0). Then, the image conversion to individual color channels R, G, B, L, a, b, X, Y, and Z; the image segmentation based on the pixel brightness intensity; and image texture extraction were carried out using MaZda (Łódź University of Technology, Institute of Electronics, Łódź, Poland). In the case of each fruit, 181 texture parameters based on the gradient map, histogram, autoregressive model, co-occurrence matrix, and run-length matrix were computed for images from each color channel.

2.3. Classification of Black Currant Stored under Different Conditions

The dataset was divided into six classes: black currants at the beginning of storage in the room (room 0), black currants stored at room temperature for 1 week (room 1) and 2 weeks (room 2), black currants before storage in the refrigerator (refrigerator 0), and black currants after storage in the refrigerator for 1 week (refrigerator 1) and 2 weeks (refrigerator 2). The classification was performed to compare the influence of prolonged time of storage at room temperature and a lower temperature in the refrigerator on black currant quality. Models for distinguishing black currants were built for classes of room 0 vs. room 1 vs. room 2 and refrigerator 0 vs. refrigerator 1 vs. refrigerator 2. The models were developed using WEKA machine learning software (Machine Learning Group, University of Waikato, New Zealand) [32,33,34] based on selected textures for RGB, Lab, and XYZ color spaces. The texture selection was carried out using the best-first search algorithm with the correlation-based feature selection (CFS) subset evaluator. A test mode of 10-fold cross-validation was used for the model development. The algorithms from groups of Lazy, Functions, Meta, Rules, Trees, and Bayes were tested, and the results obtained using one most effective algorithm from each group were chosen to be presented in this paper. The results obtained for each model are shown as average accuracy; kappa statistic; and weighted averages of precision, recall, Matthews correlation coefficient (MCC), receiver operating characteristic (ROC) area, and precision–recall (PRC) area [35,36]. For selected models, confusion matrices are also presented to better understand the impact of storage on black currant samples.

3. Results and Discussion

The black currant samples were classified as unstored vs. stored in the room for one week vs. stored in the room for two weeks and unstored vs. stored in the refrigerator for one week vs. stored in the refrigerator for two weeks. The exemplary images of unstored black currants and samples stored under different conditions for different times are presented in Figure 1.
Among the algorithms belonging to different groups, IBk from the group of Lazy, multilayer perceptron from Functions, multiclass classifier from Meta, JRip from Rules, random forest from Trees, and Bayes net from Bayes turned out to be the most effective. In the first stage of the classification of black currant samples, models were developed based on textures selected from sets of combined features from R, G, and B color channels of images belonging to the color space RGB. In the case of storage at room temperature, the unstored sample and black currants stored for one and two weeks were distinguished with an average accuracy reaching 100% for models developed using the IBk, multilayer perceptron, and multiclass classifier (Table 1). The kappa statistic and weighted averages of precision, recall, MCC, ROC area, and PRC area were equal to 1.000. This meant that all three classes were completely different in terms of selected image textures of the outer surface of black currant and were distinguished with 100% correctness from other samples. Thus, the strong influence of storage time on the fruit quality was revealed. The structure of the black currant surface changed after one week of storage sufficiently to distinguish the unstored sample from those stored for a week with 100% accuracy. Storage for another week influenced further changes in the quality of black currants. Classes of samples stored for two weeks and one week were correctly classified in 100% of cases and fruit samples stored for two weeks were also distinguished from unstored ones with an accuracy of 100% (Figure 2a). Due to the differences in quality of all three samples (unstored, stored in the room for one and two weeks) allowing for their completely correct differentiation, the average accuracy was equal to 100%. Models developed using other machine learning algorithms provided also satisfactory results including an average accuracy of up to 99.32% for random forest and Bayes net and 98.67% for JRip (Table 1). For the JRip algorithm providing the lowest average accuracy, samples stored in the room for one and two weeks were correctly distinguished from each other and unstored class in 100% of cases. Unstored black currants were correctly classified in 96% of cases, and the remaining 2% were included in the class of fruit stored for one week and 2% in the class of sample stored for two weeks (Figure 2b).
In the case of models built based on selected textures for RGB color space to classify unstored black currants and samples stored in the refrigerator for one and two weeks, a 100% accuracy was not achieved (Table 2). This may indicate a reduced negative influence of storage at lower temperature on the quality of black currants. All classes were distinguished with an average accuracy of up to 96.67% for models built using IBk, multilayer perceptron, and Bayes net. For these algorithms, the kappa statistic reached 0.950 and recall reached 0.967. The values (weighted averages) of precision equal to 0.968 and MCC equal to 0.951 were the highest for IBk and multilayer perceptron. The ROC area of 0.998 and PRC area of 0.996 were the highest for Bayes net (Table 2). Different values of other performance metrics, despite the same average accuracy, resulted from different accuracies of classifying individual samples as shown in Figure 3a,b. For example, in the case of the IBk algorithm, black currants stored in the refrigerator for two weeks were completely correctly classified (100%) as stored in the refrigerator for two weeks, and for Bayes net, the correctness was equal to 96%. The sample stored in the refrigerator for one week was classified with accuracies of 92% for IBk and 96% for Bayes net, whereas 98% of black currants belonging to the actual class unstored were correctly classified as unstored for both IBk and Bayes net algorithms. The JRip algorithm was characterized by the lowest average accuracy (89.33%) in distinguishing unstored fruit and samples stored in the refrigerator for one and two weeks. In addition, other metrics were the lowest and equal to 0.840 for kappa statistic, 0.896 for precision, 0.893 for recall, 0.841 for MCC, 0.932 for ROC area, and 0.857 for PRC area (Table 2). Low values of classification performance metrics for the JRip algorithm were related to the low correctness of distinguishing between individual classes. The accuracies of classification of the unstored sample and black currants stored for one and two weeks were equal to 92%, 86%, and 90%, respectively (Figure 3c).
For the Lab color space, the obtained results were also very high. However, an average accuracy of 100% and the kappa statistic and weighted averages of precision, recall, MCC, ROC area, and PRC area equal to 1.000 for distinguishing unstored black currants and samples stored in the room for one and two weeks were found only for a model built using the IBk algorithm (Table 3). In the case of results for storage at room temperature, other algorithms allowed the classification of samples with an average accuracy of 96.67% for JRip to 99.33% for multilayer perceptron. Confusion matrices shown in Figure 4 confirmed the completely correct distinguishing of three samples for IBk (Figure 4a) and revealed the lowest accuracies equal to 92% for the unstored sample, 98% for the sample stored in the room for one week, and 100% for fruit stored in the room for two weeks in the case of JRip (Figure 4b).
The completely correct classification of three samples, namely unstored and stored in the refrigerator for one and two weeks, was not observed for any model built based on selected textures from the Lab color space (Table 4). The average accuracies were lower, from 91.39% for JRip to 98.67% for multilayer perceptron. The model developed using multilayer perceptron provided the highest values of kappa statistic (0.9801), precision (0.987), recall (0.987), MCC (0.980), ROC area (1.000), and PRC area (0.999). The accuracies for individual classes were the highest for multilayer perceptron (100% for the unstored sample and 98% for both samples stored for one and two weeks) (Figure 5a) and the lowest for JRip (96% for the unstored sample, 86% for the sample stored for one week, and 93% for the sample stored for weeks) (Figure 5b).
Models built based on selected textures from XYZ color space for the classification of stored in the room and unstored samples were characterized by the correctness from 93.33% for multiclass classifier to 98.67% for random forest (Table 5). The kappa statistic reached 0.980 for random forest. The weighted averages of precision (0.987), recall (0.987), and MCC (0.980) were also the highest for the model developed using random forest. The weighted averages of ROC area (0.999) and PRC area (0.998) were the highest for the model built using Bayes net classifying samples with an average accuracy of 97.33%. The confusion matrix obtained for the classification performed using random forest revealed an accuracy of 100% for black currants stored at room temperature for one week and 95% for the unstored sample and fruit stored in the room for two weeks (Figure 6a). Multiclass classifier, distinguishing classes with the lowest average accuracy, was characterized by 90% correctness for the unstored sample, 94% for fruit stored for one week, and 96% for black currants stored for two weeks in the room (Figure 6b).
The average accuracy of classification of unstored black currants and fruit stored in the refrigerator for one and two weeks reached 97.33% for models developed using random forest based on textures selected from XYZ color space (Table 6). For this model, other classification performance metrics were also the highest. The kappa statistic was equal to 0.9603. Additionally, the highest weighted averages of precision (0.974), recall (0.973), MCC (0.960), ROC area (0.998), and PRC area (0.996) were determined. The obtained confusion matrix showed that unstored fruit and sample stored in the refrigerator for two weeks were classified with an accuracy of 98%, and the sample stored in the refrigerator for one week were distinguished from others at an accuracy of 96% (Figure 7a). The lowest average accuracy was equal to 89.33% in the case of the multiclass classifier (Table 6). The multiclass classifier produced accuracies for individual classes equal to 98% for unstored fruit, 82% for fruit stored in the refrigerator for one week, and 88% for black currants stored in the refrigerator for two weeks (Figure 7b).
The combination of image analysis and artificial intelligence proved to be effective for monitoring the changes in black currants during storage. The experiments carried out included different storage conditions (at room temperature and in the refrigerator at 4 °C) and lengths of time (one week and two weeks). However, in view of the usefulness of the procedure used, there are many different possibilities to extend the scope of the experiments to other storage technologies that may also result in an extension of the storage time. Among others, it was reported that lowering the temperature to 0–1 °C combined with a relative humidity of 95% can be optimal conditions in a normal atmosphere (NA) for storing berries for up to 3 weeks. Furthermore, currants do not produce ethylene and are not susceptible to ethylene, but sulfur dioxide can be positively related to a modified atmosphere strategy [37]. In the case of the treatment of berries with sulfur dioxide during storage, abscission can be inhibited by the use of edible coatings [38]. Besides modified atmosphere packaging (MAP) and controlled atmosphere (CA), a successful solution for the storage of perishable fruit such as berries is the use of gaseous ozone (O3), which can be safer than other gases such as CO2, O2, and N2 [39]. Gaseous ozone can also be effective in the reduction of pesticide residue levels in currants and improvement of microbiological purity and can lead to berry fruit preservation and long-term storage [40,41]. Gaseous ozone can be applied as a pretreatment before the use of other storage techniques for berries, e.g., modified atmosphere packaging [42]. The application of ozone may result in improving the health-promoting properties of the fruit. However, the effect depends on the type and variety of fruit, the form and method of treatment, and the dosage of ozone [43]. The influence of the above-mentioned and other technologies on the external structure of black currants could also be assessed using image analysis and machine learning. This could allow the development of models to predict the maintenance of optimal fruit structure during storage under various conditions. Furthermore, different storage technologies can affect changes in biochemical and other quality indicators, e.g., total soluble solids, citric acid, vitamin C, the total content of phenolic compounds, color, firmness, and taste [22]. In further studies, models to predict the chemical properties of stored black currants can be developed. The available literature data indicate the possibility of using image processing and machine learning to estimate the chemical properties of plant materials [44,45].

4. Conclusions

Procedures for the classification of unstored black currants and fruit stored in the room for one and two weeks and in the refrigerator for one and two weeks were developed. The innovative models including textures selected separately for images from color space RGB, color space Lab, and color space XYZ were built using machine learning algorithms belonging to groups of Lazy, Functions, Meta, Rules, Trees, and Bayes. Combining image processing and artificial intelligence was a non-destructive and objective approach to quality monitoring of stored black currant. Due to the use of a digital camera to obtain the color images of unstored and stored black currant samples, image acquisition was performed quickly and inexpensively. The models developed proved to be very effective. The greater effect of storage in the room on the black currant quality was determined. The average accuracy of the classification of unstored samples and fruit stored at room temperature for one and two weeks reached 100%, whereas unstored black currants and samples stored in a refrigerator were distinguished with an average accuracy of up to 98.67%. This confirmed the possibility of determining the changes in black currant quality during storage using image features. Due to the promising results, further research to investigate the influence of other storage technologies on the structure of black currants and predict the chemical properties of stored fruit using image processing and machine learning may be undertaken.

Funding

This research received no external funding.

Data Availability Statement

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

Conflicts of Interest

The author declares no conflict of interest.

Abbreviations

aColor component—green for negative and red for positive values
bColor component—blue for negative and yellow for positive values
BBlue
BMPBitmap
CAControlled atmosphere
CFSCorrelation-based feature selection
GGreen
LLightness component from black to white
LabColor space composed of color channels L, a, and b
LEDLight-emitting diode
MAPModified atmosphere packaging
MCCMatthews correlation coefficient
NANormal atmosphere
O3Gaseous ozone
PRC AreaPrecision–recall area
RRed
RGBColor space composed of color channels R, G, and B
ROC AreaReceiver operating characteristic area
XComponent with color information
XYZColor space composed of color channels X, Y, and Z
YLightness
ZComponent with color information

References

  1. Jurčaga, L.; Bobko, M.; Kolesárová, A.; Bobková, A.; Demianová, A.; Haščík, P.; Belej, Ľ.; Mendelová, A.; Bučko, O.; Kročko, M.; et al. Blackcurrant (Ribes nigrum L.) and Kamchatka Honeysuckle (Lonicera caerulea var. Kamtschatica) Extract Effects on Technological Properties, Sensory Quality, and Lipid Oxidation of Raw-Cooked Meat Product (Frankfurters). Foods 2021, 10, 2957. [Google Scholar] [CrossRef]
  2. Gang, H.; Zhang, D.; Sun, X.; Huo, J.; Qin, D. Influences of Shading on Ascorbic Acid Biosynthesis of Blackcurrant (Ribes nigrum L.). Forests 2022, 13, 1127. [Google Scholar] [CrossRef]
  3. Djordjević, B.; Djurović, D.; Zec, G.; Dabić Zagorac, D.; Natić, M.; Meland, M.; Fotirić Akšić, M. Does Shoot Age Influence Biological and Chemical Properties in Black Currant (Ribes nigrum L.) Cultivars? Plants 2022, 11, 866. [Google Scholar] [CrossRef]
  4. Cortez, R.E.; Gonzalez de Mejia, E. Blackcurrants (Ribes nigrum): A Review on Chemistry, Processing, and Health Benefits. J. Food Sci. 2019, 84, 2387–2401. [Google Scholar] [CrossRef] [Green Version]
  5. Kowalski, R.; Gonzalez de Mejia, E. Phenolic composition, antioxidant capacity and physical characterization of ten blackcurrant (Ribes nigrum) cultivars, their juices, and the inhibition of type 2 diabetes and inflammation biochemical markers. Food Chem. 2021, 359, 129889. [Google Scholar] [CrossRef]
  6. Georgescu, C.; Frum, A.; Virchea, L.-I.; Sumacheva, A.; Shamtsyan, M.; Gligor, F.-G.; Olah, N.K.; Mathe, E.; Mironescu, M. Geographic Variability of Berry Phytochemicals with Antioxidant and Antimicrobial Properties. Molecules 2022, 27, 4986. [Google Scholar] [CrossRef]
  7. Marsol-Vall, A.; Laaksonen, O.; Yang, B. Effects of processing and storage conditions on volatile composition and odor characteristics of blackcurrant (Ribes nigrum) juices. Food Chem. 2019, 293, 151–160. [Google Scholar] [CrossRef]
  8. Rachtan-Janicka, J.; Ponder, A.; Hallmann, E. The Effect of Organic and Conventional Cultivations on Antioxidants Content in Blackcurrant (Ribes nigrum L.) Species. Appl. Sci. 2021, 11, 5113. [Google Scholar] [CrossRef]
  9. Gopalan, A.; Reuben, S.C.; Ahmed, S.; Darvesh, A.S.; Hohmann, J.; Bishayee, A. The health benefits of blackcurrants. Food Funct. 2012, 3, 795–809. [Google Scholar] [CrossRef]
  10. Pott, D.M.; Durán-Soria, S.; William Allwood, J.; Pont, S.; Gordon, S.L.; Jennings, N.; Austin, C.; Stewart, D.; Brennan, R.M.; Masny, A.; et al. Dissecting the impact of environment, season and genotype on blackcurrant fruit quality traits. Food Chem. 2023, 402, 134360. [Google Scholar] [CrossRef]
  11. Pages-Helary, S.; Dujourdy, L.; Cayot, N. Flavor compounds in blackcurrant berries: Multivariate analysis of datasets obtained with natural variability and various experimental parameters. LWT—Food Sci. Technol. 2022, 153, 112425. [Google Scholar] [CrossRef]
  12. Xue, B.; Hui, X.; Chen, X.; Luo, S.; Dilrukshi, H.N.N.; Wu, G.; Chen, C. Application, emerging health benefits, and dosage effects of blackcurrant food formats. J. Funct. Foods 2022, 95, 105147. [Google Scholar] [CrossRef]
  13. Xu, Y.; Niu, X.; Liu, N.; Gao, Y.; Wang, L.; Xu, G.; Li, X.; Yang, Y. Characterization, antioxidant and hypoglycemic activities of degraded polysaccharides from blackcurrant (Ribes nigrum L.) fruits. Food Chem. 2018, 243, 26–35. [Google Scholar] [CrossRef]
  14. Shin, C.Y.; Lee, M.-H.; Kim, H.-M.; Chung, H.-C.; Kim, D.-U.; Lee, J.-H.; Jeong, K.W. Protective Effect of Ribes nigrum Extract against Blue Light-Induced Retinal Degeneration In Vitro and In Vivo. Antioxidants 2022, 11, 832. [Google Scholar] [CrossRef]
  15. Bakowska-Barczak, A.M.; Kolodziejczyk, P.P. Black currant polyphenols: Their storage stability and microencapsulation. Ind. Crops Prod. 2011, 34, 1301–1309. [Google Scholar] [CrossRef]
  16. Djordjevic, B.; Savikin, K.; Zdunic, G.; Jankovic, T.; Vulic, T.; Pljevljakusic, D.; Oparnica, C. Biochemical properties of the fresh and frozen black currants and juices. J. Med. Food. 2013, 16, 73–81. [Google Scholar] [CrossRef]
  17. Harb, J.; Bisharat, R.; Streif, J. Changes in volatile constituents of blackcurrants (Ribes nigrum L. cv. ‘Titania’) following controlled atmosphere storage. Postharvest Biol. Technol. 2008, 47, 271–279. [Google Scholar] [CrossRef]
  18. Kampuse, S.; Kampuss, K.; Pizika, L. Stability of anthocyanins and ascorbic acid in raspberry and blackcurrant cultivars during frozen storage. Acta Hortic. ISHS 2002, 585, 507–510. [Google Scholar] [CrossRef]
  19. King, E.S.; Noll, A.; Glenn, S.; Bolling, B.W. Refrigerated and frozen storage impact aronia berry quality. Food Prod. Process. Nutr. 2022, 4, 3. [Google Scholar] [CrossRef]
  20. Mikulic-Petkovsek, M.; Koron, D.; Veberic, R. Quality parameters of currant berries from three different cluster positions. Sci. Hortic. 2016, 210, 188–196. [Google Scholar] [CrossRef]
  21. Segantini, D.M.; Threlfall, R.; Clark, J.R.; Brownmiller, C.R.; Howard, L.R.; Lawless, L.J.R. Changes in fresh-market and sensory attributes of blackberry genotypes after postharvest storage. J. Berry Res. 2017, 7, 129–145. [Google Scholar] [CrossRef]
  22. Gudkovskii, V.A.; Kozhina, L.V.; Akimov, M.Y.; Zhidekhina, T.V. Innovative storage technology of modern commercial black currant cultivars. Acta Hortic. 2020, 1277, 487–493. [Google Scholar] [CrossRef]
  23. Nturambirwe, J.F.I.; Opara, U.L. Machine learning applications to non-destructive defect detection in horticultural products. Biosyst. Eng. 2020, 189, 60–83. [Google Scholar] [CrossRef]
  24. Shaikh, T.A.; Rasool, T.; Lone, F.R. Towards leveraging the role of machine learning and artificial intelligence in precision agriculture and smart farming. Comput. Electron. Agric. 2022, 198, 107119. [Google Scholar] [CrossRef]
  25. Sharma, A.; Georgi, M.; Tregubenko, M.; Tselykh, A.; Tselykh, A. Enabling smart agriculture by implementing artificial intelligence and embedded sensing. Comput. Ind. Eng. 2022, 165, 107936. [Google Scholar] [CrossRef]
  26. Chen, J.; Zhang, M.; Xu, B.; Sun, J.; Mujumdar, A.S. Artificial Intelligence Assisted Technologies for Controlling the Drying of Fruits and Vegetables Using Physical Fields: A Review. Trends Food Sci. Technol. 2020, 105, 251–260. [Google Scholar] [CrossRef]
  27. Addanki, M.; Patra, P.; Kandra, P. Recent advances and applications of artificial intelligence and related technologies in the food industry. Appl. Food Res. 2022, 2, 100126. [Google Scholar] [CrossRef]
  28. Chen, X.; Zhou, G.; Chen, A.; Pu, L.; Chen, W. The fruit classification algorithm based on the multi-optimization convolutional neural network. Multimed. Tools Appl. 2021, 80, 11313–11330. [Google Scholar] [CrossRef]
  29. Strzelecki, M.; Szczypiński, P.; Materka, A.; Klepaczko, A. A software tool for automatic classification and segmentation of 2D/3Dmedical images. Nucl. Inst. Methods Phys. Res. A 2013, 702, 137–140. [Google Scholar] [CrossRef]
  30. Szczypiński, P.M.; Strzelecki, M.; Materka, A.; Klepaczko, A. MaZda—A software package for image texture analysis. Comput. Methods Progr. Biomed. 2009, 94, 66–76. [Google Scholar] [CrossRef]
  31. Szczypiński, P.M.; Strzelecki, M.; Materka, A. MaZda—A software for texture analysis. In Proceedings of the ISITC, Jeonju, Korea, 23 November 2007; pp. 245–249. [Google Scholar]
  32. 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]
  33. Frank, E.; Hall, M.A.; Witten, I.H. The WEKA workbench. Online appendix for data mining: Practical machine learning tools and techniques. In Morgan Kaufmann; Morgan Kaufmann Publishers: Burlington, MA, USA, 2016. [Google Scholar]
  34. Witten, I.H.; Frank, E. Data Mining: Practical Machine Learning Tools and Techniques, 2nd ed.; Elsevier: Amsterdam, The Netherlands, 2005. [Google Scholar]
  35. 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]
  36. 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]
  37. Brondino, L.; Cadario, D.; Giuggioli, N.R. Influence of a Sulphur Dioxide Active Storage System on the Quality of Ribes rubrum L. Berries. Pol. J. Food Nutr. Sci. 2021, 71, 279–288. [Google Scholar] [CrossRef]
  38. Chen, R.; Wu, P.; Cao, D.; Tian, H.; Chen, C.; Zhu, B. Edible Coatings Inhibit the Postharvest Berry Abscission of Table Grapes Caused by Sulfur Dioxide during Storage. Postharvest Biol. Technol. 2019, 152, 1–8. [Google Scholar] [CrossRef]
  39. Giuggioli, N.R.; Briano, R.; Girgenti, V.; Peano, C. Quality effect of ozone treatment for the red raspberries storage. Chem. Eng. Trans. 2015, 44, 25–30. [Google Scholar]
  40. Antos, P.; Kurdziel, A.; Sadło, S.; Balawejder, M. Preliminary study on the use of ozonation for the degradation of dithiocarbamate residues in the fruit drying process, mancozeb residue in blackcurrant is the example used. J. Plant Prot. Res. 2013, 53, 48–52. [Google Scholar] [CrossRef]
  41. Lone, S.A.; Raghunathan, S.; Davoodbasha, M.A.; Srinivasan, H.; Lee, S.-Y. An investigation on the sterilization of berry fruit using ozone: An option to preservation and long-term storage. Biocatal. Agric. Biotechnol. 2019, 20, 101212. [Google Scholar] [CrossRef]
  42. Pinto, L.; Palma, A.; Cefola, M.; Pace, B.; D’Aquino, S.; Carboni, C.; Baruzzi, F. Effect of modified atmosphere packaging (MAP) and gaseous ozone pre-packaging treatment on the physico-chemical, microbiological and sensory quality of small berry fruit. Food Packag. Shelf Life 2020, 26, 100573. [Google Scholar] [CrossRef]
  43. Sachadyn-Król, M.; Agriopoulou, S. Ozonation as a Method of Abiotic Elicitation Improving the Health-Promoting Properties of Plant Products—A Review. Molecules 2020, 25, 2416. [Google Scholar] [CrossRef]
  44. Nazari, L.; Shaker, M.; Karimi, A.; Ropelewska, E. Correlations between the textural features and chemical properties of sorghum grain using the image processing method. Eur. Food Res. Technol. 2021, 247, 333–342. [Google Scholar] [CrossRef]
  45. Nazari, L.; Khazaei, A.; Ropelewska, E. Prediction of tannin, protein, and total phenolic content of grain sorghum using image analysis and machine learning. Cereal Chem. 2022, 99, 843–849. [Google Scholar] [CrossRef]
Figure 1. The images of unstored black currants at the beginning of experiments and samples stored in the room and the refrigerator for one week and two weeks.
Figure 1. The images of unstored black currants at the beginning of experiments and samples stored in the room and the refrigerator for one week and two weeks.
Foods 11 03589 g001
Figure 2. The confusion matrices of the classification of three classes of black currants, namely unstored (room 0) and stored at room temperature for 1 week (room 1) and 2 weeks (room 2), based on selected image textures from color space RGB using models developed using the IBk (a) and JRip algorithms (b).
Figure 2. The confusion matrices of the classification of three classes of black currants, namely unstored (room 0) and stored at room temperature for 1 week (room 1) and 2 weeks (room 2), based on selected image textures from color space RGB using models developed using the IBk (a) and JRip algorithms (b).
Foods 11 03589 g002
Figure 3. The confusion matrices of the classification of black currant samples, namely unstored (refrigerator 0) and stored in the refrigerator for 1 week (refrigerator 1) and 2 weeks (refrigerator 2), using selected image textures from color space RGB for the models built using the IBk (a), Bayes net, (b) and JRip algorithms (c).
Figure 3. The confusion matrices of the classification of black currant samples, namely unstored (refrigerator 0) and stored in the refrigerator for 1 week (refrigerator 1) and 2 weeks (refrigerator 2), using selected image textures from color space RGB for the models built using the IBk (a), Bayes net, (b) and JRip algorithms (c).
Foods 11 03589 g003
Figure 4. The confusion matrices of distinguishing unstored black currants (room 0) and fruit stored in the room for 1 week (room 1) and 2 weeks (room 2) using models including selected image textures from color space Lab built using the IBk (a) and JRip (b).
Figure 4. The confusion matrices of distinguishing unstored black currants (room 0) and fruit stored in the room for 1 week (room 1) and 2 weeks (room 2) using models including selected image textures from color space Lab built using the IBk (a) and JRip (b).
Foods 11 03589 g004
Figure 5. The confusion matrices of distinguishing unstored black currants (refrigerator 0) and samples stored in the refrigerator for 1 week (refrigerator 1) and 2 weeks (refrigerator 2) for models including selected image textures from color space Lab developed using the multilayer perceptron (a) and JRip (b).
Figure 5. The confusion matrices of distinguishing unstored black currants (refrigerator 0) and samples stored in the refrigerator for 1 week (refrigerator 1) and 2 weeks (refrigerator 2) for models including selected image textures from color space Lab developed using the multilayer perceptron (a) and JRip (b).
Foods 11 03589 g005
Figure 6. The confusion matrices of distinguishing unstored black currants (room 0) and samples stored in the room for 1 week (room 1) and 2 weeks (room 2) using models combining selected image textures from color space XYZ developed using random forest (a) and multiclass classifier (b).
Figure 6. The confusion matrices of distinguishing unstored black currants (room 0) and samples stored in the room for 1 week (room 1) and 2 weeks (room 2) using models combining selected image textures from color space XYZ developed using random forest (a) and multiclass classifier (b).
Foods 11 03589 g006
Figure 7. The confusion matrices of the classification of unstored black currants (refrigerator 0) and fruit stored in the refrigerator for 1 week (refrigerator 1) and 2 weeks (refrigerator 2) using models including selected image textures from color space XYZ built using random forest (a) and multiclass classifier (b).
Figure 7. The confusion matrices of the classification of unstored black currants (refrigerator 0) and fruit stored in the refrigerator for 1 week (refrigerator 1) and 2 weeks (refrigerator 2) using models including selected image textures from color space XYZ built using random forest (a) and multiclass classifier (b).
Foods 11 03589 g007
Table 1. The performance metrics of the classification of three classes of black currants (unstored, stored in the room for one week, and stored in the room for two weeks) based on models including selected image textures from color space RGB built using different algorithms.
Table 1. The performance metrics of the classification of three classes of black currants (unstored, stored in the room for one week, and stored in the room for two weeks) based on models including selected image textures from color space RGB built using different algorithms.
AlgorithmAverage Accuracy (%)Kappa StatisticPrecision
(Weighted Average)
Recall
(Weighted Average)
MCC
(Weighted Average)
ROC Area
(Weighted Average)
PRC Area
(Weighted Average)
lazy.IBk1001.0001.0001.0001.0001.0001.000
functions.MultilayerPerceptron1001.0001.0001.0001.0001.0001.000
meta.MultiClassClassifier1001.0001.0001.0001.0001.0001.000
rules.JRip98.670.97960.9870.9870.9800.9890.976
trees.RandomForest99.320.98980.9930.9930.9901.0001.000
bayes.BayesNet99.320.98980.9930.9930.9901.0001.000
MCC—Matthews correlation coefficient; ROC Area—receiver operating characteristic area; PRC Area—precision–recall area.
Table 2. The results of the classification of black currants (unstored, stored in the refrigerator for one week and two weeks) using models developed based on selected image textures from color space RGB using algorithms from different groups.
Table 2. The results of the classification of black currants (unstored, stored in the refrigerator for one week and two weeks) using models developed based on selected image textures from color space RGB using algorithms from different groups.
AlgorithmAverage Accuracy (%)Kappa StatisticPrecision
(Weighted Average)
Recall
(Weighted Average)
MCC
(Weighted Average)
ROC Area
(Weighted Average)
PRC Area
(Weighted Average)
lazy.IBk96.670.9500.9680.9670.9510.9750.947
functions.MultilayerPerceptron96.670.9500.9680.9670.9510.9930.989
meta.MultiClassClassifier95.330.9300.9540.9530.9300.9850.970
rules.JRip89.330.8400.8930.8930.8410.9320.857
trees.RandomForest96.000.9400.9600.9600.9400.9970.993
bayes.BayesNet96.670.9500.9670.9670.9500.9980.996
MCC—Matthews correlation coefficient; ROC Area—receiver operating characteristic area; PRC Area—precision–recall area.
Table 3. The average accuracies, kappa statistic values, and weighted averages of other classification performance metrics for distinguishing unstored black currants and samples stored at room temperature for one week and two weeks using models combining selected textures from color space Lab.
Table 3. The average accuracies, kappa statistic values, and weighted averages of other classification performance metrics for distinguishing unstored black currants and samples stored at room temperature for one week and two weeks using models combining selected textures from color space Lab.
AlgorithmAverage Accuracy (%)Kappa StatisticPrecision
(Weighted Average)
Recall
(Weighted Average)
MCC
(Weighted Average)
ROC Area
(Weighted Average)
PRC Area
(Weighted Average)
lazy.IBk1001.0001.0001.0001.0001.0001.000
functions.MultilayerPerceptron99.330.9900.9930.9930.9900.9980.997
meta.MultiClassClassifier98.670.9800.9870.9870.9800.9980.998
rules.JRip96.670.9500.9670.9670.9500.9770.955
trees.RandomForest97.330.9600.9730.9730.9600.9990.998
bayes.BayesNet97.330.9600.9740.9730.9600.9980.997
MCC—Matthews correlation coefficient; ROC Area—receiver operating characteristic area; PRC Area—precision–recall area.
Table 4. The performance metrics of distinguishing unstored black currants and black currants stored in the refrigerator (for one week and two weeks) based on models including selected textures from color space Lab developed using different algorithms.
Table 4. The performance metrics of distinguishing unstored black currants and black currants stored in the refrigerator (for one week and two weeks) based on models including selected textures from color space Lab developed using different algorithms.
AlgorithmAverage Accuracy (%)Kappa StatisticPrecision
(Weighted Average)
Recall
(Weighted Average)
MCC
(Weighted Average)
ROC Area
(Weighted Average)
PRC Area
(Weighted Average)
lazy.IBk96.690.95030.9680.9670.9510.9730.944
functions.MultilayerPerceptron98.670.98010.9870.9870.9801.0000.999
meta.MultiClassClassifier98.010.97020.9810.9800.9710.9990.997
rules.JRip91.390.87080.9140.9140.8710.9400.883
trees.RandomForest96.690.95030.9680.9670.9510.9970.994
bayes.BayesNet95.360.93050.9540.9540.9330.9960.993
MCC—Matthews correlation coefficient; ROC Area—receiver operating characteristic area; PRC Area—precision–recall area.
Table 5. The results of distinguishing unstored black currants and samples stored in the room for one week and two weeks using models built based on selected textures from color space XYZ.
Table 5. The results of distinguishing unstored black currants and samples stored in the room for one week and two weeks using models built based on selected textures from color space XYZ.
AlgorithmAverage Accuracy (%)Kappa StatisticPrecision
(Weighted Average)
Recall
(Weighted Average)
MCC
(Weighted Average)
ROC Area
(Weighted Average)
PRC Area
(Weighted Average)
lazy.IBk980.9700.9800.9800.9700.9850.967
functions.MultilayerPerceptron980.9700.9800.9800.9700.9950.995
meta.MultiClassClassifier93.330.9000.9330.9330.9000.9690.954
rules.JRip980.9700.9800.9800.9700.9880.973
trees.RandomForest98.670.9800.9870.9870.9800.9970.996
bayes.BayesNet97.330.9600.9730.9730.9600.9990.998
MCC—Matthews correlation coefficient; ROC Area—receiver operating characteristic area; PRC Area—precision–recall area.
Table 6. The performance metrics of the classification of unstored black currants and black currants stored in the refrigerator (one and two weeks) based on models developed based on selected textures from color space XYZ using different algorithms.
Table 6. The performance metrics of the classification of unstored black currants and black currants stored in the refrigerator (one and two weeks) based on models developed based on selected textures from color space XYZ using different algorithms.
AlgorithmAverage Accuracy (%)Kappa StatisticPrecision
(Weighted Average)
Recall
(Weighted Average)
MCC
(Weighted Average)
ROC Area
(Weighted Average)
PRC Area
(Weighted Average)
lazy.IBk96.030.94040.9610.9600.9410.9670.933
functions.MultilayerPerceptron94.700.92050.9470.9470.9210.9960.993
meta.MultiClassClassifier89.330.8410.8930.8930.8410.9830.964
rules.JRip93.380.90060.9350.9340.9010.9610.930
trees.RandomForest97.330.96030.9740.9730.9600.9980.996
bayes.BayesNet95.330.9300.9540.9530.9300.9910.984
MCC—Matthews correlation coefficient; ROC Area—receiver operating characteristic area; PRC Area—precision–recall area.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Ropelewska, E. Application of Imaging and Artificial Intelligence for Quality Monitoring of Stored Black Currant (Ribes nigrum L.). Foods 2022, 11, 3589. https://doi.org/10.3390/foods11223589

AMA Style

Ropelewska E. Application of Imaging and Artificial Intelligence for Quality Monitoring of Stored Black Currant (Ribes nigrum L.). Foods. 2022; 11(22):3589. https://doi.org/10.3390/foods11223589

Chicago/Turabian Style

Ropelewska, Ewa. 2022. "Application of Imaging and Artificial Intelligence for Quality Monitoring of Stored Black Currant (Ribes nigrum L.)" Foods 11, no. 22: 3589. https://doi.org/10.3390/foods11223589

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