Greenhouse environment self-adaptive regulation method and system based on multi-sensor fusion

By constructing a double-layer sliding window and combining DS evidence theory with a physical constraint model, the trust weights of sensors are dynamically allocated, solving the problems of sensor health status assessment and data conflict handling in the multi-sensor fusion control of greenhouse environment. This enables adaptive control and fault tolerance of sensors, improving the accuracy and stability of greenhouse environment control.

CN123156984APending Publication Date: 2026-11-24NANJING FEIBI INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing multi-sensor fusion control technology for greenhouse environments has significant technical deficiencies in areas such as online assessment of sensor reliability, data conflict identification, deep integration of physical models and data-driven approaches, fault tolerance, and virtual reconstruction. It is unable to autonomously perceive the health status of sensors, process conflicting data, and lacks dynamic adaptive weight allocation and physical law verification, resulting in signal drift, response lag, and systemic deviations.

Method used

By constructing a double-layer sliding window, the variance stability and deviation index of the sensor are calculated, and the trust weights are dynamically allocated. Data fusion is performed by combining DS evidence theory and physical constraint model to achieve dynamic adaptive control of the sensor. This includes physical verification of the thermodynamic function of the enthalpy-humidity diagram of moist air and the CO₂ mass conservation equation, and virtual reconstruction and online compensation are performed to ensure that the sensor can be reconstructed without being detected in the event of a fault.

Benefits of technology

It significantly improves the accuracy and reliability of multi-source data fusion, avoids system function interruptions caused by sensor failures, ensures the continuity and stability of greenhouse environment control, and improves the economic efficiency of energy use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123156984A_ABST
    Figure CN123156984A_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for adaptive control of greenhouse environment based on multi-sensor fusion, belonging to the field of intelligent control technology for facility agriculture environment. The method includes constructing a double-layer sliding window; reducing the weight of the sensor when the short-time window variance changes abruptly and redistributing it to other sensors of the same type according to a normalized ratio; completely isolating the sensor and replacing the measured value with the optimal estimate of the virtual true value in subsequent control; and generating and executing environmental control commands. This invention improves the accuracy of data fusion and overcomes the defect of undetectable sensor drift through dynamic weight allocation, physical constraint verification, and a multi-level fault-tolerant fusion architecture. It achieves seamless fault tolerance through a three-level fault-tolerant mechanism, combining nonlinear saturated mapping to balance response speed and stability. Finally, it outputs a highly reliable fusion value to the controller, ensuring continuous and accurate control decisions, avoiding malfunctions caused by sensor anomalies, ensuring a suitable growth environment for crops, and improving energy efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent environmental control technology in facility agriculture, and in particular to a method and system for adaptive control of greenhouse environment based on multi-sensor fusion. Background Technology

[0002] Greenhouse environmental control is a core aspect of facility agriculture. Its purpose is to create suitable growing conditions for crops by artificially intervening in key environmental parameters such as temperature, humidity, light, and CO2 concentration, thereby overcoming the limitations of natural climate and achieving year-round production and yield increases. With the rapid development of the Internet of Things, wireless sensor networks, and intelligent control technologies, modern greenhouses have gradually evolved from traditional manual experience-based management to automated and intelligent control based on multi-sensor monitoring. Multi-sensor fusion technology, as a key support for achieving accurate perception and intelligent decision-making in the greenhouse environment, can effectively improve the coverage of environmental monitoring and the decision-making value of data by integrating the measurement information of multiple sensors deployed inside the greenhouse. Existing multi-sensor fusion control technologies for greenhouse environments have significant technical shortcomings in areas such as online assessment of sensor reliability, intelligent identification of data conflicts, deep integration of physical models and data-driven approaches, fault tolerance and virtual reconstruction, and dynamic adaptive weight allocation. How to construct an adaptive control method and system for greenhouse environments that can autonomously sense sensor health status, intelligently identify and process conflicting data, cross-validate physical mechanisms and measured data, and achieve seamless reconstruction and online compensation in the event of sensor failure has become a pressing technical challenge in this field.

[0003] However, current common solutions have many drawbacks, including: sensors exposed to harsh conditions such as high temperature, high humidity, and high salt spray for extended periods are prone to signal drift, response lag, and even sudden failure; existing systems generally lack online assessment and diagnostic capabilities for sensor health, and erroneous data often directly participates in fusion decisions; at the data fusion level, existing methods mainly rely on purely data-driven approaches such as weighted averaging and Kalman filtering, which not only struggle to identify the root causes of reading conflicts between similar sensors but also lack designs that use physical laws such as the enthalpy-humidity diagram of humid air and the CO2 mass conservation equation as independent calibration benchmarks, thus failing to achieve physical consistency of measured values. Cross-validation ensures that systematic biases are completely undetectable when all sensors experience slow, unidirectional drift. Regarding fault tolerance, existing systems are rather crude, lacking the refined diagnostic capabilities to distinguish between sudden hard faults and slow drifts. They also lack mechanisms for cumulative tracking and progressive online compensation of drift amounts; once a sensor is isolated, all information about that measurement point is lost. Furthermore, the allocation of sensor trust weights is largely based on fixed prior knowledge, failing to dynamically and adaptively adjust according to the real-time operating status of the sensors. There is also a general lack of upper limits on single-sensor weights, posing a risk that a particular sensor might gain excessive weight due to accidental factors and dominate the fusion result. Summary of the Invention

[0004] To address the problems in related technologies, this invention provides a method and system for adaptive control of greenhouse environment based on multi-sensor fusion, in order to overcome the aforementioned technical problems existing in the prior art.

[0005] To solve the aforementioned technical problem, the present invention is achieved through the following technical solution: In a first aspect, embodiments of the present invention provide a greenhouse environment adaptive control method based on multi-sensor fusion, which includes acquiring real-time environmental parameter data collected by a multi-sensor group inside the greenhouse, constructing a double-layer sliding window, calculating the variance stability index of each sensor within a short-term window, and the deviation index from the mean of the same type of group within a long-term window; calculating the dynamic trust weight of each sensor based on the variance stability index and the deviation index and applying a single sensor weight upper limit constraint; reducing the weight of the sensor when the variance of the short-term window changes abruptly and redistributing it to other sensors of the same type according to a normalized ratio; performing initial fusion based on each dynamic trust weight using DS evidence theory to obtain a preliminary fusion value; constructing a physical constraint model including the thermodynamic function relationship of the enthalpy-humidity diagram of moist air and the CO2 mass conservation equation; and determining when the confidence level of the preliminary fusion value is lower than a threshold. When the value, or the reading conflict coefficient within the same type of sensor group, exceeds the limit, a physical conservation check is triggered; the parameter corresponding to the target sensor after the trust weight has been reduced is used as the variable to be reconstructed, and the measurement value of the high-trust sensor in the same area is substituted into the physical constraint model. By solving the analytical solution or numerical solution of the model, the virtual true value interval of the variable to be reconstructed is calculated; the virtual true value interval is injected into the DS evidence theory framework as a physical benchmark anchor point to verify the preliminary fusion value: if the deviation is less than the first threshold, it is determined to be a steady-state drift, its zero-point offset coefficient is automatically corrected and it is retained to participate in the fusion; if the deviation is greater than the second threshold, it is determined to be a sudden fault, the sensor is completely isolated and the optimal estimate of the virtual true value is used to replace the measured value to participate in subsequent regulation; the fused environmental parameter value after fault-tolerant fusion is output to the greenhouse environment controller to generate and execute environmental regulation commands.

[0006] As a preferred embodiment of the multi-sensor fusion-based adaptive control method for greenhouse environment described in this invention, the short-time window in the double-layer sliding window is much shorter than the long-time window. The short-time window is used to capture high-frequency random fluctuations in measured values ​​caused by sensor electronic noise, instantaneous disturbances in local airflow, or the start-up and shutdown of environmental control equipment, and to quantify the short-term stability of each sensor in real time. The long-time window is used to track the slow baseline drift of environmental parameters caused by the alternation of day and night, gradual changes in solar radiation, and periodic changes in outdoor meteorological conditions, thereby quantifying the system deviation trend of each sensor relative to the average value of the same type of sensor group during long-term operation. The preset upper limit value of the single sensor weight upper limit constraint is configured as a positive number less than 1, that is, the instantaneous weight value of any sensor in the dynamic trust weight allocation process is forcibly limited to a range less than the preset upper limit value, so as to prevent a sensor from accidentally obtaining a significantly higher trust score than other similar sensors in a specific period of time and dominating the entire fusion result, thereby ensuring that the decision-making power of the fusion result is always distributed among multiple similar sensors, so that the fusion system has an inherent immunity to the occasional anomalies or slow performance degradation of a single sensor.

[0007] As a preferred embodiment of the greenhouse environment adaptive control method based on multi-sensor fusion described in this invention, the conflict coefficient is calculated based on the standardized statistical distance between each sensor reading and the preliminary fused value. This standardized statistical distance eliminates the dimensional differences of different environmental parameters and the influence of linear correlation between sensors by introducing the covariance structure between the sensor measurements, so that the calculated conflict coefficient can objectively reflect the actual deviation of each independent measurement value in the multivariate statistical distribution space. The preset confidence threshold is used to determine the overall credibility of the preliminary fused value. The value of this threshold is configured to be dynamically adjusted according to the current operating conditions of the greenhouse and the overall health status of the sensors. When the confidence level of the preliminary fused value is... When the degree of conflict is lower than the dynamic threshold, it indicates that there is a significant information inconsistency among the multiple sensors currently participating in the fusion, and an external verification process based on the principle of physical conservation must be triggered immediately to identify the root cause of the conflict. The preset conflict threshold is used to determine whether the dispersion between the readings within the same type of sensor group is within an acceptable normal range. The value of the conflict threshold is configured to be positively correlated with the dynamic change rate of the current environmental parameters. That is, the more drastic the change in environmental parameters, the greater the conflict threshold will increase adaptively, and vice versa. When the conflict coefficient between the readings of the sensors in the group exceeds the dynamic threshold, it indicates that there is a non-negligible systematic divergence within the group that cannot be eliminated by conventional statistical weighting methods, and a forced verification based on the principle of physical conservation must be initiated.

[0008] As a preferred embodiment of the greenhouse environment adaptive control method based on multi-sensor fusion described in this invention, the first threshold and the second threshold are two preset deviation judgment thresholds of different magnitudes, wherein the first threshold is smaller than the second threshold; when the absolute value of the deviation between the virtual true value interval and the preliminary fusion value is between the first threshold and the second threshold, the system does not directly determine that the target sensor is in a fault state, but reduces the dynamic trust weight of the target sensor to a predetermined proportion of the original trust weight, and uses the reduced trust weight to perform weighted fusion of the measured value of the target sensor with the optimal estimate of the virtual true value interval, and the resulting weighted fusion value is used as the corrected output value of the target sensor at the current moment to participate in subsequent multi-sensor fusion calculations; the deviation interval between the first threshold and the second threshold is defined as a gray warning zone for sensor performance degradation, and a strategy combining progressive weight reduction and virtual-real hybrid reconstruction is adopted in this warning zone, which avoids overreacting to sensors with slight performance degradation, thus preventing the complete waste of the effective physical information they carry, and also prevents the long-term accumulation of errors in the physical model introduced by completely relying on virtual estimates for substitution, thereby achieving a dynamic balance between the accuracy of sensor fault diagnosis and the continuity of measurement data.

