Acessibilidade / Reportar erro

Tomato quality based on colorimetric characteristics of digital images

Características colorimétricas obtidas a partir de imagens digitais para avaliação da qualidade de tomates

ABSTRACT

Results of evaluations using optical evaluation methods may be correlated with tomato quality and maturation. In this context, the objective of this study was to evaluated the correlation between tomato colorimetric and physico-chemical variables, clustering them as a function of maturation stages, using multivariate analysis. The experiment was conducted using 150 fruits and three maturation stages (immature, light red and mature). The physico-chemical variables were evaluated through traditional methods. The colorimetric variables were assessed on images in RGB color model taken with a digital camera. The correlation between colorimetric and physico-chemical variables was analyzed using the Pearson’s coefficient. Principal components analysis and k-means clustering method was applied to three data set: RGB isolated variables; colorimetric variables calculated by relation between the RGB bands (colorimetric indexes); and physico-chemical variables. The colorimetric variables present higher explanatory capacity of the maturation variation than physico-chemical variables. The colorimetric indexes presented higher performance in clustering (accuracy of 0.98) tomatoes as a function of maturation.

Key words:
Licopersicum esculentum; artificial vision systems; RGB model

RESUMO

Variáveis obtidas por métodos ópticos podem apresentar correlação com características relacionadas à qualidade e maturação de tomates. Neste contexto, objetivou-se com este estudo analisar a correlação entre as variáveis colorimétricas e físico-químicas de tomates, agrupando-os em função do estádio de maturação, utilizando análise multivariada. O experimento foi realizado utilizando 150 frutos em três estádios de maturação (imaturos, coloridos e maduros). As variáveis físico-químicas foram obtidas por meio de métodos tradicionais. As variáveis colorimétricas foram obtidas a partir de uma câmera digital no espaço de cor RGB. A análise da correlação entre as variáveis colorimétricas e físico-químicas foi realizada por meio do coeficiente de Pearson. A análise de componentes principais associada à técnica de agrupamento k-means foi aplicada em três grupos de dados: variáveis RGB isoladas; variáveis colorimétricas calculadas pela relação entre as bandas RGB (índices colorimétricos); e variáveis físico-químicas. As variáveis colorimétricas apresentam maior capacidade explicativa da variação da maturação quando comparadas às variáveis físico-químicas. O conjunto de índices colorimétricos apresentou o maior desempenho no agrupamento (exatidão global = 0,98) dos tomates em função da maturação.

Palavras-chave:
Licopersicum esculentum; sistemas de visão artificial; modelo RGB

Introduction

Tomato (Licopersicum esculentum) is an internationally important crop species; it is the second most produced vegetable in the world (Peixoto et al., 2017Peixoto, J. V. M.; Moraes, E. R. de; Peixoto, J. L. M.; Nascimento, A. dos R.; Neves, J. G. Tomaticultura: Aspectos morfológicos e propriedades físico-químicas do fruto. Revista Científica Rural, v.19, p.96-117, 2017.). Studies have been using methods that assist in tomato quality control, which is required by industry and consumers (Jorge et al., 2011Jorge, L. A. C.; Gonçalves, D. S.; Oyama, P. I. C.; Ferreira, M. D. Uso de sistemas de imagem para classificação de frutas e hortaliças. In: Ferreira, M. D. Tecnologias pós-colheita em frutas e hortaliças. São Carlos: Embrapa Instrumentação, 2011. Cap.7, p.125-157.; Huang et al., 2018Huang, Y.; Lu, R.; Hu, D.; Chen, K. Quality assessment of tomato fruit by optical absorption and scattering properties. Postharvest Biology and Technology, v.143, p.78-85, 2018. https://doi.org/10.1016/j.postharvbio.2018.04.016
https://doi.org/10.1016/j.postharvbio.20...
).

Laboratory tests are usually used to evaluate fruit quality through physico-chemical attributes, such as pulp firmness, total soluble solids, and acidity (Magwaza & Opara, 2015Magwaza, L. S.; Opara, U. L. Analytical methods for determination of sugars and sweetness of horticultural products: A review. Scientia Horticulturae, v.184, p.179-192, 2015. https://doi.org/10.1016/j.scienta.2015.01.001
https://doi.org/10.1016/j.scienta.2015.0...
; Teka, 2013Teka, T. A. Analysis of the effect of maturity stage on the postharvest bio-chemical quality characteristics of tomato (Lycopersicon esculentum Mill.) fruit. International Research Journal of Pharmaceutical and Applied Sciences, v.3, p.180-186, 2013.). These procedures are, in general, destructive and demand chemical reagents and expensive equipment, making it difficult to obtain a rigorous quality control. Moreover, fruit selection and classification by the industry and markets are based on variables established by quality control agencies using, predominantly, visual inspection (CEAGESP, 2003CEAGESP - Companhia de Entrepostos e Armazéns Gerais de São Paulo. Normas para classificação de tomates. São Paulo: CEAGESP, 2003. 2p. Documento, 26.).

