Next Article in Journal
Psychological Factors Influencing Willingness to Purchase Wild–Edible Plants and Food Products from Wild–Edible Plants
Previous Article in Journal
Effects of Grafting on the Structure and Function of Coffee Rhizosphere Microbiome
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Non-Destructive Monitoring of Sweet Pepper Samples After Selected Periods of Lacto-Fermentation

by
Ewa Ropelewska
*,
Justyna Szwejda-Grzybowska
,
Anna Wrzodak
and
Monika Mieszczakowska-Frąc
Fruit and Vegetable Storage and Processing Department, The National Institute of Horticultural Research, Konstytucji 3 Maja 1/3, 96-100 Skierniewice, Poland
*
Author to whom correspondence should be addressed.
Agriculture 2024, 14(11), 1855; https://doi.org/10.3390/agriculture14111855
Submission received: 6 September 2024 / Revised: 30 September 2024 / Accepted: 21 October 2024 / Published: 22 October 2024
(This article belongs to the Section Agricultural Product Quality and Safety)

Abstract

:
Fermented food is characterized by positive health-promoting properties. The objective of this study was to distinguish and assess the changes in the flesh structure of sweet bell pepper samples after specific periods of fermentation in a non-destructive manner. Two cultivars of pepper, red and yellow, were subjected to lacto-fermentation. The experiments lasted 56 days and the samples were taken for analysis at the beginning of the study (0 days) and after 3, 7, 10, 14, 21, 28, and 56 days. The fermentation process was monitored based on image features, which were used to develop machine learning models distinguishing samples before and after various periods of lacto-fermentation (0, 3, 7, 10, 14, 21, 28, and 56 days). The average accuracy of the classification of red bell pepper samples was up to 93% for the model built using IBk (Lazy group). The yellow bell pepper samples were distinguished up to 90% accuracy by the LMT algorithm (Trees group). The performed study allowed us to determine the changes in pepper flesh in terms of image textures during lacto-fermentation.

1. Introduction

The sweet pepper (Capsicum annuum L.), also known as the bell pepper, is one of the most frequently cultivated vegetables in the world. Pepper is third after tomato and potato among the cultivated plants from the Solanaceae family [1]. This plant originated from regions with a warm climate and it is known for its specific environmental requirements [2,3,4]. The enormous popularity of this vegetable is determined by its specific taste, dietary, and health-promoting values [5,6]. It is an excellent source of many important bioactive compounds such as vitamins C and E, polyphenols (flavonoids, phenolic acids, rutin, luteolin, and anthocyanins), and carotenoids (lutein, β-carotene, capsanthin, capsorubin, and lycopene). The types and levels of these compounds depend on the pepper cultivar. Moreover, pepper fruit is a good source of folic acid, minerals (particularly potassium, manganese, iron, and magnesium), and dietary fiber [7,8,9,10].
Among the traditional food production methods, the fermentation process is performed by lactic acid bacteria, which convert monosaccharides and disaccharides into lactic acid and other compounds using enzymes [11]. In addition, lactic acid bacteria have antimicrobial activity, which can extend the shelf life of products. These properties are possessed by bacteria from the Lactobacillus group, which have GRAS status, i.e., they are Generally Recognized as Safe [12,13,14]. Fermented products are made from high-quality raw materials, do not contain preservatives or other artificial additives, and are characterized by exceptional taste [14]. Fermented foods are also an alternative to highly processed foods. The positive health-promoting properties of fermented vegetables are attributed to the bioactive compounds that are formed during the fermentation process. These include, among others: ACE (angiotensin-converting enzyme), lactic acid, β-casomorphins, casein phosphopeptides found in fermented dairy products, kefiran found in kefir, GABA (gamma-amino-butyric acid), and SCFA (short-chain fatty acid) [14,15].
In recent years, there has been a steady increase in demand for fermented plant products, which have been recognized as functional products that benefit human health in many ways [16]. More than 2300 pepper cultivars are registered on the European market, varying in size, color, shape, spiciness, juiciness, or flesh thickness. Commercial cultivars of pepper are available with different skin colors—red, green, orange, yellow, or purple. The differences in fruit color are due to the ability to synthesize chlorophyll or carotenoids and the degree of maturity of the fruit [17].
According to Blanco-Ríos [18], the nutritional value of peppers depends, among other factors, on the color of the fruit (cultivar), growing conditions, and post-harvest treatment. The active substances found in pepper fruits have antioxidant (high content of vitamins, mainly A, C, and E, as well as minerals and polyphenols), anti-inflammatory, anti-diabetic, antimicrobial, and immunomodulation effects. Bell pepper fruit consists of 80–90% water and therefore has a relatively short shelf life compared, for example, to root vegetables. Shortly after harvesting, the fruit wilts and quickly loses its commercial value [19]. The processing of pepper fruit, especially the use of a lactic fermentation process with lactic acid bacteria, contributes to a change in taste, texture, and aroma [20].
The quality of processed agricultural food can be monitored using computer vision systems. These systems are important for the accurate and consistent inspection of external quality parameters [21]. For example, the effect of 1 week and 3 months of lacto-fermentation was assessed on zucchini flesh, obtaining overall accuracies of up to 99.33% (IBk). Additionally, it was found that the fresh sample was completely different from lacto-fermented samples in terms of image texture [22]. For the carrot, models built based on image texture parameters provided 100% accuracy in distinguishing fresh carrot slices and samples lacto-fermented for 6 months in the case of the Multilayer Perceptron machine learning algorithm [23]. Moreover, artificial intelligence and computer vision were used to investigate the fermentation level of cocoa beans in the work of Anggraini et al. [24], who found an accuracy of 94% (Multilayer Perceptron) for distinguishing fermented and unfermented cocoa and concluded that the applied approach could predict cocoa bean fermentation rate. Oliveira et al. [25] distinguished fully fermented, partially fermented, under-fermented, and unfermented cocoa beans (cut test) using computer vision, obtaining 0.93 accuracy. Machine learning algorithms based on image features were used by Bhargava et al. [26] for the grading of tea samples, which were graded as fermented, over-fermented, and under-fermented. The algorithms detected the tea fermentation level with an accuracy reaching 98.75% (SVM), 89.72% (SRC), and 87.39% (k-NN). In the case of black tea, machine learning algorithms were also applied for quality assurance and to detect the degree of fermentation based on electrical properties by Zhu et al. [27], resulting in an accuracy of up to 100% (Random Forest). The reported results indicated the usefulness of image features and artificial intelligence for the classification of fermented products with very high accuracy reaching 100%. The above literature data provided a perspective for carrying out research aimed at the non-destructive evaluation of the quality of food products using image analysis and machine learning and justified the current work. It was assumed that this approach could be used for non-destructive and objective monitoring of pepper samples during fermentation.
In this context, this study aimed at non-destructively distinguishing bell pepper samples after specific periods of lacto-fermentation to assess the changes that occur during the process. Peppers with different fruit colors can have different properties and, consequently, processing, including fermentation, may take different courses. Therefore, pepper raw materials with completely different colors were selected. The identification of the pepper fermentation step is important and can be necessary to determine after what period the greatest changes in the structure of the flesh of fermented samples occur and when the changes are the smallest. Based on this information, the conditions and duration of fermentation can be established to obtain the most desired product.

