作者
G. Madasamy Raja,P. Pathmanaban,P. Selvaraju,S. Vanaja
摘要
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).