Livestock breeding environment intelligent monitoring and agricultural data management system

By constructing an intelligent monitoring system for livestock and poultry housing environment, multi-source data fusion and real-time control are achieved, solving the problems of delayed response of livestock and poultry housing environmental control, delayed detection of manure nutrients, and data isolation, thus improving the intelligence and efficiency of livestock and poultry housing environmental management.

CN123159591APending Publication Date: 2026-11-24SHANXI YINUO AGRICULTURAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611265099.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-20
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing livestock and poultry housing environmental control systems suffer from slow response times leading to high energy consumption, delayed manure nutrient testing resulting in inaccurate fertilization, isolated data leading to inefficient decision-making, and a lack of intelligent management across the entire chain.

Method used

The system constructs a perception layer, an edge computing layer, and a cloud-based intelligent decision-making layer to achieve multi-source data fusion and real-time monitoring. It employs an environmental factor-manure nutrient dynamic inversion model, a livestock-fertilizer-farmland adaptive formula decision engine, and a multi-objective feedforward-feedback joint environmental control algorithm to achieve data integration and closed-loop control.

Benefits of technology

Reduce equipment energy consumption, improve the nutrient retention rate of manure and wastewater, enhance the intelligent level of agricultural management in the planting and breeding cycle, and achieve full-chain data connectivity and automated decision-making.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159591A_ABST
    Figure CN123159591A_ABST
Patent Text Reader

Abstract

The application discloses a kind of livestock and poultry breeding environment intelligent monitoring and agricultural data management system, belong to livestock and poultry breeding environment monitoring and agricultural data management technical field, system includes perception layer, edge computing layer, cloud intelligent decision-making layer and execution application layer, cloud intelligent decision-making layer deployment environment factor-feculent nutrient dynamic inversion model module, based on livestock and poultry house environmental parameter time series inversion calculation feculent nitrogen phosphorus potassium nutrient retention rate, deployment breeding-fertilizer-farmland adaptive formula decision engine module, fusion nutrient inversion data, farmland soil data and crop fertilizer requirement data solve inorganic fertilizer supplementary proportioning scheme, deployment multi-objective feed-back joint environmental control algorithm module, under the premise of guaranteeing livestock and poultry thermal comfort, joint optimization ventilation and heating control sequence, give consideration to ammonia gas volatilization inhibition and equipment energy consumption reduction, the present application realizes breeding environment monitoring, feculent resourceization decision and farmland fertilization management whole chain data through and closed-loop control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of livestock and poultry breeding environment monitoring and agricultural data management technology, specifically to an intelligent monitoring and agricultural data management system for livestock and poultry breeding environment. Background Technology

[0002] In the process of large-scale livestock and poultry farming, in order to ensure the healthy growth of livestock and poultry, it is usually necessary to deploy environmental monitoring equipment in livestock and poultry houses, including temperature and humidity sensors, gas sensors, etc., and cooperate with actuators such as ventilation fans, wet curtains, and heating equipment to form a closed-loop system for environmental control in livestock and poultry houses. At the same time, the large amount of manure produced by livestock and poultry farming is an important source of raw materials for the production of organic fertilizers and organic-inorganic fertilizer mixtures. After collection and fermentation, the manure usually needs to be formulated into fertilizer mixtures with appropriate composition according to its own nutrient content and the nutrient requirements of the target soil in the farmland, and then applied to the farmland to achieve resource utilization and soil improvement. In addition, centralized control technology for multiple processing steps in the field of industrial internet, as well as big data analysis and data mining technology for the agricultural field, have been initially applied in various aspects of agricultural production management, providing a technical foundation for building an integrated data management and centralized control system covering the entire chain of breeding environment, manure resource utilization and farmland utilization.

[0003] Existing technical solutions that are similar to this invention typically include: deploying environmental monitoring devices such as temperature and humidity sensors in livestock and poultry houses to collect temperature and humidity data in real time; the control system compares the collected current temperature and humidity values ​​with preset threshold ranges; when the temperature or humidity exceeds the set range, it triggers the action of actuators such as ventilation fans and wet curtains, forming a negative feedback adjustment loop based on the error at the current moment; after the manure produced by the livestock and poultry houses is cleaned and collected, it is periodically sampled manually and sent to the laboratory for static testing of indicators such as total nitrogen, available phosphorus, and available potassium; and based on the nutrient data obtained from the laboratory tests, combined with experience, organic fertilizer or organic-inorganic fertilizer mixtures are formulated and applied to farmland. The above-mentioned existing technical solutions mainly include a temperature and humidity sensor module, an actuator module, a feedback controller based on threshold comparison, an independent laboratory testing link, and a fertilizer formulation link that relies on human experience. The data between each link is not shared, and the decisions are independent of each other.

