Real-time feed consumption monitoring management method and system
By receiving feed management instructions, obtaining historical data sets to calculate the feed rate and deterioration ratio, and using feed supplementation institutions to supplement fresh feed, solving the problem of deterioration and insufficient in feed monitoring and management, and achieving efficient management of the ranch.
Patent Information
- Application Number
- CN202510484621.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-17
- Publication Date
- 2025-07-25
AI Technical Summary
The prior art cannot effectively monitor the remaining feed and deteriorated feed in the food tank, resulting in untimely feed replenishment, which can easily lead to deterioration or insufficient feed, and the optimal management of the ranch cannot be achieved.
By receiving feed management instructions, obtaining historical data sets, calculating the initial feeding rate and spoilage ratio, using feed supplementation institutions to supplement fresh feed, and monitoring spoilage in combination with feed detection institutions to achieve real-time management.
Improve the monitoring and management efficiency of real-time feed consumption, ensure sufficient and fresh feed residual, reduce spoilage, and optimize ranch management.
Smart Images

Figure CN120374296A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of feed monitoring and management, and particularly to a method, a system, an electronic device, and a computer-readable storage medium for real-time monitoring and management of feed consumption. Background Art
[0002] The monitoring and management of real-time feed consumption play an important role in a ranch. It can monitor the current status of the feed at any time and timely reflect the remaining amount of the current feed. With the development of technology, the monitoring and management of feed have gradually become automated, saving human resources and bringing great convenience to the management of the ranch.
[0003] Although the monitoring and management of real-time feed consumption play an important role in a ranch, the current monitoring and management cannot dynamically monitor the remaining feed in the feed trough and timely remove the deteriorated feed. Moreover, due to the untimely replenishment of feed, it is easy to cause the situation of feed deterioration or insufficient feed, and the optimal management of the ranch cannot be achieved. Summary of the Invention
[0004] The present invention provides a method for real-time monitoring and management of feed consumption, and its main purpose is to improve the efficiency of monitoring and management of real-time feed consumption.
[0005] To achieve the above object, a method for real-time monitoring and management of feed consumption provided by the present invention includes:
[0006] Receiving a feed management instruction, and based on the feed management instruction, identifying the animal population to be managed and the feed management system. Among them, the feed management system consists of a data collection unit and a feed management unit. Among them, the animal population consists of the target animal species and the target animal quantity. The feed management unit includes a feed management mechanism for managing the target feed. Among them, the feed management mechanism includes: a feed aggregation mechanism, a feed removal mechanism, a feed replenishment mechanism, and a feed detection mechanism;
[0007] Confirming to receive a data collection instruction from the data collection unit, obtaining a historical data set based on the data collection instruction, obtaining the current time, and obtaining one or more identification data sets according to the current time and the historical data set. Among them, the current time consists of the first date and the first time. The historical data set includes historical data of multiple different ranches, and the historical data consists of a detection date, a detection time, a reference animal species, and a reference animal quantity;
[0008] Identifying a target identification data set in the one or more identification data sets by using the target animal species, and identifying an initial feed remaining amount time series set in the target identification data set based on the first date;
[0009] Confirm multiple target feed surplus time periods in the initial feed surplus time series set based on the first time;
[0010] Use each target feed surplus time period in the multiple target feed surplus time periods to obtain the corresponding feed surplus, calculate the initial feeding rate based on the feed surplus and the target feed surplus time period corresponding to the feed surplus, summarize the initial feeding rates to obtain an initial feeding rate set, and calculate the predicted feeding rate based on the initial feeding rate set;
[0011] Obtain the target feed, obtain the feed deterioration gray value based on the target feed surplus time period corresponding to the first date and the predicted feeding rate, obtain the target deterioration ratio based on the feed deterioration gray value, the target feed, and the feed detection agency, and complete the monitoring and management of the real-time consumption of the feed after confirming to supplement the pre-constructed fresh feed using the feed supplement agency.
[0012] Optionally, the obtaining the current time and obtaining one or more identification data sets according to the current time and the historical data set includes:
[0013] Extract historical data from the historical data set in sequence, and perform the following operations on the extracted historical data:
[0014] Obtain reference information based on the historical data, where the reference information includes: longitude, latitude, animal age ratio coefficient, animal gender ratio coefficient;
[0015] Perform an identification operation on the historical data using the reference information to obtain initial identification data, where the initial identification data includes: longitude, latitude, animal age ratio coefficient, animal gender ratio coefficient, detection date, detection time, reference animal species, and reference animal quantity;
[0016] Summarize the initial identification data to obtain an initial identification data set;
[0017] Perform a classification operation on the initial identification data set using the reference animal species corresponding to the initial identification data to obtain one or more identification data sets.
[0018] Optionally, the performing a classification operation on the initial identification data set using the reference animal species corresponding to the initial identification data to obtain one or more identification data sets includes:
[0019] Obtain the reference order of the reference information, sort the initial identification data in the initial identification data set based on the reference order to obtain an initial identification data sequence, and extract one or more identification data sets from the initial identification data sequence according to the reference animal species, where the first identification data in the initial identification data sequence is:
[0020] S i= [A, B, C, D, F, G, H, I]
[0021] Among them, S i represents the i-th first identification data in the initial identification data sequence. A represents the reference animal species, B represents the detection date, C represents the detection time, D represents the number of reference animals, F represents the longitude, G represents the latitude, H represents the animal age ratio coefficient, and I represents the animal gender ratio coefficient.
[0022] Optionally, the confirmation of the initial feed balance time series set in the target identification data set based on the first date includes:[[]]
[0023] Obtain the current pasture, construct the current pasture information matrix based on the current pasture, construct a set of identification information matrices based on the target identification data set, sequentially extract the identification information matrices from the set of identification information matrices, and calculate the similarity values using a pre-constructed similarity formula, the extracted identification information matrices, and the current pasture information matrix. Aggregate the similarity values to obtain a similarity set corresponding to the set of identification information matrices. Among them, the current pasture information matrix is:[[]]
[0024]
[0025] Among them, U represents the current pasture information matrix, α represents the longitude of the current pasture, β represents the latitude of the current pasture, γ represents the reference animal species of the current pasture, δ represents the animal age ratio coefficient of the current pasture, ε represents the animal gender ratio coefficient of the current pasture, ∈ represents the date of the current pasture, and θ represents the number of reference animals;[[]]
[0026] Extract a high similarity set from the similarity set, where the high similarity set is a set of similarity values greater than a preset similarity threshold;[[]]
[0027] Confirm the initial feed balance time series set based on the high similarity set. The initial feed balance time series set includes multiple initial feed balance time series, and the detection time and feed balance in the initial feed balance time series correspond one by one.[[]]
[0028] Optionally, the confirmation of multiple target feed balance periods in the initial feed balance time series set based on the first time includes:[[]]
[0029] Obtain multiple time differences using the first time and the initial feed balance time series set. The time difference is the difference between the first time and the detection time in the initial feed balance time series set;[[]]
[0030] Extract the minimum difference from the multiple time differences, and confirm the detection time corresponding to the extracted minimum difference as the first time point;[[]]
[0031] Obtain one or more second time points using a first time point, where the second time points are detection times adjacent to the first time in the initial feed remaining time series, and obtain an optimal second time point using the one or more second time points, the first time point, and the initial feed remaining time series;
[0032] Construct a target feed remaining time period based on the optimal second time point and the first time point.
[0033] Optionally, the calculating the initial feeding rate according to the feed remaining amount and the target feed remaining time period corresponding to the feed remaining amount includes:
[0034] Wherein, the calculation formula of the initial feeding rate is as follows:
[0035]
[0036] Wherein, v represents the initial feeding rate, m1 represents the total mass after adding feed mass at the first time point, m2 represents the mass of the feed remaining amount at the optimal second time point, represents a preset mass correction coefficient, t2 represents the first time point, and t1 represents the optimal second time point.
[0037] Optionally, the obtaining the feed deterioration gray value based on the target feed remaining time period corresponding to the first date and the predicted feeding rate includes:
[0038] Confirm the target feed remaining time period using the initial feed remaining time series, and obtain the target feed remaining amount based on the target feed remaining time period;
[0039] Calculate the target feeding time using the predicted feeding rate and the target feed remaining amount;
[0040] Compare the target feeding time with a preset standard feeding time;
[0041] If the target feeding time is greater than the standard feeding time, confirm that the feed corresponding to the target feed remaining amount has deteriorated;
[0042] Obtain a feed remaining amount image based on the target feeding time and the target feed remaining amount, and perform a graying operation on the feed remaining amount image using a pre-constructed graying unit to obtain a gray feed image;
[0043] Obtain the feed deterioration gray value based on the gray feed image.
[0044] Optionally, the similarity formula is as follows:
[0045]
[0046] Wherein, X represents the similarity value, n represents that there are n maximum eigenvalues in both the current ranch information matrix and the identification information matrix, Di represents the i-th largest eigenvalue in the current pasture information matrix, M i represents the i-th largest eigenvalue in the identification information matrix, and max(*) represents the symbol for taking the maximum value.
[0047] Optionally, after confirming to supplement the pre-constructed fresh feed using the feed supplement mechanism according to the target spoilage ratio, it includes:
[0048] Compare the target spoilage ratio with the preset spoilage ratio threshold;
[0049] If the target spoilage ratio is greater than or equal to the spoilage ratio threshold, use the feed aggregation mechanism to aggregate the target feed to obtain spoiled feed, and use the feed removal mechanism to remove the spoiled feed, and use the feed supplement mechanism to supplement the fresh feed;
[0050] If the target spoilage ratio is less than the spoilage ratio threshold, perform a stepping operation on the target feed using the pre-acquired stepping distance and the feed aggregation mechanism to obtain stepped feed, and use the stepped feed to obtain a stepped spoilage ratio, and summarize the stepped spoilage ratios to obtain a stepped spoilage ratio set;
[0051] Calculate a reference spoilage ratio using the stepped spoilage ratio set and the spoilage ratio threshold, where the reference spoilage ratio is as follows:
[0052]
[0053] where represents the reference spoilage ratio, W represents the largest stepped spoilage ratio in the stepped spoilage ratio set, and M represents the spoilage ratio threshold;
[0054] Obtain an update detection frequency ratio sequence for update, and confirm a target detection frequency in the update detection frequency ratio sequence based on the reference spoilage ratio;
[0055] Obtain a detected spoilage ratio based on the target detection frequency and the feed detection mechanism, use the detected spoilage ratio as the target spoilage ratio, and return to the step of comparing the target spoilage ratio with the preset spoilage ratio threshold until it is confirmed to supplement the pre-constructed fresh feed using the feed supplement mechanism.
[0056] To achieve the above object, the present invention also provides a feed real-time consumption monitoring and management system, including:
[0057] The feed management module is used to receive a feed management instruction, and based on the feed management instruction, confirm the animal population to be managed and the feed management system. Among them, the feed management system consists of a data collection unit and a feed management unit. Among them, the animal population consists of a target animal species and a target animal quantity. The feed management unit includes a feed management agency for managing the target feed. Among them, the feed management agency includes a feed aggregation agency, a feed removal agency, a feed supplementation agency, and a feed detection agency;
[0058] The data reference module is used to confirm and receive a data collection instruction from the data collection unit, obtain a historical data set based on the data collection instruction, obtain the current time, and obtain one or more identification data sets according to the current time and the historical data set. Among them, the current time consists of a first date and a first time. The historical data set includes historical data of multiple different pastures, and the historical data consists of a detection date, a detection time, a reference animal species, and a reference animal quantity;
[0059] The data acquisition module is used to confirm a target identification data set in the one or more identification data sets by using the target animal species, confirm an initial feed surplus time series set in the target identification data set based on the first date, confirm multiple target feed surplus time periods in the initial feed surplus time series set based on the first time, obtain the corresponding feed surplus for each target feed surplus time period in the multiple target feed surplus time periods, calculate the initial feeding rate according to the feed surplus and the target feed surplus time period corresponding to the feed surplus, summarize the initial feeding rates to obtain an initial feeding rate set, and calculate a predicted feeding rate based on the initial feeding rate set;
[0060] The feed detection module is used to obtain the target feed, obtain the feed deterioration gray value based on the target feed surplus time period corresponding to the first date and the predicted feeding rate, obtain the target deterioration ratio based on the feed deterioration gray value, the target feed, and the feed detection agency, and complete the monitoring and management of the real-time consumption of the feed after confirming to supplement the pre-constructed fresh feed by using the feed supplementation agency according to the target deterioration ratio.
[0061] To solve the above problems, the present invention also provides an electronic device, and the electronic device includes:
[0062] A memory that stores at least one instruction; and
[0063] A processor that executes the instruction stored in the memory to implement the above-mentioned method for monitoring and managing the real-time consumption of feed.
[0064] To solve the above problems, the present invention also provides a computer-readable storage medium storing at least one instruction, which is executed by a processor in an electronic device to implement the above-mentioned method for monitoring and managing real-time feed consumption.
[0065] To solve the problems described in the background art, the present invention confirms receiving a data collection instruction from a data collection unit, obtains a historical data set based on the data collection instruction. The historical data in the historical data set has a reference effect on the management of the current ranch and can improve the management efficiency of the current ranch. It uses the target animal species to confirm a target identification data set from the one or more identification data sets, and screens data using the target animal species in the one or more identification data sets, which can quickly and correctly screen the identification data set. Based on the first time, multiple target feed balance time periods are confirmed in the initial feed balance time series set. Using the first time as a limit, the range of screening the identification data set is narrowed, improving the efficiency. For each target feed balance time period in the multiple target feed balance time periods, the corresponding feed balance is obtained. After confirming the corresponding feed balance, the amount of feed to be added can be determined. According to the feed balance and the target feed balance time period corresponding to the feed balance, the initial feeding rate is calculated, and the initial feeding rates are summarized to obtain an initial feeding rate set. Based on the initial feeding rate set, the predicted feeding rate is calculated. Using the predicted feeding rate, the time consumed by the target animal species in the current ranch to consume the feed balance can be predicted. According to the calculated time, a supplementary operation can be performed on the feed balance predictably to obtain supplementary feed to ensure the sufficiency of the feed balance. The target feed is obtained, and the feed deterioration gray value is obtained based on the target feed balance time period corresponding to the first date and the predicted feeding rate. Based on the feed deterioration gray value, the target feed, and the feed detection agency, the target deterioration ratio is obtained. Real-time detection according to the change of the target deterioration ratio can remove the deteriorated feed at the first time when the feed balance deteriorates to ensure the freshness of the feed balance. After confirming to supplement the pre-constructed fresh feed using the feed supplement mechanism according to the target deterioration ratio, the monitoring and management of real-time feed consumption are completed. Therefore, the main purpose of the present invention is to improve the efficiency of monitoring and managing real-time feed consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 It is a flowchart of the method for monitoring and managing real-time feed consumption provided by an embodiment of the present invention;
[0067] Figure 2 It is a functional module diagram of the system for monitoring and managing real-time feed consumption provided by an embodiment of the present invention;
[0068] Figure 3 It is a structural diagram of an electronic device for implementing the method for monitoring and managing real-time feed consumption provided by an embodiment of the present invention.
[0069] The realization, functional features and advantages of the present invention will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners
[0070] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0071] The embodiments of the present application provide a method for real-time monitoring and management of feed consumption. The execution subject of the method for real-time monitoring and management of feed consumption includes, but is not limited to, at least one of electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiments of the present application. In other words, the method for real-time monitoring and management of feed consumption can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes, but is not limited to: a single server, a server cluster, a cloud server, or a cloud server cluster, etc.
[0072] Refer to Figure 1 As shown, it is a schematic flowchart of the method for real-time monitoring and management of feed consumption provided by an embodiment of the present invention. In this embodiment, the method for real-time monitoring and management of feed consumption includes:
[0073] S1. Receive a feed management instruction, and confirm the animal population to be managed and the feed management system based on the feed management instruction. Among them, the feed management system consists of a data collection unit and a feed management unit. Among them, the animal population consists of a target animal species and a target animal quantity. The feed management unit includes a feed management institution for managing the target feed. The feed management institution includes: a feed aggregation institution, a feed removal institution, a feed supplementation institution, and a feed detection institution.
[0074] It should be explained that the feed management instruction is an instruction initiated by a person who manages the feed in a ranch. The target animal species represents the type of animal that needs to be managed, and the target animal quantity represents the number of animals that need to be managed. For example: the animals to be managed are sheep, and there are 500 sheep among them. Then the target animal species is sheep, and the target animal quantity is 500. The 500 sheep that need to be managed are the animal population.
[0075] It should be understood that the data acquisition unit represents a unit for collecting the number and types of target animals, but is not limited to collecting the number and types of the target animals. The target feed represents the feed that needs to be managed. The feed management mechanism is a device for managing the feed. The feed aggregation mechanism is a machine for piling up the scattered feed together. The feed removal mechanism is a machine for removing the inedible feed in the feed. The feed supplement mechanism represents a machine for supplementing the feed when the feed is not enough for consumption. The feed detection mechanism is a machine for detecting whether there is inedible feed in the feed.
[0076] S2. Confirm the receipt of the data acquisition instruction from the data acquisition unit, obtain the historical data set based on the data acquisition instruction, obtain the current time, and obtain one or more identification data sets according to the current time and the historical data set. Among them, the current time is composed of the first date and the first time. The historical data set includes the historical data of multiple different pastures, and the historical data is composed of the detection date, the detection time, the reference animal type, and the reference animal quantity.
[0077] It should be explained that the data acquisition instruction is an instruction issued by the data acquisition unit for obtaining the historical data set. The first date represents the date of the pasture on the current day, and the first time represents the real-time time for managing the pasture. For example: it is necessary to manage the current pasture, and obtain the time and date at this time. Among them, the date and time at this time are respectively: July 28th, 8:00 in the morning. Among them, July 28th, 8:00 in the morning is the current time, July 28th is the first date, and 8:00 in the morning is the first time.
[0078] It can be understood that the historical data set represents a collection of pasture information obtained from different pastures. Among them, the pasture information includes: date, time, reference animal type, and reference animal quantity, and the historical data set is composed of multiple historical data. For example: the time is 15:00 on July 18th, 2023, and the animal types raised in Ranch A are sheep and cows. Then the reference animal types are sheep and cows respectively, and there are 500 sheep and 600 cows in total. Then 500 and 600 are the different reference animal quantities respectively. Therefore, the first historical data is: [Ranch A, July 18th, 2023, 15:00, sheep, 500], and the second historical data is: [Ranch A, July 18th, 2023, 15:00, cow, 600]. Record the dates, times, reference animal types, and reference animal quantities of multiple different pastures to obtain the historical data, and summarize the multiple historical data to obtain the historical data set.
[0079] Further, the obtaining of the current time and obtaining one or more identification data sets according to the current time and the historical data set includes:
[0080] Extract historical data from the historical dataset in sequence, and perform the following operations on the extracted historical data:
[0081] Obtain reference information based on the historical data, where the reference information includes: longitude, latitude, animal age proportion coefficient, animal gender proportion coefficient;
[0082] Perform an identification operation on the historical data using the reference information to obtain initial identification data, where the initial identification data includes: longitude, latitude, animal age proportion coefficient, animal gender proportion coefficient, detection date, detection time, reference animal species, and reference animal quantity;
[0083] Summarize the initial identification data to obtain an initial identification dataset;
[0084] Perform a classification operation on the initial identification dataset using the reference animal species corresponding to the initial identification data to obtain one or more identification datasets.
[0085] It should be understood that the target animal species is the species of animals raised in the current pasture. In the embodiments of the present invention, multiple historical data corresponding to the animal species identical to the target animal species need to be found in the historical dataset. The reference animal species is the species of animals in the historical data. Identifying the reference animal species can quickly classify and screen the historical data in the historical dataset. If the target animal species is the same as the reference animal species, it is the historical data to be obtained. For example: if the target animal species of the current pasture is sheep, then find the reference animal species in the historical dataset. At this time, the reference animal species is sheep. If the target animal species of the current pasture is cattle, then the reference animal species at this time is cattle.
[0086] Furthermore, the reference animal quantity represents the quantity corresponding to the reference animal species. The detection date and detection time respectively represent the date and time when the feed was detected in the historical data. The feed remaining time series represents the time series of how much feed quantity remains recorded in the order of the detection time in a day. For example: if the current date is the 28th, the remaining feed at 8 am is 30 kg, and the remaining feed at 8:30 am is 20 kg, and so on. What is obtained is the feed remaining time series.
[0087] Importantly, the performing a classification operation on the initial identification dataset using the reference animal species corresponding to the initial identification data to obtain one or more identification datasets includes:
[0088] Obtain the reference order of the reference information, sort the initial identification data in the initial identification dataset based on the reference order to obtain an initial identification data sequence, and extract one or more identification datasets from the initial identification data sequence according to the reference animal species. The first identification data in the initial identification data sequence is:
[0089] S i = [A, B, C, D, F, G, H, I]
[0090] Among them, S i represents the i-th first identification data in the initial identification data sequence. A represents the reference animal species, B represents the detection date, C represents the detection time, D represents the number of reference animals, F represents the longitude, G represents the latitude, H represents the animal age proportion coefficient, and I represents the animal gender proportion coefficient.
[0091] It should be explained that the initial identification data sequence represents the sequence obtained by sorting the initial identification data set using the reference order. The longitude represents the longitude of the location of the pasture recorded by the initial identification data in the initial identification data set, and the latitude represents the latitude of the location of the pasture recorded by the initial identification data in the initial identification data set. The reference order represents the order for sorting the initial identification data set. In the embodiments of the present invention, the arrangement order of the elements in the first identification data is the reference order.
[0092] Furthermore, the animal age proportion coefficient represents the coefficient calculated based on the proportion of ages among animals. For example, if the current pasture considers pigs over 3 years old as adult pigs and those under 3 years old as juvenile pigs, and there are ten adult pigs and ten juvenile pigs in the current pasture, then the animal age proportion coefficient is calculated as the proportion of adult pigs among all pigs, so the animal age proportion coefficient is fifty percent. The animal gender proportion coefficient represents the coefficient calculated based on the proportion of males and females of the same animal species, and the calculation method is the same as that of the animal age proportion coefficient, and the achieved effects are the same, so it will not be elaborated here.
[0093] It should be noted that the initial identification data sequence is a sequence in which the same reference animal species is placed in adjacent positions. For example, in the initial identification data sequence, the first initial identification data is the initial identification data corresponding to sheep, the second initial identification data is the initial identification data corresponding to sheep, the third initial identification data is the initial identification data corresponding to sheep, and the fourth initial identification data is the initial identification data corresponding to pigs. Therefore, by extracting one or more identification data sets from the initial identification data sequence according to the reference animal species, two identification data sets can be obtained. One identification data set is: the first initial identification data is the initial identification data corresponding to sheep, the second initial identification data is the initial identification data corresponding to sheep, and the third initial identification data is the initial identification data corresponding to sheep. The other identification data set is: the fourth initial identification data is the initial identification data corresponding to pigs. And the purpose of sorting the initial identification data in the initial identification data set using the reference order is: to be able to conveniently extract one or more identification data sets according to the sorted initial identification data sequence.
[0094] It is understandable that after sorting the reference information in the above-mentioned initial identification data and then sorting different initial identification data, an initial identification data sequence is obtained.
[0095] S3. Use the target animal species to confirm a target identification data set in the one or more identification data sets, and confirm an initial feed surplus time series set in the target identification data set based on the first date.
[0096] Exemplarily, if it is confirmed that the animal species to be managed is sheep, then the target animal species is sheep. Use the target animal species to find the identification data with the reference animal species being sheep in the one or more identification data sets. However, since it is searched in the one or more identification data sets, there is more than one piece of identification data with the reference animal species being sheep. Summarize the identification data with the reference animal species being sheep to obtain the target identification data set. On this basis, assuming the first date is the 28th, find multiple initial feed surplus time series corresponding to 7 days before and after the corresponding date from the target identification data set to obtain the initial feed surplus time series set.
[0097] Furthermore, the confirming the initial feed surplus time series set in the target identification data set based on the first date includes:
[0098] Obtain the current ranch, construct a current ranch information matrix based on the current ranch, construct an identification information matrix set based on the target identification data set, sequentially extract the identification information matrix from the identification information matrix set, and calculate the similarity value using a pre-constructed similarity formula, the extracted identification information matrix, and the current ranch information matrix. Summarize the similarity values to obtain a similarity set corresponding to the identification information matrix set, where the current ranch information matrix is:
[0099]
[0100] Where U represents the current ranch information matrix, α represents the longitude of the current ranch, β represents the latitude of the current ranch, γ represents the reference animal species of the current ranch, δ represents the animal age proportion coefficient of the current ranch, ε represents the animal gender proportion coefficient of the current ranch, ∈ represents the date of the current ranch, and θ represents the number of reference animals;
[0101] Extract a high similarity set from the similarity set, where the high similarity set is a set of similarity values greater than a preset similarity threshold;
[0102] Confirm the initial feed surplus time series set based on the high similarity set, where the initial feed surplus time series set includes multiple initial feed surplus time series, and the detection time and feed surplus in the initial feed surplus time series correspond one by one.
[0103] It should be explained that the current ranch information matrix represents a matrix for obtaining the latitude, longitude, reference animal species, animal age proportion coefficient, animal gender proportion coefficient, date, reference animal quantity, and detection time of the current ranch. The identification information matrix is a matrix constructed based on identification data for describing the latitude, longitude, reference animal species, animal age proportion coefficient, animal gender proportion coefficient, date, reference animal quantity, and detection time of the ranch. The set of identification information matrices is a collection of multiple identification information matrices. The similarity value is a value calculated using the similarity formula, and the similarity set is obtained by aggregating multiple similarity values.
[0104] It can be understood that the reference animal species is in the form of a code in both the identification information matrix and the current ranch information matrix. For example, the code for sheep is 1001, the code for cattle is 1002, and the code for pigs is 1003.
[0105] It should be understood that the high similarity set represents a set composed of multiple similarity values in the similarity set where the similarity value between the identification information matrix and the current ranch information matrix is greater than the similarity threshold. When the similarity value is higher than the similarity threshold, it indicates a high similarity between the identification information matrix and the current ranch information matrix, and the identification information matrix can be used to manage the current ranch information matrix. Otherwise, the identification information matrix cannot be used to manage the current ranch information matrix.
[0106] Importantly, the similarity formula is as follows:
[0107]
[0108] where X represents the similarity value, n represents that there are n maximum eigenvalues in both the current ranch information matrix and the identification information matrix, D i represents the i-th maximum eigenvalue in the current ranch information matrix, and M i represents the i-th maximum eigenvalue in the identification information matrix, and max(*) represents the symbol for taking the maximum value.
[0109] It should be understood that the maximum eigenvalue is calculated from the normalized Laplacian matrix. This technology is an existing technology and will not be elaborated here. The symbol for taking the maximum value represents the symbol for taking the largest value among the elements as the output value.
[0110] Exemplarily, let and then That is, max(1, 2) = 2.
[0111] It is understandable that the larger the similarity value is, the higher the similarity between the current pasture information matrix and the extracted identification information matrix. This indicates that the reference information between the pasture information matrix and the extracted identification information matrix is similar, and the identification data of the pasture corresponding to the identification information matrix can be used as a reference for the management of the current pasture. Conversely, the smaller the similarity value is, the lower the similarity between the current pasture information matrix and the extracted identification information matrix, indicating that the reference information between the pasture information matrix and the extracted identification information matrix is dissimilar.
[0112] S4. Confirm multiple target feed surplus time periods in the initial feed surplus time series set based on the first time.
[0113] It is understandable that the initial feed surplus time series included in the initial feed surplus time series set is greater than the target feed surplus time period. For example, the initial feed surplus time series is as follows:
[0114]
[0115] Among them, 0:00, 1:00, and 2:00 all represent the detection time, and 30, 28, and 27 all represent the feed surplus;
[0116] The detection time period in the target feed surplus time period is less than the time period in the initial feed surplus time series. Therefore, assuming the target feed surplus time period is 0:00 - 1:00, thus, extract multiple initial feed surplus time series corresponding to 7 days before and after the first date from the initial feed surplus time series set, that is, 0:00 - 1:00 for each day in 7 days before and after the first date, to obtain multiple target feed surplus time periods.
[0117] Furthermore, the step of confirming multiple target feed surplus time periods in the initial feed surplus time series set based on the first time includes:
[0118] Obtain multiple time differences by using the first time and the initial feed surplus time series set, where the time difference is the difference between the first time and the detection time in the initial feed surplus time series set;
[0119] Extract the minimum difference from the multiple time differences, and confirm the detection time corresponding to the extracted minimum difference as the first time point;
[0120] Obtain one or more second time points by using the first time point, where the second time point is the detection time adjacent to the first time in the initial feed surplus time series, and obtain the optimal second time point by using one or more second time points, the first time point, and the initial feed surplus time series;
[0121] Construct the target feed surplus time period based on the optimal second time point and the first time point.
[0122] It should be understood that the time difference represents the difference obtained by subtracting the detection time in the initial feed remaining time series from the first time. Here, the difference is an absolute value. Since there is more than one detection time, multiple time differences are obtained. For example, when the first time is 8:05, subtracting 8:00, 8:30, and 9:00 from 8:05, the obtained 5 minutes, 25 minutes, and 55 minutes are multiple time differences. The minimum difference represents the minimum value selected after obtaining the differences by the above method, and this minimum value is the first time point. The second time point represents the time point adjacent to the first time point in the order of time. For example, if the first time point is 8:00, the second time point is 7:30 or 8:30. The optimal second time point represents the time point adjacent to the first time point and including the first time. For example, the first time is 8:05, the first time point is 8:00, and the second time point is 7:30 or 8:30. However, since the first time is 8:05, if 7:30 is selected as the second time point, 8:05 is not included. Therefore, the second time point is 8:30, and 8:30 is the optimal second time point. The target feed remaining time period represents the time period formed by the first time point and the optimal second time point.
[0123] Further, for example, if the first time point is 8:00, multiple second time points can be identified as 7:30 and 8:30 respectively. Since the second time point 7:30 is in the past, and the embodiments of the present invention expect to predict the future feed consumption situation of the current ranch, the second time point 8:30 is selected as the optimal second time point.
[0124] S5. Obtain the corresponding feed remaining amount for each target feed remaining time period in the multiple target feed remaining time periods, calculate the initial feeding rate according to the feed remaining amount and the target feed remaining time period corresponding to the feed remaining amount, summarize the initial feeding rates to obtain an initial feeding rate set, and calculate the predicted feeding rate based on the initial feeding rate set.
[0125] Exemplarily, the target feed remaining time period is from 9:30 to 10:30. The frequency of collecting the feed remaining amount in this target feed remaining time period is: once every half hour, and the corresponding feed remaining amounts are 45 kg, 30 kg, and 10 kg respectively. Among them, 45 kg refers to the feed remaining amount at the detection time of 9:30, 30 kg refers to the feed remaining amount at the detection time of 10:00, and 10 kg refers to the feed remaining amount at the detection time of 10:30. The feed remaining amount refers to the quality of the feed before adding or removing the feed at this time. If there is a situation of adding feed or removing feed in the historical data in this target feed remaining time period, then the target feed remaining time period corresponding to this historical data is excluded.
[0126] Furthermore, the initial feeding rate is calculated according to the feed surplus and the target feed surplus time period corresponding to the feed surplus, including:
[0127] The calculation formula for the initial feeding rate is as follows:
[0128]
[0129] Where v represents the initial feeding rate, m1 represents the total mass after adding the feed mass at the first time point, and m2 represents the mass of the feed surplus at the optimal second time point. represents the preset quality correction coefficient, t2 represents the first time point, and t1 represents the optimal second time point.
[0130] For example, in Ranch A, at the first time point, the first time point is 9:00, the feed balance is 45kg. At this time, the ranch manager adds an additional 15kg of target feed. Therefore, the total mass after adding the feed mass at the first time point is 60kg. The optimal second time point is 9:30. After consumption by the target animal species of Ranch A, the mass of the feed balance at the optimal second time point is 30kg. Therefore, after determining the preset mass correction coefficient, the initial eating rate of the target feed balance period of Ranch A can be calculated. Similarly, the initial eating rate is calculated for multiple target feed balance periods to obtain an initial eating rate set.
[0131] It should be understood that the mass correction coefficient refers to the coefficient used to correct the change in the mass of the target feed within a period of time after the target feed is placed. For example, long-term high temperature may cause the moisture in the target feed to decrease, thereby causing the quality of the target feed to decrease. Optionally, the mass correction coefficient can be obtained by experiment.
[0132] S6. Obtain target feed, and obtain a feed deterioration gray value based on the target feed remaining time period corresponding to the first date and the predicted feeding rate.
[0133] It should be understood that the target feed represents the feed that needs to be monitored in the current pasture. An eating rate with a comprehensive evaluation value is calculated using the initial eating rate set. The eating rate with a comprehensive evaluation value is the predicted eating rate. Optionally, the predicted eating rate is the average of all initial eating rates in the initial eating rate set. After confirming that the target feed has deteriorated, the image of the target feed remainder corresponding to the target feed remainder period is grayscaled, and the average of the grayscale values of all deteriorated feed parts in the image of the target feed remainder is obtained. The average of the grayscale values obtained is the feed deterioration grayscale value. The target feed remainder corresponding to the target feed remainder period is the mass of the feed before the current pasture adds or removes the feed.
[0134] Further, obtaining the feed deterioration gray value based on the target feed remaining period corresponding to the first date and the predicted feeding rate includes:
[0135] Using the initial feed remaining time series to confirm the target feed remaining period, and obtaining the target feed remaining amount based on the target feed remaining period;
[0136] Calculating the target feeding time using the predicted feeding rate and the target feed remaining amount;
[0137] Comparing the target feeding time with the preset standard feeding time;
[0138] If the target feeding time is greater than the standard feeding time, it is confirmed that the feed corresponding to the target feed remaining amount has deteriorated;
[0139] Obtaining a feed remaining image based on the target feeding time and the target feed remaining amount, and performing a graying operation on the feed remaining image using a pre-constructed graying unit to obtain a gray feed image;
[0140] Obtaining the feed deterioration gray value based on the gray feed image.
[0141] It should be explained that the target feeding time represents the time for feeding the target feed remaining amount in an ideal state calculated using the predicted feeding rate and the target feed remaining amount. For example, if the predicted feeding rate is 3 kg per half hour and the target feed remaining amount is 15 kg, the target feeding time is 2.5 hours.
[0142] It can be understood that the standard feeding time is the time used to measure whether the target feed remaining amount has deteriorated. Being greater than the standard feeding time means that the feeding speed is slow and the time is long, so the target feed remaining amount is prone to deterioration. On the contrary, being less than the standard feeding time means that the feeding speed is fast and the time is short, so the target feed remaining amount is not prone to deterioration. The feed remaining image represents an image of the feed remaining amount, the graying unit represents a unit for performing a graying operation on the feed remaining image, and the gray feed image represents the gray image of the target feed obtained by graying the feed remaining image using the graying unit. Among them, the methods for obtaining the gray feed image and the feed deterioration gray value are existing technologies and will not be elaborated here.
[0143] S7. Obtaining the target deterioration ratio based on the feed deterioration gray value, the target feed, and the feed detection agency, and after confirming the use of the feed supplement agency to supplement the pre-constructed fresh feed according to the target deterioration ratio, completing the monitoring and management of the real-time consumption of the feed.
[0144] It should be explained that the target deterioration ratio represents the ratio of the deteriorated feed to the non-deteriorated feed in the target feed, and the fresh feed represents fresh feed.
[0145] Further, after confirming to supplement the pre-built fresh feed by using the feed supplement mechanism, it includes:
[0146] Compare the target spoilage ratio with the preset spoilage ratio threshold;
[0147] If the target spoilage ratio is greater than or equal to the spoilage ratio threshold, use the feed aggregation mechanism to aggregate the target feed to obtain spoiled feed, and use the feed removal mechanism to remove the spoiled feed, and use the feed supplement mechanism to supplement the fresh feed;
[0148] If the target spoilage ratio is less than the spoilage ratio threshold, perform a stepping operation on the target feed by using the pre-acquired stepping distance and the feed aggregation mechanism to obtain stepped feed, and use the stepped feed to obtain a stepped spoilage ratio, and summarize the stepped spoilage ratios to obtain a stepped spoilage ratio set;
[0149] Calculate a reference spoilage ratio by using the stepped spoilage ratio set and the spoilage ratio threshold, where the reference spoilage ratio is as follows:
[0150]
[0151] Wherein, represents the reference spoilage ratio, W represents the maximum stepped spoilage ratio in the stepped spoilage ratio set, and M represents the spoilage ratio threshold;
[0152] Obtain an update detection frequency ratio sequence for update, and confirm a target detection frequency in the update detection frequency ratio sequence based on the reference spoilage ratio;
[0153] Obtain a detected spoilage ratio based on the target detection frequency and the feed detection mechanism, use the detected spoilage ratio as the target spoilage ratio, and return to the step of comparing the target spoilage ratio with the preset spoilage ratio threshold until it is confirmed to supplement the pre-built fresh feed by using the feed supplement mechanism.
[0154] It should be explained that the feed supplement mechanism refers to the device for supplementing fresh feed, the spoilage ratio threshold is the threshold of the spoilage ratio set artificially, which is used to refer to and compare whether the target spoilage ratio exceeds the spoilage ratio threshold. If the target spoilage ratio is greater than or equal to the spoilage ratio threshold, the proportion of spoiled feed is large and it cannot be eaten. The spoiled feed refers to the target feed that cannot be eaten, and the feed removal mechanism refers to the device that can remove the spoiled feed.
[0155] It is understandable that the step distance represents the distance by which the target feed is pushed each time using the feed agglomeration mechanism. For example, the step distance for each push is 50 cm. The feed agglomeration mechanism refers to the device that agglomerates the target feed. The stepped feed refers to the feed obtained after the target feed is pushed by the feed agglomeration mechanism according to the step distance. The stepped spoilage ratio represents the proportion of spoiled feed in the stepped feed to the fresh feed in the stepped feed. The reference spoilage ratio represents the ratio of the maximum stepped spoilage ratio in the concentration of spoilage ratios to the spoilage ratio threshold, and is used to describe the spoilage degree of the target feed. For example, the target spoilage ratio is ten percent, and the maximum stepped spoilage ratio in the concentration of stepped spoilage ratios is eight percent, so the reference spoilage ratio is eighty percent, indicating that the spoilage degree of the target feed is eighty percent.
[0156] It should be understood that the updated detection frequency ratio sequence represents the frequency sequence for detecting the target feed when it is considered that the target feed is not spoiled feed. Different reference spoilage ratios correspond to different updated detection frequencies. For example, if the reference spoilage ratio is 40%, the corresponding updated detection frequency is once every 15 seconds. If the reference spoilage ratio is 60%, the corresponding updated detection frequency is once every 5 seconds. That is, the higher the spoilage degree of the target feed, the faster the updated monitoring frequency. The target detection frequency represents selecting an appropriate detection frequency from the updated detection frequency ratio sequence according to the reference spoilage ratio. The detected spoilage ratio represents the target spoilage ratio in the target feed corresponding to the target detection frequency.
[0157] Exemplarily, the calculated target spoilage ratio is compared with the spoilage ratio threshold. When the target spoilage ratio is greater than or equal to the spoilage ratio threshold, it is considered that there is a lot of spoiled feed and it is no longer suitable for animal consumption. Using the feed agglomeration mechanism, the feed is piled up, and then the spoiled feed is removed using the feed cleaning mechanism. The remaining unremoved feed is the edible feed in the target feed. After removal, fresh feed is supplemented using the feed supplement mechanism.
[0158] Importantly, the stepped feed can clearly determine the proportion of spoiled feed in the target feed after being pushed by the feed agglomeration mechanism using the step distance. Comparing the target spoilage ratio with the spoilage ratio threshold is because when the target spoilage ratio is less than the spoilage ratio threshold, due to the long time, the target feed is prone to spoilage. Pushing the target feed according to the step distance, and when pushing, the position of the target feed will change, and the feed at the bottom or middle layer where the target feed is located will appear on the upper layer. Therefore, at this time, the target spoilage ratio will change, and the stepped spoilage ratio is obtained. Each time the feed is pushed, a stepped spoilage ratio is obtained. Therefore, aggregating multiple stepped spoilage ratios can obtain the stepped spoilage ratio set.
[0159] Further, a corresponding target detection frequency is found in the updated detection frequency ratio sequence according to the reference spoilage ratio. The function of the updated detection frequency ratio sequence is as follows: before the target feed becomes spoiled feed, the updated detection frequency in the updated detection frequency ratio sequence is used to detect the spoilage degree of the target feed in real time. The detection spoilage ratio is calculated using the corresponding target detection frequency and the feed detection agency. When all of the target feed becomes spoiled feed, the spoiled feed is completely removed using the feed removal agency, and then fresh feed is supplemented using the feed supplementation agency to ensure the edible safety of the target feed.
[0160] It should be understood that the corresponding detection frequency is found in the updated detection frequency ratio sequence according to the reference spoilage ratio, the detection spoilage ratio is calculated using the corresponding detection frequency and the feed detection agency, and the detection spoilage ratio is used to return to the step of comparing the spoilage threshold at the beginning to check whether there is still spoiled feed that needs to be removed until there is no spoiled feed.
[0161] To solve the problems described in the background art, the present invention confirms receiving a data acquisition instruction from a data acquisition unit, obtains a historical data set based on the data acquisition instruction. The historical data in the historical data set is useful for the management of the current ranch and can improve the efficiency of managing the current ranch. The target identification data set is identified from the one or more identification data sets using the target animal species. Screening data using the target animal species in one or more identification data sets can quickly and correctly screen the identification data set. Based on the first time, multiple target feed surplus time periods are identified in the initial feed surplus time series set. Using the first time as a limit narrows the range of screening the identification data set and improves efficiency. For each target feed surplus time period in the multiple target feed surplus time periods, the corresponding feed surplus is obtained. After confirming the corresponding feed surplus, the amount of feed to be added can be determined. The initial feeding rate is calculated based on the feed surplus and the target feed surplus time period corresponding to the feed surplus, and the initial feeding rates are summarized to obtain an initial feeding rate set. Based on the initial feeding rate set, the predicted feeding rate is calculated. Using the predicted feeding rate, the time consumed by the target animal species in the current ranch to consume the feed surplus can be predicted. Based on the calculated time, a supplementary operation can be anticipatorily performed on the feed surplus to obtain supplementary feed to ensure an adequate feed surplus. The target feed is obtained, and the feed deterioration gray value is obtained based on the target feed surplus time period corresponding to the first date and the predicted feeding rate. Based on the feed deterioration gray value, the target feed, and the feed detection agency, the target deterioration ratio is obtained. Real-time detection based on the change in the target deterioration ratio can remove the deteriorated feed at the first time when the feed surplus deteriorates to ensure the freshness of the feed surplus. After confirming to supplement the pre-constructed fresh feed using the feed supplement agency according to the target deterioration ratio, the monitoring and management of the real-time consumption of the feed are completed. Therefore, the main purpose of the present invention is to improve the efficiency of monitoring and managing the real-time consumption of the feed.
[0162] As Figure 2 shown, it is a functional module diagram of a feed real-time consumption monitoring and management system provided by an embodiment of the present invention.
[0163] The feed real-time consumption monitoring and management system 100 of the present invention can be installed in an electronic device. According to the functions implemented, the feed real-time consumption monitoring and management system 100 can include a feed management module 101, a data reference module 102, a data acquisition module 103, and a feed detection module 104. The modules of the present invention can also be referred to as units, which refer to a series of computer program segments that can be executed by a processor of an electronic device and can complete fixed functions, and are stored in the memory of the electronic device.
[0164] The feed management module 101 is used to receive a feed management instruction, and based on the feed management instruction, confirm the animal population to be managed and the feed management system. Among them, the feed management system consists of a data acquisition unit and a feed management unit. Among them, the animal population consists of a target animal species and a target animal quantity. The feed management unit includes a feed management mechanism for managing the target feed. Among them, the feed management mechanism includes a feed aggregation mechanism, a feed removal mechanism, a feed supplementation mechanism, and a feed detection mechanism;
[0165] The data reference module 102 is used to confirm and receive a data acquisition instruction from the data acquisition unit, obtain a historical data set based on the data acquisition instruction, obtain the current time, and obtain one or more identification data sets according to the current time and the historical data set. Among them, the current time consists of a first date and a first time. The historical data set includes historical data of multiple different pastures, and the historical data consists of a detection date, a detection time, a reference animal species, and a reference animal quantity;
[0166] The data acquisition module 103 is used to confirm a target identification data set in the one or more identification data sets by using the target animal species, confirm an initial feed remaining quantity time series set in the target identification data set based on the first date, confirm a plurality of target feed remaining quantity time periods in the initial feed remaining quantity time series set based on the first time, use each target feed remaining quantity time period in the plurality of target feed remaining quantity time periods to obtain the corresponding feed remaining quantity, calculate the initial feeding rate according to the feed remaining quantity and the target feed remaining quantity time period corresponding to the feed remaining quantity, summarize the initial feeding rate to obtain an initial feeding rate set, and calculate a predicted feeding rate based on the initial feeding rate set;
[0167] The feed detection module 104 is used to obtain the target feed, obtain a feed deterioration gray value based on the target feed remaining quantity time period corresponding to the first date and the predicted feeding rate, obtain a target deterioration ratio based on the feed deterioration gray value, the target feed, and the feed detection mechanism, and complete the monitoring and management of the real-time consumption of the feed after confirming to supplement the pre-constructed fresh feed by using the feed supplementation mechanism according to the target deterioration ratio.
[0168] Specifically, each module in the feed real-time consumption monitoring and management system 100 in the embodiment of the present invention adopts the same technical means as the feed real-time consumption monitoring and management method described above Figure 1 and can produce the same technical effects, which will not be elaborated here.
[0169] As Figure 3 shown, it is a schematic structural diagram of an electronic device for implementing the feed real-time consumption monitoring and management method provided by an embodiment of the present invention.
[0170] The electronic device 1 may include a processor 10, a memory 11, and a bus 12, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a program for real-time monitoring and management of feed consumption.
[0171] Among them, the memory 11 includes at least one type of readable storage medium, which includes flash memory, mobile hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, magnetic disk, optical disc, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1, such as the mobile hard disk of the electronic device 1. In some other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the electronic device 1. Further, the memory 11 also includes the internal storage unit of the electronic device 1 and also includes an external storage device. The memory 11 can be used not only to store application software installed on the electronic device 1 and various types of data, such as the code of the program for real-time monitoring and management of feed consumption, etc., but also to temporarily store data that has been output or will be output.
[0172] In some embodiments, the processor 10 may be composed of integrated circuits. For example, it may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits with the same or different functions, including a combination of one or more Central Processing Units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, connecting various components of the entire electronic device through various interfaces and lines, and by running or executing programs or modules stored in the memory 11 (such as the program for real-time monitoring and management of feed consumption, etc.), and calling data stored in the memory 11, to perform various functions of the electronic device 1 and process data.
[0173] The bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This bus 12 can be divided into an address bus, a data bus, a control bus, etc. The bus 12 is set to realize the connection and communication between the memory 11 and at least one processor 10, etc.
[0174] Figure 3 Only an electronic device with components is shown. It can be understood by those skilled in the art that Figure 3 the shown structure does not constitute a limitation on the electronic device 1, and it may include fewer or more components than shown, or combine certain components, or have different component arrangements.
[0175] For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component. Preferably, the power source can be logically connected to the at least one processor 10 through a power management system, so as to implement functions such as charge management, discharge management, and power consumption management through the power management system. The power source may also include any components such as one or more DC or AC power sources, a recharge system, a power failure detection circuit, a power converter or inverter, a power status indicator, etc. The electronic device 1 may also include various sensors, a Bluetooth module, a Wi-Fi module, etc., which will not be elaborated here.
[0176] Furthermore, the electronic device 1 may further include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0177] Optionally, the electronic device 1 may further include a user interface. The user interface may be a display, an input unit (such as a keyboard), and optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch liquid crystal display, and an OLED (Organic Light-Emitting Diode) toucher, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display the information processed in the electronic device 1 and to display a visual user interface.
[0178] It should be understood that the embodiments are only for illustration purposes and are not limited by this structure in the scope of the patent application.
[0179] The program of the feed real-time consumption monitoring and management method stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can implement:
[0180] Receive a feed management instruction, and confirm the animal population to be managed and the feed management system based on the feed management instruction. Among them, the feed management system consists of a data collection unit and a feed management unit. Among them, the animal population consists of the target animal species and the target animal quantity. The feed management unit includes a feed management mechanism for managing the target feed. Among them, the feed management mechanism includes a feed aggregation mechanism, a feed removal mechanism, a feed supplementation mechanism, and a feed detection mechanism;
[0181] Confirm to receive the data collection instruction from the data collection unit, obtain the historical data set based on the data collection instruction, obtain the current time, and obtain one or more identification data sets according to the current time and the historical data set. Among them, the current time consists of the first date and the first time. The historical data set includes the historical data of multiple different pastures, and the historical data consists of the detection date, the detection time, the reference animal species, and the reference animal quantity;
[0182] Use the target animal species to confirm the target identification data set in the one or more identification data sets, and confirm the initial feed surplus time series set in the target identification data set based on the first date;
[0183] Based on the first time, confirm multiple target feed surplus time periods in the initial feed surplus time series set;
[0184] Use each target feed surplus time period in the multiple target feed surplus time periods to obtain the corresponding feed surplus, calculate the initial feeding rate according to the feed surplus and the target feed surplus time period corresponding to the feed surplus, summarize the initial feeding rate to obtain the initial feeding rate set, and calculate the predicted feeding rate based on the initial feeding rate set;
[0185] Obtain the target feed, obtain the feed deterioration gray value based on the target feed surplus time period corresponding to the first date and the predicted feeding rate, obtain the target deterioration ratio based on the feed deterioration gray value, the target feed, and the feed detection mechanism, and complete the monitoring and management of the real-time consumption of the feed after confirming to supplement the pre-built fresh feed by the feed supplementation mechanism according to the target deterioration ratio.
[0186] Specifically, the specific implementation method of the above instructions by the processor 10 can refer to Figures 1 to 3 the description of the relevant steps in the corresponding embodiment, which will not be elaborated here.
[0187] Furthermore, if the modules / units integrated in the electronic device 1 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or system capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM, Read-Only Memory).
[0188] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor of an electronic device, it can implement:
[0189] Receiving a feed management instruction, and based on the feed management instruction, identifying the animal population to be managed and the feed management system. The feed management system consists of a data collection unit and a feed management unit. The animal population consists of a target animal species and a target animal quantity. The feed management unit includes a feed management mechanism for managing the target feed. The feed management mechanism includes: a feed aggregation mechanism, a feed removal mechanism, a feed supplementation mechanism, and a feed detection mechanism;
[0190] Confirming to receive a data collection instruction from the data collection unit, based on the data collection instruction to obtain a historical data set, obtaining the current time, and obtaining one or more identification data sets according to the current time and the historical data set. The current time consists of a first date and a first time. The historical data set includes historical data of multiple different pastures, and the historical data consists of a detection date, a detection time, a reference animal species, and a reference animal quantity;
[0191] Using the target animal species to identify the target identification data set in the one or more identification data sets, and based on the first date, identifying the initial feed balance time series set in the target identification data set;
[0192] Based on the first time, identifying multiple target feed balance time periods in the initial feed balance time series set;
[0193] Using each target feed balance time period in the multiple target feed balance time periods to obtain the corresponding feed balance, calculating the initial feeding rate according to the feed balance and the target feed balance time period corresponding to the feed balance, summarizing the initial feeding rates to obtain an initial feeding rate set, and calculating a predicted feeding rate based on the initial feeding rate set;
[0194] Obtain the target feed, obtain the feed deterioration gray value based on the target feed remaining period corresponding to the first date and the predicted feeding rate, obtain the target deterioration ratio based on the feed deterioration gray value, the target feed and the feed detection agency, and after confirming to supplement the pre-constructed fresh feed by using the feed supplement agency according to the target deterioration ratio, complete the monitoring and management of the real-time consumption of the feed.
[0195] In several embodiments provided by the present invention, it should be understood that the disclosed devices, systems and methods can be implemented in other ways. For example, the system embodiments described above are only illustrative, and there may be other division methods in actual implementation.
[0196] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0197] In addition, in each embodiment of the present invention, the functional modules can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware, or in the form of a hardware plus software functional module.
[0198] For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and without departing from the spirit or basic characteristics of the present invention, the present invention can be implemented in other specific forms.
[0199] In addition, obviously, the word "including" does not exclude other units or steps, and the singular does not exclude the plural. The multiple units or systems stated in the system claims can also be implemented by one unit or system through software or hardware. Words such as second are used to represent names and do not represent any specific order.
[0200] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A real-time feed consumption monitoring and management method, characterized in that The method includes: Receiving a feed management instruction, and confirming an animal population to be managed and a feed management system based on the feed management instruction. The feed management system consists of a data collection unit and a feed management unit. The animal population consists of a target animal species and a target animal quantity. The feed management unit includes a feed management mechanism for managing target feed, and the feed management mechanism includes a feed aggregation mechanism, a feed removal mechanism, a feed supplementation mechanism, and a feed detection mechanism; Confirming to receive a data collection instruction from the data collection unit, obtaining a historical data set based on the data collection instruction, obtaining the current time, and obtaining one or more identification data sets according to the current time and the historical data set. The current time consists of a first date and a first time. The historical data set includes historical data of multiple different pastures, and the historical data consists of a detection date, a detection time, a reference animal species, and a reference animal quantity; Identifying a target identification data set from the one or more identification data sets using the target animal species, and identifying an initial feed remaining quantity time series set from the target identification data set based on the first date; Identifying a plurality of target feed remaining quantity time periods from the initial feed remaining quantity time series set based on the first time; Obtaining the corresponding feed remaining quantity for each target feed remaining quantity time period in the plurality of target feed remaining quantity time periods, calculating an initial feeding rate according to the feed remaining quantity and the target feed remaining quantity time period corresponding to the feed remaining quantity, summarizing the initial feeding rates to obtain an initial feeding rate set, and calculating a predicted feeding rate based on the initial feeding rate set; Obtaining target feed, obtaining a feed deterioration gray value according to the target feed remaining quantity time period corresponding to the first date and the predicted feeding rate, obtaining a target deterioration ratio based on the feed deterioration gray value, the target feed, and the feed detection mechanism, and completing the monitoring and management of the real-time consumption of the feed after confirming to supplement pre-built fresh feed using the feed supplementation mechanism according to the target deterioration ratio.
2. The real-time feed consumption monitoring and management method according to claim 1, characterized in that, The obtaining the current time and obtaining one or more identification data sets according to the current time and the historical data set includes: Sequentially extracting historical data from the historical data set, and performing the following operations on the extracted historical data: Obtaining reference information based on the historical data, where the reference information includes longitude, latitude, an animal age ratio coefficient, and an animal gender ratio coefficient; Performing an identification operation on the historical data using the reference information to obtain initial identification data, where the initial identification data includes longitude, latitude, an animal age ratio coefficient, an animal gender ratio coefficient, a detection date, a detection time, a reference animal species, and a reference animal quantity; Summarizing the initial identification data to obtain an initial identification data set; Performing a classification operation on the initial identification data set using the reference animal species corresponding to the initial identification data to obtain one or more identification data sets.
3. The real-time feed consumption monitoring and management method according to claim 2, wherein, The performing a classification operation on the initial identification data set using the reference animal species corresponding to the initial identification data to obtain one or more identification data sets includes: The reference order for obtaining reference information is used to sort the initial identification data in the initial identification dataset based on the reference order, obtaining an initial identification data sequence. One or more identification datasets are extracted from the initial identification data sequence according to the reference animal species. Among them, the first identification data in the initial identification data sequence is: S i = [A, B, C, D, F, G, H, I] Among them, S i represents the i-th first identification data in the initial identification data sequence, A represents the reference animal species, B represents the detection date, C represents the detection time, D represents the number of reference animals, F represents the longitude, G represents the latitude, H represents the animal age proportion coefficient, and I represents the animal sex proportion coefficient.
4. The real-time feed consumption monitoring and management method according to claim 3, characterized in that The confirmation of the initial feed surplus time series set in the target identification dataset based on the first date includes: Obtain the current ranch, construct a current ranch information matrix based on the current ranch, construct an identification information matrix set based on the target identification dataset, sequentially extract the identification information matrix from the identification information matrix set, and calculate the similarity value using a pre-constructed similarity formula, the extracted identification information matrix, and the current ranch information matrix. Summarize the similarity values to obtain a similarity set corresponding to the identification information matrix set. Among them, the current ranch information matrix is: Where U represents the current ranch information matrix, α represents the longitude of the current ranch, β represents the latitude of the current ranch, γ represents the reference animal species of the current ranch, δ represents the animal age proportion coefficient of the current ranch, ε represents the animal gender proportion coefficient of the current ranch, ∈ represents the date of the current ranch, and θ represents the number of reference animals; Extract a high similarity set from the similarity set, where the high similarity set is a set of similarity values greater than a preset similarity threshold; Confirm the initial feed surplus time series set based on the high similarity set, where the initial feed surplus time series set includes multiple initial feed surplus time series, and the detection time and feed surplus in the initial feed surplus time series correspond one by one.
5. The real-time feed consumption monitoring and management method according to claim 4, characterized in that The confirmation of multiple target feed surplus periods in the initial feed surplus time series set based on the first time includes: Obtain multiple time differences using the first time and the initial feed surplus time series set, where the time difference is the difference between the first time and the detection time in the initial feed surplus time series set; Extract the minimum difference from the multiple time differences, and confirm the detection time corresponding to the extracted minimum difference as the first time point; Obtain one or more second time points using the first time point, where the second time point is the detection time adjacent to the first time in the initial feed surplus time series. Obtain the optimal second time point using one or more second time points, the first time point, and the initial feed surplus time series; Construct a target feed surplus period based on the optimal second time point and the first time point.
6. The real-time feed consumption monitoring and management method according to claim 5, characterized in that, The calculation of the initial feeding rate according to the feed surplus and the target feed surplus period corresponding to the feed surplus, Includes: Among them, the calculation formula of the initial feeding rate is as follows: Among them, v represents the initial feeding rate, m1 represents the total mass after adding the feed mass at the first time point, m2 represents the mass of the remaining feed at the optimal second time point, represents the preset mass correction coefficient, t2 represents the first time point, and t1 represents the optimal second time point.
7. The real-time feed consumption monitoring and management method according to claim 6, characterized in that, The obtaining of the feed deterioration gray value based on the target feed surplus period corresponding to the first date and the predicted feeding rate includes: Confirm the target feed surplus period using the initial feed surplus time series, and obtain the target feed surplus based on the target feed surplus period; Calculate the target feeding time using the predicted feeding rate and the target feed surplus; Compare the target feeding time with a preset standard feeding time; If the target feeding time is greater than the standard feeding time, confirm that the feed corresponding to the target feed surplus has deteriorated; Obtain a feed residue image based on the target feeding time and the target feed residue, and use a pre-constructed grayscale unit to perform a grayscale operation on the feed residue image to obtain a grayscale feed image; Obtain the feed spoilage grayscale value based on the grayscale feed image.
8. The real-time feed consumption monitoring and management method according to claim 7, characterized in that The similarity formula is as follows: Wherein, X represents the similarity value, n represents that there are n maximum eigenvalues in both the current pasture information matrix and the identification information matrix, D i represents the i-th maximum eigenvalue in the current pasture information matrix, M i represents the i-th maximum eigenvalue in the identification information matrix, and max(*) represents the symbol for taking the maximum value.
9. The real-time feed consumption monitoring and management method according to claim 8, characterized in that, After confirming to supplement the pre-constructed fresh feed using the feed supplement mechanism according to the target spoilage ratio, it includes: Compare the target spoilage ratio with a preset spoilage ratio threshold; If the target spoilage ratio is greater than or equal to the spoilage ratio threshold, use the feed aggregation mechanism to aggregate the target feed to obtain spoiled feed, use the feed removal mechanism to remove the spoiled feed, and use the feed supplement mechanism to supplement the fresh feed; If the target spoilage ratio is less than the spoilage ratio threshold, perform a stepping operation on the target feed using the pre-obtained stepping distance and the feed aggregation mechanism to obtain stepped feed, and obtain the stepped spoilage ratio using the stepped feed, and summarize the stepped spoilage ratios to obtain a stepped spoilage ratio set; Calculate the reference spoilage ratio using the stepped spoilage ratio set and the spoilage ratio threshold, where the reference spoilage ratio is as follows: Among them, represents the reference deterioration ratio, W represents the maximum step deterioration ratio among the concentrated step deterioration ratios, and M represents the deterioration ratio threshold; Obtain an update detection frequency ratio sequence for updating, and confirm the target detection frequency in the update detection frequency ratio sequence based on the reference spoilage ratio; Obtain the detected spoilage ratio based on the target detection frequency and the feed detection mechanism, use the detected spoilage ratio as the target spoilage ratio, and return to the step of comparing the target spoilage ratio with the preset spoilage ratio threshold until it is confirmed to supplement the pre-constructed fresh feed using the feed supplement mechanism.
10. A real-time feed consumption monitoring and management system, characterized in that, The system includes: A feed management module for receiving a feed management instruction and confirming the animal population to be managed and the feed management system based on the feed management instruction. The feed management system consists of a data acquisition unit and a feed management unit. The animal population consists of a target animal species and a target animal quantity. The feed management unit includes a feed management mechanism for managing the target feed, and the feed management mechanism includes a feed aggregation mechanism, a feed removal mechanism, a feed supplement mechanism, and a feed detection mechanism; A data reference module for confirming and receiving a data acquisition instruction from the data acquisition unit, obtaining a historical data set based on the data acquisition instruction, obtaining the current time, and obtaining one or more identification data sets according to the current time and the historical data set. The current time consists of a first date and a first time. The historical data set includes historical data of multiple different pastures, and the historical data consists of a detection date, a detection time, a reference animal species, and a reference animal quantity; A data acquisition module, which is used to identify a target identification data set from the one or more identification data sets by using the target animal species, identify an initial feed remaining quantity time series set from the target identification data set based on the first date, identify a plurality of target feed remaining quantity time periods from the initial feed remaining quantity time series set based on the first time, obtain the corresponding feed remaining quantity for each target feed remaining quantity time period in the plurality of target feed remaining quantity time periods, calculate an initial feeding rate according to the feed remaining quantity and the target feed remaining quantity time period corresponding to the feed remaining quantity, summarize the initial feeding rates to obtain an initial feeding rate set, and calculate a predicted feeding rate based on the initial feeding rate set; A feed detection module, which is used to obtain the target feed, obtain a feed deterioration gray value based on the target feed remaining quantity time period corresponding to the first date and the predicted feeding rate, obtain a target deterioration ratio based on the feed deterioration gray value, the target feed and the feed detection agency, and complete the monitoring and management of the real-time consumption of the feed after confirming to supplement the pre-constructed fresh feed by using the feed supplement agency according to the target deterioration ratio.