Acessibilidade / Reportar erro

Improvement of the classification of green asparagus using a Computer Vision System

Aprimoramento da classificação de aspargos verdes usando um Sistema de Visão Computacional

Abstract

The aim of this work was to improve the classification of green asparagus in an agro-export company by way of a Computer Vision System (CVS). Thus, an image analysis application was developed in the MATLAB® environment to classify green asparagus according to the absence of white spots and the width of the product. The CVS performance was compared with a manual classification using the error in the classification as the quality indicator; the yield from the raw material (%) and line productivity (kg/h) as the production indicators; and the net present value (USD) and internal rate of return (%) as the economic indicators. The CVS classified the green asparagus with 2% error; improved the yield from the raw material from 43% to 45%, and line productivity from 5 to 10 kg/h; and increased the net present value by 102,609.00 USD, yielding an Internal Rate of Return of 156.3%, much higher than the Opportunity Cost of the Capital (8.6%). Hence the classification of green asparagus by a CVS is an efficient and profitable alternative to manual classification.

Keywords:
Artificial vision; Asparagus officinalis; Automatization; Economical evaluation; Productivity; Quality

Resumo

O objetivo deste trabalho foi o aprimoramento da classificação de aspargos verdes em uma empresa agroexportadora, mediante um Sistema de Visão Computacional (SVC). Para isso, um aplicativo de análise de imagens foi desenvolvido no MATLAB®, para a classificação de aspargos verdes, segundo a ausência de machas brancas e a largura do produto. O desempenho do SVC foi comparado com a classificação manual usando o erro na classificação como indicador de qualidade. O rendimento da matéria-prima (%), a produtividade da linha (kg/h), o valor presente líquido (USD) e a taxa interna de retorno (%) foram utilizados como indicadores econômicos. O SVC classificou o aspargo verde com 2% de erro, incrementou o rendimento da matéria-prima de 43% para 45% e a produtividade da linha de 5 para 10 kg/h, bem como aumentou o valor presente líquido em 102.609,00 USD, rendendo uma taxa interna de retorno de 156,3%, muito superior ao custo de oportunidade do capital (8,6%). Assim, a classificação de aspargos verdes mediante um CVS é uma alternativa eficiente e rentável quando comparada à classificação manual.

Palavras-chave:
Visão artificial; Asparagus officinalis; Automatização; Avaliação econômica; Produtividade; Qualidade

1 Introduction

Peru is the world's leading exporter of green asparagus (Asparagus officinalis) due to its all-year-round agricultural production (Schuster & Maertens, 2015Schuster, M., & Maertens, M. (2015). The impact of private food standards on developing countries’ export performance: An analysis of asparagus firms in Peru. World Development, 66, 208-221. http://dx.doi.org/10.1016/j.worlddev.2014.08.019
http://dx.doi.org/10.1016/j.worlddev.201...
; Vázquez-Rowe et al., 2016Vázquez-Rowe, I., Kahhat, R., Quispe, I., & Bentín, M. (2016). Environmental profile of green asparagus production in a hyper-arid zone in coastal Peru. Journal of Cleaner Production, 112, 2505-2517. http://dx.doi.org/10.1016/j.jclepro.2015.09.076
http://dx.doi.org/10.1016/j.jclepro.2015...
). This vegetable, traditionally consumed throughout the world, is highly perishable and its quality easily lost, and hence its processing and commercialization must be fast as well as efficient (Lill, 1980Lill, R. E. (1980). Storage of fresh asparagus. New Zealand Journal of Experimental Agriculture, 8(2), 163-167. http://dx.doi.org/10.1080/03015521.1980.10426252
http://dx.doi.org/10.1080/03015521.1980....
; Wu & Yang, 2016Wu, L., & Yang, H. (2016). Combined application of carboxymethyl chitosan coating and brassinolide maintains the postharvest quality and shelf life of green asparagus. Journal of Food Processing and Preservation, 40(2), 154-165. http://dx.doi.org/10.1111/jfpp.12592
http://dx.doi.org/10.1111/jfpp.12592...
).

One of the critical spots in asparagus processing is its classification (Donis-González & Guyer, 2016Donis-González, I. R., & Guyer, D. E. (2016). Classification of processing asparagus sections using color images. Computers and Electronics in Agriculture, 127, 236-241. http://dx.doi.org/10.1016/j.compag.2016.06.018
http://dx.doi.org/10.1016/j.compag.2016....
). This activity is done manually in Peruvian agro-exporter companies, which is costly, slow and subject to involuntary errors caused by worker fatigue, which, in severe cases, leads to unnecessary expenses for product reclassification or dealing with client complaints.

