Next Article in Journal
Design, Manufacturing and Mechanical Evaluation of a 3D Printed Customized Wrist-Hand Orthosis for the Treatment of De Quervain Tenosynovitis
Previous Article in Journal
Effect of the Process Parameters on the Mechanical Properties of 3D-Printed Specimens Fabricated by Material Extrusion 3D Printing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Design and Development of a Smart Pet Feeder with IoT and Deep Learning †

by
Oscar E. Castillo-Arceo
,
Raúl U. Renteria-Flores
and
Pedro C. Santana-Mancilla
*
School of Telematics, Universidad de Colima, Colima 28040, Mexico
*
Author to whom correspondence should be addressed.
Presented at the 11th International Electronic Conference on Sensors and Applications (ECSA-11), 26–28 November 2024; Available online: https://sciforum.net/event/ecsa-11.
Eng. Proc. 2024, 82(1), 63; https://doi.org/10.3390/ecsa-11-20487
Published: 26 November 2024

Abstract

:
The well-being of pets is essential for owners. This project developed an automatic pet feeder that leverages Internet of Things technology and deep learning to address feeding challenges. The feeder integrates sensors, including a weight sensor for portion control, a camera for pet identification, an ultrasonic sensor for proximity detection, and a servo motor for dispensing food. A microcontroller for real-time monitoring and processing controls these components. Based on YOLOv5 and trained on a dataset of dog images, the DL model ensures accurate pet recognition and customized feeding. Results show that the system effectively identifies pets and dispenses appropriate portions based on weight, ensuring precise and personalized feeding. The sensor data fusion provides reliable information about pet characteristics. Overall, the smart feeder offers a convenient and efficient solution for managing pet nutrition, improving pet health, and increasing owner convenience.

1. Introduction

Proper nutrition and care for pets are critical for their health and well-being. Some pets, like dogs and cats, are considered family members [1,2]; ensuring they receive the correct food in appropriate quantities is essential [3]. However, busy schedules often lead to inconsistent feeding practices, resulting in issues such as underfeeding or overfeeding [4]. Overfeeding can cause obesity, while underfeeding can lead to malnutrition, both of which have significant health implications. Pet food costs are significant for many families, making efficient and controlled feeding practices even more important [5].
To address these challenges, we aim to develop an automatic pet feeder that uses Internet of Things (IoT) technology and deep learning (DL) techniques. The device is designed to dispense appropriate food portions, enhancing pet nutrition management and overall health. By automating the feeding process, the system ensures that pets receive the right amount of food, regardless of the owner’s availability. This approach contributes to improving pets’ health and well-being and offers pet owners convenience and peace of mind.
The development of smart devices for pet feeding has been a growing area of interest due to the need to improve efficiency and effectiveness in pet feeding. For example, the automatic feeder proposed by Birha et al. [6] uses IoT technology to enable remote control via a web page, incorporating ultrasonic sensors, a real-time clock, and a weight sensor for precise dispensing.
Similarly, Vrishanka et al. [7] developed an automated feeder that uses IoT to adjust feeding times and food quantity and monitor food levels, providing a solution to overfeeding and underfeeding small pets.
Additionally, integrating deep learning techniques has proven effective in enhancing monitoring and control systems, as demonstrated by the work of Jain et al. [8], who developed an IoT-based food dispensing system to train pets to eat at scheduled times, monitoring their feeding patterns.
This project aims to design and develop a smart pet feeder that combines IoT and deep learning technologies to automatically and accurately dispense food. This project addresses common issues such as overfeeding and underfeeding and enhances convenience for pet owners, ensuring their pets receive the necessary care even in their absence.
The contributions of this paper are twofold:
It contributes to improving the health and well-being of pets by ensuring they receive the appropriate amount of food every time, using sensors to customize feeding quantities based on the specific size of each pet.
It provides convenience to pet owners by enabling the feeding process in their absence.

2. Materials and Methods

The methodology employed in this project was the SCRUM framework [9,10], an agile approach for developing systems involving both software and hardware components. SCRUM is characterized by rapid iterations, known as sprints, each with specific objectives, allowing for continuous improvement and adaptation. This methodology was chosen for its inherent flexibility, allowing the delivery of functional prototypes within short periods and fostering constant feedback and iteration. Our group has previously used it successfully [11].