[0004] The aforementioned existing technical solutions have significant shortcomings: their environmental control systems only perform lagging negative feedback regulation on a single indicator of livestock and poultry comfort, without taking into account the impact of environmental control on the volatilization and loss of nutrients in manure and sewage. Their manure and sewage nutrient detection relies on long-cycle and costly laboratory static sampling and testing, and the test data is lagging. At the same time, livestock and poultry breeding environment data, manure and sewage nutrient data and farmland soil carrying capacity data are isolated from each other and lack a unified integrated decision-making system, resulting in a low overall level of intelligence in the crop-livestock circular agriculture chain. Summary of the Invention

[0005] The technical problems to be solved by this invention include the following three aspects.

[0006] First, existing environmental control systems for livestock and poultry houses only employ negative feedback control based on the current temperature and humidity deviation. By the time the control action is initiated, the environmental state inside the house has already deviated, resulting in a response lag. This response lag further leads to excessive action amplitude of the actuator, causing overshoot. After overshoot, a reverse correction is required, and so on, causing continuous oscillation of the system. This oscillation directly leads to frequent start-stop of ventilation, heating, and other equipment, resulting in a significant increase in energy consumption. At the same time, the control objectives of existing environmental control systems are only set around the living comfort of livestock and poultry, without considering the direct impact of environmental parameters such as ventilation volume, temperature, and humidity on the volatilization rate of nitrogen-containing compounds in manure. This results in a large amount of nitrogen-containing gases such as ammonia being passively volatilized and lost during the control process to ensure comfort. Nitrogen loss directly leads to a significant reduction in the effective nitrogen nutrient content of manure when it is subsequently used to produce fertilizer.

[0007] Secondly, current nutrient testing of manure relies on long-term, low-frequency static sampling and testing in laboratories. However, the nutrient content of manure fluctuates dynamically during storage and cleaning due to factors such as ambient temperature, humidity, and ventilation. Data obtained from a single static test is significantly outdated in terms of the actual nutrient status of the manure when making fertilizer application decisions. This data lag directly leads to a mismatch between the nitrogen, phosphorus, and potassium ratio of fertilizer mixtures calculated based on the data and the actual needs of farmland, ultimately resulting in poor fertilization effects or even nutrient waste or soil imbalance.

[0008] Third, livestock and poultry housing environmental data, manure nutrient data, and farmland soil data are collected and processed independently by different links, and no standardized integration interface has been established between them. The data is always in an isolated state. This data isolation leads to fertilizer allocation decisions relying on manual experience rather than systematic model calculations, ultimately resulting in low overall decision-making efficiency and poor replicability in the planting and breeding cycle chain.

[0009] To address the aforementioned technical problems, this invention provides an intelligent monitoring and agricultural data management system for livestock and poultry farming environments, comprising a perception layer, an edge computing layer, a cloud-based intelligent decision-making layer, and an execution application layer. The perception layer is deployed inside livestock and poultry houses and in farmland, including an environmental sensor group for collecting data on temperature, humidity, ammonia concentration, hydrogen sulfide concentration, and ventilation in the livestock and poultry houses, and soil nutrient sensors deployed in the farmland. The edge computing layer, deployed in the livestock and poultry houses, includes a data cleaning and filtering unit and a multi-source data time alignment unit, used to denoise and timestamp-align the raw data collected by the environmental sensor group to obtain well-organized multi-dimensional time-series data. The cloud-based intelligent decision-making layer includes an environmental factor-manure nutrient dynamic inversion model module, a livestock-fertilizer-farmland adaptive formulation decision engine module, and a multi-objective feedforward-feedback joint environmental control algorithm module. The inversion model module is based on a sequence... The modeling backbone network processes multidimensional environmental time series data, inverts and calculates the current estimated values ​​and future predicted trends of nitrogen, phosphorus, and potassium nutrient retention rates in manure within the livestock shed. The formula decision engine module integrates the nutrient retention rate, farmland soil nitrogen, phosphorus, and potassium content data, and crop target fertilizer requirement data, and solves the inorganic fertilizer supplementation ratio scheme based on a constraint optimization algorithm. The joint environmental control algorithm module, based on the livestock shed thermodynamics and gas diffusion prediction model, combined with the current measured environmental conditions and future weather forecast data, solves the ventilation and heating control sequences that take into account temperature and humidity deviations, ammonia volatilization, and equipment energy consumption, while meeting the constraints of livestock thermal comfort. The execution application layer includes an environmental control execution terminal and a fertilizer control terminal, which respectively receive and execute the instructions corresponding to the above control sequences and ratio schemes. This invention also provides a corresponding intelligent monitoring and agricultural data management method for livestock breeding environment.

