Acessibilidade / Reportar erro

Computer vision system approach in colour measurements of foods: Part II. validation of methodology with real foods

Abstract

The colour of food is one of the most important factors affecting consumers’ purchasing decision. Although there are many colour spaces, the most widely used colour space in the food industry is L*a*b* colour space. Conventionally, the colour of foods is analysed with a colorimeter that measures small and non-representative areas of the food and the measurements usually vary depending on the point where the measurement is taken. This leads to the development of alternative colour analysis techniques. In this work, a simple and alternative method to measure the colour of foods known as “computer vision system” is presented and justified. With the aid of the computer vision system, foods that are homogenous and uniform in colour and shape could be classified with regard to their colours in a fast, inexpensive and simple way. This system could also be used to distinguish the defectives from the non-defectives. Quality parameters of meat and dairy products could be monitored without any physical contact, which causes contamination during sampling.

Keywords:
computer vision system; food; RGB; L*a*b*

1 Introduction

Colour of foods directly affects consumers’ purchasing decision (Costa et al., 2011Costa, C., Antonucci, F., Pallottino, F., Aguzzi, J., Sun, D.-W., & Menesatti, P. (2011). Shape analysis of agricultural products: a review of recent research advances and potential application to computer vision. Food Bioprocess Technology, 4(5), 673-692. http://dx.doi.org/10.1007/s11947-011-0556-0.
http://dx.doi.org/10.1007/s11947-011-055...
; Meléndez-Martínez et al., 2005Meléndez-Martínez, A. J., Vicario, I. M., & Heredia, F. J. (2005). Instrumental measurement of orange juice colour: a review. Journal of the Science of Food and Agriculture, 85(6), 894-901. http://dx.doi.org/10.1002/jsfa.2115.
http://dx.doi.org/10.1002/jsfa.2115...
). If the colour of the food is not what is expected, the consumers generally have a negative perception of quality (Francis, 1995Francis, F. J. (1995). Quality as influenced by color. Food Quality and Preference, 6(3), 149-155. http://dx.doi.org/10.1016/0950-3293(94)00026-R.
http://dx.doi.org/10.1016/0950-3293(94)0...
), which makes it one of the most important selection criteria of how we purchase our food (Kays, 1991Kays, S. J. (1991). Postharvest physiology of perishable plant products. New York: Van Nostrand Reinhold.; Mendoza & Aguilera, 2004Mendoza, F., & Aguilera, J. M. (2004). Application of Image Analysis for Classification of Ripening Bananas. Journal of Food Science, 69(9), 471-477. http://dx.doi.org/10.1111/j.1365-2621.2004.tb09932.x.
http://dx.doi.org/10.1111/j.1365-2621.20...
). Therefore, colour of the foods must be analysed with utmost accuracy. The colour of an object can be determined either by human (visual) inspection or by using a colour measuring device because determination of colour is subjective and variable from observer to observer so it is generally recommended to determine the colour via a colour measuring instrument (Leon et al., 2006Leon, K., Mery, D., Pedreschi, F., & Leon, J. (2006). Color measurement in . L*a*b* units from RGB digital imagesFood Research International, 39(10), 1084-1091. http://dx.doi.org/10.1016/j.foodres.2006.03.006.
http://dx.doi.org/10.1016/j.foodres.2006...
).

In industry, the colour of foods has generally been measured using L*a*b* or CIELab colour space, which is an international standard accepted by the Commission Internationale d’Eclairage (CIE) in 1976 (Leon et al., 2006Leon, K., Mery, D., Pedreschi, F., & Leon, J. (2006). Color measurement in . L*a*b* units from RGB digital imagesFood Research International, 39(10), 1084-1091. http://dx.doi.org/10.1016/j.foodres.2006.03.006.
http://dx.doi.org/10.1016/j.foodres.2006...
). In this method, L* is the lightness component or luminance ranging between 0 and 100; a* is a chromatic component ranging between -120 and +120, from green to red; and b* is a chromatic component ranging between -120 and +120, from blue to yellow. In food industry, colour is analysed using commercial colour meters such as Minolta Chroma Meter and Hunterlab Color Difference Meter (Gras et al., 1990Gras, P. W., Bason, M. L., & Esteves, L. A. (1990). Evaluation of a portable colour meter for assessment of the colour of milled rice. Journal of Stored Products, 26(2), 71-75. http://dx.doi.org/10.1016/0022-474X(90)90003-B.
http://dx.doi.org/10.1016/0022-474X(90)9...
; Holman et al., 2015Holman, B. W. B., Ponnampalam, E. N., van de Ven, R. J., Kerr, M. G., & Hopkins, D. L. (2015). Lamb meat colour values (HunterLab CIE and reflectance) are influenced by aperture size (5 mm v. 25 mm). Meat Science, 100, 202-208. http://dx.doi.org/10.1016/j.meatsci.2014.10.006. PMid:25460126.
http://dx.doi.org/10.1016/j.meatsci.2014...
). However, colorimetric results usually vary due to the fact that measurements taken by a colorimeter are based on a number of point measurements, and the average of these measurements does not represent the whole colour of the object. This approach does not reflect the colour variation throughout the object, and the variation in colour is more dramatic when especially the surface to be measured is quite non-uniform. Therefore, it is hard to obtain reproducible results from the colorimetric measurements even if they are taken from the same point (Baardseth et al., 1988Baardseth, P., Skrede, G., Naes, T., Thomassen, M. S., Iversen, A., & Kaaber, L. (1988). A comparison of CIE (1976) L*a*b* values obtained from two different instruments on several food commodities. Journal of Food Science, 53(6), 1737-1742. http://dx.doi.org/10.1111/j.1365-2621.1988.tb07830.x.
http://dx.doi.org/10.1111/j.1365-2621.19...
).

