Table of Contents
Fetching ...

An Explorative Analysis of SVM Classifier and ResNet50 Architecture on African Food Classification

Chinedu Emmanuel Mbonu, Kenechukwu Anigbogu, Doris Asogwa, Tochukwu Belonwu

TL;DR

The paper tackles the problem of African cuisine recognition by directly comparing a fine-tuned ResNet50 CNN with a traditional SVM classifier on a dataset of 1,658 images spanning six dishes. It implements a ResNet50-based transfer-learning pipeline with data augmentation and a separate SVM using flattened RGB features, both evaluated with accuracy, precision, recall, F1, and confusion matrices under a 5-fold cross-validation framework. The results show both approaches achieving 81% overall accuracy but with complementary strengths across classes: ResNet50 excels on Palm Nut Soup while SVM demonstrates more consistent performance across most categories, especially Ekwang and Eru. The study contributes actionable insights for African food classification, demonstrates the viability of both paradigms on limited/imbalanced data, and provides code for reproducibility, laying groundwork for ensembles and larger, balanced datasets in future work.

Abstract

Food recognition systems has advanced significantly for Western cuisines, yet its application to African foods remains underexplored. This study addresses this gap by evaluating both deep learning and traditional machine learning methods for African food classification. We compared the performance of a fine-tuned ResNet50 model with a Support Vector Machine (SVM) classifier. The dataset comprises 1,658 images across six selected food categories that are known in Africa. To assess model effectiveness, we utilize five key evaluation metrics: Confusion matrix, F1-score, accuracy, recall and precision. Our findings offer valuable insights into the strengths and limitations of both approaches, contributing to the advancement of food recognition for African cuisines.

An Explorative Analysis of SVM Classifier and ResNet50 Architecture on African Food Classification

TL;DR

The paper tackles the problem of African cuisine recognition by directly comparing a fine-tuned ResNet50 CNN with a traditional SVM classifier on a dataset of 1,658 images spanning six dishes. It implements a ResNet50-based transfer-learning pipeline with data augmentation and a separate SVM using flattened RGB features, both evaluated with accuracy, precision, recall, F1, and confusion matrices under a 5-fold cross-validation framework. The results show both approaches achieving 81% overall accuracy but with complementary strengths across classes: ResNet50 excels on Palm Nut Soup while SVM demonstrates more consistent performance across most categories, especially Ekwang and Eru. The study contributes actionable insights for African food classification, demonstrates the viability of both paradigms on limited/imbalanced data, and provides code for reproducibility, laying groundwork for ensembles and larger, balanced datasets in future work.

Abstract

Food recognition systems has advanced significantly for Western cuisines, yet its application to African foods remains underexplored. This study addresses this gap by evaluating both deep learning and traditional machine learning methods for African food classification. We compared the performance of a fine-tuned ResNet50 model with a Support Vector Machine (SVM) classifier. The dataset comprises 1,658 images across six selected food categories that are known in Africa. To assess model effectiveness, we utilize five key evaluation metrics: Confusion matrix, F1-score, accuracy, recall and precision. Our findings offer valuable insights into the strengths and limitations of both approaches, contributing to the advancement of food recognition for African cuisines.

Paper Structure

This paper contains 14 sections, 9 figures, 3 tables.

Figures (9)

  • Figure 1: Sample visualization of Each Class in our Dataset
  • Figure 2: Methodology for Fine-Tuning ResNet50 model on African food dataset
  • Figure 3: ResNet50 Architecture b28
  • Figure 4: Methodology overview for African food classification using SVM classifier
  • Figure 5: SVM Classification with Support Vectors and Optimal Hyperplane
  • ...and 4 more figures