2. Materials and Methods

2.1. Fresh and Lacto-Fermented Yellow and Red Pepper Samples

The research material consisted of yellow bell pepper ‘Yellow California’ and red bell pepper ‘California’ (Figure 1). Samples were obtained from a Polish company that imports and distributes fruit and vegetables.
The pepper fruit samples without signs of disease, softening, or mechanical damage were washed thoroughly with water, then cut into four parts, and the seeds were removed. The pepper pieces were put into sterile 1000 mL glass jars with standard spices for fermentation (garlic, mustard seeds, black pepper, bay leaves, Jamaica pepper—the amount of spices was up to 2% of the quantity of pepper in the jar). Then, the jars were filled with tap water with added salt so that the final NaCl content in the brine was 3.5%. The closed jars were kept in an air-conditioned room at 20 °C to perform the spontaneous fermentation. The experiment was carried out in three technological repetitions per cultivar per one period of analysis, with three jars of fermented peppers in each repetition. The differences between raw material and samples after 3, 7, 10, 14, 21, 28, and 56 days of lacto-fermentation were analyzed non-destructively using image analysis and machine learning, as presented in Figure 2.

2.2. Image Acquisition and Processing

The color image acquisition of red and yellow sweet bell pepper samples (pieces), both in fresh and lacto-fermented forms, was performed with the use of a digital camera with F 2.4, 8× digital zoom, auto white balance, and optical image stabilization, and LED (light emitting diodes) illumination. For the lacto-fermented samples, excess liquid was removed with a paper towel. The imaging was performed on a black background. The image acquisition was performed in one hundred repetitions. For each pepper class, ten images with ten pieces in each image were obtained. During the image processing, each image was cropped into ten images including one pepper piece each. Therefore, in total, one hundred images were obtained for each group. The pepper sample images are shown in Figure 3. The images were processed using the Mazda 4.7 software (Łódź University of Technology, Institute of Electronics, Łódź, Poland) [28,29,30]. The images were segmented to separate pepper samples from the background, select regions of interest (ROIs) as pepper pieces, and compute image features. For each pepper sample, 2172 texture parameters were extracted from images in different color channels L, a, b, R, G, B, X, Y, Z, S, V, and U.

2.3. Classification Model Development

Models for change determination in the structure of yellow and red bell pepper samples occurring during the lacto-fermentation were built using machine learning algorithms by WEKA 3.9 software (Waikato Environment for Knowledge Analysis, University of Waikato, Hamilton, New Zealand) [31,32,33]. For the development of models, selected attributes with the highest discriminative power were used. Image texture selection was performed using the Best First search algorithm. The pepper samples after specific periods of fermentation were classified using selected machine learning algorithms from groups of Functions, Bayes, Meta, Lazy, Trees, and Rules. The test mode of 10-fold cross-validation was applied. This means that separate datasets were used for validation than those for training. Each dataset included 800 cases (100 cases for each of the 8 pepper classes). The datasets were randomly divided into 10 parts. Nine parts were considered as the training sets and one part was the validation set. The process was repeated 10 times with different validation sets and the overall results were the averages of 10 estimations. Ten folds ensured high results for classification metrics and reproducibility of results. As classification performance metrics, accuracies, True-Positive Rate (TP Rate), False-Positive Rate (FP Rate), Precision, Recall, F-Measure, Matthews Correlation Coefficient (MCC), F-Measure, Precision–Recall Area (PRC Area), Receiver Operating Characteristic Area (ROC Area), and Kappa statistic were computed. Equations (1)–(10) were used [34,35,36,37].
A c c u r a c y = ( T P + T N ) T P + T N + F N + F P
P r e c i s i o n = T P T P + F P
R e c a l l = T P T P + F N
F m e a s u r e = 2   *   P r e c s i o n   *   R e c a l l ( P r e c i s i o n + R e c a l l )
M C C = T P   *   T N F P   *   F N T P + F P T P + F N T N + F P T N + F N
T P R = T P T P + F N
F P R = F P F P + T N
R O C   A r e a = a r e a   u n d e r   T P R   v s .   F P R   c u r v e
P R C   A r e a = a r e a   u n d e r   P r e c i s i o n   v s .   R e c a l l   c u r v e
K a p p a = T P + F P T P + F N T P + F P T P + F N T N + F P T N + F N + T N + F P T N + F N T P + F P T P + F N T N + F P T N + F N T P + F P T P + F N T N + F P T N + F N
where TP is True Positive; TN is True Negative; FP is False Positive; FN is False Negative; TPR is the True-Positive Rate; and FPR is the False-Positive Rate.
The choice of the models used for the classification of red bell pepper samples before and after various periods of lacto-fermentation was justified by providing the highest accuracies and values of the other above-mentioned metrics. The most successful models for distinguishing red bell pepper samples were models built using IBk, WiSARD, and Random Committee algorithms, whereas in the case of the classification of yellow bell pepper samples, LMT and IBk algorithms provided the highest results.