Artificial vision systems have efficiency assessed and quantified fruit quality and control characteristics (Zhang et al., 2014Zhang, B.; Huang, W.; Li, J.; Zhao, C.; Fan, S.; Wu, J.; Liu, C. Principles, developments and applications of computer vision for external quality inspection of fruits and vegetables: A review. Food Research International, v.62, p.326-343, 2014. https://doi.org/10.1016/j.foodres.2014.03.012
https://doi.org/10.1016/j.foodres.2014.0...
; Wang et al., 2015Wang, H.; Peng, J.; Xie, C.; Bao, Y.; He, Y. Fruit quality evaluation using spectroscopy technology: A review. Sensors, v.15, p.11889-11927, 2015. https://doi.org/10.3390/s150511889
https://doi.org/10.3390/s150511889...
). Color is the most important quality attribute of tomato fruits, which is related to their appearance, sugar content, acidity, texture, flavor, and succulence (Ferreira et al., 2010Ferreira, S. M. R.; Quadros, D. A. de; Karkle, E. N. L.; Lima, J. J. de; Tullio, L. T.; Freitas, R. J. S. de. Qualidade pós-colheita do tomate de mesa convencional e orgânico. Ciência e Tecnologia de Alimentos, v.30, p.858-864, 2010. https://doi.org/10.1590/S0101-20612010000400004
https://doi.org/10.1590/S0101-2061201000...
; Governici et al., 2017Governici, J. L.; Faria, R. M.; Tinini, R. C. R.; Mederos, B. J. T. Tomatoes maturation analysis with reflectance spectral images. Journal of Agricultural Science and Technology B, v.7, p.426-431, 2017. https://doi.org/10.17265/2161-6264/2017.06.007
https://doi.org/10.17265/2161-6264/2017....
).

Colorimetric characteristics based on images in RGB color model have allowed the implementation of artificial vision systems with high capacity of classification, using low-cost equipment (Wan et al., 2018Wan, P.; Toudeshki, A.; Tan, H.; Ehsani, R. A methodology for fresh tomato maturity detection using computer vision. Computers and Electronics in Agriculture , v.146, p.43-50, 2018. https://doi.org/10.1016/j.compag.2018.01.011
https://doi.org/10.1016/j.compag.2018.01...
). These systems can assist in selecting and control tomatoes fruit quality with non-destructive methods (Bicanic et al., 2015Bicanic, D.; Streza, M.; Dóka, O.; Valinger, D.; Luterotti, S.; Ajtony, Z.; Dadarlat, D. Non-destructive measurement of total carotenoid content in processed tomato products: Infrared lock-in thermography, near-infrared spectroscopy/chemometrics, and condensed phase laser-based photoacoustics-pilot study. International Journal of Thermophysics, v.36, p.2380-2388, 2015. https://doi.org/10.1007/s10765-015-1895-2
https://doi.org/10.1007/s10765-015-1895-...
).

Therefore, the objective of this study was to evaluated the correlation between tomato colorimetric and physico-chemical variables, clustering them as a function of maturation stages using multivariate analysis.

Material and Methods

This study was conducted using 150 tomatoes of the variety Caqui, obtained in market places and selected by visual inspection of color. The tomatoes were classified as immature (green), colorful (orange-reddish), and mature (predominantly red) based on the variables defined by CEAGESP (2003)CEAGESP - Companhia de Entrepostos e Armazéns Gerais de São Paulo. Normas para classificação de tomates. São Paulo: CEAGESP, 2003. 2p. Documento, 26.. Fifty tomatoes of each maturation stage were evaluated.

Images of each fruit were taken using a digital camera (Cannon S110), with resolution of 2592 × 1944 pixels and light capture within the visible spectra.

The images were taken by placing each tomato in the center of a photographic studio for small objects. The light was generated by a LED lamp of 100-W and temperature of 5000 K. The digital camera was placed in a tripod at 0.17 m height, at 0.23 m from the tomato fruit, and set with maximum zoom of 3x and automatic white balance and ISO. This configuration was the same for all shots to standardize the images. The images were taken in RGB additive color system and stored in JPEG files.

The images were then pre-processed and segmented using the ImageJ program, by applying the Gaussian filter to eliminate noises and improve their quality, and segmenting them to remove the background, highlighting the object of interest (tomato). The limit used to separate the background and tomato in the image was based on the method of Otsu (Otsu, 1975Otsu, N. A threshold selection method from gray-level histograms. Automatica, v. 11, p.23-27, 1975.), using a binary value for each pixel-0 (black) or 1 (white), according to Costa et al. (2018Costa, A. G.; Pinto, F. A.; Braga, R. A.; Motoike, S. Y.; Gracia, L. Classification of macaw palm fruits from colorimetric properties for determining the harvest moment. Engenharia Agrícola, v.38, p.634-641, 2018. https://doi.org/10.1590/1809-4430-eng.agric.v38n4p634-641/2018
https://doi.org/10.1590/1809-4430-eng.ag...
).

The final image was the result of a logic operation of combinations of the filtered and the binary images. The processed images were evaluated for mean intensity levels of the red (R), green (G), and blue (B) bands of the area of each fruit in two places of the images, corresponding to the opposite sides of the tomato fruit.

The spectral variations of fruits were highlighted, intensifying the distinction between maturations, and eliminating the environmental light effect, by calculating four spectral indexes for the RGB images (Eq. 1, 2, 3 and 4):

G R = G R (1)

P R = G B G + B (2)

N G R D I = G R G + R (3)

N E G = 2 G R B R + G + B (4)

where:

