Intelligent pet management method and system based on Raspberry Pi and storage medium
Through the Raspberry Pi intelligent pet management system, data is obtained using sensors and cameras, health reports are generated and real-time feedback is solved, and pet environment and health monitoring problems are improved, and the intelligence and security of pet management are improved.
Patent Information
- Application Number
- CN202411345365.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2024-11-12
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
People are unable to monitor the pet's environment and health at all times, which makes it difficult for the owner to feel at ease when the pet is unfavorable or injured.
The intelligent pet management system based on Raspberry Pi is adopted to obtain data through ambient temperature sensor, infrared temperature sensor and camera, combine the data analysis module to identify pet types and behaviors, generate health reports, and feed back to the mobile terminal in real time through the communication module.
It realizes comprehensive monitoring of pet health status and behavior, promptly alerts and reminds users to take measures, improves the intelligence and convenience of pet management, and ensures the safety and health of pets when unattended.
Smart Images

Figure CN118923562A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent monitoring, and in particular to an intelligent pet management method, system and storage medium based on Raspberry Pi. Background Art
[0002] As living standards improve, more and more people choose to adopt pets to improve their quality of life. However, since people cannot always be with their pets, many problems arise. For example, it is difficult for people to accurately observe the health of pets with the naked eye, and there are situations where pets are placed in an environment that is not conducive to them or other situations where they may be injured due to negligence. In addition, due to work reasons, people cannot always be with their pets, which also makes it common to leave pets alone at home. However, this makes the owner feel very uneasy. Summary of the invention
[0003] In view of this, the present invention provides a smart pet management method, system and storage medium based on Raspberry Pi to solve the existing problem of being unable to monitor the pet's environment and the pet's own health at all times.
[0004] The present invention provides an intelligent pet management method based on Raspberry Pi, and the method comprises: accessing a Raspberry Pi hardware platform module to start and control the Raspberry Pi; using an ambient temperature sensor module of the Raspberry Pi to obtain first data; using an infrared temperature sensor module of the Raspberry Pi to obtain second data; using a camera module of the Raspberry Pi to obtain a behavior video of a pet; using a data analysis module of the Raspberry Pi to identify the type of the pet, analyze the first data and the second data, and parse the behavior video to obtain third data; using a data fusion module of the Raspberry Pi to fuse the first data, the second data and the third data, and generate a health report of the pet; and using a communication module of the Raspberry Pi to send the health report of the pet to a mobile terminal for feedback.
[0005] Optionally, the method includes: the first data includes the temperature of the pet's environment; the second data includes the temperature of the pet's body; the third data includes normal behavior data and abnormal behavior data of the pet, the normal behavior data includes the pet's regular movement and stop behaviors, and the abnormal behavior data includes the pet's abnormal movement and stop behaviors and injury status.
[0006] Optionally, the method includes: judging whether the first data exceeds the range of a first preset temperature interval, and when the first data does not exceed the range of the first preset temperature interval, the first data is marked as an abnormal state; judging whether the second data exceeds the range of a second preset temperature interval, and when the second data does not exceed the range of the second preset temperature interval, the second data is marked as an abnormal state; judging whether the third data is the normal behavior data or the abnormal behavior data, and if the third data is the abnormal behavior data, the third data is marked as an abnormal state.
[0007] Optionally, the method includes: when any one of the first data, the second data and the third data is marked as an abnormal state, stopping generating the health report of the pet, and directly sending the first data, the second data or the third data in the abnormal state to the mobile terminal for feedback.
[0008] Optionally, the method includes: the pet types include reptiles, fish, birds and mammals.
[0009] The technical solution of the present invention also provides an intelligent pet management system based on Raspberry Pi, the system comprising: a Raspberry Pi hardware platform module, used to start and control the Raspberry Pi, the Raspberry Pi hardware platform module is a 4B model Raspberry Pi, the 4B model Raspberry Pi is configured with a corresponding operation method and software package, and has multiple interfaces, the interfaces are used to connect the following modules: an ambient temperature sensor module, used to obtain first data, the first data includes the temperature of the environment in which the pet is located; an infrared temperature sensor module, used to obtain second data, the second data includes the temperature of the pet's body; a camera module, used to obtain a behavior video of the pet; a data analysis module, used to identify the type of the pet, and analyze the first data and the second data, and parse the behavior video to obtain third data; the third data includes normal behavior data and abnormal behavior data of the pet, the normal behavior data includes the regular movement and stop behavior of the pet, and the abnormal behavior data includes the abnormal movement and stop behavior and the injury status of the pet; a data fusion module, used to fuse the first data, the second data and the third data, and generate a health report of the pet; a communication module, used to send the health report of the pet to a mobile terminal for feedback.
[0010] Optionally, the system includes: the ambient temperature sensor module is a DHT22 temperature and humidity sensor, connected through the GPIO interface of the 4B model Raspberry Pi; the infrared temperature sensor module is an MLX90614 infrared body temperature sensor, connected through the I2C interface of the 4B model Raspberry Pi; the camera module is a camera compatible with the 4B model Raspberry Pi, connected through the GSI interface of the 4B model Raspberry Pi; the data analysis module includes a lightweight YOLO v8 model integrated with MobileNet for identifying the type of pet, and also includes a program written in Python for reading the first data and the second data collected by the DHT22 temperature and humidity sensor and the MLX90614 infrared body temperature sensor, and the lightweight YOLO v8 model integrated with MobileNet The v8 model is also used to control the camera module to capture the video of the pet; the data fusion module also includes a data judgment submodule, which is used to judge whether the first data exceeds the range of the first preset temperature interval. When the first data does not exceed the range of the first preset temperature interval, the first data is marked as an abnormal state; judge whether the second data exceeds the range of the second preset temperature interval. When the second data does not exceed the range of the second preset temperature interval, the second data is marked as an abnormal state; judge whether the third data is the normal behavior data or the abnormal behavior data. If the third data is the abnormal behavior data, the third data is marked as an abnormal state. The communication module is connected to the mobile terminal via WIFI or Bluetooth.
[0011] Optionally, the system includes: the data judgment submodule is also used to stop generating the pet's health report when any one of the first data, the second data and the third data is marked as an abnormal state, and directly send the first data, the second data or the third data in the abnormal state to the mobile terminal for feedback.
[0012] Optionally, the system includes: the mobile terminal is a mobile phone, a tablet computer or a laptop computer.
[0013] The technical solution of the present invention also provides a non-volatile computer-readable storage medium for storing computer-readable programs or instructions. When the program or instructions are executed by a processor, the steps in the above-mentioned Raspberry Pi-based smart pet management method can be implemented.
[0014] By using the above-mentioned intelligent pet management method, system and storage medium based on Raspberry Pi of the present invention, users can realize comprehensive monitoring of the health status and behavior of pets on mobile terminals, and view the current environment and behavior video of pets in real time. When the pet is in an abnormal environment or moves abnormally, the user will receive an alarm on the mobile terminal, thereby promptly reminding the user to take necessary measures, greatly improving the intelligence and convenience of pet management, and ensuring the safety and health of pets when no one is looking after them. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 This is a flow chart of a smart pet management method based on Raspberry Pi according to an embodiment of the present invention; Figure 2 Flow chart of a smart pet management system based on Raspberry Pi according to an embodiment of the present invention DETAILED DESCRIPTION
[0017] As mentioned in the background technology, in the prior art, since people cannot always accompany their pets, there are situations where pets are placed in an environment that is not conducive to them or other situations that may cause them to be injured due to negligence. In order to solve the above problems, the embodiments of the present invention provide a smart pet management method, system and storage medium based on Raspberry Pi.
[0018] Please refer to Figure 1 , is a flow chart of a smart pet management method based on Raspberry Pi according to an embodiment of the present invention, the method comprising: Step S1, connecting the Raspberry Pi hardware platform module to start and control the Raspberry Pi.
[0019] The English name of the Raspberry Pi mentioned in step S1 is Raspberry Pi, referred to as RPi, also known as RasPi. It is an ARM-based microcomputer motherboard with an SD / MicroSD card as a memory hard disk. There are 1 / 2 / 4 USB interfaces and a 10 / 100 Ethernet interface around the card motherboard (Type A has no network port, Type B has an interface), which can be connected to a keyboard, a mouse and a network cable. It also has a TV output interface for video analog signals and an HDMI high-definition video output interface. All of the above components are integrated on a motherboard that is only slightly larger than a credit card. It has all the basic functions of a PC. Just connect a TV and a keyboard to perform functions such as electronic spreadsheets, word processing, playing games, and playing high-definition videos. The Raspberry Pi model involved in the embodiment of the present invention is the Raspberry Pi 4B model.
[0020] Step S2: using the ambient temperature sensor module of the Raspberry Pi to obtain first data.
[0021] The ambient temperature sensor module mentioned in step S2 is used to obtain the first data, which corresponds to the temperature of the environment in which the pet is located. Obtaining the temperature of the environment in which the pet is currently located has a great impact on the health of the pet itself. For example, reptile pets do not like an environment with too low a temperature, while mammal pets do not like an environment with too high a temperature. For example, if a snake pet is left in a room with too low a temperature and the pet owner forgets to turn on the device to maintain the room temperature, the too low temperature will pose a threat to the health of the snake pet; for another example, if a cat pet is left in a room with too high a temperature and the pet owner forgets to turn on the air conditioner to cool it down, the cat pet will suffer from heatstroke.
[0022] Step S3: using the infrared temperature sensor module of the Raspberry Pi to obtain second data.
[0023] The infrared temperature sensor module mentioned in step S3 is used to obtain the second data, which corresponds to the temperature of the pet's body, that is, the pet's current body temperature. The pet's current body temperature can also reflect the pet's own health status. For example: if the infrared temperature sensor module obtains that the cat's body temperature is 39.5 degrees or above, it can be determined that the cat is currently in a fever state.
[0024] Step S4: Use the camera module of the Raspberry Pi to obtain the behavior video of the pet.
[0025] The pet's behavior video obtained in step S4 can also reflect the pet's own health status. For example, the camera module captures the cat's vomiting behavior, or the cat is bleeding or lame due to hitting the corner of furniture.
[0026] Step S5: using the data analysis module of the Raspberry Pi to identify the type of the pet, analyze the first data and the second data, and parse the behavior video to obtain third data.
[0027] In step S5, the following steps are also included: judging whether the first data exceeds the range of the first preset temperature interval, when the first data does not exceed the range of the first preset temperature interval, the first data is marked as an abnormal state; judging whether the second data exceeds the range of the second preset temperature interval, when the second data does not exceed the range of the second preset temperature interval, the second data is marked as an abnormal state; judging whether the third data is normal behavior data or abnormal behavior data, if the third data is the abnormal behavior data, the third data is marked as an abnormal state.
[0028] In step S5, the data analysis module of the Raspberry Pi will first identify the type of pet and classify the pets captured by the camera module. The pet types include reptiles, fish, birds and mammals. Of course, due to the easy editing of the Raspberry Pi, the pet types can be added and changed later. When the data analysis module identifies the type of animal, it will call out the first preset temperature interval corresponding to the first data and the second temperature interval corresponding to the second data according to the identified animal type. For example, when the identified pet type is a cat, which is a mammalian pet, the room temperature that cats prefer is 10-30 degrees Celsius, and their normal body temperature is 37.8-39.4 degrees Celsius. The data analysis module will set the room temperature of 10-30 degrees Celsius as the first preset temperature range, and the cat's normal body temperature of 37.8-39.4 degrees Celsius as the second preset temperature range. When the temperature of the pet's environment corresponding to the first data exceeds the first preset temperature range, the first data is marked as an abnormal state; when the pet's current body temperature corresponding to the second data exceeds the second preset temperature range, the second data is marked as an abnormal state.
[0029] The data analysis module of the Raspberry Pi will analyze the cat video transmitted back by the camera module of the Raspberry Pi. The data analysis module will parse the cat video to obtain the third data. The third data includes the normal behavior data of the cat, corresponding to the normal movement and stop behaviors of the cat, such as normal running, jumping, licking fur, eating, drinking water and other behaviors. The third data also includes the abnormal movement and stop behaviors and injury status of the cat, such as the cat exhibiting abnormal behaviors such as vomiting, or being in an injured state such as bleeding or lameness.
[0030] Step S6: using the data fusion module of the Raspberry Pi to fuse the first data, the second data and the third data, and generate a health report of the pet.
[0031] In step S6, after the data analysis module of the Raspberry Pi analyzes the first data, the second data, and the third data, the analyzed data results will be sent to the data fusion module of the Raspberry Pi. If the first data, the second data, and the third data are not marked as abnormal, the data analysis module will make a pet health report based on the three normal data to reassure the pet owner. For example: the current environment of the cat pet is 25 degrees Celsius, the body temperature is 38 degrees Celsius, and there is no abnormal behavior. The pet's health report will let the pet owner know the current status of the pet and determine whether the pet is currently healthy.
[0032] However, if any one of the first data, the second data or the third data is marked as abnormal, it means that the pet's current condition requires intervention or treatment from the pet owner. At this time, the data fusion module of the Raspberry Pi will stop generating the pet's health report, and will generate an alarm for the first data, the second data or the third data with abnormal status, waiting to be sent to the pet owner's mobile terminal.
[0033] Step S7: Use the communication module of the Raspberry Pi to send the health report of the pet to the mobile terminal for feedback.
[0034] In step S7, the pet health report obtained in step S6 is sent to the pet owner's mobile terminal via WIFI or Bluetooth via the communication module of the Raspberry Pi, or an alarm is sent to the pet owner's mobile terminal in the same way. The alarm can be a text message notification, or the pet owner can send a sound alarm after downloading the associated software with the Raspberry Pi on his mobile terminal.
[0035] An embodiment of the present invention also provides a smart pet management system based on Raspberry Pi, referring to Figure 2 As shown, the system includes: The Raspberry Pi hardware platform module 100 is used to start and control the Raspberry Pi. The Raspberry Pi hardware platform module is a 4B model Raspberry Pi. The 4B model Raspberry Pi is configured with corresponding operation methods and software packages and has multiple interfaces. The interfaces are used to connect the following modules: The environment temperature sensor module 101 is used to obtain first data, where the first data includes the temperature of the environment where the pet is located.
[0036] In an embodiment of the present invention, the ambient temperature sensor module 101 is a DHT22 temperature and humidity sensor, which is connected through the GPIO interface of the 4B model Raspberry Pi to obtain the ambient temperature of the pet. If necessary, the ambient humidity of the pet can also be obtained through editing on the Raspberry Pi.
[0037] The infrared temperature sensor module 102 is used to obtain second data, where the second data includes the body temperature of the pet.
[0038] In the embodiment of the present invention, the infrared temperature sensor module 102 is an MLX90614 infrared body temperature sensor, which is connected through the I2C interface of the 4B model Raspberry Pi to obtain the body temperature of the pet.
[0039] The camera module 103 is used to obtain the behavior video of the pet.
[0040] In an embodiment of the present invention, the camera module 103 is a camera compatible with the 4B model Raspberry Pi, and can be an official camera of the Raspberry Pi or any camera compatible with the Raspberry Pi. The camera is connected via the GSI interface of the 4B model Raspberry Pi.
[0041] The data analysis module 104 is used to identify the type of the pet, analyze the first data and the second data, and parse the behavior video to obtain third data; the third data includes normal behavior data and abnormal behavior data of the pet, the normal behavior data includes the regular movement and stop behavior of the pet, and the abnormal behavior data includes the abnormal movement and stop behavior and injury status of the pet.
[0042] In an embodiment of the present invention, the data analysis module includes a lightweight YOLO v8 model integrated with MobileNet, which is used to identify the type of the pet, and also includes a program written in Python for reading the first data and the second data collected by the DHT22 temperature and humidity sensor and the MLX90614 infrared body temperature sensor, and the lightweight YOLO v8 model integrated with MobileNet is also used to control the camera module to capture the video of the pet; The data fusion module 105 is used to fuse the first data, the second data and the third data, and generate a health report of the pet.
[0043] In an embodiment of the present invention, the data fusion module also includes a data judgment submodule, which is used to judge whether the first data exceeds the range of a first preset temperature interval. When the first data does not exceed the range of the first preset temperature interval, the first data is marked as an abnormal state; judge whether the second data exceeds the range of a second preset temperature interval. When the second data does not exceed the range of the second preset temperature interval, the second data is marked as an abnormal state; judge whether the third data is the normal behavior data or the abnormal behavior data. If the third data is the abnormal behavior data, the third data is marked as an abnormal state.
[0044] The communication module 106 is used to send the health report of the pet to the mobile terminal for feedback.
[0045] In the embodiment of the present invention, the mobile terminal may be a mobile phone, a tablet computer or a laptop computer.
[0046] In addition, the Raspberry Pi-based smart pet management system provided in the embodiment of the present application also includes a power management module to ensure the power requirements of the sensor and camera modules. The power management module includes a 5V 3A lithium polymer battery for providing a stable power supply for the Raspberry Pi, the sensor and the camera module.
[0047] In the embodiment of the present invention, the intelligent pet management system based on Raspberry Pi is used to execute the intelligent pet management method based on Raspberry Pi. The technical solutions are essentially the same and will not be repeated here.
[0048] An embodiment of the present application also provides a non-volatile computer-readable storage medium for storing computer-readable programs or instructions. When the program or instructions are executed by a processor, the steps in the above-mentioned Raspberry Pi-based smart pet management method can be implemented.
[0049] Using the Raspberry Pi-based intelligent pet management method, system and storage medium described in the above embodiments, users can achieve comprehensive monitoring of the health status and behavior of pets on mobile terminals, and view the current environment and behavior video of the pet in real time. When the pet is in an abnormal environment or moves abnormally, the user will receive an alarm on the mobile terminal, thereby promptly reminding the user to take necessary measures, greatly improving the intelligence and convenience of pet management, and ensuring the safety and health of pets when no one is looking after them. At the same time, based on Raspberry Pi, it has good scalability and portability, and can easily add other sensor modules or expand functions.
[0050] The present invention has been analyzed in detail through the above specific implementation methods, and its structure and technical implementation are not intended to limit the present invention. Further research and enrichment can be carried out without departing from the spirit and principle of the present invention. Therefore, the scope of protection of the present invention shall be subject to the claims.
Claims
1. A smart pet management method based on Raspberry Pi, It is characterized in that The method comprises: Accessing the Raspberry Pi hardware platform module to start and control the Raspberry Pi; Using the ambient temperature sensor module of the Raspberry Pi to obtain first data; Using the infrared temperature sensor module of the Raspberry Pi to obtain second data; Use the camera module of the Raspberry Pi to obtain the pet's behavior video; Using the data analysis module of the Raspberry Pi, identifying the type of the pet, analyzing the first data and the second data, and parsing the behavior video to obtain third data; Using the data fusion module of the Raspberry Pi, the first data, the second data and the third data are fused, and a health report of the pet is generated; Use the communication module of the Raspberry Pi to send the health report of the pet to the mobile terminal for feedback.
2. The method according to claim 1, It is characterized in that The method comprises: The first data includes the temperature of the environment where the pet is located; The second data includes the temperature of the pet's body; The third data includes normal behavior data and abnormal behavior data of the pet, wherein the normal behavior data includes the regular movement and stop behaviors of the pet, and the abnormal behavior data includes the abnormal movement and stop behaviors and injury status of the pet.
3. The method according to claim 2, It is characterized in that The method comprises: Determining whether the first data exceeds a range of a first preset temperature interval, and when the first data does not exceed the range of the first preset temperature interval, the first data is marked as an abnormal state; Determining whether the second data exceeds a range of a second preset temperature interval, and when the second data does not exceed the range of the second preset temperature interval, the second data is marked as an abnormal state; It is determined whether the third data is the normal behavior data or the abnormal behavior data. If the third data is the abnormal behavior data, the third data is marked as an abnormal state.
4. The method according to any one of claims 1 to 3, It is characterized in that The method comprises: When any one of the first data, the second data and the third data is marked as abnormal, the generation of the pet's health report is stopped, and the first data, the second data or the third data in the abnormal state is directly sent to the mobile terminal for feedback and an alarm is issued.
5. The method according to claim 1, It is characterized in that The method comprises: The pet species include reptiles, fish, birds and mammals.
6. An intelligent pet management system based on Raspberry Pi, It is characterized in that The system comprises: The Raspberry Pi hardware platform module is used to start and control the Raspberry Pi. The Raspberry Pi hardware platform module is a 4B model Raspberry Pi. The 4B model Raspberry Pi is configured with corresponding operation methods and software packages and has multiple interfaces. The interfaces are used to connect the following modules: An environmental temperature sensor module, used for acquiring first data, wherein the first data includes the temperature of the environment where the pet is located; an infrared temperature sensor module, used for acquiring second data, wherein the second data includes the body temperature of the pet; A camera module, used to obtain a behavior video of the pet; A data analysis module, used to identify the type of the pet, analyze the first data and the second data, and parse the behavior video to obtain third data; the third data includes normal behavior data and abnormal behavior data of the pet, the normal behavior data includes the regular movement and stop behavior of the pet, and the abnormal behavior data includes the abnormal movement and stop behavior and injury status of the pet; A data fusion module, used for fusing the first data, the second data and the third data, and generating a health report of the pet; The communication module is used to send the health report of the pet to the mobile terminal for feedback.
7. The system according to claim 6, It is characterized in that The system comprises: The ambient temperature sensor module is a DHT22 temperature and humidity sensor, which is connected via the GPIO interface of the 4B model Raspberry Pi; The infrared temperature sensor module is an MLX90614 infrared body temperature sensor, which is connected via the I2C interface of the 4B model Raspberry Pi; The camera module is a camera compatible with the 4B model Raspberry Pi, and is connected via the GSI interface of the 4B model Raspberry Pi; The data analysis module includes a lightweight YOLO v8 model integrated with MobileNet, which is used to identify the type of the pet, and also includes a program written in Python for reading the first data and the second data collected by the DHT22 temperature and humidity sensor and the MLX90614 infrared body temperature sensor, and the lightweight YOLO v8 model integrated with MobileNet is also used to control the camera module to capture a video of the pet; The data fusion module also includes a data judgment submodule, which is used to judge whether the first data exceeds the range of a first preset temperature interval. When the first data does not exceed the range of the first preset temperature interval, the first data is marked as an abnormal state; judge whether the second data exceeds the range of a second preset temperature interval. When the second data does not exceed the range of the second preset temperature interval, the second data is marked as an abnormal state; judge whether the third data is the normal behavior data or the abnormal behavior data. If the third data is the abnormal behavior data, the third data is marked as an abnormal state.
8. The communication module is connected to the mobile terminal via WIFI or Bluetooth.
9. The system according to claim 7, It is characterized in that The system comprises: The data judgment submodule is also used to stop generating the pet's health report when any one of the first data, the second data and the third data is marked as an abnormal state, and directly send the first data, the second data or the third data in the abnormal state to the mobile terminal for feedback and to issue an alarm.
10. The system according to claim 8, It is characterized in that The system comprises: The mobile terminal is a mobile phone, a tablet computer or a laptop computer.
11. A non-volatile computer-readable storage medium, It is characterized in that Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps of the Raspberry Pi-based smart pet management method described in any one of claims 1 to 5.
