Thermal-Images-of-Bread-Contamination-Labeled

Published: 6 May 2025| Version 1 | DOI: 10.17632/wptgsbr7fn.1
Contributors:
Pathmanaban P, Jeeva P

Description

This dataset consists of thermal images of bread slices, both contaminated and uncontaminated, designed for training and evaluating computer vision models for contamination detection. Commercial white bread was used, with slices standardized for size (10x10x1 cm) and moisture content (35 ± 2%). Four common food processing contaminants (deionized water, refined vegetable oil, food-grade machinery grease, and a diluted cleaning agent) were applied at two different levels, with 50 bread slices prepared for each contaminant and 50 uncontaminated controls. Contaminant application was carefully controlled using micropipettes and spatulas, with triplicate runs for each scenario. Thermal images were captured using a FLIR One Pro camera (160x120 resolution, 70 mK sensitivity) within a custom-built, light- and temperature-controlled enclosure. A hot-air blower provided a heat stimulus (35°C airflow for 2 or 3 seconds) at a 45° angle, and a conveyor system with a non-reflective black surface ensured consistent imaging. A total of 650 thermal images were acquired. Preprocessing and augmentation were performed using Roboflow software. Preprocessing steps included auto-orientation, cropping, resizing to 640x640, auto-contrast adjustment, and grayscale conversion. Augmentation techniques included flipping and exposure adjustments. The final dataset comprises 1342 training images, 56 validation images, and 28 test images along with their labels.

Files

Steps to reproduce

To reproduce this bread contamination thermal image dataset: Bread Preparation: Obtain commercial white bread (400g). Ensure consistent slice size (10x10x1cm) and control moisture content (35±2%) by storing bread at 25°C and 50% RH. Contamination: Apply four contaminants (water, vegetable oil, grease, cleaning agent) at two levels: 0.2mL/0.5mL (water/oil), 0.1g/0.3g (grease), 0.1mL/0.2mL (cleaning agent). Use micropipettes/spatulas for application, ensuring uniform distribution. Perform each contamination in triplicate. Prepare 50 contaminated slices per contaminant and 50 controls. Allow a 5-minute stabilization period post-contamination. Thermal Imaging: Use a FLIR One Pro camera (160x120 resolution, 70mK sensitivity) in a light-controlled, black foam-lined enclosure. Position a hot-air blower at a 45° angle, applying 35°C airflow for 2-3 seconds. Use a non-reflective black surface on a conveyor system. Capture thermal images. Image Processing: Collect 650 images. Preprocess using Roboflow: auto-orient, crop (25-75%), resize (640x640), adjust contrast, convert to grayscale. Augment via flipping and ±10% exposure adjustments. Resulting dataset: 1342 training, 56 validation, 28 test images.

Institutions

  • Easwari Engineering College

Categories

Computer Vision, Thermal Analysis, YOLOv5

Licence