R - mean color intensity of the red band in pixel units, 0 ≤ R ≤ 255;

G - mean color intensity of the green band in pixel units, 0 ≤ G ≤ 255;

B - mean color intensity of the blue band in pixel units, 0 ≤ B ≤ 255;

GR - green-red relation, as used by Baesso et al. (2012Baesso, M. M.; Varella, C. A. A.; Martins, G. A.; Modolo, A. J.; Brandelero, E. M. Determinação do nível de deficiência nutricional de nitrogênio no feijoeiro utilizando redes neurais artificiais. Revista Engenharia na Agricultura, v.20, p.512-518, 2012. https://doi.org/10.13083/1414-3984.v20n06a03
https://doi.org/10.13083/1414-3984.v20n0...
); and,

PR - pigment relation, as used by Metternicht (2003Metternicht, G. Vegetation indices derived from highresolution airborne videography for precision crop management. International Journal of Remote Sensing, v.24, p.2855-2877, 2003. https://doi.org/10.1080/01431160210163074
https://doi.org/10.1080/0143116021016307...
);

NGRDI - normalized green red difference index, as used by Gilabert et al. (2002Gilabert, M.; Piqueras, J. G.; Haro, F. G.; Meliá, J. A generalized soil-adjusted vegetation index. Remote Sensing of Environment, v.82, p.303-310, 2002. https://doi.org/10.1016/S0034-4257(02)00048-2
https://doi.org/10.1016/S0034-4257(02)00...
); and,

NEG - normalized excess green, as used by Baesso et al. (2012Baesso, M. M.; Varella, C. A. A.; Martins, G. A.; Modolo, A. J.; Brandelero, E. M. Determinação do nível de deficiência nutricional de nitrogênio no feijoeiro utilizando redes neurais artificiais. Revista Engenharia na Agricultura, v.20, p.512-518, 2012. https://doi.org/10.13083/1414-3984.v20n06a03
https://doi.org/10.13083/1414-3984.v20n0...
).

The physico-chemical variables total soluble solid (TSS), pH, titratable acidity, and water content were determined according to AOAC (2010)AOAC - Association of Official Analytical Chemists. Official methods of analysis. 18.ed. Washington: AOAC, 2010. 1094p.. The pulp firmness of the fruits was determined using the flattener method (Calbo & Nery, 1995Calbo, A. G.; Nery, A. A. Medida de firmeza em hortaliças pela técnica de aplanação. Horticultura Brasileira, v.13, p.14-18, 1995.), and their weight was measured in a precision digital balance.

The colorimetric and physico-chemical variables were subjected to exploratory analysis, calculating the arithmetic mean, maximum and minimum values, standard deviation, and coefficients of variation. The data were also subjected to boxplot dispersion analysis to verify the presence of outliers beyond the lowest or highest limits.

The colorimetric and physico-chemical variables were correlated using the Pearson's coefficient of correlation.

The principal component analysis and k-means clustering method (Makky & Soni, 2013Makky, M.; Soni, P. Development of an automatic grading machine for oil palm fresh fruits bunches (FFBs) based on machine vision. Computers and Electronics in Agriculture , v.93, p.129-139, 2013. https://doi.org/10.1016/j.compag.2013.02.008
https://doi.org/10.1016/j.compag.2013.02...
; Li et al., 2014Li, H.; Lee, W. S; Wang, K. Identifying blueberry fruit of different growth stages using natural outdoor color images. Computers and Electronics in Agriculture, v.106, p.91-101, 2014. https://doi.org/10.1016/j.compag.2014.05.015
https://doi.org/10.1016/j.compag.2014.05...
) were carried out in the Past 3.1 program, to assess the potential of the variables evaluated in the digital imagens to distinguish the tomatoes as a function of maturation stages.

Considering that the variables presented different units, they were normalized before the analysis by their relation between means and standard deviations in each maturation stage and divided into three groups: colorimetric variables 1 (CV1), consisted of the R, G, B, and Mean-RGB; colorimetric variables 2 (CV2), consisted of calculated colorimetric indexes green-red relation (GR), pigment relation (PR), normalized green red difference index (NGRDI), and normalized excess green (NEG); and physico-chemical variables, consisted of fruit pulp firmness, weight, total soluble solids, pH, titratable acidity, and water content.

The groups with above 70% of the variance explained (Ferreira, 2008Ferreira, D. Estatística multivariada. Lavras: Editora UFLA, 2008. 662p.) by principal component 1 (PC1) and principal component 2 (PC2) could discriminate maturation stages through k-means clustering analysis.

The quality of the clustering was evaluated by the clustering purity index (CPI) (Zhao & Karypis, 2002Zhao, Y.; Karypis, G. Evaluation of hierarchical clustering algorithms for document datasets. In: Proceedings of the Eleventh International Conference on Information and Knowledge Management. Minnesota: ACM, 2002. p.515-524.), according to Eq. 5.

I P A = i = 1 M n i i N (5)

where:

ΣM i=1 nii - sum of fruits predominantly grouped in each class (stage of maturation); and,

N - Total number of fruits analyzed (150 fruits).

Results and Discussion

The colorimetric variables in RGB color model and the calculated variables GR and NEG presented high variations for maximum and minimum values, standard deviation, and coefficient of variation, indicating that these variables are the most affected by the maturation stage (Table 1). Outliers were not found for the boxplot dispersion analysis for any variable.