Alternatively, colour of foods can rapidly and accurately be analysed by using computerised image analysis techniques, known as computer vision systems (Mendoza et al., 2006Mendoza, F., Dejmek, P., & Aguilera, J. M. (2006). Calibrated color measurements of agricultural foods using image analysis. Postharvest Biology and Technology, 41(3), 285-295. http://dx.doi.org/10.1016/j.postharvbio.2006.04.004.
http://dx.doi.org/10.1016/j.postharvbio....
). Computer vision systems can be used to measure attributes of total appearance together with the measurement of uneven colouration (Hutchings, 1999Hutchings, J. B. (1999). Food colour and appearance (2nd ed.). New York: Springer.; Brosnan & Sun, 2004Brosnan, T., & Sun, D.-W. (2004). Improving quality inspection of food products by computer vision - a review. Journal of Food Engineering, 61(1), 3-16. http://dx.doi.org/10.1016/S0260-8774(03)00183-3.
http://dx.doi.org/10.1016/S0260-8774(03)...
; Du & Sun, 2004Du, C.-J., & Sun, D.-W. (2004). Recent developments in the applications of image processing techniques for food quality evaluation. Trends in Food Science & Technology, 15(5), 230-249. http://dx.doi.org/10.1016/j.tifs.2003.10.006.
http://dx.doi.org/10.1016/j.tifs.2003.10...
). Such systems provide an automated, cost-effective and non-destructive alternative to the conventional colour meter systems (Brosnan & Sun, 2004Brosnan, T., & Sun, D.-W. (2004). Improving quality inspection of food products by computer vision - a review. Journal of Food Engineering, 61(1), 3-16. http://dx.doi.org/10.1016/S0260-8774(03)00183-3.
http://dx.doi.org/10.1016/S0260-8774(03)...
; Yam & Papadakis, 2004Yam, K. L., & Papadakis, S. E. (2004). A simple digital imaging method for measuring and analyzing color of food surfaces. Journal of Food Engineering, 61(1), 137-142. http://dx.doi.org/10.1016/S0260-8774(03)00195-X.
http://dx.doi.org/10.1016/S0260-8774(03)...
). Computer vision system has some specific applications in the food industry. Mohebbi et al. (2009)Mohebbi, M., Akbarzadeh-T, M.-R., Shahidi, F., Moussavi, M., & Ghoddusi, H.-B. (2009). Computer vision systems (CVS) for moisture content estimation in dehydrated shrimp. Computers and Electronics in Agriculture, 69(2), 128-134. http://dx.doi.org/10.1016/j.compag.2009.07.005.
http://dx.doi.org/10.1016/j.compag.2009....
used the computer vision system to predict moisture content of shrimp during drying. They found a high correlation coefficient between the colour and the change in moisture content of shrimp. Rodríguez-Pulido et al. (2012)Rodríguez-Pulido, F. J., Gomez-Robledo, L., Melgosa, M., Gordillo, B., Gonzalez-Miret, M. L., & Heredia, F. J. (2012). Ripeness estimation of grape berries and seeds by image analysis. Computers and Electronics in Agriculture, 82, 128-133. http://dx.doi.org/10.1016/j.compag.2012.01.004.
http://dx.doi.org/10.1016/j.compag.2012....
also used the computer vision system and correlated the colour change of the grape berries with the chemical composition to determine the ripeness of grape berries. Rodríguez-Pulido et al. (2013)Rodríguez-Pulido, F. J., Gordillo, B., Lourdes González-Miret, M., & Heredia, F. J. (2013). Analysis of food appearance properties by computer vision applying ellipsoids to colour data. Computers and Electronics in Agriculture, 99, 108-115. http://dx.doi.org/10.1016/j.compag.2013.08.027.
http://dx.doi.org/10.1016/j.compag.2013....
developed an algorithm to determine the heterogeneity in some foods including cabbage, orange, apple and tomato by assessing a relationship between chemical properties and colour, appearance and composition using the computer vision system. They have suggested that the proposed algorithm in conjunction with the computer vision system is the best way to measure the colour of food products, which have non-homogenous colour, and the system could be used for classification and prediction of chemical properties of foods. Recently, Yamamoto et al. (2015)Yamamoto, K., Ninomiya, S., Kimura, Y., Hashimoto, A., Yoshioka, Y., & Kameoka, T. (2015). Strawberry cultivar identification and quality evaluation on the basis of multiple fruit appearance features. Computers and Electronics in Agriculture, 110, 233-240. http://dx.doi.org/10.1016/j.compag.2014.11.018.
http://dx.doi.org/10.1016/j.compag.2014....
have demonstrated that qualitative evaluation of the appearance of strawberries can be achieved based on a computer vision analysis technique.

