Development of a Prototype Solution for Reducing Soup Waste in an Institutional Canteen
Source abstract
Abstract
Food waste has gained increasing attention and debate, given its economic, environmental, social, and nutritional implications. One-third of food intended for human consumption is wasted. Although it is present at all stages of the food supply chain, it is in the final stages of consumption, such as households and food services, that the problem becomes most evident. This work builds on a previous study by the same authors, which identified computer vision as a suitable technology for identifying and quantifying food waste in institutional canteens. Based on this result, this paper describes the proposal and implementation process of a prototype demonstration. It is based on a Raspberry Pi 4 platform, a ResNet-50 model adapted with the Faster Region-Convolutional Neural Network (Faster R-CNN) model, and an algorithm for feature extracting. A specially built dataset was used to meet the challenge of detecting soup bowls and classifying waste in their consumption. A web application was developed to visualize the data collected, supporting decision making for more efficient food waste management. The prototype was subjected to validation and functional tests, and proved to be a viable, low-cost solution.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Food Waste Reduction and Sustainability · Currency Recognition and Detection
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Polytechnic Institute of Castelo Branco, Pedro Alvares Cabral Avenue, No. 12, 6000-084 Castelo Branco, Portugal
Instituto de Telecomunicações, Rua Marquês d’Ávila e Bolama, 6201-001 Covilhã, Portugal
AMA—Agência para a Modernização Administrativa, Rua de Santa Marta, No. 55, 1150-294 Lisbon, Portugal
Funding
FCT/MCTES
References (58)
Show source-provided references
1. Gustavsson, J., Cederberg, C., Sonesson, U., van Otterdijk, R., and Meybeck, A. (2011). Global Food Losses and Food Waste: Extent, Causes and Prevention, Food and Agriculture Organisation of the United Nations.
2. Instituto Nacional de Estatística (2022). Desperdício Alimentar-Resultados e Perspetivas, Instituto Nacional de Estatística.
3. Tribunal de Contas Europeu (2016). Relatório Especial-Luta Contra o Desperdício Alimentar: Uma Oportunidade para a UE Melhorar a Eficiência dos Recursos na Cadeia de Abastecimento Alimentar, Tribunal de Contas Europeu.
4. United Nations (2023, October 05). Ensure Sustainable Consumption and Production Patterns. Available online: https://sdgs.un.org/goals/goal12.
5. Correia, A., Aidos, C., Caldeia, J.M.L.P., and Soares, V.N.G.J. Using Computer Vision for Reducing Food Waste in an Institutional Canteen, Waste, Submitted, pending review.
6. Raspberry Pi (2024, May 21). Available online: https://www.raspberrypi.com/.
7. (2024, May 21). Enterprise Open Source and Linux|Ubuntu. Available online: https://ubuntu.com/.
8. (2024, May 21). MySQL. Available online: https://www.mysql.com/.
9. (2024, May 17). Docker Desktop: The #1 Containerization Tool for Developers|Docker. Available online: https://www.docker.com/products/docker-desktop/.
10. (2024, May 21). Microsserviços e o Impacto na Escalabilidade de Aplicações. Available online: https://imaginedone.com.br/artigos/inovacao-e-tecnologia/microsservicos/.
11. (2024, May 18). Canvas Select Plus microSD Card, A1, Class 10 UHS-I, 64GB to 512GB-Kingston Technology. Available online: https://www.kingston.com/en/memory-cards/canvas-select-plus-microsd-card.
12. (2024, May 18). Buy a Raspberry Pi Camera Module 3–Raspberry Pi. Available online: https://www.raspberrypi.com/products/camera-module-3/.
13. (2024, May 18). Infrared Reflective Sensor-Waveshare Wiki. Available online: https://www.waveshare.com/wiki/Infrared_Reflective_Sensor.
14. (2024, May 09). Camera-Raspberry Pi Documentation. Available online: https://www.raspberrypi.com/documentation/accessories/camera.html.
15. (2024, May 18). How to Use Dual Cameras on the Raspberry Pi 5|Tom’s Hardware. Available online: https://www.tomshardware.com/raspberry-pi/how-to-use-dual-cameras-on-the-raspberry-pi-5.
16. (2024, May 18). Raspberry Pi hardware-Raspberry Pi Documentation. Available online: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html.
17. (2024, May 18). Raspberry Pi 5-gpiod vs. RPi.GPIO-Raspberry Pi Forums. Available online: https://forums.raspberrypi.com/viewtopic.php?t=359742.
18. (2024, May 09). Using a IR Reflective Sensor-Raspberry Pi Forums. Available online: https://forums.raspberrypi.com/viewtopic.php?t=181544.
19. (2024, May 18). 2. Basic Recipes—Gpiozero 2.0.1 Documentation. Available online: https://gpiozero.readthedocs.io/en/stable/recipes.html#pin-numbering.
20. (2024, May 18). Oracle VM VirtualBox. Available online: https://www.virtualbox.org/.
21. Instituto Politécnico de Castelo Branco (2024, May 21). Available online: https://www.ipcb.pt/.
22. (2024, May 15). Roboflow: Computer Vision Tools for Developers and Enterprises. Available online: https://roboflow.com/.
23. (2024, June 04). Soup-Bowl-Dataset Dataset > Overview. Available online: https://universe.roboflow.com/sopa/soup-bowl-dataset.
24. Géron, A. (2022). Hands-On Machine Learning with Scikit-Learn, Keras and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems, O’Reilly Media. [3rd ed.].
25. Review of deep learning: Concepts, CNN architectures, challenges, applications, future directions10.1186/s40537-021-00444-8 ↗
26. Maurício, J., Domingues, I., and Bernardino, J. (2023). Comparing Vision Transformers and Convolutional Neural Networks for Image Classification: A Literature Review. Appl. Sci., 13.10.3390/app13095521 ↗
27. Ren, S., He, K., Girshick, R., and Sun, J. (2015). Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. arXiv, Available online: http://arxiv.org/abs/1506.01497.
28. Google Colab (2024, May 09). Available online: https://colab.research.google.com/drive/1thXa8nF65Iywbcbm4LaZ_KDD1bkIvi9O?usp=sharing.
29. (2024, May 09). sovit-123/fasterrcnn-pytorch-training-pipeline: PyTorch Faster R-CNN Object Detection on Custom Dataset. Available online: https://github.com/sovit-123/fasterrcnn-pytorch-training-pipeline.
30. (2024, May 24). Personal Cloud Storage & File Sharing Platform-Google. Available online: https://www.google.com/drive/.
31. (2024, May 24). GitHub: Let’s Build from Here · GitHub. Available online: https://github.com/.
32. (2024, May 21). Overfitting and Underfitting in Machine Learning|SuperAnnotate. Available online: https://www.superannotate.com/blog/overfitting-and-underfitting-in-machine-learning.
33. An Overview of Overfitting and its Solutions10.1088/1742-6596/1168/2/022022 ↗
34. (2024, May 21). What Is Average Precision in Object Detection & Localization Algorithms and How to Calculate It?|by Aqeel Anwar|Towards Data Science. Available online: https://towardsdatascience.com/what-is-average-precision-in-object-detection-localization-algorithms-and-how-to-calculate-it-3f330efe697b.
35. (2024, May 21). mAP (Mean Average Precision) for Object Detection|by Jonathan Hui|Medium. Available online: https://jonathan-hui.medium.com/map-mean-average-precision-for-object-detection-45c121a31173.
36. Mudivedu, V. (2024, January 18). What Is the Difference between Training Loss Validation Loss and Evaluation Loss. Medium. Available online: https://medium.com/@penpencil.blr/what-is-the-difference-between-training-loss-validation-loss-and-evaluation-loss-c169ddeccd59.
37. (2024, May 09). Raspberry Pi OS–Raspberry Pi. Available online: https://www.raspberrypi.com/software/.
38. (2024, May 17). How to Use Picamera2 to Take Photos with Raspberry Pi|Tom’s Hardware. Available online: https://www.tomshardware.com/how-to/use-picamera2-take-photos-with-raspberry-pi.
39. (2024, May 09). rpi-gpio-example/example.c at master · krinkinmu/rpi-gpio-example. Available online: https://github.com/krinkinmu/rpi-gpio-example/blob/master/example.c.
40. (2024, May 09). Paramiko-How to SSH and Transfer Files with Python|by Mokgadi Rasekgala|Medium. Available online: https://medium.com/@keagileageek/paramiko-how-to-ssh-and-file-transfers-with-python-75766179de73.
41. (2024, May 09). Python-How to Transfer a File to ssh Server in an ssh-Connection Made by Paramiko?-Stack Overflow. Available online: https://stackoverflow.com/questions/11499507/how-to-transfer-a-file-to-ssh-server-in-an-ssh-connection-made-by-paramiko.
42. (2024, May 17). Python: Event Monitoring with Watchdogs|by Pravash|Medium. Available online: https://pravash-techie.medium.com/python-event-monitoring-with-watchdogs-86125f946da6.
43. PyTorch (2023, December 29). PyTorch 2.1 Documentation. Available online: https://pytorch.org/docs/stable/index.html.
44. (2024, May 17). NumPy-. Available online: https://numpy.org/.
45. (2024, May 17). CV2-Master Guide OpenCV Made for Python Developers. Available online: https://konfuzio.com/en/cv2/.
46. (2024, May 17). os—Miscellaneous Operating System Interfaces—Python 3.12.3 Documentation. Available online: https://docs.python.org/3/library/os.html.
47. (2024, May 17). The Official YAML Web Site. Available online: https://yaml.org/.
48. (2024, May 17). Matplotlib—Visualization with Python. Available online: https://matplotlib.org/.
49. (2024, May 17). Copy—Shallow and Deep Copy Operations—Python 3.12.3 Documentation. Available online: https://docs.python.org/3/library/copy.html.
50. (2024, May 17). Math—Mathematical Functions—Python 3.12.3 Documentation. Available online: https://docs.python.org/3/library/math.html.
51. (2024, May 21). Coding Gaussian Blur Operation in Python from Scratch|by Rohit Krishna|Medium|Medium. Available online: https://medium.com/@rohit-krishna/coding-gaussian-blur-operation-from-scratch-in-python-f5a9af0a0c0f.
52. (2024, May 21). Implementing the Hough Transform from Scratch|by Alberto Formaggio|Medium. Available online: https://medium.com/@alb.formaggio/implementing-the-hough-transform-from-scratch-09a56ba7316b.
53. (2024, May 17). Truncated Cone Volume Calculator. Available online: https://www.omnicalculator.com/math/truncated-cone-volume.
54. (2024, May 17). mysql-Official Image|Docker Hub. Available online: https://hub.docker.com/_/mysql.
55. (2024, May 21). Docker Hub Container Image Library|App Containerization. Available online: https://hub.docker.com/.
56. (2024, May 21). Java|Oracle. Available online: https://www.java.com/en/.
57. (2024, May 17). Spring Boot. Available online: https://spring.io/projects/spring-boot.
58. (2024, May 17). 2. Service Discovery: Eureka Server. Available online: https://cloud.spring.io/spring-cloud-netflix/multi/multi_spring-cloud-eureka-server.html.