Classification of Cocoa Beans Based on their Level of Fermentation using Spectral Information

Keywords: Cocoa beans, level of fermentation, hyperspectral images, spectral classification, superpixel


Cocoa beans are the most important raw material for the chocolate industry and an essential product for the economy of tropical countries such as Colombia. Their price mainly depends on their quality, which is determined by various aspects, such as good agricultural practices, their harvest point, and level of fermentation. The entities that regulate the international marketing of cocoa beans have been encouraging the development of new classification methods that, compared to current techniques, could save time, reduce waste, and increase the number of evaluated beans. In particular, hyperspectral images are a novel tool for food quality control. However, studies that have examined some quality parameters of cocoa using spectroscopy also involve the chemical evaluation of cocoa powder and liquor and the interior of the beans, which implies an invasive analysis, longer times, and waste generation. Therefore, in this paper, we assess the quality of cocoa beans based on their level of fermentation using a noninvasive system to obtain hyperspectral information, as well as fast image processing and spectral classification techniques. We obtained hyperspectral images of 90 cocoa beans in the range between 350 and 950 nm in an optical laboratory. In addition, each cocoa bean was classified according to its fermentation level: slightly fermented (SF), correctly fermented (CF), and highly fermented (HF). We compared this classification with that carried out by experts from the Colombia National Federation of Cocoa Growers and reported in the Colombian technical standard No. 1252. The results show that the level of fermentation of dried cocoa beans can be estimated using noninvasive hyperspectral image acquisition and processing techniques.

Author Biographies

Karen Sánchez*, Universidad Industrial de Santander, Colombia

Universidad Industrial de Santander, Santander-Colombia,

Jorge Bacca, Universidad Industrial de Santander, Colombia

Universidad Industrial de Santander, Santander-Colombia,

Laura Arévalo-Sánchez, Universidad Industrial de Santander, Colombia

Universidad Industrial de Santander, Santander-Colombia,

Henry Arguello, Universidad Industrial de Santander, Colombia

Universidad Industrial de Santander, Santander-Colombia,

Sergio Castillo, Universidad Industrial de Santander, Colombia

Universidad Industrial de Santander, Santander-Colombia,


E. Lecumberri et al., “Dietary fibre composition, antioxidant capacity and physico-chemical properties of a fibre-rich product from cocoa (Theobroma cacao L.) Food chemistry, vol. 104, no. 3, pp. 948-954, 2017.

M. S. Beg; S. Ahmed; K. Jan; K. Bashir, “Status, supply chain and processing of cocoa - A review,” Trends in food science & technology, vol. 66, pp. 108-116, Ago. 2017.

J. C. Motamayor et al. “Geographic and Genetic Population Differentiation of the Amazonian Chocolate Tree (Theobroma cacao L),” PloS one, vol. 3, no 10, Oct. 2008.

M. Torres-Moreno; E. Torrescasana; J. Salas- Savadó; C. Blanch, “Nutritional composition and fatty acids profile in cocoa beans and chocolates with different geographical origin and processing conditions,” Food chemistry, vol. 166, pp. 125-132. Jan. 2015.

A. Wickramasuriya; J. Dunwell, “Cacao biotechnology: current status and future prospects,” Plant biotechnology journal, vol. 16, no. 1, pp. 4-17, Jan. 2018.

R. Saltini; R. Akkerman; S. Frosch, “Optimizing chocolate production through traceability: A review of the influence of farming practices on cocoa bean quality,” Food control, vol. 29, no. 1, pp. 167-187, Jan. 2013.

C. N. Tejada-Tovar; A. Villabona-Ortíz; G. Alvarez-Bajaire; L. attin-Torres; C. Granados-Conde, “Influencia de la altura del lecho sobre el comportamiento dinámico de columna de lecho fijo en la biosorción de mercurio,” TecnoLógicas, vol. 20, no 40, p. 71-81, Sep. 2017.

A. Friedel Hütz; C. Huber; I. Knoke; P. Morazán; M. Mürlebach, “Strengthening the competitiveness of cocoa production and improving the income of cocoa producers in West and Central Africa,” Bonn, Germany: Südwind, 2016.

