Environmental data monitoring method, device and system for sheep house

By analyzing the historical feces cleaning cycle data and environmental data of the sheep house, using clustering and stability analysis methods, the ammonia concentration in the sheep house is accurately judged, and the judgment error problem caused by the temperature influence of ammonia concentration in the existing technology is solved. , realize the timeliness and scientificity of feces cleaning, and improve the breeding environment quality and feed management efficiency of sheep houses.

CN119474936AActive Publication Date: 2025-02-18GUIZHOU INST OF ANIMAL HUSBANDRY & VETERINARY

Patent Information

Application Number
CN202510035010.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-09
Publication Date
2025-02-18
Estimated Expiration
2045-01-09

AI Technical Summary

Technical Problem

When judging the degree of feces accumulation in sheep houses, the ammonia concentration is greatly affected by the ambient temperature, resulting in judgment errors, and the feces cannot be cleaned in time, which affects the feeding and management of the sheep house.

Method used

By obtaining the feces cleaning cycle data of the sheep house history, combining infrared image data, ambient temperature and ammonia concentration data, density clustering and stability analysis are used to accurately judge the real ammonia concentration value in the sheep house, and based on this Value determines the appropriate time for stool cleaning.

Benefits of technology

It realizes accurate judgment of the ammonia concentration in the sheep house under the influence of environmental temperature changes, ensures the timeliness and scientificity of feces cleaning, and thus improves the breeding environment quality and feeding management efficiency of the sheep house.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119474936A_ABST
    Figure CN119474936A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, in particular to a sheep house-oriented environmental data monitoring method, device and system, and the method comprises the steps: obtaining a feed consumption sequence, an environmental temperature sequence, an infrared image data set and an ammonia concentration sequence of a plurality of historical excrement cleaning periods of a sheep house; the feed consumption degree of the sheep house at the latest moment in the latest excrement cleaning period is obtained; obtaining the influence degree of the temperature on the ammonia gas concentration value at the latest moment; the environment temperature fluctuation degree of the sheep house at the latest moment is obtained; according to the influence degree, the environment temperature fluctuation degree, the current ammonia concentration sequence and the stable class cluster, the real ammonia concentration value of the sheep house at the latest moment is obtained. Under the condition that the ammonia concentration of the sheep house is influenced by the environment temperature, the excrement accumulation amount of the sheep house can be accurately judged, excrement in the sheep house can be cleaned in time, and a proper breeding environment is created for the sheep house.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method, device and system for monitoring environmental data of a sheep house. Background Art

[0002] Sheep house environmental monitoring is crucial to the health and production efficiency of the sheep. Environmental parameters in the sheep house, such as temperature and ammonia concentration, directly affect the growth and health of the sheep. By real-time monitoring of these environmental parameters, the accumulation of feces in the sheep house can be cleaned up in time, creating a suitable breeding environment, thereby improving the production performance of the sheep and reducing the spread of diseases.

[0003] The existing method is to judge the degree of feces accumulation in the sheep house by the content of ammonia concentration in the sheep house, and then determine the appropriate time for feces cleaning. The more feces accumulate, the greater the ammonia concentration. However, because the concentration of ammonia is greatly affected by the change of the ambient temperature of the sheep house, when the temperature rises, the decomposition of feces is accelerated, which increases the ammonia concentration in the sheep house, affects the judgment of the degree of feces accumulation in the sheep house, resulting in the inability to clean the feces in the sheep house at the appropriate time, which is not conducive to the feeding and management of the sheep house. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a method, device and system for monitoring environmental data of a sheep house.

[0005] The environmental data monitoring method, device and system for sheep houses of the present invention adopt the following technical solutions: An embodiment of the present invention provides a method for monitoring environmental data of a sheep house, the method comprising the following steps: Obtain the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of several feces cleaning cycles in the sheep house history; record the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of the most recent feces cleaning cycle as the current feed consumption sequence, current environmental temperature sequence, current infrared image data set and current ammonia concentration sequence, respectively; Density clustering is performed on the pixels in the infrared image to obtain the gathering center point of the sheep flock in each infrared image; the activity level of the sheep flock at the latest moment in the most recent manure cleaning cycle is obtained according to the changes in the gathering center points of the sheep flock in the adjacent infrared images in the current infrared image data set; the feed consumption level of the sheep house at the latest moment in the most recent manure cleaning cycle is obtained according to the activity level and the current feed consumption sequence; the first feed consumption level sequence of the most recent manure cleaning cycle is obtained according to the feed consumption level; the second feed consumption level sequence of each historical manure cleaning cycle is obtained according to the method of obtaining the first feed consumption level sequence of the most recent manure cleaning cycle; Obtaining a number of second feed consumption degree sequences similar to the first feed consumption degree sequence; obtaining the stability of the first feed consumption degree sequence based on the number of second feed consumption degree sequences similar to the first feed consumption degree sequence; obtaining the degree to which the ammonia concentration value at the latest moment in the most recent feces cleaning cycle is affected by temperature based on the stability of the first feed consumption degree sequence and the current ammonia concentration sequence; The feces cleaning cycles in which several second feed consumption degree sequences similar to the first feed consumption degree sequence are located are used as feces cleaning cycles to be analyzed, and the ammonia concentration value at the same time as the latest time is recorded as the first ammonia concentration value in the ammonia concentration sequences of all feces cleaning cycles to be analyzed and the most recent feces cleaning cycle; the ambient temperature value corresponding to the first ammonia concentration value is obtained in all ambient temperature sequences, and a two-dimensional data point is determined according to each first ammonia concentration value and the corresponding ambient temperature value, and a two-dimensional coordinate space is constructed, and all two-dimensional data points in the two-dimensional coordinate space are clustered to obtain a plurality of clusters; According to the fluctuation of the ammonia concentration value corresponding to the two-dimensional data point in the cluster, the stability of the ammonia concentration value corresponding to the two-dimensional data point in each cluster is obtained; The cluster corresponding to the maximum stability value of the ammonia concentration value corresponding to the two-dimensional data points in the cluster is recorded as a stable cluster; based on the stable cluster and the ambient temperature value at the latest moment in the current ambient temperature sequence, the degree of fluctuation of the ambient temperature in the sheep house at the latest moment in the most recent manure cleaning cycle is obtained; based on the degree of influence, the degree of fluctuation of the ambient temperature, the current ammonia concentration sequence and the stable cluster, the real ammonia concentration value in the sheep house at the latest moment in the most recent manure cleaning cycle is obtained; and the manure in the sheep house is cleaned according to the real ammonia concentration value in the sheep house at the latest moment in the most recent manure cleaning cycle.

