Title
Deep computer vision system for cocoa classification
Date Issued
01 January 2022
Access level
open access
Resource Type
journal article
Author(s)
University of Campinas
Publisher(s)
Springer
Abstract
Cocoa hybridisation generates new varieties which are resistant to several plant diseases, but has individual chemical characteristics that affect chocolate production. Image analysis is a useful method for visual discrimination of cocoa beans, while deep learning (DL) has emerged as the de facto technique for image processing. However, these algorithms require a large amount of data and careful tuning of hyperparameters. Since it is necessary to acquire a large number of images to encompass the wide range of agricultural products, in this paper, we compare a Deep Computer Vision System (DCVS) and a traditional Computer Vision System (CVS) to classify cocoa beans into different varieties. For DCVS, we used a Resnet18 and Resnet50 as backbone, while for CVS, we experimented traditional machine learning algorithms, Support Vector Machine (SVM), and Random Forest (RF). All the algorithms were selected since they provide good classification performance and their potential application for food classification A dataset with 1,239 samples was used to evaluate both systems. The best accuracy was 96.82% for DCVS (ResNet 18), compared to 85.71% obtained by the CVS using SVM. The essential handcrafted features were reported and discussed regarding their influence on cocoa bean classification. Class Activation Maps was applied to DCVS’s predictions, providing a meaningful visualisation of the most important regions of the images in the model.
Language
English
OCDE Knowledge area
Ciencias de la computación
Agricultura
Subjects
Scopus EID
2-s2.0-85130283753
Source
Multimedia Tools and Applications
ISSN of the container
13807501
Sponsor(s)
This study was financed in part by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior - Brasil (CAPES) - Finance Code 001; São Paulo Research Foundation (FAPESP) (project no. 2015/24351-2, 2019/04833-3, 2018/02500-4); National Council for Scientific and Technological Development - Brazil (CNPq) - Grant of Project 420562/2018-4 and 309863/2020-1.
Sources of information:
Directorio de Producción Científica
Scopus