[0009] As a preferred embodiment of the greenhouse environment adaptive control method based on multi-sensor fusion described in this invention, the method involves: continuously tracking the rate of change of the variance of the target sensor's measured values ​​over time within a short time window; when the absolute value of this rate of change exceeds a preset variance change rate threshold, determining that the target sensor is currently in a measurement instability state caused by external interference or internal performance degradation, and triggering a reduction operation on the trust weight of the target sensor; the reduction magnitude of the target sensor's trust weight is positively correlated with the amount by which the variance change rate exceeds the preset threshold, i.e., the more drastic the variance change and the greater the excess, the higher the reduction ratio of the target sensor's trust weight; the trust weight reduction process is controlled by a nonlinear saturation mapping mechanism to prevent the target sensor's trust weight from plummeting to zero due to extreme variance jumps, thereby causing the physical measurement channel to completely lose its information contribution capability; the reduced weight of the target sensor is limited to above a preset weight protection lower limit, which is configured to be greater than zero, to ensure that the physical measurement channel retains a minimum level of information participation after weight reduction, avoiding the loss of data reconstruction reference in the subsequent fault recovery process due to the weight completely returning to zero.

[0010] As a preferred embodiment of the multi-sensor fusion-based adaptive control method for greenhouse environment described in this invention, the thermodynamic function relationship constraint of the enthalpy-humidity diagram specifically includes: utilizing the deterministic thermodynamic conversion relationship between air temperature, air humidity, dew point temperature, moisture content, and enthalpy value, constructing a set of cross-validation equations with dry-bulb temperature and relative humidity measurements as inputs and dew point temperature and moisture content as outputs; when there is a measurement conflict between temperature and humidity sensors in the greenhouse, the measurement value of one sensor is substituted into the set of equations as a known quantity to deduce the theoretical measurement range that the other sensor should present under the constraints of thermodynamic laws, thereby achieving physical cross-sensor cross-type measurement. Verification: The CO2 mass conservation equation constraint is constructed based on the dynamic mass balance relationship between the rate of change of CO2 concentration in the greenhouse and the absorption rate of crop photosynthesis, the release rate of plant respiration, and the indoor-outdoor CO2 exchange rate caused by greenhouse ventilation. This balance relationship links the real-time measurement value of the CO2 sensor with the current ventilation operation status of the greenhouse, the current light radiation intensity, and the characteristic parameters of the crop growth stage. When the CO2 sensor measurement value significantly violates this mass conservation balance relationship, the system automatically judges that the measurement reliability of the sensor has decreased, and calculates a reasonable estimate range of CO2 concentration based on the balance relationship, providing a sensor-independent physical basis for the virtual reconstruction step.

[0011] As a preferred embodiment of the greenhouse environment adaptive control method based on multi-sensor fusion described in this invention, the following steps are taken: The deviation value of the target sensor is recorded for each instance of steady-state drift within multiple consecutive calibration periods. A weighted moving average method is applied to this deviation value sequence, where deviation values ​​closer to the current time are assigned a higher weighting coefficient, and deviation values ​​further back in time are assigned a lower weighting coefficient. This filters out random fluctuations during sensor measurement and extracts the true and continuous degradation trend of sensor performance. The cumulative drift obtained after weighted moving average processing is used as the zero-point offset compensation coefficient of the target sensor. Subsequent original measurements of the target sensor are dynamically corrected through superimposed compensation, ensuring that the corrected measurements continuously approach the theoretical true value range calculated by the physical constraint model. When the deviation between the compensated sensor measurement value and the virtual true value range is consistently less than the first threshold and maintains a preset number of stable sampling periods, the system determines that the steady-state drift of the sensor has been effectively corrected, automatically terminates the current zero-point offset compensation operation, and restores the dynamic trust weight of the sensor to its trust level before the drift diagnosis, thereby realizing complete closed-loop management of sensor drift compensation and avoiding over-compensation or under-compensation.

[0012] Secondly, to further address the aforementioned technical problems, the present invention provides a greenhouse environment adaptive control system based on multi-sensor fusion, comprising: a data acquisition module, used to synchronously acquire environmental parameter data collected in real time by a multi-sensor group at a preset sampling frequency, and transmit the acquired environmental parameter data to a stability analysis module; a stability analysis module, whose input end is connected to the output end of the data acquisition module, used to construct a double-layer sliding window, calculate the variance stability index of each sensor within a short-term window and the deviation index from the mean of a group of similar sensors within a long-term window, and transmit the calculated variance stability index and deviation index to a dynamic weight allocation module; dynamic weight allocation The module, whose input is connected to the output of the stability analysis module, calculates the dynamic trust weights of each sensor based on the variance stability index and deviation index, and applies a single sensor weight upper limit constraint. When the short-time window variance changes abruptly, the sensor weight is reduced and redistributed to other sensors of the same type according to a normalized ratio. The dynamically trust weights of each sensor are then transmitted to the preliminary fusion module. The preliminary fusion module, whose input is connected to the output of the dynamic weight allocation module, performs initial fusion based on each dynamic trust weight using DS evidence theory to obtain a preliminary fusion value. The preliminary fusion value and its confidence score are then transmitted to the physical constraint verification module and the fusion correction module, respectively. Physical constraint verification... The first module, whose input is connected to the output of the preliminary fusion module, internally stores a constraint model of the thermodynamic function relationship of the enthalpy-humidity diagram of moist air and a constraint model of CO2 mass conservation. This model is used to trigger a physical conservation check when the confidence level of the preliminary fusion value is lower than a threshold or the reading conflict coefficient within the same type of sensor group exceeds a limit. It then transmits the trigger signal and the identification information of the low-confidence target sensor to the virtual reconstruction module. The second module, whose input is connected to the output of the physical constraint check module, is used, upon receiving the trigger signal, to take the parameters of the target sensor with reduced confidence weights as the variable to be reconstructed, substitute the measured values ​​of high-confidence sensors in the same area into the physical constraint model, and calculate the virtual true value of the variable to be reconstructed. The virtual true value interval is calculated and its optimal estimate is transmitted to the fusion correction module. The fusion correction module has its first input connected to the output of the preliminary fusion module and its second input connected to the output of the virtual reconstruction module. It is used to inject the virtual true value interval as a physical benchmark anchor point into the DS evidence theory framework to verify the preliminary fusion value, and to perform steady-state drift correction or sudden fault isolation operation according to the verification deviation. It also transmits the final environmental parameter fusion value after fault-tolerant fusion correction to the control output module. The control output module has its input connected to the output of the fusion correction module. It is used to output the fault-tolerant fusion value of the environmental parameters to the greenhouse environment controller to generate and execute environmental control commands.

[0013] Thirdly, embodiments of the present invention provide a computer device, including a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, implements any step of the greenhouse environment adaptive control method based on multi-sensor fusion as described in the first aspect of the present invention.

[0014] Fourthly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, it implements any step of the greenhouse environment adaptive control method based on multi-sensor fusion as described in the first aspect of the present invention.

[0015] The beneficial effects of this invention are as follows: This invention integrates data-driven dynamic weight allocation with DS evidence theory, physical constraint verification based on thermodynamics and the law of conservation of mass, and a three-in-one technical architecture of multi-level fault tolerance and progressive online compensation. It extracts the short-term variance stability and long-term group deviation of each sensor through a double-layer sliding window, combined with single-sensor weight upper limit constraints, to achieve dynamic adaptive allocation of sensor trust weights, avoiding the dominance of fusion results by a single sensor due to accidental factors. Simultaneously, it constructs an adaptive conflict threshold using Mahalanobis distance, significantly improving the accuracy and reliability of multi-source data fusion. By embedding the thermodynamic function relationship of the enthalpy-humidity diagram of moist air and the CO2 mass conservation equation into the fusion framework as an independent physical benchmark independent of any sensor, it achieves cross-validation between data-driven results and physical laws, fundamentally overcoming the fundamental defect of pure data-driven methods that cannot detect systematic deviations when all sensors experience slow, unidirectional drift. Furthermore, by establishing a "gray warning zone progressive weight reduction and virtual-real" mechanism... The multi-level fault-tolerant system, consisting of "hybrid reconstruction—online compensation and closed-loop management of weighted moving average cumulative amount for steady-state drift—seamless isolation and virtual value full substitution for sudden hard faults," achieves a dynamic balance between fault diagnosis accuracy and measurement data continuity. This ensures that a single or partial sensor failure will not lead to system malfunction, elevating the system from traditional fault tolerance to seamless fault tolerance. Through a nonlinear saturation mapping mechanism and a weight protection lower limit greater than zero, it achieves rapid response to sharp deterioration in weight adjustments, amplitude limiting protection against extreme jumps, and smooth tracking of long-term trends, overcoming the dilemma of either overly sensitive or overly sluggish weight adjustments in existing technologies. Finally, the highly reliable fused value, after physical verification and fault-tolerant correction, is output to the greenhouse environment controller, ensuring that control commands are generated based on robust data. This guarantees the continuity and stability of greenhouse environment control decisions, avoids malfunctions of actuators due to abnormal sensor data, and thus ensures a suitable growing environment for crops and improves energy efficiency. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein: Figure 1 This is a flowchart illustrating the implementation of the present invention in Example 1.

[0017] Figure 2 This is a dynamic adjustment diagram of the present invention in Example 1. Detailed Implementation

[0018] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0019] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.

[0020] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.

[0021] Example 1 Reference Figure 1 and Figure 2 This is the first embodiment of the present invention, which provides a greenhouse environment adaptive control method based on multi-sensor fusion, including the following steps: S1: Obtain real-time environmental parameter data collected by multiple sensor groups inside the greenhouse, construct a double-layer sliding window, and calculate the variance stability index of each sensor in the short-term window, as well as the deviation index from the mean of the same type of population in the long-term window.

[0022] Specifically, in the double-layer sliding window, the duration of the short-time window is much shorter than that of the long-time window. The short-time window is used to capture high-frequency random fluctuations in measured values ​​caused by sensor electronic noise, instantaneous disturbances in local airflow, or the start-up and shutdown of environmental control equipment, and to quantify the short-term stability of each sensor in real time. The long-time window is used to track the slow baseline drift of environmental parameters caused by the alternation of day and night, gradual changes in solar radiation, and periodic changes in outdoor meteorological conditions in the greenhouse environment, thereby quantifying the systematic deviation trend of each sensor relative to the average value of the same type of sensor group during long-term operation. The preset upper limit of the single sensor weight upper limit constraint is configured as a positive number less than 1. That is, the instantaneous weight value of any sensor in the dynamic trust weight allocation process is forcibly limited to a range less than the preset upper limit value. This is to prevent a sensor from accidentally obtaining a trust score significantly higher than other similar sensors in a specific period of time and dominating the entire fusion result. This ensures that the decision-making power of the fusion result is always distributed among multiple similar sensors, making the fusion system inherently immune to occasional anomalies or slow performance degradation of a single sensor.