Thus, the development and implementation of new technologies for a rapid and contact-free classification of vegetables helps to avoid the disadvantages and minimize the errors of manual classification (Mohd Ali et al., 2017Mohd Ali, M., Hashim, N., Bejo, S. K., & Shamsudin, R. (2017). Rapid and nondestructive techniques for internal and external quality evaluation of watermelons: a review. Scientia Horticulturae, 225, 689-699. http://dx.doi.org/10.1016/j.scienta.2017.08.012
http://dx.doi.org/10.1016/j.scienta.2017...
; Mahendran et al., 2012Mahendran, R., Jayashree, G. C., & Alagusundaram, K. (2012). Application of computer vision technique on sorting and grading of fruits and vegetables. Journal of Food Processing & Technology, 10, S1-S001.; Siche et al., 2016Siche, R., Vejarano, R., Aredo, V., Velasquez, L., Saldaña, E., & Quevedo, R. (2016). Evaluation of food quality and safety with hyperspectral imaging (HSI). Food Engineering Reviews, 8(3), 306-322. http://dx.doi.org/10.1007/s12393-015-9137-8
http://dx.doi.org/10.1007/s12393-015-913...
). One of these technologies with relative low cost is the Computer Vision System (CVS), which provides an objective control with constant criteria of the whole production in real time by way of digital image analysis with computer algorithms (Arakeri & Lakshmana, 2016Arakeri, M. P., & Lakshmana, (2016). Computer vision based fruit grading system for quality evaluation of tomato in agriculture industry. Procedia Computer Science, 79, 426-433. http://dx.doi.org/10.1016/j.procs.2016.03.055
http://dx.doi.org/10.1016/j.procs.2016.0...
; Ercisli et al., 2012Ercisli, S., Sayinci, B., Kara, M., Yildiz, C., & Ozturk, I. (2012). Determination of size and shape features of walnut (Juglans regia L.) cultivars using image processing. Scientia Horticulturae, 133, 47-55. http://dx.doi.org/10.1016/j.scienta.2011.10.014
http://dx.doi.org/10.1016/j.scienta.2011...
; Fuentes et al., 2014Fuentes, J. G., Davó, A. N., Reolid, A. J., & Varón, D. J. (2014). Visión artificial aplicada al control de la calidad. 3C Tecnología, 4, 297-308.; Saldaña et al., 2013Saldaña, E., Siche, R., Luján, M., & Quevedo, R. (2013). Computer vision applied to the inspection and quality control of fruits and vegetables. Brazilian Journal of Food Technology, 16(4), 254-272. http://dx.doi.org/10.1590/S1981-67232013005000031
http://dx.doi.org/10.1590/S1981-67232013...
).

The CVS were proposed for the inspection of asparagus in the 90s (Rigney et al., 1992Rigney, M. P., Brusewitz, G. H., & Kranzler, G. A. (1992). Asparagus defect inspection with machine vision. Transactions of the ASABE, 35(6), 1873-1878. http://dx.doi.org/10.13031/2013.28809
http://dx.doi.org/10.13031/2013.28809...
). However, to our knowledge, no subsequent works reported on a broad evaluation of how a CVS improved the classification of green asparagus, which could help in decision making concerning the implementation of CVSs in the industry.

Thus, this work aimed to improve the quality, production and economic indicators of the classification of green asparagus at an agro-export company by way of a CVS.

2 Material and methods

2.1 Product

The green asparagus (asparagus officinalis) shoots came from the Viru Valley (Peru). A sample size of 384 units was calculated considering a very large population (industrial scale) at a 95% confidence level and expected proportion of 0.5. The shoots were randomly selected and separated from the conventional processing line (1.25 ton/h) to be classified by the CVS in an environment isolated from the regular activities of the agro-export company. The dimensions of the samples varied from 8 to 16 mm in width, and from 12.3 to 17.4 cm in length or height.

2.2 Computer Vision System

The CVS works in two steps, image acquisition by a digital camera (LG-G2 mini, LG electronics, South Korea) in a cover and support platform, and image analysis using a computer (HP Pavilion 15-cd007la, HP, USA) that contains an application developed in the MATLAB® environment to classify the asparagus according to the absence of white spots and the height, with simultaneous measurement of the width, which can be monitored at the user interface (Figure 1a). The algorithm of the application followed a linear and sequential model that emphasized a short development life cycle (Figure 1b) and began with the identification of samples without white spots, followed by an evaluation of the height of the sample considering the desirable range for the product (14 to 16 cm) with a tolerated deviation of 0.5 cm. A pitch depth of 8 bits per RGB channel was considered, giving a total of 24 bits per pixel in all the grayscale captures.