[0006] Furthermore, the step of obtaining the activity level of the sheep flock at the latest moment in the most recent feces cleaning cycle according to the change of the gathering center point of the sheep flock in the adjacent infrared images in the current infrared image data set includes the following specific steps: The current infrared image data set The center point of the flock of sheep in the infrared image to the The relative Euclidean distance of the center point of the flock in the infrared image is used as the first The activity distance of the flock at the moment, This moment is the last moment in the most recent feces cleaning cycle; In the formula, It is the number of all moments in the most recent feces cleaning cycle; The most recent feces cleaning cycle The activity distance of the flock at each moment; The most recent feces cleaning cycle The activity distance of the flock at each moment; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The activity level of the flock at a certain moment.

[0007] Furthermore, the step of obtaining the feed consumption level of the sheep house at the latest moment in the most recent feces cleaning cycle according to the activity level and the current feed consumption sequence includes the following specific steps: In the formula, The first Feed consumption; The first The instantaneous slope corresponding to the feed consumption; The most recent feces cleaning cycle The activity level of the flock at a given moment; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The feed consumption level of the sheep house at a certain moment.

[0008] Furthermore, the step of obtaining the stability of the first feed consumption degree sequence according to a plurality of second feed consumption degree sequences similar to the first feed consumption degree sequence comprises the following specific steps: In the formula, is the number of second feed consumption level sequences similar to the first feed consumption level sequence; It is the number of all moments in the most recent feces cleaning cycle; The first feed consumption level sequence Feed consumption level; The first feed consumption level is similar to the first feed consumption level. The second feed consumption level sequence Feed consumption level; To take the absolute value; is an exponential function with a natural constant as base; The stability of the first feed consumption level sequence.

[0009] Furthermore, the step of obtaining the degree to which the ammonia concentration value at the latest moment in the most recent feces cleaning cycle is affected by temperature based on the stability of the first feed consumption degree sequence and the current ammonia concentration sequence includes the following specific steps: In the formula, is the stability of the first feed consumption level sequence; It is the number of all moments in the most recent feces cleaning cycle; is the current ammonia concentration sequence Ammonia concentration value; is the current ammonia concentration sequence Ammonia concentration value; is the first in the current ammonia concentration sequence The instantaneous slope corresponding to each ammonia concentration value; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The degree to which the ammonia concentration value is affected by temperature at each moment.

[0010] Furthermore, the method of obtaining the stability of the ammonia concentration value corresponding to the two-dimensional data point in each cluster according to the fluctuation of the ammonia concentration value corresponding to the two-dimensional data point in the cluster includes the following specific steps: In the formula, For the The number of two-dimensional data points in each cluster; is the total number of two-dimensional data points in all clusters; For the The variance of the ammonia concentration values ​​corresponding to all two-dimensional data points in each cluster; To prevent hyperparameters with denominators equal to 0; is the sigmoid function, used for normalization; For the The stability of the ammonia concentration values ​​corresponding to the two-dimensional data points in each cluster.

[0011] Furthermore, the step of obtaining the degree of fluctuation of the ambient temperature of the sheep house at the latest moment in the most recent manure cleaning cycle according to the stable cluster and the ambient temperature value at the latest moment in the current ambient temperature sequence includes the following specific steps: In the formula, The current ambient temperature sequence Ambient temperature value; is the average value of the ambient temperature corresponding to all two-dimensional data points in the stable cluster; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The degree of fluctuation of the ambient temperature of the sheep house at a certain moment.

[0012] Furthermore, the actual ammonia concentration value of the sheep house at the latest moment in the most recent manure cleaning cycle is obtained according to the degree of influence, the degree of ambient temperature fluctuation, the current ammonia concentration sequence and the stable cluster, including the following specific steps: In the formula, The most recent feces cleaning cycle The degree to which the ammonia concentration value at each moment is affected by temperature; The most recent feces cleaning cycle The degree of fluctuation of ambient temperature in the sheep house at each moment; is the current ammonia concentration sequence The number of ammonia concentration values ​​corresponding to the two-dimensional data points in the cluster where the ammonia concentration value belongs; is the current ammonia concentration sequence Ammonia concentration value; is the current ammonia concentration sequence The ammonia concentration value belongs to the cluster Ammonia concentration value corresponding to two-dimensional data points; is the average value of ammonia concentration corresponding to all two-dimensional data points in the stable cluster; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The actual ammonia concentration in the sheep house at that moment.

[0013] The present invention also proposes an environmental data monitoring device for sheep houses, the device includes a data acquisition module and a real ammonia concentration value acquisition module, the data acquisition module is used to obtain the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of several feces cleaning cycles in the sheep house history; the real ammonia concentration value acquisition module is used to record the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of the most recent feces cleaning cycle as the current feed consumption sequence, the current environmental temperature sequence, the current infrared image data set and the current ammonia concentration sequence respectively; perform density clustering on the pixels in the infrared image to obtain the gathering center point of the sheep flock in each infrared image; according to the current The activity level of the sheep flock at the latest moment in the most recent manure cleaning cycle is obtained by analyzing the changes in the gathering center points of the sheep flock in the adjacent infrared images in the previous infrared image data set; the feed consumption level of the sheep house at the latest moment in the most recent manure cleaning cycle is obtained according to the activity level and the current feed consumption sequence; the first feed consumption level sequence of the most recent manure cleaning cycle is obtained according to the feed consumption level; the second feed consumption level sequence of each historical manure cleaning cycle is obtained according to the method for obtaining the first feed consumption level sequence of the most recent manure cleaning cycle; several second feed consumption level sequences similar to the first feed consumption level sequence are obtained; and several second feed consumption level sequences similar to the first feed consumption level sequence are obtained according to the method for obtaining the first feed consumption level sequence of the most recent manure cleaning cycle. The stability of the first feed consumption sequence is obtained; according to the stability of the first feed consumption sequence and the current ammonia concentration sequence, the degree of influence of the temperature on the ammonia concentration value at the latest moment in the most recent feces cleaning cycle is obtained; the feces cleaning cycles in which several second feed consumption sequences similar to the first feed consumption sequence are located are taken as the feces cleaning cycles to be analyzed, and in the ammonia concentration sequences of all feces cleaning cycles to be analyzed and the most recent feces cleaning cycle, the ammonia concentration value at the same moment as the latest moment is recorded as the first ammonia concentration value; the ambient temperature value corresponding to the first ammonia concentration value is obtained in all ambient temperature sequences, and the ambient temperature value corresponding to each first ammonia concentration value is determined according to the ambient temperature value. The two-dimensional data points are extracted and a two-dimensional coordinate space is constructed, and all the two-dimensional data points in the two-dimensional coordinate space are clustered to obtain several clusters; according to the fluctuation of the ammonia concentration value corresponding to the two-dimensional data points in the cluster, the stability of the ammonia concentration value corresponding to the two-dimensional data points in each cluster is obtained; the cluster corresponding to the maximum stability of the ammonia concentration value corresponding to the two-dimensional data points in the cluster is recorded as a stable cluster; according to the stable cluster and the ambient temperature value at the latest moment in the current ambient temperature sequence, the degree of fluctuation of the ambient temperature in the sheep house at the latest moment in the most recent manure cleaning cycle is obtained; according to the degree of influence, the degree of fluctuation of the ambient temperature, the current ammonia concentration sequence and the stable cluster, the actual ammonia concentration value in the sheep house at the latest moment in the most recent manure cleaning cycle is obtained.