J. Lernoud et al., “The state of sustainable markets-statistics and emerging trends 2015,” Report. 29694 Mar. 2016.

J. E. Kongor et al., “Constraints for future cocoa production in Ghana,” Agroforestry Systems, vol. 92, no. 5, pp. 1373-1385, Oct. 2018.

R. Swaray, “Commodity buffer stock redux: The role of International Cocoa Organization in prices and incomes,” Journal of Policy Modeling, vol. 33, no. 3, pp. 361-369, May. 2011.

M. Squicciarini; J. Swinnen, The economics of chocolate, Oxford University Press, 2016.

Instituto Colombiano de Normalización y Certificación–ICONTEC-. “Norma Técnica Colombiana NTC 1252: Cacao en grano,” 2003.

S. Jinap; P. S. Dimick; R. Hollender, “Flavour evaluation of chocolate formulated from cocoa beans from different countries,” Food Control, vol. 6, no. 2, pp. 105-110, 1995.

P. C. Aculey et al. “Ghanaian cocoa bean fermentation characterized by spectroscopic and chromatographic methods and chemometrics,” Journal of Food Science, vol. 75, no. 6, pp. S300-S307, Aug. 2010.

A. A. Gowen; C. P. O´Donell; P. J. Cullen; G. Downey; J. M. Frias, “Hyperspectral imaging–an emerging process analytical tool for food quality and safety control,” Trends Food Sci. Technol, vol. 18, no. 12, pp. 590-598, Dec. 2007.

J. Qin; K. Chao; M. S. Kim; R. Lu; T. F. Burks, “Hyperspectral and multispectral imaging for evaluating food safety and quality,” Journal of Food Engineering, vol. 118, no. 2, pp. 157-171, Sep. 2013.

H. Huang; L. Liu; M. O. Ngadi, “Recent developments in hyperspectral imaging for assessment of food quality and safety,” Sensors, vol. 14, no. 4, pp. 7248-7276, Apr. 2014.

C. Garrido-Novell et al. “Grading and color evolution of apples using RGB and hyperspectral imaging vision cameras,” Journal of Food Engineering, vol. 113, no. 2, pp. 281-288, Nov. 2012.

J. M. Bioucas-Dias et al. “Hyperspectral remote sensing data analysis and future challenges,” IEEE Geoscience and remote sensing magazine, vol. 1, no. 2, pp. 6-36, Jul. 2013.

G. A. Shaw; H. K. Burke, “Spectral imaging for remote sensing,” Lincoln laboratory journal, vol. 14, no. 1, pp. 3-28, 2003.

J. Bacca; C. A. Hinojosa; H. Arguello, “Kernel sparse subspace clustering with total variation denoising for hyperspectral remote sensing images,” Mathematics in Imaging. Optical Society of America, 2017. p. MTu4C. 5. 2017.

C. I. Chang, “Hyperspectral imaging: techniques for spectral detection and classification,” Springer Science & Business Media, vol. 1, 2003.

H. Cen; Y. He, “Theory and application of near infrared reflectance spectroscopy in determination of food quality,” Trends in Food Science & Technology, vol. 18, no. 2, pp. 72-83, Feb. 2007.

J. Pinto; H. Rueda-Chacón; H. Arguello, “Classification of Hass avocado (persea americana mill) in terms of its ripening via hyperspectral images,” TecnoLógicas, vol. 22, no. 45, pp. 111-130, May. 2019.

J. Bacca; H. Arguello, “Sparse Subspace Clustering for Hyperspectral Images using Incomplete Pixels.” TecnoLógicas, vol. 22, no. 46, pp. 6-19, Sep. 2019.

S. Sunoj; C. Igathinathane; R. Visvanathan, “Nondestructive determination of cocoa bean quality using FT-NIR spectroscopy,” Computers and Electronics in Agriculture, vol. 124, pp. 234-242, Jun. 2016.

A. Veselá et al., “Infrared spectroscopy and outer product analysis for quantification of fat, nitrogen, and moisture of cocoa powder,” Analytica chimica acta, vol. 601, no. 1, pp. 77-86, Oct. 2007.

