Next Article in Journal
Effect of Process Variables and Ingredients on Controlled Protein Network Creation in High-Moisture Plant-Based Meat Alternatives
Next Article in Special Issue
The Application of Artificial Intelligence and Big Data in the Food Industry
Previous Article in Journal
Characterization of the Bacterial Composition of 47 Fermented Foods in Sweden
Previous Article in Special Issue
Deep Learning-Based Near-Infrared Hyperspectral Imaging for Food Nutrition Estimation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Development of a Low-Cost Artificial Vision System as an Alternative for the Automatic Classification of Persian Lemon: Prototype Test Simulation

by
Bridget V. Granados-Vega
1,
Carlos Maldonado-Flores
2,
Camila S. Gómez-Navarro
1,
Walter M. Warren-Vega
1,
Armando Campos-Rodríguez
2,*,† and
Luis A. Romero-Cano
1,*,†
1
Grupo de Investigación en Materiales y Fenómenos de Superficie, Departamento de Biotecnológicas y Ambientales, Universidad Autónoma de Guadalajara, Av. Patria 1201, Zapopan 45129, Mexico
2
Laboratorio de Innovación y Desarrollo de Procesos Industriales Sostenibles, Departamento de Biotecnológicas y Ambientales, Universidad Autónoma de Guadalajara, Av. Patria 1201, Zapopan 45129, Mexico
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
Foods 2023, 12(20), 3829; https://doi.org/10.3390/foods12203829
Submission received: 4 September 2023 / Revised: 3 October 2023 / Accepted: 12 October 2023 / Published: 19 October 2023
(This article belongs to the Special Issue Applications of Artificial Intelligence in Food Industry)

Abstract

:
In the present research work, an algorithm of artificial neural network (ANN) has been developed based on the processing of digital images of Persian lemons with the aim of optimizing the quality control of the product. For this purpose, the physical properties (weight, thickness of the peel, diameter, length, and color) of 90 lemons selected from the company Esperanza de San José Ornelas SPR de RL (Jalisco, Mexico) were studied, which were divided into three groups (Category “extra”, Category I, and Category II) according to their characteristics. The parameters of weight (26.50 ± 3.00 g), diameter/length (0.92 ± 0.08) and thickness of the peel (1.50 ± 0.29 mm) did not present significant differences between groups. On the other hand, the color (determined by the RGB and HSV models) presents statistically significant changes between groups. Due to the above, the proposed ANN correctly classifies 96.60% of the data obtained for each of the groups studied. Once the ANN was trained, its application was tested in an automatic classification process. For this purpose, a prototype based on the operation of a stepper motor was simulated using Simulink from Matlab, which is connected to three ideal switches powered by three variable pulse generators that receive the information from an ANN and provide the corresponding signal for the motor to turn to a specific position. Manual classification is a process that requires expert personnel and is prone to human error. The scientific development presented shows an alternative for the automation of the process using low-cost computational tools as a potential alternative.

1. Introduction

In Mexico, two varieties of lemon are mainly cultivated, the Persian and the Mexican, corresponding to 30% and 70% of the total production. The Persian lemon is dedicated almost exclusively to export, so its quality controls are strict to satisfy the demands of the market [1]. According to information from national producers, lemons for export can be classified according to their characteristics in: (i) Category “extra”, which must have a superior quality and must not present defects, except for very slight superficial ones as long as the general appearance of the product is not affected; (ii) Category I, which has slight defects in shape, color, and surface that do not exceed 1 cm2; and (iii) Category II, those lemons that do not fit the previously mentioned categories and that present superficial defects that exceed 1 cm2. Once the lemon is harvested, most farmers carry out this classification manually, which generates errors in the quality of the process, making it essential to use an artificial vision system that allows the process to be automated and avoid human errors [2].
In this sense, recent research has focused on proposing solutions based on the use of artificial vision and machine learning to solve this type of problem [3]. Through the use of artificial intelligence, such as the implementation of artificial neural networks, it has been possible to evaluate complex systems for the prediction and control of different areas in the food industry, such as extrusion [4], process conditions (formulations) [5], drying [6], or evaluating its functional content [7]. In the last few years, artificial neural networks have proven to be advantageous because they allow the evaluation of complex and multivariable systems, thus providing an indicator that demonstrates the quality of a product. For example, the analysis to estimate total chlorophyll content in apples has been studied by color analysis and spectra data [8], or measuring six color values from surface images to predict texture characteristics such as hardness and gumminess [9]. Another use of artificial neural networks is to classify products by their physicochemical properties and be discriminant with respect to location, composition, or quality [10,11,12]. In this sense, various studies have been reported for the evaluation of the quality of fruits using image analysis in combination with convolutional models of neural networks (CNN), among which studies in apples [13], lemons [14], grapevine [15], papaya [16], tomato [17], strawberry [18], blueberry [19], banana [20], and melon [21] stand out. In all cases, the studies are based on the acquisition of data using digital cameras, which are subsequently processed mathematically to obtain the RGB (RGB color model is an additive color model in which the red, green, and blue primary colors of light are added together in various ways to reproduce a broad array of colors) and/or HSV (the HSV model is an alternative representation of the RGB color model in which the hue, saturation, and value are represented) values in order to provide this information to the designed CNN algorithm. The data set obtained is entered into the network for training to obtain a result. After the analysis, the error between the given labels and the output predictions is calculated using a loss function to propagate the error throughout the network by means of a backpropagation algorithm. Finally, the weights are updated to minimize the error, and the procedure is repeated until it converges or reaches a limit of iterations [22].
However, although there is now a lot of information reported on the use of artificial intelligence to evaluate the quality of different fruits, it must be integrated into automation systems to achieve product control at an industrial level. In the food industry, the automation of processes becomes essential since its selection is more efficient than human work due to the minimization of errors [23,24,25,26]. Based on this, the objective of this research corresponds to the development of a prototype and its potential application in the automatic classification of the three categories that define the quality of a Persian lemon. To achieve these, an artificial neural network was developed and trained using the physicochemical properties of the fruit for subsequent programming in the prototype model and testing its operation in a computer-assisted simulation.