[0014] The present invention also proposes an environmental data monitoring system for a sheep house, comprising a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the steps of the aforementioned method.

[0015] The beneficial effect of the technical solution of the present invention is: according to the present invention, when the ammonia concentration in the sheep house is affected by the ambient temperature, the actual ammonia concentration in the sheep house can be accurately judged, and then the amount of feces accumulation in the sheep house can be judged, and the feces in the sheep house can be cleaned in time to create a suitable breeding environment for the sheep house, thereby improving the production performance of the sheep and reducing the spread of diseases, and improving the feeding and management efficiency of the sheep house. When determining the feed consumption level of the sheep house at the latest moment in the most recent feces cleaning cycle, the feed consumption level is determined by analyzing the activity level of the flock, thereby improving the scientificity, accuracy and objectivity of the feed consumption level of the sheep house at the latest moment. When determining the degree of influence of temperature on the ammonia concentration value at the latest moment in the most recent feces cleaning cycle, the degree of influence of temperature on the ammonia concentration value at the latest moment is determined by analyzing the stability of the feed consumption level sequence and the current ammonia concentration sequence, thereby improving the accuracy, scientificity and objectivity of the influence of temperature on the ammonia concentration value. When determining the actual ammonia concentration value in the sheep house at the latest moment during the most recent manure cleaning cycle, the influence of temperature on the ammonia concentration value and the interference of ambient temperature fluctuations are fully considered. The actual ammonia concentration value in the sheep house at the latest moment during the most recent manure cleaning cycle is determined through the degree of influence, the degree of ambient temperature fluctuation, the current ammonia concentration sequence and the stable cluster, thereby improving the scientificity, accuracy and objectivity of the actual ammonia concentration value. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A flowchart of the steps of a method for monitoring environmental data in a sheep house provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0018] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the environmental data monitoring method, equipment and system for sheep houses proposed by the present invention, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0019] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0020] The following is a detailed description of a specific scheme of an environmental data monitoring method, device and system for a sheep house provided by the present invention in conjunction with the accompanying drawings.

[0021] See also Figure 1 , which shows a flowchart of a method for monitoring environmental data of a sheep house provided by an embodiment of the present invention, the method comprising the following steps: Step S001, obtaining feed consumption sequences, environmental temperature sequences, infrared image data sets and ammonia concentration sequences of several feces cleaning cycles in the sheep house history.

[0022] It should be noted that the main purpose of this implementation is to make a reasonable judgment on the amount of feces in the sheep house based on the ammonia concentration value in the sheep house, determine the appropriate cleaning time, and collect relevant data before starting the analysis.

[0023] Specifically, the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of several feces cleaning cycles in the sheep house are obtained, as follows: Through the sheep house feed management system, the feed consumption at different times is recorded to obtain the feed consumption sequence of the sheep house's multiple historical manure cleaning cycles. A temperature sensor is installed in the center of the sheep house to obtain the environmental temperature sequence of the sheep house's multiple historical manure cleaning cycles. A thermal infrared camera is installed in the sheep house to obtain the infrared image data set of the sheep house's multiple historical manure cleaning cycles. An ammonia sensor is installed in the sheep house. The ammonia sensor is 50 cm from the ground. The specific distance can be adjusted to obtain the ammonia concentration sequence of the sheep house's multiple historical manure cleaning cycles.

[0024] It should be noted that obtaining feed consumption sequence, ambient temperature sequence, infrared image data set and ammonia concentration sequence is an existing method, and this embodiment will not go into details; the acquisition frequency and duration of all sequences are the same, that is, each moment corresponds to a feed consumption, ambient temperature value, infrared image and ammonia concentration value; a feces cleaning cycle is the time period from the completion of feces cleaning to the next feces cleaning.

[0025] It should be noted that, in the prior art, the degree of feces accumulation in the sheep house is judged by the ammonia concentration in the sheep house. The more feces are accumulated, the greater the ammonia concentration. However, because the concentration of ammonia is greatly affected by the change of the ambient temperature of the sheep house, when the temperature rises, the decomposition of feces is accelerated, which increases the ammonia concentration in the sheep house, affecting the judgment of the degree of feces accumulation in the sheep house. Therefore, the above-mentioned related data are collected for analysis. In addition, the data collection in this embodiment is carried out in a cold environment in winter.

[0026] The feed consumption sequence, ambient temperature sequence, infrared image data set, and ammonia concentration sequence of the most recent feces cleaning cycle are recorded as the current feed consumption sequence, the current ambient temperature sequence, the current infrared image data set, and the current ammonia concentration sequence, respectively.

[0027] It should be noted that if the current sequence is not a complete feces cleaning cycle, the historical sequence needs to be adjusted to the same time range as the current sequence.

[0028] So far, the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of several feces cleaning cycles in the sheep house history have been obtained.

[0029] Step S002, density clustering is performed on the pixels in the infrared image to obtain the gathering center point of the sheep flock in each infrared image; according to the change of the gathering center point of the sheep flock in the adjacent infrared images in the current infrared image data set, the activity level of the sheep flock at the latest moment in the most recent manure cleaning cycle is obtained; according to the activity level and the current feed consumption sequence, the feed consumption level of the sheep house at the latest moment in the most recent manure cleaning cycle is obtained; according to the feed consumption level, the first feed consumption level sequence of the most recent manure cleaning cycle is obtained; according to the method of obtaining the first feed consumption level sequence of the most recent manure cleaning cycle, the second feed consumption level sequence of each historical manure cleaning cycle is obtained.

