Feed formula generation method and system, electronic equipment and storage medium
By obtaining farm animal information and screening feed, combined with the assessment of feeding conditions, a scientific and reasonable feed formula is generated, which solves the problem in the existing technology that the feed formula is difficult to accurately assess nutritional needs and adapt to multiple factors, and improves feeding efficiency and economic benefits.
Patent Information
- Application Number
- CN202410700834.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-24
AI Technical Summary
Existing feed formulation methods rely on experience or single-objective linear programming, which is difficult to accurately assess animal nutritional needs, affects animal health and breeding efficiency, and is difficult to adapt to changes in different growth stages and multiple factors.
By obtaining the animal information of the farm, the first feed and the second feed are determined, and combined with the screening and evaluation of the farm conditions, a scientific and reasonable feed formula for the specific farm is generated to achieve personalized customization and nutritional balance.
It improves feeding efficiency and economic benefits, ensures that the nutritional needs of animals at different growth stages are met, and reduces production costs.
Smart Images

Figure CN118691005A
Abstract
Description
Technical Field
[0001] The present application relates to the field of food formula, and specifically to a method, system, electronic device and storage medium for generating a feed formula. Background Art
[0002] With the rapid development of animal husbandry, people have put forward higher requirements for the quality and safety of livestock and poultry products. Scientific and reasonable feed formula can not only meet the growth needs of animals, but also improve feed utilization efficiency and reduce production costs, thereby obtaining the best breeding benefits. At present, feed formula mostly adopts empirical formula method or linear programming method, which has the following problems: The empirical formula method mainly relies on the production practice experience of the formula designer, lacks a systematic nutritional basis, and is difficult to accurately assess the nutritional needs of animals, which can easily lead to nutritional excess or deficiency, affect animal health, and increase breeding costs. At the same time, empirical formulas are difficult to quickly adapt to changes in nutritional needs of animals at different growth stages.
[0003] Linear programming is a mathematical model based on a single goal, which obtains an optimal formula that meets the constraints through calculation. However, in actual production, feed formula must not only consider nutritional balance, but also multiple factors such as feed price and raw material supply. Single-objective linear programming is difficult to balance multiple needs. In addition, the ideal formula obtained by linear programming may deviate from the actual feeding conditions, and manual adjustments are required in specific applications, which affects feeding efficiency. Summary of the invention
[0004] The present application provides a method, system, electronic device and storage medium for generating a feed formula, which can improve feeding efficiency.
[0005] In a first aspect of the present application, the present application provides a method for generating a feed formula, comprising: Acquire animal information in a breeding farm, and determine a first feed according to the animal information, where the first feed is used to meet the nutritional needs of the animals in a first feeding cycle; Determine at least one group of second feed according to the first feed, wherein the second feed is used to meet the food demand of the animal in a second feeding cycle, and the second feeding cycle is a sub-cycle of the first feeding cycle; Acquiring feeding conditions of the breeding farm, screening out second feeds that do not match the feeding conditions in each feed combination, and combining each screened out second feed with the first feed to obtain a different first feed combination; Each first feed combination is evaluated to obtain a target feed combination that meets the evaluation criteria, and a feed formula is generated according to the target feed combination.
[0006] By adopting the above technical solution, the first feed is determined by obtaining the information of the animals in the farm, and then the second feed is matched according to the first feed and the food demand in the second feeding cycle, and the second feed is screened in combination with the feeding conditions of the farm. After evaluation and optimization, the target feed combination is determined, thereby generating a scientific and reasonable feed formula for a specific farm, and realizing personalized customization of the formula. The first feed can be scientifically determined according to the animal information of different farms to ensure that the feed provides comprehensive basic nutrition. At the same time, the introduction of the concept of the second feed combination can more accurately meet the personalized food demand of different second feeding cycles. In addition, this method fully considers the influence of the actual feeding conditions of the farm on the adaptability of the feed, screens the second feed, and avoids the selection of mismatched feed. Through evaluation and optimization, economic benefits can be obtained under the premise of ensuring nutritional needs, thereby further improving feeding efficiency.
[0007] Optionally, determining, based on the animal information, a first feed that meets the nutritional needs of the animal in a first feeding cycle includes: Determining the nutritional requirements of the animal in a first feeding cycle according to the animal species, animal quantity, and animal growth stage in the animal information; A first feed that matches the nutritional requirement.
[0008] By adopting the above technical solution, different types of animals have different basal metabolic rates and nutritional requirements, which determine the basic feed requirements and amount. The number of animals directly affects the overall feed consumption. Different growth stages lead to changes in the demand for the proportion of each nutrient. Taking these three factors into consideration, the refined nutritional needs of animals in each time period of the first feeding cycle can be more accurately determined. Therefore, starting from the nutritional needs, the first feed that can fully meet the nutritional needs of animals in each stage of the first feeding cycle can be matched. Compared with only a single factor, this method of determining the first feed based on a comprehensive analysis of multiple factors will be more comprehensive and accurate.
[0009] Optionally, determining at least one group of second feed according to the first feed includes: Determining the food requirement of the animal in a first feeding cycle according to the animal species and the number of animals; The food demand of the animal in each second feeding cycle is determined according to the food demand of the animal in the first feeding cycle; and at least one group of second feed is determined according to the food demand of the animal in each second feeding cycle.
[0010] By adopting the above technical solution, the total feed consumption of animals of different types and numbers is different. Based on these two, the total food demand for the first feeding cycle can be calculated. However, it is not reasonable to apply it directly to each second feeding cycle. It is necessary to determine the respective segmentation needs based on factors such as the growth rate of each period in order to truly meet the personalized feeding needs of each period. Therefore, according to the different feeding demand characteristics of each second feeding cycle, the corresponding second feed can be selected for personalized configuration. Compared with simply using the second feed of the same group, this personalized determination idea achieves accurate matching of the second feed. It greatly improves the rationality of feed configuration and can meet the actual feeding needs of animals at different stages.
[0011] Optionally, the feeding conditions include weather conditions, geographical location, enclosure conditions and market price fluctuations, and the screening out of the second feed in each feed combination that does not match the feeding conditions includes: Calculating the matching degree between the second feed and the feeding condition according to the weather condition, the geographical location, the enclosure condition, the market price fluctuation, the feasibility of the feeding supply, and each of the second feeds; The second feed whose matching degree is lower than the matching degree threshold is filtered out.
[0012] By adopting the above technical solution, the effects of climate, location and enclosure conditions on the adaptability of feed are taken into account, and the economic feasibility assessment of market price fluctuations and feed supply is also added. A comprehensive screening of the second feed is achieved. By calculating the matching degree of different factors, the second feed can be quantitatively screened, not just based on experience. Setting the matching degree threshold can obtain the screening standard to ensure that a second feed with high adaptability is obtained. It can avoid the second feed with unsuitable conditions from entering the candidate combination, ensure that the generated feed formula can adapt to the environment of the target farm, and improve the practical applicability of the feed plan.
[0013] Optionally, the calculating the matching degree between the second feed and the feeding condition according to the weather condition, the geographical location, the enclosure condition, the market price fluctuation, the feasibility of the feeding supply, and each of the second feeds includes: Substituting the weather conditions, the geographical location, the enclosure conditions, the market price fluctuations, the feasibility of the feeding supply, and each of the second feeds into a preset formula, the matching degree of each of the second feeds and the feeding conditions is calculated; wherein the preset formula is: Where M represents the matching degree, P0 represents the basic price adaptation score, and P i represents the price fluctuation adaptation score of the second feed in the i-th second feeding cycle, ω irepresents the price fluctuation weight coefficient of the i-th second feeding cycle, Q represents the adaptability score of weather conditions, R represents the adaptability score of the geographical location, S represents the adaptability score of enclosure conditions, T represents the diversity score of the second feed type, C represents the cost coefficient, V0 represents the matching score of the second feed for the nutritional supplement of the first feed, V j represents the matching score of the jth nutrient component in the second feed, V j Represents the matching coefficient of the jth nutrient component in the second feed.
[0014] By adopting the above technical solution, the preset formula combines the scores of multiple dimensions such as weather, location, enclosure, price, and supply by weight, while taking into account the nutritional complementarity and cost impact with the first feed, and achieving a comprehensive evaluation of the matching degree. Among them, the time dimension evaluation of price fluctuations is also added to achieve dynamic economic comparison. The adjustment of each specific coefficient also achieves the distinction of the importance of different influencing factors.
[0015] Optionally, the step of evaluating each first feed combination to obtain a target feed combination that meets the evaluation criteria includes: Constructing a first matrix of feeds and corresponding nutrients in each of the first feed combinations, and a second matrix of the animals and corresponding nutrients required by the animals; According to the first matrix, the second matrix and the constraints of the nutrients, a multivariate programming model consisting of inequalities corresponding to the nutrients is constructed; Solving the multivariate programming model to obtain a second feed combination; The similarity between each of the first feed combinations and the second feed combinations is calculated, and the first feed combination with a similarity greater than a similarity threshold is determined as the target feed combination that meets the evaluation criteria.
[0016] By adopting the above technical solution, the relationship between feed and nutritional composition, as well as the relationship between animals and nutritional requirements, is expressed using a matrix, providing standardized data input for modeling. On this basis, a multivariate programming model containing the constraints of each nutrient component is constructed, and the ideal feed combination with the lowest economic cost is obtained through iterative optimization. Then the similarity between the ideal combination and the preliminary feed combination is calculated, and the combination with high similarity is selected as the target feed combination. By constructing a mathematical optimization model, compared with simple empirical configuration, an algorithm that more comprehensively considers nutritional balance and economic cost is achieved to generate the optimal formula.
[0017] Optionally, the method further includes: If there is no first feed combination whose similarity is greater than the similarity threshold, the step of determining the first feed according to the animal information is performed again.
[0018] By adopting the above technical solution, if it is found that the similarity between all first feed combinations and the second feed combinations optimized by multivariate planning is relatively low, it means that there is still a gap between the current first feed and the optimization target. In order to obtain a target feed combination that is both scientific and reasonable and in line with reality, it is necessary to return to the first feed configuration step and adjust its configuration ideas. By setting up such a feedback mechanism, it is possible to avoid directly using the first feed combination that has a poor match with the optimization result, thereby ensuring that the best target feed combination that has been scientifically optimized and iterated is obtained.
[0019] In a second aspect of the present application, a system for generating a feed formula is provided, comprising: A first feed determination module, used to obtain animal information in the farm, and determine a first feed according to the animal information, where the first feed is used to meet the nutritional needs of the animals in a first feeding cycle; a second feed determination module, configured to determine at least one group of second feeds according to the first feeds, wherein the second feeds are used to meet the food demand of the animal in a second feeding cycle, wherein the second feeding cycle is a sub-cycle of the first feeding cycle; A feed combination generating module, used for obtaining the feeding conditions of the breeding farm, screening out the second feeds that do not match the feeding conditions in each feed combination, and combining each screened out second feed with the first feed to obtain different first feed combinations; The feed formula generation module is used to evaluate each first feed combination, obtain a target feed combination that meets the evaluation criteria, and generate a feed formula based on the target feed combination.
[0020] In a third aspect of the present application, a computer storage medium is provided, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above method steps.
[0021] In a fourth aspect of the present application, an electronic device is provided, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0022] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: By adopting the technical solution of the present application, the first feed is determined by obtaining the information of the animals in the farm, and then the second feed is matched according to the first feed and the food intake requirements of the second feeding cycle, and the second feed is screened in combination with the feeding conditions of the farm. After evaluation and optimization, the target feed combination is determined, thereby generating a scientific and reasonable feed formula for a specific farm, and realizing personalized customization of the formula. The first feed can be scientifically determined according to the animal information of different farms to ensure that the feed provides comprehensive basic nutrition. At the same time, the concept of the second feed combination is introduced to more accurately meet the personalized food intake requirements of different second feeding cycles. In addition, the method fully considers the influence of the actual feeding conditions of the farm on the adaptability of the feed, screens the second feed, and avoids the selection of mismatched feed. Through evaluation and optimization, economic benefits can be obtained under the premise of ensuring nutritional needs, thereby further improving feeding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a flow chart of a method for generating a feed formula provided in an embodiment of the present application; Figure 2 It is a structural schematic diagram of a feed formula generation system provided in an embodiment of the present application; Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0024] Description of reference numerals: 300, electronic device; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. DETAILED DESCRIPTION
[0025] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0026] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0027] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0028] The present application embodiment provides a method for generating a feed formula. In one embodiment, please refer to Figure 1 , Figure 1 This is a flow chart of a method for generating a feed formula provided in an embodiment of the present application. The method can be implemented by a computer program, which can be integrated into an application or run as an independent tool application. The method can also be implemented by a single-chip microcomputer or run in a feed formula generation system based on a von Neumann system. Specifically, the method can include the following steps: Step 101: Obtain animal information in a breeding farm, and determine a first feed based on the animal information, where the first feed is used to meet the nutritional needs of the animals in a first breeding cycle.
[0029] Among them, animal information refers to various data parameters describing the situation of farmed animals, including information such as animal species, quantity, gender, age, weight, and health status. In the embodiment of the present application, animal information can be understood as mainly referring to information such as the animal species, quantity, and growth stage of animals in the farm, which is used to determine the nutritional needs of animals. The animal species determines the basic nutritional needs of the animal. The quantity reflects the overall demand of the group. The growth stage determines the animal's demand for the proportion of each nutrient at different time stages.
[0030] The first feed refers to the main feed provided to the animal in the first stage of the animal feeding cycle. In the embodiment of the present application, the first feed refers to the feed determined based on the obtained farm animal information, containing complete and scientifically proportioned various nutrients, and fully meeting the nutritional needs of the animal in all aspects during the first feeding cycle. The function of the first feed is to provide the animal with a nutritionally complete and sufficient feed to ensure that the animal can obtain various nutrients required for healthy growth and development during the first feeding stage.
[0031] Furthermore, the first feeding cycle refers to a relatively long feeding stage in the feeding process. In the embodiment of the present application, the first feeding cycle can be understood as a longer feeding cycle including multiple sub-feeding stages, which is used to design and equip corresponding feeds according to different sub-stages in the longer feeding cycle to meet the feeding needs of each sub-stage of the longer feeding cycle.
[0032] Specifically, in order to generate a feed formula that meets the feeding needs of animals in the farm, relevant information about the animals in the farm can be obtained, including animal species, quantity, growth stage, etc. Obtaining animal information is the basis for determining the first feed, and this information determines the nutritional needs of the animals. For example, different types of animals have different basic nutritional needs, the quantity determines the total demand, and the growth stage determines the demand for the proportion of each nutrient component.
[0033] Specifically, based on the obtained animal information, the specific requirements of the animal for nutrients such as protein, fat, carbohydrates, vitamins, minerals, etc. at each stage of the first feeding cycle can be calculated. Then, after iterative calculation, a first feed containing complete and balanced nutrients is formulated to ensure that the first feed can meet all the nutritional requirements of the animal in the first longer feeding cycle.
[0034] For example, suppose a pig farm needs to prepare feed for fattening pigs. First, obtain the animal information in the farm, including that the animal type is fattening pigs, the number of animals is 1,000, and the animal growth stages are divided into three stages: early (weight 30-50kg), middle (50-80kg) and late (above 80kg).
[0035] Then, the nutritional requirements of the animals in the farm are determined based on the above animal information. Since the species is fattening pigs, the main demand is to gain weight, so higher energy and protein are required; the number of animals is 1,000, and the total amount of feed required is large; the requirements for nutritional proportions are different at different growth stages, with higher protein required in the early stage to focus on growth and development, and higher energy required to focus on gaining weight in the middle and late stages.
[0036] Next, based on relevant literature data, the specific nutritional requirements for each growth stage were calculated: in the early stage, each pig needs 300 grams of protein and 6,000 calories of energy per day; in the middle stage, each pig needs 250 grams of protein and 7,000 calories of energy per day; in the late stage, each pig needs 200 grams of protein and 8,000 calories of energy per day.
[0037] Combining these data with the length of the entire first longer feeding cycle (assuming 120 days) and the duration of each stage, the total requirement for each nutrient during the first feeding cycle can be obtained.
[0038] Finally, by consulting the nutritional data of commonly used feed raw materials, a first feed formula was determined to meet the comprehensive nutritional needs of 1,000 fattening pigs in the entire first feeding cycle of 120 days. The first feed contains a reasonable proportion of corn, soybean meal, vitamins and other raw materials to provide balanced nutrition for animals.
[0039] Based on the above embodiment, as an optional embodiment, in step 101: determining the first feed that meets the nutritional needs of the animal in the first feeding cycle based on the animal information can also specifically include the following steps: determining the nutritional needs of the animal in the first feeding cycle based on the animal type, animal number and animal growth stage in the animal information, and matching the first feed corresponding to the nutritional needs.
[0040] Among them, animal species refers to the specific species classification of animals raised in the farm, such as pigs, cattle, chickens, etc. In the embodiments of the present application, animal species can be understood as determining the basic category of raised animals. Different types of animals have different physiological characteristics and nutritional requirements. Different animal species determine the basic type and amount of the animal's requirements for each nutrient in the feed.
[0041] The number of animals refers to the number of animals of the same type raised in the farm. In the embodiments of the present application, the number of animals can be understood as a value reflecting the size of a group of animals of the same type. The number of animals determines the overall demand of the group for various nutrients.
[0042] Animal growth stages refer to different stages in the animal growth and development cycle, such as the early development period, mid-development period, and late development period of fattening pigs. In the embodiments of the present application, animal growth stages can be understood as different periods reflecting the physiological characteristics and nutritional needs of animals. Animals at different growth stages have different requirements for the proportions of various nutrients.
[0043] Specifically, in order to comprehensively evaluate the nutritional needs of animals. Different types of animals have different basal metabolic rates and nutritional needs; the number of animals directly determines the overall demand for feed; animals are in different stages of their growth cycle, which will also lead to changes in the proportion of various nutrients. Comprehensive consideration of these three factors can allow us to more accurately evaluate the nutritional needs of animals in various time periods of the first feeding cycle.
[0044] Specifically, we can refer to the literature data on animal nutrition and determine the requirements of different types of animals for various nutrients at different growth stages based on their physiological characteristics; then multiply these requirements by the number of animals to calculate the overall requirements of the entire animal group for different nutrients in the first feeding cycle. In this way, we can get the precise requirements of the animals for various nutrients such as protein, fat, vitamins, etc. in the first feeding cycle.
[0045] After the detailed nutritional requirements of the first feeding cycle of the animal are determined, the corresponding first feed that can meet these nutritional requirements can be matched. According to the detailed requirement values of each nutrient component calculated above, the feed whose nutritional composition can fully meet these requirements is selected as the first feed.
[0046] Step 102: Determine at least one group of second feed based on the first feed, the second feed is used to meet the food demand of the animal in a second feeding cycle, and the second feeding cycle is a sub-cycle of the first feeding cycle.
[0047] The second feed refers to the feed provided to the animal in the sub-period of the first feeding cycle. In the embodiment of the present application, the second feed can be understood as the feed determined according to the first feed and the feeding needs of the animal in each sub-period. The second feed is used to meet the food demand of the animal in each sub-period of the first feeding cycle.
[0048] Furthermore, the second feed is a supplementary feed determined on the basis of the first feed according to the feeding conditions of the animals in different sub-cycles. The first feed provides basic nutrition, and the second feed provides different degrees of food supplementation according to the food intake requirements of the animals in each sub-cycle. For example, the proportion of the second feed can be increased in the stage of vigorous growth of the animal to meet its food intake requirements; while the second feed can be reduced in the stage of slowing growth to avoid waste. In this way, the design of the second feed can more accurately and reasonably meet the actual feeding needs of the animals in each time period of the first feeding cycle.
[0049] Correspondingly, the second feeding cycle refers to a sub-cycle in the first feeding cycle. In the embodiment of the present application, the second feeding cycle can be understood as a number of stages or sub-stages constituting the first feeding cycle. The second feeding cycle is used to subdivide the first feeding cycle, and different second feeds are used for feeding according to the feeding characteristics of the animals in different sub-stages.
[0050] The first feeding cycle is a long feeding cycle, which includes multiple time periods in the animal's growth cycle. In order to better meet the feeding needs of animals in various growth periods, the first feeding cycle can be subdivided into multiple second feeding cycles. Each second feeding cycle uses different second feeds for feeding according to the physiological characteristics and feeding requirements of the animal at that stage. This can make the design and use of feed more rational and accurately meet the actual needs of animals at each stage.
[0051] Specifically, the first feeding cycle includes multiple second feeding cycles, which are sub-cycles of the first feeding cycle and are used to subdivide the first longer feeding cycle so that different feeds can be used according to the physiological characteristics and feeding requirements of the animals at different stages. The first feed provides complete and balanced nutrition, but it is difficult to fully meet the different food intake requirements of the animals in different time periods of the second feeding cycle. Therefore, it is necessary to determine at least one group of second feeds based on the configured first feeds to meet the food intake requirements of the animals at different stages of the second feeding cycle.
[0052] Specifically, according to the type and number of animals and the length of the first feeding cycle, the total food demand of the animals in the feeding cycle can be calculated. Then, according to the second feeding cycle division, the food demand of the animals in each second feeding cycle is determined. For the second feeding cycle with a large food demand, a second feed containing grains, feed additives, etc. can be configured to increase the amount of food; and for the second feeding cycle with a small food demand, a second feed containing roughage can be configured. In this way, the actual food demand of the animals in each second feeding cycle can be met. Finally, multiple groups of second feeds with different nutritional components are obtained.
[0053] Based on the above embodiment, as an optional embodiment, in step 102: determining at least one group of second feed according to the first feed may further include the following steps: Step 201: Determine the food requirement of the animal in the first feeding cycle according to the animal species and the number of animals.
[0054] Specifically, in order to comprehensively evaluate the feeding needs of animals, different types of animals have different characteristics such as size and growth rate, which will affect the daily feed consumption of animals; the number of animals directly determines the total feed consumption of the entire feeding cycle. Taking these two factors into consideration, the food demand of animals in the first feeding cycle can be calculated more accurately.
[0055] Specifically, one can consult relevant literature on animal nutrition standards and calculate the daily unit food requirements of different animal species based on their weight and growth characteristics; then, combined with the total number of animals, the total feed consumption of the entire animal group in the first feeding cycle can be calculated, thereby clearly determining the overall food requirements of animals in the first feeding cycle.
[0056] Step 202: Determine the food demand of the animal in each second feeding cycle according to the food demand of the animal in the first feeding cycle.
[0057] Specifically, in order to reasonably allocate the food intake in different periods of the first feeding cycle, the feeding needs of each stage can be more accurately met. The first feeding cycle includes multiple second feeding cycles, and the growth conditions and feeding needs of animals in each period are different. Directly applying the total food intake requirements of the first feeding cycle to each second feeding cycle cannot meet the specific needs of different periods. Therefore, it is necessary to scientifically allocate the feeding amount of each second feeding cycle based on the total amount.
[0058] Specifically, according to the growth characteristics of animals in different periods of the first feeding cycle, these periods can be reasonably divided to determine the time period of the second feeding cycle; then, according to the growth rate of animals in each second feeding cycle, expected weight gain and other factors, the proportion of food demand in different second feeding cycles to the total demand can be estimated; finally, combined with the total food demand of the first feeding cycle, the specific food demand of each second feeding cycle can be calculated. Thus, accurate allocation of food for different second feeding cycles is achieved.
[0059] Step 203: Determine at least one group of second feed according to the food demand of the animal in each second feeding cycle.
[0060] Specifically, because the growth conditions and feeding requirements of animals are different in different second feeding cycles, if the same set of second feed is simply used, it is impossible to meet the personalized feeding needs of each period. Moreover, the first feed mainly provides comprehensive nutrition, which is difficult to fully meet the changing food intake needs at different stages. Therefore, it is necessary to specifically match and determine the second feed that can fully meet its needs according to the different feeding requirements of each second feeding cycle, so as to achieve personalized and precise feed configuration.
[0061] Specifically, according to the food intake data of each second feeding cycle that has been clarified, feed resources that match these requirements can be selected and configured to form different second feed combinations. For example, for the second feeding cycle with a large food intake requirement, a second feed with grains, feed additives, etc. can be configured to increase food intake; while for the second feeding cycle with a small food intake requirement, a second feed mainly composed of roughage can be configured. Through such customized configuration, at least one set of second feed that can meet the food intake requirements of each period can be obtained.
[0062] For example, when a farm prepares feed for 1,000 fattening pigs, it must first evaluate the overall food demand of the pigs during the first longer feeding cycle (120 days). Based on the characteristics and growth patterns of pig species and relevant literature data, it can be learned that each fattening pig needs 2kg of feed per day at the early stage of 30-50kg, 3kg per day at the middle stage of 50-80kg, and 4kg per day at the late stage of 80kg or more.
[0063] Multiplying the daily food requirement of each pig by the number of pigs in the herd, 1,000, and combining it with the number of days each stage lasts, we can calculate the total food requirement for the entire 120-day first feeding cycle: 60 tons in the early 30 days, 135 tons in the middle 45 days, and 180 tons in the late 45 days. The total demand for the three stages is 375 tons.
[0064] Next, the total food demand of 375 tons needs to be reasonably allocated to the second shorter sub-feeding cycle. The first stage can be divided into 4 sub-cycles, each of which lasts 15 days. According to the growth law, 10%, 20%, 30%, and 40% of the total demand can be allocated to the 4 sub-cycles respectively; the middle and late stages can be divided into 3 sub-cycles, each of which lasts 15 days, corresponding to 30%, 35%, and 35% of the total demand.
[0065] After calculation, the four early sub-cycles require 6, 15, 30, and 45 tons of feed respectively; the three mid-term sub-cycles require 40.5, 47.25, and 47.25 tons; and the three late sub-cycles require 54, 63, and 63 tons of feed. This determines the specific food demand for each second sub-feeding cycle.
[0066] With the above data, different second feed combinations can be configured in a targeted manner. Taking the first sub-cycle in the early stage as an example, the food demand is only 6 tons, and it can be appropriately configured with low-energy-density roughage as the main feed to reduce waste; while the third sub-cycle in the later stage needs to be configured with 63 tons of high-energy-density concentrated feed to meet its larger food demand.
[0067] Step 103: Obtaining the feeding conditions of the farm, screening out the second feeds that do not match the feeding conditions in each feed combination, and combining the screened out second feeds with the first feed to obtain different first feed combinations.
[0068] Among them, feeding conditions refer to various external environmental conditions and internal management conditions of the farm, which can be understood in the embodiments of the present application as various environmental and management factors that affect animal breeding, including climate, region, equipment and facilities, operating procedures, etc. Feeding conditions are used to evaluate the suitability and feasibility of different feeds in the farm. Different feeding conditions, such as temperature, humidity, light, etc., will have an important impact on the growth of animals; the geographical location of the farm will also affect the cost of obtaining feed; the type of pen, degree of automation, etc. also limit the use of feed. Therefore, before generating a feed formula, it is necessary to fully consider the feeding conditions of the farm and evaluate whether different feed combinations are suitable for the breeding environment, so as to avoid problems caused by the formula in actual use.
[0069] Among them, the first feed combination refers to a feed formula composed of a first feed and a second feed. In the embodiment of the present application, it can be understood as a feed plan that is pre-matched and configured according to the animal feeding needs, and is composed of a first feed that provides basic comprehensive nutrition and a plurality of groups of second feeds adjusted and matched according to different second feeding cycles. It is used to accurately meet the personalized feeding needs of animals in various time periods of the first feeding cycle through the adjustment combination of different second feeds while ensuring the basic nutritional balance.
[0070] Specifically, the specific feeding condition information of the farm can be collected, including data on the climate environment, geographical location, enclosure facilities, and other aspects. This information is collected to evaluate the adaptability of different second feeds in the farm. Then, based on the obtained feeding condition information, the degree of matching of each second feed with these conditions can be calculated. For example, the impact of feeding conditions on different feeds can be considered, and then the suitability of each second feed in the farm can be evaluated in a quantitative or qualitative manner. All second feeds whose matching degree with the current feeding conditions is lower than a preset threshold can be screened out. The second feeds that are retained are highly matched with the environmental conditions of the farm. This can prevent the adoption of unsuitable second feeds, which may cause feeding problems.
[0071] By combining the screened qualified second feed with the pre-configured first feed, multiple sets of different first feed combination schemes can be obtained. These combination schemes all contain the second feed optimized and selected for the current feeding conditions, thereby ensuring that the first feed combination can be successfully applied in the farm.
[0072] Based on the above embodiment, as an optional embodiment, the feeding conditions include weather conditions, geographical location, enclosure conditions and market price fluctuations. In step 103, the step of screening out the second feed that does not match the feeding conditions in each feed combination may further include the following steps: According to weather conditions, geographical location, enclosure conditions, market price fluctuations, feasibility of feeding supply, and each second feed, the matching degree of the second feed and the feeding conditions is calculated, and the second feed with a matching degree lower than a matching degree threshold is screened out.
[0073] Among them, weather conditions refer to various climate and environmental parameters that affect animal breeding. In the embodiments of the present application, they can be understood as meteorological conditions such as temperature, humidity, and rainfall in the area where the breeding farm is located, which are used to evaluate the adaptability of different feeds in the climate environment of the area. Animal breeding is sensitive to temperature and humidity, and climate differences in different regions can affect the suitability of the same feed. For example, cold northern regions are not suitable for the configuration of feed adapted to tropical climates. In addition, continuous drought or excessive rainfall can also affect feed allocation.
[0074] The geographical location refers to the location of the farm, which can be understood as the province, city, and relative location of the farm in the embodiment of the present application, and is used to evaluate the convenience of transportation and acquisition of different feeds. The distance of the farm from the raw material production area and the feed factory will affect the transportation cost of the feed; whether it is close to the grain production area relative to the surrounding area will also affect the availability of feed ingredients.
[0075] Among them, the enclosure conditions refer to the various enclosure facilities of the farm, which can be understood as the enclosure type, degree of automation, and feeding and drinking water equipment of the farm in the embodiment of this application, and are used to evaluate the feasibility of using different feeds in the farm. Open or closed enclosures will affect the storage and use of feed; farms with a high degree of automation require automatic and stable feed; feeding and drinking water equipment will also limit the form and use of feed.
[0076] Among them, market price fluctuations refer to the market price changes of feed raw materials and finished products. In the embodiments of this application, it can be understood as the market supply and demand relationship and price fluctuation level of the main raw materials of feed ingredients, which is used to evaluate the economic cost of different feed combinations. For example, the rise and fall of the prices of raw materials such as soybeans and corn and the stability of supply will directly affect the cost of feed; if the market price of the main raw materials used in a certain feed fluctuates violently, then the economic cost of the feed is very uncertain.
[0077] Among them, the feasibility of feeding supply refers to the stability and security of feed supply. In the embodiments of the present application, it can be understood as whether the market supply of different feed raw materials is sufficient and whether the supply process is stable and reliable, which is used to evaluate the difficulty of obtaining feed. Even if a certain feed composition is reasonable, but the market supply of its constituent raw materials is insufficient or the supply reliability is poor, it will make it difficult to obtain the feed stably. This will seriously affect the actual availability of the feed.
[0078] Specifically, experts can use qualitative or quantitative methods to score each second feed according to various influencing factors, and then calculate the total score of the matching degree. Set a reasonable matching degree threshold and screen out second feeds with a total score lower than the threshold. By calculating the matching degree by considering multiple factors such as weather conditions, geographical location, enclosure conditions, market price fluctuations, and the feasibility of feeding supply, a more comprehensive judgment can be made on the compatibility of the second feed with the feeding conditions, avoiding problems caused by the mismatch of a single factor and improving the comprehensiveness of the evaluation.
[0079] Based on the above embodiment, as an optional embodiment, weather conditions, geographical location, enclosure conditions, market price fluctuations, the feasibility of feeding supply, and each second feed are substituted into a preset formula to calculate the matching degree of each second feed with the feeding conditions; The preset formula is: In the formula, M represents the matching degree, P0 represents the basic price adaptation score, and P i represents the price fluctuation adaptation score of the second feed in the i-th second feeding cycle, ω i represents the price fluctuation weight coefficient of the second feeding cycle of the ith period, Q represents the adaptability score of weather conditions, R represents the adaptability score of geographical location, S represents the adaptability score of enclosure conditions, T represents the diversity score of the second feed type, C represents the cost coefficient, V0 represents the matching score of the second feed for the nutritional supplement of the first feed, V j represents the matching score of the jth nutrient component in the second feed, v j Represents the matching coefficient of the jth nutrient in the second feed.
[0080] Specifically, in order to select a cost-effective second feed combination amidst ever-changing market price fluctuations, while ensuring that the feed is adapted to specific weather conditions, geographical location and enclosure conditions, and is nutritionally complementary to the first feed, while ensuring the diversity of feed types.
[0081] First, the market prices of different feeds can be obtained through market research and their fluctuations can be monitored. P0 represents the basic price adaptation score of these feeds, and the possible price fluctuation P in the second feeding cycle can be calculated based on the market prediction model. i . This locks in the most cost-effective feed options in a dynamically changing market. Then, a weight ω is assigned to the price fluctuation of each feed i , which can reflect the impact of price changes in different time periods on total costs.
[0082] Next, the weather adaptability Q of the feed is evaluated, taking into account the impact of weather conditions on feed quality and animal health. By collecting climate data, feed with stable performance under specific weather conditions is selected. At the same time, the evaluation of geographical adaptability R ensures that the selected feed can adapt to the geographical environment of the farm, minimizing transportation costs and feed losses. The analysis of enclosure adaptability S ensures that the feed is suitable for the current enclosure structure and animal welfare requirements.
[0083] The diversity of feed types T is to ensure the comprehensiveness of feed formula to meet the different nutritional needs of animals and promote their healthy growth. Therefore, the nutritional balance is improved through a diversified feed combination. The cost coefficient C and the basic nutritional matching score V0, as well as the matching degree of various nutrients V j , which can ensure that while meeting cost-effectiveness, the feed can nutritionally complement the first feed and improve feed utilization.
[0084] Specifically, the preset formula is set in the form of a fraction, the numerator of which is a weighted score of factors such as price, weather adaptability, geographical adaptability, captive adaptability and feed type diversity, while the denominator takes into account the impact of cost and nutritional matching.
[0085] The first half of the numerator represents the comprehensive price adaptation score that takes into account the base price and expected price fluctuations, where P0 represents the base price adaptation score, P i represents the price fluctuation score in different feeding cycles, ω i is the corresponding weight coefficient. This allows us to capture price changes in the time dimension and make more economical feed choices accordingly.
[0086] The scores of weather adaptability Q, geographical adaptability R, enclosure adaptability S and feed diversity T respectively measure the suitability of feed under different environmental factors and the diversification of feed formula to ensure a stable supply and nutritional balance of feed, thus ensuring that the feed combination can adapt to the specific breeding environment and meet the diverse nutritional needs of animals.
[0087] The C in the denominator represents the cost coefficient, which is an adjustment factor used to reflect the cost-effectiveness rather than the absolute price. V0 represents the basic nutrition matching score, V j Indicates the matching scores of different nutrients, v j is the corresponding weight coefficient.
[0088] In summary, the preset formula can provide a comprehensive and dynamic evaluation framework to make scientific and cost-effective feed configuration decisions under changing market and environmental conditions. Through the preset formula, farmers can predict the long-term benefits of different feed combinations and can flexibly respond to market and environmental changes, thereby optimizing breeding costs while ensuring the nutritional value of feed.
[0089] For example, assume that the fattening pig farm is located in the North China Plain, where the climate is dry and rainy, with hot summers and cold winters. The farm is 100 kilometers away from the nearest feed processing plant, which means the transportation distance is long and the freight cost is high. The pens in the farm are semi-open and the ventilation conditions are average, but there are automatic feeding and drinking systems.
[0090] First, it is necessary to collect and analyze the specific feeding conditions of the farm, including climate data such as the annual average temperature, rainfall, and sunshine duration in the area; at the same time, obtain geographical location data such as the actual distance between the farm and the main raw material suppliers and feed factories, and transportation routes; and also evaluate the enclosure conditions such as the ventilation equipment of the enclosure and the level of automation.
[0091] At the same time, we should also pay attention to the market supply and demand and price fluctuations of major feed raw materials in the region, such as corn and soybean meal. We should assess the possible price fluctuation range and amplitude in the future. In this way, we can calculate the adaptability score of each candidate second feed under local climate, transportation distance, housing conditions, price fluctuations and other factors.
[0092] Taking a second feed (such as high-protein concentrated feed) as an example, this feed has high requirements for temperature and ventilation environment, and is not very suitable for the local dry and hot climate and semi-open and poorly ventilated pen conditions, so it can be given a low score; the main raw material of this feed is soybean meal, and it is predicted that the price will fluctuate greatly in the future and the cost will be unstable, so points need to be deducted; but this feed has high nutritional value and is highly matched with the first feed, so appropriate extra points can be given.
[0093] Substitute each score into the preset formula to finally calculate the overall matching score of the second feed. Repeat the same calculation and scoring for other second feed candidate varieties. Then set a reasonable matching threshold, filter out all second feeds below the threshold, and only keep high-quality second feeds that are highly compatible with the various feeding conditions of this farm.
[0094] For example, due to the constraints of raw material supply and climate, those second feeds with poor environmental adaptability and large price fluctuations will be screened out; while those second feeds with high nutritional value, stable price, and nutritional complementarity with the first feed can be retained. Finally, these qualified second feeds are combined with the configured first feed to obtain multiple first feed combination plans that meet various feeding conditions.
[0095] For example, suppose the farm has three second feed options: Second feed A: high-protein soybean meal concentrate; Second feed B: crude fiber corn cob feed; Second feed C: silage mixed fermentation feed The relevant parameters are assumed as follows: Price factor: The basic price scores P0 are 85, 90, and 80 points respectively. The fattening cycle is divided into three stages: front, middle, and back. The corresponding feed price fluctuation prediction scores P1 / P2 / P3 are: A feed is 4 / 4 / 5, B feed is 3 / 4 / 4, and C feed is 4 / 5 / 4. The weight coefficients ω1 / ω2 / ω3 of each stage are 0.3 / 0.3 / 0.4. The price factor weight α is 0.3.
[0096] Weather adaptability score Q: A material 75 points, B material 85 points, C material 80 points. The weather factor weight β is 0.2.
[0097] Geographical location adaptability score R: Since the raw material origin of B and C materials is closer to the farm, their scores are 90 and 85 points respectively, which are higher than the 80 points of A material. The weight of geographical factor γ is 0.15.
[0098] Adaptability score of enclosure conditions: The fermentation process of C material has low requirements for ventilation environment, with a score of 90 points, while A and B materials scored 75 and 80 points respectively. The weight of enclosure factor δ is 0.2.
[0099] Feed diversity score T: The combination of the three feeds provides a diversified source of protein, fiber, and silage, so the diversity score is 85. The diversity weight ∈ is 0.15.
[0100] The cost coefficient C is 0.25, and the basic nutrition matching scores V0 are 85, 80, and 90 points respectively. The three feeds have their own characteristics. The matching scores of the three nutritional indicators V1 / V2 / V3 of protein, lysine, and crude fiber are: A feed 90 / 85 / 70, B feed 75 / 75 / 90, C feed 80 / 70 / 85, and the weights of each nutritional indicator v1 / v2 / v3 are 0.4 / 0.3 / 0.3 respectively.
[0101] Substituting the above scores and coefficients into the preset formula, we get: Material A: M = (0.3 × (85 + 0.3 × 4 + 0.3 × 4 + 0.4 × 5) + 0.2 × 75 + 0.15 × 80 + 0.2 × 75 + 0.15 × 85) / (0.25 × (85 + 0.4 × 90 + 0.3 × 85 + 0.3 × 70)) = 384.55 / 92.125 = 4.17; Material B: M = (0.3 × (90 + 0.3 × 3 + 0.3 × 4 + 0.4 × 4) + 0.2 × 85 + 0.15 × 90 + 0.2 × 80 + 0.15 × 85) / (0.25 × (80 + 0.4 × 75 + 0.3 × 75 + 0.3 × 90)) = 390.10 / 88.25 = 4.42; Material C: M = (0.3 × (80 + 0.3 × 4 + 0.3 × 5 + 0.4 × 4) + 0.2 × 80 + 0.15 × 85 + 0.2 × 90 + 0.15 × 85) / (0.25 × (90 + 0.4 × 80 + 0.3 × 70 + 0.3 × 85)) = 387.45 / 93.25 = 4.15; It can be seen from the calculation that under this example condition, the second feed B has the highest comprehensive matching score of 4.42 points, which can be used as the preferred solution. Of course, in actual situations, various parameters can be dynamically adjusted according to real-time data during the inspection period to continuously optimize the formula solution.
[0102] Step 104: Evaluate each first feed combination to obtain a target feed combination that meets the evaluation criteria, and generate a feed formula based on the target feed combination.
[0103] Specifically, each first feed combination obtained by preliminary matching may still be not completely reasonable. The nutritional structure of different combinations will also be different. Directly using the unevaluated first feed combination cannot guarantee its rationality and degree of optimization. Therefore, a planning model can be constructed to optimize the feed structure as a whole while maximizing the nutritional needs of animals to obtain an ideal target formula. Finally, the first feed combination that is highly consistent with the optimized feed combination is selected as the target, and a scientific feed formula that has been fully evaluated and optimized can be obtained. This formula can meet the nutritional needs of animals while taking into account cost-effectiveness, and accurately adapt to the current feeding environment conditions, with higher rationality and practical value.
[0104] For example, for the feeding needs of 1,000 fattening pigs, the total demand for various nutrients during the entire 120-day fattening cycle is estimated based on the type, number and growth stage of the pigs, and a formula plan containing the first feed and multiple groups of second feed is preliminarily formulated. Two matrix models can be further constructed: the first matrix describes the percentage of each nutrient in common feed raw materials; the other second matrix clearly lists the nutritional requirements of 1,000 fattening pigs in the early, middle and late growth stages.
[0105] On this basis, a nonlinear programming model was established, with the raw material ratio in the first matrix as the decision variable, the demand in the second matrix as the constraint condition, the minimization of total cost as the objective function, and the reasonable value range of each nutrient as an additional constraint. The model was solved using algorithms such as the simplex method to obtain the target second feed combination, in which the ratio of each raw material can meet the nutritional needs of the fattening pig group to the greatest extent, while the total feed cost is minimized.
[0106] This optimization result indicates that the proportion of soybean meal should be appropriately increased in the first feed to meet the protein demand during the peak growth period; in the later sub-stage, corn should be appropriately reduced and cottonseed meal, sugar residue, etc. should be increased to control the excess intake of calories and fat. The previous first feed combination schemes were compared with the target combination, and their similarity in nutritional structure was calculated, and finally a target feed combination with high similarity to the optimization result was determined.
[0107] According to the specific ratio data of each raw material in the target combination, we can optimize the actual feed formula as follows: The first feed formula: corn 50%, soybean meal 22%, cottonseed meal 8%, bran 10%, calcium hydrogen phosphate 2%, stone powder 1%, salt 0.3%, gibberellic acid 0.2%, vitamin premix 0.5%. Among them, the nutritional level: metabolizable energy 3200kcal / kg, crude protein 18%, crude fat 5%, crude fiber 6%, calcium 0.9%, phosphorus 0.7%.
[0108] Second feed combination: Early sub-cycle (30 days): First sub-cycle: 45% corn bran, 15% soybean meal, 10% cottonseed meal, 30% bran; Second sub-cycle: 60% corn, 20% soybean meal, 20% bran.
[0109] Medium-term sub-cycle (45 days): The first sub-cycle: 65% corn, 20% soybean meal, 12% cottonseed meal, 2% calcium hydrogen phosphate, 1% yeast powder; the second and third sub-cycles: 70% corn, 16% soybean meal, 10% cottonseed meal, 2% calcium hydrogen phosphate, and 2% fish meal.
[0110] Late sub-cycle (45 days): The first sub-cycle: 55% corn, 12% soybean meal, 18% cottonseed meal, 8% sugar residue, 5% corn cobs, and 2% calcium hydrogen phosphate; The second and third sub-cycles: 50% corn, 10% soybean meal, 20% cottonseed meal, 12% sugar residue, 6% cottonseed meal hulls, and 2% calcium hydrogen phosphate.
[0111] Based on the above embodiment, as an optional embodiment, in step 104: evaluating each first feed combination to obtain a target feed combination that meets the evaluation criteria may further include the following steps: Step 301: constructing a first matrix of feeds and corresponding nutrients in each first feed combination, and a second matrix of animals and corresponding nutrients required by the animals.
[0112] Among them, the first matrix refers to a data matrix representing the content of each nutrient component in different feeds. In the embodiment of the present application, it can be understood as a two-dimensional table that represents the nutritional composition data of each candidate feed in a standardized matrix form, which is used to establish a corresponding relationship between feed types and nutrients, and provide quantitative input data of feed nutrients for the subsequent establishment of a mathematical model.
[0113] Furthermore, the first matrix uses feed types as row labels and nutrient types as column labels, and the matrix elements correspond to the percentage content of the nutrient in the feed. The first matrix can intuitively reflect the nutrient composition of different feeds and provide data support for formulating feed formulas. Its standardized matrix form is also conducive to data calculation and model establishment, making it easier to adjust the ratio of different feeds to achieve nutritional balance.
[0114] For example, there are M raw materials and N growth nutrient contents, and an N×M matrix Q is constructed. ij : The corresponding information is presented in the form of Table 1. Q1 (metabolizable energy) Q2 (crude protein) …… Qm(salt) M1(Corn) 14.27 8.7 0.001 M2(wheat bran) 9.37 15.7 0.001 …… Mn(NaCl) 0.001 0.001 98
[0115] Table 1 Among them, the second matrix refers to a data matrix representing the requirements of different animals for various nutrients. In the embodiment of the present application, it can be understood as a two-dimensional table that represents the nutritional requirement data of various types of animals in a standardized matrix form, which is used to establish a corresponding relationship between animal species and nutritional requirements, and provide quantitative input data for animal nutritional requirements for the subsequent establishment of a mathematical model.
[0116] Furthermore, the second matrix uses animal species as row labels and nutrients as column labels, and the matrix elements correspond to the animal's demand for the nutrient. The second matrix can intuitively reflect the nutritional needs of different animals and provide target data for formulating feed formulas. Its standardized matrix form is also conducive to data calculation and model establishment, making it easier to adjust feed ratios according to animal needs.
[0117] For example, suppose there are K animals and N growth nutrient requirements, and a K×M matrix P is constructed. ij : The corresponding information is presented in the form of Table 2.
[0118] Table 2 Nutritional requirements are b j =b 1j K1+b 2j K2+…+b kj K k ,j=1,2,…,m, and the corresponding expressions are shown in Table 3. Q1 (metabolizable energy) Q2 (crude protein) …… Qm(salt) Nutritional requirements 1280 860 4.8
[0119] Table 3 Step 302: construct a multivariate programming model consisting of inequalities corresponding to the nutrients according to the first matrix, the second matrix and the constraints of the nutrients.
[0120] Among them, the multivariate programming model refers to a mathematical optimization model containing multiple variables and constraints. In the embodiment of the present application, it can be understood that, under the premise of satisfying the nutritional component constraints, the economic cost is minimized as the goal, the feed ratio is used as the decision variable, and the animal nutritional needs are used as the constraints. The mathematical model determines the optimal feed formula through iterative calculation optimization. It is used to provide a scientific method that can take into account both economic benefits and nutritional balance, and solve the optimal feed formula plan that is economical and nutritionally reasonable.
[0121] Furthermore, the constraints on nutrients refer to the limiting conditions on the range of values of each nutrient in the feed. In the embodiments of the present application, it can be understood that according to the requirements of feed nutrition standards, inequalities are used to describe the upper and lower limits of the proportion of each nutrient in the feed formula, which is used to ensure that the formula meets the basic requirements for the reasonable values of each nutrient, and provide constraints for limiting the range of variables for the multivariate programming model.
[0122] The nutrient constraints limit the content ratio range of various nutrients such as protein, fat, vitamins, etc. in the feed formula through a set of inequalities, so that it can meet the nutritional requirements and take into account the economic cost. These inequality conditions provide constraints on decision variables for the multivariate programming model, so that the variable values are within a reasonable range and avoid non-optimal solutions of nutritional imbalance. Therefore, the nutrient constraints provide necessary limiting conditions for building a reasonable planning model.
[0123] Specifically, the first matrix and the second matrix have provided standardized feed data and animal requirement data. For each nutrient component, it is necessary to establish inequality constraints that limit its value range to form a constraint group to ensure that each nutrient component is within a scientific and reasonable range. A multivariate programming model is established with the feed ratio in the first matrix as the decision variable and the animal nutritional requirements in the second matrix as the objective function.
[0124] Exemplarily, a multivariate programming model can be constructed: The corresponding information is presented in Table 4. M1(Corn) M2(wheat bran) …… Mn(NaCl) Upper limit 50 20 3 Lower limit 20 10 0.1
[0125] Table 4 Among them, a ij represents the percentage of j nutrients contained in the raw materials of the i-th formula, b k It represents the nutrient content specified in the feeding standards, and m is the number of raw material types used.
[0126] Step 303: Solve the multivariate programming model to obtain a second feed combination.
[0127] Among them, the second feed combination refers to the feed formula obtained by optimizing the calculation of the multivariate programming model. In the embodiment of the present application, it can be understood as the optimal feed combination plan obtained by solving the multivariate programming model with the goal of comprehensively considering economic costs and nutritional needs. It is used to minimize the economic cost of the feed formula while ensuring that the nutritional needs of animals are met, and to obtain an optimal feed configuration result that takes into account both nutritional balance and economic benefits.
[0128] Specifically, a multivariate programming model has been established, which includes economic objective functions, feed ratio decision variables, and animal nutrition constraints. To obtain the optimal solution, algorithms such as the simplex method in linear programming can be used to iteratively solve the model and gradually adjust the variables to minimize the objective function. By solving the model, a second feed combination scheme that has been fully calculated and optimized can be obtained. Compared with the first feed combination that was initially matched, this algorithm configuration method takes economic cost factors into more full consideration, and minimizes feed costs while ensuring that nutritional needs are met.
[0129] Step 304: Calculate the similarity between each first feed combination and the second feed combination, and determine the first feed combination with a similarity greater than a similarity threshold as a target feed combination that meets the evaluation criteria.
[0130] Specifically, the cosine similarity algorithm or other methods can be used to calculate the similarity between the first feed combination and the second feed combination based on the difference in the proportion of each nutrient content between the two. Then, the similarity between each first feed combination and the second feed combination is compared, and the first feed combination with a similarity greater than a preset threshold is selected as the target feed combination with a high degree of consistency with the optimization result and a more ideal one.
[0131] Calculating the similarity can determine the first feed combination that best matches the optimization result, which not only preserves the operability of the first feed combination, but also absorbs the advantages of the second feed combination, achieving the effect of integrating experience configuration and algorithm optimization, and ultimately obtaining a target feed combination that is both empirically supported and scientifically reasonable.
[0132] Based on the above embodiment, as an optional embodiment, if there is no first feed combination with a similarity greater than a similarity threshold, the step of determining the first feed according to the animal information is re-executed.
[0133] Specifically, if the calculated similarities between each first feed combination and the second feed combination do not exceed the preset similarity threshold, it means that there is a large deviation between the existing first feed combination and the optimization result. At this time, it is necessary to return to the step of matching feed according to animal nutritional needs and adjust the generation rules of the first feed combination, such as changing the maximum and minimum content of a single feed, increasing or decreasing the types of feed, etc., to generate a new candidate first feed combination. Repeat the previous calculation process until a first feed combination with a sufficiently high similarity to the second feed combination is obtained. In this way, it is possible to avoid directly using a first feed combination that is too different from the optimization result, thereby obtaining a better quality and more economical target feed combination.
[0134] Reference Figure 2 The present application also provides a feed formula generation system, comprising: A first feed determination module, used to obtain animal information in the farm, and determine a first feed according to the animal information, where the first feed is used to meet the nutritional needs of the animals in a first feeding cycle; a second feed determination module, configured to determine at least one group of second feeds according to the first feeds, wherein the second feeds are used to meet the food demand of the animal in a second feeding cycle, wherein the second feeding cycle is a sub-cycle of the first feeding cycle; A feed combination generating module, used for obtaining the feeding conditions of the breeding farm, screening out the second feeds that do not match the feeding conditions in each feed combination, and combining each screened out second feed with the first feed to obtain different first feed combinations; The feed formula generation module is used to evaluate each first feed combination, obtain a target feed combination that meets the evaluation criteria, and generate a feed formula based on the target feed combination.
[0135] Based on the above embodiment, as an optional embodiment, the first feed determination module is also used to determine the nutritional needs of the animal in the first feeding cycle according to the animal type, animal number and animal growth stage in the animal information; and match the first feed corresponding to the nutritional needs.
[0136] Based on the above embodiment, as an optional embodiment, the second feed determination module is also used to determine the food demand of the animal in the first feeding cycle according to the animal species and the number of animals; determine the food demand of the animal in each second feeding cycle according to the food demand of the animal in the first feeding cycle; determine at least one group of second feed according to the food demand of the animal in each second feeding cycle.
[0137] Based on the above embodiment, as an optional embodiment, the feed combination generation module is further used to calculate the matching degree between the second feed and the feeding conditions according to the weather conditions, the geographical location, the enclosure conditions, the market price fluctuations, the feasibility of the feeding supply, and each of the second feeds; and screen out the second feeds whose matching degree is lower than the matching degree threshold.
[0138] Based on the above embodiment, as an optional embodiment, the feed combination generation module is further used to substitute the weather conditions, the geographical location, the enclosure conditions, the market price fluctuations, the feasibility of the feeding supply, and each of the second feeds into a preset formula to calculate the matching degree of each of the second feeds with the feeding conditions; Wherein, the preset formula is: Where M represents the matching degree, P0 represents the basic price adaptation score, and Pi represents the price fluctuation adaptation score of the second feed in the i-th second feeding cycle, ω i represents the price fluctuation weight coefficient of the i-th second feeding cycle, Q represents the adaptability score of weather conditions, R represents the adaptability score of the geographical location, S represents the adaptability score of enclosure conditions, T represents the diversity score of the second feed type, C represents the cost coefficient, V0 represents the matching score of the second feed for the nutritional supplement of the first feed, V j represents the matching score of the jth nutrient component in the second feed, V j Represents the matching coefficient of the jth nutrient component in the second feed.
[0139] Based on the above embodiment, as an optional embodiment, the feed formula generation module is further used to construct a first matrix of feeds and corresponding nutrients in each of the first feed combinations, and a second matrix of the animals and the nutrients required by the animals; construct a multivariate programming model consisting of inequalities corresponding to the nutrients according to the first matrix, the second matrix and the constraints of the nutrients; solve the multivariate programming model to obtain a second feed combination; calculate the similarity between each of the first feed combinations and the second feed combination, and determine the first feed combination whose similarity is greater than a similarity threshold as the target feed combination that meets the evaluation criteria.
[0140] Based on the above embodiment, as an optional embodiment, the feed formula generation module is further used to re-execute the step of determining the first feed according to the animal information if there is no first feed combination with the similarity greater than the similarity threshold.
[0141] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0142] The embodiment of the present application also provides a computer storage medium, which can store multiple instructions. The instructions are suitable for being loaded by a processor and executing the method for generating a feed formula as in the above embodiment. The specific execution process can refer to the specific description of the embodiment shown, which will not be repeated here.
[0143] The present application also discloses an electronic device. Figure 3 , Figure 3The electronic device 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .
[0144] The communication bus 302 is used to realize the connection and communication between these components.
[0145] The user interface 303 may include a display interface and a camera interface. The optional user interface 303 may also include a standard wired interface and a wireless interface.
[0146] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0147] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface diagrams and applications, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.
[0148] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may optionally also be at least one storage device located away from the aforementioned processor 301. Refer to Figure 3 , the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program for a method for generating a feed formula.
[0149] exist Figure 3 In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 301 can be used to call an application program storing a method for generating a feed formula in the memory 305, and when executed by one or more processors 301, the electronic device 300 executes one or more of the methods described in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0150] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0151] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0152] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0153] 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0154] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0155] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.
[0156] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A method for generating a feed formula, characterized in that: include: Acquire animal information in a breeding farm, and determine a first feed according to the animal information, where the first feed is used to meet the nutritional needs of the animals in a first feeding cycle; Determine at least one group of second feed according to the first feed, wherein the second feed is used to meet the food demand of the animal in a second feeding cycle, and the second feeding cycle is a sub-cycle of the first feeding cycle; Acquiring feeding conditions of the breeding farm, screening out second feeds that do not match the feeding conditions in each feed combination, and combining each screened out second feed with the first feed to obtain a different first feed combination; Each first feed combination is evaluated to obtain a target feed combination that meets the evaluation criteria, and a feed formula is generated according to the target feed combination.
2. The method for generating a feed formula according to claim 1, characterized in that: The step of determining, based on the animal information, a first feed that satisfies the nutritional needs of the animal in a first feeding cycle comprises: Determining the nutritional requirements of the animal in a first feeding cycle according to the animal species, animal quantity, and animal growth stage in the animal information; A first feed that matches the nutritional requirement.
3. The method for generating a feed formula according to claim 1, characterized in that: The step of determining at least one group of second feed according to the first feed comprises: Determining the food requirement of the animal in a first feeding cycle according to the animal species and the number of animals; The food demand of the animal in each second feeding cycle is determined according to the food demand of the animal in the first feeding cycle; and at least one group of second feed is determined according to the food demand of the animal in each second feeding cycle.
4. The method for generating a feed formula according to claim 1, characterized in that: The feeding conditions include weather conditions, geographical location, enclosure conditions and market price fluctuations, and the step of screening out the second feed that does not match the feeding conditions in each feed combination includes: Calculating the matching degree between the second feed and the feeding condition according to the weather condition, the geographical location, the enclosure condition, the market price fluctuation, the feasibility of the feeding supply, and each of the second feeds; The second feed whose matching degree is lower than the matching degree threshold is filtered out.
5. The method for generating a feed formula according to claim 4, characterized in that: The calculating the matching degree between the second feed and the feeding condition according to the weather condition, the geographical location, the enclosure condition, the market price fluctuation, the feasibility of the feeding supply, and each of the second feeds comprises: Substituting the weather conditions, the geographical location, the enclosure conditions, the market price fluctuations, the feasibility of the feeding supply, and each of the second feeds into a preset formula to calculate the matching degree of each of the second feeds with the feeding conditions; Wherein, the preset formula is: Where M represents the matching degree, P0 represents the basic price adaptation score, and P i represents the price fluctuation adaptation score of the second feed in the i-th second feeding cycle, ω i represents the price fluctuation weight coefficient of the i-th second feeding cycle, Q represents the adaptability score of weather conditions, R represents the adaptability score of the geographical location, S represents the adaptability score of enclosure conditions, T represents the diversity score of the second feed type, C represents the cost coefficient, V0 represents the matching score of the second feed for the nutritional supplement of the first feed, V j represents the matching score of the jth nutrient component in the second feed, V j Represents the matching coefficient of the jth nutrient component in the second feed.
6. The method for generating a feed formula according to claim 1, characterized in that: The step of evaluating each first feed combination to obtain a target feed combination that meets the evaluation criteria includes: Constructing a first matrix of feeds and corresponding nutrients in each of the first feed combinations, and a second matrix of the animals and corresponding nutrients required by the animals; According to the first matrix, the second matrix and the constraints of the nutrients, a multivariate programming model consisting of inequalities corresponding to the nutrients is constructed; Solving the multivariate programming model to obtain a second feed combination; The similarity between each of the first feed combinations and the second feed combinations is calculated, and the first feed combination with a similarity greater than a similarity threshold is determined as the target feed combination that meets the evaluation criteria.
7. The method for generating a feed formula according to claim 6, characterized in that: The method further comprises: If there is no first feed combination whose similarity is greater than the similarity threshold, the step of determining the first feed according to the animal information is performed again.
8. A system for generating a feed formula, characterized in that: include: A first feed determination module, used for obtaining animal information in the farm, and determining a first feed according to the animal information, wherein the first feed is used to meet the nutritional needs of the animals in a first feeding cycle; a second feed determination module, configured to determine at least one group of second feeds according to the first feeds, wherein the second feeds are used to meet the food demand of the animal in a second feeding cycle, wherein the second feeding cycle is a sub-cycle of the first feeding cycle; A feed combination generating module, used for obtaining the feeding conditions of the breeding farm, screening out the second feeds that do not match the feeding conditions in each feed combination, and combining each screened out second feed with the first feed to obtain a different first feed combination; The feed formula generation module is used to evaluate each first feed combination, obtain a target feed combination that meets the evaluation criteria, and generate a feed formula based on the target feed combination.
9. An electronic device, characterized in that: It includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method as described in any one of claims 1-7.
10. A computer storage medium, characterized in that: The computer storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is executed.