[0023] Specifically, multiple sensor groups are deployed in different spatial locations inside the greenhouse, including but not limited to temperature sensors, humidity sensors, and CO2 concentration sensors; The number of sensors of each type is determined according to the area and structure of the greenhouse. In a typical large multi-span greenhouse, at least one set of sensors should be deployed in an area of ​​50 to 100 square meters to ensure sufficient sampling of the spatial heterogeneity of the greenhouse environment. The sampling period for all sensors is uniformly set between 1 and 10 seconds to ensure data time synchronization and responsiveness to rapid environmental changes.

[0024] Furthermore, the duration of the short window is set to be much shorter than that of the long window. The typical duration of the short window is 30 to 120 seconds. Its design purpose is to capture high-frequency random fluctuations in the measured values ​​caused by the sensor's own electronic noise, instantaneous disturbances in local airflow (such as the airflow impact at the moment of personnel movement or equipment start-up and shutdown), and brief actions of environmental control equipment. The limited amount of sampling data within a short window allows for a sensitive reflection of the sensor's measurement stability over a recent period. The typical duration of a long window ranges from 20 to 60 minutes. Its design aims to track the slow baseline drift of environmental parameters caused by the alternation of day and night, gradual changes in the angle of solar radiation, periodic changes in outdoor weather conditions, and diurnal variations in crop transpiration. The long window contains a sufficient number of sampling data points, which can smooth out random noise and transient interference, and truly reflect the overall measurement trend of the sensor during long-term continuous operation.

[0025] Furthermore, the specific calculation process of the variance stability index is as follows: For each sensor, all its sampled values ​​are extracted within a short time window, and the dispersion of these sampled values ​​relative to the average value within the window is calculated. The smaller the dispersion, the more concentrated the measurement values ​​of the sensor are in the recent period, the less affected by random noise and instantaneous disturbances, and the higher its short-term stability. The variance stability index can effectively identify drastic changes in measurement values ​​caused by aging of the sensor's own electronic components, poor contact, or instantaneous external interference.

[0026] Furthermore, the specific calculation process of the deviation index is as follows: For all sensors corresponding to the same type of environmental parameter, calculate the average measurement value of each sensor in a long time window, then calculate the overall mean of all the average values ​​of these sensors, compare the average value of each sensor with the overall mean, and calculate the relative deviation. The deviation index can effectively identify systematic deviation trends caused by slow sensor drift, dust accumulation, or local microenvironmental anomalies. Unlike the variance stability index within a short time window, the deviation index reflects the performance consistency of the sensor over a long time scale. The two complement each other and together constitute a two-dimensional evaluation system for the health status of the sensor.

[0027] Furthermore, both sliding windows employ a first-in-first-out queue update mechanism. Each time a new sampled data point is obtained, the window slides forward by one step, discarding the earliest data point in the queue and adding the latest data point to the end of the queue. Then, all statistical indicators within the window are immediately recalculated. This sliding update mechanism ensures that the assessment of sensor health status is always based on the most recent historical data, enabling real-time responses to changes in sensor performance.

[0028] For example, taking the scenario of growing tomatoes in a large multi-span glass greenhouse during the high-temperature period in summer as an example, a total of 6 temperature sensors are deployed in the control zone A of the greenhouse. The sampling period is uniformly set to 5 seconds. The system constructs a short-term window (60 seconds in length, including the most recent 12 sampling data points) and a long-term window (30 minutes in length, including the most recent 360 sampling data points) for each temperature sensor. The system calculates the variance stability index of each sensor in the short-term window and the deviation index from the average value of the same type of sensor group in the long-term window in real time. When the temperature sensor No. 3, located on the west side of Zone A near the ventilation window, experiences a sudden increase in local temperature due to direct sunlight in the afternoon, its variance stability index in the short-term window increases rapidly, indicating that the sensor is subjected to strong instantaneous thermal radiation interference. However, the deviation index in the long-term window does not change much, indicating that the interference is a local instantaneous phenomenon rather than a performance degradation of the sensor itself. Based on this, the system marks the sensor as a short-term unstable state, but its long-term reliability is not affected.

[0029] S2: Calculate the dynamic trust weights of each sensor based on the variance stability index and the deviation index, and impose a single sensor weight upper limit constraint; when the short-time window variance changes abruptly, reduce the weight of that sensor and redistribute it to the other sensors of the same type according to the normalization ratio; perform initial fusion based on each dynamic trust weight through DS evidence theory to obtain the preliminary fusion value.

[0030] Specifically, the calculation process of dynamic trust weight is as follows: For each sensor, its short-term variance stability index and long-term deviation index are mapped to trust score components respectively. The smaller the variance stability index, the higher the corresponding trust score component, indicating that the sensor's measurement value is more stable and reliable in the short term; the smaller the deviation index, the higher the corresponding trust score component, indicating that the sensor has better consistency with the same type of sensor group in the long-term operation. The two trust score components are weighted and summed according to a preset ratio to obtain the comprehensive trust score of the sensor. Then, the comprehensive trust scores of all sensors of the same type are normalized so that the sum of the trust weights of all sensors is equal to 1, thus obtaining the dynamic trust weight of each sensor.

[0031] Specifically, the formula for the variance stability score mapping function is as follows: ; In the formula, For the first The variance stability score of each sensor maps the variance stability index to a confidence score component between 0 and 1; the smaller the variance, the closer the score is to 1, and the larger the variance, the closer the score is to 0. The short-time window variance stability index of a sensor is calculated from the sampled values ​​within the short-time window in step S1, and is a basic index reflecting the short-term measurement stability of the sensor. This is the variance attenuation coefficient, preset to a positive number, with a typical value range of 0.1 to 10, controlling the sensitivity of variance to the score's influence. The larger the variance, the faster the score decays, and the higher the requirement for sensor stability. The specific formula for the deviation score mapping function is as follows: ; In the formula, For the first The deviation score of each sensor maps the deviation index to a trust score component between 0 and 1. The smaller the deviation, the closer the score is to 1, and the larger the deviation, the closer the score is to 0. For the first The long-term window deviation index of a sensor is a fundamental indicator reflecting the long-term operational consistency of the sensor. This is the deviation attenuation coefficient, preset to a positive number, with a typical value range of 1 to 100, controlling the sensitivity of the deviation to the score's impact. The larger the deviation, the faster the score decays, and the higher the requirement for sensor consistency. The two trust score components are weighted and summed according to a preset ratio to obtain the overall trust score of the sensor. The specific formula is as follows: ; In the formula, For the first The overall trust score of each sensor is calculated by weighted summation of variance stability score and deviation score, which comprehensively reflects the overall trustworthiness of the sensor and integrates information from two dimensions: short-term stability and long-term consistency. The weighting coefficients for variance stability scores are preset to positive numbers to control the proportion of short-term stability in the overall score. As a preset positive number, satisfying + =1, controlling the proportion of long-term consistency in the overall score; Finally, the overall trust scores of all sensors of the same type are normalized using the following formula: ; In the formula, For the first The dynamic trust weights of each sensor are ultimately used for the sensor trust weights in the DS evidence theory, satisfying that the sum of the weights of all sensors equals 1. The total number of sensors of the same type, the number of sensors of the same type deployed in the greenhouse, the range of normalization, and the total number of sensors participating in the fusion are determined.

[0032] Furthermore, the core idea of ​​the above normalization process is that the trust weight of a sensor reflects the relative trustworthiness of the sensor relative to other sensors of the same type at the current moment, rather than the absolute trustworthiness. When a sensor malfunctions, its overall trust score decreases, and its trust weight automatically decreases after normalization, while the trust weight of other normal sensors automatically increases, thus realizing the dynamic redistribution of weights.

[0033] Furthermore, the specific method for applying the single sensor weight upper limit constraint is as follows: after completing the initial trust weight calculation, check one by one whether the trust weight of each sensor exceeds the preset upper limit value. If the trust weight of a sensor exceeds the upper limit, the weight of that sensor is forcibly truncated to the upper limit, and the excess weight is distributed proportionally to other sensors of the same type. The distribution ratio is determined based on the original weight of the other sensors, with sensors with larger original weights receiving a larger share. This distribution strategy ensures the fairness and rationality of weight redistribution and avoids weight distribution distortion caused by truncation operations.

[0034] Furthermore, the specific judgment and execution mechanism for "reducing the weight of the sensor when the variance of the short-term window changes abruptly" is as follows: The system continuously tracks the change of the variance of the measurement value of each sensor over time within the short-term window, specifically by comparing the difference between the variance of the current short-term window and the variance of the previous short-term window; when the difference exceeds the preset allowable range, the sensor is determined to be in a state of measurement instability, triggering an automatic weight reduction operation. The magnitude of the reduction is positively correlated with the severity of the variance mutation. The more severe the mutation, the greater the reduction. The weights after reduction are forcibly reduced, and the weight shares obtained after reduction are redistributed to other normal sensors of the same type according to the normalization ratio.

[0035] Furthermore, the aforementioned variance mutation judgment mechanism has a protective weight lower limit. Even if the variance mutation of the sensor is extremely drastic, its reduced weight will not be lower than this protective lower limit, ensuring that the physical measurement channel retains a minimum level of information participation after weight reduction. The existence of this lower limit of protection is of great significance: if the weight of a certain sensor is reduced to zero, the sensor will be completely excluded from the fusion calculation. When the sensor recovers to normal operation, the system will lack continuous tracking data for the sensor and will be unable to effectively evaluate its recovery process. Therefore, retaining a small weight greater than zero preserves the data channel for the subsequent recovery of the sensor.