The main objective of the present work was to implement and validate the proposed methodology given in Tarlak et al. (2016)[REMOVED IF= FIELD]Tarlak, F., Ozdemir, M., & Melikoglu, M. (2016). Computer vision system approach in colour measurements of foods: Part I. development of methodology. Food Science and Technology, 36(2), In press. http://dx.doi.org/10.1590/1678-457X.11615.
http://dx.doi.org/10.1590/1678-457X.1161...
for colour analysis of foods. The L*a*b* and RGB colour analysis of some selected foods were carried out to convert RGB colour units to L*a*b* space of real foods. The measured and predicted L*a*b* values were compared, and the accuracy of the proposed methodology in colour analysis of foods was tested.

2 Materials and methods

Prior to colour analysis with the image acquisition system, raw meat, salami, sudjuk (Turkish style fermented sausage), cheddar cheese, potato, butter, broccoli, white cheese and cauliflower samples were cut into slices, and others (crushed red pepper flakes, biscuit, green bean, black sesame and coconut flakes) were analysed as is without any processing. Since the samples were sliced in the form of sheets, sphericity was not a concern in the colour measurements. The thickness of all the samples analysed did not exceed 2 cm. The digital camera was placed at a distance of 20 cm from the colour cards. The distance between the food samples and the camera’s lens was not less than 18 cm. Although there is a change in the number of pixels due to the zooming, this change did not affect the colour values significantly (p > 0.05). All foods used in colour analysis were purchased as fresh from a local market in Gebze, Kocaeli, Turkey.

In this study, the RGB colour analysis was done using a digital image acquisition system developed in Tarlak et al. (2016)[REMOVED IF= FIELD]Tarlak, F., Ozdemir, M., & Melikoglu, M. (2016). Computer vision system approach in colour measurements of foods: Part I. development of methodology. Food Science and Technology, 36(2), In press. http://dx.doi.org/10.1590/1678-457X.11615.
http://dx.doi.org/10.1590/1678-457X.1161...
. The L*a*b* food colour analysis was performed randomly via twenty different measurements from the surfaces of the selected foods using a Konica Minolta Chroma Meter CR-400 equipped with D65 illuminant. The colour values were given as the average of twenty separate measurements. Prior to L*a*b* colour measurements, the chroma meter was calibrated with its white calibration tile (Y = 86.6, x = 0.3188, y = 0.3364).

The real RGB colour values of foods were obtained by the image segmentation. First, the digital images were read from the graphics file using the imread command of the Matlab 7.12.0 (R2011a) software (MathWorks Inc., Natick, MA, USA). Then, the digital images were filtered with a Gaussian low pass filter with a filter size [3x3] matrix and sigma 0.5, which allows pre-smoothing of noisy images (Mendoza & Aguilera, 2004Mendoza, F., & Aguilera, J. M. (2004). Application of Image Analysis for Classification of Ripening Bananas. Journal of Food Science, 69(9), 471-477. http://dx.doi.org/10.1111/j.1365-2621.2004.tb09932.x.
http://dx.doi.org/10.1111/j.1365-2621.20...
; Mendoza et al., 2006Mendoza, F., Dejmek, P., & Aguilera, J. M. (2006). Calibrated color measurements of agricultural foods using image analysis. Postharvest Biology and Technology, 41(3), 285-295. http://dx.doi.org/10.1016/j.postharvbio.2006.04.004.
http://dx.doi.org/10.1016/j.postharvbio....
). The filtered coloured images were converted to the grayscale intensity image using the rgb2gray command, and image segmentation was performed using the graythresh command of the Matlab software. Segmented images are in the form of binary images, so all pixels of these binary images are comprised of two values (0 and 1). Pixels with values of 0 and 1 represent black background and object in white colour, respectively.