[0010] The beneficial technical effects achieved by this invention include:

[0011] 1. By introducing an environmental control method that combines feedforward prediction and feedback correction based on rolling optimization, changes in environmental conditions can be predicted in advance and control actions can be applied to eliminate response lag and overshoot, thereby reducing energy consumption caused by frequent equipment start-ups and shutdowns.

[0012] 2. Existing environmental control technologies for livestock and poultry houses have long focused solely on the thermal comfort of livestock and poultry as the only control objective, failing to recognize the direct correlation between environmental parameters such as ventilation volume, temperature and humidity and the volatilization rate of nitrogen compounds in manure. This invention breaks through this cognitive limitation and, for the first time, incorporates the retention of manure nutrients into the comprehensive objective function of environmental control. Under the premise of ensuring the thermal comfort of livestock and poultry, it actively inhibits the volatilization rate of ammonia, thereby reducing the loss of effective nitrogen nutrients from the source.

[0013] 3. Construct a nutrient dynamic inversion model based on real-time environmental parameters to estimate the nutrient retention rate of manure in a non-contact and continuous manner, replacing or supplementing the lagging static test data and improving the real-time performance and accuracy of fertilizer application decision data.

[0014] 4. Construct an adaptive formula decision engine that integrates data from breeding, fertilizer, and farmland to achieve data connectivity and automated closed-loop decision-making across the entire planting and breeding cycle, thereby improving the overall intelligence level of circular agriculture management. Attached Figure Description

[0015] Figure 1 This is a flowchart illustrating the overall system architecture of the present invention;

[0016] Figure 2 This is a flowchart of the dynamic inversion model of environmental factors and fecal nutrients in this invention.

[0017] Figure 3 This is a flowchart of the multi-objective feedforward-feedback joint environmental control algorithm of the present invention. Detailed Implementation

[0018] The following is in conjunction with the appendix Figure 1-3 The specific embodiments of the present invention will be further described below. It should be noted that the description of these embodiments is for the purpose of helping to understand the present invention, but does not constitute a limitation of the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0019] The intelligent monitoring and agricultural data management system for livestock and poultry breeding environment described in this invention comprises four layers from bottom to top: a perception layer, an edge computing layer, a cloud-based intelligent decision-making layer, and an execution application layer. Data interaction between these layers occurs through wired or wireless communication networks.

[0020] The sensing layer is deployed inside livestock and poultry houses and in farmland. It includes temperature and humidity sensors, ammonia concentration sensors, hydrogen sulfide concentration sensors, micro-anemometers, automatic manure cleaning and weighing modules, and soil nutrient sensors deployed in farmland, including soil nitrogen, phosphorus and potassium sensors and soil moisture sensors. Each sensor in the sensing layer is connected to the edge computing gateway via data cable or wireless module to collect raw data of environmental parameters in livestock and poultry houses and soil nutrient parameters in farmland in real time.

[0021] The edge computing layer is deployed on-site in the livestock and poultry house. It contains a data cleaning and filtering unit and a multi-source data time alignment unit. The data cleaning and filtering unit performs Kalman filtering on the raw signal from the sensing layer to remove random noise interference from the sensor. The multi-source data time alignment unit completes the alignment of multi-source heterogeneous data according to a unified timestamp to form a regular multi-dimensional time series dataset. The edge computing layer connects to the cloud intelligent decision-making layer through an industrial Ethernet or wireless communication module to upload the pre-processed time series data in real time.

