A livestock breeding system and method based on Internet of Things
Through IoT technology, the influencing factors and animal contact frequency are obtained, and the transfer area of the animal husbandry system is automatically selected, which solves the problem of low efficiency in the adjustment of transfer area in the existing technology, and improves pasture management efficiency and animal adaptability.
Patent Information
- Application Number
- CN202411103078.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-13
AI Technical Summary
The existing animal husbandry system relies on fixed transfer rules and manual judgments when transferring animals, resulting in low production efficiency during temporary rectification, and the inability to quickly and flexibly adjust the transfer area, affecting the efficiency of ranch management.
Using the Internet of Things animal husbandry system and method, the most suitable transfer area is automatically selected to reduce animal stress by obtaining the influencing factors of the transfer area, establishing a linear regression model to predict the degree of impact, calculating animal contact frequency similarity and residual capacity scores. Respond and improve adaptability.
It has achieved rapid adjustment of animal transfer areas according to real-time needs, reduced production impact, improved pasture management efficiency, ensured that animals maintain stable social behavior in the new environment, and avoid behavioral abnormalities caused by environmental changes.
Smart Images

Figure CN118627693B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of animal husbandry technology, and more specifically, to an animal husbandry system and method based on the Internet of Things. Background Art
[0002] The Internet of Things (IoT) refers to connecting various physical devices (such as sensors, actuators, household appliances, industrial equipment, etc.) through the Internet to achieve information collection, transmission, processing and execution. Animal husbandry is a highly comprehensive agricultural production activity that covers multiple links such as animal breeding, feeding, management, disease prevention and control, and product processing.
[0003] When a certain area of a ranch needs temporary rectification, it may involve changing the water supply pipeline, reconfiguring feed storage equipment, power system maintenance, etc. At this time, the animals in this area need to be transferred to other areas of the ranch in advance. When transferring animals, existing livestock breeding systems often rely on fixed transfer rules and manual judgment to determine the transfer area of animals. Therefore, this application proposes a livestock breeding system and method based on the Internet of Things, which aims to quickly adjust the transfer according to real-time needs, flexibly select the best transfer area, reduce the impact of temporary rectification on production, and enhance the response ability of the ranch to improve the efficiency of ranch management.
[0004] In view of the above problems, the present invention proposes a solution. Summary of the invention
[0005] In order to overcome the above-mentioned defects of the prior art, the embodiments of the present invention provide a livestock breeding system and method based on the Internet of Things, XX to solve the problems raised in the above-mentioned background technology.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] A livestock breeding method based on the Internet of Things comprises the following steps:
[0008] Step 1: Obtain the influencing factors of the rectification area on each transfer area;
[0009] Step 2: Set the threshold of the influencing factor, compare the influencing factor with the corresponding threshold of the influencing factor, determine whether the transfer area is affected by the influencing factor, and count the number of transfer areas affected by each influencing coefficient as the influence range of the influencing factor;
[0010] Step 3: Determine the selected influencing factors according to their influence range, establish a linear regression model for the selected influencing factors, and predict the degree of impact on each transfer area during the next rectification; select the transfer area with the smallest impact as the initial transfer area according to the magnitude of the impact;
[0011] Step 4: Obtain the total contact frequency between the animals to be transferred and the animals in each preliminary transfer area; calculate the contact frequency similarity based on the contact frequency between the animals to be transferred and the animals in each preliminary transfer area;
[0012] Step 5: Obtain the remaining capacity of each preliminary transfer area, calculate the comprehensive score of each preliminary transfer area according to the contact frequency similarity, the remaining capacity of the preliminary transfer area and the predicted impact of the preliminary transfer area, and sort the preliminary transfer areas according to the size of the comprehensive score;
[0013] Step 6: Sort each animal to be transferred according to the total contact frequency of the animals to be transferred; based on the sorting results of the animals to be transferred and the preliminary transfer areas, select the preliminary transfer area with the largest comprehensive score as the final transfer area for each animal to be transferred.
[0014] In a preferred embodiment, in step 2, the thresholds of various influencing factors for rectification are set using statistical methods, specifically: ; Where k is the threshold of influencing factors; is the average influencing factor and has ; is the average value of the i-th influencing factor, is the i-th influencing factor of the j-th transfer area, and n is the number of transfer areas; is the standard deviation of the influencing factor, α is the threshold factor;
[0015] All influencing factors of each transfer area are compared with the corresponding influencing factor threshold. If an influencing factor of the transfer area is greater than or equal to the corresponding influencing factor threshold, the area is considered to be affected by this influencing factor; the number of transfer areas affected by each influencing factor is counted and taken as the influence range of the influencing factor.
[0016] In a preferred embodiment, in step 3, the influence ranges of all influencing factors are sorted by size, and the selected influencing factors are determined according to the size to predict the influence of the rectification area on each transfer area during the next rectification; a linear regression model is established for the selected influencing factors, and the specific process is as follows:
[0017] The selected influencing factors are taken as independent variables, and the degree of influence of the rectification area on the transfer area is taken as the dependent variable. Assuming that the selected influencing factors are m, the expression of the model is: ; where β1, β2, ..., βm are the coefficients of the model, is the error term, Nm is the mth selected influencing factor, and Y is the corresponding predicted impact degree;
[0018] The least squares method is used to estimate the coefficients in the model. The estimation formula for the coefficients in the model is ; In the formula, X is the independent variable matrix, which contains the independent variable values of each sample. The first column of the matrix X is usually a constant column with all 1s, which is used to represent the intercept term; Y is a vector containing the dependent variable value (degree of influence) of each sample. represents the transpose of matrix X, express The inverse matrix of β is a vector containing all the coefficients in the linear model, including the intercept term and the coefficients of the independent variable. By calculating the formula, the best coefficient estimate is obtained, so as to establish a linear regression model to predict and explain the dependent variable Y.
[0019] Use the F test to judge the entire linear regression model to determine whether the independent variables in the model as a whole have a significant impact on the dependent variable; calculate the F statistic ; Where SSR is the regression sum of squares, m is the number of selected influencing factors, SSE is the error sum of squares, and n is the number of samples, i.e. the number of transfer regions;
[0020] Find the F distribution table based on the F statistic and degrees of freedom (nm-1) and determine the p-value corresponding to the F statistic;
[0021] Compare the p-value with the pre-set significance level. If the p-value is less than the significance level, the entire model is considered significant; conversely, if the p-value is greater than or equal to the significance level, the entire model is considered insignificant.
[0022] The established model is used to predict the impact of the rectification area on each transfer area during the next rectification; the predicted impact of the rectification area on each transfer area is sorted by size, and the transfer area with the smallest impact is selected as the preliminary transfer area.
[0023] In a preferred embodiment, in step 4, the contact frequency of each animal is collected in real time; the contact frequency of the animals to be transferred and the animals in each preliminary transfer area is obtained; the total contact frequency of each animal to be transferred, that is, the sum of the contact frequencies with other animals to be transferred, is calculated, and is marked as f, fi represents the total contact frequency of the i-th animal to be transferred; for the animals in each preliminary transfer area, the total contact frequency of each animal is calculated, that is, the sum of the contact frequencies with other animals in the corresponding transfer area, and is marked as Fz, represents the total contact frequency of the ith animal in the jth initial transfer area;
[0024] The contact frequency of the animals to be transferred and the contact frequency of the animals in each preliminary transfer area were averaged to obtain and ;
[0025] The Euclidean distance was used to calculate the similarity of contact frequency between the animals to be transferred and the animals in each preliminary transfer area.
[0026] In a preferred embodiment, in step 5, the total capacity of each preliminary transfer area is obtained, and the number of animals in the corresponding preliminary transfer area is subtracted from the total capacity to obtain the residual capacity of the corresponding preliminary transfer area, and the residual capacity is marked as C, Ci represents the residual capacity of the i-th preliminary transfer area; the contact frequency similarity, the residual capacity of the preliminary transfer area and the predicted influence of the preliminary transfer area are standardized, and the comprehensive score of each preliminary transfer area is calculated using the comprehensive score formula, which is ; In the formula , and They are the normalized touch frequency similarity, the remaining capacity of the preliminary transfer area, and the influence of the predicted preliminary transfer area. is the comprehensive score of the jth region.
[0027] An Internet of Things-based livestock breeding system, used to implement the above-mentioned Internet of Things-based livestock breeding method, including a data acquisition module, a data processing module and a data storage module;
[0028] The data acquisition module is used to obtain the influencing factors of the rectification area on each transfer area, and send them to the data processing module to ensure the operation of the subsequent data processing module;
[0029] The data processing module is used to determine the final transfer area of the animals to be transferred according to the data collected by the data collection module;
[0030] The data storage module is used to store all data generated during the livestock breeding system processing.
[0031] The technical effects and advantages of the livestock breeding system and method based on the Internet of Things of the present invention are as follows:
[0032] The present invention sorts each animal to be transferred according to the total contact frequency of the animals to be transferred. Animals with a higher contact frequency tend to have higher social needs. These animals contact other animals more frequently. Therefore, in a new environment, satisfying the social needs of these animals helps reduce stress reactions and improve adaptability. Therefore, the final transfer area is selected preferentially for animals to be transferred with a high contact frequency, which can ensure that the animals to be transferred continue to maintain stable social behavior in the new environment and avoid behavioral abnormalities caused by environmental changes. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 This is a logic schematic diagram of an animal husbandry system based on the Internet of Things of the present invention;
[0034] Figure 2 The present invention is a flow chart of an animal husbandry method based on the Internet of Things. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] The present invention sorts each animal to be transferred according to the total contact frequency of the animals to be transferred. Animals with a higher contact frequency tend to have higher social needs. These animals contact other animals more frequently. Therefore, in a new environment, satisfying the social needs of these animals helps reduce stress reactions and improve adaptability. Therefore, the final transfer area is selected preferentially for animals to be transferred with a high contact frequency, which can ensure that the animals to be transferred continue to maintain stable social behavior in the new environment and avoid behavioral abnormalities caused by environmental changes.
[0037] Embodiment 1, Figure 1 A logical diagram of a livestock breeding system based on the Internet of Things is given. Figure 2 A flow chart of a livestock breeding method based on the Internet of Things is given, which specifically includes the following steps:
[0038] Step 1: Obtain the impact factors of the most recent rectification area on each transfer area.
[0039] Step 2: Set the influencing factor threshold, compare the influencing factor with the corresponding influencing factor threshold, determine whether the transfer area is affected by the influencing factor, and count the number of transfer areas affected by each influencing coefficient as the influence range of the influencing factor.
[0040] Step 3: Select multiple influencing factors with a larger impact range as selected influencing factors, establish a linear regression model for the selected influencing factors, and predict the impact on each transfer area during the next rectification. Select the transfer area with a smaller impact as the initial transfer area based on the impact.
[0041] Step 4: Obtain the total contact frequency between the animals to be transferred and the animals in each preliminary transfer area. Calculate the contact frequency similarity based on the contact frequency between the animals to be transferred and the animals in each preliminary transfer area.
[0042] Step 5: Obtain the remaining capacity of each preliminary transfer area, calculate the comprehensive score of each preliminary transfer area according to the contact frequency similarity, the remaining capacity of the preliminary transfer area and the predicted impact of the preliminary transfer area, and sort the preliminary transfer areas according to the size of the comprehensive score.
[0043] Step 6: Sort each animal to be transferred according to the total contact frequency of the animal to be transferred. According to the ranking results of the animals to be transferred and the preliminary transfer areas, select the preliminary transfer area with the largest comprehensive score for each animal to be transferred as the final transfer area.
[0044] Specifically, in step 1, the pasture area includes a rectification area and a transfer area. The animals in the rectification area are the animals to be transferred. The factors affecting each transfer area by the rectification area include water supply, feed supply, temperature and humidity, and air quality.
[0045] Regarding the impact on water supply, water flow sensors are used to measure the water flow in each transfer area in real time, and the water flow in each transfer area before rectification is marked as ; Mark the water flow in each transfer area after rectification as ; The water supply impact is calculated using the formula: ; In the formula For the impact on water supply, feed sensors are used to measure the feed supply in each transfer area in real time. Similarly, the feed supply impact is calculated using the formula: ; In the formula is the feed supply in the transferred area before rectification. The feed supply in the transferred area after rectification. The influence of temperature and humidity in each transfer area is calculated by the same method. and air quality impacts .
[0046] Specifically, in step 2, the statistical method is used to set the thresholds of various influencing factors of the past rectification, specifically: ; Where k is the threshold of the influencing factor. is the average influencing factor and has ; is the average value of the i-th influencing factor, is the i-th influencing factor of the j-th transfer region, and n is the number of transfer regions. is the standard deviation of the influencing factors, α is the threshold factor, which is set according to the actual situation. The formula of the standard deviation is consistent with the existing one and is not listed here.
[0047] Compare all the influencing factors of each transfer area with the corresponding influencing factor threshold. If a certain influencing factor of a transfer area is greater than or equal to the corresponding influencing factor threshold, the area is considered to be affected by this influencing factor. Count the number of transfer areas affected by each influencing factor and use it as the influence range of the influencing factor. For example, if there are n1 transfer areas affected by the influencing factor among all transfer areas, n1 is used as the influence range of the influencing factor.
[0048] Specifically, in step 3, the influence ranges of all influencing factors are sorted by size, and multiple influencing factors are selected as selected influencing factors to predict the degree of influence of the rectification area on each transfer area during the next rectification. Specifically, a linear regression model is established for the selected influencing factors. In the linear regression model, a sample refers to an observed data point, each data point represents an observation unit, and a sample includes the selected influencing factors and the corresponding degree of influence. The specific process is as follows:
[0049] The selected influencing factors are taken as independent variables, and the degree of influence of the rectification area on the transfer area is taken as the dependent variable. Assuming that the selected influencing factors are m, the expression of the model is: ; where β1, β2, ..., βm are the coefficients of the model, is the error term, Nm is the mth selected influencing factor, and Y is the corresponding predicted impact degree.
[0050] The least squares method is used to estimate the coefficients in the model so that the model fits the actual observations as closely as possible. The estimation formula for the coefficients in the model is ; In the formula, X is the independent variable matrix, which contains the independent variable values of each sample. The first column of the matrix X is usually a constant column with all 1s, which is used to represent the intercept term. Y is a vector containing the dependent variable value (degree of influence) of each sample. represents the transpose of matrix X, express The inverse matrix of β is a vector containing all the coefficients in the linear model, including the intercept term and the coefficients of the independent variable. By calculating the formula, the best coefficient estimate is obtained, thus establishing a linear regression model to predict and explain the dependent variable Y.
[0051] The F test is used to judge the entire linear regression model, that is, to judge whether the independent variables in the model as a whole have a significant impact on the dependent variable. Specifically, the F statistic is calculated as follows: ; Where SSR is the regression sum of squares, m is the number of selected influencing factors, SSE is the error sum of squares, and n is the number of samples, that is, the number of transfer areas.
[0052] Find the F distribution table based on the F statistic and degrees of freedom (nm-1) and determine the p-value corresponding to the F statistic. The p-value is an indicator in statistical hypothesis testing, which indicates the probability of observing the statistic (F statistic) or more extreme situations when the null hypothesis is true.
[0053] Compare the p-value with the preset significance level (use the common significance level as the preset significance level). If the p-value is less than the significance level, the entire model is considered significant; conversely, if the p-value is greater than or equal to the significance level, the entire model is considered insignificant.
[0054] The established model is used to predict the impact of the rectification area on each transfer area during the next rectification. The predicted impact of the rectification area on each transfer area is sorted by size, and a certain number of transfer areas with smaller impacts are selected as preliminary transfer areas.
[0055] It should be noted that the number of samples should be large enough, generally at least 10 times the number of independent variables. Historical data of the rectified area to the transferred area during multiple past rectifications can be collected as samples. The historical data include the various influencing factors and the degree of influence corresponding to each rectification. At the same time, the model can be adjusted and optimized based on the results of model evaluation and actual needs. The details are not elaborated here.
[0056] Specifically, in step 4, monitoring equipment such as cameras and contact frequency recorders are installed in the pasture area to collect the contact frequency of each animal in real time. The contact frequency can be expressed as the number of times an animal comes into contact with other animals within a specific period of time. The contact frequency of the animals to be transferred and the animals in each preliminary transfer area is obtained. For the animals to be transferred, the total contact frequency of each animal to be transferred is calculated, that is, the sum of the contact frequencies with other animals to be transferred, and it is marked as f, and fi represents the total contact frequency of the i-th animal to be transferred. For the animals in each preliminary transfer area, the total contact frequency of each animal is calculated, that is, the sum of the contact frequencies with other animals in the corresponding transfer area, and it is marked as Fz, represents the total contact frequency of the ith animal in the jth initial transfer area.
[0057] The contact frequency of the animals to be transferred and the contact frequency of the animals in each preliminary transfer area were averaged to obtain and The calculation formula is ; ;in is the average contact frequency of the animals to be transferred, is the total contact frequency of the i-th animal to be transferred, G1 is the number of animals to be transferred; is the average contact frequency of animals in the initial transfer area, represents the total contact frequency of the ith animal in the jth initial transfer area, is the number of animals in the jth initial transfer area.
[0058] The Euclidean distance is used to calculate the similarity of the contact frequency between the animals to be transferred and the animals in each preliminary transfer area. The calculation formula is: ; In the formula is the Euclidean distance between the animal to be transferred and the jth initial transfer area, is the average contact frequency of the animals to be transferred, is the average contact frequency of animals in the jth initial transfer area.
[0059] The contact frequency similarity is used to measure the difference between the average contact frequency of the animals to be transferred and the average contact frequency of the animals in the initial transfer area. The smaller the distance, the more similar the contact frequency between the animals to be transferred and the animals in the initial transfer area, the more similar their social behaviors, and thus the animals to be transferred are more suitable for being transferred to this area.
[0060] Specifically, in step 5, the total capacity of each preliminary transfer area is obtained from the pasture design drawings or pasture management system, and the number of animals in the corresponding preliminary transfer area is subtracted from it to obtain the residual capacity of the corresponding preliminary transfer area. The residual capacity is marked as C, and Ci represents the residual capacity of the i-th preliminary transfer area. The contact frequency similarity, the residual capacity of the preliminary transfer area, and the predicted impact of the preliminary transfer area are standardized, and the formula is: In the formula, is the normalized value. The comprehensive score formula is used to calculate the comprehensive score of each preliminary transfer area, which is ; In the formula , and They are the normalized touch frequency similarity, the remaining capacity of the preliminary transfer area, and the influence of the predicted preliminary transfer area. is the comprehensive score of the jth region.
[0061] Specifically in step 6, each animal to be transferred is sorted according to the total contact frequency of the animals to be transferred. Animals with a higher contact frequency often have higher social needs. These animals contact other animals more frequently. Therefore, in a new environment, meeting the social needs of these animals helps to reduce stress response and improve adaptability. Therefore, giving priority to selecting the final transfer area for animals to be transferred with a high contact frequency can ensure that the animals to be transferred continue to maintain stable social behavior in the new environment and avoid abnormal behavior caused by environmental changes. The final transfer area is selected preferentially for the animals to be transferred with the highest total contact frequency. Specifically, the transfer area with the largest comprehensive score is selected as the final transfer area of the animal for the animal to be transferred with the highest total contact frequency, and the final transfer area is selected for each animal to be transferred by analogy. It should be noted that the remaining capacity of the selected preliminary transfer area must be greater than the number of animals to be transferred to ensure that each animal to be transferred can have a corresponding final transfer area and transfer, which will not be described in detail here.
[0062] Embodiment 2, the present invention also discloses a livestock breeding system based on the Internet of Things, including a data acquisition module, a data processing module and a data storage module;
[0063] The data acquisition module is used to obtain the influencing factors of the rectification area on each transfer area, and send them to the data processing module to ensure the operation of the subsequent data processing module;
[0064] The data processing module is used to determine the final transfer area of the animals to be transferred according to the data collected by the data collection module;
[0065] The data storage module is used to store all data generated during the livestock breeding system processing.
[0066] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0067] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product.
[0068] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application of the technical solution and the invention constraints. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0069] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0070] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0071] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A livestock breeding method based on the Internet of Things, It is characterized in that The method comprises the following steps: Step 1: Obtain the influencing factors of the rectification area on each transfer area; Step 2: Set the threshold of the influencing factor, compare the influencing factor with the corresponding threshold of the influencing factor, determine whether the transfer area is affected by the influencing factor, and count the number of transfer areas affected by each influencing coefficient as the influence range of the influencing factor; Step 3: Determine the selected influencing factors according to their influence range, establish a linear regression model for the selected influencing factors, and predict the degree of impact on each transfer area during the next rectification; select the transfer area with the smallest impact as the initial transfer area according to the magnitude of the impact; Step 4: Obtain the total contact frequency between the animals to be transferred and the animals in each preliminary transfer area; The contact frequency similarity is calculated based on the contact frequency between the animals to be transferred and the animals in each preliminary transfer area; Step 5: Obtain the remaining capacity of each preliminary transfer area, calculate the comprehensive score of each preliminary transfer area according to the contact frequency similarity, the remaining capacity of the preliminary transfer area and the predicted impact of the preliminary transfer area, and sort the preliminary transfer areas according to the size of the comprehensive score; Step 6: Sort each animal to be transferred according to its total contact frequency; According to the ranking results of the animals to be transferred and the preliminary transfer areas, the preliminary transfer area with the largest comprehensive score is selected as the final transfer area for each animal to be transferred.
2. According to the livestock breeding method based on the Internet of Things according to claim 1, Features: In step 2, statistical methods are used to set the thresholds of various factors affecting rectification, specifically: ; Where k is the threshold of influencing factors; is the average influencing factor and has ; is the average value of the i-th influencing factor, is the i-th influencing factor of the j-th transfer area, and n is the number of transfer areas; is the standard deviation of the influencing factor, α is the threshold factor; All influencing factors of each transfer area are compared with the corresponding influencing factor threshold. If an influencing factor of the transfer area is greater than or equal to the corresponding influencing factor threshold, the area is considered to be affected by this influencing factor; the number of transfer areas affected by each influencing factor is counted and taken as the influence range of the influencing factor.
3. According to the livestock breeding method based on the Internet of Things according to claim 1, Features ; In step 3, the influence ranges of all influencing factors are sorted by size, and the selected influencing factors are determined according to the size to predict the impact of the rectification area on each transfer area during the next rectification; a linear regression model is established for the selected influencing factors. The specific process is as follows: The selected influencing factors are taken as independent variables, and the degree of influence of the rectification area on the transfer area is taken as the dependent variable. Assuming that the selected influencing factors are m, the expression of the model is: ; where β1, β2, ..., βm are the coefficients of the model, is the error term, Nm is the mth selected influencing factor, and Y is the corresponding predicted impact degree; The least squares method is used to estimate the coefficients in the model. The estimation formula for the coefficients in the model is ; In the formula, X is the independent variable matrix, which contains the independent variable value of each sample. The first column of the matrix X is a constant column with all 1s, which is used to represent the intercept term; Y is a vector, which contains the dependent variable value of each sample. represents the transpose of matrix X, express The inverse matrix of β is a vector containing all the coefficients in the linear model, including the intercept term and the coefficients of the independent variable. By calculating the formula, the best coefficient estimate is obtained, so as to establish a linear regression model to predict and explain the dependent variable Y. Use the F test to judge the entire linear regression model to determine whether the independent variables in the model as a whole have a significant impact on the dependent variable; calculate the F statistic ; Where SSR is the regression sum of squares, m is the number of selected influencing factors, SSE is the error sum of squares, and n is the number of samples, i.e. the number of transfer regions; Find the F distribution table based on the F statistic and degrees of freedom, and determine the p value corresponding to the F statistic; Compare the p-value with the pre-set significance level. If the p-value is less than the significance level, the entire model is considered significant; conversely, if the p-value is greater than or equal to the significance level, the entire model is considered insignificant. The established model is used to predict the impact of the rectification area on each transfer area during the next rectification; the predicted impact of the rectification area on each transfer area is sorted by size, and the transfer area whose influencing factor is less than the corresponding influencing factor threshold is selected as the preliminary transfer area.
4. The livestock breeding method based on the Internet of Things according to claim 3, Features: In step 4, the contact frequency of each animal is collected in real time; the contact frequency of the animals to be transferred and the animals in each preliminary transfer area is obtained; The total contact frequency of each animal to be transferred is calculated, that is, the sum of the contact frequencies with other animals to be transferred, and it is marked as f, fi represents the total contact frequency of the i-th animal to be transferred; for the animals in each preliminary transfer area, the total contact frequency of each animal is calculated, that is, the sum of the contact frequencies with other animals in the corresponding transfer area, and it is marked as Fz, represents the total contact frequency of the ith animal in the jth initial transfer area; The contact frequency of the animals to be transferred and the contact frequency of the animals in each preliminary transfer area were averaged to obtain and ; The Euclidean distance was used to calculate the similarity of contact frequency between the animals to be transferred and the animals in each preliminary transfer area.
5. The livestock breeding method based on the Internet of Things according to claim 1, Features: In step 5, the total capacity of each preliminary transfer area is obtained, and the number of animals in the corresponding preliminary transfer area is subtracted from the total capacity to obtain the residual capacity of the corresponding preliminary transfer area. The residual capacity is marked as C, and Ci represents the residual capacity of the i-th preliminary transfer area; The contact frequency similarity, the remaining capacity of the preliminary transfer area, and the predicted impact of the preliminary transfer area are standardized, and the comprehensive score formula is used to calculate the comprehensive score of each preliminary transfer area: ; In the formula , and They are the normalized contact frequency similarity, the remaining capacity of the preliminary transfer area, and the predicted impact of the preliminary transfer area. is the comprehensive score of the jth region.
6. An Internet of Things-based livestock breeding system, used to implement the Internet of Things-based livestock breeding method described in any one of claims 1 to 5 above, Features: It includes data acquisition module, data processing module and data storage module; The data acquisition module is used to obtain the influencing factors of the rectification area on each transfer area, and send them to the data processing module to ensure the operation of the subsequent data processing module; The data processing module is used to determine the final transfer area of the animals to be transferred according to the data collected by the data collection module; The data storage module is used to store all data generated during the livestock breeding system processing.
Citation Information
Patent Citations
Livestock breeding method, system and device based on Internet of Things and storage medium
CN117114916A
Marine ranch-oriented land-sea complex dynamic supervision method and device
CN117592819A