Figure 1
Application of the Computer Vision System: interface (a), and flow diagram of the interpretation phase (b).

2.3 Evaluation indicators

Different indicators were used for the CVS evaluation, as follows: error in the evaluation of the height and the diameter and absence of white spots as the quality indicators; line productivity (kg / h) which is the result of the division of the production (kg) by the number of “man-hours” (h); and the yield from the raw material (%) which is the result of the division of the production (kg) by the weight of raw material (kg), as the production indicators; net present value (USD) which is the value of a certain number of cash flows originating from investment and the internal rate of return as the economic indicators. The internal rate of return (%) is defined as the interest rate obtained from the investment balance not recovered from a project, such that at the end of the project the non-recovered balance is zero, that is when the net present value is equal to zero (Park, 1997Park, C. S. (1997). Ingeniería Económica Contemporánea. Delaware: Addison-Wesley Iberoamericana.).

In addition, to assess the internal rate of return, the opportunity cost of capital was calculated, which is the minimum rate of return that is expected to be obtained by the investment in the project. The net present value and internal rate of return were calculated for a 2-year-period operation of the CVS, since the cash flow of the production line is evidence that despite the high initial investment for classification with CVS, the cash flow is significantly higher than for classification without CVS (Table 1).

Table 1
Cash flow (USD) of the production line with and without the Computer Vision System (CVS).

The calculation of the net present value was carried out using Equation 1.

N P V = t = 1 n V t 1 + k t I 0 (1)

Where: Vt = net cash flow at the end of the period “t”; n = economic life of the project; k = type of interest; I0 = initial investment of the project.

The opportunity cost of capital was calculated using Equations 2 and 3.

O C C = K + λ . C o u n t r y r i s k (2)
K = r f + β . r m r f (3)

Where: λ = the adjustment constant (1.5); β = the risk index of the particular action; rf = the risk-free rate; (rm – rf) = the premium risk over average stock.

3 Results and discussion

A comparison of some indicators in the classification of green asparagus with CVS and without CVS (manual classification) is presented in Table 2.

Table 2
Comparative evaluation of green asparagus classification with and without the Computer Vision System (CVS).

In general, the classification of green asparagus with a CVS was better for all the indicators evaluated (Table 2). As regards quality, the CVS had a 2% error in the evaluation of the absence of white spots and product height. This can be considered acceptable since in a manual classification, worker fatigue makes the performance inconsistent and relative. Another effect is the null loss of product quality by manipulation during the classification because the CVS is contact-free technology.

For the production indicators (Table 2), the implementation of the CVS doubled the line productivity (from 5 to 10 kg/h) and slightly improved the yield from the raw material (from 43% to 45%). This is a consequence of the absence of workers for the classification task. Thus, the classification stopped being the “limiting operation” and became fast, continuous and efficient since a greater capacity can be used in the blanching tunnels without the need to store the asparagus for classification.

For the economic evaluation (Table 2), it can be seen that 2 years after implementing the CVS, the net present value doubled its value when compared with the manual classification. Likewise, the internal rate of return was determined at 156.3%, which is a much higher value than the opportunity cost of capital (8.6%), indicating that the investment in the CVS implementation was profitable for the agro-export company. These results highlight the improvement in process efficiency that resulted in a reduction of workers on the production line, from 11 to 5.

4 Conclusion

In this work, a computer vision system for the classification of green asparagus was designed, implemented and evaluated as an alternative to manual classification in an agro-export company. The computer vision system performed with a 2% error of classification, slightly increased the yield from the raw material (from 43% to 45%) and doubled the line productivity (from 5 to 10 Tn/h) when compared to manual classification. Moreover, the use of the CVS represented an increment in the net present value of 102,609.00 USD, yielding an internal rate of return of 156.3%. Thus the use of the CVS is convenient for the agro-export company.

  • Cite as: Salazar-Campos, O., Salazar-Campos, J., Menacho, D., Morales, D., & Aredo, V. (2019). Improvement of the classification of green asparagus using a computer vision system. Brazilian Journal of Food Technology, 22, e2018140. https://doi.org/10.1590/1981-6723.14018
  • Funding: None.