[0022] The cloud-based intelligent decision-making layer deploys three core functional modules: an environmental factor-manure nutrient dynamic inversion model module, a livestock-fertilizer-farmland adaptive formulation decision engine module, and a multi-objective feedforward-feedback joint environmental control algorithm module. These three modules share data and link up through an internal data bus. The cloud-based intelligent decision-making layer also has a crop fertilizer requirement knowledge base and a farmland soil database to provide boundary constraints for the formulation decision engine. The execution application layer includes an environmental control execution terminal and a fertilizer application control terminal. The environmental control execution terminal is the drive controller for ventilation fans, wet curtains, and heating equipment, while the fertilizer application control terminal is the drive controller for inorganic fertilizer addition devices and mixing devices. Both receive environmental control commands and fertilizer application commands from the cloud and execute corresponding actions, forming a complete closed loop of perception, decision-making, and execution.

[0023] Regarding the environmental factor-manure nutrient dynamic inversion model, this model aims to utilize environmental parameters that can be continuously acquired in real time within livestock and poultry houses to invert and calculate the nitrogen, phosphorus, and potassium nutrient retention rates in manure that are difficult to measure directly in real time. This replaces the traditional, lagging manual static testing method. The model input receives a multi-dimensional time-series feature vector transmitted by an edge computing gateway, including the house temperature sequence, humidity sequence, ventilation volume sequence, ammonia concentration sequence, and hydrogen sulfide concentration sequence. The input features are first processed by a feature normalization unit and then fed into a sequence modeling backbone network composed of multiple layers of gated recurrent units. The hidden state output of the backbone network is mapped through a fully connected regression layer. Finally, the output provides an estimate of the nitrogen, phosphorus, and potassium nutrient retention rates in manure at the current moment and simultaneously outputs the predicted trend of nutrient retention rates in the future preset time domain.

[0024] In a preferred embodiment, the sequence modeling backbone network employs a Long Short-Term Memory (LSTM) network. The gating operation process for a single time step within this network is as follows: the edge computing gateway synchronously collects five types of raw sensor signals—temperature, humidity, ventilation volume, ammonia concentration, and hydrogen sulfide concentration—at a fixed sampling period. After Kalman filtering to remove noise and aligning the multi-source data according to a unified timestamp, the data is divided into feature sequence samples for model input using a fixed-length sliding window. Each sample contains a five-dimensional environmental feature vector for each time step within the window. The core gating operation of a single time step in the LSM network can be expressed by the following formula:

[0025] ;

[0026] ;

[0027] ;

[0028] ;

[0029] ;

[0030] ;

[0031] In the above formula, This represents the environmental feature vector input at time t, containing five components: temperature, humidity, ventilation volume, ammonia concentration, and hydrogen sulfide concentration. This represents the hidden state vector output by the Long Short-Term Memory unit at the previous time step. This represents the output vector of the forget gate, used to control the degree to which the state of the memory unit from the previous time step is forgotten. This represents the output vector of the input gate, used to control the extent to which the current input information is written into the memory unit. This indicates the current state of the candidate memory cell. and These represent the memory unit states at the previous and current time steps, respectively. The current memory unit state is obtained by weighting the previous memory unit state and the candidate memory states according to the corresponding proportions of the forget gate and the input gate. This represents the output vector of the output gate, used to control the degree to which the memory cell outputs a hidden state. This represents the hidden state vector output at the current time step, which is ultimately mapped through a fully connected regression layer to obtain the nutrient retention rate estimate. , , , These are the weight matrices for the forget gate, input gate, candidate memory, and output gate, respectively. , , , Here are the corresponding bias vectors, all of which are parameters learned during the training process. This represents the Sigmoid activation function. Represents the hyperbolic tangent activation function, symbol This represents the element-wise multiplication operation of vectors, with the sign... This represents the concatenation operation of two vectors.

[0032] In another implementation, the sequence modeling backbone network can be replaced by a Transformer encoder network. Specifically, the multidimensional environmental feature time series is input into a multi-head self-attention layer after position encoding. The self-attention mechanism captures the dependencies between any two time steps in the sequence in parallel. After processing by multiple stacked layers and feedforward fully connected layers, the estimated results of nitrogen, phosphorus, and potassium nutrient retention rates in manure are also output. This implementation has certain advantages in handling long-term sequence dependencies and parallel computing efficiency, and can be used as an alternative to the long short-term memory network scheme.