The conversion from RGB colour units to L*a*b* colour space was done with a quadratic function given in Equation 1:

[ L ^ * a ^ * b ^ * ] = [ P 11 P 12 P 13 P 21 P 22 P 23 P 31 P 32 P 33 P 14 P 15 P 16 P 24 P 25 P 26 P 34 P 35 P 36 P 17 P 18 P 19 P 27 P 28 P 29 P 37 P 38 P 39 ] [ R G B R 2 G 2 B 2 R G R B G B ] (1)

In this equation, R, G and B are the digital colour variables of the samples; L^*, a^* and b^* are the estimated L*, a* and b* colour variables, and P11P39 are the coefficients calculated using fminsearch command, which uses iteratively algorithm in the Matlab software.

The prediction performance of the quadratic model in colour analysis of foods was analysed using Equations 2 to 11. Mean normalized errors (eL, ea and eb) for L*, a* and b* variables were calculated using Equation 2, Equation 3 and Equation 4, respectively.

e L = 1 n i = 1 n | L * i L ^ * i Δ L | (2)
e a = 1 n i = 1 n | a * i a ^ * i Δ a | (3)
e b = 1 n i = 1 n | b * i b ^ * i Δ b | (4)

where L^*, a^* and b^* are the colour values estimated with the model, and n is the number of measurements. L* values range from 0 to 100, and a* and b* values are between -120 and +120 so ΔL= 100 and Δa=Δb= 240.

Percent (%) mean absolute error (|e¯|) was calculated by Equation 5, and the standard deviation (σ) of the % mean absolute error was determined by Equation 6:

| e ¯ | = e L + e a + e b 3 * 100 (5)
σ = 1 n ( i = 1 n | e ¯ | i | e ¯ | ) 2 (6)

Euclidean distance (Δeab*) between real and estimated L* a* and b* values was given by Equation 7:

Δ e a b * = i = 1 n ( L * i L ^ * i ) 2 + ( a * i a ^ * i ) 2 + ( b * i b ^ * i ) 2 (7)

Root mean square errors (RMSEL, RMSEa and RMSEb) for L*, a* and b* variables were calculated using Equations 8 to 10. Average root mean square error (RMSE¯) was obtained by Equation 11.

R M S E L = i = 1 n ( L * i L ^ * i ) 2 n (8)
R M S E a = i = 1 n ( a * i a ^ * i ) 2 n (9)
R M S E b = i = 1 n ( b * i b ^ * i ) 2 n (10)
R M S E ¯ = R M S E L + R M S E a + R M S E b 3 (11)

3 Results and discussion

The prediction performance of the quadratic model for each colour was tested on some real foods including raw meat, salami, sudjuk, crushed red pepper flakes, cheddar cheese, potato, biscuit, butter, green bean, broccoli, white cheese, cauliflower, black sesame and coconut flakes. The colour of these foods was measured by a chroma meter and the computer vision system used in this work (Figure 1).

Figure 1
RGB images for (a) raw meat, (b) salami, (c) sudjuk (Turkish style fermented sausage), (d) crushed red pepper flakes, (e) cheddar cheese, (f) potato, (g) biscuit, (h) butter, (i) green bean, (j) broccoli, (k) white cheese, (l) cauliflower, (m) black sesame and (n) coconut flakes.

The quadratic model was used to convert RGB colour units to L*a*b* colour space for the data obtained from the computer vision system for the selected foods. The prediction performance of the quadratic model for the real foods was analysed by calculating |e¯|, Δeab* and RMSE¯ values (Table 1). The |e¯|, Δeab* and RMSE¯ values for the selected foods range from 0.36 to 1.74, 0.94 to 5.93 and 0.48 to 2.69, respectively.

Table 1
Measured and predicted L*a*b* values with the quadratic model for some selected foods.

The coconut flakes have the smallest |e¯|, Δeab * and RMSE¯ values while the biscuit has the highest |e¯| and RMSE¯ values and sudjuk has the highest Δeab * value. The reason why the smallest |e¯|, Δeab * and RMSE ¯ values were obtained for the coconut flakes is that they have uniform colour and homogenous, resulting in obtaining more precise measurements by the chroma meter and the computer vision system. These results showed that homogeneity of the food colour was a critical factor affecting the measurement precision. If the colour contains some dark and light tones, this affects the colour measurement and causes some variation in repetitive colour measurements. This situation is observed in biscuit which has the dark and light tones of the yellow colour and sudjuk which contains fat having white tones.