[0036] Specifically, the initial fusion process using DS evidence theory is as follows: each sensor's measurement value and its corresponding dynamic trust weight are treated as an independent evidence body, where the measurement value represents the evidence body's judgment on the true value of the environmental parameters, and the dynamic trust weight represents the credibility of the evidence body. Based on this, the Dempster evidence synthesis rule is used to orthogonally sum the basic probability assignment functions of all evidence bodies, as shown in the following formula: ; ; In the formula, For the first Each piece of evidence relates to the proposition. The basic probability allocation value is directly taken as the dynamic trust weight of the sensor. ; For the first The proposition corresponding to each sensor is defined as "the true value of the environmental parameter lies within the range centered on [the sensor]". "Within," refers to the specific proposition that the evidence must support; For the first The measured values ​​of each sensor are collected in real time by the sensor. The center value of the interval; The radius of the interval is preset based on the sensor's measurement accuracy, typically ranging from 0.5% to 2% of the measurement range, defining the proposition. The width of the interval reflects the uncertainty of the sensor's measurement value; The Dempster rule for combining two pieces of evidence is as follows: ; In the formula, For the synthesized proposition The basic probability allocation value is calculated from the BPA function of the two pieces of evidence using Dempster's combination rule. After synthesizing the two independent pieces of evidence, the proposition is... Reliability assessment; For the first body of evidence against the proposition The basic probability allocation value, the BPA of the first piece of evidence involved in the synthesis; For the second body of evidence against the proposition The basic probability allocation value, the BPA of the second piece of evidence involved in the synthesis; The intersection of two pieces of evidence is equal to All combinations are determined according to the domain of the BPA of each evidentiary body. The numerator of the synthesis rule represents the proposition jointly supported by the two evidentiary bodies. Overall reliability; For all combinations where the intersection of the propositions of two pieces of evidence is an empty set, determined according to the domain of the definition of each piece of evidence's BPA, the denominator correction term of the composition rule represents the degree of conflict between the two pieces of evidence; The Dempster rule for combining multiple pieces of evidence is as follows: ; In the formula, The dimensions of the synthesis operation are determined by the total number of sensor evidence bodies participating in the fusion and the number of sensors of the same type. for The product of the evidence bodies BPA, for The product of the BPAs of each piece of evidence on its respective proposition represents... The combined reliability of each piece of evidence simultaneously supporting its respective proposition; for The propositional intersection of the evidence bodies equals All combinations are determined according to the domain of the BPA of each piece of evidence. The numerator represents the proposition jointly supported by all pieces of evidence. Overall reliability; for The propositional intersection of each body of evidence is all combinations of an empty set, determined according to the domain of each body of evidence's BPA. The specific formula for selecting the confidence level after fusion is as follows: ; In the formula, To determine the confidence level of the initial fusion value, the maximum basic probability value is taken from the fused BPA function. This basic probability value is the confidence level of the initial fusion value, i.e., the confidence level Bel(A*) equals the probability of the proposition within the recognition frame. Take all subsets The maximum value; To select the proposition with the highest BPA, choose from all propositions. The largest proposition, and the corresponding environmental parameter value is the initial fusion value; For the synthesized proposition The basic probability allocation value in the recognition framework Find the maximum value over all subsets; Then, using Dempster's evidence synthesis rule, the basic probability assignment functions of all evidence bodies are orthogonally summed to obtain the fused basic probability assignment function. From the fused basic probability assignment function, the environmental parameter value corresponding to the proposition with the highest basic probability is selected as the preliminary fusion value. The basic probability value of this proposition is the confidence level of the preliminary fusion value.

[0037] Furthermore, the core advantage of the DS evidence theory lies in its ability to explicitly handle the uncertainty of information. Unlike the traditional weighted average method, which forces all information to be merged into a fixed value, the DS evidence theory retains the uncertainty of each piece of evidence and the conflicting information between evidence. When the measurements from each sensor are highly consistent, the confidence level of the fused data is high; when there are conflicts in the measurements from each sensor, the confidence level of the fused data will be significantly reduced, thus providing a clear triggering basis for subsequent physical constraint verification.

[0038] For example, continuing with the tomato greenhouse scenario described above, the system calculates the dynamic trust weights of the six temperature sensors based on their variance stability and deviation indices. Sensors 1, 2, 4, 5, and 6 perform normally, each receiving a trust weight of approximately 0.18 to 0.22. However, sensor 3, affected by direct sunlight, experiences a drastic change in variance within a short window, resulting in its trust weight being automatically reduced from 0.20 to 0.06. The resulting 0.14 weight share is then redistributed to the remaining five normal sensors according to a normalized ratio. Subsequently, the system uses the individual measurements of the six sensors and the adjusted dynamic trust weights as evidence, performing initial fusion using DS evidence theory. The preliminary fused value for the current temperature in area A is 34.2℃, with a confidence level of 0.82. Since the weight of sensor 3 has been significantly reduced, its impact on the fusion result is greatly weakened. The preliminary fused value mainly reflects the comprehensive judgment of the remaining five normal sensors, exhibiting a high confidence level.

[0039] S3: Construct a physical constraint model that includes the thermodynamic function relationship of the enthalpy-humidity diagram of moist air and the CO2 mass conservation equation; when the confidence level of the preliminary fusion value is lower than the threshold, or the reading conflict coefficient within the same type of sensor group exceeds the limit, trigger the physical conservation verification.

[0040] Specifically, the conflict coefficient is calculated based on the standardized statistical distance between the readings of each sensor and the preliminary fusion value. This standardized statistical distance eliminates the dimensional differences of different environmental parameters and the influence of linear correlation between sensors by introducing the covariance structure between the measurements of each sensor, so that the calculated conflict coefficient can objectively reflect the actual degree of deviation of each independent measurement value in the multivariate statistical distribution space. A preset confidence threshold is used to determine the overall credibility of the preliminary fusion value. The value of this threshold is configured to be dynamically adjusted according to the current operating conditions of the greenhouse and the overall health status of the sensors. When the confidence of the preliminary fusion value is lower than this dynamic threshold, it indicates that there is a significant information inconsistency among the multiple sensors currently participating in the fusion, and an external verification process based on the principle of physical conservation needs to be triggered immediately to find out the root cause of the conflict. The preset conflict threshold is used to determine whether the dispersion between readings within a group of sensors of the same type is within an acceptable normal range. The value of this conflict threshold is configured to be positively correlated with the dynamic change rate of the current environmental parameters. That is, the more drastic the change in environmental parameters, the greater the conflict threshold will increase, and vice versa. When the conflict coefficient between the readings of the sensors in the group exceeds this dynamic threshold, it indicates that there is a non-negligible systematic discrepancy within the group that cannot be eliminated by conventional statistical weighting and a mandatory verification based on the principle of physical conservation must be initiated.

[0041] Furthermore, the thermodynamic function constraints of the enthalpy-humidity diagram of moist air specifically include: using the deterministic thermodynamic conversion relationship between air temperature, air humidity, dew point temperature, moisture content, and enthalpy value, constructing a set of cross-validation equations with dry-bulb temperature measurement and relative humidity measurement as inputs and dew point temperature and moisture content as outputs; when there is a measurement conflict between the temperature sensor and the humidity sensor in the greenhouse, the measurement value of one sensor is used as a known quantity and substituted into the equation set to deduce the theoretical measurement range that the other sensor should present under the constraints of thermodynamic laws, thereby achieving physical cross-validation across sensor types; The CO2 mass conservation equation constraint is constructed based on the dynamic mass balance relationship between the rate of change of CO2 concentration in the greenhouse and the absorption rate of crop photosynthesis, the release rate of plant respiration, and the exchange rate of indoor and outdoor CO2 caused by greenhouse ventilation. This balance relationship links the real-time measurement value of CO2 sensor with the current ventilation operation status of the greenhouse, the current light radiation intensity, and the characteristic parameters of crop growth stage. When the CO2 sensor measurement value significantly violates this mass conservation balance relationship, the system automatically judges that the measurement reliability of the sensor has decreased, and calculates a reasonable estimate range of CO2 concentration based on the balance relationship, providing a physical basis independent of the sensor for the virtual reconstruction step.

[0042] Specifically, the thermodynamic function relationship constraint model of humid air enthalpy-humidity diagram includes deterministic thermodynamic conversion relationships between air temperature, relative humidity, moisture content, enthalpy value and dew point temperature; Specifically, the thermodynamic functional relationship constraint model of enthalpy-humidity diagram of moist air includes the following core mathematical relationships: First, the relationship between the saturated water vapor partial pressure and the dry-bulb temperature is given by the following formula: ; In the formula, The saturated water vapor partial pressure is used as a basic intermediate quantity for calculating water vapor partial pressure and moisture content, reflecting the maximum amount of water vapor that air can hold at the current temperature. The dry-bulb temperature is collected in real time by a temperature sensor and is one of the core input parameters of the enthalpy-humidity diagram thermodynamic model. Second, the partial pressure of water vapor, the specific formula is as follows: ; In the formula, The partial pressure of water vapor represents the pressure contribution of the actual water vapor content in the air and is used for subsequent calculations of moisture content. Relative humidity, collected in real time by a humidity sensor, is one of the core input parameters of the enthalpy-humidity diagram thermodynamic model, reflecting the ratio of the actual water content of the air to the saturated water content; this relationship converts the dimensionless parameter of relative humidity into a physical quantity with pressure dimensions. Third, moisture content, the specific formula is as follows: ; In the formula, Moisture content represents the mass of water vapor contained in one kilogram of dry air. It is one of the core output parameters of the enthalpy-humidity diagram thermodynamic model and is used for cross-validation of temperature and humidity sensors. Given the partial pressure of water vapor, calculate the molecular input for moisture content. The local atmospheric pressure is determined by referring to a table based on the altitude of the greenhouse location or by measurement using a barometer. It serves as a constant term in the denominator, reflecting the influence of local atmospheric pressure on the calculation of moisture content. This relationship is based on Dalton's law of partial pressures, converting the partial pressure of water vapor into a mass ratio. Fourth, the enthalpy of moist air, the specific formula is as follows: ; In the formula, It is the enthalpy of moist air, a physical quantity that characterizes the total thermal energy of moist air, and is used for thermodynamic consistency verification of temperature and humidity sensor measurements. The dry-bulb temperature is collected in real time by a temperature sensor, and the temperature term is used for enthalpy calculation. This formula comprehensively considers the sensible heat of dry air, the sensible heat of water vapor, and the latent heat of vaporization of water vapor.

[0043] The four mathematical relationships mentioned above together constitute the thermodynamic cross-verification equations between the temperature sensor and the humidity sensor: given dry-bulb temperature and relative humidity It can uniquely determine the moisture content. and enthalpy of moist air Conversely, given a moisture content and enthalpy of moist air The dry-bulb temperature can also be deduced. and relative humidity The scope of constraints; The core of this model is that the physical quantities mentioned above are not independent of each other, but are strictly constrained by the first law of thermodynamics and the principle of phase transition equilibrium. Given the dry-bulb temperature and relative humidity, the moisture content and enthalpy can be uniquely determined; conversely, given the moisture content and enthalpy, the constraint range of dry-bulb temperature and relative humidity can also be deduced. Based on this physical constraint, when the measurements from the temperature sensor and the humidity sensor exist simultaneously but are inconsistent with each other, the system can determine which sensor is more likely to have a measurement deviation by using thermodynamic conversion relationships.

[0044] Furthermore, the specific application of the thermodynamic function relationship constraint of the enthalpy-humidity diagram is as follows: the dry-bulb temperature measurement value and the relative humidity measurement value are used as inputs and substituted into the thermodynamic conversion relationship to calculate the corresponding theoretical moisture content; since this moisture content is completely determined by the two measured values ​​of temperature and humidity, when the measurement value of one of the sensors drifts, the calculated moisture content will deviate from the reasonable moisture content range determined by other physical processes. Conversely, if the reasonable range of moisture content is known, the system can also deduce the theoretical ranges that temperature and humidity should each be in, thereby achieving cross-validation of the temperature and humidity sensors.