[0030] It should be noted that the above obtained the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of several feces cleaning cycles in the sheep house. The accumulation of feces in the sheep house is closely related to the degree of feed consumption. The greater the feed consumption, the greater the accumulation of feces. Therefore, we consider analyzing the feed consumption of the sheep house at the latest moment in the most recent feces cleaning cycle. The feed consumption is related to the activity distance and activity level of the flock. The more active the flock, the greater the feed consumption. Therefore, we first analyze the activity level of the flock at the latest moment in the most recent feces cleaning cycle, and then analyze the feed consumption of the sheep house at the latest moment in the most recent feces cleaning cycle.

[0031] Specifically, the pixels in the infrared image are density clustered to obtain the gathering center point of the flock in each infrared image, as follows: For any infrared image in the current infrared image dataset, DBSCAN density clustering (Density-Based Spatial Clustering of Applications with Noise, DBSCAN) is performed on the pixels in the infrared image to obtain several clusters of the infrared image. The centroid point of the cluster with the largest area is used as the gathering center point of the sheep flock in the infrared image.

[0032] It should be noted that performing DBSCAN density clustering on pixels in the infrared image to obtain the aggregation center point of the sheep flock in the infrared image is an existing method, which will not be described in detail in this embodiment.

[0033] Furthermore, according to the change of the gathering center point of the sheep in the adjacent infrared images in the current infrared image data set, the activity distance of the sheep at the latest moment in the most recent feces cleaning cycle is obtained, as follows: The current infrared image data set The center point of the flock of sheep in the infrared image to the The relative Euclidean distance of the center point of the flock in the infrared image is used as the first The activity distance of the flock at the moment, The moment is the last moment in the most recent feces cleaning cycle, that is, the latest moment.

[0034] It should be noted that the collection frequency and duration of the feed consumption sequence, ambient temperature sequence, infrared image data set and ammonia concentration sequence of the sheep house are the same, so Infrared image and The moments correspond.

[0035] Furthermore, according to the change of activity distance, the activity level of the flock at the latest moment in the most recent feces cleaning cycle is obtained, as follows: In the formula, It is the number of all moments in the most recent feces cleaning cycle; The most recent feces cleaning cycle The activity distance of the flock at each moment; The most recent feces cleaning cycle The activity distance of the flock at each moment; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The activity level of the flock at a certain moment.

[0036] It should be noted that It indicates the change of the recent activity distance of the sheep herd during the most recent manure cleaning cycle compared with the historical activity distance. The larger the recent activity distance, the more active the sheep herd is.

[0037] Specifically, according to the activity level and the current feed consumption sequence, the feed consumption level of the sheep house at the latest moment in the most recent manure cleaning cycle is obtained, as follows: In the formula, The first Feed consumption; The first The instantaneous slope corresponding to the feed consumption; The most recent feces cleaning cycle The activity level of the flock at a given moment; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The feed consumption level of the sheep house at a certain moment.

[0038] It should be noted that when At the same time, the more active the sheep are, the more feed they consume. The greater the feed consumption in the sheep house at this moment.

[0039] Furthermore, according to the feed consumption degree, the first feed consumption degree sequence of the most recent feces cleaning cycle is obtained, as follows: According to the method of obtaining the feed consumption level of the sheep house at the latest moment, the feed consumption level of the sheep house at all moments in the most recent manure cleaning cycle is obtained; the feed consumption level of the sheep house at all moments in the most recent manure cleaning cycle is arranged in chronological order to obtain the first feed consumption level sequence of the most recent manure cleaning cycle.

[0040] Furthermore, according to the method of obtaining the first feed consumption degree sequence of the most recent feces cleaning cycle, the second feed consumption degree sequence of each historical feces cleaning cycle is obtained.

[0041] At this point, the second feed consumption level sequence of each feces cleaning cycle in history is obtained.

[0042] Step S003, obtaining several second feed consumption degree sequences similar to the first feed consumption degree sequence; obtaining the stability of the first feed consumption degree sequence based on the several second feed consumption degree sequences similar to the first feed consumption degree sequence; obtaining the degree to which the ammonia concentration value at the latest moment in the most recent feces cleaning cycle is affected by temperature based on the stability of the first feed consumption degree sequence and the current ammonia concentration sequence; obtaining the stability of the ammonia concentration value corresponding to the two-dimensional data points in each cluster based on the fluctuation of the ammonia concentration value corresponding to the two-dimensional data points in the cluster.

[0043] It should be noted that, in order to facilitate subsequent analysis, it is necessary to obtain the stability of the first feed consumption degree sequence.

[0044] Specifically, several second feed consumption degree sequences similar to the first feed consumption degree sequence are obtained, as follows: The DTW distance between the first feed consumption level sequence and each second feed consumption level sequence is obtained through the DTW algorithm, and the inverse proportional value of the DTW distance is used as the matching degree between the first feed consumption level sequence and each second feed consumption level sequence. The second feed consumption level sequence with a matching degree greater than a preset matching threshold is used as the second feed consumption level sequence similar to the first feed consumption level sequence. The preset matching threshold in this embodiment is described as 0.8.

[0045] It should be noted that the matching degree needs to be normalized and then compared with a preset matching threshold.

[0046] Furthermore, according to a plurality of second feed consumption degree sequences similar to the first feed consumption degree sequence, the stability of the first feed consumption degree sequence is obtained, as follows: In the formula, is the number of second feed consumption level sequences similar to the first feed consumption level sequence; It is the number of all moments in the most recent feces cleaning cycle; The first feed consumption level sequence Feed consumption level; The first feed consumption level is similar to the first feed consumption level. The second feed consumption level sequence Feed consumption level; To take the absolute value; is an exponential function with a natural constant as the base. The model shows the inverse proportional relationship. is the input of the model; The stability of the first feed consumption level sequence.

[0047] It should be noted that The smaller it is, the closer the feed consumption level in the most recent feces cleaning cycle is to that in the historical feces cleaning cycle, and the better the stability of the first feed consumption sequence is, which can reflect the influence of temperature on ammonia concentration to a certain extent.