3. Results

3.1. The Classification of Red Bell Pepper Samples Before and After Various Periods of Lacto-Fermentation

The red bell pepper samples before and after various periods of lacto-fermentation (0, 3, 7, 10, 14, 21, 28, and 56 days) were distinguished using machine learning algorithms. The following image texture parameters of red bell pepper were characterized by the highest discriminative power: RSGArea, RS5SH1SumVarnc, RS5SH1DifEntrp, RS5SH3SumVarnc, RS5SZ3SumVarnc, RATeta1, GHPerc01, BS4RNGLevNonU, LHPerc01, XHPerc01, XSGNonZeros, XSGPerc01, XS5SH1SumVarnc, XS5SZ1AngScMom, UHPerc10, and UHDomn01. The average accuracy of the classification reached 93% for the model built using IBk from the Lazy group (Table 1). The lowest classification accuracy (72%) was obtained for a red bell pepper sample after 10 days of the process. The greatest number of misclassified cases occurred between samples fermented for 10, 14, and 21 days. As many as 8% of cases belonging to the actual class of samples after 10 days of fermentation were incorrectly classified as samples after 14 days of fermentation, and 8% of cases were incorrectly classified as pepper fruit after 21 days of the process. In the case of the model developed using the IBk algorithm, the time taken to build the model was 0.01 s and the Kappa statistic was equal to 0.9206.
The detailed performance metrics presented in Table 2 confirmed the highest classification accuracy of unfermented pepper and the sample after 7 days of lacto-fermentation. It was expressed by the lower value of FT Rate equal to 0.000 and the highest values of all remaining parameters, such as TP Rate, Precision, Recall, F-Measure, MCC, F-Measure, PRC Area, and ROC Area equal to 1.000. The lowest values of TP Rate, Precision, Recall, F-Measure, MCC, F-Measure, PRC Area, and ROC Area were found for samples after 10 and 14 days.
The model built by the WiSARD algorithm from the group of Functions allowed for the classification of red bell pepper samples with an average accuracy of 92% (Table 3). Pepper samples analyzed on days 0, 3, and 7 were characterized by an accuracy of 100%. An accuracy of 100% was also found for the sample after 56 days of the process, whereas the samples that underwent 10 days of fermentation were classified with the lowest accuracy of 72%. The model development took 0.08 s. The value of the Kappa statistic was very high: equal to 0.9157.
The samples at 0, 3, 7, and 56 days of fermentation were characterized by TP Rate and Recall of 1.000 (Table 4). It confirmed that the accuracy of classification was equal to 100%. The lowest values of most of the analyzed metrics were observed for samples after 10, 14, and 21 days.
The classification model developed using the Random Committee algorithm from the Meta group correctly classified pepper samples after various periods of fermentation in 88% of cases (Table 5). The pepper sample after 10 days of fermentation was classified with the lowest correctness of 72%. The highest number of misclassified cases occurred between samples fermented for 10 and 14 days. This indicated the highest similarity of these samples in terms of structure. As many as 12% of cases from the peppers fermented for 10 days were incorrectly classified as peppers that had been fermented for 14 days and 11% of cases from the actual class of pepper fermented for 14 days were misclassified as fruit fermented for 10 days. The model was built in 0.02 s. The Kappa statistic was 0.8711.
The Random Committee algorithm allowed for slightly lower classification correctness. None of the samples reached a value of 1.000 for the metrics, such as TP Rate, Recall, F-Measure, MCC, and PRC Area (Table 6). The sample fermented for 7 days was characterized by Precision and ROC Area equal to 1.000 and FP Rate of 0.000. The classification performance metrics showed the lowest correctness of distinguishing samples after 10 and 14 days of the process.

3.2. The Classification of Yellow Bell Pepper Samples Before and After Various Periods of Lacto-Fermentation

In the case of the yellow bell pepper, the image textures with the highest discriminative power, which were the most important for building the most successful models, were RHMaxm01, RS5SV1SumVarnc, RS4RVLngREmph, GS5SZ5DifVarnc, LHSkewness, LHKurtosis, aHSkewness, aHKurtosis, aHDomn10, XHSkewness, YHMean, ZS5SZ3DifEntrp, US4RVGLevNonU, UASigma, SHPerc99, SS5SH5InvDfMom, SS5SN5SumVarnc, and SASigma. The samples of yellow bell pepper subjected to lacto-fermentation for various periods were also distinguished with high accuracy using machine learning models built based on selected image features. The LMT algorithm from the Trees group allowed for the classification of samples on days 0, 3, 7, 10, 14, 21, 28, and 56, with an average accuracy of 90% (Table 7). The greatest changes in the pepper structure occurred at the beginning of the fermentation. The unfermented sample was completely different (100% accuracy) from all samples after fermentation. The greatest number of misclassified cases occurred between the 10th day and 14th day. The time taken to build a model using LMT was 1.31 s and the Kappa statistic of 0.8956 was determined.
The value of FT Rate equal to 0.000 and the values of TP Rate, Precision, Recall, F-Measure, MCC, F-Measure, PRC Area, and ROC Area equal to 1.000 for the yellow bell pepper sample before fermentation indicated its complete difference from the fermented samples in terms of image textures (Table 8).
A slightly lower average accuracy of the classification (89%) of yellow bell pepper samples after various periods of fermentation was obtained for a model built using the IBk algorithm from the Lazy group (Table 9). The lowest accuracies were observed for fermented pepper samples for 10 and 14 days: 76 and 65%, respectively. The highest number of misclassified cases between these samples indicated the greatest similarity between them. The model was developed in 0.01 s and the Kappa statistic reached 0.8875.
The high classification accuracies of samples fermented for 21 and 56 days were confirmed by the highest values of TP Rate and Recall, whereas the lowest values of these parameters were observed for pepper samples after 10 and 14 days of fermentation (Table 10).