Measured L*a*b* values were also plotted against predicted L*a*b* values, and R2 values with root mean square errors (RMSEL, RMSEa and RMSEb) for L*, a* and b* variables were calculated to determine the existence of any relationship between the measured and predicted values for the selected foods (Figures 2, -4). Measured and predicted L*, a* and b* values yielded R2 higher than 0.9735 and RMSE smaller than 1.7465. This indicated that the quadratic model has very high prediction performance for each L*, a* and b* variables. Mendoza et al. (2006)Mendoza, F., Dejmek, P., & Aguilera, J. M. (2006). Calibrated color measurements of agricultural foods using image analysis. Postharvest Biology and Technology, 41(3), 285-295. http://dx.doi.org/10.1016/j.postharvbio.2006.04.004.
http://dx.doi.org/10.1016/j.postharvbio....
used the computer vision system for the classification of ripening bananas and compared the measured L*a*b* values with the predicted L*a*b* values by two step conversion model from RGB to XYZ and XYZ to L*a*b* (RGB→XYZ→ L*a*b*). They found R2 values of 0.804, 0.972 and 0.609 for L*, a*and b*, respectively. All the R2 values were less than the R2 values found in our work forL*, a* and b* variables. Higher R2 and smaller RMSE values showed considerable improvement in the prediction performance of the quadratic models used in the transformation of RGB colour units to L*a*b* colour space compared to the prediction performance of the models used by Mendoza et al. (2006)Mendoza, F., Dejmek, P., & Aguilera, J. M. (2006). Calibrated color measurements of agricultural foods using image analysis. Postharvest Biology and Technology, 41(3), 285-295. http://dx.doi.org/10.1016/j.postharvbio.2006.04.004.
http://dx.doi.org/10.1016/j.postharvbio....
.

Figure 2
Relationship between measured and predicted L* values for the selected foods.
Figure 3
Relationship between measured and predicted a* values for the selected foods.
Figure 4
Relationship between measured and predicted b* values for the selected foods.

Barbin et al. (2016)Barbin, D. F., Mastelini, S. M., Barbon, S. Jr, Campos, G. F. C., Barbon, A. P. A. C., & Shimokomaki, M. (2016). Digital image analyses as an alternative tool for chicken quality assessment. Biosystems Engineering, 144(16), 85-93. http://dx.doi.org/10.1016/j.biosystemseng.2016.01.015.
http://dx.doi.org/10.1016/j.biosystemsen...
used the computer vision system for non-destructive determination of colour parameters of chicken and compared the measured L*a*b* values with the predicted L*a*b* values to assess chicken quality in a fast and rapid way. In order to convert RGB colour units to L*a*b* colour space, Barbin et al. (2016)Barbin, D. F., Mastelini, S. M., Barbon, S. Jr, Campos, G. F. C., Barbon, A. P. A. C., & Shimokomaki, M. (2016). Digital image analyses as an alternative tool for chicken quality assessment. Biosystems Engineering, 144(16), 85-93. http://dx.doi.org/10.1016/j.biosystemseng.2016.01.015.
http://dx.doi.org/10.1016/j.biosystemsen...
followed two step conversion model (RGB→XYZ→ L*a*b*). Compared to the conversion method used by Barbin et al. (2016)Barbin, D. F., Mastelini, S. M., Barbon, S. Jr, Campos, G. F. C., Barbon, A. P. A. C., & Shimokomaki, M. (2016). Digital image analyses as an alternative tool for chicken quality assessment. Biosystems Engineering, 144(16), 85-93. http://dx.doi.org/10.1016/j.biosystemseng.2016.01.015.
http://dx.doi.org/10.1016/j.biosystemsen...
, the method used in this work was based on a quadratic model that directly converts RGB colour units to L*a*b* colour space. Barbin et al. (2016)Barbin, D. F., Mastelini, S. M., Barbon, S. Jr, Campos, G. F. C., Barbon, A. P. A. C., & Shimokomaki, M. (2016). Digital image analyses as an alternative tool for chicken quality assessment. Biosystems Engineering, 144(16), 85-93. http://dx.doi.org/10.1016/j.biosystemseng.2016.01.015.
http://dx.doi.org/10.1016/j.biosystemsen...
reported that Δeab* value for the poultry meat was less than 5.2 while Δeab* values for all the foods used in this work changed between 0.94 and 5.93.

