Development of a Prototype Solution for Reducing Soup Waste in an Institutional Canteen
Abstract
:1. Introduction
2. Prototype
2.1. Architecture
2.2. Hardware Component
2.2.1. Raspberry Pi and Peripherals
2.2.2. Server
2.3. Software Component
2.3.1. Dataset
2.3.2. ResNet-50 and Faster R-CNN Models
2.3.3. Software Configurations on IoT Devices
2.3.4. Ubuntu Local Server
- R is the radius of the base of the original cone (bottom surface);
- r is the radius of the top surface;
- h is the height of our truncated cone.
2.3.5. Database and Web Application
3. Validation Tests
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Gustavsson, J.; Cederberg, C.; Sonesson, U.; van Otterdijk, R.; Meybeck, A. Global Food Losses and Food Waste: Extent, Causes and Prevention; Food and Agriculture Organisation of the United Nations: Rome, Italy, 2011; Volume 365. [Google Scholar]
- Instituto Nacional de Estatística. Desperdício Alimentar-Resultados e Perspetivas; Instituto Nacional de Estatística: Lisbon, Portugal, 2022. [Google Scholar]
- Tribunal de Contas Europeu. 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: Luxembourg, 2016. [Google Scholar]
- United Nations. Ensure Sustainable Consumption and Production Patterns. Available online: https://sdgs.un.org/goals/goal12 (accessed on 5 October 2023).
- Correia, A.; Aidos, C.; Caldeia, J.M.L.P.; Soares, V.N.G.J. Using Computer Vision for Reducing Food Waste in an Institutional Canteen. Waste, Submitted, pending review.
- Raspberry Pi. Available online: https://www.raspberrypi.com/ (accessed on 21 May 2024).
- Enterprise Open Source and Linux|Ubuntu. Available online: https://ubuntu.com/ (accessed on 21 May 2024).
- MySQL. Available online: https://www.mysql.com/ (accessed on 21 May 2024).
- Docker Desktop: The #1 Containerization Tool for Developers|Docker. Available online: https://www.docker.com/products/docker-desktop/ (accessed on 17 May 2024).
- Microsserviços e o Impacto na Escalabilidade de Aplicações. Available online: https://imaginedone.com.br/artigos/inovacao-e-tecnologia/microsservicos/ (accessed on 21 May 2024).
- 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 (accessed on 18 May 2024).
- Buy a Raspberry Pi Camera Module 3–Raspberry Pi. Available online: https://www.raspberrypi.com/products/camera-module-3/ (accessed on 18 May 2024).
- Infrared Reflective Sensor-Waveshare Wiki. Available online: https://www.waveshare.com/wiki/Infrared_Reflective_Sensor (accessed on 18 May 2024).
- Camera-Raspberry Pi Documentation. Available online: https://www.raspberrypi.com/documentation/accessories/camera.html (accessed on 9 May 2024).
- 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 (accessed on 18 May 2024).
- Raspberry Pi hardware-Raspberry Pi Documentation. Available online: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html (accessed on 18 May 2024).
- Raspberry Pi 5-gpiod vs. RPi.GPIO-Raspberry Pi Forums. Available online: https://forums.raspberrypi.com/viewtopic.php?t=359742 (accessed on 18 May 2024).
- Using a IR Reflective Sensor-Raspberry Pi Forums. Available online: https://forums.raspberrypi.com/viewtopic.php?t=181544 (accessed on 9 May 2024).
- 2. Basic Recipes—Gpiozero 2.0.1 Documentation. Available online: https://gpiozero.readthedocs.io/en/stable/recipes.html#pin-numbering (accessed on 18 May 2024).
- Oracle VM VirtualBox. Available online: https://www.virtualbox.org/ (accessed on 18 May 2024).
- Instituto Politécnico de Castelo Branco. Available online: https://www.ipcb.pt/ (accessed on 21 May 2024).
- Roboflow: Computer Vision Tools for Developers and Enterprises. Available online: https://roboflow.com/ (accessed on 15 May 2024).
- Soup-Bowl-Dataset Dataset > Overview. Available online: https://universe.roboflow.com/sopa/soup-bowl-dataset (accessed on 4 June 2024).
- Géron, A. Hands-On Machine Learning with Scikit-Learn, Keras and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems, 3rd ed.; O’Reilly Media: Sebastopol, CA, USA, 2022. [Google Scholar]
- Alzubaidi, L.; Zhang, J.; Humaidi, A.J.; Al-Dujaili, A.; Duan, Y.; Al-Shamma, O.; Santamaría, J.; Fadhel, M.A.; Al-Amidie, M.; Farhan, L. Review of deep learning: Concepts, CNN architectures, challenges, applications, future directions. J. Big Data 2021, 8, 53. [Google Scholar] [CrossRef] [PubMed]
- Maurício, J.; Domingues, I.; Bernardino, J. Comparing Vision Transformers and Convolutional Neural Networks for Image Classification: A Literature Review. Appl. Sci. 2023, 13, 5521. [Google Scholar] [CrossRef]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. arXiv 2015, arXiv:1506.01497. Available online: http://arxiv.org/abs/1506.01497 (accessed on 21 May 2024). [CrossRef] [PubMed]
- Google Colab. Available online: https://colab.research.google.com/drive/1thXa8nF65Iywbcbm4LaZ_KDD1bkIvi9O?usp=sharing (accessed on 9 May 2024).
- 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 (accessed on 9 May 2024).
- Personal Cloud Storage & File Sharing Platform-Google. Available online: https://www.google.com/drive/ (accessed on 24 May 2024).
- GitHub: Let’s Build from Here · GitHub. Available online: https://github.com/ (accessed on 24 May 2024).
- Overfitting and Underfitting in Machine Learning|SuperAnnotate. Available online: https://www.superannotate.com/blog/overfitting-and-underfitting-in-machine-learning (accessed on 21 May 2024).
- Ying, X. An Overview of Overfitting and its Solutions. J. Phys. Conf. Ser. 2019, 1168, 022022. [Google Scholar] [CrossRef]
- 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 (accessed on 21 May 2024).
- 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 (accessed on 21 May 2024).
- Mudivedu, V. 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 (accessed on 18 January 2024).
- Raspberry Pi OS–Raspberry Pi. Available online: https://www.raspberrypi.com/software/ (accessed on 9 May 2024).
- 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 (accessed on 17 May 2024).
- rpi-gpio-example/example.c at master · krinkinmu/rpi-gpio-example. Available online: https://github.com/krinkinmu/rpi-gpio-example/blob/master/example.c (accessed on 9 May 2024).
- 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 (accessed on 9 May 2024).
- 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 (accessed on 9 May 2024).
- Python: Event Monitoring with Watchdogs|by Pravash|Medium. Available online: https://pravash-techie.medium.com/python-event-monitoring-with-watchdogs-86125f946da6 (accessed on 17 May 2024).
- PyTorch. PyTorch 2.1 Documentation. Available online: https://pytorch.org/docs/stable/index.html (accessed on 29 December 2023).
- NumPy-. Available online: https://numpy.org/ (accessed on 17 May 2024).
- CV2-Master Guide OpenCV Made for Python Developers. Available online: https://konfuzio.com/en/cv2/ (accessed on 17 May 2024).
- os—Miscellaneous Operating System Interfaces—Python 3.12.3 Documentation. Available online: https://docs.python.org/3/library/os.html (accessed on 17 May 2024).
- The Official YAML Web Site. Available online: https://yaml.org/ (accessed on 17 May 2024).
- Matplotlib—Visualization with Python. Available online: https://matplotlib.org/ (accessed on 17 May 2024).
- Copy—Shallow and Deep Copy Operations—Python 3.12.3 Documentation. Available online: https://docs.python.org/3/library/copy.html (accessed on 17 May 2024).
- Math—Mathematical Functions—Python 3.12.3 Documentation. Available online: https://docs.python.org/3/library/math.html (accessed on 17 May 2024).
- 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 (accessed on 21 May 2024).
- Implementing the Hough Transform from Scratch|by Alberto Formaggio|Medium. Available online: https://medium.com/@alb.formaggio/implementing-the-hough-transform-from-scratch-09a56ba7316b (accessed on 21 May 2024).
- Truncated Cone Volume Calculator. Available online: https://www.omnicalculator.com/math/truncated-cone-volume (accessed on 17 May 2024).
- mysql-Official Image|Docker Hub. Available online: https://hub.docker.com/_/mysql (accessed on 17 May 2024).
- Docker Hub Container Image Library|App Containerization. Available online: https://hub.docker.com/ (accessed on 21 May 2024).
- Java|Oracle. Available online: https://www.java.com/en/ (accessed on 21 May 2024).
- Spring Boot. Available online: https://spring.io/projects/spring-boot (accessed on 17 May 2024).
- 2. Service Discovery: Eureka Server. Available online: https://cloud.spring.io/spring-cloud-netflix/multi/multi_spring-cloud-eureka-server.html (accessed on 17 May 2024).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Correia, A.; Aidos, C.; Caldeira, J.M.L.P.; Soares, V.N.G.J. Development of a Prototype Solution for Reducing Soup Waste in an Institutional Canteen. Appl. Sci. 2024, 14, 5729. https://doi.org/10.3390/app14135729
Correia A, Aidos C, Caldeira JMLP, Soares VNGJ. Development of a Prototype Solution for Reducing Soup Waste in an Institutional Canteen. Applied Sciences. 2024; 14(13):5729. https://doi.org/10.3390/app14135729
Chicago/Turabian StyleCorreia, Ana, Clara Aidos, João M. L. P. Caldeira, and Vasco N. G. J. Soares. 2024. "Development of a Prototype Solution for Reducing Soup Waste in an Institutional Canteen" Applied Sciences 14, no. 13: 5729. https://doi.org/10.3390/app14135729
APA StyleCorreia, A., Aidos, C., Caldeira, J. M. L. P., & Soares, V. N. G. J. (2024). Development of a Prototype Solution for Reducing Soup Waste in an Institutional Canteen. Applied Sciences, 14(13), 5729. https://doi.org/10.3390/app14135729