[0045] Furthermore, the CO2 mass conservation equation constraint model is constructed based on the dynamic mass balance principle of CO2 concentration inside the greenhouse, and the specific formula is as follows: ; In the formula, The greenhouse air volume is calculated based on the greenhouse's structural dimensions (length × width × average height) and used as the spatial scale coefficient in the mass conservation equation to convert the concentration change rate into the mass change amount. The CO2 concentration inside the greenhouse is collected in real time by a CO2 sensor and is the core state variable of the mass conservation equation. The rate of change of CO2 concentration over time is calculated by the difference between the measured values ​​of CO2 sensor at different times, reflecting the dynamic trend of CO2 concentration in the greenhouse and used for the balance verification of the mass conservation equation. The rate of CO2 absorption by photosynthesis represents the amount of CO2 consumed by crops through photosynthesis. It is a negative value and is an important consumption term in the equation. The rate at which CO2 is released during respiration is estimated by an empirical model based on the crop growth stage and temperature. It represents the amount of CO2 produced by crop respiration and is a positive value. The ventilation CO2 exchange rate represents the amount of CO2 exchanged between the greenhouse and the outside atmosphere. The CO2 addition rate is determined by the control status and output flow of the CO2 generator. It represents the rate at which CO2 is artificially supplemented and is a positive value. Based on the above mass conservation equilibrium relationship, when the measured value of the CO2 sensor significantly violates this equilibrium relationship, that is, when the deviation between the measured rate of change of CO2 concentration and the theoretical rate of change inferred from other sensors (light, temperature) and ventilation status exceeds the preset range, the system can determine that the measurement reliability of the CO2 sensor has decreased, and can inversely deduce the reasonable estimate range of CO2 concentration based on the equilibrium relationship.

[0046] Furthermore, the photosynthetic absorption rate is not a fixed value, but a dynamic variable closely related to the current light radiation intensity and CO2 concentration: the stronger the light, the more vigorous the photosynthesis and the faster the absorption rate; the higher the CO2 concentration, the stronger the photosynthesis within a certain range, but there is a marginal diminishing effect. Therefore, when constructing mass conservation constraints, the system needs to simultaneously input the measured value of the light sensor and the current CO2 concentration value to dynamically calculate the theoretical photosynthetic absorption rate, and then determine whether the measured value of the CO2 sensor meets the mass conservation constraints.

[0047] Furthermore, the specific calculation method for the conflict coefficient is as follows: for a group of sensors of the same type, the readings of each sensor are compared with the preliminary fusion value obtained in step S2, and the standardized statistical distance is calculated. This standardized statistical distance differs from simple arithmetic differences or percentage differences. Instead, it eliminates the influence of dimensional differences and linear correlations by introducing the covariance structure between the measurements of each sensor, making the conflict coefficients of different environmental parameter types comparable. The standardized statistical distances of each sensor are then processed to obtain the conflict coefficient of the sensor group.

[0048] Furthermore, the meaning of the conflict coefficient can be interpreted as follows: the conflict coefficient reflects the degree of dispersion and mutual conflict among readings within a group of sensors of the same type; The larger the conflict coefficient, the more significant the discrepancy in readings between the sensors. Possible reasons behind this include: a sudden failure of a sensor, the existence of an environmental gradient in the local microenvironment of a sensor, or all sensors being subjected to some kind of systematic interference. Statistical methods alone cannot distinguish between these different reasons, so further physical constraint verification is required for in-depth identification.

[0049] Furthermore, the preset confidence threshold is configured to be dynamically adjusted based on the current operating conditions of the greenhouse and the overall health status of the sensor network. During periods of drastic changes in environmental parameters, the readings of each sensor naturally differ significantly. If a fixed threshold is used at this time, frequent false triggers are likely to occur. Therefore, the system positively correlates the confidence threshold with the rate of change of environmental parameters. The more drastic the change, the higher the threshold and the higher the threshold for triggering verification; the more gradual the change, the lower the threshold and the higher the sensitivity of verification.

[0050] Furthermore, the preset conflict threshold is configured to be positively correlated with the average rate of change of readings of the same type of sensors. In scenarios where environmental parameters change rapidly, the response speeds of each sensor differ, resulting in temporary inconsistencies between readings. This inconsistency is a normal phenomenon rather than a sensor malfunction. Therefore, the conflict threshold increases dynamically with the rate of environmental change, avoiding frequent triggering of unnecessary physical checks when the environment changes rapidly, while also ensuring the sensitivity of the check when the environment is stable.

[0051] For example, in zone A of the tomato greenhouse, the system continuously monitors the confidence level and intra-group reading conflict coefficient of the preliminary fused values ​​of six temperature sensors. Suppose that at a certain moment, temperature sensor #1 begins to slowly drift positively due to long-term dust accumulation and high-temperature aging, its reading gradually deviates from the true value, leading to increased discrepancies among the readings of the six temperature sensors in the same group. The conflict coefficient rises from the normal 0.15 to 0.32, exceeding the dynamic conflict threshold of 0.28 corresponding to the current environmental change rate, and the system immediately triggers a physical conservation check. Simultaneously, the system retrieves the relative humidity value (65%) and the current light radiation intensity value (580 μmol·m⁻¹) measured by the high-confidence humidity sensor in zone A. -2 ·s -1 The initial fused value of 34.2℃ from the temperature sensor was substituted into the enthalpy-humidity diagram thermodynamic function relationship model to calculate the theoretical range in which the temperature should be under the current relative humidity constraint of 65%, in order to verify whether the temperature sensor's measurement value conforms to the laws of thermodynamics.

[0052] S4: Take the parameters of the target sensor after the trust weight has been reduced as the variable to be reconstructed, substitute the measurement values ​​of the high trust sensors in the same area into the physical constraint model, and calculate the virtual true value interval of the variable to be reconstructed by solving the analytical solution or numerical solution of the model.

[0053] Specifically, the rate of change of the variance of the target sensor measurement values ​​over time is continuously tracked within a short time window. When the absolute value of this rate of change exceeds a preset variance change rate threshold, it is determined that the target sensor is currently in a measurement instability state caused by external interference or internal performance degradation, and a reduction operation of the trust weight of the target sensor is triggered. The reduction magnitude of the trust weight of the target sensor is positively correlated with the amount by which the variance change rate exceeds the preset threshold. That is, the more drastic the variance change and the greater the excess, the higher the reduction ratio of the trust weight of the target sensor. The trust weight reduction process is controlled by a nonlinear saturation mapping mechanism to prevent the trust weight of the target sensor from dropping to zero when the variance changes drastically, thus causing the physical measurement channel to completely lose its information contribution capability. After the reduction, the weight of the target sensor is limited to a preset weight protection lower limit, which is configured to be greater than zero, to ensure that the physical measurement channel retains a minimum level of information participation after the weight reduction, and to avoid losing the data reconstruction benchmark reference in the subsequent fault recovery process due to the weight being completely zero.

[0054] Specifically, the target sensor whose trust weight has been reduced refers to the sensor that was determined to be in a measurement unstable state in step S2 due to a sudden change in the short-term window variance, and whose trust weight has been automatically reduced; the environmental parameter type (temperature, humidity or CO2) corresponding to the sensor is the variable to be reconstructed; since the measured value of the sensor has been determined to be unreliable and cannot be directly used for environmental control decisions, it is necessary to use other information sources to reconstruct and replace it.

[0055] Furthermore, high-trust sensors in the same area refer to other sensors that are deployed in the same spatial control zone as the target sensor and whose dynamic trust weight is higher than the preset high-trust threshold. The typical value of the high trust threshold means that only sensors that perform well in both short-term stability and long-term deviation can be identified as high trust sensors; the measurements of these sensors are used as input boundary conditions for the calculation of physical constraint models.

[0056] Furthermore, the same spatial control zone refers to an independent control area divided according to the physical structure of the greenhouse. The environmental parameters of different zones may differ significantly. Therefore, when performing virtual reconstruction, only the measurement values ​​of other sensors within the same zone are allowed to be used, and data is not allowed to be borrowed across zones, in order to avoid systematic biases introduced due to different spatial locations.

[0057] Furthermore, the process of estimating the virtual truth interval adopts differentiated physical constraint strategies based on the type of the variable to be reconstructed: When the variable to be reconstructed is a temperature value, the system uses the measurement values ​​of a high-reliability humidity sensor within the same spatial partition, combined with the thermodynamic function relationship of the enthalpy-humidity diagram, to inversely deduce the theoretical range in which the temperature should be under the current humidity constraint. The relative humidity value of the current space area is provided by a high-reliability humidity sensor. It is then substituted into the enthalpy-humidity thermodynamic model. Combined with the theoretical requirements of the current ventilation and light radiation conditions of the greenhouse on the humidity content, the feasible range of the temperature value is deduced. This feasible range is not a single point value, but rather an interval within which any temperature value satisfies the thermodynamic functional relationship and the moisture content constraint determined by the current ventilation and radiation conditions. Therefore, when the reading of the target temperature sensor deviates significantly from this interval, it can be determined that the sensor has indeed drifted or malfunctioned. When the variable to be reconstructed is the humidity value, the calculation process is a symmetrical operation with the reconstruction of the temperature value. The system uses the temperature sensor measurement values ​​with high reliability in the same spatial partition, combined with the thermodynamic function relationship of the enthalpy-humidity diagram, to inversely deduce the theoretical range in which the humidity should be under the current temperature constraint. When the variable to be reconstructed is the CO2 concentration value, the calculation process differs from the above. The system uses the measurements from high-reliability temperature and light sensors within the same spatial partition and substitutes them into the CO2 mass conservation equation. Under the condition that the current ventilation operation status, light radiation intensity, and crop growth stage characteristic parameters are known, the system can estimate the theoretical values ​​of photosynthetic absorption rate and ventilation exchange rate, and then deduce the theoretical range in which the CO2 concentration should be based on the mass conservation relationship. This range reflects the theoretically reasonable range of CO2 concentration under the current light and ventilation conditions.

[0058] Furthermore, the optimal estimate of the virtual truth interval is a representative point value selected from the reasonable estimate interval obtained through deduction; The selection method is as follows: within a reasonable estimation interval, find the point that minimizes the sum of the residuals of all physical constraint models as the optimal estimate. In other words, the optimal estimate is a single-point estimate that is most likely to reflect the true value of the environmental parameters under the premise of satisfying all physical constraints.

[0059] For example, after triggering the physical conservation check in zone A of the tomato greenhouse, the system uses the temperature parameter corresponding to temperature sensor No. 1, which has the lowest trust weight, as the variable to be reconstructed, and uses the humidity sensor (which measures a relative humidity of 65%) and the light sensor (which measures a radiation intensity of 580 μmol·m⁻¹), which have high trust weights in the same area, as the variables to be reconstructed. -2 ·s -1 Substituting the measured values ​​into the enthalpy-humidity diagram thermodynamic function relationship model, the calculation results show that, under the theoretical moisture content constraint of the current relative humidity of 65% and current light radiation conditions, the theoretical feasible temperature range should be 33.8℃ to 34.6℃. However, the current reading of temperature sensor No. 1 is 35.5℃, which deviates significantly from the upper limit of the theoretical range of 34.6℃. Based on this, it is confirmed that sensor No. 1 has indeed experienced a positive drift, and its true value should be around 34.2℃. The system takes 33.8℃ to 34.6℃ as the virtual true value range of temperature sensor No. 1 at the current moment, and takes the point of 34.2℃ within this range that minimizes the residual of the physical constraint model as the optimal estimate.