2.1. System Design

The system design integrates multiple sensors to ensure accurate and efficient food dispensing. The core components include the Tecneu HX711 weight sensor, an HEJO camera for pet identification, the Tecneu HC-SR04 ultrasonic sensor, and a Tecneu servo motor. All components were purchased from Colima, Mexico, via the Mexican Mercado Libre website.
Figure 1 illustrates the IoT system architecture for the system.
The HX711 is a highly precise, low-cost integrated weight measurement sensor commonly used in applications requiring weight measurement, such as electronic scales, inventory control systems, and automatic dispensers [12]. In this project, the HX711 sensor is crucial for determining the pet’s weight to determine the size and amount of food to be dispensed, as well as the weight of the food in the container to ensure accurate portion control.
The camera’s role in our smart feeder is to detect whether the approaching pet is a dog. Through image processing, the system can identify the distinctive features of a dog to perform classification. It helps in providing specific feeding to this species.
The HC-SR04 ultrasonic sensor is widely used for measuring distances using ultrasonic waves [13]. This sensor detects the pet’s proximity to the feeder, ensuring that food is only dispensed when a dog is near, preventing wastage.
A servo motor is an electromechanical device that controls and generates movement in specific applications [14]. In our project, the servo motor controls the dispensing mechanism to release the appropriate amount of food based on the dog’s weight.
The Arduino.CC Arduino Mega 2560, Colima, Mexico, was selected as the microcontroller for the system due to its versatility and extensive input/output capabilities [15]. The Mega 2560 is based on the ATmega2560 microcontroller, providing 54 digital I/O pins, 16 analog inputs, and four hardware serial ports, making it ideal for handling multiple sensors and actuators simultaneously. In this project, the Mega 2560 managed the integration of the HX711 weight sensor, the HC-SR04 ultrasonic sensor, the camera module, and the servo motor, coordinating the food dispensing mechanism efficiently.
In addition to the integration of sensors for weight and proximity measurement, the camera plays a crucial role in identifying whether the approaching animal is a dog. The camera utilizes a dataset for training a deep learning model capable of recognizing dog breeds through image processing. By leveraging this training, the system can accurately classify the animal based on its visual features, ensuring that the food dispenser is activated only for dogs. This capability is critical for providing targeted feeding and preventing misidentification. Combining all the sensors and machine vision enables the smart pet feeder to operate efficiently and deliver species-specific food.

2.2. Data Acquisition

We utilized the Stanford Dogs Dataset [16] to train and evaluate the model. This dataset, publicly available on Kaggle, contains over 20,000 images of 120 dog breeds. It provides a diverse and extensive dataset for breed recognition and classification tasks. The availability and well-documented structure of the dataset make it ideal for computer vision projects. It allows for the accurate training of deep neural networks to identify breed-specific characteristics.

2.3. Dataset Annotation

As the next step, the dataset was annotated using labelImg [17], a widely used open-source tool for creating bounding boxes in image datasets. The annotation process involved manually labeling the images and ensuring accurate bounding box placement for each dog in the dataset. The annotated data were then organized into a structured format with separate directories for training and validation.

2.4. Model Training

The project uses a pet identification model based on YOLOv5, a cutting-edge deep learning model known for its speed and accuracy in object detection [18,19]. YOLOv5 was chosen for its real-time image processing efficiency, making it perfect for applications requiring quick vision identification. The model was trained using the pre-annotated dataset, resulting in high accuracy in recognizing dogs of various breeds.

3. Results

Figure 2 shows the prototype developed.
Testing demonstrated that the system effectively identified pets, dispensed appropriate food portions based on weight, and provided real-time monitoring. The YOLOv5 model consistently identified dogs with high precision, as seen in Figure 3.
The integration and fusion of sensors provided reliable data on food consumption and pet weight, optimizing feeding. The weight sensor accurately measured the dispensed food portions, ensuring consistency in feeding. The ultrasonic sensor effectively detected the presence of pets, preventing unauthorized access to the food. This combination of sensors ensured that the system operated efficiently and minimized food wastage.

4. Discussion