References

  • Arakeri, M. P., & Lakshmana, (2016). Computer vision based fruit grading system for quality evaluation of tomato in agriculture industry. Procedia Computer Science, 79, 426-433. http://dx.doi.org/10.1016/j.procs.2016.03.055
    » http://dx.doi.org/10.1016/j.procs.2016.03.055
  • Donis-González, I. R., & Guyer, D. E. (2016). Classification of processing asparagus sections using color images. Computers and Electronics in Agriculture, 127, 236-241. http://dx.doi.org/10.1016/j.compag.2016.06.018
    » http://dx.doi.org/10.1016/j.compag.2016.06.018
  • Ercisli, S., Sayinci, B., Kara, M., Yildiz, C., & Ozturk, I. (2012). Determination of size and shape features of walnut (Juglans regia L.) cultivars using image processing. Scientia Horticulturae, 133, 47-55. http://dx.doi.org/10.1016/j.scienta.2011.10.014
    » http://dx.doi.org/10.1016/j.scienta.2011.10.014
  • Fuentes, J. G., Davó, A. N., Reolid, A. J., & Varón, D. J. (2014). Visión artificial aplicada al control de la calidad. 3C Tecnología, 4, 297-308.
  • Lill, R. E. (1980). Storage of fresh asparagus. New Zealand Journal of Experimental Agriculture, 8(2), 163-167. http://dx.doi.org/10.1080/03015521.1980.10426252
    » http://dx.doi.org/10.1080/03015521.1980.10426252
  • Mahendran, R., Jayashree, G. C., & Alagusundaram, K. (2012). Application of computer vision technique on sorting and grading of fruits and vegetables. Journal of Food Processing & Technology, 10, S1-S001.
  • Mohd Ali, M., Hashim, N., Bejo, S. K., & Shamsudin, R. (2017). Rapid and nondestructive techniques for internal and external quality evaluation of watermelons: a review. Scientia Horticulturae, 225, 689-699. http://dx.doi.org/10.1016/j.scienta.2017.08.012
    » http://dx.doi.org/10.1016/j.scienta.2017.08.012
  • Park, C. S. (1997). Ingeniería Económica Contemporánea Delaware: Addison-Wesley Iberoamericana.
  • Rigney, M. P., Brusewitz, G. H., & Kranzler, G. A. (1992). Asparagus defect inspection with machine vision. Transactions of the ASABE, 35(6), 1873-1878. http://dx.doi.org/10.13031/2013.28809
    » http://dx.doi.org/10.13031/2013.28809
  • Saldaña, E., Siche, R., Luján, M., & Quevedo, R. (2013). Computer vision applied to the inspection and quality control of fruits and vegetables. Brazilian Journal of Food Technology, 16(4), 254-272. http://dx.doi.org/10.1590/S1981-67232013005000031
    » http://dx.doi.org/10.1590/S1981-67232013005000031
  • Schuster, M., & Maertens, M. (2015). The impact of private food standards on developing countries’ export performance: An analysis of asparagus firms in Peru. World Development, 66, 208-221. http://dx.doi.org/10.1016/j.worlddev.2014.08.019
    » http://dx.doi.org/10.1016/j.worlddev.2014.08.019
  • Siche, R., Vejarano, R., Aredo, V., Velasquez, L., Saldaña, E., & Quevedo, R. (2016). Evaluation of food quality and safety with hyperspectral imaging (HSI). Food Engineering Reviews, 8(3), 306-322. http://dx.doi.org/10.1007/s12393-015-9137-8
    » http://dx.doi.org/10.1007/s12393-015-9137-8
  • Vázquez-Rowe, I., Kahhat, R., Quispe, I., & Bentín, M. (2016). Environmental profile of green asparagus production in a hyper-arid zone in coastal Peru. Journal of Cleaner Production, 112, 2505-2517. http://dx.doi.org/10.1016/j.jclepro.2015.09.076
    » http://dx.doi.org/10.1016/j.jclepro.2015.09.076
  • Wu, L., & Yang, H. (2016). Combined application of carboxymethyl chitosan coating and brassinolide maintains the postharvest quality and shelf life of green asparagus. Journal of Food Processing and Preservation, 40(2), 154-165. http://dx.doi.org/10.1111/jfpp.12592
    » http://dx.doi.org/10.1111/jfpp.12592

Publication Dates

  • Publication in this collection
    25 Apr 2019
  • Date of issue
    2019

History

  • Received
    23 June 2018
  • Accepted
    13 Nov 2018
Instituto de Tecnologia de Alimentos - ITAL Av. Brasil, 2880, 13070-178 Campinas - SP / Brasil, Tel 55 19 3743-1762 - Campinas - SP - Brazil
E-mail: bjftsec@ital.sp.gov.br