[0060] S5: Inject the virtual true value interval as a physical benchmark anchor point into the DS evidence theory framework to verify the initial fusion value: If the deviation is less than the first threshold, it is determined to be a steady-state drift, and its zero-point offset coefficient is automatically corrected and retained for fusion; if the deviation is greater than the second threshold, it is determined to be a sudden fault, and the sensor is completely isolated and the optimal estimate of the virtual true value is used to replace the measured value for subsequent control.

[0061] Specifically, the first threshold and the second threshold are two preset deviation judgment thresholds of different magnitudes, wherein the first threshold is smaller than the second threshold; when the absolute value of the deviation between the virtual true value interval and the preliminary fusion value is between the first threshold and the second threshold, the system does not directly determine that the target sensor is in a fault state, but reduces the dynamic trust weight of the target sensor to a predetermined proportion of the original trust weight, and uses the reduced trust weight to perform weighted fusion of the measured value of the target sensor with the optimal estimate of the virtual true value interval, and the resulting weighted fusion value is used as the corrected output value of the target sensor at the current moment to participate in the subsequent multi-sensor fusion calculation; The deviation range between the first threshold and the second threshold is defined as the gray warning zone for sensor performance degradation. Within this warning zone, a strategy combining progressive weighting and hybrid virtual-real reconstruction is adopted. This avoids overreacting to sensors with slight performance degradation, which would lead to the complete waste of the effective physical information they carry. It also prevents the long-term accumulation of errors in the physical model introduced by relying entirely on virtual estimates. Thus, a dynamic balance is achieved between the accuracy of sensor fault diagnosis and the continuity of measurement data.

[0062] Furthermore, the deviation value of the target sensor is recorded every time it is determined to be a steady-state drift in multiple consecutive calibration cycles. The deviation value sequence is processed by a weighted moving average method, in which the deviation value that is closer to the current moment in time is given a higher weighting coefficient and the deviation value that is further back in time is given a lower weighting coefficient, so as to filter out the random fluctuations in the sensor measurement process and extract the true and continuous degradation trend of the sensor performance. The cumulative drift obtained after weighted moving average processing is used as the zero-point offset compensation coefficient of the target sensor. The subsequent original measurement values ​​of the target sensor are dynamically corrected by superimposed compensation, so that the corrected measurement values ​​continuously approach the theoretical true value range calculated by the physical constraint model. When the deviation between the compensated sensor measurement value and the virtual true value range is consistently less than the first threshold and maintains a preset number of stable sampling periods, the system determines that the steady-state drift of the sensor has been effectively corrected, automatically terminates the current zero-point offset compensation operation, and restores the sensor's dynamic trust weight to its trust level before the drift diagnosis, thereby achieving complete closed-loop management of sensor drift compensation and avoiding over-compensation or under-compensation.

[0063] Specifically, the method of injecting the virtual truth value interval as a physical benchmark anchor point is as follows: in the identification framework of DS evidence theory, the virtual truth value interval calculated in step S4 is constructed as an independent physical evidence body; The basic probability allocation function of the physical evidence body is set to assume with a high basic probability that the true value of the environmental parameter is within the virtual true value range, while reserving a portion of the basic probability to allocate to the entire recognition framework to represent the uncertainty of the physical model itself. By performing DS synthesis on the physical evidence body and the sensor evidence bodies in the initial fusion stage of step S2, the updated fusion result after physical benchmark anchor point verification can be obtained. If the conclusions of the physical evidence body and the sensor evidence body are highly consistent, the confidence level of the fusion is improved; if the conclusions of the physical evidence body and the sensor evidence body are inconsistent, the confidence level of the fusion is reduced, and the sensor is judged to be abnormal.

[0064] Furthermore, the core value of the physical benchmark anchor point lies in the fact that the virtual true value range is calculated based on physical laws that do not depend on the target sensor itself, thus representing a "third-party judgment" independent of the measurement value of the sensor to be verified. This characteristic enables physical reference anchors to effectively distinguish whether sensor measurements truly reflect changes in environmental conditions or are due to sensor performance degradation. When all sensors drift slowly in the same direction simultaneously, purely statistical methods cannot detect it, but physical reference anchors do not depend on any sensor and can still provide a physical calibration benchmark independent of the sensor. Therefore, they fundamentally overcome the systematic bias blind spot of purely data-driven methods.

[0065] Furthermore, the deviation is calculated by comparing the measured value of the target sensor with the virtual true value interval and calculating the degree of deviation of the measured value from the virtual true value interval. Specifically, if the measured value falls within the virtual true value interval, the deviation is 0 or is considered a minimum; if the measured value falls outside the virtual true value interval, the deviation is the ratio of the distance between the measured value and the nearest interval boundary to the interval width.

[0066] Specifically, the first threshold and the second threshold are two deviation judgment thresholds of different magnitudes. The first threshold is less than the second threshold. Together, they divide the health status of the sensor into three regions: the normal region, where the deviation is less than the first threshold; the gray warning region, where the deviation is between the first threshold and the second threshold; and the fault region, where the deviation is greater than the second threshold. The specific values ​​of the first and second thresholds can be preset according to the type of sensor, the measurement accuracy requirements, and the crop's sensitivity to the environment. The typical range of the first threshold can be 20% to 50% of the width of the virtual true value interval, and the typical range of the second threshold can be 100% to 200% of the width of the virtual true value interval. The three regions correspond to three different processing strategies.

[0067] Furthermore, within the normal range, the system determines that the target sensor is operating normally, and its measured values ​​have passed the cross-validation of the physical constraint model, requiring no correction or compensation.

[0068] Furthermore, within the gray warning zone, the system determines that the target sensor has a slight performance degradation, but has not yet reached the level of failure; At this point, the system does not directly identify it as a fault, but adopts a compromise gradual weight reduction strategy: the dynamic trust weight of the sensor is reduced to a predetermined proportion of the original trust weight, and then the measured value of the sensor is weighted and fused with the optimal estimate of the virtual true value interval using the reduced weight. The resulting weighted fusion value retains some of the measured information carried by the sensor itself, and also introduces the correction effect of the physical constraint model, realizing the hybrid reconstruction of "virtual and real combination". The purpose of this progressive processing strategy is to avoid both overreacting to sensors with slight performance degradation, which would completely waste the effective physical information they carry, and to prevent the long-term accumulation of errors in the physical model that may be introduced by relying entirely on virtual estimates.

[0069] Furthermore, the setting of the gray warning zone has important engineering significance. In practical applications, the degradation of sensor performance is usually a gradual and continuous process, rather than a sudden "health-failure" binary jump. The existence of the gray warning zone enables the system to sense the gradual process of sensor performance change and gradually implement compensation measures before it completely fails, thereby achieving a leap from "passively tolerating failure" to "actively managing degradation".

[0070] Furthermore, within the fault zone, the system determines that the target sensor has experienced a sudden hard fault, and its measured values ​​deviate significantly from physical constraints, making it completely unreliable. At this point, the system performs a complete isolation operation, completely excluding the sensor's measurement value from all subsequent fusion calculations, and using the optimal estimate of the virtual true value range to fully replace the measured value in subsequent environmental control decisions. Since this replacement process is automatic and imperceptible, operators may not be able to perceive that a certain sensor has malfunctioned, and the system performance hardly changes before and after the sensor malfunction.

[0071] Furthermore, the specific process of automatically correcting its zero-point offset coefficient is as follows: when the target sensor is determined to be in a steady-state drift state, the system does not simply replace it completely, but records the deviation value of the sensor when it is determined to be in a steady-state drift state in multiple consecutive calibration cycles. These deviation values ​​are processed using a weighted moving average method. Deviation values ​​that are closer to the current time are assigned a higher weighting coefficient, while deviation values ​​that are further back in time are assigned a lower weighting coefficient. The purpose of this weighting strategy is to filter out random fluctuations in the sensor measurement process and extract the true and continuous degradation trend of sensor performance.

[0072] Furthermore, the cumulative drift obtained after weighted moving average processing is used as the zero-point offset compensation coefficient of the target sensor. The subsequent original measurement values ​​of the target sensor are dynamically corrected in a superimposed compensation manner, so that the corrected measurement values ​​continuously approach the theoretical true value range calculated by the physical constraint model. This compensation method is a feedforward compensation. When the sensor measurement value drifts, a reverse offset is directly added to the original measurement value to cancel it out, making the corrected measurement value closer to the true value.

[0073] Furthermore, when the deviation between the compensated and corrected sensor measurement value and the virtual true value range is consistently less than the first threshold and a sufficient number of stable sampling periods are maintained, the system determines that the steady-state drift of the sensor has been effectively corrected. At this point, the system automatically terminates the current zero-point offset compensation operation and restores the sensor's dynamic trust weight to its trust level before this drift diagnosis. This process constitutes a complete closed-loop management of sensor drift compensation. From the discovery, diagnosis, and compensation of drift, to the verification of the compensation effect, and then to the termination of compensation and the restoration of the weight, an automatic, closed-loop control loop is formed, which effectively avoids over-compensation or under-compensation.

[0074] For example, in zone A of the tomato greenhouse, the measured value of temperature sensor No. 1 is 35.5℃, the virtual true value range is 33.8℃ to 34.6℃, and the preliminary fused value is 34.2℃. The deviation of the measured value from the upper limit of the virtual true value range of 34.6℃ is 0.9℃, while the width of the virtual true value range is 0.8℃. The deviation ratio is 0.9 / 0.8≈112%. The system presets a first threshold of 40% of the range width and a second threshold of 150% of the range width. The deviation is between the two, so sensor No. 1 is determined to be in the gray warning zone, and the system will transmit the data. The dynamic trust weight of the sensor is reduced from 0.22 to 50% of the original value (i.e., 0.11). Then, the measured value of 35.5℃ (weight 0.11) and the optimal estimate of the virtual true value of 34.2℃ (weight 0.89) are weighted and fused to obtain a corrected output value of 34.34℃. This value is used as the effective output of sensor 1 at the current moment and participates in subsequent fusion. At the same time, the system records this deviation and enters the drift tracking sequence. If the deviation persists for several subsequent cycles, the cumulative compensation of the zero-point offset is started to gradually compensate for the drift of the sensor.

[0075] S6: Output the fused environmental parameter values ​​after fault-tolerant fusion to the greenhouse environment controller to generate and execute environmental control commands.