[0033] The aforementioned inversion model was trained offline using supervised learning during the R&D phase: Orthogonal experimental design was used to periodically manually sample and measure the total nitrogen, available phosphorus, and available potassium content in manure as label data. Continuous environmental feature sequences synchronized with the sampling time were used as model input. The backpropagation algorithm was used to iteratively update the network weight parameters until the model's prediction error on the validation set converged to below a preset threshold. Subsequently, the converged model underwent lightweight processing such as parameter quantization or pruning, and was deployed to a cloud-based intelligent decision layer or edge computing gateway to support real-time online inference. The system inputs the latest feature sequences into the deployed model at fixed intervals, and the model outputs in real-time estimates of the nitrogen, phosphorus, and potassium nutrient retention rates in manure within the current time and future preset time domains. These results are then transmitted to the livestock-fertilizer-farmland adaptive formulation decision engine module as decision input.

[0034] Regarding the adaptive formulation decision engine for livestock farming, fertilizer, and farmland, this engine integrates dynamic nutrient inversion data from manure, real-time sensor data from farmland soil, and crop fertilizer requirement models to dynamically solve for or adjust the ratio of organic-inorganic fertilizer mixtures. The process begins with three data inputs: the first is real-time data on nitrogen, phosphorus, and potassium retention rates in manure output from the inversion model module; the second is data on the current nitrogen, phosphorus, and potassium content of farmland soil collected by sensors and transmitted through the data access unit; and the third is target fertilizer requirement data retrieved from the crop fertilizer requirement knowledge base based on the current crop type and growth stage. After the data is aggregated in the data fusion unit, it is sent to the constraint construction unit. Based on the crop fertilizer requirement knowledge base, a lower limit of nutrient requirement constraints is set, based on the cost budget, an upper limit of cost constraints is set, and based on the physical limitations of the equipment, upper and lower limit constraints of the proportion of each inorganic fertilizer are set to form a complete set of constraints. Then, it enters the iterative optimization unit. After multiple rounds of iterative solutions, an inorganic fertilizer supplementation ratio scheme is output. Finally, after the scheme is verified by the scheme verification unit, it is issued to the fertilizer control terminal in the form of fertilizer application instructions for execution. At the same time, the execution results are fed back to the data fusion unit for dynamic adjustment in the next round of decision-making, forming a closed loop.

[0035] In a preferred embodiment, the iterative optimization unit employs a particle swarm optimization algorithm. The addition ratios of various inorganic fertilizer raw materials are used as candidate solution particles. A certain number of candidate solution particles and their velocity vectors are randomly initialized. The optimization objective is to reduce the total cost of fertilizer formulation. Nutrient requirement satisfaction is incorporated as a constraint in the solution process. For each particle, its corresponding objective function value and constraint violation degree are calculated as fitness evaluation. The individual's historical best position and the population's global historical best position are recorded. Each particle is iteratively updated according to the velocity update formula and the position update formula until a preset number of iterations is reached or fitness convergence occurs. The inorganic fertilizer addition ratio combination corresponding to the population's global best particle is converted into a specific addition amount instruction executable by the fertilizer formulation control terminal and issued for execution. The objective function and constraints of fertilizer formulation optimization can be expressed by the following formula:

[0036] ;

[0037] ;

[0038] ;

[0039] ;

[0040] In the above formula, Let represent the proportion of the j-th inorganic fertilizer raw material added, and be the decision variable to be solved. This indicates the total number of available inorganic fertilizer raw materials. This represents the unit cost of the j-th inorganic fertilizer raw material. This represents the total cost of the formula. , , These represent the available nutrient contents of nitrogen, phosphorus, and potassium in the fecal substrate, estimated by the inversion model. , , These represent the nitrogen, phosphorus, and potassium nutrient contents per unit amount of the j-th inorganic fertilizer raw material. , , These represent the target replenishment requirements for nitrogen, phosphorus, and potassium, calculated from the crop nutrient requirement knowledge base combined with current farmland soil nutrient data. The velocity and position update formulas for the particle swarm optimization algorithm are as follows:

[0041] ;

[0042] ;