Table 1
Exploratory analysis of colorimetric and physico-chemical variables of tomatoes (n = 150)

The variation of the physico-chemical variables (Table 1) showed that fruit pulp firmness was the most affected variable by the tomato maturation stages. Firmness is a physical attribute that present inverse correlation to fruit maturation (Costa et al., 2017Costa, A. G.; Pinto, F. A.; Braga, R. A.; Motoike, S. Y.; Gracia, L. Relationship between biospeckle laser technique and firmness of Acrocomia aculeata fruits. Revista Brasileira de Engenharia Agrícola e Ambiental, v.21, p.68-73, 2017. https://doi.org/10.1590/1807-1929/agriambi.v21n1p68-73
https://doi.org/10.1590/1807-1929/agriam...
). According to Ferreira et al. (2010Ferreira, S. M. R.; Quadros, D. A. de; Karkle, E. N. L.; Lima, J. J. de; Tullio, L. T.; Freitas, R. J. S. de. Qualidade pós-colheita do tomate de mesa convencional e orgânico. Ciência e Tecnologia de Alimentos, v.30, p.858-864, 2010. https://doi.org/10.1590/S0101-20612010000400004
https://doi.org/10.1590/S0101-2061201000...
), the closer to the physiological maturation, the lower the pulp firmness, due to solubilization of substances of the cell walls by the action of enzymes whose activities increased along with the development of fruits.

Although chemical attributes such as TSS and pH (Pu et al., 2016Pu, H.; Liu, D.; Wang, L.; Sun, D. W. Soluble solids content and pH prediction and maturity discrimination of lychee fruits using visible and near infrared hyperspectral imaging. Food Analytical Methods, v.9, p.235-244, 2016. https://doi.org/10.1007/s12161-015-0186-7
https://doi.org/10.1007/s12161-015-0186-...
) are used as fruit maturation indicators, environmental, genetic, and management factors affect the tomato quality (Teka, 2013Teka, T. A. Analysis of the effect of maturity stage on the postharvest bio-chemical quality characteristics of tomato (Lycopersicon esculentum Mill.) fruit. International Research Journal of Pharmaceutical and Applied Sciences, v.3, p.180-186, 2013.). Therefore, the use of fruits from market places without information on the productive cycle may have contributed to the lower variation in these variables as a function of maturation stage.

Pulp firmness was the physico-chemical attribute with higher correlation with colorimetric variables (Table 2), confirming that this physico-chemical attribute is the most affected by fruit maturation in the experimental conditions used.

Table 2
Pearson's correlation matrix for colorimetric and physico-chemical variables of tomato fruits

The G intensity of the RGB model presented correlation with more physico-chemical variables than the other variables, showing that this colorimetric characteristic shows the tomato quality variations as a function of maturation.

The calculated colorimetric indexes had higher correlation with physico-chemical attributes, especially pulp firmness. Thus, colorimetric characteristics can be used to evaluate tomato quality and acceptability using non-destructive and automatic methods. The use of the colorimetric indexes NEG and GR to condense colorimetric information and improve the classification process was applied by Baesso et al. (2012Baesso, M. M.; Varella, C. A. A.; Martins, G. A.; Modolo, A. J.; Brandelero, E. M. Determinação do nível de deficiência nutricional de nitrogênio no feijoeiro utilizando redes neurais artificiais. Revista Engenharia na Agricultura, v.20, p.512-518, 2012. https://doi.org/10.13083/1414-3984.v20n06a03
https://doi.org/10.13083/1414-3984.v20n0...
) for identification of nutritional deficit in common bean crops.

Despite the significant correlations, fruit weight can present higher correlation with colorimetric variables when the maturation is monitored on the same fruit.

The correlation between the variables RGB and fruit qualitative characteristics is shown in studies that use these variables as indicators of quality (Wang et al., 2015Wang, H.; Peng, J.; Xie, C.; Bao, Y.; He, Y. Fruit quality evaluation using spectroscopy technology: A review. Sensors, v.15, p.11889-11927, 2015. https://doi.org/10.3390/s150511889
https://doi.org/10.3390/s150511889...
; Governici et al., 2017Governici, J. L.; Faria, R. M.; Tinini, R. C. R.; Mederos, B. J. T. Tomatoes maturation analysis with reflectance spectral images. Journal of Agricultural Science and Technology B, v.7, p.426-431, 2017. https://doi.org/10.17265/2161-6264/2017.06.007
https://doi.org/10.17265/2161-6264/2017....
; Costa et al., 2018Costa, A. G.; Pinto, F. A.; Braga, R. A.; Motoike, S. Y.; Gracia, L. Classification of macaw palm fruits from colorimetric properties for determining the harvest moment. Engenharia Agrícola, v.38, p.634-641, 2018. https://doi.org/10.1590/1809-4430-eng.agric.v38n4p634-641/2018
https://doi.org/10.1590/1809-4430-eng.ag...
) to assist in the decision-making during selection processes and harvest.