[0076] Specifically, the fused environmental parameter value after fault tolerance refers to the final estimated environmental parameter value obtained after all processing steps S1 to S5; this fused value includes three parameter types: temperature fused value, humidity fused value, and CO2 concentration fused value. The core feature that distinguishes this fused value from the traditional sensor average value is that it has undergone optimized allocation of dynamic trust weights, statistical consistency fusion of DS evidence theory, cross-validation of physical constraint models, and multi-level fault-tolerant correction processing in gray warning zones or fault zones. Therefore, this fused value not only represents the comprehensive judgment of multiple sensors, but more importantly, it has been independently verified by physical laws. Its reliability and accuracy are significantly better than the raw reading of any single sensor or the result of traditional weighted averaging.

[0077] Furthermore, the greenhouse environment controller is the decision-making center of the entire greenhouse control system. Its specific form can be a programmable logic controller, an embedded industrial controller, or a control software module deployed in an edge computing gateway. The controller has pre-stored the target set values ​​of the environmental parameters of the current crop (such as target values ​​of temperature, humidity, and CO2 concentration) as well as the corresponding control logic and algorithm parameters.

[0078] Specifically, the control command is generated as follows: the controller compares the received fault-tolerant fusion value with the preset target setpoint and calculates the deviation between the current actual environmental state and the target state; based on this deviation, the controller uses conventional control algorithms such as proportional-integral-derivative control algorithm or fuzzy control algorithm to calculate the control quantity that needs to be applied to make the environmental parameters return to the target value. Subsequently, the controller converts the calculated control quantities into instruction formats that can be recognized and executed by each actuator.

[0079] Furthermore, the environmental control instructions include at least one or more of the following types: ventilation control instructions, used to control the opening angle of greenhouse ventilation windows or the speed of ventilation fans to regulate the temperature, humidity and CO2 concentration of the greenhouse; heating control instructions, used to control the start-up, stop and heating power of heating equipment to increase the greenhouse temperature under cold conditions; cooling control instructions, used to control the operation of wet curtain pumps, spray cooling equipment or shading nets to reduce the greenhouse temperature under hot conditions; and CO2 supplementation control instructions, used to control the start-up, stop and increase the flow rate of CO2 generators to supplement the supply when the CO2 concentration is insufficient.

[0080] Furthermore, after the controller outputs control commands, each actuator performs corresponding actions according to the commands, and the environmental parameters inside the greenhouse change accordingly. The changed environmental parameters are then re-collected by the sensor group and enter the next cycle of "sensing → fusion → verification → reconstruction → control". This continuous closed-loop operation mode ensures that the greenhouse environment is always under monitoring and regulation, rather than being left unattended after a one-time adjustment.

[0081] Furthermore, the controller's control cycle is matched with the sensor's sampling cycle to ensure the timeliness and stability of the control; within each control cycle, the controller receives the latest fault-tolerant fusion value, updates the control quantity, and outputs new control commands.

[0082] Furthermore, when all sensors for a certain environmental parameter are determined to have experienced a sudden failure and are isolated, the system cannot obtain a reliable fusion value for that parameter. At this time, the system automatically enters the emergency control mode: In this mode, the system uses the fault-tolerant fusion value within the most recent effective control cycle as the hold value to maintain the current operating state of the actuator unchanged. At the same time, it issues a sensor network abnormality alarm signal through the human-machine interface to notify the operator to check and repair, and wait for the sensor to recover or for manual intervention.

[0083] For example, after the above-mentioned fault-tolerant fusion processing in tomato greenhouse A, the system obtains a final fused temperature value of 34.3℃. This value has eliminated the interference of sensor drift of No. 1, while retaining the effective measured information of normal sensors No. 2 to No. 6, and has been cross-validated through a physical constraint model. The system outputs this fused temperature value of 34.3℃ to the greenhouse environment controller. The controller compares 34.3℃ with the target summer temperature setting of 32.0℃ for tomatoes, calculates the deviation as +2.3℃, and determines that the current temperature is too high. The controller calculates the cooling demand as 65% through the PID control algorithm, and then outputs cooling control instructions: start the wet curtain water pump for circulating cooling, open the shading net to 80% opening, and open the ventilation window to 45% angle. After each actuator acts according to the instructions, the temperature in greenhouse A gradually decreases. When it drops to near the target value, the controller gradually reduces the cooling output to achieve stable temperature control. Since the temperature value used by the controller is a highly reliable fused value after multi-sensor fault-tolerant fusion and physical verification, even if temperature sensor No. 1 drifts, it will not cause the controller to misjudge or output incorrect control instructions.

[0084] In summary, this invention integrates data-driven dynamic weight allocation with DS evidence theory, physical constraint verification based on thermodynamics and the law of conservation of mass, and a three-pronged technical architecture of multi-level fault tolerance and progressive online compensation. It extracts both short-term variance stability and long-term group deviation of each sensor through a double-layer sliding window, combined with single-sensor weight upper limit constraints, to achieve dynamic adaptive allocation of sensor trust weights, avoiding the dominance of fusion results by a single sensor due to accidental factors. Simultaneously, it constructs an adaptive conflict threshold using Mahalanobis distance, significantly improving the accuracy and reliability of multi-source data fusion. By embedding the thermodynamic function relationship of the enthalpy-humidity diagram of moist air and the CO2 mass conservation equation into the fusion framework as an independent physical benchmark independent of any sensor, it achieves cross-validation between data-driven results and physical laws, fundamentally overcoming the fundamental defect of pure data-driven methods that cannot detect systematic deviations when all sensors experience slow, unidirectional drift. Furthermore, by establishing a "grey warning zone progressive weight reduction and virtual-real hybrid weighting..." The system employs a multi-level fault-tolerant architecture: online compensation and closed-loop management of weighted moving average cumulative values ​​for steady-state drift, and seamless isolation and virtual value substitution for sudden hard faults. This achieves a dynamic balance between fault diagnosis accuracy and measurement data continuity, ensuring that a single or partial sensor failure will not lead to system malfunction, thus elevating the system from traditional fault tolerance to seamless fault tolerance. Through a nonlinear saturation mapping mechanism and a weight protection lower limit greater than zero, it achieves rapid response to sharp deterioration in weight adjustments, amplitude limiting protection against extreme jumps, and smooth tracking of long-term trends, overcoming the dilemma of either overly sensitive or overly sluggish weight adjustments in existing technologies. Finally, the highly reliable fused value, after physical verification and fault-tolerant correction, is output to the greenhouse environment controller, ensuring that control commands are generated based on robust data. This guarantees the continuity and stability of greenhouse environment control decisions, avoids malfunctions of actuators due to abnormal sensor data, and thus ensures a suitable growing environment for crops and improves energy efficiency.

[0085] Example 2, an embodiment of the present invention, provides a greenhouse environment adaptive control system based on multi-sensor fusion, comprising: a data acquisition module, used to synchronously acquire environmental parameter data collected in real time by a multi-sensor group at a preset sampling frequency, and transmit the acquired environmental parameter data to a stability analysis module; a stability analysis module, whose input end is connected to the output end of the data acquisition module, used to construct a double-layer sliding window, calculate the variance stability index of each sensor in the short-term window and the deviation index from the mean of the same type of sensor group in the long-term window, and transmit the calculated variance stability index and deviation index to a dynamic weight allocation module; the dynamic weight allocation module, whose input end... Connected to the output of the stability analysis module, it calculates the dynamic trust weights of each sensor based on variance stability and deviation indices, and applies a single sensor weight upper limit constraint. When the short-time window variance changes abruptly, the sensor weight is reduced and redistributed to other sensors of the same type according to a normalized ratio. The dynamically trusted weights of each sensor are then transmitted to the preliminary fusion module. The preliminary fusion module, whose input is connected to the output of the dynamic weight allocation module, performs initial fusion based on the dynamic trust weights using DS evidence theory to obtain a preliminary fusion value. The preliminary fusion value and its confidence score are then transmitted to the physical constraint verification module and the fusion correction module, respectively. The physical constraint verification module... The input terminal is connected to the output terminal of the preliminary fusion module. Internally, it stores a thermodynamic function constraint model based on the enthalpy-humidity diagram of moist air and a CO2 mass conservation constraint model. This model is used to trigger a physical conservation check when the confidence level of the preliminary fusion value is below a threshold or the reading conflict coefficient within the same type of sensor group exceeds a limit. It then transmits the trigger signal and the identification information of the low-confidence target sensor to the virtual reconstruction module. The virtual reconstruction module, whose input terminal is connected to the output terminal of the physical constraint check module, upon receiving the trigger signal, uses the parameters of the target sensor with reduced confidence weights as the variable to be reconstructed. It substitutes the measurement values ​​of high-confidence sensors in the same area into the physical constraint model to calculate the virtual true value interval of the variable to be reconstructed. The calculated virtual truth value range and its optimal estimate are transmitted to the fusion correction module. The fusion correction module has its first input connected to the output of the preliminary fusion module and its second input connected to the output of the virtual reconstruction module. It is used to inject the virtual truth value range as a physical benchmark anchor point into the DS evidence theory framework to verify the preliminary fusion value, and to perform steady-state drift correction or sudden fault isolation operation according to the verification deviation. It also transmits the final environmental parameter fusion value after fault-tolerant fusion correction to the control output module. The control output module has its input connected to the output of the fusion correction module. It is used to output the fault-tolerant fusion value of the environmental parameters to the greenhouse environment controller to generate and execute environmental control commands.

[0086] Example 3 is an embodiment of the present invention, which differs from the previous embodiment in that: If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0087] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-including system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.

[0088] More specific examples (a non-exhaustive list) of computer-readable media include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.

[0089] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0090] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A greenhouse environment adaptive control method based on multi-sensor fusion, characterized in that: include: The system acquires real-time environmental parameter data collected by multiple sensor groups inside the greenhouse, constructs a double-layer sliding window, and calculates the variance stability index of each sensor in the short-term window and the deviation index from the mean of the same type of population in the long-term window. Based on the variance stability index and deviation index, the dynamic trust weight of each sensor is calculated and a single sensor weight upper limit constraint is applied; when the short-time window variance changes abruptly, the weight of that sensor is reduced and redistributed to other sensors of the same type according to the normalization ratio; based on each dynamic trust weight, the initial fusion is performed through DS evidence theory to obtain the preliminary fusion value. A physical constraint model is constructed, which includes the thermodynamic function relationship of the enthalpy-humidity diagram of moist air and the CO2 mass conservation equation; when the confidence level of the preliminary fusion value is lower than the threshold, or the reading conflict coefficient within the same type of sensor group exceeds the limit, the physical conservation verification is triggered. The parameters of the target sensor after the trust weight has been reduced are taken as the variables to be reconstructed. The measurement values ​​of the high-trust sensors in the same area are substituted into the physical constraint model. By solving the analytical solution or numerical solution of the model, the virtual true value range of the variable to be reconstructed is calculated. The virtual true value interval is used as a physical benchmark anchor point and injected into the DS evidence theory framework to verify the preliminary fusion value: if the deviation is less than the first threshold, it is determined to be a steady-state drift, its zero-point offset coefficient is automatically corrected and retained for fusion; if the deviation is greater than the second threshold, it is determined to be a sudden fault, the sensor is completely isolated and the optimal estimate of the virtual true value is used to replace the measured value for subsequent regulation. The fused environmental parameters after fault tolerance are output to the greenhouse environment controller to generate and execute environmental control commands.