2. Materials and Methods

2.1. Samples

A batch of 90 Persian lemons (Citrus × latifolia) was selected from the company Esperanza de San José Ornelas SPR de RL (Jalisco, Mexico), which is dedicated to the production and distribution of various fruits (blueberry, corn, and Persian lemon). The samples were harvested and immediately classified by the expert workers of the company, who have more than 20 years of experience; then, within 1 day, the lemons were transported to our laboratory. Of these, 30 correspond to the Category “extra”, 30 to Category I, and 30 to Category II (Figure 1).
STATISTICA 10.0 software (StatSoft, Palo Alto, CA, USA) was used to analyze the experimental data. The descriptive statistics analysis was performed by determining the mean and standard deviation. Additionally, a one-way analysis of variance (ANOVA) was employed to determine the existence of statistically significant differences between the means of the groups (Category extra, Category I, and Category II) using a significance level of 95%.

2.2. Color Study Using Digital Image Processing

The digital image processing was carried out in a similar way as previously reported by Warren-Vega et al. [27]. It is important to highlight that one of the limitations of the study is related to the fact that the classification of fruits based on image processing is sensitive to the lighting conditions and the background color at the time of taking the photograph, so it is important to standardize the method. Due to the above, digital images were performed under controlled light conditions and were subjected to continuous and direct illumination from a white LED light source (45 W) at a power of 35%. All photos were taken at a distance of 30 cm between the object and the camera. Each sample was analyzed in duplicate, performing 3 repetitions to ensure the repeatability and reproducibility of the measures. The operating conditions of the camera were taken with the manual option, at a lens objective of 18–25 mm and a lens aperture in a range of 4 to 5 at an ISO 500. (Note: camera specifications do not limit the application of the method. However, the size of the photography area selected for RGB decomposition needs to be observed to contain a minimum number of pixels to provide the same analytical sensitivity). Using its CCD (Charge-Couple Device, Sony Corp., Bangkok, Thailand) detector, it is possible to capture digital images and convert them into a voltage sequence that can be translated into an analytical signal. The digital images obtained for each sample were decomposed using the RGB model (red, green, and blue), and Color Intensity (C.I.) was obtained from the sum of the three values (C.I. = red + green + Blue).
Image Analysis. The digital images obtained were saved as individual files in jpeg format. The average size per image was 3 MB (14.2 megapixel resolution, 4592 × 3056 pixels). Image processing consisted of selecting and clipping a region of interest (defined as at least 60% of the total area of the fruit resulting in a new image with a dimension of 843 × 880 pixels. The obtained images were decomposed according to the RGB color model into distribution histograms for each channel (red, green, and blue) using the MATLAB R2023a software. The results obtained were corroborated using the free app Color Name® (version 3.2, 2022). After that, the values of RGB were transformed to HSV (Hue, Saturation, and Value), which resembles color in human perception [28].

2.3. Physical Properties Analysis in Lemons

Lemon measurements were performed to obtain the following characteristics: thickness, weight, length, and diameter. For measurements in lemons, a NIMBUS analytical balance and a digital Vernier were employed.

2.4. Artificial Neural Network Approach

The MATLAB R2023a program was used to establish an artificial neural network algorithm that allows the classification of lemons based on quality standards (Category “extra”, Category I, and Category II). In the case of the inputs, physical properties and colorimetric measurements (intensity of color, hue, saturation, and value) were used as classifiers to obtain the group to which they belonged (outputs). The optimal conditions for the artificial neural network architecture consisted of a total of 5 neurons with a sigmoid hidden layer and a softmax output layer to permit a correct classification. The network will be trained using the scaled conjugated gradient method. To evaluate the performance of the ANN, cross-entropy performance was used to establish the best architecture. The training of the neural network consisted as follows: 60 lemons (n = 20 lemons from each group) were used to obtain the algorithm, in which data was randomly divided into training (70%), validation (15%), and testing (15%). Subsequently, the remaining 30 lemons were used as a second set with the objective of establishing their effectiveness. The architecture of the neural network is shown in Figure 2.

2.5. MATLAB Simulink Model Prototype

A model prototype was developed to evaluate the feasibility of the automatic classification of lemons using the proposed ANN. For this purpose, input and output interfaces were developed using control algorithms in Simulink. The proposed model consisted of connecting the ANN to three variable pulse generators, which, depending on the value returned by the ANN, activate an ideal switch connected to a stepper motor (motor type: variable reluctance, number of phases: 3, maximum winding inductance: 0.01, minimum winding inductance: 0.002, winding resistance 1.2 ohm, step angle: 120°, initial position: 0°, total inertia: 2 × 10−5 kg m2, and total friction: 0.001 N m), which rotates at 0°, 120° (clockwise) or −120° (anticlockwise) depending on the category of lemon detected by the ANN. It is proposed that turning the motor will send the lemon to the corresponding basket according to the corresponding category.

3. Results and Discussion

3.1. Physicochemical Parameters of Persian Lemons: Analysis of Categories

Within the three different groups of lemons analyzed based on their quality, the RGB analysis was carried out to appreciate differences in the colors presented by the fruits. Figure 3 and Supplementary Figures S1–S3 present representative samples of the three categories analyzed. At least 60% of the total fruit area was studied in all cases. Once the digital images were obtained, they were decomposed into the primary colors red, green, and blue. The results are presented as an RGB color histogram, representing its distribution in the image. From this information, the maximum values of each of the analyzed colors were defined. For the category extra, the green color predominates (R = 90, G = 107, B = 8) and is characteristic of the fruit freshly harvested.
On the other hand, for categories I and II, there is a displacement of the red color, almost wholly overlapping with the green color in category I (R = 124, G = 120, B = 17), resulting in a yellow coloration characteristic of fruit ripening. Finally, category II stands out for the superposition of red and green color with a majority tendency toward the intensity of the red tone (R = 111, G = 82, B = 29), associated with the localized brown tone of the fruit caused by mechanical damage at harvest time. From this information, it is concluded that the area analyzed is representative of each of the fruits studied, evidencing that the proposed method satisfactorily identifies minor alterations.
Using the RGB analysis obtained from the decomposition of the images, the color intensity value was calculated as the first variable for the artificial neural network.
To demonstrate the color differences presented in the groups, Figure 4 was made to demonstrate the variability that the camera sensor detected and how it was perceived. In the color chart, the extra category of lemons is mainly green, because that is the way consumers prefer it in North America. At this stage, the fruit has not yet reached maturity, so the main pigment in the rind corresponds to chlorophyll. As the fruit begins to ripen, its color tones change from light green tones (category I) to yellow tones (category II), in which the pigment of the rind is mainly carotenoids [29]. For this reason, the changes in the color of the fruit are related to its maturity, in which the degradation of chlorophylls occurs in four stages: (i) synthesis of Mg-protoporphyrin IX from glutamic acid through a series of reactions and then conversion to chlorophyll a; (ii) interconversion of chlorophyll a and chlorophyll b, also known as the chlorine leaf plant cycle; (iii) chlorophyll binding; and (iv) degradation of chlorophyll [30].
Finally, the RGB data was converted to another color space, HSV, which has demonstrated better results in evaluating fruit properties by machine learning methods [29]. In Figure 5 and Supplementary Figure S4, the statistical analysis of hue, saturation, value, color intensity, red, green, and blue can be appreciated. Saturation was the only property that demonstrated a not-significant difference between the excellent and medium groups. With this information, it is concluded that there are differences in the colors, thus establishing significant variables for the design of the ANN architecture, as has been reported by other authors [31,32].
To complete the characterization of the lemons studied, the properties of weight, sphericity (Diameter/Length, D/L) and thickness of the peel were evaluated. The results are presented in Table 1 and Supplementary Figure S5. It is observed that there are no significant differences between the properties studied in the categories of fruit quality (weight p-value = 0.00017 < 0.05; D/L p-value = 0.181327 > 0.05; thickness p-value = 0.22179 > 0.05). For all categories, the weight was 25 g with a peel thickness of 1.5 mm on average, resulting in spherical fruits (D/L = 0.9). The foregoing shows that the consumer’s perception of the quality of the Persian lemon depends exclusively on the maturity of the fruit, which can be measured from image analysis.
From this information, the physicochemical parameters of lemons are going to be used to feed the ANN for Persian lemon classification.

3.2. Construction and Training of the Proposed ANN

Having this, the neural network was used to classify between the different groups, having within the training a 100% classification within the confusion matrix using 60 lemons, as shown in Figure 6.
To evaluate the feasibility of the ANN, it was proposed to perform a second set, in which the remaining 30 lemons were employed to verify that the algorithm would allow classifying future cases. The results are shown in Figure 7. It can be appreciated that a 93.3% correct classification could be achieved with two misclassified lemons as Category II being Category I. In the case of the ROC curve, it can be appreciated that the true positive rate is 1 for Category “extra”, then 0.8 for Category I, and finally 0.7 for Category II.
With the result of both validations, a value of 96.60% of the correct classification is obtained using the physical and colorimetric properties of the analyzed fruits.
The results obtained show that the use of artificial neural networks for the classification of lemon quality is feasible. Similar results have been previously reported showing that the use of machine learning is helpful for fruit classification (Table 2); however, in all cases, the studies focus on the development of basic principles, which, according to the Technology Readiness Level (TRL), classify the technology at level 1 (TRL1). In order to show an advance with respect to the previously reported studies, proofs of concept were carried out by connecting the proposed artificial neural networks to a stepper motor (Section 3.3) to demonstrate the usefulness of the technology in developing an automatic classification system at an industrial level. Based on the TRL, these results classify the proposed technology at a TRL3 level.

3.3. MATLAB Simulink Model Prototype: Test Simulation

In order to show the technological maturity of the proposed prototype, the simulation of the device was carried out using the Simulink model presented in Figure 8. The simulation results are shown in Figure 9.
Figure 9a–c shows typical forms of amplitude modulated pulse output at 0 and 1 corresponding to the input duty cycle by changing the on/off delay time of the switches. It is observed that depending on the signal sent by the ANN, only one of the three pulse generators gives an amplitude equal to 1, which is translated into the rotation of the stepper motor (Figure 9d–f) depending on the category of lemon detected. It should be noted that the turn response time is dependent on the probability value thrown by the ANN; that is, for values close to 1.0, the turn response is fast and decreases as the value of the probability of success of the ANN decreases. However, in none of the cases tested, the response time was greater than 1 s, so the proposed prototype is feasible for use.
Based on the above, the system shown in Figure 7b is proposed as a prototype of an automatic lemon quality classifier, which consists of taking a photograph that is decomposed according to the RGB and HSV models. This information is sent to the MATLAB software in which the previously trained ANN is used, and the resulting information is sent to the controller (stepper motor), which transforms the digital signal into a mechanical rotation of the axis capable of diverting the lemon to the corresponding basket according to your category. From the results obtained, it is concluded that the technological maturity of the proposed device is at a Technology Readiness Level (TRL) of 3 since a proof-of-concept has been satisfactorily evaluated.

4. Conclusions

The present study shows the basis for the development of a simple, low-cost, and fast technology for the automatic classification of Persian lemons according to their quality parameters to preserve the standards requested by the market. It is possible to use a low-cost device to analyze digital images and, coupled with an ANN, make decisions to differentiate between categories. The algorithm developed to analyze digital images shows 96.6% accuracy for product classification, showing itself as a potential application to automate manual fruit classification processes, helping to reduce errors made by personnel and increasing the speed of the process with the aim of having low costs. The proposed prototype model has been evaluated through simulations, evidencing its feasibility of use. As a perspective, it is contemplated to evaluate the proposed prototype on a pilot scale under controlled conditions in order to show the proposal with a level of technological maturity of TRL4 (technology validated in the lab).

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/foods12203829/s1. Supplementary Figure S1. Representative sample of 10 lemons analyzed for category “extra”. Note: The differences in the dimensions of the images correspond to the condition of analyzing at least 60% of the total area of the fruit. Supplementary Figure S2. Representative sample of 10 lemons analyzed for category I. Note: The differences in the dimensions of the images correspond to the condition of analyzing at least 60% of the total area of the fruit. Supplementary Figure S3. Representative sample of 10 lemons analyzed for category II. Note: The differences in the dimensions of the images correspond to the condition of analyzing at least 60% of the total area of the fruit. Supplementary Figure S4. Statistical analysis of the values of (a) red, (b) green, and (c) blue in Persian lemons according to the category. Supplementary Figure S5. Statistical analysis of the values of (a) weight, (b) diameter/length, and (c) thickness in Persian lemons according to the category.

Author Contributions

B.V.G.-V. and C.S.G.-N., Investigation, Data curation, Methodology, Formal analysis. C.M.-F., Validation, Data curation. W.M.W.-V., Conceptualization, Data Curation, Formal analysis, Methodology, Software, Original writing—draft, Writing: proofreading and editing. A.C.-R. and L.A.R.-C. Conceptualization, Supervision, Methodology, Project administration, Resources, Original writing—draft, Writing—proofreading and editing. All authors have read and agreed to the published version of the manuscript.

Funding

The APC was funded by the Dirección de Investigación—Universidad Autónoma de Guadalajara.

Data Availability Statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Acknowledgments

B.V.G.-V. and C.M.-F. thanks the Universidad Autónoma de Guadalajara for the scholarship received for the completion of undergraduate studies. C.S.G.-N. and L.A.R.-C. thanks the “Dirección de Investigación—UAG” for the support received through the “Convocatoria de Proyectos de Investigación para incidir en el entorno UAG 2022”. The authors thank Arturo Padilla-Padilla and the “Centro de Producción Audiovisual—UAG” for the support received during the analysis of digital images. The authors appreciate the support provided by the company Esperanza de San José Ornelas SPR de RL for carrying out this research work.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Raddatz-Mota, D.; Franco-Mora, O.; Mendoza-Espinoza, J.A.; Rodríguez-Verástegui, L.L.; Díaz de León-Sánchez, F.; Rivera-Cabrera, F. Effect of Different Rootstocks on Persian Lime (Citrus latifolia T.) Postharvest Quality. Sci. Hortic. 2019, 257, 108716. [Google Scholar] [CrossRef]
  2. Mukhtar, T.; Jamil, S.; Arif, U.; Razzaq, W.; Wasif, M. Lemon Grading and Sorting Using Computer Vision. Eng. Proc. 2021, 12, 55. [Google Scholar] [CrossRef]
  3. Nayak, J.; Vakula, K.; Dinesh, P.; Naik, B.; Pelusi, D. Intelligent Food Processing: Journey from Artificial Neural Network to Deep Learning. Comput. Sci. Rev. 2020, 38, 100297. [Google Scholar] [CrossRef]
  4. Cubeddu, A.; Rauh, C.; Delgado, A. Hybrid Artificial Neural Network for Prediction and Control of Process Variables in Food Extrusion. Innov. Food Sci. Emerg. Technol. 2014, 21, 142–150. [Google Scholar] [CrossRef]
  5. Batista, L.F.; Marques, C.S.; Pires, A.C.d.S.; Minim, L.A.; Soares, N.d.F.F.; Vidigal, M.C.T.R. Artificial Neural Networks Modeling of Non-Fat Yogurt Texture Properties: Effect of Process Conditions and Food Composition. Food Bioprod. Process. 2021, 126, 164–174. [Google Scholar] [CrossRef]
  6. Zalpouri, R.; Singh, M.; Kaur, P.; Kaur, A.; Gaikwad, K.K.; Singh, A. Drying Kinetics, Physicochemical and Thermal Analysis of Onion Puree Dried Using a Refractance Window Dryer. Processes 2023, 11, 700. [Google Scholar] [CrossRef]
  7. da Silva Sauthier, M.C.; da Silva, E.G.P.; da Silva Santos, B.R.; Silva, E.F.R.; da Cruz Caldas, J.; Cavalcante Minho, L.A.; dos Santos, A.M.P.; dos Santos, W.N.L. Screening of Mangifera indica L. Functional Content Using PCA and Neural Networks (ANN). Food Chem. 2019, 273, 115–123. [Google Scholar] [CrossRef]
  8. Pourdarbani, R.; Sabzi, S.; Hernández-Hernández, M.; Hernández-Hernández, J.L.; Gallardo-Bernal, I.; Herrera-Miranda, I. Non-Destructive Estimation of Total Chlorophyll Content of Apple Fruit Based on Color Feature, Spectral Data and the Most Effective Wavelengths Using Hybrid Artificial Neural Network—Imperialist Competitive Algorithm. Plants 2020, 9, 1547. [Google Scholar] [CrossRef]
  9. Fan, F.H.; Ma, Q.; Ge, J.; Peng, Q.Y.; Riley, W.W.; Tang, S.Z. Prediction of Texture Characteristics from Extrusion Food Surface Images Using a Computer Vision System and Artificial Neural Networks. J. Food Eng. 2013, 118, 426–433. [Google Scholar] [CrossRef]
  10. Debska, B.; Guzowska-Swider, B. Application of Artificial Neural Network in Food Classification. Anal. Chim. Acta 2011, 705, 283–291. [Google Scholar] [CrossRef]
  11. Cimpoiu, C.; Cristea, V.M.; Hosu, A.; Sandru, M.; Seserman, L. Antioxidant Activity Prediction and Classification of Some Teas Using Artificial Neural Networks. Food Chem. 2011, 127, 1323–1328. [Google Scholar] [CrossRef]
  12. da Silva, C.E.T.; Filardi, V.L.; Pepe, I.M.; Chaves, M.A.; Santos, C.M.S. Classification of Food Vegetable Oils by Fluorimetry and Artificial Neural Networks. Food Control 2015, 47, 86–91. [Google Scholar] [CrossRef]
  13. Wu, A.; Zhu, J.; Ren, T. Detection of Apple Defect Using Laser-Induced Light Backscattering Imaging and Convolutional Neural Network. Comput. Electr. Eng. 2020, 81, 106454. [Google Scholar] [CrossRef]
  14. Jahanbakhshi, A.; Momeny, M.; Mahmoudi, M.; Zhang, Y.D. Classification of Sour Lemons Based on Apparent Defects Using Stochastic Pooling Mechanism in Deep Convolutional Neural Networks. Sci. Hortic. 2020, 263, 109133. [Google Scholar] [CrossRef]
  15. Barré, P.; Herzog, K.; Höfle, R.; Hullin, M.B.; Töpfer, R.; Steinhage, V. Automated Phenotyping of Epicuticular Waxes of Grapevine Berries Using Light Separation and Convolutional Neural Networks. Comput. Electron. Agric. 2019, 156, 263–274. [Google Scholar] [CrossRef]
  16. Munasingha, L.V.; Gunasinghe, H.N.; Dhanapala, W.W.G.D.S. Identification of Papaya Fruit Diseases Using Deep Learning Approach. In Proceedings of the 4th International Conference on Advances in Computing and Technology (ICACT–2019), Colombo, Sri Lanka, 29 July 2019. [Google Scholar]
  17. Tran, T.T.; Choi, J.W.; Le, T.T.H.; Kim, J.W. A Comparative Study of Deep CNN in Forecasting and Classifying the Macronutrient Deficiencies on Development of Tomato Plant. Appl. Sci. 2019, 9, 1601. [Google Scholar] [CrossRef]
  18. Sustika, R.; Subekti, A.; Pardede, H.F.; Suryawati, E.; Mahendra, O.; Yuwana, S. Evaluation of Deep Convolutional Neural Network Architectures for Strawberry Quality Inspection. Int. J. Eng. Technol. 2018, 7, 75–80. [Google Scholar]
  19. Wang, Z.; Hu, M.; Zhai, G. Application of Deep Learning Architectures for Accurate and Rapid Detection of Internal Mechanical Damage of Blueberry Using Hyperspectral Transmittance Data. Sensors 2018, 18, 1126. [Google Scholar] [CrossRef]
  20. Zhang, Y.; Lian, J.; Fan, M.; Zheng, Y. Deep Indicator for Fine-Grained Classification of Banana’s Ripening Stages. EURASIP J. Image Video Process 2018, 2018, 46. [Google Scholar] [CrossRef]
  21. Tan, W.; Zhao, C.; Wu, H. Intelligent Alerting for Fruit-Melon Lesion Image Based on Momentum Deep Learning. Multimed. Tools Appl. 2016, 75, 16741–16761. [Google Scholar] [CrossRef]
  22. Naranjo-Torres, J.; Mora, M.; Hernández-García, R.; Barrientos, R.J.; Fredes, C.; Valenzuela, A. A Review of Convolutional Neural Network Applied to Fruit Image Processing. Appl. Sci. 2020, 10, 3443. [Google Scholar] [CrossRef]
  23. Pandey, V.K.; Srivastava, S.; Dash, K.K.; Singh, R.; Mukarram, S.A.; Kovács, B.; Harsányi, E. Machine Learning Algorithms and Fundamentals as Emerging Safety Tools in Preservation of Fruits and Vegetables: A Review. Processes 2023, 11, 1720. [Google Scholar] [CrossRef]
  24. Zhu, L.; Spachos, P.; Pensini, E.; Plataniotis, K.N. Deep Learning and Machine Vision for Food Processing: A Survey. Curr. Res. Food Sci. 2021, 4, 233–249. [Google Scholar] [CrossRef]
  25. Zhang, Y.; Deng, L.; Zhu, H.; Wang, W.; Ren, Z.; Zhou, Q.; Lu, S.; Sun, S.; Zhu, Z.; Gorriz, J.M.; et al. Deep Learning in Food Category Recognition. Inf. Fusion 2023, 98, 101859. [Google Scholar] [CrossRef]
  26. Kakani, V.; Nguyen, V.H.; Kumar, B.P.; Kim, H.; Pasupuleti, V.R. A Critical Review on Computer Vision and Artificial Intelligence in Food Industry. J. Agric. Food Res. 2020, 2, 100033. [Google Scholar] [CrossRef]
  27. Warren-Vega, W.M.; Contreras-Atrisco, Z.A.; Ramírez-Quezada, M.F.; Romero-Cano, L.A. A Novel Approach of Artificial Intelligence for the Study of the Relation of Physicochemical Profile and Color Acquired by Tequila 100% Agave in Its Maturation Process. J. Food Compos. Anal. 2023, 123, 105533. [Google Scholar] [CrossRef]
  28. Heil, J.; Marschner, B.; Stumpe, B. Digital Photography as a Tool for Microscale Mapping of Soil Organic Carbon and Iron Oxides. Catena 2020, 193, 104610. [Google Scholar] [CrossRef]
  29. Rodrigo, M.J.; Alquézar, B.; Alós, E.; Lado, J.; Zacarías, L. Biochemical Bases and Molecular Regulation of Pigmentation in the Peel of Citrus Fruit. Sci. Hortic. 2013, 163, 46–62. [Google Scholar] [CrossRef]
  30. Tanaka, A.; Tanaka, R. Chlorophyll Metabolism. Curr. Opin. Plant Biol. 2006, 9, 248–255. [Google Scholar] [CrossRef]
  31. Cho, B.H.; Koseki, S. Determination of Banana Quality Indices during the Ripening Process at Different Temperatures Using Smartphone Images and an Artificial Neural Network. Sci. Hortic. 2021, 288, 110382. [Google Scholar] [CrossRef]
  32. Mukherjee, A.; Sarkar, T.; Chatterjee, K.; Lahiri, D.; Nag, M.; Rebezov, M.; Shariati, M.A.; Miftakhutdinov, A.; Lorenzo, J.M. Development of Artificial Vision System for Quality Assessment of Oyster Mushrooms. Food Anal. Methods 2022, 15, 1663–1676. [Google Scholar] [CrossRef]
  33. de Moraes, J.L.; de Oliveira Neto, J.; Badue, C.; Oliveira-Santos, T.; de Souza, A.F. Yolo-Papaya: A Papaya Fruit Disease Detector and Classifier Using CNNs and Convolutional Block Attention Modules. Electronics 2023, 12, 2202. [Google Scholar] [CrossRef]
Figure 1. Photographs of the visual classification of lemons: (a) Category “extra”, (b) Category I, and (c) Category II. (d) Visual artificial system to classify lemons; (e) experimental Set-up.
Figure 1. Photographs of the visual classification of lemons: (a) Category “extra”, (b) Category I, and (c) Category II. (d) Visual artificial system to classify lemons; (e) experimental Set-up.
Foods 12 03829 g001
Figure 2. ANN architecture for lemon classification.
Figure 2. ANN architecture for lemon classification.
Foods 12 03829 g002
Figure 3. Representative sample of digital images and RGB color distribution for each of the categories of lemons analyzed: (a) Category extra, (b) Category I, and (c) Category II.
Figure 3. Representative sample of digital images and RGB color distribution for each of the categories of lemons analyzed: (a) Category extra, (b) Category I, and (c) Category II.
Foods 12 03829 g003
Figure 4. Color chart of the lemons analyzed based on their quality criteria. The number corresponds to Color Intensity (CI). From top to bottom: Category “extra” CI (35–210), Category I CI (245–420), and Category II CI (455–630).
Figure 4. Color chart of the lemons analyzed based on their quality criteria. The number corresponds to Color Intensity (CI). From top to bottom: Category “extra” CI (35–210), Category I CI (245–420), and Category II CI (455–630).
Foods 12 03829 g004
Figure 5. Statistical analysis of the values of (a) hue, (b) saturation, (c) value, and (d) color intensity in Persian lemons. Where: Category “extra” = high quality, Category I = medium quality, and Category II = low quality.
Figure 5. Statistical analysis of the values of (a) hue, (b) saturation, (c) value, and (d) color intensity in Persian lemons. Where: Category “extra” = high quality, Category I = medium quality, and Category II = low quality.
Foods 12 03829 g005aFoods 12 03829 g005b
Figure 6. Confusion matrix for lemon classification (outputs: 1: Category “extra”, 2: Category I, 3: Category II).
Figure 6. Confusion matrix for lemon classification (outputs: 1: Category “extra”, 2: Category I, 3: Category II).
Foods 12 03829 g006
Figure 7. ANN second set (a) confusion matrix and (b) ROC curve.
Figure 7. ANN second set (a) confusion matrix and (b) ROC curve.
Foods 12 03829 g007
Figure 8. (a) MATLAB Simulink model prototype; (b) proposed diagram for the automatic classification of lemons.
Figure 8. (a) MATLAB Simulink model prototype; (b) proposed diagram for the automatic classification of lemons.
Foods 12 03829 g008
Figure 9. Pulse outputs (ac) and step angles (df) with different delay times based on the classification of lemons using the trained ANN.
Figure 9. Pulse outputs (ac) and step angles (df) with different delay times based on the classification of lemons using the trained ANN.
Foods 12 03829 g009
Table 1. Input variables in an artificial neural network for the classification of lemons.
Table 1. Input variables in an artificial neural network for the classification of lemons.
PropertiesCategory “Extra”Category ICategory II
Hue126.83 ± 7.2387.83 ± 25.6060.95 ± 9.08
Saturation95.60 ± 7.2187.85 ± 11.0762.44 ± 17.36
Value42.39 ± 20.8578.65 ± 12.0591.84 ± 4.88
Color intensity127.43 ± 56.62341.2 ± 68.54538.55 ± 57.49
Weight (g)26.50 ± 3.0025.69 ± 3.0223.05 ± 3.08
Diameter/Length0.92 ± 0.080.91 ± 0.060.97 ± 0.07
Thickness (mm)1.50 ± 0.291.48 ± 0.321.29 ± 0.33
Table 2. Bibliographic comparison against outstanding works previously reported in the literature.
Table 2. Bibliographic comparison against outstanding works previously reported in the literature.
FruitStudyGoalRef.
AppleLaser-induced light backscattering imaging and convolutional neural networkAutomatic identification and detection of apple defects achieving a recognition rate of 92.5%[13]
LemonStochastic Pooling Mechanism in Deep Convolutional Neural NetworksDetect defects and grade them achieving a recognition rate of 100%[14]
PapayaCNNs * and Convolutional Block Attention Modulesdisease detector with a mean average precision of 86.2%[33]
TomatoDeep CNN *nutritional deficiencies detection in the cropping process with a mean average precision of 91%[17]
StrawberryDeep CNN *quality classification achieving a recognition rate of 96.49%[18]
BlueberryCNN *, ResNet *, ResNeXt *Detection of internal mechanical damage achieving a recognition rate of 89.5%[19]
BananaCNN *Fine-grained classification of banana’s ripening stages achieving a recognition rate of 94.4%[20]
MelonCNN *Skin lesion achieving an accuracy rate of 98.5%[21]
* CNN—Convultional Neural Network; ResNet—Residual Network; ResNeXt—Improved version of ResNet.
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

Granados-Vega, B.V.; Maldonado-Flores, C.; Gómez-Navarro, C.S.; Warren-Vega, W.M.; Campos-Rodríguez, A.; Romero-Cano, L.A. Development of a Low-Cost Artificial Vision System as an Alternative for the Automatic Classification of Persian Lemon: Prototype Test Simulation. Foods 2023, 12, 3829. https://doi.org/10.3390/foods12203829

AMA Style

Granados-Vega BV, Maldonado-Flores C, Gómez-Navarro CS, Warren-Vega WM, Campos-Rodríguez A, Romero-Cano LA. Development of a Low-Cost Artificial Vision System as an Alternative for the Automatic Classification of Persian Lemon: Prototype Test Simulation. Foods. 2023; 12(20):3829. https://doi.org/10.3390/foods12203829

Chicago/Turabian Style

Granados-Vega, Bridget V., Carlos Maldonado-Flores, Camila S. Gómez-Navarro, Walter M. Warren-Vega, Armando Campos-Rodríguez, and Luis A. Romero-Cano. 2023. "Development of a Low-Cost Artificial Vision System as an Alternative for the Automatic Classification of Persian Lemon: Prototype Test Simulation" Foods 12, no. 20: 3829. https://doi.org/10.3390/foods12203829

APA Style

Granados-Vega, B. V., Maldonado-Flores, C., Gómez-Navarro, C. S., Warren-Vega, W. M., Campos-Rodríguez, A., & Romero-Cano, L. A. (2023). Development of a Low-Cost Artificial Vision System as an Alternative for the Automatic Classification of Persian Lemon: Prototype Test Simulation. Foods, 12(20), 3829. https://doi.org/10.3390/foods12203829

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