However, RGB intensity can be affected by variations in environmental light, resulting in distortions in the quantification of color intensity. The use of a light illumination apparatus using a single emitter for all shots minimized the effect of light variation in the measurements of RGB intensities. Non-controlled illumination environments require the use of colorimetric indexes to improve the perceptions of intensities of variables colorimetric, since R, G, and B bands eliminate the effect of illumination on the quantification of the colorimetric intensity (Sena Júnior et al., 2003Sena Júnior, D. G. de; Pinto, F. de A. de C.; Gomide, R. L.; Teixeira, M. M. Avaliação de métodos automáticos de limiarização para imagens de plantas de milho atacadas por Spodoptera frugiperda. Revista Brasileira de Engenharia Agrícola e Ambiental , v.7, p.359-366, 2003. https://doi.org/10.1590/S1415-43662003000200030
https://doi.org/10.1590/S1415-4366200300...
).

Table 3 shows the percentage of variance explained by the principal components in each group. Although it is an intuitive criterion, according to Ferreira (2008Ferreira, D. Estatística multivariada. Lavras: Editora UFLA, 2008. 662p.), a minimum explanation value between 70% and 90% is commonly adopted to determine the number of principal components needed to explain the variability of the data. The groups CV1 and CV2, consisted of colorimetric characteristics and independent variables, presented percentages higher than 70%, and were selected for clustering analysis.

Table 3
Percentage of explanation of the variance by the first and second principal components (PC1 and PC2) and accumulated percentage (PCac) for the groups of colorimetric variables 1 (CV1), colorimetric variables 2 (CV2), and physico-chemical variables (PCV)

These results denote that tomato colorimetric characteristics can explain variances in fruit characteristics as a function of maturation stage, even with little control of factors associated to tomato crop management and production. The physico-chemical characteristics are affected by these factors (Amarante et al., 2015Amarante, C. V. T. D. do; Rosa, E. de. F. F. da; Albuquerque, J. A.; Klauberg Filho, O.; Steffens, C. A. Soil attributes and fruit quality in organic and conventional apple production systems in southern Brazil. Revista Ciência Agronômica, v.46, p.99-109, 2015. https://doi.org/10.1590/S1806-66902015000100012
https://doi.org/10.1590/S1806-6690201500...
; Watanabe et al., 2015Watanabe, M.; Ohta, Y.; Licang, S.; Motoyama, N.; Kikuchi, J. Profiling contents of water-soluble metabolites and mineral nutrients to evaluate the effects of pesticides and organic and chemical fertilizers on tomato fruit quality. Food Chemistry, v.169, p.387-395, 2015. https://doi.org/10.1016/j.foodchem.2014.07.155
https://doi.org/10.1016/j.foodchem.2014....
), hindering their classification when the fruits are not from the same area.

In addition, colorimetric characteristics are assessed based on optical, non-destructive methods, making possible the automatization of selection, classification, and harvest processes (Zang et al., 2014; Wan et al., 2018Wan, P.; Toudeshki, A.; Tan, H.; Ehsani, R. A methodology for fresh tomato maturity detection using computer vision. Computers and Electronics in Agriculture , v.146, p.43-50, 2018. https://doi.org/10.1016/j.compag.2018.01.011
https://doi.org/10.1016/j.compag.2018.01...
). The evaluation of physico-chemical attributes, such as TSS, titratable acidity, pH, and water content, demand laboratory practices (AOAC, 2010AOAC - Association of Official Analytical Chemists. Official methods of analysis. 18.ed. Washington: AOAC, 2010. 1094p.) whose results are not instantaneous and require the use of chemical products and equipment that increase the analysis costs.

Fruit color variation during maturation is related to pigment production, such as chlorophyll, carotenoids, and lipocene (Bicanic et al., 2015Bicanic, D.; Streza, M.; Dóka, O.; Valinger, D.; Luterotti, S.; Ajtony, Z.; Dadarlat, D. Non-destructive measurement of total carotenoid content in processed tomato products: Infrared lock-in thermography, near-infrared spectroscopy/chemometrics, and condensed phase laser-based photoacoustics-pilot study. International Journal of Thermophysics, v.36, p.2380-2388, 2015. https://doi.org/10.1007/s10765-015-1895-2
https://doi.org/10.1007/s10765-015-1895-...
; Park et al., 2018Park, M. H.; Sangwanangkul, P.; Baek, D. R. Changes in carotenoid and chlorophyll content of black tomatoes (Lycopersicone sculentum L.) during storage at various temperatures. Saudi Journal of Biological Sciences, v.25, p.57-65, 2018. https://doi.org/10.1016/j.sjbs.2016.10.002
https://doi.org/10.1016/j.sjbs.2016.10.0...
). Therefore, including these pigments in the physico-chemical variable group can contribute to increase the explanatory capacity of the principal components of this group, reaching similar results to those of analysis of colorimetric variables.

Table 4 shows the correlation between the principal components PC1 and PC2 and the colorimetric variables CV1 and CV2. The R intensity, color characteristic of mature tomatoes, presented high correlation with PC1, component with high explanatory level (68.99%); thus, it is the most important colorimetric variable for the explanation of the maturation variation. The G intensity present higher correlation with PC2, but was the only variable affecting this component, with explanatory level of 28.02%.

Table 4
Correlation between the principal components (PC) and variables of group CV1 and of group CV2

The variables of group CV2 were strongly correlated with PC1, confirming that the use of GR, PR, NDVGRI, and NEG indexes improves the distinction of fruits from different maturation stages, and the explanatory capacity of the principal components.