[0048] Specifically, according to the stability of the first feed consumption degree sequence and the current ammonia concentration sequence, the degree to which the ammonia concentration value at the latest moment in the most recent feces cleaning cycle is affected by the temperature is obtained, as follows: In the formula, is the stability of the first feed consumption level sequence; It is the number of all moments in the most recent feces cleaning cycle; is the current ammonia concentration sequence Ammonia concentration value; is the current ammonia concentration sequence Ammonia concentration value; is the current ammonia concentration sequence The instantaneous slope corresponding to each ammonia concentration value; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The degree to which the ammonia concentration value is affected by temperature at each moment.

[0049] It should be noted that The larger the value, the greater the change in ammonia concentration. It is more likely that the increase in ammonia concentration is caused by temperature. The weight is adjusted for weighting. The greater the change in ammonia concentration, the greater the degree of change affected by temperature. Combined with the stability of the first feed consumption sequence, stability is used as the weight. The higher the stability of the first feed consumption sequence, the greater the change in ammonia concentration. It is more likely that the ammonia concentration has changed significantly due to the influence of temperature. The ammonia concentration value at the latest moment in the most recent feces cleaning cycle is more affected by temperature.

[0050] It should be noted that, in order to facilitate subsequent analysis, it is necessary to obtain the ambient temperature value corresponding to the first ammonia concentration value in all ambient temperature sequences, determine the two-dimensional data points and construct a two-dimensional coordinate space based on each first ammonia concentration value and the corresponding ambient temperature value, and cluster all two-dimensional data points in the two-dimensional coordinate space to obtain several clusters.

[0051] Specifically, the feces cleaning cycles in which several second feed consumption degree sequences similar to the first feed consumption degree sequence are located are taken as the feces cleaning cycles to be analyzed, and in the ammonia concentration sequences of all feces cleaning cycles to be analyzed and the most recent feces cleaning cycle, the ammonia concentration value at the same time as the latest time is recorded as the first ammonia concentration value; the ambient temperature value corresponding to the first ammonia concentration value is obtained in all ambient temperature sequences, and two-dimensional data points are determined according to each first ammonia concentration value and the corresponding ambient temperature value, and a two-dimensional coordinate space is constructed, and all two-dimensional data points in the two-dimensional coordinate space are clustered to obtain a number of clusters.

[0052] It should be noted that the specific clustering method is K-means clustering, and the K value of K-means clustering is determined by the elbow method; all ambient temperature sequences also include the current ambient temperature sequence.

[0053] Specifically, according to the fluctuation of the ammonia concentration value corresponding to the two-dimensional data point in the cluster, the stability of the ammonia concentration value corresponding to the two-dimensional data point in each cluster is obtained, as follows: In the formula, For the The number of two-dimensional data points in each cluster; is the total number of two-dimensional data points in all clusters; For the The variance of the ammonia concentration values ​​corresponding to all two-dimensional data points in each cluster; To prevent hyperparameters with denominators equal to 0; is the sigmoid function, used for normalization; For the The stability of the ammonia concentration values ​​corresponding to the two-dimensional data points in each cluster.

[0054] It should be noted that when the number of two-dimensional data points in a cluster is large and the fluctuation of the ammonia concentration values ​​corresponding to all two-dimensional data points in the cluster is small, it indicates the stability of the ammonia concentration values ​​corresponding to the two-dimensional data points in the cluster. The calculation of stability is mainly to facilitate the subsequent acquisition of stable clusters.

[0055] At this point, the stability of the ammonia concentration values ​​corresponding to the two-dimensional data points in each cluster is obtained.

[0056] Step S004, record the cluster corresponding to the maximum stability value of the ammonia concentration value corresponding to the two-dimensional data points in the cluster as a stable cluster; obtain the degree of fluctuation of the ambient temperature in the sheep house at the latest moment in the most recent manure cleaning cycle according to the stable cluster and the ambient temperature value at the latest moment in the current ambient temperature sequence; obtain the real ammonia concentration value in the sheep house at the latest moment in the most recent manure cleaning cycle according to the degree of influence, the degree of fluctuation of the ambient temperature, the current ammonia concentration sequence and the stable cluster; clean the manure in the sheep house according to the real ammonia concentration value in the sheep house at the latest moment in the most recent manure cleaning cycle.

[0057] It should be noted that the stability of the ammonia concentration value obtained above is then used to obtain the stable cluster and the degree of fluctuation of the ambient temperature of the sheep house at the latest moment in the most recent manure cleaning cycle, and then obtain the actual ammonia concentration value of the sheep house at the latest moment in the most recent manure cleaning cycle.

[0058] Specifically, the cluster corresponding to the maximum stability value of the ammonia concentration value corresponding to the two-dimensional data points in the cluster is recorded as a stable cluster.

[0059] It should be noted that the average value of the ammonia concentration values ​​corresponding to all two-dimensional data points in the stable cluster can reflect the theoretical reference value of the ammonia concentration at the latest moment.

[0060] It should be noted that since the actual ammonia concentration value in the sheep house at the latest moment in the most recent manure cleaning cycle will be affected by the degree of fluctuation of the ambient temperature in the sheep house at the latest moment in the most recent manure cleaning cycle, the degree of fluctuation of the ambient temperature in the sheep house at the latest moment in the most recent manure cleaning cycle is analyzed here.

[0061] Furthermore, according to the stable cluster and the latest ambient temperature value in the current ambient temperature sequence, the ambient temperature fluctuation degree of the sheep house at the latest moment in the most recent manure cleaning cycle is obtained, as follows: In the formula, The current ambient temperature sequence Ambient temperature value; is the average value of the ambient temperature corresponding to all two-dimensional data points in the stable cluster; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The degree of fluctuation of the ambient temperature of the sheep house at a certain moment.

[0062] It should be noted that The larger the difference, the greater the fluctuation of the ambient temperature in the sheep house at the latest moment in the most recent manure cleaning cycle.

[0063] Specifically, according to the degree of influence, the degree of ambient temperature fluctuation, the current ammonia concentration sequence and the stable cluster, the actual ammonia concentration value of the sheep house at the latest moment in the most recent manure cleaning cycle is obtained, as follows: In the formula, The most recent feces cleaning cycle The degree to which the ammonia concentration value at each moment is affected by temperature; The most recent feces cleaning cycle The degree of fluctuation of the ambient temperature of the sheep house at each moment; is the first in the current ammonia concentration sequence The number of ammonia concentration values ​​corresponding to the two-dimensional data points in the cluster where the ammonia concentration value belongs; is the first in the current ammonia concentration sequence Ammonia concentration value; is the first in the current ammonia concentration sequence The ammonia concentration value belongs to the cluster Ammonia concentration value corresponding to two-dimensional data points; is the average value of ammonia concentration corresponding to all two-dimensional data points in the stable cluster; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The actual ammonia concentration in the sheep house at that moment.

