Skip to main navigation Skip to search Skip to main content

Predicting Aflatoxin Contamination in Crops Using Machine Learning Algorithms

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Aflatoxin is a common contaminant in grains and cereals, creating serious health hazards for consumers and economic challenges for producers. Reliable prediction of whether its levels surpass safe thresholds using weather data, soil properties, and farming practices is essential for guiding informed decisions. In this study, four machine learning algorithms: Gaussian Process Classification (GPC), Support Vector Machine (SVM), Random Forest Classifier (RFC), and K-Nearest Neighbours (KNN) were applied to predict aflatoxin contamination in maize and groundnuts. GPC outperformed other models by predicting correctly 92 out 100 groundnuts samples (92%) and 93 out of 100 maize samples (93%). The findings indicate that humidity and rainfall are stronger predictors of aflatoxin contamination compared to temperature or soil p H. This work represents an important step toward applying machine learning techniques for aflatoxin prediction in crops. Nevertheless, the study is primarily simulation-based, serving to highlight the potential of machine learning models when applied to available datasets.

Original languageEnglish
Title of host publicationInternational Conference on Electrical, Computer, Communications and Mechatronics Engineering, ICECCME 2025
PublisherInstitute of Electrical and Electronics Engineers Inc.
ISBN (Electronic)9798331535568
DOIs
Publication statusPublished - 2025
Event5th International Conference on Electrical, Computer, Communications and Mechatronics Engineering, ICECCME 2025 - Zanzibar, Tanzania, United Republic of
Duration: 16 Oct 202519 Oct 2025

Publication series

NameInternational Conference on Electrical, Computer, Communications and Mechatronics Engineering, ICECCME 2025

Conference

Conference5th International Conference on Electrical, Computer, Communications and Mechatronics Engineering, ICECCME 2025
Country/TerritoryTanzania, United Republic of
CityZanzibar
Period16/10/2519/10/25

Keywords

  • Aflatoxin contamination
  • Gaussian process classification
  • Machine learning
  • Permutation feature importance

ASJC Scopus subject areas

  • Control and Optimization
  • Artificial Intelligence
  • Computer Networks and Communications
  • Computer Science Applications
  • Electrical and Electronic Engineering
  • Mechanical Engineering

Fingerprint

Dive into the research topics of 'Predicting Aflatoxin Contamination in Crops Using Machine Learning Algorithms'. Together they form a unique fingerprint.

Cite this