A pet appetite evaluation method, device, equipment and storage medium
Calculating the appetite index of pet food through the neural network model solves the problem of pet owners lacking data when selecting food, enables precise selection and feeding control of pet food, and improves the quality of pet food.
Patent Information
- Application Number
- CN202011530763.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-22
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-12-22
AI Technical Summary
Pet owners lack accurate data when choosing pet food and cannot effectively understand their pets' appetite preferences for the selected food, resulting in inaccurate feeding.
By obtaining the basic characteristics of target food and pets, the neural network model is used to calculate the pet's food appetite index, and pet appetite evaluation methods and devices are provided to achieve precise selection and feeding control of pet food.
Pet owners can understand their pets' appetite preferences for selected foods, conduct precise food selection and feeding management, and improve the quality and health of their pets' diet.
Smart Images

Figure CN112598116B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of pet management, and in particular to a pet appetite evaluation method, device, equipment and storage medium. Background Art
[0002] With the development of society and the improvement of living standards, many families have treated animals such as cats and dogs as family members and companions. Consumption upgrades have brought about the rapid development of pet-related consumer industries. There are a variety of products for pets' clothing, food, housing, transportation, etc. However, this has led to an increase in diseases such as obesity in pets, as well as difficulties in choosing pet food.
[0003] At present, the choice of pet food is mostly based on the personal experience and preferences of pet owners. Without accurate and effective data support, pet owners do not understand their pets' appetite for the selected food. Therefore, a method is needed to effectively evaluate the appetite of pets based on food characteristics and pet characteristics, so as to achieve accurate control of pet feeding. Summary of the invention
[0004] In view of the deficiencies in the prior art, the present invention provides a pet appetite evaluation method, device, equipment and storage medium, which, when used, can obtain the pet's appetite index for food, making it easier for pet owners to understand their pets' appetite preferences for the selected pet food and select pet food.
[0005] In a first aspect, the present invention provides a method for evaluating pet appetite, comprising:
[0006] Obtain the basic characteristics of the target food and the basic characteristics of the target pet;
[0007] Inputting the basic characteristics of the target grain into a preset grain calorie prediction neural network model to obtain the calorie parameters of the target grain;
[0008] The basic characteristics of the target pet and the calorie parameters of the target food are input into a preset pet appetite evaluation neural network model to obtain the appetite index of the target pet for the target food.
[0009] Based on the above technical content, the basic characteristics of the target pet and the basic characteristics of the target food can be obtained as basic data support, and then substituted into the corresponding neural network model for data processing to obtain the appetite index of the target pet for the target food. Pet owners can use this to understand their pets' appetite preferences for the selected pet food, and select pet food to achieve precise control of pet feeding.
[0010] In a possible design, the basic characteristics of the target food include the brand, product specifications and product price of the target food, the basic characteristics of the target pet include the type of the target pet and the actual food intake and standard food intake of the target pet, and the method further includes:
[0011] When the appetite index of the target pet for the target food reaches a set threshold, the basic characteristics of the corresponding target food are recorded, and the basic characteristics of the target pet are recorded at the same time;
[0012] The comprehensive evaluation index of the target food brand product is calculated based on the recorded brand, product specifications and product price of the corresponding target food, as well as the actual food intake and standard food intake of the same type of target pets.
[0013] In a possible design, the basic characteristics of the target food include protein parameters, fat parameters, fiber parameters and original calorie labels. The target food is divided into staple food and snacks. The food calorie prediction neural network model uses a Sigmoid function to map the input variable to (0, 1). The Sigmoid function is expressed as:
[0014]
[0015] Among them, L k ∈(0, 1), represents the calorie parameter after mapping; k represents the original calorie label; w and b represent the mapping of the calorie range of staple food and snacks to L k Range of hyperparameters.
[0016] In a possible design, the grain calorie prediction neural network model corresponding to the staple food is provided with 5 neural network layers, and uses the ReLU activation function to activate the model neuron features, and uses the BN algorithm to correct the model parameter space.
[0017] In a possible design, the food calorie prediction neural network model corresponding to the snacks has 4 neural network layers, uses the BN algorithm to correct the model parameter space, and has a residual block to optimize the model neuron features.
[0018] In a possible design, the basic characteristics of the target pet include the actual food intake and standard food intake of the target pet. The pet appetite evaluation neural network model uses a Sigmoid function to map the input variable to (0, 1). The Sigmoid function is expressed as:
[0019]
[0020] Among them, L∈(0,1) represents the appetite index of the target pet; s represents the standard calorie amount of the target pet, which is determined by the standard food intake of the target pet and the calorie parameters of the target food; limit∈(0,1) represents the set lower limit parameter of the food intake of the target pet; q represents the deviation value between the actual food intake of the target pet and the standard food intake.
[0021] In a possible design, the pet appetite evaluation neural network model is provided with two neural network layers, and a binary classification cross entropy algorithm is used as the loss function of the model.
[0022] In a second aspect, the present invention provides a pet appetite evaluation device, comprising:
[0023] An acquisition unit, used for acquiring basic characteristics of target food and basic characteristics of target pet;
[0024] A prediction unit, used for inputting basic characteristics of the target grain into a preset grain calorie prediction neural network model to obtain calorie parameters of the target grain;
[0025] The evaluation unit is used to input the basic characteristics of the target pet and the calorie parameters of the target food into a preset pet appetite evaluation neural network model to obtain the appetite index of the target pet for the target food.
[0026] In a third aspect, the present invention provides a computer device, comprising:
[0027] A memory for storing instructions;
[0028] A processor is used to read the instructions stored in the memory and execute any one of the methods described in the first aspect according to the instructions.
[0029] In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon, and when the instructions are executed on a computer, the computer is enabled to execute any one of the methods described in the first aspect.
[0030] In a fifth aspect, the present invention provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute any one of the methods described in the first aspect.
[0031] The beneficial effects of the present invention are:
[0032] The present invention obtains the basic characteristics of the target pet and the basic characteristics of the target food as basic data support, and substitutes them into the corresponding neural network model for data processing to obtain the appetite index of the target pet for the target food. Pet owners can use this to understand their pets' appetite preferences for the selected pet food, and select pet food to achieve precise control of pet feeding. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 It is a schematic diagram of the method flow of the present invention;
[0035] Figure 2 Schematic diagram of neural network model for calorie prediction of staple food;
[0036] Figure 3 Schematic diagram of a neural network model for predicting calories in snacks;
[0037] Figure 4 Schematic diagram of the expression form of the residual block;
[0038] Figure 5 This is a graph showing the relationship between calorie intake deviation and appetite index for pets weighing 1-4 kg;
[0039] Figure 6 This is a graph showing the relationship between calorie intake deviation and appetite index for pets weighing 7-9 kg;
[0040] Figure 7 Schematic diagram of the neural network model for evaluating pet appetite;
[0041] Figure 8 It is a schematic diagram of the structure of the device of the present invention;
[0042] Fig. 9 It is a schematic diagram of the computer device structure of the present invention. DETAILED DESCRIPTION
[0043] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention. The specific structures and functional details disclosed herein are only used to describe the exemplary embodiments of the present invention. However, the present invention can be embodied in many alternative forms, and it should not be understood that the present invention is limited to the embodiments set forth herein.
[0044] It should be understood that the terms first, second, etc. are only used to distinguish descriptions and should not be understood as indicating or suggesting relative importance. Although the terms first, second, etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are only used to distinguish one unit from another unit. For example, the first unit may be referred to as the second unit, and similarly, the second unit may be referred to as the first unit without departing from the scope of the exemplary embodiments of the present invention.
[0045] It should be understood that the term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, B exists alone, and A and B exist at the same time. The term " / and" in this article describes another relationship between associated objects, indicating that two relationships may exist. For example, A / and B can represent two situations: A exists alone, and A and B exist alone. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship.
[0046] It should be understood that in the description of the present invention, the terms "upper", "vertical", "inside", "outside" and the like indicate orientations or positional relationships that are customarily placed when the product of the invention is used, or are orientations or positional relationships that are customarily understood by those skilled in the art. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0047] It should be understood that when an element is referred to as being "connected," "connected," or "coupled" to another element, it can be directly connected or coupled to the other element, or intervening elements may be present. In contrast, when an element is referred to as being "directly connected" or "directly coupled" to another element, there are no intervening elements. Other words used to describe the relationship between elements should be interpreted in a similar manner (e.g., "between" versus "directly between," "adjacent" versus "directly adjacent," etc.).
[0048] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "setting", "installation" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0049] The terms used herein are only used to describe specific embodiments and are not intended to limit the exemplary embodiments of the present invention. As used herein, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates the opposite meaning. It should also be understood that the terms "include", "comprising", "including", and / or "comprising" when used herein specify the existence of the claimed features, integers, steps, operations, units, and / or components, and do not exclude the existence or increase of one or more other features, quantities, steps, operations, units, components, and / or their combinations.
[0050] It should also be noted that in some alternative embodiments, the functions / acts that appear may be different from the order in which the figures appear. For example, depending on the functions / acts involved, two figures shown in succession may actually be executed substantially concurrently, or may sometimes be executed in the reverse order.
[0051] In the following description, certain details are provided to facilitate a complete understanding of the example embodiments. However, it will be appreciated by those of ordinary skill in the art that the example embodiments may be implemented without these certain details. For example, the system may be shown in a block diagram to avoid obscuring the example with unnecessary details. In other embodiments, well-known processes, structures, and techniques may not be shown in unnecessary detail to avoid obscuring the example embodiments.
[0052] Embodiment 1:
[0053] This embodiment provides a method for evaluating pet appetite. Figure 1 As shown, the following steps are included:
[0054] S101. Obtain basic characteristics of target food and basic characteristics of target pet.
[0055] The basic characteristics of the target food include protein content, fat content, fiber content, and the original calorie label range. These parameters can be directly obtained from the corresponding instructions and packaging labels of the target food, or obtained through corresponding calculations. For example, pet food calories are mainly concentrated in protein and fat, and fiber has an inhibitory effect on the calorie content of pet food. Therefore, the original calorie label range of pet food can be obtained through corresponding calculations of protein content, fat content, and fiber content. The basic characteristics of the target pet include the target pet's age, weight, sterilization status, and the target pet's actual food intake and standard food intake. The standard food intake can be determined based on age, weight, and sterilization status.
[0056] S102. Input the basic characteristics of the target grain into a preset grain calorie prediction neural network model to obtain the calorie parameters of the target grain.
[0057] The grain calorie prediction neural network model uses the protein content, fat content and fiber content of the target grain as the model input, and the calorie content corresponding to 1 gram of food as the model prediction output. The grain calorie prediction neural network model uses the Sigmoid function to map the input variables to (0, 1). The Sigmoid function is expressed as:
[0058]
[0059] Among them, L k ∈(0, 1), represents the calorie parameter after mapping; k represents the original calorie label, which can be obtained by the corresponding calculation of protein content, fat content and fiber content. The original calorie label range of staple food is [3220, 5500], and the original calorie label range of snacks is [320, 1500]; w and b represent the mapping of the calorie range of staple food and snacks to L k Range of hyperparameters.
[0060] The target food is divided into staple food and snacks. The calorie parameters of the staple food can be predicted by the following method: Figure 2 The 5-layer neural network model shown in the figure is used to correct the model parameter space using the BN (Batch Normalization) algorithm for possible model feature space offset. The expression formula is as follows:
[0061]
[0062]
[0063]
[0064] y i =BN γ,β (x i )=γ·x' i +β
[0065] BN is located at the input part of the activation function in the hidden layer, x i represents the neuron characteristics of the current hidden layer that have not been operated by the activation function, m represents the number of neurons in the current hidden layer; μ B Represents the mean of m neuron features; represents the variance of the m neuron features; ε represents the hyperparameter that prevents the denominator from being set to zero; x i ' represents the updated neuron feature; γ, β represent the adjustment parameters added to each neuron, which are obtained through the training of the neural network model to ensure that x iThe neuron characteristics of the hidden layer are not weakened, so that the network expression ability of the hidden layer is enhanced. The BN algorithm maps the neuron characteristics in the forward propagation process into a feature range with a mean of 0 and a standard deviation of 1. The purpose is to correct and update the parameter space of the model during the reverse propagation of the model, thereby improving the convergence speed of the model.
[0066] Due to the complex structure of neurons and the high gradient saturation of the Sigmoid function, the gradient of the neuron features decreases too quickly as the number of training times increases, resulting in premature model fitting. Some activation functions inside the model are changed to ReLU activation functions. As the number of model training times increases, the gradient of the neuron features after activation by the ReLU activation function will not change, and some neuron features become 0, which can approximate the dropout effect and increase the robustness of the model.
[0067] For the prediction of calorie parameters of snacks, the following method can be used: Figure 3 The 4-layer neural network model shown in the figure is used. The model uses the BN algorithm to correct the model parameter space. Most pet snacks contain 80% water, so the characteristic relationship between the nutritional content and calories is more vague than that of the staple food. The model is constructed based on the logistic regression prediction. A 4-layer neural network is selected for construction. Due to the large number of neural network layers, the gradient of the neuron features disappears too quickly during the back propagation of the neural network, resulting in premature model fitting, which ultimately leads to a decrease in the accuracy of the model prediction. Therefore, on the basis of BN, a residual unit is added to the model to optimize the neuron features.
[0068] The residual block is designed to solve the gradient vanishing problem caused by too many neural network layers. Its main expression is as follows: Figure 4 As shown in the figure, x represents the input feature of a hidden layer. When passing through a hidden layer F(x) during the forward propagation process, it is necessary to perform matrix calculations with the weight matrix weight in F(x), and the weight will be continuously updated during the backward propagation process, so that x gradually approaches 0 after several matrix calculations, and finally causes the gradient of x to disappear. The construction of the residual block allows x to pass through several hidden layers and directly sum with the output results of the hidden layer. This method alleviates the vanishing speed of the neuron feature gradient, so that the neuron feature can learn features in deeper hidden layers.
[0069] S103. Input the basic characteristics of the target pet and the calorie parameters of the target food into a preset pet appetite evaluation neural network model to obtain the appetite index of the target pet for the target food.
[0070] The pet appetite evaluation neural network model uses the Sigmoid function to map the input variable to (0, 1). The Sigmoid function is expressed as:
[0071]
[0072] Among them, L∈(0,1) represents the appetite index of the target pet, L=1 means that the pet's appetite and food intake meet the standard state, and the pet's appetite is the best; L=0 means that the pet's appetite is the worst; s represents the standard calorie amount of the target pet, which is calculated and determined by the standard food intake of the target pet and the calorie parameters of the target food, such as the standard calorie intake of a cat aged 5 weeks and weighing 1.0 kg per day is 219.45 kcal / day; limit∈(0,1) represents the set lower limit parameter of the food intake of the target pet, such as limit=60%; q represents the deviation value between the actual food intake and the standard food intake of the target pet, and the specific formula is q=-|tr|, t represents the actual food intake of the pet, and r represents the standard food intake of the pet.
[0073] Taking appetite index as sample label, we observe the distribution of samples in different weight ranges from the perspective of the deviation between actual calorie intake and standard calorie intake. Figure 5 and Figure 6 As shown, Figure 5 This is the relationship between the calorie intake deviation and appetite index of pets weighing 1-4 kg. Figure 6 This is a relationship diagram between the calorie intake deviation and appetite index of pets weighing 7-9 kg. The horizontal axis represents the deviation between the actual calorie intake and the standard calorie intake (unit: g / day); the vertical axis represents the specific value of the appetite index. It can be seen from the figure that the smaller the deviation between the actual calorie intake and the standard calorie intake, the higher the appetite index value.
[0074] like Figure 7 As shown in the figure, the pet appetite evaluation neural network model takes the target pet's age (Age input), weight (Weight input), sterilization status (Steri input) and the target pet's actual intake of the target food (Intake input) as input variables, has two neural network layers, and uses a binary cross entropy algorithm as the model's loss function. The model output is a [0, 1] interval value. In the appetite evaluation problem, 1 represents the ideal standard appetite state, and 0 represents the set lower limit of the non-standard appetite state. The expression of the loss function is:
[0075]
[0076] The loss function is calculated separately for the original label x j and the predicted label y j The similarity of the ideal appetite state in j log(x j ) and the similarity between the bounds under the appetitive state∑(1-yj )log(1-x j ), the larger the loss function value, the higher the similarity between the predicted label and the original label, and the more accurate the prediction result.
[0077] After obtaining the appetite index, the pet food brand products can also be recommended and ranked accordingly. The specific methods include:
[0078] S201. When the appetite index of the target pet for the target food reaches a set threshold, the basic characteristics of the corresponding target food are recorded, and the basic characteristics of the target pet are recorded at the same time.
[0079] S202. Calculate the comprehensive evaluation index of the target food brand based on the recorded brand, product specifications and product price of the corresponding target food, as well as the actual food intake and standard food intake of the target pets of the same type. The calculation formula is:
[0080]
[0081] Among them, V represents the comprehensive evaluation index of brand products; M spec and P represent the specifications and price of brand products respectively; m a and m s represents the actual food intake and standard food intake of pets eating the brand product, and m a 、m s Sampling was based on pets of the same pet species and consuming the same brand of products; median (m a / m s ) represents the median of the preference index of each sample of a certain type of pet for the same brand of product; C represents a constant.
[0082] S203. Finally, the comprehensive evaluation indexes of the products of each brand are arranged in ascending order. The smaller the comprehensive evaluation index, the higher the position of the recommended product.
[0083] Embodiment 2:
[0084] This embodiment provides a pet appetite evaluation device, such as Figure 8 As shown, including:
[0085] An acquisition unit, used for acquiring basic characteristics of target food and basic characteristics of target pet;
[0086] A prediction unit, used for inputting basic characteristics of the target grain into a preset grain calorie prediction neural network model to obtain calorie parameters of the target grain;
[0087] The evaluation unit is used to input the basic characteristics of the target pet and the calorie parameters of the target food into a preset pet appetite evaluation neural network model to obtain the appetite index of the target pet for the target food.
[0088] Embodiment 3:
[0089] This embodiment provides a computer device, such as Fig. 9 As shown, including:
[0090] A memory for storing instructions;
[0091] The processor is used to read the instructions stored in the memory and execute the pet appetite evaluation method described in Example 1 according to the instructions.
[0092] The memory may include, but is not limited to, a random access memory (RAM), a read only memory (ROM), a flash memory (Flash Memory), a first-in first-out memory (FIFO) and / or a first-in last-out memory (FILO), etc.; the processor may include, but is not limited to, a single-chip microcomputer, an ARM processor, etc.
[0093] Embodiment 4:
[0094] This embodiment provides a computer-readable storage medium, on which instructions are stored, and when the instructions are executed on a computer, the computer executes the pet appetite evaluation method described in Embodiment 1. The computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to a floppy disk, a CD, a hard disk, a flash memory, a USB flash drive, and / or a memory stick, etc. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
[0095] Embodiment 5:
[0096] This embodiment provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the pet appetite evaluation method described in Embodiment 1. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
[0097] Those skilled in the art can understand that all or part of the steps of the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above method embodiments are executed, and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0098] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, apparatuses, devices and storage media of the embodiments. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0099] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0100] The present invention is not limited to the above optional implementations, and anyone can derive other various forms of products under the enlightenment of the present invention. The above specific implementations should not be understood as limiting the scope of protection of the present invention. The scope of protection of the present invention should be based on the definition in the claims, and the description can be used to interpret the claims.
Claims
1. A method for evaluating pet appetite, characterized in that: include: Obtaining basic characteristics of the target food and basic characteristics of the target pet, wherein the basic characteristics of the target food include the brand, product specifications, product price, protein parameter, fat parameter, fiber parameter and original calorie label of the target food, and the basic characteristics of the target pet include the type of the target pet and the actual intake and standard intake of the target food; Inputting the basic characteristics of the target grain into a preset grain calorie prediction neural network model to obtain the calorie parameters of the target grain; The basic characteristics of the target pet and the calorie parameters of the target food are input into a preset pet appetite evaluation neural network model to obtain the appetite index of the target pet for the target food.
2. A pet appetite evaluation method according to claim 1, characterized in that: The method further comprises: When the appetite index of the target pet for the target food reaches a set threshold, the basic characteristics of the corresponding target food are recorded, and the basic characteristics of the target pet are recorded at the same time; The comprehensive evaluation index of the target food brand product is calculated based on the recorded brand, product specifications and product price of the corresponding target food, as well as the actual food intake and standard food intake of the same type of target pets.
3. A pet appetite evaluation method according to claim 1, characterized in that: The target food is divided into staple food and snacks. The food calorie prediction neural network model uses the Sigmoid function to map the input variable to (0, 1). The Sigmoid function is expressed as: Among them, L k ∈(0, 1), represents the calorie parameter after mapping; k represents the original calorie label; w and b represent the mapping of the calorie range of staple food and snacks to L k Range of hyperparameters.
4. A pet appetite evaluation method according to claim 3, characterized in that: The grain calorie prediction neural network model corresponding to the staple food is provided with 5 neural network layers, and a ReLU activation function is used to activate the model neuron features, and a BN algorithm is used to correct the model parameter space.
5. A pet appetite evaluation method according to claim 3, characterized in that: The food calorie prediction neural network model corresponding to the snacks has 4 neural network layers, uses the BN algorithm to correct the model parameter space, and is provided with a residual block to optimize the model neuron features.
6. A pet appetite evaluation method according to claim 1, characterized in that: The basic characteristics of the target pet include the actual food intake and standard food intake of the target pet. The pet appetite evaluation neural network model uses the Sigmoid function to map the input variable to (0, 1). The Sigmoid function is expressed as: Among them, L∈(0,1) represents the appetite index of the target pet; s represents the standard calorie amount of the target pet, which is determined by the standard food intake of the target pet and the calorie parameters of the target food; limit∈(0,1) represents the set lower limit parameter of the food intake of the target pet; q represents the deviation value between the actual food intake of the target pet and the standard food intake.
7. A pet appetite evaluation method according to claim 6, characterized in that: The pet appetite evaluation neural network model is provided with two neural network layers, and a binary classification cross entropy algorithm is used as the loss function of the model.
8. A pet appetite evaluation device, characterized in that: include: an acquisition unit, configured to acquire basic characteristics of a target food and basic characteristics of a target pet, wherein the basic characteristics of the target food include a brand, product specifications, product price, protein parameter, fat parameter, fiber parameter, and original calorie label of the target food, and the basic characteristics of the target pet include a type of the target pet and an actual intake and a standard intake of the target food; A prediction unit, used for inputting basic characteristics of the target grain into a preset grain calorie prediction neural network model to obtain calorie parameters of the target grain; The evaluation unit is used to input the basic characteristics of the target pet and the calorie parameters of the target food into a preset pet appetite evaluation neural network model to obtain the appetite index of the target pet for the target food.
9. A computer device, characterized in that: include: A memory for storing instructions; A processor, configured to read the instructions stored in the memory and execute the method according to any one of claims 1 to 7 according to the instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Pet feeding method and system based on intelligent dynamic algorithm
CN106472332A
Intelligent feeding system based on deep learning
CN108450382A
Automatic pet feeding method and device, computer storage medium and electronic equipment
CN109729990A
Grain storage barrel, grain detection method, devices and storage medium
CN109932715A
Grain quality index prediction method based on BP neural network
CN110458361A
