Classification of toxic element accumulation in rice grains using optimized machine learning models: A comparative study

The presence of essential and toxic elements in rice grains raises significant concerns regarding food safety and public health. This study conducts a comparative evaluation of five machine learning (ML) models - Random Forest (RF), Support Vector Machine (SVM), Logistic Regression (LR), XGBoost (Gradient Boosting), and Artificial Neural Networks (ANN) to predict the accumulation of toxic elements in rice. A dataset comprising 144 rice samples from various regions of Bangladesh was analyzed to examine the interactions between essential elements (Co, Cu, Fe, Mn, Mo, Se, and Zn) and toxic elements (As, Cd, Pb, Ni, and Cr). The experimental results indicate that LR (75.86%) and ANN (72.41%) exhibited the highest accuracy, surpassing other models. SVM (65.52%) performed moderately well, whereas RF (55.17%) and XGBoost (44.83%) faced challenges related to overfitting and dataset constraints. Feature importance analysis using RF and XGBoost identified key essential elements contributing to toxic element accumulation. Principal Component Analysis (PCA) was utilized to visualize geographical variations in elemental distribution. The study underscores that while tree-based models like RF provide interpretability, and deep learning approaches such as ANN demonstrate superior predictive capabilities. These findings support the advancement of data-driven agricultural strategies, assisting policymakers and researchers in mitigating toxic element risks in rice and improving food safety. Future studies should focus on expanding datasets, leveraging advanced deep learning techniques, and incorporating additional environmental factors to enhance predictive modeling accuracy further. • Comparative evaluation of five machine learning (ML) models • RF, SVM, LR, XGBoost and ANN to predict the accumulation of toxic elements in rice. • LR and ANN exhibited the highest accuracy whereas RF and XGBoost faced challenges related to overfitting and dataset constraints. • Feature importance analysis using RF and XGBoost identified the interaction between essential elements and toxic elements accumulation in rice. • PCA identified regional differences in the accumulation of toxic elements in rice.

Institutions

Publication Details

Journal
Journal of Food Composition and Analysis
Published
2025-10-28
DOI
https://doi.org/10.1016/j.jfca.2025.108504
Primary Topic
Heavy metals in environment
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Classification of toxic element accumulation in rice grains using optimized machine learning models: A comparative study

Journal of Food Composition and Analysis
Heavy metals in environment
article

Classification of toxic element accumulation in rice grains using optimized machine learning models: A comparative study

article en

Abstract

The presence of essential and toxic elements in rice grains raises significant concerns regarding food safety and public health. This study conducts a comparative evaluation of five machine learning (ML) models - Random Forest (RF), Support Vector Machine (SVM), Logistic Regression (LR), XGBoost (Gradient Boosting), and Artificial Neural Networks (ANN) to predict the accumulation of toxic elements in rice. A dataset comprising 144 rice samples from various regions of Bangladesh was analyzed to examine the interactions between essential elements (Co, Cu, Fe, Mn, Mo, Se, and Zn) and toxic elements (As, Cd, Pb, Ni, and Cr). The experimental results indicate that LR (75.86%) and ANN (72.41%) exhibited the highest accuracy, surpassing other models. SVM (65.52%) performed moderately well, whereas RF (55.17%) and XGBoost (44.83%) faced challenges related to overfitting and dataset constraints. Feature importance analysis using RF and XGBoost identified key essential elements contributing to toxic element accumulation. Principal Component Analysis (PCA) was utilized to visualize geographical variations in elemental distribution. The study underscores that while tree-based models like RF provide interpretability, and deep learning approaches such as ANN demonstrate superior predictive capabilities. These findings support the advancement of data-driven agricultural strategies, assisting policymakers and researchers in mitigating toxic element risks in rice and improving food safety. Future studies should focus on expanding datasets, leveraging advanced deep learning techniques, and incorporating additional environmental factors to enhance predictive modeling accuracy further. • Comparative evaluation of five machine learning (ML) models • RF, SVM, LR, XGBoost and ANN to predict the accumulation of toxic elements in rice. • LR and ANN exhibited the highest accuracy whereas RF and XGBoost faced challenges related to overfitting and dataset constraints. • Feature importance analysis using RF and XGBoost identified the interaction between essential elements and toxic elements accumulation in rice. • PCA identified regional differences in the accumulation of toxic elements in rice.

Journal of Food Composition and AnalysisVol. 148
Bangladesh Rice Research Institute (BD), University of Newcastle Australia (AU)
Zero hunger
Openalex Percentile: Top 57%
Heavy metals in environment
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.