2. The greenhouse environment adaptive control method based on multi-sensor fusion as described in claim 1, characterized in that: In the dual-layer sliding window, the duration of the short-time window is much shorter than that of the long-time window. The short-time window is used to capture high-frequency random fluctuations in the measured values ​​caused by the sensor's own electronic noise, instantaneous disturbances in local airflow, or the start-up and shutdown of environmental control equipment, and to quantify the short-term stability of each sensor in real time. The long-term window is used to track the slow baseline drift of environmental parameters in the greenhouse environment caused by the alternation of day and night, gradual changes in solar radiation and periodic changes in outdoor meteorological conditions, thereby quantifying the systematic deviation trend of each sensor relative to the average value of the same type of sensor group during long-term operation. The preset upper limit value of the single sensor weight upper limit constraint is configured as a positive number less than 1. That is, the instantaneous weight value of any sensor in the dynamic trust weight allocation process is forcibly limited to a range less than the preset upper limit value. This is to prevent a sensor from accidentally obtaining a significantly higher trust score than other similar sensors in a specific period of time and dominating the entire fusion result. This ensures that the decision-making power of the fusion result is always distributed among multiple similar sensors, so that the fusion system has an inherent immunity to occasional anomalies or slow performance degradation of a single sensor.

3. The greenhouse environment adaptive control method based on multi-sensor fusion as described in claim 1, characterized in that: The conflict coefficient is calculated based on the standardized statistical distance between each sensor reading and the preliminary fusion value. This standardized statistical distance eliminates the dimensional differences of different environmental parameters and the influence of linear correlation between sensors by introducing the covariance structure between the sensor measurements, so that the calculated conflict coefficient can objectively reflect the actual deviation of each independent measurement value in the multivariate statistical distribution space. The preset confidence threshold is used to determine the overall credibility of the preliminary fusion value. The value of the threshold is configured to be dynamically adjusted according to the current operating conditions of the greenhouse and the overall health status of the sensors. When the confidence of the preliminary fusion value is lower than the dynamic threshold, it indicates that there is a significant information inconsistency among the multiple sensors currently participating in the fusion, and an external verification process based on the principle of physical conservation needs to be triggered immediately to find out the root cause of the conflict. The preset conflict threshold is used to determine whether the dispersion between readings within a group of sensors of the same type is within an acceptable normal range. The value of the conflict threshold is configured to be positively correlated with the dynamic change rate of the current environmental parameters. That is, the more drastic the change in environmental parameters, the greater the conflict threshold will increase adaptively, and vice versa. When the conflict coefficient between the readings of each sensor in the group exceeds the dynamic threshold, it indicates that there is a non-negligible systematic discrepancy within the group that cannot be eliminated by conventional statistical weighting and a mandatory verification based on the principle of physical conservation must be initiated.

4. The greenhouse environment adaptive control method based on multi-sensor fusion as described in claim 1, characterized in that: The first threshold and the second threshold are two preset deviation judgment thresholds of different magnitudes, wherein the first threshold is smaller than the second threshold; when the absolute value of the deviation between the virtual truth interval and the preliminary fusion value is between the first threshold and the second threshold, the system does not directly determine that the target sensor is in a fault state, but reduces the dynamic trust weight of the target sensor to a predetermined proportion of the original trust weight, and uses the reduced trust weight to perform weighted fusion of the measured value of the target sensor with the optimal estimate of the virtual truth interval, and the resulting weighted fusion value is used as the corrected output value of the target sensor at the current moment to participate in subsequent multi-sensor fusion calculation; The deviation range between the first threshold and the second threshold is defined as the gray warning zone for sensor performance degradation. Within this warning zone, a strategy combining progressive weighting and virtual-real hybrid reconstruction is adopted. This avoids overreacting to sensors with slight performance degradation, which would lead to the complete waste of the effective physical information they carry. It also prevents the long-term accumulation of errors in the physical model introduced by relying entirely on virtual estimates. Thus, a dynamic balance is achieved between the accuracy of sensor fault diagnosis and the continuity of measurement data.

5. The greenhouse environment adaptive control method based on multi-sensor fusion as described in claim 4, characterized in that: Within the short time window, the rate of change of the variance of the target sensor measurement values ​​over time is continuously tracked. When the absolute value of the rate of change exceeds a preset variance change rate threshold, it is determined that the target sensor is currently in a measurement instability state caused by external interference or internal performance degradation, and a reduction operation of the trust weight of the target sensor is triggered. The reduction magnitude of the trust weight of the target sensor is positively correlated with the amount by which the variance change rate exceeds the preset threshold, that is, the more drastic the variance change and the greater the excess, the higher the reduction ratio of the trust weight of the target sensor. The trust weight reduction process is controlled by a nonlinear saturation mapping mechanism to prevent the trust weight of the target sensor from dropping to zero due to extreme variance jumps, thus causing the physical measurement channel to completely lose its information contribution capability. The weight of the target sensor after reduction is limited to a preset weight protection lower limit, which is configured to be greater than zero, to ensure that the physical measurement channel retains a minimum level of information participation after weight reduction, and to avoid losing the data reconstruction benchmark reference in the subsequent fault recovery process due to the weight being completely zero.

6. The greenhouse environment adaptive control method based on multi-sensor fusion as described in claim 1, characterized in that: The thermodynamic function constraints of the enthalpy-humidity diagram of moist air specifically include: using the deterministic thermodynamic conversion relationship between air temperature, air humidity, dew point temperature, moisture content, and enthalpy value, constructing a set of cross-verification equations with dry-bulb temperature measurement and relative humidity measurement as inputs and dew point temperature and moisture content as outputs; when there is a measurement conflict between the temperature sensor and the humidity sensor in the greenhouse, the measurement value of one sensor is used as a known quantity and substituted into the set of equations to deduce the theoretical measurement range that the other sensor should present under the constraints of thermodynamic laws, thereby realizing physical cross-verification across sensor types; The CO2 mass conservation equation constraint is constructed based on the dynamic mass balance relationship between the rate of change of CO2 concentration in the greenhouse and the absorption rate of crop photosynthesis, the release rate of plant respiration, and the indoor-outdoor CO2 exchange rate caused by greenhouse ventilation. This balance relationship links the real-time measurement value of the CO2 sensor with the current ventilation operation status of the greenhouse, the current light radiation intensity, and the characteristic parameters of the crop growth stage. When the CO2 sensor measurement value significantly violates this mass conservation balance relationship, the system automatically determines that the measurement reliability of the sensor has decreased, and calculates a reasonable estimate range of CO2 concentration based on the balance relationship, providing a sensor-independent physical basis for the virtual reconstruction step.

7. The greenhouse environment adaptive control method based on multi-sensor fusion as described in claim 4, characterized in that: Record the deviation value of the target sensor when it is determined to be in steady state drift within multiple consecutive calibration cycles. The deviation value sequence is processed by a weighted moving average method, in which the deviation value closer to the current moment is given a higher weighting coefficient and the deviation value further back in time is given a lower weighting coefficient, so as to filter out the random fluctuations in the sensor measurement process and extract the true and continuous degradation trend of the sensor performance. The cumulative drift obtained after weighted moving average processing is used as the zero-point offset compensation coefficient of the target sensor. The subsequent original measurement values ​​of the target sensor are dynamically corrected by superimposed compensation, so that the corrected measurement values ​​continuously approach the theoretical true value range calculated by the physical constraint model. When the deviation between the compensated sensor measurement value and the virtual true value range is consistently less than the first threshold and maintains a preset number of stable sampling periods, the system determines that the steady-state drift of the sensor has been effectively corrected, automatically terminates the current zero-point offset compensation operation, and restores the dynamic trust weight of the sensor to its trust level before the drift diagnosis, thereby realizing complete closed-loop management of sensor drift compensation and avoiding over-compensation or under-compensation.

8. A greenhouse environment adaptive control system based on multi-sensor fusion, based on the greenhouse environment adaptive control method based on multi-sensor fusion as described in any one of claims 1 to 7, characterized in that: include, The data acquisition module is used to synchronously acquire environmental parameter data collected in real time by multiple sensor groups at a preset sampling frequency, and transmit the acquired environmental parameter data to the stability analysis module. The stability analysis module, whose input end is connected to the output end of the data acquisition module, is used to construct a double-layer sliding window, calculate the variance stability index of each sensor in the short-term window and the deviation index from the mean of the same type of sensor group in the long-term window, and transmit the calculated variance stability index and deviation index to the dynamic weight allocation module. The dynamic weight allocation module, whose input is connected to the output of the stability analysis module, is used to calculate the dynamic trust weight of each sensor based on the variance stability index and the deviation index and to apply a single sensor weight upper limit constraint. When the short-time window variance changes abruptly, the weight of that sensor is reduced and redistributed to the other sensors of the same type according to the normalization ratio. The dynamic trust weights of each sensor obtained by the allocation are then transmitted to the preliminary fusion module. The initial fusion module, whose input is connected to the output of the dynamic weight allocation module, is used to perform initial fusion based on each dynamic trust weight using DS evidence theory to obtain an initial fusion value, and transmits the initial fusion value and its confidence score to the physical constraint verification module and the fusion correction module, respectively. The physical constraint verification module has its input end connected to the output end of the preliminary fusion module. It internally stores the thermodynamic function relationship constraint model of humid air enthalpy-humidity diagram and the CO2 mass conservation constraint model. It is used to trigger physical conservation verification when the confidence level of the preliminary fusion value is lower than the threshold or the reading conflict coefficient within the same type of sensor group exceeds the limit, and transmits the trigger signal and the identification information of the low confidence target sensor to the virtual reconstruction module. The virtual reconstruction module, whose input is connected to the output of the physical constraint verification module, is used to take the parameters of the target sensor after the trust weight has been reduced as the variable to be reconstructed after receiving the trigger signal, substitute the measurement values ​​of the high trust sensors in the same area into the physical constraint model, calculate the virtual true value interval of the variable to be reconstructed, and transmit the calculated virtual true value interval and its optimal estimate to the fusion correction module. The fusion correction module has its first input end connected to the output end of the preliminary fusion module and its second input end connected to the output end of the virtual reconstruction module. It is used to inject the virtual true value range as a physical benchmark anchor point into the DS evidence theory framework to verify the preliminary fusion value, and to perform steady-state drift correction or sudden fault isolation operation according to the verification deviation. It also transmits the final environmental parameter fusion value after fault-tolerant fusion correction to the control output module. The control output module, whose input is connected to the output of the fusion correction module, is used to output the fused environmental parameter values ​​after fault-tolerant fusion to the greenhouse environment controller, and generate and execute environmental control commands.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, it implements the steps of the greenhouse environment adaptive control method based on multi-sensor fusion as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the steps of the greenhouse environment adaptive control method based on multi-sensor fusion as described in any one of claims 1 to 7.