[0043] In the above formula, This represents the velocity vector of the i-th particle in the k-th iteration. This represents the position vector of the i-th particle at the k-th iteration, which is the candidate solution for completing the square in the current iteration. This represents the inertia weight, used to balance global and local search capabilities. , These represent individual learning factors and group learning factors, respectively. , A random number between 0 and 1. This represents the best historical position found so far by the i-th particle. This represents the globally optimal position found so far by the entire population.

[0044] In another implementation, the iterative optimization unit can be replaced by a genetic algorithm. Each candidate formulation scheme is encoded as a chromosome individual. After constructing an initial population, the fitness of each individual is calculated based on the objective function value. A new generation of population is generated iteratively through genetic operations such as selection, crossover, and mutation until the population fitness converges. The formulation scheme corresponding to the individual with the best fitness is output as the final fertilizer application decision result. This implementation has good adaptability when solving discrete or combinatorial formulation optimization problems and can be used as an alternative implementation of the particle swarm optimization algorithm.

[0045] Regarding the multi-objective feedforward-feedback joint environmental control algorithm, this algorithm actively predicts and suppresses the volatilization and loss of nitrogen-containing gases such as ammonia while ensuring the biological comfort of livestock and poultry houses, and at the same time reduces equipment energy consumption. The system state prediction unit, based on the thermodynamics and gas diffusion prediction model of livestock and poultry houses, combined with the current measured temperature and humidity, ammonia concentration, and weather forecast data within the preset time domain, predicts the change trajectory of temperature, humidity, and ammonia concentration in the house within the future time domain. After receiving the predicted trajectory, the multi-objective rolling optimization solution unit, under the condition of satisfying the thermal comfort constraints of livestock and poultry, jointly solves the control sequence of ventilation and heating. The optimization objective simultaneously considers three indicators: temperature and humidity deviation, ammonia volatilization, and equipment energy consumption. The first control quantity of the control sequence is sent to the ventilation fan, wet curtain, and heating equipment for execution through the actuator interface. At the same time, the system measured feedback unit continuously collects the actual environmental state after execution and compares it with the predicted trajectory to form a feedback error. The feedback error is sent back to the system state prediction unit to correct the prediction model parameters, roll the time domain window forward one step, and repeat the above prediction and optimization process to form a closed-loop control structure that combines feedforward prediction and feedback correction.

[0046] The objective function of this multi-objective rolling optimization can be expressed by the following formula:

[0047] ;

[0048] In the above formula, This represents the comprehensive objective function value for rolling optimization. This indicates the number of steps in the prediction time domain. This represents the predicted temperature at step k in the prediction time domain. This indicates the target reference temperature corresponding to the thermal comfort of livestock and poultry. This represents the predicted ammonia concentration at step k in the prediction time domain. This represents the change in the control quantity at step k compared to the previous step. A smaller value indicates smoother equipment operation and lower energy consumption. , , These represent the weighting coefficients of the temperature and humidity deviation term, the ammonia volatilization inhibition term, and the control quantity change amplitude term in the comprehensive objective function, respectively. They are all constants greater than zero, used to balance the three objectives of livestock and poultry comfort, nutrient retention, and energy conservation.

[0049] In summary, the system described in this invention, through the coordinated operation of the perception layer, edge computing layer, cloud-based intelligent decision-making layer, and execution application layer, links and centrally controls the three core modules of dynamic inversion of manure nutrients, adaptive formula decision-making, and multi-objective environmental control algorithm. This enables data connectivity and closed-loop management across the entire chain of livestock and poultry breeding environment monitoring, manure resource utilization decision-making, and farmland fertilization management, achieving the technical effects of reducing energy consumption, improving nutrient retention rate, and enhancing the overall intelligent level of integrated crop and livestock farming.

[0050] Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of the present invention. Therefore, any modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the protection scope defined by the claims of the present invention.

Claims