[0064] It should be noted that the average value of the ammonia concentration corresponding to all two-dimensional data points in the stable cluster reflects the theoretical reference value of the ammonia concentration at the latest moment. The greater the influence of temperature on the ammonia concentration at each moment, the greater the fluctuation of ambient temperature. The ammonia concentration value of the cluster is quite different from the other ammonia concentration values ​​of the cluster. The more the ammonia concentration value is affected by temperature, the greater the correction required. By correcting the theoretical reference value of ammonia concentration, the The actual ammonia concentration in the sheep house at that moment.

[0065] Furthermore, the feces in the sheep house are cleaned according to the actual ammonia concentration value of the sheep house at the latest moment in the most recent feces cleaning cycle, as follows: The preset ammonia concentration threshold is described in this embodiment as 55 ppm. If the actual ammonia concentration value in the sheep house at the latest moment in the most recent feces cleaning cycle is greater than the preset ammonia concentration threshold, the sheep house is cleaned for feces, otherwise, it is not cleaned.

[0066] Through the above steps, a method for environmental data monitoring of sheep houses is completed.

[0067] Another embodiment of the present invention provides an environmental data monitoring device for a sheep house, including a data acquisition module and a real ammonia concentration value acquisition module, wherein the data acquisition module is used to acquire the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of several feces cleaning cycles in the history of the sheep house; the real ammonia concentration value acquisition module is used to record the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of the most recent feces cleaning cycle as the current feed consumption sequence, the current environmental temperature sequence, the current infrared image data set and the current ammonia concentration sequence, respectively; perform density clustering on the pixels in the infrared image to obtain the gathering center point of the sheep flock in each infrared image; and The change of the gathering center point of the sheep flock in the adjacent infrared images in the current infrared image data set is used to obtain the activity level of the sheep flock at the latest moment in the most recent manure cleaning cycle; based on the activity level and the current feed consumption sequence, the feed consumption level of the sheep house at the latest moment in the most recent manure cleaning cycle is obtained; based on the feed consumption level, the first feed consumption level sequence of the most recent manure cleaning cycle is obtained; based on the method of obtaining the first feed consumption level sequence of the most recent manure cleaning cycle, the second feed consumption level sequence of each historical manure cleaning cycle is obtained; several second feed consumption level sequences similar to the first feed consumption level sequence are obtained; based on several second feed consumption level sequences similar to the first feed consumption level sequence sequence, obtain the stability of the first feed consumption sequence; according to the stability of the first feed consumption sequence and the current ammonia concentration sequence, obtain the degree of influence of temperature on the ammonia concentration value at the latest moment in the most recent feces cleaning cycle; take the feces cleaning cycles in which several second feed consumption sequences similar to the first feed consumption sequence are located as the feces cleaning cycles to be analyzed, and in the ammonia concentration sequences of all feces cleaning cycles to be analyzed and the most recent feces cleaning cycle, record the ammonia concentration value at the same time as the latest moment as the first ammonia concentration value; obtain the ambient temperature value corresponding to the first ammonia concentration value in all ambient temperature sequences, and determine the ambient temperature value according to each first ammonia concentration value and the corresponding ambient temperature value The two-dimensional data points are extracted and a two-dimensional coordinate space is constructed, and all the two-dimensional data points in the two-dimensional coordinate space are clustered to obtain several clusters; according to the fluctuation of the ammonia concentration value corresponding to the two-dimensional data points in the cluster, the stability of the ammonia concentration value corresponding to the two-dimensional data points in each cluster is obtained; the cluster corresponding to the maximum stability of the ammonia concentration value corresponding to the two-dimensional data points in the cluster is recorded as a stable cluster; according to the stable cluster and the ambient temperature value at the latest moment in the current ambient temperature sequence, the degree of fluctuation of the ambient temperature in the sheep house at the latest moment in the most recent manure cleaning cycle is obtained; according to the degree of influence, the degree of fluctuation of the ambient temperature, the current ammonia concentration sequence and the stable cluster, the actual ammonia concentration value in the sheep house at the latest moment in the most recent manure cleaning cycle is obtained.

[0068] Another embodiment of the present invention provides an environmental data monitoring system for a sheep house, the system comprising a memory and a processor, and the processor performs the following operations when executing the computer program stored in the memory: obtaining the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of several feces cleaning cycles in the history of the sheep house; recording the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of the most recent feces cleaning cycle as the current feed consumption sequence, the current environmental temperature sequence, the current infrared image data set and the current ammonia concentration sequence, respectively; performing density clustering on the pixels in the infrared image to obtain the gathering center point of the sheep flock in each infrared image; and clustering the pixels in the current infrared image data set according to the corresponding The change of the gathering center point of the flock in the adjacent infrared image is used to obtain the activity level of the flock at the latest moment in the most recent feces cleaning cycle; based on the activity level and the current feed consumption sequence, the feed consumption level of the sheep house at the latest moment in the most recent feces cleaning cycle is obtained; based on the feed consumption level, the first feed consumption level sequence of the most recent feces cleaning cycle is obtained; based on the method of obtaining the first feed consumption level sequence of the most recent feces cleaning cycle, the second feed consumption level sequence of each historical feces cleaning cycle is obtained; several second feed consumption level sequences similar to the first feed consumption level sequence are obtained; based on several second feed consumption level sequences similar to the first feed consumption level sequence, the stability of the first feed consumption level sequence is obtained; According to the stability of the first feed consumption degree sequence and the current ammonia concentration sequence, the degree of influence of temperature on the ammonia concentration value at the latest moment in the most recent feces cleaning cycle is obtained; the feces cleaning cycles in which several second feed consumption degree sequences similar to the first feed consumption degree sequence are located are taken as the feces cleaning cycles to be analyzed, and in the ammonia concentration sequences of all feces cleaning cycles to be analyzed and the most recent feces cleaning cycle, the ammonia concentration value at the same moment as the latest moment is recorded as the first ammonia concentration value; the ambient temperature value corresponding to the first ammonia concentration value is obtained in all ambient temperature sequences, and a two-dimensional data point is determined according to each first ammonia concentration value and the corresponding ambient temperature value, and a two-dimensional coordinate space is constructed, and all two-dimensional data points in the two-dimensional coordinate space are calculated. The data points are clustered to obtain several clusters; the stability of the ammonia concentration values ​​corresponding to the two-dimensional data points in each cluster is obtained according to the fluctuation of the ammonia concentration values ​​corresponding to the two-dimensional data points in the cluster; the cluster corresponding to the maximum stability of the ammonia concentration values ​​corresponding to the two-dimensional data points in the cluster is recorded as a stable cluster; according to the stable cluster and the ambient temperature value at the latest moment in the current ambient temperature sequence, the degree of fluctuation of the ambient temperature in the sheep house at the latest moment in the most recent manure cleaning cycle is obtained; according to the degree of influence, the degree of fluctuation of the ambient temperature, the current ammonia concentration sequence and the stable cluster, the real ammonia concentration value in the sheep house at the latest moment in the most recent manure cleaning cycle is obtained; and the manure in the sheep house is cleaned according to the real ammonia concentration value in the sheep house at the latest moment in the most recent manure cleaning cycle.