Makky & Soni (2013Makky, M.; Soni, P. Development of an automatic grading machine for oil palm fresh fruits bunches (FFBs) based on machine vision. Computers and Electronics in Agriculture , v.93, p.129-139, 2013. https://doi.org/10.1016/j.compag.2013.02.008
https://doi.org/10.1016/j.compag.2013.02...
) used coefficients of colorimetric variables in a multivariate analysis of canonical discrimination and developed an equation to automatically classify palm tree bunches as a function of fruit maturation. Therefore, considering the high explanatory level of PC1 for the variance in group CV2 (97.73%), an equation generated from the coefficients (weights) of each variable in this component can be used as a tomato maturation index and assist in the decision-making in automatic systems of artificial vision.

Figure 1A shows the dispersion of scores of each fruit as a function of the two first components of group CV1. Fruits at maturation stage present, in general, a specific dispersion in the bidimensional plan. Moreover, the clustering of immature tomatoes was highly affected by the attribute G, and mature tomatoes were more affected by the attributes R and B. The dispersion of scores of the group CV2 (Figure 1B) as a function of maturation stages was more grouped than that of group CV1. The immature tomatoes were affected by the colorimetric variables GR, NGRDI, and NEG, whereas light red tomatoes were responsible to the variable PR, and mature tomatoes had lower effect of all indexes.

Figure 1
Scores of first and of second principal component (PC1 and PC2) of groups CV1 (A) and CV2 (B) dispersed according to the tomato maturation stage

Makky & Soni (2013Makky, M.; Soni, P. Development of an automatic grading machine for oil palm fresh fruits bunches (FFBs) based on machine vision. Computers and Electronics in Agriculture , v.93, p.129-139, 2013. https://doi.org/10.1016/j.compag.2013.02.008
https://doi.org/10.1016/j.compag.2013.02...
) used a similar procedure to the k-means clustering method, with colorimetric variables from the RGB and HSI color models, for groups of palm tree fruits in eight classes of maturation and found accuracy in the clustering of 88.7%.

Researches using the k-means algorithm for colorimetric characteristics to evaluate fruit maturation also found high accuracy indexes, such as Li et al. (2014Li, H.; Lee, W. S; Wang, K. Identifying blueberry fruit of different growth stages using natural outdoor color images. Computers and Electronics in Agriculture, v.106, p.91-101, 2014. https://doi.org/10.1016/j.compag.2014.05.015
https://doi.org/10.1016/j.compag.2014.05...
), when evaluated the maturation of grapes in the trees, and Yamamoto et al. (2014Yamamoto, K.; Guo, W.; Yoshioka, Y.; Ninomiya, S. On plant detection of intact tomato fruits using image analysis and machine learning methods. Sensors, v.14, p.12191-12206, 2014. https://doi.org/10.3390/s140712191
https://doi.org/10.3390/s140712191...
), when classifying tomato fruits without damages.

The clustering of fruits in 3 classes at maturation stages by the k-means algorithm of group CV1 (Table 5) showed that the class 1 was formed predominantly by mature tomatoes, class 2 by colorful fruits, and class 3 by immature fruits (CPI = 0.72). The clustering generated from group CV2 increased the clustering quality (CPI = 0.98), showing that the highlighting of colorimetric differences of fruits using calculated colorimetric indexes facilitated the classification of fruits as a function of maturation.

Table 5
Clustering of variables of group CV1 and CV2 by the k-means algorithm in each maturation stage

Although the variables RGB evaluated singly were efficient for the distinction of tomato maturation stages, the use of the correlation between these variables through calculated colorimetric indexes (CV2) was the most indicated data to be input in automated systems based on artificial vision, focusing on the selection and classification of tomatoes.

The use of colorimetric indexes such as GR, PR, NGRDI, and NEG decreases distortions caused by environmental light, highlighting the colorimetric differences as a function of fruit maturation, increasing the number of correct classifications in the clustering.

The implementation of low-cost artificial vision systems for selection and harvest mechanisms is a potential application to be explored in further researches focused on rural properties and food industries. The classification of tomatoes in intermediate stages to those evaluated in the present study and the analysis of correlation between colorimetric variables and sensorial characteristics (appearance, flavor, aroma, and consistency, for example) can also be investigated, focused on the development of a more robust classification model.

Conclusions

  1. Tomato pulp firmness was the physico-chemical attribute that presented higher correlation with colorimetric variables, and the most affected attribute by fruit maturation.

  2. The principal components of colorimetric variables were efficient to measure variations in tomato maturation, with high accumulated percentage of variability explained 97.01% for group CV1, and 99.87% for group CV2.

  3. The calculated colorimetric indexes green-red relation, pigment relation, normalized green red difference index, and normalized excess green increased the clustering quality (accuracy of 0.98) of tomatoes as a function of maturation stages with the use of the k-means algorithm.

Acknowledgements

Acknowledgments are due to Fundação Carlos Chagas Filho de Amparo à Pesquisa do Estado do Rio de Janeiro (FAPERJ) and Universidade Federal Rural do Rio de Janeiro which provided financial support and the necessary infrastructure for conducting this research.