1. A smart monitoring and agricultural data management system for livestock and poultry farming environment, characterized in that, It includes a perception layer, an edge computing layer, a cloud-based intelligent decision-making layer, and an application execution layer; The sensing layer is deployed inside livestock and poultry houses and in farmland, including an environmental sensor group for collecting temperature, humidity, ammonia concentration, hydrogen sulfide concentration and ventilation in livestock and poultry houses, and a soil nutrient sensor deployed in farmland. The edge computing layer is deployed at the livestock and poultry house site and connected to the perception layer. It includes a data cleaning and filtering unit and a multi-source data time alignment unit, which are used to perform noise reduction and timestamp alignment processing on the raw data collected by the environmental sensor group to obtain multi-dimensional time series data. The cloud-based intelligent decision-making layer is communicatively connected to the edge computing layer and includes an environmental factor-manure nutrient dynamic inversion model module, a livestock-fertilizer-farmland adaptive formula decision engine module, and a multi-objective feedforward-feedback joint environmental control algorithm module. The environmental factor-manure nutrient dynamic inversion model module includes a feature normalization unit, a sequence modeling backbone network, and a fully connected regression layer connected in sequence. The sequence modeling backbone network is configured to receive a multi-dimensional time series feature vector containing temperature, humidity, ventilation volume, ammonia concentration, and hydrogen sulfide concentration output by the edge computing layer, and output the current estimated value of nitrogen, phosphorus, and potassium nutrient retention rate in manure in livestock and poultry houses and the predicted trend in the future preset time domain. The breeding-fertilizer-farmland adaptive formula decision engine module is connected to the environmental factor-manure nutrient dynamic inversion model module. It is used to receive the nitrogen, phosphorus and potassium nutrient retention rate of manure, and to receive the nitrogen, phosphorus and potassium content data of farmland soil collected by the soil nutrient sensor and the target fertilizer requirement data provided by the crop fertilizer requirement knowledge base. It solves the inorganic fertilizer supplementation ratio scheme based on the constraint optimization algorithm. The multi-objective feedforward-feedback joint environmental control algorithm module is used to predict the change trajectory of temperature, humidity and ammonia concentration in the house within a preset time domain based on the thermodynamics and gas diffusion prediction model of livestock and poultry houses, combined with the current measured environmental conditions and future weather forecast data. Under the condition of meeting the preset thermal comfort constraints of livestock and poultry, it jointly solves the ventilation and heating control sequence that makes the comprehensive objective function, which includes temperature and humidity deviation terms, ammonia volatilization inhibition terms and equipment energy consumption change terms, converge. The execution application layer includes an environmental control execution terminal and a fertilizer application control terminal. The environmental control execution terminal is connected to the multi-objective feedforward-feedback joint environmental control algorithm module and is used to receive and execute the control quantity corresponding to the current moment in the ventilation and heating control sequence. The fertilizer application control terminal is connected to the aquaculture-fertilizer-farmland adaptive formula decision engine module and is used to receive and execute the fertilizer application instructions corresponding to the inorganic fertilizer supplementation ratio scheme.

2. The system according to claim 1, characterized in that, The sequence modeling backbone network is a Long Short-Term Memory (LSTM) network, comprising a forget gate, an input gate, a candidate memory unit, and an output gate that sequentially act on the current input feature vector and the previous hidden state. The forget gate controls the degree to which the previous memory unit state is forgotten. The input gate controls the degree to which the current input information is written into the memory unit. The candidate memory unit generates the candidate memory state at the current time. The current memory unit state is obtained by weighting the previous memory unit state and the candidate memory state according to the ratios corresponding to the forget gate and the input gate. The output gate controls the degree to which the current memory unit state is output as the current hidden state.

3. The system according to claim 1, characterized in that, The sequence modeling backbone network is a Transformer encoder network, which includes a positional encoding unit and a multi-head self-attention layer with multiple stacks. The positional encoding unit is used to add positional information to the multi-dimensional time series feature vector. The multi-head self-attention layer is used to calculate the dependency weights between any two time steps in the sequence in parallel, and outputs the sequence encoding result in combination with the feedforward fully connected layer.

4. The system according to claim 1, characterized in that, The adaptive formula decision engine module for aquaculture-fertilizer-farmland uses particle swarm optimization algorithm to find the optimal solution. It takes the combination of the addition ratio of each inorganic fertilizer raw material as candidate solution particles, takes reducing the total cost of fertilizer formulation as the optimization objective, and takes the lower limit of nitrogen, phosphorus and potassium nutrient requirements of farmland, the upper limit of cost and the upper and lower limits of inorganic fertilizer addition ratio as constraints. By iteratively updating the velocity vector and position vector of each particle in multiple rounds, it outputs the combination of inorganic fertilizer addition ratio corresponding to the globally optimal particle that makes the optimization objective converge, as the inorganic fertilizer supplementation ratio scheme.

