Boxed-meal inspection prototype targets missing portions and visible defects
A colour-based prototype was tested on Chinese-style lunch boxes using menu-specific food-area thresholds and a plastic cockroach model for foreign-object tests.
Checking a meal with several adjacent foods
A study published in Sensors on 4 September 2026 evaluated a camera inspection prototype using two commercially available Taiwan Railway Administration lunch-box products. It combines colour features, a neural-network classifier and menu-specific food-area thresholds to identify missing foods, insufficient portions and a simulated foreign object.
The paper describes 667 images split into 310 training, 90 validation and 267 testing images. In the five-fold classifier comparison, the authors report an overall image classification rate of 96.45 ± 1.08%, a rate of 97.76 ± 1.21% for correctly classifying defective images and a normal-image false alarm rate of 5.34 ± 1.73%. The values are means and standard deviations across the five folds.
Colour regions stand in for ingredient identity
The system first locates the meal container and filters the image to reduce bright reflections from oily surfaces. It then divides the image into fixed superpixels of 6 × 6 pixels and extracts statistical colour information in RGB, HSV and CIE Lab spaces. A deep neural network classifies these regions, and a filling step refines the resulting ingredient areas.
Food areas were compared with empirical thresholds for the expected menu. The classes were rice, meat, vegetables, egg and pickled side dishes. The authors state that substantially different menu items require additional data collection, annotation and model retraining or adaptation. The area thresholds must be recalibrated when nominal portion sizes or presentation conditions change. Insufficient portions were assessed for meat and vegetables; egg and pickled side dishes were checked only for omission.
Plastic model and an empirical area criterion
The researchers placed pieces of a plastic cockroach model, originally about 4 × 2 cm, at different positions. The study compared detected foreign-object regions with manually annotated areas using an empirical criterion for image-level defect decisions. The authors call for broader validation of this criterion.
Table 13 reports a mean classification rate of 82.12 ± 0.79% for foreign-object superpixels across five validation folds. The authors describe the plastic-model experiment as proof of concept. They state that transparent plastic, reflective metal, hair, bone fragments and objects resembling nearby foods may be more difficult to detect using RGB colour features alone.
Prototype feasibility still leaves a production test
Experiments varied lighting, container configurations and conveyor speed. Stronger lighting changes and motion blur reduced performance, especially for small or partly hidden ingredients. Egg and pickled-side-dish regions were harder to classify than larger, more visually distinct areas. The study also assessed individual defect categories separately, leaving meals with several simultaneous abnormalities unvalidated. The octagonal-box experiment evaluated food classification after retraining; a complete image-level defect dataset was not established for that configuration.
The authors call for larger independent datasets, repeated acquisition sessions and actual production-line trials to quantify performance variability. They also call for controlled comparisons with modern semantic or instance segmentation systems using identical datasets and evaluation protocols. The authors state that the full image dataset, annotations, trained weights and source code are not publicly available because of project-related data and implementation constraints.
The work was funded by Taiwan’s Ministry of Science and Technology through grant MOST 108-2221-E-324-008. The authors declared no conflicts of interest and thanked the Taiwan Railway Administration for test samples and professional consultation.
-
Vision-Based Automated Inspection of Box Meals for Food Portion Defects and Foreign Object Detection. ↗
Multidisciplinary Digital Publishing Institute (MDPI) · CC-BY-4.0 ↗. Hong-Dar Lin, Guan-Ming Chen and Chou-Hsien Lin (2026). Vision-Based Automated Inspection of Box Meals for Food Portion Defects and Foreign Object Detection. Sensors 26, 5636. DOI: 10.3390/s26175636. © 2026 the authors. CC BY 4.0. Adapted, edited and translated by FoodRadar. Text only; source figures, tables and photographs not reused. Adapted by FoodRadar.