The automatic pet feeder’s capability for precise measurement and real-time data processing ensures that pets receive the correct amount of food, preventing issues related to overfeeding or underfeeding. This system addresses common problems of inconsistent feeding practices and offers a reliable solution for busy pet owners.
However, there are areas for improvement and future development. For instance, the system could learn from the pets’ eating patterns and adjust feeding schedules and portion sizes over time. The project also opens opportunities for expanding functionalities, such as adding different pet identifications like cats.

5. Conclusions

The automatic pet feeder successfully achieved its objectives by providing a convenient, reliable, and adaptable solution for pet nutrition management.
The synergy between the computer vision system and sensor fusion significantly enhanced the smart pet feeder’s overall efficiency, demonstrating the feasibility of integrating IoT and deep learning technologies in real-world applications, like promoting pet well-being through precise and automated feed management.

Author Contributions

Conceptualization, O.E.C.-A. and R.U.R.-F.; methodology, P.C.S.-M.; software, O.E.C.-A. and R.U.R.-F.; validation, P.C.S.-M.; formal analysis, P.C.S.-M.; investigation, O.E.C.-A. and R.U.R.-F.; writing—original draft preparation, O.E.C.-A. and R.U.R.-F.; writing—review and editing, P.C.S.-M.; project administration, P.C.S.-M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

The animal study protocol was approved by the Graduate Studies Coordination of the School of Telematics.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original data presented in the study are openly available in Kaggle at https://www.kaggle.com/datasets/jessicali9530/stanford-dogs-dataset (accessed on 6 June 2024).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. McConnell, A.R.; Paige Lloyd, E.; Humphrey, B.T. We Are Family: Viewing Pets as Family Members Improves Wellbeing. Anthrozoös 2019, 32, 459–470. [Google Scholar] [CrossRef]
  2. Cohen, S.P. Can Pets Function as Family Members? West. J. Nurs. Res. 2002, 24, 621–638. [Google Scholar] [CrossRef]
  3. Swanson, K.S.; Carter, R.A.; Yount, T.P.; Aretz, J.; Buff, P.R. Nutritional Sustainability of Pet Foods. Adv. Nutr. 2013, 4, 141–150. [Google Scholar] [CrossRef] [PubMed]
  4. Milburn, J. Pet Food: Ethical Issues. In Encyclopedia of Food and Agricultural Ethics; Thompson, P.B., Kaplan, D.M., Eds.; Springer: Dordrecht, The Netherlands, 2016; pp. 1–7. ISBN 978-94-007-6167-4. [Google Scholar]
  5. Koppel, K. Sensory Analysis of Pet Foods. J. Sci. Food Agric. 2014, 94, 2148–2153. [Google Scholar] [CrossRef] [PubMed]
  6. Birha, P.; Ingle, R.; Tajne, S.; Mule, P.; Pandey, A.; Kukekar, S.; Kadu, A. Design and Development of IOT Based Pet Feeder. Int. J. Innov. Eng. Sci. 2022, 7, 137–140. [Google Scholar] [CrossRef]
  7. Vrishanka, P.N.; Prabhakar, P.; Shet, D.; Rupali, K. Automated Pet Feeder using IoT. In Proceedings of the 2021 IEEE International Conference on Mobile Networks and Wireless Communications (ICMNWC), Tumkur, Karnataka, India, 3–4 December 2021; pp. 1–5. [Google Scholar]
  8. Jain, E.; Badwaik, S.; Khirwadkar, S.; Thakare, S.; Uike, M.; Chandankhede, P.H. Design of Smart Pet Food Dispenser Using Embedded System. In Proceedings of the 2023 International Conference on Emerging Smart Computing and Informatics (ESCI), Pune, India, 1–3 March 2023; pp. 1–5. [Google Scholar]
  9. Azanha, A.; Argoud, A.R.T.T.; Camargo Junior, J.B.D.; Antoniolli, P.D. Agile Project Management with Scrum: A Case Study of a Brazilian Pharmaceutical Company IT Project. Int. J. Manag. Proj. Bus. 2017, 10, 121–142. [Google Scholar] [CrossRef]
  10. Mariño, S.I.; Alfonzo, P.L. Implementación de SCRUM En El Diseño Del Proyecto Del Trabajo Final de Aplicación. Sci. Technol. 2014, 19, 413–418. [Google Scholar]
  11. Ramos-García, O.I.; Vuelvas-Alvarado, A.A.; Osorio-Pérez, N.A.; Ruiz-Torres, M.Á.; Estrada-González, F.; Gaytan-Lugo, L.S.; Fajardo-Flores, S.B.; Santana-Mancilla, P.C. An IoT Braille Display towards Assisting Visually Impaired Students in Mexico. Eng. Proc. 2022, 27, 11. [Google Scholar] [CrossRef]
  12. Itikala, V. Arduino Weighing Machine Using Load Cell and HX711 Module. Bachelor’s Thesis, Kakatiya Institute of Technology and Science, Telangana, India, 2021. [Google Scholar]
  13. Garcia-Ruiz, M.A.; Mancilla, P.C.S. Creative DIY Microcontroller Projects with C a Practical Guide to Building PIC and STM32 Microcontroller Board Applications with C Programming; Packt Publishing: Birmingham, UK, 2021; ISBN 978-1-80056-952-2. [Google Scholar]
  14. Sakama, S.; Tanaka, Y.; Kamimura, A. Characteristics of Hydraulic and Electric Servo Motors. Actuators 2022, 11, 11. [Google Scholar] [CrossRef]
  15. Kusriyanto, M.; Putra, B.D. Smart Home Using Local Area Network (LAN) Based Arduino Mega 2560. In Proceedings of the 2016 2nd International Conference on Wireless and Telematics (ICWT), Yogyaakarta, Indonesia, 1–2 August 2016; pp. 127–131. [Google Scholar]
  16. Khosla, A.; Jayadevaprakash, N.; Yao, B.; Fei-Fei, L. Novel Dataset for Fine-Grained Image Categorization. In Proceedings of the First Workshop on Fine-Grained Visual Categorization, IEEE Computer Vision and Pattern Recognition (CVPR) 2011, Colorado Springs, CO, USA, 21–23 June 2011. [Google Scholar]
  17. LabelImg. Available online: https://github.com/HumanSignal/labelImg (accessed on 12 May 2024).
  18. Jiang, P.; Ergu, D.; Liu, F.; Cai, Y.; Ma, B. A Review of Yolo Algorithm Developments. Procedia Comput. Sci. 2022, 199, 1066–1073. [Google Scholar] [CrossRef]
  19. Lan, W.; Dang, J.; Wang, Y.; Wang, S. Pedestrian Detection Based on YOLO Network Model. In Proceedings of the 2018 IEEE International Conference on Mechatronics and Automation (ICMA), Changchun, China, 5–8 August 2018; pp. 1547–1551. [Google Scholar]