4. Discussion

In our study, the application of image analysis of pepper samples and machine learning models developed based on texture image parameters allowed for the non-destructive and objective determination of differences in samples before and after selected periods of lacto-fermentation. The image texture features were used to distinguish the samples. The image texture is a function of the spatial variation of the pixel brightness intensity. Image textures can provide important information about the structure of the evaluated samples. The quantitative analyses of texture parameters from pictures provide valuable insights into product quality [28,38]. Therefore, the changes in the quality of peppers during the fermentation were evaluated based on pictures in terms of flesh structure.
The determined correctness of classification for individual samples revealed the changes in the structure of the peppers during the process. It was observed that the classification accuracy depended on the pepper cultivar. In the case of red bell pepper, the average accuracy of distinguishing samples before and after 3, 7, 10, 14, 21, 28, and 56 days of lacto-fermentation reached 93%, whereas the samples of yellow bell pepper were correctly classified with an average accuracy of up to 90%. This meant that the differences between samples were slightly greater for red pepper. Also, Janiszewska-Turak et al. [17] reported that the properties of fermented pepper depend on the cultivar.
Furthermore, the accuracy of distinguishing pepper samples depended on the machine learning algorithm used to build the models. Among the many tested algorithms from the Functions, Bayes, Meta, Lazy, Trees, and Rules groups, the highest results were obtained for IBk (Lazy)—93%, WiSARD (Functions)—92%, and Random Committee (Meta)—88% in the case of red bell pepper and LMT (Trees)—90% and IBk (Lazy)—89% for yellow bell pepper samples. Also, the literature data reported the usefulness of image analysis and machine learning for the quality assessment of fermented pepper. In the previous study regarding red bell pepper, the use of IBk, SMO, Random Forest, Naive Bayes, Filtered Classifier, and JRip machine learning algorithms allowed for fresh and 6-month lacto-fermented samples to be distinguished with an average accuracy of 99% [39].
The obtained results can be of practical application. A vision system that takes into account the use of imaging devices can be used to determine the correct course of the fermentation process. Additionally, knowing the course of fermentation for different cultivars and texture parameters of the flesh of raw pepper can be useful for planning the process. However, the applied approach also has limitations. The practical problem of fermentation is the fact that the course of the process and the quality of fermented products depend on the cultivar, degree of maturity, and physicochemical properties of the raw material [40,41]. To scale up the laboratory experiments to practical applications, it is necessary to collect more data for a larger number of cultivars, degrees of maturity, and growing seasons.
Although spontaneous fermentation is a reliable way of preserving fruit and vegetables, there is a risk of fermentation failure, undesirable and unpredictable changes in the quality properties, or insufficient inhibition of microorganisms causing product spoilage [42]. The application of spontaneous/natural fermentation has also disadvantages related to the fact that spoilage organisms can be easily introduced, fermentation strains are unknown, starting fermentation is difficult, and the results of the process are not controllable [43]. Therefore, in our study, slight differences could have occurred between individual technological repetitions, influencing the properties of the products and the accuracies of their classification. To avoid the problem of uncontrolled fermentation and ensure greater safety and higher quality of fermented products, selected starter cultures can be used to perform the process [44].

5. Conclusions

The obtained results revealed that image analysis combined with machine learning models allowed for the non-destructive monitoring of differences in pepper samples after selected periods of lacto-fermentation. The changes in image textures reflected changes in the flesh structure of the pepper samples. Determining the correctness of the classification of samples on days 0, 3, 7, 10, 14, 21, 28, and 56, it was found that the accuracy depended on the pepper cultivar (red or yellow) and the machine learning algorithm applied to build the models. The differences between samples were greater for red than yellow bell peppers. The highest classification results were obtained for the IBk algorithm for red pepper and LMT for yellow pepper. Further research can focus on monitoring the changes in pepper samples using more cultivars, different degrees of maturity, and raw materials from different growing seasons. Additionally, the comparison of the effect of spontaneous fermentation and the process with the use of starter cultures on the structure of pepper flesh can be carried out.

Author Contributions