C. Hue et al., “Near infrared spectroscopy as a new tool to determine cocoa fermentation levels through ammonia nitrogen quantification,” Food chemistry, vol. 148, pp. 240-245, Apr. 2014.

A. Krähmer et al. “Fast and neat-Determination of biochemical quality parameters in cocoa using near infrared spectroscopy,” Food Chemistry, vol. 181, pp. 152-159, Aug. 2015.

E. Teye; X. yi- Huang; W. Lei; H. Dai, “Feasibility study on the use of Fourier transform near-infrared spectroscopy together with chemometrics to discriminate and quantify adulteration in cocoa beans,” Food research international, vol. 55, pp. 288-293, Jan. 2014.

E. Teye et al. “Estimating cocoa bean parameters by FT-NIRS and chemometrics analysis,” Food chemistry, vol. 176, pp. 403-410, Jun. 2015.

P. D. Tran et al. “Assessing cocoa aroma quality by multiple analytical approaches,” Food Research International, vol. 77, no. 3, pp. 657-669, Nov. 2015.

N. A. Gomez; K. Sanchez; H. Arguello, “Non-Destructive Method for Classification of Cocoa Beans from Spectral Information,” 2019 XXII Symposium on Image, Signal Processing and Artificial Vision (STSIVA), IEEE, Bucaramanga, 2019.

R. Achanta et al. “SLIC superpixels compared to state-of-the-art superpixel methods,” IEEE transactions on pattern analysis and machine intelligence, vol. 34, no. 11, pp. 2274-2282, May. 2012.

H. Garcia; C. V. Correa; O. Villarreal; S. Pinilla: H. Arguello, “Multi-resolution reconstruction algorithm for compressive single pixel spectral imaging,” 25th European Signal Processing Conference (EUSIPCO). IEEE, pp. 468-472, Kos, 2017.

A. Jerez; H. Garcia; H. Arguello, “Spectral image fusion for increasing the spatio-spectral resolution through side information,” IEEE Colombian Conference on Applications in Computational Intelligence. Springer, Cham, vol. 833, pp. 165-176, 2018.

H. Garcia; C. V. Correa; K. Sánchez; E. Vargas; H. Arguello, “Multi-resolution coded apertures based on side information for single pixel spectral reconstruction,” 26th European Signal Processing Conference (EUSIPCO). IEEE, pp. 2215-2219, Rome. 2018.

K. Sanchez; C. Hinojosa; H. Arguello, “Supervised spatio-spectral classification of fused images using superpixels,” Applied optics, vol. 58, no. 7, pp. B9-B18, 2019.

C. Hinojosa; K. Sánchez; H. García; H. Arguello, “Cocoa beans spectral image with three fermentation levels”. IEEE Dataport, 2019.

L. Frey et al., “Color filters including infrared cut-off integrated on CMOS image sensor,” Optics Express, vol. 19, no. 14, pp. 13073-13080, 2011.

B. Schlkopf; A. J. Smola; F. Bach, Learning with kernels: support vector machines, regularization, optimization, and beyond, the MIT Press, 2018.

G. Mountrakis; J. Im; C. Ogole, “Support vector machines in remote sensing: A review,” ISPRS Journal of Photogrammetry and Remote Sensing, vol. 66, no. 3, pp. 247-259, May. 2011.

C. Beleites; R. Salzer; V. Sergo, “Validation of soft classification models using partial class memberships: An extended concept of sensitivity & co. applied to grading of astrocytoma tissues,” Chemometrics and Intelligent Laboratory Systems, vol. 122, pp. 12-22, Mar. 2013.

How to Cite
K. Sánchez, J. Bacca, L. Arévalo-Sánchez, H. Arguello, and S. Castillo, “Classification of Cocoa Beans Based on their Level of Fermentation using Spectral Information”, TecnoL., vol. 24, no. 50, p. e1654, Jan. 2021.


Download data is not yet available.
Research Papers

Funding data

Crossref Cited-by logo

More on this topic