Control method and apparatus for pet feeding, electronic device, and storage medium
By customizing the preset total weight of feeding food and adjusting the number of feeding times according to the actual feeding amount, the problem of food quantity error in the automatic feeding device is solved, and accurate and scientific feeding of pets is achieved.
Patent Information
- Application Number
- PCT/CN2024/120187
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-22
- Filing Date
- 2024-09-20
- Publication Date
- 2025-03-27
AI Technical Summary
The existing automatic feeder requires the user to manually set the food portion, which leads to an error between the actual feeding amount and the expected feeding amount, and may lead to excessive or insufficient feeding of pets.
It provides a control method for pet feeding. Users can customize the preset total weight of feeding food, adjust the number of feeding times by combining the difference between the actual feeding amount and the expected feeding amount, and reduce the error of the amount of food fed per meal.
This achieves more scientific and precise feeding of pets, reducing the problem of excessive or too little food, and ensuring a balanced diet for pets.
Smart Images

Figure CN2024120187_27032025_PF_FP_ABST
Abstract
Description
A pet feeding control method, device, electronic device and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application with application number 202311237221.6 filed with the China Patent Office on September 22, 2023, entitled “A method, device, electronic device and storage medium for controlling pet feeding”. The entire contents of the above application are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of computer control, and in particular to a pet feeding control method, device, electronic device and storage medium. Background Art
[0004] More and more people are keeping pets at home. When the pets are left unattended for a period of time, the owners often choose to use automatic pet feeders to feed the pets.
[0005] Currently, existing automatic feeders require users to manually set the food portion size. Once the setting is completed, the automatic feeder converts the amount into the desired number of servings and then performs the feeding. The automatic feeder uses a stepper motor to rotate the food trough to feed the pet, delivering the entire meal all at once. However, there is often a discrepancy between the actual and expected food amount, which accumulates with each feeding. Furthermore, feeding the pet all at once can cause the pet to overeat.
[0006] Summary of the Invention
[0007] In view of this, the purpose of this application is to provide a pet feeding control method, device, electronic device and storage medium, in which users can customize the preset total weight of food to be fed. When feeding a single meal, the user can adjust the number of feedings in the meal based on the difference between the actual feeding amount and the expected feeding amount of multiple feedings in the meal, thereby reducing the error in the amount of food fed in each meal and avoiding the problem of feeding too much or too little food in each meal, so as to achieve more scientific and accurate feeding of pets.
[0008] In a first aspect, an embodiment of the present application provides a method for controlling feeding of a pet, the method comprising:
[0009] In response to a user's operation of determining the total feeding weight, determining a preset total feeding weight for each meal;
[0010] The first actual total feeding weight of the current meal is calculated based on the first actual feeding weight of each feeding round in the current meal, and the number of feedings in the current meal is adjusted based on the difference between the preset total feeding weight and the first actual total feeding weight, so as to minimize the difference between the preset total feeding weight and the first actual total feeding weight of the current meal.
[0011] Furthermore, after determining the preset total feeding weight of each meal, the control method further includes:
[0012] Determine the preset meal duration for each meal;
[0013] Calculating the number of feeding intervals corresponding to each meal based on the preset total feeding weight and the preset feeding weight corresponding to each feeding round;
[0014] The interval time of each feeding round is calculated based on the preset meal time and the feeding interval number.
[0015] Furthermore, the first actual total feeding weight of the current meal is calculated based on the first actual feeding weight of each feeding round in the current meal, and the number of feeding times in the current meal is adjusted based on the difference between the preset total feeding weight and the first actual total feeding weight, including:
[0016] Calculate the first actual total feeding weight and the average of the first actual feeding weights based on the first actual feeding weight corresponding to the current feeding round and the first actual feeding weight corresponding to each historical feeding round before the current feeding round;
[0017] When the difference between the preset total feeding weight and the first actual total feeding weight is greater than or equal to the first actual feeding weight average, feeding the next feeding round after the interval time, and determining the next feeding round as the current feeding round;
[0018] When the difference between the preset total feeding weight and the first actual total feeding weight is less than the first actual feeding weight average, and the difference between the preset total feeding weight and the first actual total feeding weight is greater than or equal to half of the first actual feeding weight average, then the next feeding round is fed after the interval time, and the next feeding round is determined as the current feeding round;
[0019] When the difference between the preset total feeding weight and the first actual total feeding weight is less than the first actual feeding weight average, and the difference between the preset total feeding weight and the first actual total feeding weight is less than half of the first actual feeding weight average, feeding is stopped, the first actual total feeding weight is recorded, and the feeding weight error of the current meal is recorded based on the preset total feeding weight and the first actual total feeding weight.
[0020] Furthermore, after the feeding of the current meal is completed, the control method further includes:
[0021] For each feeding meal after the current meal, the second actual total feeding weight corresponding to the feeding meal is determined based on the second actual feeding weight of each feeding round in the feeding meal, and the number of feedings in the feeding meal is adjusted based on the meal feeding weight difference corresponding to the feeding meal, so that the difference between the second actual total feeding weight corresponding to the feeding meal and the preset total feeding weight is minimized.
[0022] Further, the meal weight difference corresponding to the feeding meal is determined by the following steps:
[0023] Obtaining a meal weight difference corresponding to at least one historical meal before the feeding meal, and determining the sum of the historical feeding weight differences corresponding to the at least one historical meal as the historical total weight difference;
[0024] The historical total weight difference is added to the feeding weight error of the current meal to obtain the feeding weight difference corresponding to the feeding meal.
[0025] Furthermore, the method of determining the second actual total feeding weight corresponding to the feeding meal based on the second actual feeding weight of each feeding round in the feeding meal, and adjusting the number of feedings in the feeding meal based on the meal feeding weight difference corresponding to the feeding meal, includes:
[0026] Calculate the second actual total feeding weight and the average of the second actual feeding weights based on the second actual feeding weight corresponding to the current feeding round in the feeding meal and the second actual feeding weight corresponding to each historical feeding round before the current feeding round;
[0027] If the meal feeding weight difference is greater than or equal to the second actual feeding weight average, feeding is performed in the next feeding round of the feeding meal after the interval time, and the next feeding round is determined as the current feeding round;
[0028] If the meal feeding weight difference is less than the second actual feeding weight average, then determine whether the meal feeding weight difference is greater than or equal to half of the second actual feeding weight average;
[0029] If yes, then feeding is performed in the next feeding round of the feeding meal after the interval time, and the next feeding round is determined as the current feeding round;
[0030] If not, when the number of times the food has been fed in the feeding meal is greater than or equal to the actual number of times the food is fed corresponding to the feeding meal, the second actual total feeding weight is recorded, and the difference in the current meal feeding weight of the meal is recorded based on the preset total feeding weight and the second actual total feeding weight.
[0031] Furthermore, when the number of times the food has been fed in the feeding meal is less than the actual number of times the food has been fed corresponding to the feeding meal, the control method further includes:
[0032] Determine the difference between the preset total feeding weight and the second actual total feeding weight as a first value, and determine the sum of the meal feeding weight difference and the first value as a second value;
[0033] When the second value is greater than or equal to the second actual feeding weight average, feeding is performed in the next feeding round of the feeding meal after the interval time, and the next feeding round is determined as the current feeding round;
[0034] When the second value is less than the second actual feeding weight average, determining whether the second value is greater than or equal to half of the second actual feeding weight average;
[0035] If yes, then feeding is performed in the next feeding round of the feeding meal after the interval time, and the next feeding round is determined as the current feeding round;
[0036] If not, the sum of the number of times the animal has been fed and 1 is determined as the number of times the animal has been fed, and the determination is continued as to whether the number of times the animal has been fed in the feeding meal is greater than or equal to the actual number of times the animal has been fed corresponding to the feeding meal.
[0037] In a second aspect, an embodiment of the present application further provides a pet feeding control device, the control device comprising:
[0038] a data determination module, configured to determine a preset total feeding weight for each meal in response to a user's operation of determining the total feeding weight;
[0039] The first calculation module is used to calculate the first actual total feeding weight of the current meal based on the first actual feeding weight of each feeding round in the current meal, and adjust the number of feedings in the current meal based on the difference between the preset total feeding weight and the first actual total feeding weight, so as to minimize the difference between the preset total feeding weight and the first actual total feeding weight of the current meal.
[0040] In a third aspect, an embodiment of the present application further provides an electronic device comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the pet feeding control method as described above are performed.
[0041] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, which executes the steps of the pet feeding control method as described above when the computer program is executed by a processor.
[0042] The embodiments of the present application provide a pet feeding control method, device, electronic device and storage medium. First, in response to the user's determination operation of the total feeding weight, a preset total feeding weight of each meal is determined; then, based on the first actual feeding weight of each feeding round in the current meal, the first actual total feeding weight of the current meal is calculated, and based on the difference between the preset total feeding weight and the first actual total feeding weight, the number of feedings in the current meal is adjusted to minimize the difference between the preset total feeding weight and the first actual total feeding weight of the current meal.
[0043] In this application, users can customize the preset total weight of food to be fed. When feeding a single meal, the user can adjust the number of feedings in the meal based on the difference between the actual feeding amount and the expected feeding amount in multiple feedings in the meal, reduce the error in the amount of food fed in each meal, and avoid the problem of feeding too much or too little food in each meal, so as to achieve more scientific and accurate feeding of pets.
[0044] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0046] FIG1 is a flow chart of a pet feeding control method provided by an embodiment of the present application;
[0047] FIG2 is a schematic diagram of a pet feeding control device according to an embodiment of the present application;
[0048] FIG3 is a second structural diagram of a pet feeding control device provided in an embodiment of the present application;
[0049] FIG4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application for which protection is claimed, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work falls within the scope of protection of the present application.
[0051] First, the application scenarios to which this application is applicable are introduced. This application can be applied in the field of computer control.
[0052] More and more people are keeping pets at home. When the pets are left unattended for a period of time, the owners often choose to use automatic pet feeders to feed the pets.
[0053] Research has found that existing automatic feeders require users to manually set the food portion size. Once the setting is completed, the automatic feeder converts the amount into the desired number of servings and then performs the feeding. Automatic feeders use a stepper motor to rotate the food trough to feed the pet, delivering the entire meal all at once. However, there is often a discrepancy between the actual and expected food amounts, which accumulates with each feeding. Furthermore, feeding the entire meal all at once can cause pets to overeat.
[0054] Based on this, an embodiment of the present application provides a pet feeding control method to reduce the error in the amount of food fed in each meal, avoid the problem of feeding too much or too little food in each meal, and achieve more scientific and accurate feeding of pets.
[0055] Please refer to Figure 1, which is a flow chart of a pet feeding control method provided by an embodiment of the present application. As shown in Figure 1, the control method provided by the embodiment of the present application includes:
[0056] S101, in response to the user's operation of determining the total feeding weight, determining the preset total feeding weight of each meal.
[0057] It should be noted that the total feeding weight refers to the weight of food planned to be fed to the pet in each meal. The preset total feeding weight is the total feeding weight defined by the user and can be expressed as A 计 .
[0058] Regarding the above step S101, in the specific implementation, in response to the user's determination operation of the total feeding weight, the preset total feeding weight A of each meal is determined. 计 .
[0059] As an optional embodiment, after determining the preset total feeding weight of each meal, the control method further includes:
[0060] A: Determine the preset meal time for each meal.
[0061] It should be noted that the preset meal time refers to the meal time of the pet in each meal set in advance by the user, which can be expressed as M.
[0062] Regarding the above step A, during specific implementation, in response to the user's operation of determining the meal duration, the preset meal duration M for each meal is determined.
[0063] B: Calculate the number of feeding intervals corresponding to each meal based on the preset total feeding weight and the preset feeding weight corresponding to each feeding round.
[0064] It should be noted that the preset feeding weight refers to the weight of food fed in each feeding round, which can be expressed as P 计 .
[0065] For the above step B, in the specific implementation, based on the preset total feeding weight A 计 The preset feeding weight P corresponding to each feeding round 计 Calculate the number of feeding intervals Q corresponding to each meal. Specifically, the number of feeding intervals is calculated using the following formula: Q = [A 计 / P 计 ].
[0066] C: Calculate the interval time of each feeding round based on the preset meal time and the feeding interval number.
[0067] It should be noted that the interval time refers to the time between the last feeding and the next feeding in each meal, which can be expressed as T.
[0068] Regarding step C above, during specific implementation, the interval time T of each feeding round is calculated based on the preset meal time M determined in step A above and the number of feeding intervals Q determined in step B above. Specifically, the interval time is calculated using the following formula: T = M / (Q - 1), where T = 0 when Q ≤ 1.
[0069] S102, calculating the first actual total feeding weight of the current meal based on the first actual feeding weight of each feeding round in the current meal, and adjusting the number of feedings in the current meal based on the difference between the preset total feeding weight and the first actual total feeding weight, so as to minimize the difference between the preset total feeding weight and the first actual total feeding weight of the current meal.
[0070] It should be noted that the actual feeding weight refers to the actual weight of the food fed each time, expressed as P 实 The actual total feeding weight refers to the total weight of the food fed in the current meal, expressed as A 实 , which is equal to the sum of the actual feeding weights, i.e. A 实 =P 实1 +P 实2 +P 实3 +...+P 实n , where n represents the number of times food is fed in the current meal.
[0071] Regarding the above step S102, in the specific implementation, when feeding a single meal, the first actual feeding weight P of each feeding round in the current meal is obtained. 实 Here, the weight of the food fed can be obtained in real time by the weight sensor. Based on each first actual feeding weight P 实 Calculate the first actual total feeding weight A 实 , and based on the preset total feeding weight A 实 The first actual total feeding weight P 实 The difference between the two adjusts the feeding times in the current meal so that the preset total feeding weight A 实 The first actual total feeding weight P 实 The difference between them is minimized, reducing the error in the amount of food fed in the current meal.
[0072] As an optional embodiment, with respect to the above step S102, the first actual total feeding weight of the current meal is calculated based on the first actual feeding weight of each feeding round in the current meal, and the number of feedings in the current meal is adjusted based on the difference between the preset total feeding weight and the first actual total feeding weight, including:
[0073] Step 1021: Calculate the first actual total feeding weight and the average of the first actual feeding weights based on the first actual feeding weight corresponding to the current feeding round and the first actual feeding weight corresponding to each historical feeding round before the current feeding round.
[0074] It should be noted that the first actual feeding weight average refers to the average amount of food fed each time in this meal, which can be expressed as P 均 .
[0075] For the above-mentioned step 1021, in the specific implementation, first obtain the first actual feeding weight corresponding to each historical feeding round before the current feeding round. Here, when the current feeding round is the first time, there is no historical feeding round, and the first actual feeding weight of the current feeding round is directly used as the first actual total feeding weight, and the first actual feeding weight of the current feeding round is used as the first actual feeding weight average. When the current feeding round is not the first time, based on the first actual feeding weight corresponding to the current feeding round and the first actual feeding weight corresponding to each historical feeding round, the first actual total feeding weight and the first actual feeding weight average are calculated. Specifically, the sum of multiple first actual feeding weights is determined as the first actual total feeding weight, and the first actual total feeding weight divided by the number of feedings in the meal is the first actual feeding weight average.
[0076] Step 1022: When the difference between the preset total feeding weight and the first actual total feeding weight is greater than or equal to the first actual feeding weight average, the next feeding round is fed after the interval time, and the next feeding round is determined as the current feeding round.
[0077] For the above step 1022, in the specific implementation, determine whether the difference between the preset total feeding weight and the first actual total feeding weight is greater than or equal to the first actual feeding weight mean. If it is greater than or equal to, it means that the current actual feeding amount is insufficient and it is necessary to continue feeding, then the next feeding round is fed after the interval time, and the next feeding round is determined as the current feeding round, and the step of returning to execute the above step 1021 based on the first actual feeding weight corresponding to the current feeding round and the first actual feeding weight corresponding to each historical feeding round before the current feeding round, calculating the first actual total feeding weight and the first actual feeding weight mean, and feeding the next round is performed. If it is not greater than or not equal to, it means that the current actual feeding amount is insufficient, but continuing to feed once will exceed the planned feeding amount, which may cause the amount of overfeeding to exceed the amount of underfeeding, then execute the following step 1023.
[0078] Step 1023: When the difference between the preset total feeding weight and the first actual total feeding weight is less than the first actual feeding weight average, and the difference between the preset total feeding weight and the first actual total feeding weight is greater than or equal to half of the first actual feeding weight average, the next feeding round is fed after the interval time, and the next feeding round is determined as the current feeding round.
[0079] Regarding step 1023 above, in a specific implementation, if it is determined that the current actual feeding amount is insufficient, but continuing to feed once will exceed the planned feeding amount, this may cause the amount of overfeeding to exceed the amount of underfeeding, thereby increasing the error between the actual feeding amount and the planned feeding amount. Therefore, the difference between the actual feeding amount and the planned feeding amount after continuing to feed once is calculated, and the difference is compared to see whether it is less than the difference between the current actual feeding amount and the planned feeding amount. That is, it is determined whether the difference between the preset total feeding weight and the first actual total feeding weight is greater than or equal to half of the average of the first actual feeding weight, and at the same time, it is determined whether the difference between the preset total feeding weight and the first actual total feeding weight is greater than or equal to half of the average of the first actual feeding weight. If the difference between the preset total feeding weight and the first actual total feeding weight is less than the average of the first actual feeding weight, and the difference between the preset total feeding weight and the first actual total feeding weight is greater than or equal to half of the average of the first actual feeding weight, then the difference between the actual feeding amount and the planned feeding amount after one further feeding is less than or equal to the difference between the current actual feeding amount and the planned feeding amount, and the actual feeding amount after one further feeding is closer to the preset total feeding weight. Then, the next feeding round is fed after the interval, and the next feeding round is determined as the current feeding round. The process returns to step 1021, where the first actual feeding weight corresponding to the current feeding round and the first actual feeding weight corresponding to each historical feeding round before the current feeding round are used to calculate the first actual total feeding weight and the average of the first actual feeding weights, and the next feeding round is fed.
[0080] Step 1024: When the difference between the preset total feeding weight and the first actual total feeding weight is less than the first actual feeding weight average, and the difference between the preset total feeding weight and the first actual total feeding weight is less than half of the first actual feeding weight average, stop feeding, record the first actual total feeding weight, and record the feeding weight error of the current meal based on the preset total feeding weight and the first actual total feeding weight.
[0081] Regarding the above step 1024, in a specific implementation, when it is determined that the difference between the preset total feeding weight and the first actual total feeding weight is less than the first actual feeding weight average, and the difference between the preset total feeding weight and the first actual total feeding weight is less than half of the first actual feeding weight average, it means that the difference between the actual feeding amount and the planned feeding amount after continuing to feed once is greater than the difference between the current actual feeding amount and the planned feeding amount, and the actual feeding amount is closer to the planned feeding amount if the feeding is not continued once, so the feeding is stopped and the first actual total feeding weight A is recorded. 实, and record the feeding weight error of the current meal based on the preset total feeding weight and the first actual total feeding weight. Specifically, the difference between the preset total feeding weight and the first actual total feeding weight is used as the feeding weight error E 餐 , specific, E 餐 =A 计 -A 实 .
[0082] According to the control method provided in this application, after the feeding of the current meal is completed, the feeding of subsequent meals can be continued according to the preset total feeding weight. After the feeding of the current meal is completed, the control method further includes:
[0083] For each feeding meal after the current meal, the second actual total feeding weight corresponding to the feeding meal is determined based on the second actual feeding weight of each feeding round in the feeding meal, and the number of feedings in the feeding meal is adjusted based on the meal feeding weight difference corresponding to the feeding meal, so that the difference between the second actual total feeding weight corresponding to the feeding meal and the preset total feeding weight is minimized.
[0084] It should be noted that the meal weight difference refers to the error between the preset total feeding weight and the second actual total feeding weight of the feeding meal. Here, when the feeding meal is a meal after the current meal, the meal weight difference is the feeding weight error of the current meal. When the meal is another meal of the day, the meal weight difference is the sum of the meal weight differences of the historical meals before the feeding meal.
[0085] With respect to the above steps, in specific implementation, after the feeding of the current meal is completed, for each feeding meal after the current meal, the second actual total feeding weight corresponding to the feeding meal is determined based on the second actual feeding weight of each feeding round in the feeding meal, and the number of feedings in the feeding meal is adjusted based on the feeding weight difference corresponding to the feeding meal, so that the difference between the second actual total feeding weight corresponding to the feeding meal and the preset total feeding weight is minimized. In this way, when multiple feedings are carried out subsequently, the actual total feeding weight of each meal will be adjusted according to the feeding weight difference generated by the previous meal to ensure that the gap between the actual total feeding weight and the preset total feeding weight is narrowed.
[0086] As an optional embodiment, the meal weight difference corresponding to the feeding meal is determined by the following steps:
[0087] I: Obtain meal feeding weight difference values corresponding to at least one historical meal before the feeding meal, and determine the sum of the historical feeding weight difference values corresponding to the at least one historical meal as the historical total weight difference value.
[0088] II: Add the historical total weight difference to the feeding weight error of the current meal to obtain the feeding weight difference corresponding to the feeding meal.
[0089] In the specific implementation of steps I and II above, first obtain the meal weight difference corresponding to at least one historical meal preceding the current feeding meal, and then determine the total historical weight difference by summing the historical weight difference for at least one historical meal. Then, add the total historical weight difference to the feeding weight error of the current meal to determine the meal weight difference corresponding to the current feeding meal.
[0090] As an optional embodiment, for the above steps, determining the second actual total feeding weight corresponding to the feeding meal based on the second actual feeding weight of each feeding round in the feeding meal, and adjusting the number of feedings in the feeding meal based on the meal feeding weight difference corresponding to the feeding meal, includes:
[0091] (1): Based on the second actual feeding weight corresponding to the current feeding round in the feeding meal, and the second actual feeding weight corresponding to each historical feeding round before the current feeding round, calculate the second actual total feeding weight and the average of the second actual feeding weights.
[0092] Here, the description of the above step (1) can refer to the description of the above step 1021, and can achieve the same technical effect, so it will not be repeated here.
[0093] Here, in a specific implementation, if it is determined that the preset total feeding weight is the same as the second actual total feeding weight, it means that the total amount of food currently fed is the same as the expected total amount of food fed, and there is no need to continue feeding. Then, feeding of that meal is stopped, the second actual total feeding weight is recorded, and the second feeding weight error of that meal is recorded based on the preset total feeding weight and the second actual total feeding weight. If it is determined that the preset total feeding weight is different from the second actual total feeding weight, the following steps are continued.
[0094] (2): If the difference in the weight of the feeding of the meal is greater than or equal to the second actual feeding weight average, the feeding of the next feeding round of the feeding meal is carried out after the interval time, and the feeding round of the next meal is determined as the feeding round of the current meal.
[0095] For the above step (2), when it is specifically implemented, it is determined whether the difference in the weight of the feeding of the meal is greater than or equal to the second actual feeding weight average. When the difference in the weight of the feeding of the meal is greater than or equal to the second actual feeding weight average, it means that the current actual feeding amount is insufficient, then the feeding of the next feeding round of the meal is carried out after the interval time, and the next feeding round is determined as the current feeding round, and the step of returning to the above step (1) to calculate the second actual total feeding weight and the second actual feeding weight average based on the second actual feeding weight corresponding to the current feeding round in the feeding meal and the second actual feeding weight corresponding to each historical feeding round before the current feeding round is carried out, and the feeding of the next feeding round is carried out.
[0096] (3): If the difference in the weight of the meals fed is less than the second average actual feeding weight, determine whether the difference in the weight of the meals fed is greater than or equal to half of the second average actual feeding weight.
[0097] Regarding step (3), when it is determined that the difference in weight of the food fed per meal is less than the second average of the actual food fed weight, continuing to feed once will exceed the planned feeding amount, which may cause the amount of food fed to be more than the amount of food fed to be less, thereby increasing the error between the actual feeding amount and the planned feeding amount. Therefore, it is further determined whether the difference in weight of the food fed per meal is greater than or equal to half of the second average of the actual food fed weight. If so, the following step (4) is executed; if not, the following step (5) is executed.
[0098] (4): If so, the feeding round of the next meal of the feeding meal is carried out after the interval time, and the feeding round of the next meal is determined as the feeding round of the current meal.
[0099] With respect to the above step (4), in the specific implementation, when it is judged that the difference in the weight of the feeding of the meal is greater than or equal to half of the second actual feeding weight average, it means that the difference between the actual feeding amount and the planned feeding amount after continuing to feed once is less than or equal to the difference between the current actual feeding amount and the planned feeding amount, and the actual feeding amount after continuing to feed once is closer to the preset total feeding weight. Then, the feeding of the next feeding round in the meal of the meal is carried out after the interval time, and the next feeding round in the meal is determined as the current feeding round in the meal, and the step of calculating the second actual total feeding weight and the second actual feeding weight average based on the second actual feeding weight corresponding to the current feeding round in the feeding meal and the second actual feeding weight corresponding to each historical feeding round in the meal before the current feeding round in the above step (1) is returned.
[0100] (5): If not, when the number of times the food has been fed in the feeding meal is greater than or equal to the actual number of times the food is fed corresponding to the feeding meal, the second actual total food weight is recorded, and the difference in the current meal food weight of the meal is recorded based on the preset total food weight and the second actual total food weight.
[0101] In the specific implementation of the above step (5), when the difference in the weight of the food fed in a meal is less than half of the average of the second actual feeding weight, the number of times the food has been fed in the meal is obtained. When the number of times the food has been fed in the meal is greater than or equal to the actual feeding number corresponding to the meal, it means that there is no need to continue feeding the current meal, and the feeding of the meal is stopped, the second actual total feeding weight is recorded, and the difference in the weight of the food fed in the current meal of the meal is recorded based on the preset total feeding weight and the second actual total feeding weight.
[0102] As an optional embodiment, when the number of times the food has been fed in the feeding meal is less than the actual number of times the food has been fed corresponding to the feeding meal, the control method further includes:
[0103] a: The difference between the preset total feeding weight and the second actual total feeding weight is determined as a first value, and the sum of the meal feeding weight difference and the first value is determined as a second value.
[0104] For the above step a, when the number of times the food has been fed in the feeding meal is less than the actual number of times the food has been fed corresponding to the feeding meal, it indicates that the food needs to be fed further, and the difference between the preset total feeding weight and the second actual total feeding weight is determined as the first value, and the sum of the difference in the feeding weight of the meal and the first value is determined as the second value, that is, the second value is expressed as A. 计 -A 实 +E 餐总 .
[0105] b: When the second value is greater than or equal to the second actual feeding weight average, feeding is performed in the next feeding round of the feeding meal after the interval time, and the next feeding round is determined as the current feeding round.
[0106] For the above step b, when it is specifically implemented, it is determined whether the second value is greater than or equal to the second actual feeding weight average. When the second value is greater than or equal to the second actual feeding weight average, it means that the accumulated error of each meal is greater than or equal to the actual feeding amount of one feeding. Although the error value of the meal increases when feeding once more, the overall error value of multiple meals decreases. Therefore, the next feeding is performed, and the feeding round of the next meal of the meal is fed after the interval time, and the feeding round of the next meal is determined as the feeding round of the current meal, and the step of calculating the second actual total feeding weight and the second actual feeding weight average based on the second actual feeding weight corresponding to the feeding round of the current meal in the feeding meal and the second actual feeding weight corresponding to each historical feeding round before the current meal in step (1) is returned.
[0107] c: When the second value is less than the second actual feeding weight average, determine whether the second value is greater than or equal to half of the second actual feeding weight average.
[0108] For the above step c, in the specific implementation, when it is judged that the second value is less than the second actual feeding weight average, it means that the accumulated error of each meal is less than 1 actual feeding amount. If the feeding is continued once, the planned feeding amount will be exceeded, which may cause the overfeeding amount to exceed the underfeeding amount, thereby increasing the error between the actual feeding amount and the planned feeding amount. Therefore, the difference between the actual feeding amount and the planned feeding amount after continuing to feed once is calculated, and the value is compared to see whether it is less than the difference between the current actual feeding amount and the planned feeding amount, and it is determined whether the second value is greater than or equal to half of the second actual feeding weight average.
[0109] d: If yes, then the feeding round of the next meal of the feeding meal is carried out after the interval time, and the feeding round of the next meal is determined as the feeding round of the current meal.
[0110] For the above step d, in the specific implementation, if yes, it means that the difference between the actual feeding amount of the most recent meals after continuing to feed once and the planned feeding amount is less than or equal to the difference between the current actual feeding amount and the planned feeding amount, and the actual feeding amount of the most recent meals after continuing to feed once is closer to the planned feeding amount, then the next feeding round of the meal of the meal is fed after the interval time, and the next feeding round of the meal is determined as the feeding round of the current meal, and the step of returning to execute the above step (1) of calculating the second actual total feeding weight and the average of the second actual feeding weights based on the second actual feeding weight corresponding to the current feeding round of the feeding meal and the second actual feeding weight corresponding to each historical feeding round of the meal before the current feeding round.
[0111] e: If not, the sum of the number of times the animal has been fed and 1 is determined as the number of times the animal has been fed, and the determination is continued as to whether the number of times the animal has been fed in the feeding meal is greater than or equal to the actual number of times the animal has been fed corresponding to the feeding meal.
[0112] For the above step e, in the specific implementation, if no, it means that the difference between the actual feeding amount and the planned feeding amount of the most recent meals after continuing to feed one portion is greater than the difference between the current actual feeding amount and the planned feeding amount. If one portion is not continued to be fed, the actual feeding amount of the most recent meals is closer to the planned feeding amount. Therefore, the sum of the number of times the feeding has been done and 1 is determined as the number of times the feeding has been done, and it is further determined whether the number of times the feeding has been done in the feeding meal is greater than or equal to the actual number of times the feeding meal corresponds to the feeding meal.
[0113] The pet feeding control method provided in the embodiment of the present application first determines the preset total feeding weight of each meal in response to the user's determination operation of the total feeding weight; then, calculates the first actual total feeding weight of the current meal based on the first actual feeding weight of each feeding round in the current meal, and adjusts the number of feedings in the current meal based on the difference between the preset total feeding weight and the first actual total feeding weight, so as to minimize the difference between the preset total feeding weight and the first actual total feeding weight of the current meal.
[0114] In this application, users can customize the preset total weight of food to be fed. When feeding a single meal, the user can adjust the number of feedings in the meal based on the difference between the actual feeding amount and the expected feeding amount in multiple feedings in the meal, reduce the error in the amount of food fed in each meal, and avoid the problem of feeding too much or too little food in each meal, so as to achieve more scientific and accurate feeding of pets.
[0115] Please refer to Figures 2 and 3. Figure 2 is a schematic diagram of the structure of a pet feeding control device provided in an embodiment of the present application. Figure 3 is a schematic diagram of the structure of a pet feeding control device provided in an embodiment of the present application. As shown in Figure 2, the control device 200 includes:
[0116] The data determination module 201 is configured to determine a preset total feeding weight for each meal in response to a user's operation of determining the total feeding weight;
[0117] The first calculation module 202 is used to calculate the first actual total feeding weight of the current meal based on the first actual feeding weight of each feeding round in the current meal, and adjust the number of feedings in the current meal based on the difference between the preset total feeding weight and the first actual total feeding weight, so as to minimize the difference between the preset total feeding weight and the first actual total feeding weight of the current meal.
[0118] Furthermore, as shown in FIG3 , the control device 300 further includes an interval time determination module 203. After determining the preset total feeding weight of each meal, the interval time determination module 203 is configured to:
[0119] Determine the preset meal duration for each meal;
[0120] Calculating the number of feeding intervals corresponding to each meal based on the preset total feeding weight and the preset feeding weight corresponding to each feeding round;
[0121] The interval time of each feeding round is calculated based on the preset meal time and the feeding interval number.
[0122] Furthermore, when the first calculation module 202 is used to calculate the first actual total feeding weight of the current meal based on the first actual feeding weight of each feeding round in the current meal, and adjust the number of feedings in the current meal based on the difference between the preset total feeding weight and the first actual total feeding weight, the first calculation module 202 is also used to:
[0123] Calculate the first actual total feeding weight and the average of the first actual feeding weights based on the first actual feeding weight corresponding to the current feeding round and the first actual feeding weight corresponding to each historical feeding round before the current feeding round;
[0124] When the difference between the preset total feeding weight and the first actual total feeding weight is greater than or equal to the first actual feeding weight average, feeding the next feeding round after the interval time, and determining the next feeding round as the current feeding round;
[0125] When the difference between the preset total feeding weight and the first actual total feeding weight is less than the first actual feeding weight average, and the difference between the preset total feeding weight and the first actual total feeding weight is greater than or equal to half of the first actual feeding weight average, then the next feeding round is fed after the interval time, and the next feeding round is determined as the current feeding round;
[0126] When the difference between the preset total feeding weight and the first actual total feeding weight is less than the first actual feeding weight average, and the difference between the preset total feeding weight and the first actual total feeding weight is less than half of the first actual feeding weight average, feeding is stopped, the first actual total feeding weight is recorded, and the feeding weight error of the current meal is recorded based on the preset total feeding weight and the first actual total feeding weight.
[0127] Furthermore, referring to FIG3 , the control device 200 further includes a second calculation module 204. After the feeding of the current meal is completed, the second calculation module 204 is configured to:
[0128] For each feeding meal after the current meal, the second actual total feeding weight corresponding to the feeding meal is determined based on the second actual feeding weight of each feeding round in the feeding meal, and the number of feedings in the feeding meal is adjusted based on the meal feeding weight difference corresponding to the feeding meal, so that the difference between the second actual total feeding weight corresponding to the feeding meal and the preset total feeding weight is minimized.
[0129] Furthermore, the second calculation module 204 is further configured to determine the meal weight difference corresponding to the feeding meal by the following steps:
[0130] Obtaining a meal weight difference corresponding to at least one historical meal before the feeding meal, and determining the sum of the historical feeding weight differences corresponding to the at least one historical meal as the historical total weight difference;
[0131] The historical total weight difference is added to the feeding weight error of the current meal to obtain the feeding weight difference corresponding to the feeding meal.
[0132] Furthermore, when the second calculation module 204 is used to determine the second actual total feeding weight corresponding to the feeding meal based on the second actual feeding weight of each feeding round in the feeding meal, and adjust the number of feedings in the feeding meal based on the meal feeding weight difference corresponding to the feeding meal, the second calculation module 204 is also used to:
[0133] Calculate the second actual total feeding weight and the average of the second actual feeding weights based on the second actual feeding weight corresponding to the current feeding round in the feeding meal and the second actual feeding weight corresponding to each historical feeding round before the current feeding round;
[0134] If the meal feeding weight difference is greater than or equal to the second actual feeding weight average, feeding is performed in the next feeding round of the feeding meal after the interval time, and the next feeding round is determined as the current feeding round;
[0135] If the meal feeding weight difference is less than the second actual feeding weight average, then determine whether the meal feeding weight difference is greater than or equal to half of the second actual feeding weight average;
[0136] If yes, then feeding is performed in the next feeding round of the feeding meal after the interval time, and the next feeding round is determined as the current feeding round;
[0137] If not, when the number of times the food has been fed in the feeding meal is greater than or equal to the actual number of times the food is fed corresponding to the feeding meal, the second actual total feeding weight is recorded, and the difference in the current meal feeding weight of the meal is recorded based on the preset total feeding weight and the second actual total feeding weight.
[0138] Furthermore, when the number of times the food has been fed in the feeding meal is less than the actual number of times the food has been fed corresponding to the feeding meal, the second calculation module 204 is further configured to:
[0139] Determine the difference between the preset total feeding weight and the second actual total feeding weight as a first value, and determine the sum of the meal feeding weight difference and the first value as a second value;
[0140] When the second value is greater than or equal to the second actual feeding weight average, feeding is performed in the next feeding round of the feeding meal after the interval time, and the next feeding round is determined as the current feeding round;
[0141] When the second value is less than the second actual feeding weight average, determining whether the second value is greater than or equal to half of the second actual feeding weight average;
[0142] If yes, then feeding is performed in the next feeding round of the feeding meal after the interval time, and the next feeding round is determined as the current feeding round;
[0143] If not, the sum of the number of times the animal has been fed and 1 is determined as the number of times the animal has been fed, and the determination is continued as to whether the number of times the animal has been fed in the feeding meal is greater than or equal to the actual number of times the animal has been fed corresponding to the feeding meal.
[0144] Please refer to Figure 4 , which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As shown in Figure 4 , the electronic device 400 includes a processor 410 , a memory 420 , and a bus 430 .
[0145] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 through the bus 430. When the machine-readable instructions are executed by the processor 410, the steps of the pet feeding control method in the method embodiment shown in Figure 1 above can be executed. The specific implementation method can be found in the method embodiment and will not be repeated here.
[0146] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the pet feeding control method in the method embodiment shown in FIG1 above can be executed. The specific implementation method can be found in the method embodiment and will not be repeated here.
[0147] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0148] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. There may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interface, indirect coupling or communication connection of devices or units, which may be electrical, mechanical or other forms.
[0149] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0150] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0151] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0152] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The scope of protection of the present application is not limited thereto. Although the present application has been described in detail with reference to the above-mentioned embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-mentioned embodiments within the technical scope disclosed in the present application, or perform equivalent replacements for some of the technical features thereof. These modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims. Industrial Applicability
[0153] The present application provides a pet feeding control method, device, electronic device and storage medium, which can adjust the number of feeding meals and reduce the error in the amount of food fed at each meal, so as to achieve more scientific and accurate feeding of pets.
[0154] In addition, it can be understood that the pet feeding control method, device, electronic device and storage medium of the present application are reproducible and can be widely used in the field of computer control.
Claims
1. A method for controlling feeding of a pet, characterized in that: The control method comprises: In response to the user's operation of determining the total feeding weight, determining a preset total feeding weight for each meal; The first actual total feeding weight of the current meal is calculated based on the first actual feeding weight of each feeding round in the current meal, and the number of feeding times in the current meal is adjusted based on the difference between the preset total feeding weight and the first actual total feeding weight, so as to minimize the difference between the preset total feeding weight and the first actual total feeding weight of the current meal.
2. The control method according to claim 1, characterized in that: After determining the preset total feeding weight of each meal, the control method further includes: Determine the preset meal duration for each meal; Calculate the number of feeding intervals corresponding to each meal based on the preset total feeding weight and the preset feeding weight corresponding to each feeding round; The interval time of each feeding round is calculated based on the preset meal time and the feeding interval number.
3. The control method according to claim 2, characterized in that: The calculating the first actual total feeding weight of the current meal based on the first actual feeding weight of each feeding round in the current meal, and adjusting the number of feedings in the current meal based on the difference between the preset total feeding weight and the first actual total feeding weight, includes: Calculate the first actual total feeding weight and the average of the first actual feeding weight based on the first actual feeding weight corresponding to the current feeding round and the first actual feeding weight corresponding to each historical feeding round before the current feeding round; When the difference between the preset total feeding weight and the first actual total feeding weight is greater than or equal to the first actual feeding weight average, feeding the next feeding round is performed after the interval time, and the next feeding round is determined as the current feeding round; When the difference between the preset total feeding weight and the first actual total feeding weight is less than the first actual feeding weight average, and the difference between the preset total feeding weight and the first actual total feeding weight is greater than or equal to half of the first actual feeding weight average, the next feeding round is fed after the interval time, and the next feeding round is determined as the current feeding round; When the difference between the preset total feeding weight and the first actual total feeding weight is less than the first actual feeding weight average, and the difference between the preset total feeding weight and the first actual total feeding weight is less than half of the first actual feeding weight average, feeding is stopped, the first actual total feeding weight is recorded, and the feeding weight error of the current meal is recorded based on the preset total feeding weight and the first actual total feeding weight.
4. The control method according to claim 3, characterized in that: After the feeding of the current meal is finished, the control method further includes: For each feeding meal after the current meal, a second actual total feeding weight corresponding to the feeding meal is determined based on the second actual feeding weight of each feeding round in the feeding meal, and the number of feedings in the feeding meal is adjusted based on the meal feeding weight difference corresponding to the feeding meal, so that the difference between the second actual total feeding weight corresponding to the feeding meal and the preset total feeding weight is minimized.
5. The control method according to claim 4, characterized in that: Determine the meal weight difference corresponding to the feeding meal by following the steps below: Obtaining a meal feeding weight difference corresponding to at least one historical meal before the feeding meal, and determining the sum of the historical feeding weight differences corresponding to the at least one historical meal as the historical total weight difference; The historical total weight difference is added to the feeding weight error of the current meal to obtain the feeding weight difference corresponding to the feeding meal.
6. The control method according to claim 5, characterized in that: The method of determining a second actual total feeding weight corresponding to the feeding meal based on the second actual feeding weight of each feeding round in the feeding meal, and adjusting the number of feeding times in the feeding meal based on the meal feeding weight difference corresponding to the feeding meal, comprises: Calculate the second actual total feeding weight and the average of the second actual feeding weight based on the second actual feeding weight corresponding to the current feeding round in the feeding meal and the second actual feeding weight corresponding to each historical feeding round in the meal before the current feeding round in the feeding meal; If the meal feeding weight difference is greater than or equal to the second actual feeding weight average, feeding is performed in the next feeding round of the feeding meal after the interval time, and the next feeding round in the meal is determined as the current feeding round in the meal; If the meal feeding weight difference is less than the second actual feeding weight average, then determine whether the meal feeding weight difference is greater than or equal to half of the second actual feeding weight average; If yes, then feeding is performed in the next feeding round of the feeding meal after the interval time, and the next feeding round is determined as the current feeding round; If not, when the number of times the food has been fed in the feeding meal is greater than or equal to the actual number of times the food is fed corresponding to the feeding meal, the second actual total feeding weight is recorded, and the difference in the current meal feeding weight of the meal is recorded based on the preset total feeding weight and the second actual total feeding weight.
7. The control method according to claim 6, characterized in that: When the number of times the food has been fed in the feeding meal is less than the actual number of times the food is fed corresponding to the feeding meal, the control method further includes: Determine the difference between the preset total feeding weight and the second actual total feeding weight as a first value, and determine the sum of the meal feeding weight difference and the first value as a second value; When the second value is greater than or equal to the second actual feeding weight average, after the interval time, Feeding the next feeding round of the feeding meal, and determining the next feeding round as the current feeding round; When the second value is less than the second actual feeding weight average, determining whether the second value is greater than or equal to one half of the second actual feeding weight average; If yes, then feeding is performed in the next feeding round of the feeding meal after the interval time, and the next feeding round is determined as the current feeding round; If not, the sum of the number of times the food has been fed and 1 is determined as the number of times the food has been fed, and it is further determined whether the number of times the food has been fed in the feeding meal is greater than or equal to the actual number of times the food has been fed corresponding to the feeding meal.
8. A pet feeding control device, characterized in that: The control device comprises: A data determination module, for determining a preset total feeding weight for each meal in response to a user's determination operation on the total feeding weight; The first calculation module is used to calculate the first actual total feeding weight of the current meal based on the first actual feeding weight of each feeding round in the current meal, and adjust the number of feedings in the current meal based on the difference between the preset total feeding weight and the first actual total feeding weight, so as to minimize the difference between the preset total feeding weight and the first actual total feeding weight of the current meal.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the pet feeding control method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the pet feeding control method according to any one of claims 1 to 7 are executed.
Citation Information
Patent Citations
Pet feeding method and device, electronic equipment and storage medium
CN116030378A
Interactive pet feeding method, device and equipment and readable storage medium
CN116508670A
Feeding control method and device of pet feeder and computer readable storage medium
CN116602227A
Pet feeding control method and device, electronic equipment and storage medium
CN117223626A
Automatic meal feeder
KR1020170121458A