Bread contamination detection using deep learning and thermal imaging

The effectiveness of four You Only Look Once (YOLO) models (YOLOv5, YOLOv8, YOLOv9, and YOLOv11) was evaluated for detecting contamination (water, oil, grease, and cleaning chemicals) in bread using thermal imaging. Thermal images of contaminated and uncontaminated bread slices were collected through active thermography, employing a controlled hot air supply under varying conditions. The analysis revealed distinct thermal signs, with oil-contaminated areas exhibiting higher temperatures, and water, grease, and chemical contaminants appearing cooler. The trained YOLO models were assessed based on the mean average precision (mAP50-95), inference speed, and computational efficiency. The results indicate that increased model complexity does not always translate into higher accuracy. The lightweight YOLOv11n model (2.59M parameters, 6.4 Giga Floating Point Operations Per Second (GFLOPs) achieved a competitive mAP50-95 score of 0.607, closely matching larger models such as YOLOv8s (28.6 GFLOPs, mAP50-95: 0.601) and YOLOv9s (27.4 GFLOPs, mAP50-95: 0.601). Despite deeper architectures, models such as YOLOv9s exhibit signs of overfitting without significant performance improvements. YOLOv11n outperformed the other models in terms of operational efficiency, achieving faster inference speeds (3.0 ms/image) and lower memory consumption, thus making it suitable for real-time industrial applications. The training durations for all models were low, ranging between 0.107 and 0.146 h for 10 epochs on an NVIDIA Tesla T4 GPU, demonstrating that contamination detection is a computationally manageable task. These findings suggest that lightweight models, such as YOLOv11n, provide an optimal balance between accuracy, computational efficiency, and practical deployment feasibility. • Thermal imaging efficiently detected bread contamination using YOLO models. • YOLOv11n achieved an mAP50-95 of 0.607 with 2.59M parameters and 6.4 GFLOPs. • Oil contamination increased surface temperature by +1.2°C than other contaminants • Inference speed of YOLOv11n was 3.0 ms per image, outperforming YOLOv8s (4.5 ms).

Authors

Institutions

Publication Details

Journal
Journal of Food Engineering
Published
2025-05-02
DOI
https://doi.org/10.1016/j.jfoodeng.2025.112639
Citations
6
Primary Topic
Spectroscopy and Chemometric Analyses
Type
article
Field-Weighted Citation Impact
4.51
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Bread contamination detection using deep learning and thermal imaging

G. Madasamy Raja, P. Pathmanaban, S. Vanaja, P. Selvaraju
6 citations
Journal of Food Engineering
Spectroscopy and Chemometric Analyses
4.51
article

Bread contamination detection using deep learning and thermal imaging

G. Madasamy Raja, P. Pathmanaban, S. Vanaja, P. Selvaraju
article en
6 citations

Abstract

The effectiveness of four You Only Look Once (YOLO) models (YOLOv5, YOLOv8, YOLOv9, and YOLOv11) was evaluated for detecting contamination (water, oil, grease, and cleaning chemicals) in bread using thermal imaging. Thermal images of contaminated and uncontaminated bread slices were collected through active thermography, employing a controlled hot air supply under varying conditions. The analysis revealed distinct thermal signs, with oil-contaminated areas exhibiting higher temperatures, and water, grease, and chemical contaminants appearing cooler. The trained YOLO models were assessed based on the mean average precision (mAP50-95), inference speed, and computational efficiency. The results indicate that increased model complexity does not always translate into higher accuracy. The lightweight YOLOv11n model (2.59M parameters, 6.4 Giga Floating Point Operations Per Second (GFLOPs) achieved a competitive mAP50-95 score of 0.607, closely matching larger models such as YOLOv8s (28.6 GFLOPs, mAP50-95: 0.601) and YOLOv9s (27.4 GFLOPs, mAP50-95: 0.601). Despite deeper architectures, models such as YOLOv9s exhibit signs of overfitting without significant performance improvements. YOLOv11n outperformed the other models in terms of operational efficiency, achieving faster inference speeds (3.0 ms/image) and lower memory consumption, thus making it suitable for real-time industrial applications. The training durations for all models were low, ranging between 0.107 and 0.146 h for 10 epochs on an NVIDIA Tesla T4 GPU, demonstrating that contamination detection is a computationally manageable task. These findings suggest that lightweight models, such as YOLOv11n, provide an optimal balance between accuracy, computational efficiency, and practical deployment feasibility. • Thermal imaging efficiently detected bread contamination using YOLO models. • YOLOv11n achieved an mAP50-95 of 0.607 with 2.59M parameters and 6.4 GFLOPs. • Oil contamination increased surface temperature by +1.2°C than other contaminants • Inference speed of YOLOv11n was 3.0 ms per image, outperforming YOLOv8s (4.5 ms).

Journal of Food EngineeringVol. 400
Machine Intelligence Research Institute (US), Saveetha University (IN)
Zero hunger
Openalex Percentile: Top 5%
Spectroscopy and Chemometric Analyses
4.51
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.