Literature Cited

  • Amarante, C. V. T. D. do; Rosa, E. de. F. F. da; Albuquerque, J. A.; Klauberg Filho, O.; Steffens, C. A. Soil attributes and fruit quality in organic and conventional apple production systems in southern Brazil. Revista Ciência Agronômica, v.46, p.99-109, 2015. https://doi.org/10.1590/S1806-66902015000100012
    » https://doi.org/10.1590/S1806-66902015000100012
  • AOAC - Association of Official Analytical Chemists. Official methods of analysis. 18.ed. Washington: AOAC, 2010. 1094p.
  • Baesso, M. M.; Varella, C. A. A.; Martins, G. A.; Modolo, A. J.; Brandelero, E. M. Determinação do nível de deficiência nutricional de nitrogênio no feijoeiro utilizando redes neurais artificiais. Revista Engenharia na Agricultura, v.20, p.512-518, 2012. https://doi.org/10.13083/1414-3984.v20n06a03
    » https://doi.org/10.13083/1414-3984.v20n06a03
  • Bicanic, D.; Streza, M.; Dóka, O.; Valinger, D.; Luterotti, S.; Ajtony, Z.; Dadarlat, D. Non-destructive measurement of total carotenoid content in processed tomato products: Infrared lock-in thermography, near-infrared spectroscopy/chemometrics, and condensed phase laser-based photoacoustics-pilot study. International Journal of Thermophysics, v.36, p.2380-2388, 2015. https://doi.org/10.1007/s10765-015-1895-2
    » https://doi.org/10.1007/s10765-015-1895-2
  • Calbo, A. G.; Nery, A. A. Medida de firmeza em hortaliças pela técnica de aplanação. Horticultura Brasileira, v.13, p.14-18, 1995.
  • CEAGESP - Companhia de Entrepostos e Armazéns Gerais de São Paulo. Normas para classificação de tomates. São Paulo: CEAGESP, 2003. 2p. Documento, 26.
  • Costa, A. G.; Pinto, F. A.; Braga, R. A.; Motoike, S. Y.; Gracia, L. Relationship between biospeckle laser technique and firmness of Acrocomia aculeata fruits. Revista Brasileira de Engenharia Agrícola e Ambiental, v.21, p.68-73, 2017. https://doi.org/10.1590/1807-1929/agriambi.v21n1p68-73
    » https://doi.org/10.1590/1807-1929/agriambi.v21n1p68-73
  • Costa, A. G.; Pinto, F. A.; Braga, R. A.; Motoike, S. Y.; Gracia, L. Classification of macaw palm fruits from colorimetric properties for determining the harvest moment. Engenharia Agrícola, v.38, p.634-641, 2018. https://doi.org/10.1590/1809-4430-eng.agric.v38n4p634-641/2018
    » https://doi.org/10.1590/1809-4430-eng.agric.v38n4p634-641/2018
  • Ferreira, D. Estatística multivariada. Lavras: Editora UFLA, 2008. 662p.
  • Ferreira, S. M. R.; Quadros, D. A. de; Karkle, E. N. L.; Lima, J. J. de; Tullio, L. T.; Freitas, R. J. S. de. Qualidade pós-colheita do tomate de mesa convencional e orgânico. Ciência e Tecnologia de Alimentos, v.30, p.858-864, 2010. https://doi.org/10.1590/S0101-20612010000400004
    » https://doi.org/10.1590/S0101-20612010000400004
  • Gilabert, M.; Piqueras, J. G.; Haro, F. G.; Meliá, J. A generalized soil-adjusted vegetation index. Remote Sensing of Environment, v.82, p.303-310, 2002. https://doi.org/10.1016/S0034-4257(02)00048-2
    » https://doi.org/10.1016/S0034-4257(02)00048-2
  • Governici, J. L.; Faria, R. M.; Tinini, R. C. R.; Mederos, B. J. T. Tomatoes maturation analysis with reflectance spectral images. Journal of Agricultural Science and Technology B, v.7, p.426-431, 2017. https://doi.org/10.17265/2161-6264/2017.06.007
    » https://doi.org/10.17265/2161-6264/2017.06.007
  • Huang, Y.; Lu, R.; Hu, D.; Chen, K. Quality assessment of tomato fruit by optical absorption and scattering properties. Postharvest Biology and Technology, v.143, p.78-85, 2018. https://doi.org/10.1016/j.postharvbio.2018.04.016
    » https://doi.org/10.1016/j.postharvbio.2018.04.016
  • Jorge, L. A. C.; Gonçalves, D. S.; Oyama, P. I. C.; Ferreira, M. D. Uso de sistemas de imagem para classificação de frutas e hortaliças. In: Ferreira, M. D. Tecnologias pós-colheita em frutas e hortaliças. São Carlos: Embrapa Instrumentação, 2011. Cap.7, p.125-157.
  • Li, H.; Lee, W. S; Wang, K. Identifying blueberry fruit of different growth stages using natural outdoor color images. Computers and Electronics in Agriculture, v.106, p.91-101, 2014. https://doi.org/10.1016/j.compag.2014.05.015
    » https://doi.org/10.1016/j.compag.2014.05.015
  • Magwaza, L. S.; Opara, U. L. Analytical methods for determination of sugars and sweetness of horticultural products: A review. Scientia Horticulturae, v.184, p.179-192, 2015. https://doi.org/10.1016/j.scienta.2015.01.001
    » https://doi.org/10.1016/j.scienta.2015.01.001
  • Makky, M.; Soni, P. Development of an automatic grading machine for oil palm fresh fruits bunches (FFBs) based on machine vision. Computers and Electronics in Agriculture , v.93, p.129-139, 2013. https://doi.org/10.1016/j.compag.2013.02.008
    » https://doi.org/10.1016/j.compag.2013.02.008
  • Metternicht, G. Vegetation indices derived from highresolution airborne videography for precision crop management. International Journal of Remote Sensing, v.24, p.2855-2877, 2003. https://doi.org/10.1080/01431160210163074
    » https://doi.org/10.1080/01431160210163074
  • Otsu, N. A threshold selection method from gray-level histograms. Automatica, v. 11, p.23-27, 1975.
  • Park, M. H.; Sangwanangkul, P.; Baek, D. R. Changes in carotenoid and chlorophyll content of black tomatoes (Lycopersicone sculentum L.) during storage at various temperatures. Saudi Journal of Biological Sciences, v.25, p.57-65, 2018. https://doi.org/10.1016/j.sjbs.2016.10.002
    » https://doi.org/10.1016/j.sjbs.2016.10.002
  • Peixoto, J. V. M.; Moraes, E. R. de; Peixoto, J. L. M.; Nascimento, A. dos R.; Neves, J. G. Tomaticultura: Aspectos morfológicos e propriedades físico-químicas do fruto. Revista Científica Rural, v.19, p.96-117, 2017.
  • Pu, H.; Liu, D.; Wang, L.; Sun, D. W. Soluble solids content and pH prediction and maturity discrimination of lychee fruits using visible and near infrared hyperspectral imaging. Food Analytical Methods, v.9, p.235-244, 2016. https://doi.org/10.1007/s12161-015-0186-7
    » https://doi.org/10.1007/s12161-015-0186-7
  • Sena Júnior, D. G. de; Pinto, F. de A. de C.; Gomide, R. L.; Teixeira, M. M. Avaliação de métodos automáticos de limiarização para imagens de plantas de milho atacadas por Spodoptera frugiperda Revista Brasileira de Engenharia Agrícola e Ambiental , v.7, p.359-366, 2003. https://doi.org/10.1590/S1415-43662003000200030
    » https://doi.org/10.1590/S1415-43662003000200030
  • Teka, T. A. Analysis of the effect of maturity stage on the postharvest bio-chemical quality characteristics of tomato (Lycopersicon esculentum Mill.) fruit. International Research Journal of Pharmaceutical and Applied Sciences, v.3, p.180-186, 2013.
  • Wan, P.; Toudeshki, A.; Tan, H.; Ehsani, R. A methodology for fresh tomato maturity detection using computer vision. Computers and Electronics in Agriculture , v.146, p.43-50, 2018. https://doi.org/10.1016/j.compag.2018.01.011
    » https://doi.org/10.1016/j.compag.2018.01.011
  • Wang, H.; Peng, J.; Xie, C.; Bao, Y.; He, Y. Fruit quality evaluation using spectroscopy technology: A review. Sensors, v.15, p.11889-11927, 2015. https://doi.org/10.3390/s150511889
    » https://doi.org/10.3390/s150511889
  • Watanabe, M.; Ohta, Y.; Licang, S.; Motoyama, N.; Kikuchi, J. Profiling contents of water-soluble metabolites and mineral nutrients to evaluate the effects of pesticides and organic and chemical fertilizers on tomato fruit quality. Food Chemistry, v.169, p.387-395, 2015. https://doi.org/10.1016/j.foodchem.2014.07.155
    » https://doi.org/10.1016/j.foodchem.2014.07.155
  • Yamamoto, K.; Guo, W.; Yoshioka, Y.; Ninomiya, S. On plant detection of intact tomato fruits using image analysis and machine learning methods. Sensors, v.14, p.12191-12206, 2014. https://doi.org/10.3390/s140712191
    » https://doi.org/10.3390/s140712191
  • Zhang, B.; Huang, W.; Li, J.; Zhao, C.; Fan, S.; Wu, J.; Liu, C. Principles, developments and applications of computer vision for external quality inspection of fruits and vegetables: A review. Food Research International, v.62, p.326-343, 2014. https://doi.org/10.1016/j.foodres.2014.03.012
    » https://doi.org/10.1016/j.foodres.2014.03.012
  • Zhao, Y.; Karypis, G. Evaluation of hierarchical clustering algorithms for document datasets. In: Proceedings of the Eleventh International Conference on Information and Knowledge Management. Minnesota: ACM, 2002. p.515-524.
  • 0
    Editor responsible: Carlos Alberto Vieira de Azevedo

Publication Dates

  • Publication in this collection
    31 July 2020
  • Date of issue
    Aug 2020

History

  • Received
    18 Jan 2019
  • Accepted
    03 June 2020
  • Published
    30 June 2020
Unidade Acadêmica de Engenharia Agrícola Unidade Acadêmica de Engenharia Agrícola, UFCG, Av. Aprígio Veloso 882, Bodocongó, Bloco CM, 1º andar, CEP 58429-140, Campina Grande, PB, Brasil, Tel. +55 83 2101 1056 - Campina Grande - PB - Brazil
E-mail: revistagriambi@gmail.com