Figure 1. The IoT system architecture for the smart pet feeder.
Figure 1. The IoT system architecture for the smart pet feeder.
Engproc 82 00063 g001
Figure 2. Smart pet feeder prototype.
Figure 2. Smart pet feeder prototype.
Engproc 82 00063 g002
Figure 3. Smart pet feeder vision capabilities.
Figure 3. Smart pet feeder vision capabilities.
Engproc 82 00063 g003
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.

Share and Cite

MDPI and ACS Style

Castillo-Arceo, O.E.; Renteria-Flores, R.U.; Santana-Mancilla, P.C. Design and Development of a Smart Pet Feeder with IoT and Deep Learning. Eng. Proc. 2024, 82, 63. https://doi.org/10.3390/ecsa-11-20487

AMA Style

Castillo-Arceo OE, Renteria-Flores RU, Santana-Mancilla PC. Design and Development of a Smart Pet Feeder with IoT and Deep Learning. Engineering Proceedings. 2024; 82(1):63. https://doi.org/10.3390/ecsa-11-20487

Chicago/Turabian Style

Castillo-Arceo, Oscar E., Raúl U. Renteria-Flores, and Pedro C. Santana-Mancilla. 2024. "Design and Development of a Smart Pet Feeder with IoT and Deep Learning" Engineering Proceedings 82, no. 1: 63. https://doi.org/10.3390/ecsa-11-20487

APA Style

Castillo-Arceo, O. E., Renteria-Flores, R. U., & Santana-Mancilla, P. C. (2024). Design and Development of a Smart Pet Feeder with IoT and Deep Learning. Engineering Proceedings, 82(1), 63. https://doi.org/10.3390/ecsa-11-20487

Article Metrics

Back to TopTop