5. The system according to claim 1, characterized in that, In the comprehensive objective function set by the multi-objective feedforward-feedback joint environmental control algorithm module, the temperature and humidity deviation term, the ammonia volatilization suppression term, and the equipment energy consumption change term are each configured with weighting coefficients greater than zero. The multi-objective feedforward-feedback joint environmental control algorithm module also includes a system actual measurement feedback unit, which is used to collect actual environmental state data after execution and compare it with the change trajectory to obtain feedback error. The feedback error is used to correct the parameters of the livestock and poultry house thermodynamics and gas diffusion prediction model.

6. The system according to claim 1, characterized in that, The data cleaning and filtering unit uses Kalman filtering to denoise the raw data collected by the environmental sensor group. The sensing layer also includes an automatic manure cleaning and weighing module for collecting data on the amount of manure cleaned in livestock and poultry houses.

7. A method for intelligent monitoring of livestock and poultry farming environment and management of agricultural data, characterized in that, Includes the following steps: Data on temperature, humidity, ammonia concentration, hydrogen sulfide concentration, and ventilation volume in livestock and poultry houses were collected, and the collected data were denoised and timestamp aligned to obtain multidimensional time series data. The multidimensional time series data is input into the sequence modeling backbone network to obtain the current estimated values ​​of nitrogen, phosphorus, and potassium nutrient retention rates in livestock and poultry manure and the predicted trends in the future preset time domain. Data on nitrogen, phosphorus, and potassium content in farmland soil and the target fertilizer requirement data of the target crop at the current growth stage are obtained. Combined with the nitrogen, phosphorus, and potassium nutrient retention rates of the manure, an inorganic fertilizer supplementation ratio scheme is solved based on a constraint optimization algorithm. The fertilizer application instructions corresponding to the inorganic fertilizer supplementation ratio scheme are then sent to the fertilizer application control terminal for execution. Based on the thermodynamics and gas diffusion prediction model of livestock and poultry houses, combined with the current measured environmental conditions and future weather forecast data, the trajectory of changes in temperature, humidity and ammonia concentration in the house within the future preset time domain is predicted. Under the condition of satisfying the preset thermal comfort constraints of livestock and poultry, the ventilation and heating control sequence is jointly solved to make the comprehensive objective function, which includes temperature and humidity deviation, ammonia volatilization inhibition and equipment energy consumption change, converge. The control quantity corresponding to the current moment in the control sequence is sent to the environmental control execution terminal for execution. The actual environmental state data after collection and execution is compared with the change trajectory to obtain feedback error. The parameters of the livestock and poultry house thermodynamics and gas diffusion prediction model are corrected using the feedback error. The prediction time domain is then rolled forward and updated, and the above prediction and optimization process is repeated.

8. The method according to claim 7, characterized in that, The steps of inputting the multidimensional time series data into the sequence modeling backbone network include: after the multidimensional time series data is positionally encoded, it is input into a multi-head self-attention layer with multiple stacks, the dependency weight between any two time steps in the sequence is calculated through the self-attention mechanism, and the encoding result is output by combining the feedforward fully connected layer, and then mapped by the fully connected regression layer to obtain the nitrogen, phosphorus and potassium nutrient retention rate of the manure.

9. The method according to claim 7, characterized in that, The steps for solving the inorganic fertilizer supplementation ratio scheme based on the constraint optimization algorithm include: encoding the addition ratio combination of each inorganic fertilizer raw material into chromosome individuals and constructing an initial population; calculating the fitness of each chromosome individual according to the objective function of reducing the total cost of fertilizer application; iteratively generating a new generation population through selection, crossover and mutation operations until the population fitness converges; and outputting the inorganic fertilizer addition ratio combination corresponding to the chromosome individual with the best fitness as the inorganic fertilizer supplementation ratio scheme.

10. The method according to claim 7, characterized in that, It also includes a step of pre-training the sequence modeling backbone network: using the total nitrogen, available phosphorus and available potassium content of manure measured by manual sampling as label data, using the continuous environmental feature sequence synchronized with the sampling time as network input, and using supervised learning to iteratively update the weight parameters of the sequence modeling backbone network until the prediction error converges to below a preset threshold.