[0069] 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 principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for monitoring environmental data in a sheep house, characterized in that: The method comprises the following steps: Obtain the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of several feces cleaning cycles in the sheep house history; record the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of the most recent feces cleaning cycle as the current feed consumption sequence, current environmental temperature sequence, current infrared image data set and current ammonia concentration sequence, respectively; Density clustering is performed on the pixels in the infrared image to obtain the gathering center point of the sheep flock in each infrared image; the activity level of the sheep flock at the latest moment in the most recent manure cleaning cycle is obtained according to the changes in the gathering center points of the sheep flock in the adjacent infrared images in the current infrared image data set; the feed consumption level of the sheep house at the latest moment in the most recent manure cleaning cycle is obtained according to the activity level and the current feed consumption sequence; the first feed consumption level sequence of the most recent manure cleaning cycle is obtained according to the feed consumption level; the second feed consumption level sequence of each historical manure cleaning cycle is obtained according to the method of obtaining the first feed consumption level sequence of the most recent manure cleaning cycle; Obtaining a number of second feed consumption degree sequences similar to the first feed consumption degree sequence; obtaining the stability of the first feed consumption degree sequence based on the number of second feed consumption degree sequences similar to the first feed consumption degree sequence; obtaining the degree to which the ammonia concentration value at the latest moment in the most recent feces cleaning cycle is affected by temperature based on the stability of the first feed consumption degree sequence and the current ammonia concentration sequence; The feces cleaning cycles in which several second feed consumption degree sequences similar to the first feed consumption degree sequence are located are used as feces cleaning cycles to be analyzed, and the ammonia concentration value at the same time as the latest time is recorded as the first ammonia concentration value in the ammonia concentration sequences of all feces cleaning cycles to be analyzed and the most recent feces cleaning cycle; the ambient temperature value corresponding to the first ammonia concentration value is obtained in all ambient temperature sequences, and a two-dimensional data point is determined according to each first ammonia concentration value and the corresponding ambient temperature value, and a two-dimensional coordinate space is constructed, and all two-dimensional data points in the two-dimensional coordinate space are clustered to obtain a plurality of clusters; According to the fluctuation of the ammonia concentration value corresponding to the two-dimensional data point in the cluster, the stability of the ammonia concentration value corresponding to the two-dimensional data point in each cluster is obtained; The cluster corresponding to the maximum stability value of the ammonia concentration value corresponding to the two-dimensional data points in the cluster is recorded as a stable cluster; based on the stable cluster and the ambient temperature value at the latest moment in the current ambient temperature sequence, the degree of fluctuation of the ambient temperature in the sheep house at the latest moment in the most recent manure cleaning cycle is obtained; based on the degree of influence, the degree of fluctuation of the ambient temperature, the current ammonia concentration sequence and the stable cluster, the real ammonia concentration value in the sheep house at the latest moment in the most recent manure cleaning cycle is obtained; and the manure in the sheep house is cleaned according to the real ammonia concentration value in the sheep house at the latest moment in the most recent manure cleaning cycle.

2. The method for monitoring environmental data of a sheep house according to claim 1, characterized in that: The specific steps of obtaining the activity level of the sheep flock at the latest moment in the most recent feces cleaning cycle according to the change of the gathering center point of the sheep flock in the adjacent infrared images in the current infrared image data set are as follows: The current infrared image data set The center point of the flock of sheep in the infrared image to the The relative Euclidean distance of the center point of the flock in the infrared image is used as the first The activity distance of the flock at the moment, This moment is the last moment in the most recent feces cleaning cycle; In the formula, It is the number of all moments in the most recent feces cleaning cycle; The most recent feces cleaning cycle The activity distance of the flock at each moment; The most recent feces cleaning cycle The activity distance of the flock at each moment; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The activity level of the flock at a certain moment.

3. The method for monitoring environmental data of a sheep house according to claim 2, characterized in that: The specific steps of obtaining the feed consumption level of the sheep house at the latest moment in the most recent feces cleaning cycle according to the activity level and the current feed consumption sequence are as follows: In the formula, The first Feed consumption; The first The instantaneous slope corresponding to the feed consumption; The most recent feces cleaning cycle The activity level of the flock at a given moment; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The feed consumption level of the sheep house at a certain moment.

4. The method for monitoring environmental data of a sheep house according to claim 1, characterized in that: The step of obtaining the stability of the first feed consumption degree sequence according to a plurality of second feed consumption degree sequences similar to the first feed consumption degree sequence comprises the following specific steps: In the formula, is the number of second feed consumption level sequences similar to the first feed consumption level sequence; It is the number of all moments in the most recent feces cleaning cycle; The first feed consumption level sequence Feed consumption level; The first feed consumption level is similar to the first feed consumption level. The second feed consumption level sequence Feed consumption level; To take the absolute value; is an exponential function with a natural constant as base; The stability of the first feed consumption level sequence.

5. The method for monitoring environmental data of a sheep house according to claim 2, characterized in that: The method of obtaining the degree to which the ammonia concentration value at the latest moment in the most recent feces cleaning cycle is affected by temperature based on the stability of the first feed consumption degree sequence and the current ammonia concentration sequence includes the following specific steps: In the formula, is the stability of the first feed consumption level sequence; It is the number of all moments in the most recent feces cleaning cycle; is the first in the current ammonia concentration sequence Ammonia concentration value; is the first in the current ammonia concentration sequence Ammonia concentration value; is the first in the current ammonia concentration sequence The instantaneous slope corresponding to each ammonia concentration value; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The degree to which the ammonia concentration value is affected by temperature at each moment.

