From Human Eyes to Machine Vision: A Structured Review and Implementation Framework for AI-Driven Real-Time Defect Detection and Sorting in Bakery Production
Authors
Department of Computer Science, Edo State University Iyamho, Edo State, Nigeria (Nigeria)
Article Information
DOI: 10.51583/IJLTEMAS.2026.151100021
Subject Category: Artificial Intelligence and Computer Vision
Volume/Issue: 15/11 | Page No: 266-278
Publication Timeline
Submitted: 2026-11-11
Accepted: 2026-11-16
Published: 2026-11-23
Abstract
Visual quality control in many bakeries still depends on human inspectors whose judgements drift with fatigue and line speed. This review assesses the evidence on computer vision and artificial intelligence (AI) for detecting and sorting defective baked goods and translates it into a deployment framework. Eight predefined search strings were run on 16 November 2026, after scoping searches on 30 October 2026, and records were screened against explicit criteria following PRISMA 2020 reporting principles; citation searching added further studies. From 57 unique records and 6 additional reports, 19 primary studies published between 2000 and 2026 were included, covering bread (10), biscuits (6), muffins, pizza and tortillas. Reported performance was mostly between 87% and 99% under controlled imaging, yet a structured appraisal exposed weaknesses: only two studies tested systems on a production line, one reported processing speed, and two confirmed that training and test images came from different physical products. Accuracy fell sharply when conditions changed, from 96% to 79% for ungraded muffins and from 99% in training to 56.6% on whole-loaf test images in a staling study, and deep learning did not consistently outperform classical methods on small datasets. No study came from an African bakery, a gap this review identifies rather than fills. Building on these recurring weaknesses, a six-stage implementation framework is proposed, together with a two-step validation protocol based on expert review and a shadow-mode pilot. Recommendations are offered for researchers, bakery managers and vocational educators.
Keywords
Computer vision, Defect detection, Bakery quality control, Deep learning, Food automation
This article is licensed under a Creative Commons Attribution 4.0 International License (CC BY 4.0).
Downloads
References
1. Abdullah, M. Z., Aziz, S. A., & Dos Mohamed, A. M. (2000). Quality inspection of bakery products using a color-based machine vision system. Journal of Food Quality, 23(1), 39–50. https://doi.org/10.1111/j.1745-4557.2000.tb00194.x [Google Scholar] [Crossref]
2. Argun, M. Ş., Türk, F., & Kurt, A. (2023). Non-destructive prediction of bread staling using artificial intelligence methods. Bitlis Eren Üniversitesi Fen Bilimleri Dergisi, 12(4), 985–993. https://doi.org/10.17798/bitlisfen.1308493 [Google Scholar] [Crossref]
3. Azmat, M., García-Gómez, M. B., Cernadas, E., Fernández-Delgado, M., Quiroga-García, M., & Romero-Rodríguez, M. A. (2026). Assessing traits in bread using image analysis and machine learning. Food Research International, 235, Article 119131. https://doi.org/10.1016/j.foodres.2026.119131 [Google Scholar] [Crossref]
4. Bergmann, P., Fauser, M., Sattlegger, D., & Steger, C. (2019). MVTec AD: A comprehensive real-world dataset for unsupervised anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (pp. 9592–9600). IEEE. [Google Scholar] [Crossref]
5. Brosnan, T., & Sun, D.-W. (2004). Improving quality inspection of food products by computer vision: A review. Journal of Food Engineering, 61(1), 3–16. https://doi.org/10.1016/S0260-8774(03)00183-3 [Google Scholar] [Crossref]
6. Castro, W., Oblitas, J., Chuquizuta, T., & Avila-George, H. (2017). Application of image analysis to optimization of the bread-making process based on the acceptability of the crust color. Journal of Cereal Science, 74, 194–199. https://doi.org/10.1016/j.jcs.2017.02.002 [Google Scholar] [Crossref]
7. Cotrim, W. da S., Minim, V. P. R., Felix, L. B., & Minim, L. A. (2020). Short convolutional neural networks applied to the recognition of the browning stages of bread crust. Journal of Food Engineering, 277, Article 109916. https://doi.org/10.1016/j.jfoodeng.2020.109916 [Google Scholar] [Crossref]
8. Food and Agriculture Organization of the United Nations. (2019). The state of food and agriculture 2019: Moving forward on food loss and waste reduction. FAO. [Google Scholar] [Crossref]
9. Ghonimy, M., & Barakat, H. (2026). Artificial intelligence and computer vision for automated quality inspection of processed foods: A comprehensive review. Foods, 15(22), Article 4064. https://doi.org/10.3390/foods15224064 [Google Scholar] [Crossref]
10. Gonzales-Barron, U., & Butler, F. (2006). A comparison of seven thresholding techniques with the k-means clustering algorithm for measurement of bread-crumb features by digital image analysis. Journal of Food Engineering, 74(2), 268–278. [Google Scholar] [Crossref]
11. He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (pp. 770–778). IEEE. [Google Scholar] [Crossref]
12. Howard, A. G., Zhu, M., Chen, B., Kalenichenko, D., Wang, W., Weyand, T., Andreetto, M., & Adam, H. (2017). MobileNets: Efficient convolutional neural networks for mobile vision applications (arXiv:1704.04861). arXiv. [Google Scholar] [Crossref]
13. Hsu, C.-C., & Sandford, B. A. (2007). The Delphi technique: Making sense of consensus. Practical Assessment, Research, and Evaluation, 12(10), 1–8. [Google Scholar] [Crossref]
14. Joshi, K. D., Chauhan, V., & Surgenor, B. (2020). A flexible machine vision system for small part inspection based on a hybrid SVM/ANN approach. Journal of Intelligent Manufacturing, 31, 103–125. https://doi.org/10.1007/s10845-018-1438-3 [Google Scholar] [Crossref]
15. Kakani, V., Nguyen, V. H., Kumar, B. P., Kim, H., & Pasupuleti, V. R. (2020). A critical review on computer vision and artificial intelligence in food industry. Journal of Agriculture and Food Research, 2, Article 100033. https://doi.org/10.1016/j.jafr.2020.100033 [Google Scholar] [Crossref]
16. Khan, B., Han, F., Wang, Z., & Iqbal, A. (2017). Automatic quality inspection of bakery products based on shape and color information. Journal of Harbin Institute of Technology, 24(5), 88–96. https://doi.org/10.11916/j.issn.1005-9113.16179 [Google Scholar] [Crossref]
17. Kılcı, O., & Koklu, M. (2025). Automated classification of biscuit quality using YOLOv8 models in food industry. Food Analytical Methods, 18, 815–829. https://doi.org/10.1007/s12161-025-02755-5 [Google Scholar] [Crossref]
18. Krizhevsky, A., Sutskever, I., & Hinton, G. E. (2012). ImageNet classification with deep convolutional neural networks. Advances in Neural Information Processing Systems, 25, 1097–1105. [Google Scholar] [Crossref]
19. LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521(7553), 436–444. https://doi.org/10.1038/nature14539 [Google Scholar] [Crossref]
20. Martínez-Lara, N.-D., Filomena-Ambrosio, A., & Garzón-Castro, C. L. (2026). Use of computer vision systems in baked products: Potential tool for measuring physical properties. Journal of Food Measurement and Characterization, 20(5), 6925–6947. https://doi.org/10.1007/s11694-026-04154-8 [Google Scholar] [Crossref]
21. Mery, D., Chanona-Pérez, J. J., Soto, A., Aguilera, J. M., Cipriano, A., Vélez-Rivera, N., Arzate-Vázquez, I., & Gutiérrez-López, G. F. (2010). Quality classification of corn tortillas using computer vision. Journal of Food Engineering, 101(4), 357–364. https://doi.org/10.1016/j.jfoodeng.2010.07.018 [Google Scholar] [Crossref]
22. MVTec Software. (2013, September 3). Machine vision inspects biscuits – Machine Vision Technology Ltd. https://www.mvtec.com/knowledge-base/news/article/machine-vision-inspects-biscuits-machine-vision-technology-ltd [Google Scholar] [Crossref]
23. Nashat, S., & Abdullah, M. Z. (2010). Multi-class colour inspection of baked foods featuring support vector machine and Wilk’s λ analysis. Journal of Food Engineering, 101(4), 370–380. [Google Scholar] [Crossref]
24. Nashat, S., Abdullah, A., & Abdullah, M. Z. (2014). Machine vision for crack inspection of biscuits featuring pyramid detection scheme. Journal of Food Engineering, 120, 233–247. [Google Scholar] [Crossref]
25. Olakanmi, S. J., Jayas, D. S., & Paliwal, J. (2023). Applications of imaging systems for the assessment of quality characteristics of bread and other baked goods: A review. Comprehensive Reviews in Food Science and Food Safety, 22, 1817–1838. https://doi.org/10.1111/1541-4337.13131 [Google Scholar] [Crossref]
26. Page, M. J., McKenzie, J. E., Bossuyt, P. M., Boutron, I., Hoffmann, T. C., Mulrow, C. D., Shamseer, L., Tetzlaff, J. M., Akl, E. A., Brennan, S. E., Chou, R., Glanville, J., Grimshaw, J. M., Hróbjartsson, A., Lalu, M. M., Li, T., Loder, E. W., Mayo-Wilson, E., McDonald, S., … Moher, D. (2021). The PRISMA 2020 statement: An updated guideline for reporting systematic reviews. BMJ, 372, n71. https://doi.org/10.1136/bmj.n71 [Google Scholar] [Crossref]
27. Pan, S. J., & Yang, Q. (2010). A survey on transfer learning. IEEE Transactions on Knowledge and Data Engineering, 22(10), 1345–1359. https://doi.org/10.1109/TKDE.2009.191 [Google Scholar] [Crossref]
28. Purlis, E. (2010). Browning development in bakery products: A review. Journal of Food Engineering, 99(3), 239–249. https://doi.org/10.1016/j.jfoodeng.2010.03.008 [Google Scholar] [Crossref]
29. Redmon, J., Divvala, S., Girshick, R., & Farhadi, A. (2016). You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (pp. 779–788). IEEE. [Google Scholar] [Crossref]
30. Selvaraju, R. R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., & Batra, D. (2017). Grad-CAM: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision (pp. 618–626). IEEE. [Google Scholar] [Crossref]
31. Serfa Juan, R. O., Kaufman, R. C., Bean, S. R., Chen, R. Y., Sutton, T. L., Tilley, M., Abacan, S. F., & Gerken, A. R. (2026). AI-based bread quality assessment using image processing techniques and the developed BQe-CNN. International Journal of Food Science and Technology, 61(1), vvag010. https://doi.org/10.1093/ijfood/vvag010 [Google Scholar] [Crossref]
32. Shilaskar, S., Bhatlawande, S., Bhalerao, S., Chakole, S., & Bagmare, S. (2025). Fungus detection on baked breads: A comparative approach of machine learning and deep learning. In Proceedings of the 1st International Conference on Lifespan Innovation (ICLI 2025) (pp. 175–183). Atlantis Press. https://doi.org/10.2991/978-94-6463-831-8_22 [Google Scholar] [Crossref]
33. Shorten, C., & Khoshgoftaar, T. M. (2019). A survey on image data augmentation for deep learning. Journal of Big Data, 6, Article 60. https://doi.org/10.1186/s40537-019-0197-0 [Google Scholar] [Crossref]
34. Sisman, H. I., Guney, E., & Bayilmis, C. (2024). A real-time tracking system for bread production based on YOLOv8 and DeepSORT. In F. P. Garcia, A. Jamil, A. A. Hameed, A. Ortis, & I. S. Ramirez (Eds.), Recent trends and advances in artificial intelligence (Lecture Notes in Networks and Systems, Vol. 1138, pp. 469–479). Springer. https://doi.org/10.1007/978-3-031-70924-1_35 [Google Scholar] [Crossref]
35. Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I., & Salakhutdinov, R. (2014). Dropout: A simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15, 1929–1958. [Google Scholar] [Crossref]
36. Srivastava, S., Boyat, S., & Sadistap, S. (2014). A robust machine vision algorithm development for quality parameters extraction of circular biscuits and cookies digital images. Journal of Food Processing, 2014, Article 376360. https://doi.org/10.1155/2014/376360 [Google Scholar] [Crossref]
37. Sun, D.-W. (Ed.). (2016). Computer vision technology for food quality evaluation (2nd ed.). Academic Press. [Google Scholar] [Crossref]
38. Sun, D.-W., & Brosnan, T. (2003). Pizza quality evaluation using computer vision—Part 2: Pizza topping analysis. Journal of Food Engineering, 57(1), 91–95. https://doi.org/10.1016/S0260-8774(02)00276-5 [Google Scholar] [Crossref]
39. Treepong, P., & Theera-Ampornpunt, N. (2023). Early bread mold detection through microscopic images using convolutional neural network. Current Research in Food Science, 7, Article 100574. https://doi.org/10.1016/j.crfs.2023.100574 [Google Scholar] [Crossref]
40. Wang, Y., Shi, C., Zhang, C., & Liao, Q. (2015). A real-time computer vision system for biscuit defect inspection. In Proceedings of the 10th International Conference on Computer Vision Theory and Applications (VISAPP 2015) (Vol. 1, pp. 531–536). SciTePress. https://doi.org/10.5220/0005306705310536 [Google Scholar] [Crossref]
41. Xu, N., & Lu, Y. (2026). Artificial intelligence-enabled computer vision for food inspection: From validated measurements to process control. Foods, 15(20), Article 3591. https://doi.org/10.3390/foods15203591 [Google Scholar] [Crossref]
42. Yin, J., Hameed, S., Xie, L., et al. (2021). Non-destructive detection of foreign contaminants in toast bread with near infrared spectroscopy and computer vision techniques. Journal of Food Measurement and Characterization, 15, 189–198. https://doi.org/10.1007/s11694-020-00627-6 [Google Scholar] [Crossref]
43. Zhou, L., Zhang, C., Liu, F., Qiu, Z., & He, Y. (2019). Application of deep learning in food: A review. Comprehensive Reviews in Food Science and Food Safety, 18(6), 1793–1811. https://doi.org/10.1111/1541-4337.12492 [Google Scholar] [Crossref]
This work is licensed under CC BY 4.0