Conceptualization, E.R., J.S.-G., A.W. and M.M.-F.; methodology, E.R.; software, E.R.; validation, E.R.; formal analysis, E.R.; investigation, E.R., J.S.-G. and A.W.; resources, E.R., J.S.-G. and A.W.; data curation, E.R.; writing—original draft preparation, E.R.; writing—review and editing, E.R., J.S.-G., A.W. and M.M.-F.; visualization, E.R.; supervision, E.R.; project administration, E.R.; funding acquisition, E.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research is part of project No. 2023/07/X/NZ9/01642, entitled “Determination of the relationship between the parameters of the images and the chemical properties of cucumber and pepper during fermentation”, which is funded by the National Science Centre in the seventh edition of the MINIATURA call.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to the continuation of the project to which the data relate.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Santos, H.C.A.; de Lima, J.A.; Da Silva, A.L.P.; De Castro, G.L.S.; Gomes, R.F. Yield of fertigated bell pepper under different soil water tensions and nitrogen fertilization. Rev. Caatinga 2020, 33, 172–183. [Google Scholar] [CrossRef]
  2. Buczkowska, H. Evaluation of yielding of Polish sweet pepper cultivars in the field cultivation in the aspect of breeding progress. In Progress in Research on Capsicum & Eggplant; Katarzyna, N.-S., Ed.; Warsaw University of Life Sciences Press: Warsaw, Poland, 2007; pp. 257–265. [Google Scholar]
  3. Alam, M.S.; Saha, S.R.; Salam, M.A.; Alam, M.S.; Alam, M.K. Effect of sowing time and plant spacing on the yield attributes of sweet pepper (Capsicum annuum L.). Bangladesh J. Agril. Res. 2011, 36, 271–278. [Google Scholar] [CrossRef]
  4. Pramanik, K.; Mohapatra, P.P.; Pradhan, J.; Acharya, L.K.; Jena, C. Factors influencing performance of capsicum under protected cultivation: A review. Int. J. Environ. Clim. Chang. 2020, 10, 572–588. [Google Scholar] [CrossRef]
  5. Deepa, N.; Kaur, C.; Singh, B.; Kapoor, H.C. Antioxidant activity in some red sweet pepper cultivars. J. Food Compos. Anal. 2006, 19, 572–578. [Google Scholar] [CrossRef]
  6. Navarro, J.M.; Flores, P.; Garrido, C.; Martinez, V. Changes in the contents of antioxidant compounds in pepper fruits at different ripening stages, as affected by salinity. Food Chem. 2006, 96, 66–73. [Google Scholar] [CrossRef]
  7. Sun, T.; Xu, Z.; Wu, C.T. Antioxidant activities of different colored sweet bell peppers (Capsicum annuum L.). J. Food Sci. 2007, 72, S98–S102. [Google Scholar] [CrossRef] [PubMed]
  8. Shotorbani, N.Y.; Jamei, R.; Haidari, R. Antioxidant activities of two sweet pepper Capsicum annuum L. varieties phenolic extracts and the effects of thermal treatment. Avicenna J. Phytomedicine 2013, 3, 25–34. [Google Scholar]
  9. Kim, J.S.; An, G.C.; Park, J.S.; Lim, Y.P.; Kim, S. Carotenoid profiling from 27 types of paprika (Capsicum annuum L.) with different colors, shapes, and cultivation methods. Food Chem. 2016, 201, 64–71. [Google Scholar] [CrossRef]
  10. Zou, L.; Tan, W.K.; Du, Y.; Lee, H.W.; Liang, X.; Lei, J.; Striegel, L.; Weber, N.; Rychlik, M.; Ong, C.N. Nutritional metabolites in Brassica rapa subsp. chinensis var. parachinensis (choy sum) at three different growth stages, Microgreen, seedling and adult plant. Food Chem. 2021, 357, 129535. [Google Scholar] [CrossRef]
  11. Jackson, R.S. Chapter 7—Fermentation. In Wine Science, 5th ed.; Jackson, R.S., Ed.; Academic Press: Cambridge, MA, USA, 2020; pp. 461–572. [Google Scholar]
  12. Sip, A.; Krasowska, M.; Więckowicz, M.; Grajek, W. Metody skriningu bakteriocynogennych bakterii fermentacji mlekowej. Żywność. Nauka. Technol. Jakość 2009, 16, 5–26. [Google Scholar]
  13. Goderska, K.; Rychlik, T.; Andrzejewska, E.; Szkaradkiewicz, A.; Czarnecki, A. Antagonistyczny wpływ Lactobacillus acidophilus DSM 20079 i DSM 20242 na bakterie patogenne izolowane od ludzi. Żywność. Nauka. Technol. Jakość 2012, 3, 114–131. [Google Scholar]
  14. Karwowska, K.K.; Kaczmarczyk, D. Rola i znaczenie produktów fermentowanych w diecie. Med. Ogólna I Nauk. O Zdrowiu 2023, 29, 79–88. [Google Scholar] [CrossRef]
  15. Baruah, R.; Ray, M.; Halami, P.M. Preventive and therapeutic aspects of fermented foods. J. Appl. Microbiol. 2022, 132, 3476–3489. [Google Scholar] [CrossRef] [PubMed]
  16. Thierry, A.; Baty, C.; Marché, L.; Chaut, V.; Picard, O.; Lortal, S.; Valance, F. Lactofermentation of vegetables: An ancient method of preservation matching new trends. Trends Food Sci. Technol. 2023, 139, 104112. [Google Scholar] [CrossRef]
  17. Janiszewska-Turak, E.; Witrowa-Rajchert, D.; Rybka, K.; Rolof, J.; Pobiega, K.; Woźniak, Ł.; Gramza-Michałowska, A. The Influence of Lactic Acid Fermentation on Selected Properties of Pickled Red, Yellow, and Green Bell Peppers. Molecules 2022, 27, 8637. [Google Scholar] [CrossRef]
  18. Blanco-Ríos, A.K.; Medina-Juarez, L.A.; Gonzalez-Aguilar, G.A.; Gamez-Meza, N. Antioxidant activity of the phenolic and oily fractions of different sweet bell peppers. J. Mex. Chem. Soc. 2013, 57, 137–143. [Google Scholar] [CrossRef]
  19. Althaus, B.; Blanke, M. Non-destructive, opto-electronic determination of the freshness and shrivel of Bell pepper fruits. J. Imaging 2020, 6, 122. [Google Scholar] [CrossRef]
  20. Alberto, M.R.; Perera, F.; Arena, M. Lactic Acid Fermentation of Peppers. Nutr. Sci. 2012, 04, 7–52. [Google Scholar] [CrossRef]
  21. Zhang, B.; Guo, N.; Huang, J.; Gu, B.; Zhou, J. Computer Vision Estimation of the Volume and Weight of Apples by Using 3D Reconstruction and Noncontact Measuring Methods. J. Sens. 2020, 2020, 5053407. [Google Scholar] [CrossRef]
  22. Ropelewska, E.; Sabanci, K.; Aslan, M.F. The effect of lacto-fermentation over time on the changes in zucchini flesh quality assessed using machine learning models based on image textures. J. Food Process Eng. 2023, 46, e14496. [Google Scholar] [CrossRef]
  23. 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]
  24. Anggraini, C.D.; Putranto, A.W.; Iqbal, Z.; Firmanto, H.; Riza, D.F.A. Preliminary study on development of cocoa beans fermentation level measurement based on computer vision and artificial intelligence. In Proceedings of the 2021 International Conference on Green Agro-Industry and Bioeconomy, Malang, Indonesia, 6–7 July 2021; 924 of IOP Conference Series, Earth and Environmental Science; IOP Publishing: Bristol, UK, 2021; pp. 1–8. [Google Scholar]
  25. Oliveira, M.M.; Cerqueira, B.V.; Barbon, S., Jr.; Barbin, D.F. Classification of fermented cocoa beans (cut test) using computer vision. J. Food Compos. Anal. 2021, 97, 103771. [Google Scholar] [CrossRef]
  26. Bhargava, A.; Bansal, A.; Goyal, V.; Shukla, A. Machine learning & computer vision-based optimum black tea fermentation detection. Multimed. Tools Appl. 2023, 82, 43335–43347. [Google Scholar]
  27. Zhu, H.K.; Liu, F.; Ye, Y.; Chen, L.; Liu, J.Y.; Gui, A.H.; Zhang, J.; Dong, C. Application of machine learning algorithms in quality assurance of fermentation process of black tea-based on electrical properties. J. Food Eng. 2019, 263, 165–172. [Google Scholar] [CrossRef]
  28. Strzelecki, M.; Szczypiński, P.; Materka, A.; Klepaczko, A. A software tool for automatic classification and segmentation of 2D/3D medical images. Nucl. Instrum. Methods Phys. Res. Sect. A Accel. Spectrometers Detect. Assoc. Equip. 2013, 702, 137–140. [Google Scholar] [CrossRef]
  29. Szczypiński, P.M.; Strzelecki, M.; Materka, A.; Klepaczko, A. MaZda—A software package for image texture analysis. Comput. Methods Programs Biomed. 2009, 94, 66–76. [Google Scholar] [CrossRef] [PubMed]
  30. Szczypiński, P.M.; Strzelecki, M.; Materka, A. Mazda-a software for texture analysis. In Proceedings of the 2007 International Symposium on Information Technology Convergence (ISITC 2007), Jeonju, Republic of Korea, 23–24 November 2007; pp. 245–249. [Google Scholar]
  31. 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]
  32. Frank, E.; Hall, M.A.; Witten, I.H. The WEKA Workbench. In Online Appendix for Data Mining, Practical Machine Learning Tools and Techniques, 4th ed.; Morgan Kaufmann: Burlington, MA, USA, 2016. [Google Scholar]
  33. Witten, I.H.; Frank, E. Data Mining, Practical Machine Learning Tools and Techniques, 525, 2nd ed.; Elsevier: San Francisco, CA, USA, 2005. [Google Scholar]
  34. Ropelewska, E. Diversity of Plum Stones Based on Image Texture Parameters and Machine Learning Algorithms. Agronomy 2022, 12, 762. [Google Scholar] [CrossRef]
  35. Ropelewska, E.; Cai, X.; Zhang, Z.; Sabanci, K.; Aslan, M.F. Benchmarking Machine Learning Approaches to Evaluate the Cultivar Differentiation of Plum (Prunus domestica L.) Kernels. Agriculture 2022, 12, 285. [Google Scholar] [CrossRef]
  36. Ropelewska, E.; Rady, A.M.; Watson, N.J. Apricot Stone Classification Using Image Analysis and Machine Learning. Sustainability 2023, 15, 9259. [Google Scholar] [CrossRef]
  37. Unlersen, M.F.; Sonmez, M.E.; Aslan, M.F.; Demir, B.; Aydin, N.; Sabanci, K.; Ropelewska, E. CNN–SVM hybrid model for varietal classification of wheat based on bulk samples. Eur. Food Res. Technol. 2022, 248, 2043–2052. [Google Scholar] [CrossRef]
  38. Armi, L.; Fekri-Ershad, S. Texture image analysis and texture classification methods—A review. Int. Online J. Image Process. Pattern Recogn. 2019, 2, 1–29. [Google Scholar]
  39. Ropelewska, E.; Sabanci, K.; Aslan, M.F. The Changes in Bell Pepper Flesh as a Result of Lacto-Fermentation Evaluated Using Image Features and Machine Learning. Foods 2022, 11, 2956. [Google Scholar] [CrossRef] [PubMed]
  40. Ropelewska, E.; Wrzodak, A. The Use of Image Analysis and Sensory Analysis for the Evaluation of Cultivar Differentiation of Freeze-Dried and Lacto-Fermented Beetroot (Beta vulgaris L.). Food Anal. Methods 2022, 15, 1026–1041. [Google Scholar] [CrossRef]
  41. Wang, K.; Qi, J.; Jin, Y.; Li, F.; Wang, J.; Xu, H. Influence of fruit maturity and lactic fermentation on physicochemical properties, phenolics, volatiles, and sensory of mulberry juice. Food Biosci. 2022, 48, 101782. [Google Scholar] [CrossRef]
  42. Sajjad, N.; Rasool, A.; Bakr, A.; Fazili, A.B.A.; Bhat, E. Fermentation of fruits and vegetables: A review. Plant Arch. 2020, 20, 1338–1342. [Google Scholar]
  43. Yuan, X.; Wang, T.; Sun, L.; Qiao, Z.; Pan, H.; Zhong, Y.; Zhuang, Y. Recent advances of fermented fruits: A review on strains, fermentation strategies, and functional activities. Food Chem. X 2024, 22, 101482. [Google Scholar] [CrossRef]
  44. Li, Y.; Michelle, M.Z.T.; Ye, H.Z.; Li, D. Lactiplantibacillus plantarum 299v as starter culture suppresses Enterobacteriaceae more efficiently than spontaneous fermentation of carrots. Food Microbiol. 2022, 103, 103952. [Google Scholar] [CrossRef]