6. The method for monitoring environmental data of a sheep house according to claim 1, characterized in that: The specific steps of obtaining the stability of the ammonia concentration value corresponding to the two-dimensional data point in each cluster according to the fluctuation of the ammonia concentration value corresponding to the two-dimensional data point in the cluster are as follows: In the formula, For the The number of two-dimensional data points in each cluster; is the total number of two-dimensional data points in all clusters; For the The variance of the ammonia concentration values ​​corresponding to all two-dimensional data points in each cluster; To prevent hyperparameters with denominators equal to 0; is the sigmoid function, used for normalization; For the The stability of the ammonia concentration values ​​corresponding to the two-dimensional data points in each cluster.

7. The method for monitoring environmental data of a sheep house according to claim 1, characterized in that: The specific steps of obtaining the degree of fluctuation of the ambient temperature of the sheep house at the latest moment in the most recent feces cleaning cycle according to the stable cluster and the ambient temperature value at the latest moment in the current ambient temperature sequence are as follows: In the formula, The current ambient temperature sequence Ambient temperature value; is the average value of the ambient temperature corresponding to all two-dimensional data points in the stable cluster; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The degree of fluctuation of the ambient temperature of the sheep house at a certain moment.

8. The method for monitoring environmental data of a sheep house according to claim 2, characterized in that: The specific steps of obtaining the actual ammonia concentration value of the sheep house at the latest moment in the most recent manure cleaning cycle according to the degree of influence, the degree of ambient temperature fluctuation, the current ammonia concentration sequence and the stable cluster are as follows: In the formula, The most recent feces cleaning cycle The degree to which the ammonia concentration value at each moment is affected by temperature; The most recent feces cleaning cycle The degree of fluctuation of the ambient temperature of the sheep house at each moment; is the first in the current ammonia concentration sequence The number of ammonia concentration values ​​corresponding to the two-dimensional data points in the cluster where the ammonia concentration value belongs; is the first in the current ammonia concentration sequence Ammonia concentration value; is the first in the current ammonia concentration sequence The ammonia concentration value belongs to the cluster Ammonia concentration value corresponding to two-dimensional data points; is the average value of ammonia concentration corresponding to all two-dimensional data points in the stable cluster; is the sigmoid function, used for normalization; The most recent feces cleaning cycle The actual ammonia concentration in the sheep house at that moment.

9. An environmental data monitoring device for sheep houses, comprising a data acquisition module and a real ammonia concentration value acquisition module, characterized in that: The data acquisition module is used to obtain the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of several feces cleaning cycles in the history of the sheep house, and the real ammonia concentration value acquisition module is used to record the feed consumption sequence, environmental temperature sequence, infrared image data set and ammonia concentration sequence of the most recent feces cleaning cycle as the current feed consumption sequence, the current environmental temperature sequence, the current infrared image data set and the current ammonia concentration sequence respectively; density clustering is performed on the pixels in the infrared image to obtain the gathering center point of the sheep flock in each infrared image; according to the change of the gathering center point of the sheep flock in the adjacent infrared image in the current infrared image data set, the activity level of the sheep flock at the latest moment in the most recent feces cleaning cycle is obtained; according to the activity level and the current feed consumption sequence, the feed consumption level of the sheep house at the latest moment in the most recent feces cleaning cycle is obtained; According to the feed consumption level, the first feed consumption level sequence of the most recent feces cleaning cycle is obtained; according to the method of obtaining the first feed consumption level sequence of the most recent feces cleaning cycle, the second feed consumption level sequence of each historical feces cleaning cycle is obtained; several second feed consumption level sequences similar to the first feed consumption level sequence are obtained; according to several second feed consumption level sequences similar to the first feed consumption level sequence, the stability of the first feed consumption level sequence is obtained; according to the stability of the first feed consumption level sequence and the current ammonia concentration sequence, the degree of influence of the temperature on the ammonia concentration value at the latest moment in the most recent feces cleaning cycle is obtained; the second feed consumption level sequences similar to the first feed consumption level sequence are obtained; The feces cleaning cycles in which the second feed consumption degree sequences are located are used as the feces cleaning cycles to be analyzed, and in the ammonia concentration sequences of all the feces cleaning cycles to be analyzed and the most recent feces cleaning cycle, the ammonia concentration value at the same time as the latest time is recorded as the first ammonia concentration value; the ambient temperature value corresponding to the first ammonia concentration value is obtained in all ambient temperature sequences, and a two-dimensional data point is determined and a two-dimensional coordinate space is constructed according to each first ammonia concentration value and the corresponding ambient temperature value, and all the two-dimensional data points in the two-dimensional coordinate space are clustered to obtain a number of clusters; according to the fluctuation of the ammonia concentration value corresponding to the two-dimensional data point in the cluster, the stability of the ammonia concentration value corresponding to the two-dimensional data point in each cluster is obtained; The cluster corresponding to the maximum stability value of the ammonia concentration value corresponding to the two-dimensional data points in the cluster is recorded as a stable cluster; based on the stable cluster and the ambient temperature value at the latest moment in the current ambient temperature sequence, the degree of ambient temperature fluctuation in the sheep house at the latest moment in the most recent manure cleaning cycle is obtained; based on the degree of influence, the degree of ambient temperature fluctuation, the current ammonia concentration sequence and the stable cluster, the actual ammonia concentration value in the sheep house at the latest moment in the most recent manure cleaning cycle is obtained.

10. An environmental data monitoring system for a sheep house, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by a processor, the steps of an environmental data monitoring method for a sheep house as described in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Ammonia gas monitoring method of pig farm

    CN107494286A

  • Intelligent pig farm environment monitoring control system and method

    CN117991707A

  • Agricultural greenhouse environment abnormal data monitoring method based on Internet of Things

    CN117992894A

  • Pig breeding intelligent decision management system based on multi-modal information monitoring

    CN118735202A

  • Composter and compost evaluation and management method

    JP2010070442A

Cited By

  • Veterinary drug parameter regulation and control optimization method based on artificial intelligence integrated service

    CN120072187A

  • Goat feeding environment comprehensive control method and system

    CN121680543A

  • Goat feeding environment comprehensive control method and system

    CN121680543B