Trinderup et al. (2015)Trinderup, C. H., Dahl, A., Jensen, K., Carstensen, J. M., & Conradsen, K. (2015). Comparison of a multispectral vision system and a colorimeter for the assessment of meat color. Meat Science, 102, 1-7. http://dx.doi.org/10.1016/j.meatsci.2014.11.012. PMid:25498302.
http://dx.doi.org/10.1016/j.meatsci.2014...
used multispectral imaging system to measure the colour values of some fresh and processed meat products and compared the measured L*a*b* values with the predicted L*a*b* values by their multispectral imaging system. In their work, Δeab* values for the fresh meat ranged between 5 and 15 whereas for the processed meat Δeab* values ranged from 1.7 to 4.6. In our work, Δeab* value for the fresh meat was found to be 3.25 while the Δeab* value for the processed meat (salami) was 3.10. These results showed that the prediction power of the computer vision system used in this work is better than the multispectral imaging system used by Trinderup et al. (2015)Trinderup, C. H., Dahl, A., Jensen, K., Carstensen, J. M., & Conradsen, K. (2015). Comparison of a multispectral vision system and a colorimeter for the assessment of meat color. Meat Science, 102, 1-7. http://dx.doi.org/10.1016/j.meatsci.2014.11.012. PMid:25498302.
http://dx.doi.org/10.1016/j.meatsci.2014...
.

Valous et al. (2009)Valous, N. A., Mendoza, F., Sun, D.-W., & Allen, P. (2009). Colour calibration of a laboratory computer vision system for quality evaluation of pre-sliced hams. Meat Science, 81(1), 132-141. http://dx.doi.org/10.1016/j.meatsci.2008.07.009. PMid:22063973.
http://dx.doi.org/10.1016/j.meatsci.2008...
used the computer vision system to evaluate the quality of pre-sliced hams. In order to calibrate computer vision system, they used a colour checker with 24 colours and compared the prediction performance of two step conversion model (RGB→XYZ→ L*a*b*) with the prediction performance of some polynomial functions. In their work, Δeab* value was found to be 8.80 ± 4.2 for two step conversion model and greater than 4.00 for the polynomial models including quadratic and cubic terms. Nevertheless, they did not validate the performances of the models used with colour cards or real food samples. In other words, they did not measure the real L*a*b* values and did not compare them with the predicted L*a*b* values for the real foods.

Leon et al. (2006)Leon, K., Mery, D., Pedreschi, F., & Leon, J. (2006). Color measurement in . L*a*b* units from RGB digital imagesFood Research International, 39(10), 1084-1091. http://dx.doi.org/10.1016/j.foodres.2006.03.006.
http://dx.doi.org/10.1016/j.foodres.2006...
used computer vision system to analyse the colour of potato chips, and compared the measured L*a*b* values with the predicted L*a*b* values by neural network model. They reported |e¯| value of 1.80% for the transformation of RGB colour units to L*a*b* colour space for potato chips. In our work, the quadratic model gave a |e¯| value of 1.18% for potato; thus, the quadratic model had a smaller error than the neural network model used by Leon et al. (2006)Leon, K., Mery, D., Pedreschi, F., & Leon, J. (2006). Color measurement in . L*a*b* units from RGB digital imagesFood Research International, 39(10), 1084-1091. http://dx.doi.org/10.1016/j.foodres.2006.03.006.
http://dx.doi.org/10.1016/j.foodres.2006...
. Compared to the published works of Afshari-Jouybari & Farahnaky (2011)Afshari-Jouybari, H., & Farahnaky, A. (2011). Evaluation of Photoshop software potential for food colorimetry. Journal of Food Engineering, 106(2), 170-175. http://dx.doi.org/10.1016/j.jfoodeng.2011.02.034.
http://dx.doi.org/10.1016/j.jfoodeng.201...
and Leon et al. (2006)Leon, K., Mery, D., Pedreschi, F., & Leon, J. (2006). Color measurement in . L*a*b* units from RGB digital imagesFood Research International, 39(10), 1084-1091. http://dx.doi.org/10.1016/j.foodres.2006.03.006.
http://dx.doi.org/10.1016/j.foodres.2006...
which both used neural network model with extremely complex algorithms, the approach used in this work is based on a quadratic model which does not need complex mathematical operations for converting RGB colour units to L*a*b* colour space as the neural network approach requires. The most important factor to obtain accurate prediction performance to convert RGB colour units to L*a*b* colour space is that as much colour tones as possible must be generated to cover as many points as possible in all the colour space. If this is done, there is no need to use complex algorithms such as the neural network model.

4 Conclusions

In this work, computer vision system was used to measure the colour of some selected foods. The prediction capability of the quadratic model was tested and validated with the foods selected. The food industry could benefit from the computer vision system used in this study. With the aid of the computer vision system, foods that are homogenous and uniform in colour and shape could be classified with regard to their colours. This system could also be used to distinguish the defectives from the non-defectives. Quality parameters of meat and dairy products could be monitored without any physical contact, which causes contamination during sampling. The computer colour vision system has the potential to be used in the food industry as a quality control tool in a simple, fast and inexpensive way.

