This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
1. Introduction
The quality of coffee is mainly based on two aspects, the beans growing conditions and, after recollection, the roasting process [1]. The growing conditions depend on multiple factors, such as the soil constitution and the microclimate, among others, while the roasting process is a key controllable thermal process that modifies the chemical, physical, structural, and sensory properties of green coffee beans [2]. Thus, coffee beans growing conditions are mostly uncertain and almost uncontrollable, while the roasting process can be properly controlled, allowing, up to certain degree, to compensate the variations of the green coffee beans characteristics.
The main physical and structural changes in coffee beans during roasting are the increase in volume, weight loss (water, carbon dioxide, and volatile compounds), increase in porosity, and colour change [3, 4]. In particular, the colour change of the grain through the process is due to the formation of melanoidins, which are dark molecules resulting from the Maillard and caramelization reactions. Both chemical reactions are closely related to the final sensory properties, so the correct definition of the degree of roasting of coffee is of paramount importance, since it directly influences the quality of the beverage [5]. On the other hand, there are many ways to define the degree of roasting (colour development, moisture loss, content of chlorogenic acids, etc.), but the most used indicator is the colour of whole or ground grains [6].
During the roasting process, coffee beans are heated either by conduction, radiation, or convection [7]. To guarantee a more homogeneous and faster heat transfer, the beans should be in constant movement either induced by rotation or by the flow of hot gases [2].
Rotatory drums (horizontal or vertical with paddles) are the most traditional equipment used in the coffee industry; however, in this equipment the heat is mainly transferred by conduction, while in fluid bed and spouted bed roasters [8] the heat is mainly transferred by convection with high-velocity gas flows [6, 7], allowing to decrease the roasting times and to optimize the energy consumption. In the last decade, the use of spouted beds for grains drying and roasting has become more feasible. In particular, Arriola-Guevara et al. [9] have proposed an innovative spouted bed with a characteristic geometry that does not have dead zones nor mobile parts, with a draft tube that allows drying or roasting with low-pressure drops. This spouted bed has been recently used to roast coffee beans [10]. However, fluid bed and spouted bed roasters are more difficult to operate and control due to the variations in the inflow air humidity, associate to environmental conditions, and to the inherent inclusion of solids fluidization dynamics, that are intrinsically chaotic or even unstable [11].
In the coffee industry, due to the variations in the raw material and environmental conditions, the roasting process depends mostly on toaster masters that, based on their experience, use subjective and empirical indicators (mostly sensorial factors: smell, sight, and hearing) to decide temperature-time profile along the roasting process to achieve the desired toasting degree. In the best of the cases, they may use colorimeters or spectrophotometers that are economically unfeasible for small coffee maker industries [5, 12]. Recently, some efforts have been carried out to technify the tracking of the roasting degree along the roasting process, such as classification methods by hyperspectral imaging analysis [12–15], coffee roasting acoustics [16], and prediction of brightness and surface area variations [17]. However, this type of efforts should be continued to finally “close the loop” and manipulate the roasting process using this class of technified measurements.
In this work, we propose a cascade control algorithm to regulate coffee roasting degree in a batch spouted bed process. The control algorithm is composed of an inner control loop that regulates the hot air inflow temperature used to roast coffee grains inside the spouted bed, while an outer control loop, based on imaging processing techniques, tracks on real time the coffee roasting degree and decides if the inflow air temperature must be modified. To achieve this goal, a roasting index based on colour-matching techniques is proposed to assess the degree of roasting and allows to automatically track the roasting progress and to decide if the batch roasting process has achieved the desired roasting degree.
2. Materials and Methods
2.1. Coffee Roasting
Batches of 1.3 kg of green coffee beans (Coffee arabica) from Jaltenango, Chiapas, Mexico, were roasted in a roaster schematically, as shown in Figure 1. The compressor (C-1) supplies pressurized air and with the regulatory valve (FV) and the rotameter (FI) the air pressure and flow are set to be 2.5 kgf/cm2 and 115 L/min. This air passes through a heat exchanger (E-1) powered by a resistance of 2,400 W@220 V. The air temperature is measured after heating, right before it enters the bed with a thermocouple (TE). The spouted bed (S-1) comprises two regions: annulus and draft tube. Solids are fed from the top, filling the annulus region. The particles that accumulate at the bottom of the draft tube rise through it as a result of the compressed hot air stream that enters through a nozzle situated at the bottom left corner, generating the characteristic spout in the top and promoting the cyclic movement of particles. Once the roasting is over, solids are discharged on the bottom. Roasting was performed by triplicate.
[figure omitted; refer to PDF]
2.2. Vision System and Images Processing
The vision system developed for this work used a Logitech webcam model C930E with a maximum resolution of 2304
The image processing was carried out in a personal computer, with an Intel Core i5 7300HQ processor, 8 GB of RAM, 256 GB internal storage in SSD, LabVIEW image processing and analysis software with the Vision Development Module (VDM) package, both version 2012. To obtain the images of the coffee, the webcam was placed with its support in front of the peephole of the source bed; in order to acquire correctly illuminated images, the device was installed with LED lights, behind it. The image was brought to a standard size of complete visualization in the virtual panel of
A roasting index was proposed to assess the degree of roasting. This index is computed as follows:
(i)
Learning step: a set of
(ii)
Matching phase: each image to be assessed is compared to each reference image using a standard colour-matching algorithm [18]. This algorithm quantifies which colours and how much of each colour exist in the
(iii)
Roasting index computation: the roasting index is computed with
2.3. Instrumentation and Control Algorithm
The cascade control algorithm (see the block diagram of Figure 2) is composed of an inner control loop that regulates the hot air inflow temperature used to roast coffee grains inside the spouted bed, while an outer control loop, based on imaging processing techniques, tracks on real time the coffee roasting degree and decides if the inflow air temperature must be modified. For the inner control loop (see Figure 1), a PID controller (TC in Figure 1) is used to manipulate a relay (TY) that regulates the electric current of the heat exchanger’s resistance in order to control the temperature signal received from the thermocouple (TE); this inner control loop also receives a signal from the outer loop that allows modifying the temperature reference when the roasting index has reached the set point. The outer loop controller is composed of personal computer (MC) that processes the images received from the camera (CE); as described above, this computer is connected to a PLC (CC compact-DAQ from Virtual instruments) that is able to modify the reference of the temperature manipulated in the inner loop. For operational and security purposes, this PLC also has programmed sequential steps that allows to activate and deactivate both the resistance in the inner loop and the air flow using a relay (FY). The inner control loop uses continuous temperature measurements, while the outer control loop has a sampling time of 30 seconds.
[figure omitted; refer to PDF]
2.4. Experimental Tests
Several experiments varying the inflow air temperature and the roast index reference were carried out to tune the control loops, and once tuned, several experiments were carried out to test proposed cascade algorithm performance; however, for the sake of compactness, here only nine representative experimental tests are shown. The first experiment was carried out only with the inner control loop activated, in order to test temperature response and to acquire the set of
3. Results and Discussion
3.1. Inner Control Loop Test and Coffee Reference Images
After the inner control loop that regulates the spouted bed was tuned, the inner loop was tested to verify if it was able to regulate the temperature. Figure 3 shows the temperature profile of the inflow air in experiment 1. The set point of temperature was set to be 475°C and it was reached approximately at 10 minutes; this period is necessary to heat the full roaster; however, once the set point was reached, the spouted bed was loaded with 1.3 kg of green coffee beans and the controller was able to maintain this temperature with despicable variations.
[figure omitted; refer to PDF]
Based on the roaster master knowledge, it was decided to use 7 reference images, i.e.,
[figures omitted; refer to PDF]
3.2. Cascade Control Test
Once the learning step described above was completed using the 7 reference images, experiments 2 to 9 were carried out. Figure 5 shows the colour and roasting index variations for experiments 2 to 5, where the set point of the roasting index was set to be 4.85, i.e., in the region of medium roasting coffee. The time to reach the set point in experiments 2 and 3 with an operating temperature of 475°C was approximately 40 minutes (see Figures 5(a) and 5(b)), while the time to reach the set point in experiments 4 and 5 with an operating temperature of 500°C was approximately 31 minutes (see Figures 5(c) and 5(d)), suggesting that the relation between roasting time and inflow air temperature is nonlinear, mainly because the chemical reactions that take place in the roasting are exothermic and their reaction velocities follow Arrhenius-like relations with respect to the temperature. In all four experiments, the vision system was able to detect the instant at which the desired roasting degree was reached.
[figures omitted; refer to PDF]
CIE 1976
(i)
If
(ii)
If
(iii)
If
(iv)
If
(v)
If
Table 1
Mean
Roasting degree | Statistics |
|
|
|
---|---|---|---|---|
Medium roasting | Mean | 23.41 |
8.28 |
12.15 |
STD | 0.21 | 0.66 | 0.64 | |
Dark roasting | Mean | 17.44 |
6.32 |
8.22 |
STD | 0.35 | 0.27 | 0.38 |
With the
Given that a higher temperature produces a faster roasting and gets similar roasting characteristics, the remaining experiments (6 to 9) were carried out at 500°C. The roasting index set point for experiments 6 and 7 was 5.15, while the set point of experiments 8 and 9 was selected to be 5.28, i.e., in the region of dark roasting coffee. Figure 6 presents the colour and roasting index variations for these experiments. Similarly for experiments 2 to 5, the control system helps to achieve the set point of the roasting index; however, for this case, the time to reach the set point in experiments 6 and 7 was approximately 36 minutes (see Figures 6(a) and 6(b)), while the time to reach the set point in experiments 8 and 9 was approximately 31 and 41 minutes, respectively (see Figures 6(c) and 6(d)). The difference between these times can be associated to the prevailing environmental conditions that affect the inflow air characteristics. Experiment 8 was carried out on a sunny day with low humidity, while experiment 9 was carried out on a rainy day with high humidity. Even though these variations in the conditions led to different operation times, the control algorithm was able to reach the correct roasting degree, showing good robustness properties in the face of external perturbations.
[figures omitted; refer to PDF]
4. Conclusions
On this work, the experimental implementation of a cascade control algorithm to regulate coffee roasting degree in a batch spouted bed process was presented. The use of the roasting index based on colour-matching techniques allows assessing on realtime the degree of roasting. Thus, once the reference images are available, the roasting progress can be automatically tracked and controlled without the participation of a roaster master. The experiments suggest that the proposed methodology is robust against external disturbances, such as environmental conditions and raw material.
Acknowledgments
J. Paulo García-Sandoval thanks the Mexican National Council of Science and Technology (CONACYT) (grant no. CB2014-01-242125). Guadalupe M. Guatemala-Morales and Enrique Arriola-Guevara thank CONACYT (grant no. CONACYT-FORDECYT 292474) and the State Council of Science and Technology of Jalisco (grant no. COECYTJAL-FODECIJAL-2019). Omar R. Gómez-Gómez thanks CONACYT (scholarship number 628536).
[1] B. Folmer, The Craft and Science of Coffee, 2017.
[2] A. Fabbri, C. Cevoli, L. Alessandrini, S. Romani, "Numerical modeling of heat and mass transfer during coffee roasting process," Journal of Food Engineering, vol. 105 no. 2, pp. 264-269, DOI: 10.1016/j.jfoodeng.2011.02.030, 2011.
[3] A. M. F. Edzuan, N. A. A. Majid, H. L. Bong, "Physical changes of coffee beans during roasting," American Journal of Chemistry, vol. 5 no. 3A, pp. 56-60, 2015.
[4] C. Yeretzian, A. Jordan, R. Badoud, W. Lindinger, "From the green bean to the cup of coffee: investigating coffee roasting by on-line monitoring of volatiles," European Food Research and Technology, vol. 214 no. 2, pp. 92-104, DOI: 10.1007/s00217-001-0424-7, 2002.
[5] D. S. Leme, S. A. da Silva, B. H. G. Barbosa, F. M. Borém, R. G. F. A. Pereira, "Recognition of coffee roasting degree using a computer vision system," Computers and Electronics in Agriculture, vol. 156, pp. 312-317, DOI: 10.1016/j.compag.2018.11.029, 2019.
[6] J. Baggenstoss, L. Poisson, R. Kaegi, R. Perren, F. Escher, "Coffee roasting and aroma formation: application of different time−temperature conditions," Journal of Agricultural and Food Chemistry, vol. 56 no. 14, pp. 5836-5846, DOI: 10.1021/jf800327j, 2008.
[7] R. Eggers, A. Pietsch, Coffee: Recent Developments, 2001.
[8] N. Epstein, J. R. Grace, Spouted and Spout-Fluid Beds, 2011.
[9] E. Arriola-Guevara, P. Ruiz-Palomino, J. García-Fajardo, "Aparato para tostar granos de café y método relacionado," 2017. Mexico Patent MX2016016495A
[10] P. Ruíz Palomino, G. Guatemala-Morales, P. Mondragón-Cortéz, "Empirical model of the chlorogenic acid degradation kinetics during coffee roasting in a spouted bed," Revista Mexicana de Ingeniería Química, vol. 18 no. 2, pp. 387-396, DOI: 10.24275/uam/izt/dcbi/revmexingquim/2019v18n2/ruiz, 2019.
[11] Z. Rahimi-Ahar, M. S. Hatamipour, "Hydrodynamics, numerical study and application of spouted bed," Reviews in Chemical Engineering, vol. 34 no. 6, pp. 743-766, DOI: 10.1515/revce-2017-0036, 2018.
[12] M. Gabriel-Guzmán, V. M. Rivera, Y. Cocotle-Ronzón, S. García-Díaz, E. Hernandez-Martinez, "Fractality in coffee bean surface for roasting process," Chaos, Solitons & Fractals, vol. 99, pp. 79-84, DOI: 10.1016/j.chaos.2017.03.056, 2017.
[13] E. M. de Oliveira, R. G. F. A. Pereira, D. S. Leme, B. H. G. Barbosa, M. P. Rodarte, "A computer vision system for coffee beans classification based on computational intelligence techniques," Journal of Food Engineering, vol. 171, pp. 22-27, DOI: 10.1016/j.jfoodeng.2015.10.009, 2016.
[14] J.-S. Cho, H.-J. Bae, B.-K. Cho, K.-D. Moon, "Qualitative properties of roasting defect beans and development of its classification methods by hyperspectral imaging technology," Food Chemistry, vol. 220, pp. 505-509, DOI: 10.1016/j.foodchem.2016.09.189, 2017.
[15] N. Caporaso, M. B. Whitworth, S. Grebby, I. D. Fisk, "Rapid prediction of single green coffee bean moisture and lipid content by hyperspectral imaging," Journal of Food Engineering, vol. 227, pp. 18-29, DOI: 10.1016/j.jfoodeng.2018.01.009, 2018.
[16] P. S. Wilson, "Coffee roasting acoustics," The Journal of the Acoustical Society of America, vol. 135 no. 6, pp. 265-269, DOI: 10.1121/1.4874355, 2014.
[17] J. A. Hernández, B. Heyd, G. Trystram, "Prediction of brightness and surface area kinetics during coffee roasting," Journal of Food Engineering, vol. 89 no. 2, pp. 156-163, DOI: 10.1016/j.jfoodeng.2008.04.026, 2008.
[18] National Instruments, Color Matching, 2015. http://zone.ni.com/reference/en-XX/help/372916T-01/nivisionconcepts/colormatching
[19] K. L. Yam, S. E. Papadakis, "A simple digital imaging method for measuring and analyzing color of food surfaces," Journal of Food Engineering, vol. 61 no. 1, pp. 137-142, DOI: 10.1016/s0260-8774(03)00195-x, 2004.
[20] O. Castellanos-Onorio, O. Gonzalez-Rios, B. Guyot, "Effect of two different roasting techniques on the Ochratoxin A (OTA) reduction in coffee beans (Coffea arabica)," Food Control, vol. 22 no. 8, pp. 1184-1188, DOI: 10.1016/j.foodcont.2011.01.014, 2011.
[21] J. A. Vignoli, D. G. Bassoli, M. T. Benassi, "Antioxidant activity, polyphenols, caffeine and melanoidins in soluble coffee: the influence of processing conditions and raw material," Food Chemistry, vol. 124 no. 3, pp. 863-868, DOI: 10.1016/j.foodchem.2010.07.008, 2011.
[22] S. Gaurav, Digital Color Imaging Handbook, 2002.
[23] W. Mokrzycki, M. Tatol, "Colour difference delta E—a survey," Machine Graphics and Vision, vol. 20 no. 4, pp. 383-412, 2011.
You have requested "on-the-fly" machine translation of selected content from our databases. This functionality is provided solely for your convenience and is in no way intended to replace human translation. Show full disclaimer
Neither ProQuest nor its licensors make any representations or warranties with respect to the translations. The translations are automatically generated "AS IS" and "AS AVAILABLE" and are not retained in our systems. PROQUEST AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES FOR AVAILABILITY, ACCURACY, TIMELINESS, COMPLETENESS, NON-INFRINGMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Your use of the translations is subject to all use restrictions contained in your Electronic Products License Agreement and by using the translation functionality you agree to forgo any and all claims against ProQuest or its licensors for your use of the translation functionality and any output derived there from. Hide full disclaimer
Copyright © 2020 Omar R. Gómez-Gómez et al. This is an open access article distributed under the Creative Commons Attribution License (the “License”), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License. http://creativecommons.org/licenses/by/4.0/
Abstract
On this work, the experimental implementation of a cascade control algorithm to regulate coffee roasting degree in a batch spouted bed process is presented. The control algorithm is composed of an inner control loop that regulates the temperature of the hot air inflow used to roast coffee grains inside a spouted bed, while an outer control loop, based on imaging processing techniques, tracks on real time the coffee roasting degree and decides if the inflow air temperature must be modified. To achieve this goal, a colour-matching algorithm is used to compare a colour spectrum obtained from images acquired on real time, from a peephole on the spouted bed, with the colour spectrums of several reference images with different degrees of roasting. Match scores are computed based on the similarity between the colour spectrums. With the match scores, a roasting index is finally calculated to assess the degree of roasting, allowing to automatically track the roasting progress to decide if the batch roasting process has achieved the desired roasting degree. The experimental results show that the control scheme is able to robustly achieve the desired roasting degree with excellent effectiveness.
You have requested "on-the-fly" machine translation of selected content from our databases. This functionality is provided solely for your convenience and is in no way intended to replace human translation. Show full disclaimer
Neither ProQuest nor its licensors make any representations or warranties with respect to the translations. The translations are automatically generated "AS IS" and "AS AVAILABLE" and are not retained in our systems. PROQUEST AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES FOR AVAILABILITY, ACCURACY, TIMELINESS, COMPLETENESS, NON-INFRINGMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Your use of the translations is subject to all use restrictions contained in your Electronic Products License Agreement and by using the translation functionality you agree to forgo any and all claims against ProQuest or its licensors for your use of the translation functionality and any output derived there from. Hide full disclaimer
Details


1 Chemical Engineering Department, Universidad de Guadalajara, Guadalajara, Jalisco 44430, Mexico
2 Centro de Investigación y Asistencia en Tecnología y Diseño del Estado de Jalisco, A.C., Guadalajara, Jalisco 44270, Mexico