Figure 1. Whole pepper samples intended for lacto-fermentation.
Figure 1. Whole pepper samples intended for lacto-fermentation.
Agriculture 14 01855 g001
Figure 2. The steps of the discrimination of sweet bell pepper samples before and after selected periods of lacto-fermentation using image analysis and machine learning.
Figure 2. The steps of the discrimination of sweet bell pepper samples before and after selected periods of lacto-fermentation using image analysis and machine learning.
Agriculture 14 01855 g002
Figure 3. Red and yellow pepper pieces before (0 days) (a) and after selected periods of lacto-fermentation: 10 days (b) and 56 days (c).
Figure 3. Red and yellow pepper pieces before (0 days) (a) and after selected periods of lacto-fermentation: 10 days (b) and 56 days (c).
Agriculture 14 01855 g003
Table 1. The confusion matrix of the classification of red bell pepper samples before and after various periods of lacto-fermentation using the IBk algorithm.
Table 1. The confusion matrix of the classification of red bell pepper samples before and after various periods of lacto-fermentation using the IBk algorithm.
AlgorithmPredicted Class (Days of Fermentation) (%)Actual Class
(Days of Fermentation)
Average Accuracy (%)
0 Days3 Days7 Days10 Days14 Days21 Days28 Days56 Days
IBk10000000000 days93
0960000043 days
00100000007 days
04072884410 days
00048640614 days
00030970021 days
00044089328 days
000000010056 days
Blue—correctly classified cases; green—incorrectly classified cases.
Table 2. Detailed classification performance metrics of fresh and lacto-fermented red bell pepper samples (IBk algorithm).
Table 2. Detailed classification performance metrics of fresh and lacto-fermented red bell pepper samples (IBk algorithm).
AlgorithmClass
(Days of Fermentation)
TP Rate FP Rate PrecisionRecallF-MeasureMCCROC AreaPRC Area
IBk0 days1.0000.0001.0001.0001.0001.0001.0001.000
3 days0.9580.0050.9580.9580.9580.9540.9740.919
7 days1.0000.0001.0001.0001.0001.0001.0001.000
10 days0.7200.0150.8570.7200.7830.7620.8800.702
14 days0.8570.0150.8890.8570.8730.8560.9330.815
21 days0.9680.0150.9090.9680.9370.9280.9740.876
28 days0.8930.0050.9620.8930.9260.9170.9410.902
56 days1.0000.0250.8681.0000.9300.9200.9860.855
TP Rate (True-Positive Rate), FP Rate (False-Positive Rate), MCC (Matthews Correlation Coefficient), PRC Area (Precision–Recall Area), and ROC Area (Receiver Operating Characteristic Area).
Table 3. The classification accuracies of fresh and lacto-fermented red bell pepper using the WiSARD algorithm.
Table 3. The classification accuracies of fresh and lacto-fermented red bell pepper using the WiSARD algorithm.
AlgorithmPredicted Class (Days of Fermentation) (%)Actual Class
(Days of Fermentation)
Average Accuracy (%)
0 Days3 Days7 Days10 Days14 Days21 Days28 Days56 Days
WiSARD10000000000 days92
01000000003 days
00100000007 days
44072840810 days
00048270714 days
000100900021 days
00040093328 days
000000010056 days
Blue—correctly classified cases; green—incorrectly classified cases.
Table 4. Classification performance metrics of fresh and lacto-fermented red bell pepper samples (WiSARD algorithm).
Table 4. Classification performance metrics of fresh and lacto-fermented red bell pepper samples (WiSARD algorithm).
AlgorithmClass
(Days of Fermentation)
TP Rate FP Rate PrecisionRecalF-MeasureMCCROC AreaPRC Area
WiSARD0 days1.0000.0050.9701.0000.9850.9820.9870.951
3 days1.0000.0050.9601.0000.9800.9770.9120.825
7 days1.0000.0001.0001.0001.0001.0001.0001.000
10 days0.7200.0240.7830.7200.7500.7220.7970.522
14 days0.8210.0100.9200.8210.8680.8530.9550.817
21 days0.9030.0150.9030.9030.9030.8880.9330.823
28 days0.9290.0001.0000.9290.9630.9590.9000.828
56 days1.0000.0250.8681.0000.9300.9200.9640.846
TP Rate (True-Positive Rate), FP Rate (False-Positive Rate), MCC (Matthews Correlation Coefficient), PRC Area (Precision–Recall Area), and ROC Area (Receiver Operating Characteristic Area).
Table 5. The confusion matrix of distinguishing red bell pepper samples before and after lacto-fermentation for different periods using the Random Committee algorithm.
Table 5. The confusion matrix of distinguishing red bell pepper samples before and after lacto-fermentation for different periods using the Random Committee algorithm.
AlgorithmPredicted Class (Days of Fermentation) (%)Actual Class
(Days of Fermentation)
Average Accuracy (%)
0 Days3 Days7 Days10 Days14 Days21 Days28 Days56 Days
Random Committee9700000030 days88
4880000083 days
0397000007 days
400721244410 days
000117570714 days
00003943021 days
00004096028 days
03033308856 days
Blue—correctly classified cases; green—incorrectly classified cases.
Table 6. Detailed classification performance metrics of red bell pepper samples before and after various periods of lacto-fermentation using the Random Committee algorithm.
Table 6. Detailed classification performance metrics of red bell pepper samples before and after various periods of lacto-fermentation using the Random Committee algorithm.
AlgorithmClass
(Days of Fermentation)
TP Rate FP Rate PrecisionRecallF-MeasureMCCROC AreaPRC Area
Random Committee0 days0.9690.0100.9390.9690.9540.9460.9970.978
3 days0.8750.0100.9130.8750.8940.8820.9870.925
7 days0.9670.0001.0000.9670.9830.9811.0000.999
10 days0.7200.0190.8180.7200.7660.7410.8960.718
14 days0.7500.0300.7780.7500.7640.7320.9430.859
21 days0.9350.0200.8790.9350.9060.8920.9830.888
28 days0.9640.0100.9310.9640.9470.9400.9970.977
56 days0.8790.0300.8290.8790.8530.8280.9560.853
TP Rate (True-Positive Rate), FP Rate (False-Positive Rate), MCC (Matthews Correlation Coefficient), PRC Area (Precision–Recall Area), and ROC Area (Receiver Operating Characteristic Area).
Table 7. The classification of yellow bell pepper samples before and after different periods of lacto-fermentation using the LMT algorithm.
Table 7. The classification of yellow bell pepper samples before and after different periods of lacto-fermentation using the LMT algorithm.
AlgorithmPredicted Class (Days of Fermentation) (%)Actual class
(Days of Fermentation)
Average Accuracy (%)
0 Days3 Days7 Days10 Days14 Days21 Days28 Days56 Days
LMT10000000000 days90
0870033333 days
0096000047 days
000761653010 days
00088500814 days
00003903321 days
00006088628 days
00020009856 days
Blue—correctly classified cases; green—incorrectly classified cases.
Table 8. Detailed metrics of the classification of fresh and lacto-fermented yellow bell pepper using the LMT algorithm.
Table 8. Detailed metrics of the classification of fresh and lacto-fermented yellow bell pepper using the LMT algorithm.
AlgorithmClass
(Days of Fermentation)
TP Rate FP Rate PrecisionRecallF-MeasureMCCROC AreaPRC Area
LMT0 days1.0000.0001.0001.0001.0001.0001.0001.000
3 days0.8670.0001.0000.8670.9290.9240.9460.916
7 days0.9630.0001.0000.9630.9810.9790.9760.968
10 days0.7570.0120.9030.7570.8240.8040.9270.834
14 days0.8460.0380.6880.8460.7590.7370.9750.644
21 days0.9000.0120.9000.9000.9000.8880.9890.936
28 days0.8790.0120.9060.8790.8920.8790.9930.947
56 days0.9760.0280.8540.9760.9110.8980.9970.983
TP Rate (True-Positive Rate), FP Rate (False-Positive Rate), MCC (Matthews Correlation Coefficient), PRC Area (Precision–Recall Area), and ROC Area (Receiver Operating Characteristic Area).
Table 9. The accuracies of the classification of fresh and lacto-fermented yellow bell pepper samples using the IBk algorithm.
Table 9. The accuracies of the classification of fresh and lacto-fermented yellow bell pepper samples using the IBk algorithm.
AlgorithmPredicted Class (Days of fermentation) (%)Actual Class
(Days of Fermentation)
Average Accuracy (%)
0 Days3 Days7 Days10 Days14 Days21 Days28 Days56 Days
IBk9500002030 days89
0900330303 days
7089004007 days
300761930010 days
000316500414 days
000001000021 days
03000097028 days
000000010056 days
Blue—correctly classified cases; green—incorrectly classified cases.
Table 10. Classification performance metrics of yellow bell pepper samples before and after various periods of lacto-fermentation (IBk algorithm).
Table 10. Classification performance metrics of yellow bell pepper samples before and after various periods of lacto-fermentation (IBk algorithm).
AlgorithmClass
(Days of Fermentation)
TP RateFP RatePrecisionRecall F-MeasureMCCROC AreaPRC Area
IBk0 days0.9530.0130.9530.9530.9530.9400.9760.926
3 days0.9000.0040.9640.9000.9310.9240.9340.853
7 days0.8890.0001.0000.8890.9410.9370.9560.902
10 days0.7570.0360.7570.7570.7570.7210.8880.662
14 days0.6540.0300.6800.6540.6670.6350.8750.551
21 days1.0000.0120.9091.0000.9520.9480.9950.918
28 days0.9700.0040.9700.9700.9700.9660.9680.947
56 days1.0000.0120.9331.0000.9660.9600.9920.921
TP Rate (True-Positive Rate), FP Rate (False-Positive Rate), MCC (Matthews Correlation Coefficient), PRC Area (Precision–Recall Area), and ROC Area (Receiver Operating Characteristic Area).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ropelewska, E.; Szwejda-Grzybowska, J.; Wrzodak, A.; Mieszczakowska-Frąc, M. Non-Destructive Monitoring of Sweet Pepper Samples After Selected Periods of Lacto-Fermentation. Agriculture 2024, 14, 1855. https://doi.org/10.3390/agriculture14111855

AMA Style

Ropelewska E, Szwejda-Grzybowska J, Wrzodak A, Mieszczakowska-Frąc M. Non-Destructive Monitoring of Sweet Pepper Samples After Selected Periods of Lacto-Fermentation. Agriculture. 2024; 14(11):1855. https://doi.org/10.3390/agriculture14111855

Chicago/Turabian Style

Ropelewska, Ewa, Justyna Szwejda-Grzybowska, Anna Wrzodak, and Monika Mieszczakowska-Frąc. 2024. "Non-Destructive Monitoring of Sweet Pepper Samples After Selected Periods of Lacto-Fermentation" Agriculture 14, no. 11: 1855. https://doi.org/10.3390/agriculture14111855

APA Style

Ropelewska, E., Szwejda-Grzybowska, J., Wrzodak, A., & Mieszczakowska-Frąc, M. (2024). Non-Destructive Monitoring of Sweet Pepper Samples After Selected Periods of Lacto-Fermentation. Agriculture, 14(11), 1855. https://doi.org/10.3390/agriculture14111855

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