Acknowledgements

This work was financially supported by Gebze Technical University through Scientific Research Project (BAP) 2014 A-25. Fatih Tarlak would like to thank The Scientific and Technological Research Council of Turkey (TUBITAK) for granting PhD scholarship (2211-C).

  • Practical Application: A computer vision system, a simple and alternative way to conventional colour measurement techniques, can be used to measure colour of foods and as a quality control tool in the food industry.

References

  • Afshari-Jouybari, H., & Farahnaky, A. (2011). Evaluation of Photoshop software potential for food colorimetry. Journal of Food Engineering, 106(2), 170-175. http://dx.doi.org/10.1016/j.jfoodeng.2011.02.034
    » http://dx.doi.org/10.1016/j.jfoodeng.2011.02.034
  • Baardseth, P., Skrede, G., Naes, T., Thomassen, M. S., Iversen, A., & Kaaber, L. (1988). A comparison of CIE (1976) L*a*b* values obtained from two different instruments on several food commodities. Journal of Food Science, 53(6), 1737-1742. http://dx.doi.org/10.1111/j.1365-2621.1988.tb07830.x
    » http://dx.doi.org/10.1111/j.1365-2621.1988.tb07830.x
  • Barbin, D. F., Mastelini, S. M., Barbon, S. Jr, Campos, G. F. C., Barbon, A. P. A. C., & Shimokomaki, M. (2016). Digital image analyses as an alternative tool for chicken quality assessment. Biosystems Engineering, 144(16), 85-93. http://dx.doi.org/10.1016/j.biosystemseng.2016.01.015
    » http://dx.doi.org/10.1016/j.biosystemseng.2016.01.015
  • Brosnan, T., & Sun, D.-W. (2004). Improving quality inspection of food products by computer vision - a review. Journal of Food Engineering, 61(1), 3-16. http://dx.doi.org/10.1016/S0260-8774(03)00183-3
    » http://dx.doi.org/10.1016/S0260-8774(03)00183-3
  • Costa, C., Antonucci, F., Pallottino, F., Aguzzi, J., Sun, D.-W., & Menesatti, P. (2011). Shape analysis of agricultural products: a review of recent research advances and potential application to computer vision. Food Bioprocess Technology, 4(5), 673-692. http://dx.doi.org/10.1007/s11947-011-0556-0
    » http://dx.doi.org/10.1007/s11947-011-0556-0
  • Du, C.-J., & Sun, D.-W. (2004). Recent developments in the applications of image processing techniques for food quality evaluation. Trends in Food Science & Technology, 15(5), 230-249. http://dx.doi.org/10.1016/j.tifs.2003.10.006
    » http://dx.doi.org/10.1016/j.tifs.2003.10.006
  • Francis, F. J. (1995). Quality as influenced by color. Food Quality and Preference, 6(3), 149-155. http://dx.doi.org/10.1016/0950-3293(94)00026-R
    » http://dx.doi.org/10.1016/0950-3293(94)00026-R
  • Gras, P. W., Bason, M. L., & Esteves, L. A. (1990). Evaluation of a portable colour meter for assessment of the colour of milled rice. Journal of Stored Products, 26(2), 71-75. http://dx.doi.org/10.1016/0022-474X(90)90003-B
    » http://dx.doi.org/10.1016/0022-474X(90)90003-B
  • Holman, B. W. B., Ponnampalam, E. N., van de Ven, R. J., Kerr, M. G., & Hopkins, D. L. (2015). Lamb meat colour values (HunterLab CIE and reflectance) are influenced by aperture size (5 mm v. 25 mm). Meat Science, 100, 202-208. http://dx.doi.org/10.1016/j.meatsci.2014.10.006 PMid:25460126.
    » http://dx.doi.org/10.1016/j.meatsci.2014.10.006
  • Hutchings, J. B. (1999). Food colour and appearance (2nd ed.). New York: Springer.
  • Kays, S. J. (1991). Postharvest physiology of perishable plant products. New York: Van Nostrand Reinhold.
  • Leon, K., Mery, D., Pedreschi, F., & Leon, J. (2006). Color measurement in . L*a*b* units from RGB digital imagesFood Research International, 39(10), 1084-1091. http://dx.doi.org/10.1016/j.foodres.2006.03.006
    » http://dx.doi.org/10.1016/j.foodres.2006.03.006
  • Meléndez-Martínez, A. J., Vicario, I. M., & Heredia, F. J. (2005). Instrumental measurement of orange juice colour: a review. Journal of the Science of Food and Agriculture, 85(6), 894-901. http://dx.doi.org/10.1002/jsfa.2115
    » http://dx.doi.org/10.1002/jsfa.2115
  • Mendoza, F., & Aguilera, J. M. (2004). Application of Image Analysis for Classification of Ripening Bananas. Journal of Food Science, 69(9), 471-477. http://dx.doi.org/10.1111/j.1365-2621.2004.tb09932.x
    » http://dx.doi.org/10.1111/j.1365-2621.2004.tb09932.x
  • Mendoza, F., Dejmek, P., & Aguilera, J. M. (2006). Calibrated color measurements of agricultural foods using image analysis. Postharvest Biology and Technology, 41(3), 285-295. http://dx.doi.org/10.1016/j.postharvbio.2006.04.004
    » http://dx.doi.org/10.1016/j.postharvbio.2006.04.004
  • Mohebbi, M., Akbarzadeh-T, M.-R., Shahidi, F., Moussavi, M., & Ghoddusi, H.-B. (2009). Computer vision systems (CVS) for moisture content estimation in dehydrated shrimp. Computers and Electronics in Agriculture, 69(2), 128-134. http://dx.doi.org/10.1016/j.compag.2009.07.005
    » http://dx.doi.org/10.1016/j.compag.2009.07.005
  • Rodríguez-Pulido, F. J., Gomez-Robledo, L., Melgosa, M., Gordillo, B., Gonzalez-Miret, M. L., & Heredia, F. J. (2012). Ripeness estimation of grape berries and seeds by image analysis. Computers and Electronics in Agriculture, 82, 128-133. http://dx.doi.org/10.1016/j.compag.2012.01.004
    » http://dx.doi.org/10.1016/j.compag.2012.01.004
  • Rodríguez-Pulido, F. J., Gordillo, B., Lourdes González-Miret, M., & Heredia, F. J. (2013). Analysis of food appearance properties by computer vision applying ellipsoids to colour data. Computers and Electronics in Agriculture, 99, 108-115. http://dx.doi.org/10.1016/j.compag.2013.08.027
    » http://dx.doi.org/10.1016/j.compag.2013.08.027
  • [REMOVED IF= FIELD]Tarlak, F., Ozdemir, M., & Melikoglu, M. (2016). Computer vision system approach in colour measurements of foods: Part I. development of methodology. Food Science and Technology, 36(2), In press. http://dx.doi.org/10.1590/1678-457X.11615
    » http://dx.doi.org/10.1590/1678-457X.11615
  • Trinderup, C. H., Dahl, A., Jensen, K., Carstensen, J. M., & Conradsen, K. (2015). Comparison of a multispectral vision system and a colorimeter for the assessment of meat color. Meat Science, 102, 1-7. http://dx.doi.org/10.1016/j.meatsci.2014.11.012 PMid:25498302.
    » http://dx.doi.org/10.1016/j.meatsci.2014.11.012
  • Valous, N. A., Mendoza, F., Sun, D.-W., & Allen, P. (2009). Colour calibration of a laboratory computer vision system for quality evaluation of pre-sliced hams. Meat Science, 81(1), 132-141. http://dx.doi.org/10.1016/j.meatsci.2008.07.009 PMid:22063973.
    » http://dx.doi.org/10.1016/j.meatsci.2008.07.009
  • Yam, K. L., & Papadakis, S. E. (2004). A simple digital imaging method for measuring and analyzing color of food surfaces. Journal of Food Engineering, 61(1), 137-142. http://dx.doi.org/10.1016/S0260-8774(03)00195-X
    » http://dx.doi.org/10.1016/S0260-8774(03)00195-X
  • Yamamoto, K., Ninomiya, S., Kimura, Y., Hashimoto, A., Yoshioka, Y., & Kameoka, T. (2015). Strawberry cultivar identification and quality evaluation on the basis of multiple fruit appearance features. Computers and Electronics in Agriculture, 110, 233-240. http://dx.doi.org/10.1016/j.compag.2014.11.018
    » http://dx.doi.org/10.1016/j.compag.2014.11.018

Publication Dates

  • Publication in this collection
    14 June 2016
  • Date of issue
    Jul-Sep 2016

History

  • Received
    29 Jan 2016
  • Accepted
    26 May 2016
Sociedade Brasileira de Ciência e Tecnologia de Alimentos Av. Brasil, 2880, Caixa Postal 271, 13001-970 Campinas SP - Brazil, Tel.: +55 19 3241.5793, Tel./Fax.: +55 19 3241.0527 - Campinas - SP - Brazil
E-mail: revista@sbcta.org.br