A multi-source sensor credible fusion and abnormal self-correction method and system for a rice-fish symbiotic scene

By calculating the robust time deviation, cross-sensor consistency deviation, and physical boundary risk of sensors in the rice-fish co-culture system, reliable weights are generated and self-calibrated, solving the problem of miscontrol caused by abnormal sensor data and achieving high accuracy and safety control of the rice-fish co-culture environment.

CN123179305APending Publication Date: 2026-11-27SICHUAN INFORMATION TECH COLLEGE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611655112.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-27

Smart Images

  • Figure CN123179305A_ABST
    Figure CN123179305A_ABST
Patent Text Reader

Abstract

The application discloses a multi-source sensor credible fusion and abnormal self-correction method and system for a rice-fish symbiotic scene, and comprises the following steps: collecting water level real-time observation values to construct an observation vector, normalizing the original observation values, calculating a robust time deviation based on a sliding time window, calculating a cross-sensor consistency deviation according to the correlation between sensors, and calculating a physical boundary risk; the above three indexes are comprehensively used to generate continuous credible weights, and the abnormal type is judged accordingly; when the credible weight is lower than a threshold value, the corrected observation value is generated by using the historical stable value and the fusion value of the same type sensor; finally, the global control confidence is calculated according to the credible weight and the control importance of each sensor, and the automatic control instruction is isolated when the confidence is insufficient, and only the data record and alarm are reserved. The method can identify the sensor data which does not cross the boundary but is not credible, avoids that the abnormal data directly drives the execution equipment, and improves the accuracy and safety of the rice-fish symbiotic environment control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart agriculture technology, and more specifically, to a method and system for reliable fusion of multi-source sensors and anomaly self-correction in rice-fish co-culture scenarios. Background Technology

[0002] Rice-fish co-culture smart agriculture systems typically require continuous collection of various environmental data, including water level, water temperature, air temperature and humidity, soil moisture, pH, conductivity, salinity, nitrogen, phosphorus, and potassium. Based on this data, they control water pumps, drainage pumps, feeding machines, sprayers, aerators, or alarm devices. Most existing IoT-based agricultural systems employ a process of data collection, uploading, threshold judgment, and device control: sensor nodes collect environmental data, upload it to a server or local controller via IoT communication links, and the control unit determines whether to activate the equipment based on fixed thresholds.

[0003] In actual rice-fish co-culture scenarios, water level sensors may be affected by water surface fluctuations, pump startup, electromagnetic interference, probe contamination, power supply fluctuations, or short-term contact anomalies. Sensors for air temperature and humidity, pH, salinity, conductivity, nitrogen, phosphorus, and potassium may also experience instantaneous jumps, single-point drift, or long-term offsets. If the control system directly treats abnormal data as the actual environmental state for control purposes, it can easily lead to accidental drainage, accidental water ingress, accidental feeding, or false alarms. Existing methods typically employ simple amplitude limiting, moving averages, median filtering, or fixed threshold filtering. While these methods can suppress a small amount of random noise, they have three shortcomings: First, they cannot determine whether a particular data point represents a genuine environmental change or a suspected sensor anomaly; second, they cannot utilize the synchronous changes between other sensors to determine data reliability; and third, when data reliability is low, they lack interpretable self-calibration values ​​and control isolation mechanisms, meaning the control loop may still be falsely triggered by abnormal data.

[0004] Therefore, for rice-fish co-culture scenarios, a multi-source sensor reliable fusion and anomaly self-correction method with algorithm as the core is needed, so that the system can calculate the reliability, anomaly type, correction value and control confidence of each sensor before the data enters the control decision, thereby avoiding erroneous data directly driving the execution device. Summary of the Invention

[0005] The purpose of this application is to overcome the shortcomings of existing technologies and provide a method and system for reliable fusion and anomaly self-correction of multi-source sensors in rice-fish co-culture scenarios. By calculating the robust time deviation, cross-sensor consistency deviation and physical boundary risk of multi-source sensors, a continuous reliable weight is generated. Based on this weight, low-reliability data is self-corrected and global control is isolated, thereby solving the technical problem of malfunction of execution equipment caused by abnormal sensor data in rice-fish co-culture scenarios.

[0006] The objective of this application is achieved through the following technical solution: Firstly, this application proposes a reliable fusion and anomaly self-correction method for multi-source sensors in rice-fish co-culture scenarios, including: S1, construct a multi-source sensor observation vector. The observation vector contains real-time observations from at least two types of sensors in the rice-fish co-culture scenario, including water level, water temperature, air temperature and humidity, pH, salinity, conductivity, nitrogen, phosphorus, and potassium. Each type of sensor contains one or more sensor nodes of the same type. S2, based on the preset lower and upper safety limits of each type of sensor, normalize each original observation value in the observation vector to obtain the normalized value; S3, calculate the robust time bias for each type of sensor based on the normalized value within the sliding time window; S4, calculate the cross-sensor consistency deviation based on the relevant sensor set corresponding to each type of sensor; S5, calculate the physical boundary risk of the raw observations for each type of sensor; S6, which integrates robust time bias, cross-sensor consistency bias and physical boundary risk, generates a reliable weight for the current observation of each type of sensor. S7. Based on the comparison relationship between robust time deviation, cross-sensor consistency deviation and physical boundary risk and their corresponding thresholds, the anomaly type of each type of sensor is determined. S8, When the confidence weight of any sensor is lower than the confidence threshold, a corrected observation value is generated based on the historical stable value of the sensor and the similar fusion value of related sensors; S9 calculates the global control confidence level based on the confidence weight of each sensor and its importance to control safety. When the global control confidence level is lower than the confidence threshold, the automatic control command is isolated, and only data records and alarms are retained.

[0007] In one possible embodiment, the normalization formula in step S2 is: ,in This represents the normalized value of the m-th type of sensor at time t. This represents the raw observation value of the m-th type of sensor at time t. This represents the lower safety limit of the m-th type of sensor. This represents the safety upper limit for the m-th type of sensor.

[0008] In one possible embodiment, the calculation of robust time bias in step S3 includes: Set a sliding time window and calculate the median of the normalized values ​​within that window. and interquartile range The interquartile range is the difference between the 75th percentile and the 25th percentile within the window, plus a smoothing term. ; Calculate robust time bias based on median and interquartile range .

[0009] In one possible embodiment, the formula for calculating the cross-sensor consistency deviation in step S4 is: ,in, This represents the set of other sensors associated with the m-th type of sensor. This represents the consistency weight of the j-th type of sensor relative to the m-th type of sensor. The empirical correlation coefficient represents the trend of change between the m-th type of sensor and the j-th type of sensor. and These are the normalized values ​​of the corresponding sensors at the previous time step.

[0010] In one possible embodiment, the formula for calculating the physical boundary risk in step S5 is: ,in This represents the physical boundary risk of the m-th type of sensor at time t, when the original observation is within the safe range. It is 0.

[0011] In one possible embodiment, the formula for calculating the confidence weight in step S6 is: ,in This represents the confidence weight of the m-th type of sensor at time t, where a, b, and c are the weight coefficients for robust time bias, cross-sensor consistency bias, and physical boundary risk, respectively, and 0 < t. ≤1.

[0012] In one possible embodiment, the exception types in step S7 include: when and and When the noise level is reached, it is identified as transient jump noise; when and At that time, it is judged as a suspected sensor malfunction or communication anomaly; when At that time, it was determined to be a physical boundary risk; If none of the above conditions are met, it is determined that no abnormality has been found. in, , , These are preset thresholds for robust time bias, cross-sensor consistency bias, and physical boundary risk, respectively.

[0013] In one possible embodiment, the formula for calculating the corrected observation value in step S8 is: , These are the corrected observations. This is the historical stable value of the sensor. This is a fusion value of similar values ​​from related sensors. As a weighting factor, The confidence threshold; The formula for calculating the fusion value of the same type is: ,in This represents the set of sensors that belong to or are related to the m-th type of sensor. and These represent the confidence weights and original observations of the q-th type of sensor within the set.

[0014] In one possible embodiment, the formula for calculating the global control confidence in step S9 is: ,in To control the confidence level globally. Let M represent the importance of the m-th type of sensor to control safety, and M be the total number of sensor types. when At this time, the system prohibits the automatic control actions of the inlet pump, outlet pump, feeder, sprayer, and aerator. This is the confidence threshold.

[0015] Secondly, embodiments of this application propose a multi-source sensor reliable fusion and anomaly self-correction system for rice-fish co-culture scenarios, including: The observation vector construction module is used to construct observation vectors from multiple sources of sensors. The observation vectors contain real-time observations from at least two types of sensors in the rice-fish co-culture scenario, including water level, water temperature, air temperature and humidity, pH, salinity, conductivity, nitrogen, phosphorus, and potassium. Each type of sensor contains one or more sensor nodes of the same type. The normalization module is used to normalize each original observation value in the observation vector according to the preset lower and upper safety limits of each type of sensor, so as to obtain the normalized value. The time deviation calculation module is used to calculate the robust time deviation of each type of sensor based on the normalized value within the sliding time window. The consistency deviation calculation module is used to calculate the cross-sensor consistency deviation based on the relevant sensor set corresponding to each type of sensor. The boundary risk calculation module is used to calculate the physical boundary risk of the raw observations of each type of sensor. The credible weight generation module is used to integrate robust time bias, cross-sensor consistency bias and physical boundary risk to generate credible weights for the current observations of each type of sensor. The anomaly type discrimination module is used to determine the anomaly type of each sensor based on the comparison relationship between robust time deviation, cross-sensor consistency deviation and physical boundary risk and their corresponding thresholds. The self-calibration module is used to generate a calibrated observation value based on the historical stable value of the sensor and the similar fusion value of related sensors when the confidence weight of any sensor is lower than the confidence threshold. The control isolation module is used to calculate the global control confidence level based on the confidence weight of each sensor and its importance to control safety. When the global control confidence level is lower than the confidence threshold, the automatic control command is isolated, and only data records and alarms are retained.

[0016] The main solution and its various further alternatives described above can be freely combined to form multiple solutions, all of which are solutions that can be adopted and are claimed in this application; furthermore, the (non-conflicting alternatives) can also be freely combined with each other and with other alternatives. Those skilled in the art, after understanding the solution of this application, will realize from the prior art and common general knowledge that there are many combinations, all of which are technical solutions to be protected in this application, and will not be exhaustively listed here.

[0017] This application discloses a method and system for reliable fusion and anomaly self-correction of multi-source sensors in rice-fish co-culture scenarios. The method constructs an observation vector by collecting real-time water level observations; after normalizing the original observations, robust time deviations are calculated based on a sliding time window; cross-sensor consistency deviations are calculated based on inter-sensor correlations; and physical boundary risks are calculated. A continuous reliability weight is generated by combining these three indicators, and anomaly types are identified accordingly. When the reliability weight is below a threshold, corrected observations are generated using historical stable values ​​and fused values ​​from similar sensors. Finally, a global control confidence level is calculated based on the reliability weights of each sensor and the control importance. When the confidence level is insufficient, automatic control commands are isolated, retaining only data records and alarms. This method can identify sensor data that is not out of bounds but is unreliable, preventing abnormal data from directly driving the execution equipment and improving the accuracy and safety of rice-fish co-culture environment control. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 The diagram shows a flowchart of a multi-source sensor trusted fusion and anomaly self-correction method for rice-fish co-culture scenarios proposed in this application. Detailed Implementation

[0020] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, unless otherwise specified, the following embodiments and features in the embodiments can be combined with each other.

[0021] Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0022] This application proposes a method and system for multi-source sensor reliable fusion and anomaly self-correction in rice-fish co-culture scenarios. Before executing equipment control, it can perform reliability assessment, anomaly classification, low-reliability data self-correction, and control risk isolation on multi-source sensor data such as water level, water temperature, air temperature and humidity, pH, salinity, conductivity, and nitrogen, phosphorus, and potassium. The core technical problems to be solved include: how to map heterogeneous sensor data to a unified computing space; how to identify instantaneous jumps based on historical trends of sliding windows; how to identify suspected anomalies using the consistency relationship between multi-source sensors; how to reduce the reliability weight of data that is still within the physical range but changes unreasonably; how to provide corrected sensor values ​​instead of simply deleting anomaly values; and how to isolate automatic control when global data reliability is insufficient to avoid anomalous data triggering water pumps or feeding equipment.

[0023] Please refer to Figure 1 , Figure 1 This paper presents a flowchart illustrating a method for reliable fusion of multi-source sensors and anomaly self-correction in rice-fish co-culture scenarios, as proposed in an embodiment of this application. The method includes: S1, construct a multi-source sensor observation vector. The observation vector contains real-time observations from at least two types of sensors in the rice-fish co-culture scenario, including water level, water temperature, air temperature and humidity, pH, salinity, conductivity, nitrogen, phosphorus, and potassium. Each type of sensor contains one or more sensor nodes of the same type. Suppose the system acquires observations from M types of sensors at time t, including water level, water temperature, air temperature, air humidity, pH, salinity, soil moisture, conductivity, nitrogen, phosphorus, and potassium. Air temperature and humidity correspond to air temperature and air humidity in this embodiment. At least two of these categories encompass any two or more combinations of the aforementioned M types of sensors, thus constructing a unified input basis for multi-source heterogeneous data. The constructed observation vector is represented as follows: , This represents the raw observation value of the m-th type of sensor at time t. This represents the observation vector composed of all sensors at the current moment.

[0024] S2, based on the preset lower and upper safety limits for each type of sensor, normalize each original observation value in the observation vector to obtain a normalized value.

[0025] The formula for normalization in step S2 is: ,in This represents the normalized value of the m-th type of sensor at time t. This represents the raw observation value of the m-th type of sensor at time t. This represents the lower safety limit of the m-th type of sensor. This represents the safety upper limit for the m-th type of sensor.

[0026] In the context of rice-fish co-culture smart agriculture, the sensor data collected by the system, such as water level, water temperature, air temperature and humidity, pH, salinity, conductivity, and nitrogen, phosphorus, and potassium, have completely different physical dimensions and numerical ranges. Directly inputting this heterogeneous data into subsequent algorithms for bias comparison or weight calculation will lead to distorted evaluation results due to the difference in dimensions. Therefore, a normalization mechanism is introduced to pre-set a safety lower limit for the m-th type of sensor based on the current crop growth stage or system configuration parameters. and safety limit This allows for the definition of reasonable data boundaries for this type of sensor under normal operating conditions.

[0027] To address the above requirements, the following formula is used to normalize the original observation values ​​in the constructed observation vector: , This represents the normalized value of the m-th type of sensor at time t; This represents the raw observation value of the m-th type of sensor at time t; This represents the lower safety limit of the m-th type of sensor; This represents the safety upper limit for the m-th type of sensor. This formula, through a combination of linear mapping and a cutoff function, strictly constrains the original observations of arbitrary dimensions within a unified interval of [0, 1]. To ensure that the normalization result is not lower than 0: when the original observation values Below the safety limit When the ratio is negative, after being truncated by the max function and normalized, the result approaches 0; outer function To ensure the normalization result is no higher than 1: when the original observation values Above the safety limit When the ratio is greater than 1, the normalized result after being truncated by the min function approaches 1; if In Within the safe range, the normalized value It is a decimal between 0 and 1, which accurately reflects the relative position of the original value within the safe range.

[0028] S3, calculate the robust time bias for each type of sensor based on the normalized value within the sliding time window; The calculation of robust time bias in step S3 includes: Set a sliding time window and calculate the median of the normalized values ​​within that window. and interquartile range The interquartile range is the difference between the 75th percentile and the 25th percentile within the window, plus a smoothing term. ; Calculate robust time bias based on median and interquartile range .

[0029] Set a sliding time window This window contains several consecutive sampling times traced back from the current time t. Based on normalized values... (in Belongs to window (within the specified time), calculate the median of the normalized values ​​within that window. Its calculation formula is This median reflects the central tendency of the data from the m-th type of sensor within the current sliding window.

[0030] Next, calculate the interquartile range with a smoothing term. The calculation formula is as follows: .in This represents the 75th percentile (i.e., the upper quartile) of the normalized values ​​within the window. The difference between the 25th percentile (i.e., the lower quartile) and the lower quartile is a measure of the dispersion of the window data. This is a preset minimal smoothing constant used to avoid the situation where the denominator is zero when the interquartile range is zero due to highly concentrated or constant data within the window, thus ensuring the stability of the algorithm in numerical calculations.

[0031] Based on the median obtained above and interquartile range Further calculate the robust time deviation at the current time t. The calculation formula is: This formula calculates the current normalized value. With window digit The absolute deviation, divided by the interquartile range with a smoothing term. This transforms the time-dimensional deviation into a dimensionless, robust statistic. The larger the value, the greater the deviation of the current observation from the recent historical stable state, that is, the greater the possibility of a sudden change in the data point.

[0032] S4. Calculate the cross-sensor consistency deviation based on the relevant sensor set corresponding to each type of sensor.

[0033] The formula for calculating the cross-sensor consistency deviation in step S4 is as follows: , This represents the set of other sensors associated with the m-th type of sensor. This represents the consistency weight of the j-th type of sensor relative to the m-th type of sensor. The empirical correlation coefficient represents the trend of change between the m-th type of sensor and the j-th type of sensor. and These are the normalized values ​​of the corresponding sensors at the previous time step.

[0034] This application pre-sets a set of related sensors for the m-th type of sensor. This set includes other sensor types that are logically related to the m-th sensor in terms of physical or environmental changes. Based on this set, the cross-sensor consistency deviation is calculated using the following formula. : , This represents the set of other sensors associated with the m-th type of sensor. This indicates the number of sensors contained in the set; The consistency weight of the j-th sensor relative to the m-th sensor is used to characterize the importance of different related sensors in verifying the state of the m-th sensor. The larger the weight, the stronger the corroboration of the reliability of the m-th sensor by the synchronous change of the related sensor. The empirical correlation coefficient represents the changing trends between the m-th type sensor and the j-th type sensor. This coefficient is pre-calibrated based on historical data and reflects the inherent correlation strength between the two in terms of the direction and magnitude of change. and Let be the normalized values ​​of the m-th sensor at the current time t and the previous time t-1, respectively. and are the normalized values ​​of the j-th sensor at the current time t and the previous time t-1, respectively.

[0035] The formula first calculates the change of the m-th type of sensor itself between adjacent time points ( ), and the change in the j-th type of related sensor within the set at adjacent time points ( Then, empirical correlation coefficients were used. The variation of the j-th type of sensor is scaled to match the historical correlation characteristics between them; then, the absolute difference between the variation of the two is calculated, which directly reflects whether the abrupt change of the m-th type of sensor at the current moment is synchronously confirmed by the related j-th type of sensor; finally, the differences of all related sensors are weighted, summed, divided by the total number of sets, and averaged to obtain the final cross-sensor consistency deviation. . The larger the value, the more contradictory the current mutation of the m-th type of sensor is to the changing trends of other related sensors, that is, the worse the consistency of the sensor data.

[0036] S5 calculates the physical boundary risk of the raw observations for each type of sensor.

[0037] The formula for calculating physical boundary risk in step S5 is as follows: ,in This represents the physical boundary risk of the m-th type of sensor at time t, when the original observation is within the safe range. It is 0.

[0038] Based on the safety lower limit set for each type of sensor in step S2 and safety limit Calculate the raw observation value of the m-th type of sensor at time t. Corresponding physical boundary risk The calculation formula is as follows: , This represents the physical boundary risk of the m-th type of sensor at time t. and These are the preset lower and upper safety limits for the m-th type of sensor, respectively, and their values ​​are consistent with the boundaries used in the normalization process in step S2. Let be the raw observation value of the m-th type of sensor at time t.

[0039] The formula works as follows: by calculating the degree to which the original observations exceed the safety lower and upper limits respectively, and then using the max function to find the maximum value, a non-negative boundary risk value is obtained. When the original observations... Located in the safe zone At that time, and Since all values ​​are negative or zero, the max function takes the value 0. This indicates that the data is within physically feasible limits and there is no boundary risk; when Below the safety limit hour, It is a positive value, and the value increases the further it is below the lower limit. Taking this positive value indicates the existence of low boundary risk; when Above the safety limit hour, It is a positive value, and the higher it is above the upper limit, the larger the value becomes. A positive value indicates the presence of high boundary risk. Therefore, physical boundary risk... It monotonically increases with the degree of boundary violation, quantitatively characterizing the severity of data exceeding physical boundaries.

[0040] S6, which integrates robust time bias, cross-sensor consistency bias and physical boundary risk, generates a reliable weight for the current observation of each type of sensor. The formula for calculating the confidence weight in step S6 is: ,in Let represent the confidence weight of the m-th type of sensor at time t, and a, b, and c be the weight coefficients of robust time bias, cross-sensor consistency bias, and physical boundary risk, respectively. 0 < ≤1.

[0041] Step S6 uses the following exponential decay function formula to calculate the confidence weight of the m-th type of sensor at time t. : , This represents the confidence weight of the m-th type of sensor at time t, and its value strictly ranges from 0 to 1; The calculated robust time bias reflects the degree of deviation of the current value from the historical stable window; The calculated cross-sensor consistency deviation reflects the degree of contradiction between the current sensor mutation and the changing trends of other related sensors; The calculated physical boundary risk reflects the extent to which the original observations exceed the physically feasible range; , , These are weighting coefficients for robust time bias, cross-sensor consistency bias, and physical boundary risk, respectively. These coefficients can be preset or dynamically adjusted according to different growth stages of rice-fish co-culture or system safety strategies, and are used to characterize the relative importance of different dimensions of bias in credibility assessment.

[0042] The calculation logic of this formula is as follows: First, the deviation indicators of the three dimensions are linearly weighted and summed to obtain the comprehensive deviation value. Then, the overall deviation value is negative and used as the exponent of the natural exponential function. Through exponential mapping, the overall deviation is transformed into a continuous value between 0 and 1. When the sensor data is completely normal (i.e....), , , When both are close to 0, the exponential part is close to 0. A value approaching 1 indicates that the data is completely reliable; when one or more deviation indicators increase, the overall deviation value increases, and negative exponential calculation makes... A value approaching 0 indicates a decrease in data credibility. In this way, the credibility weight is monotonically negatively correlated with the overall deviation; the greater the deviation, the lower the credibility. Moreover, the change is smooth and continuous, without any sudden threshold jumps.

[0043] S7. Based on the comparison relationship between robust time deviation, cross-sensor consistency deviation and physical boundary risk and their corresponding thresholds, the anomaly type of each type of sensor is determined. The exception types in step S7 include: when and and When the noise level is reached, it is identified as transient jump noise; when and At that time, it is judged as a suspected sensor malfunction or communication anomaly; when At that time, it was determined to be a physical boundary risk; If none of the above conditions are met, it is determined that no abnormality has been found. in, , , These are preset thresholds for robust time bias, cross-sensor consistency bias, and physical boundary risk, respectively.

[0044] Step S7 is based on the robust time bias obtained in step S3. The cross-sensor consistency deviation obtained in step S4 and the physical boundary risk obtained in step S5 Each of these parameters is compared with its corresponding preset threshold, and the anomaly type of the m-th sensor at time t is output through a preset logical relationship. .when ,and ,at the same time When the sensor data is found to contain transient noise, the corresponding anomaly type is determined. This situation indicates that the current observation has experienced a significant abrupt change in the time dimension. However, since it has not exceeded the physical safety boundary and the changing trends of other related sensors have not contradicted it in a significant way, the abrupt change is most likely caused by random noise from environmental factors such as water surface fluctuations, instantaneous sensor jitter, or brief communication interference, rather than a real change in the system environment. Usually, immediate hardware repair is not required, but it needs to be suppressed in the calculation.

[0045] when and When the problem is identified as a suspected sensor malfunction or communication anomaly, the corresponding anomaly type is determined. In this situation, the sensor data not only deviates significantly from the historical window, but its abrupt changes are also seriously inconsistent with the synchronous changes of the relevant sensors. This means that the data is most likely not driven by real environmental changes, but rather by sensor probe contamination, hardware failure, or abnormal data transmission links. This requires the system to pay close attention and prompt manual intervention for inspection.

[0046] when When identified as a physical boundary risk, the corresponding anomaly type is determined. This type of error directly reflects that the sensor's raw observations have exceeded the physically feasible range preset by the system based on the crop growth stage or safety strategy. It is a clear data out-of-bounds error and may pose a direct safety threat to the control equipment, so it must be included in the scope of control isolation considerations.

[0047] If none of the above conditions are met, i.e., robust time bias, cross-sensor consistency bias, and physical boundary risk do not exceed their respective reasonable ranges, then it is determined that no anomaly has been found, and the corresponding anomaly type is... This indicates that the sensor's current observations demonstrate normal temporal stability, spatial consistency, and physical legitimacy, and can be considered to accurately reflect the true state of the rice-fish symbiotic environment. Therefore, it can be directly used with high weight in subsequent fusion and control. .

[0048] In the above discrimination logic, , , These are preset thresholds for robust time bias, cross-sensor consistency bias, and physical boundary risk. These thresholds can be pre-calibrated based on the historical data distribution, sensor performance, and system requirements for control safety in actual rice-fish co-culture scenarios.

[0049] S8, When the confidence weight of any sensor is lower than the confidence threshold, a corrected observation value is generated based on the historical stable value of the sensor and the similar fusion value of related sensors; The formula for calculating the corrected observations in step S8 is as follows:

[0050] in, These are the corrected observations. This is the historical stable value of the sensor. This is a fusion value of similar values ​​from related sensors. As a weighting factor, The confidence threshold; The formula for calculating the fusion value of the same type is: ,in This represents the set of sensors that belong to or are related to the m-th type of sensor. and These represent the confidence weights and original observations of the q-th type of sensor within the set.

[0051] Step S8 first obtains the confidence weights of each type of sensor generated in step S6. and compare it with a preset confidence threshold. Compare the observations and select different output strategies based on the comparison results. When the current data from the sensor is high, it indicates that the system directly uses the original observations. As the corrected observation value ;when When the original value is low, it indicates that the current data from the sensor has low reliability. Instead of directly using the original value, the system generates a corrected observation value through weighted fusion based on the sensor's historical stable values ​​and fused values ​​from similar sensors. The formula for calculating the corrected observation value is as follows: , Let represent the corrected observation value of the m-th type sensor at time t; This indicates the historical stable value determined by the sensor based on historical data; This represents the fusion value of related sensors, which is the estimated value obtained by weighting the current observations of other sensors in the same group or related to the m-th type of sensor with confidence. This is a weighting coefficient, ranging from [0,1], used to adjust the relative weight of the historical stable term and the fusion term in the final correction value. When the value approaches 1, the correction value depends more on the sensor's historical stable state, making it suitable for scenarios where the sensor experiences short-term random anomalies; when... When the value approaches 0, the correction value depends more on the fusion estimation of related sensors, which is suitable for scenarios where sensors may have persistent offsets or probe contamination. The preset trust threshold is used to define the boundary between "trustworthy" and "low trustworthy". When the trust weight is lower than this threshold, a self-correction mechanism is triggered.

[0052] Among them, the fusion value of the same type The calculation formula is: , This represents the set of sensors that are in the same group or related to the m-th sensor, that is, the set of other sensor categories that have a cooperative relationship with this sensor in terms of physical meaning, environmental change logic, or control decision-making; and Sets The confidence weights and original observations of the q-th type sensor at time t.

[0053] S9 calculates the global control confidence level based on the confidence weight of each sensor and its importance to control safety. When the global control confidence level is lower than the confidence threshold, the automatic control command is isolated, and only data records and alarms are retained.

[0054] The formula for calculating the global control confidence in step S9 is as follows: ,in To control the confidence level globally. Let M represent the importance of the m-th type of sensor to control safety, and M be the total number of sensor types. when At this time, the system prohibits the automatic control actions of the inlet pump, outlet pump, feeder, sprayer, and aerator. This is the confidence threshold.

[0055] Step S9 first calculates the global control confidence at the current time t. The calculation formula is as follows: , The global control confidence level reflects the reliability of the overall data of the entire multi-source sensor system at the current moment, and its value ranges from 0 to 1. The m-th type of sensor is considered to be of great importance to control safety. This coefficient is pre-set based on the criticality of the sensor in the rice-fish co-culture system. Let be the confidence weight of the m-th sensor class at time t; M is the total number of sensor classes. First, through... Calculate the "unreliability" of the m-th type of sensor, and then use... Weighted summation yields the total weighted unreliability of the entire system; dividing this by the sum of the importance of all sensors gives the average weighted unreliability; finally, subtracting this average from 1 gives the global control confidence. This is achieved when all sensor data is completely reliable (i.e., all...). When it approaches 1), Approaching 1; when critical sensors produce severely low-reliability data, It will decrease significantly.

[0056] Based on the aforementioned global control confidence level, step S9 further performs a control isolation judgment. The system presets a confidence threshold. ,when When this occurs, it indicates that the overall data quality of the current system can meet the safety requirements of automatic control, and the system outputs the candidate actions given by the original control algorithm. As the final action ;when When this occurs, it indicates that the overall data reliability of the system is insufficient, and there is a risk of misjudgment in control due to abnormal data. At this time, the system isolates automatic control and the final action is... When the global control confidence level is set to 0 and is lower than the confidence threshold, the system prohibits the automatic control actions of the inlet pump, outlet pump, feeder, sprayer, and aerator. At the same time, the system only retains the functions of data recording, abnormal alarm, or waiting for manual confirmation to ensure that the equipment is not blindly triggered.

[0057] Example 1: Water level sensor calibration data Table 1 shows the calibration points of the water level sensor used during project commissioning, reflecting the original ADC reading ranges corresponding to different water level percentages. This set of data is used to establish the mapping relationship between the original water level value and the water level percentage.

[0058] Table 1. Calibration points of water level sensors used during project commissioning

[0059] As shown in the table above, an initial ADC value of approximately 206-210 corresponds to a water level of approximately 40%, and an initial ADC value of approximately 619-624 corresponds to a water level of approximately 100%. If the system rapidly jumps from around 40% to the 100% calibration range without a synchronous change in other environmental indicators, the reading, although within the physical measurement range, should still be considered low-reliability data.

[0060] Example 2: Multi-source environmental input data Table 2 presents a set of multi-source environmental input data used for algorithm reproduction. This set of data uses the sensor fields and calibration ranges actually involved in the project, with water level readings taken from the aforementioned water level calibration points to simulate instantaneous jumps caused by water surface fluctuations or sensor contact anomalies.

[0061] Table 2. A set of multi-source environment input data used for algorithm reproduction

[0062] The above data illustrates how the algorithm identifies low-confidence water level data when "water level readings suddenly change while other indicators remain relatively stable." This embodiment does not rely on a fixed threshold, but rather on a comprehensive relationship between time deviation, multi-source consistency, and physical boundary risks.

[0063] Example 3: Calculation Results of Intermediate Indicators and Confidential Weights Let a = 0.45, b = 0.35, c = 0.20, and the confidence threshold be 0.60. The calculation results are shown in Table 3: Table 3 Calculation Results of Intermediate Indicators and Credibility Weights

[0064] As shown in the table, although the water level data did not exceed the physical range, its reliability weight was significantly reduced due to large time and consistency deviations. The system will not directly execute drainage actions based on 100% water level, but will instead enter a safety isolation or manual confirmation process.

[0065] Example 4: Self-calibration and control isolation results Table 4 Self-calibration results and control recommendations:

[0066] Further calculations yielded a global control confidence level of 0.71. If the system sets the control confidence threshold to 0.75, the current control action will enter a safe isolation state, the system will record the anomaly and prompt for manual confirmation, instead of immediately executing drainage.

[0067] Compared with the prior art, the embodiments of this application have the following beneficial effects: First, by comprehensively considering time deviation, consistency deviation, and boundary risks, this method can identify low-reliability data that, while not exceeding the physical range, exhibits unreasonable changes. This avoids misclassifying such data as real-world environmental conditions using fixed threshold methods, thus preventing miscontrol. This design effectively solves the problem of missed detection caused by traditional methods relying solely on a single threshold, significantly improving the coverage of anomaly detection in rice-fish co-culture scenarios.

[0068] Secondly, robust time deviations are calculated using the median and interquartile range. The anti-interference properties of statistics are leveraged to reduce the contamination of the sliding window by single-point anomalies, thus ensuring that the representation of historical steady states is unaffected by extreme values. This approach enables the system to accurately assess the degree of deviation in the time dimension even under complex disturbances such as water surface fluctuations and sensor jitter, providing a reliable benchmark for trustworthy fusion.

[0069] Third, by identifying discrepancies in changes between sensors through cross-sensor consistency deviations, and utilizing the synchronous change relationships of related sensor sets, the authenticity of sudden data is determined, thereby improving the accuracy of anomaly detection. This mechanism enables the system to distinguish between real-world environmental changes and isolated sensor anomalies, avoiding blindly triggering control actions due to single sensor jumps.

[0070] Fourth, by replacing binary anomaly labels with continuous trustworthy weights, the trustworthiness metric is quantified into a smooth value between 0 and 1, enabling the system to dynamically adjust the influence ratio of each sensor in the fusion result according to the trustworthiness level. This design avoids data loss or weight abrupt changes caused by traditional "normal / abnormal" binary judgments, achieving a smooth transition from completely trustworthy to completely untrustworthy.

[0071] Fifth, by generating correction values ​​based on historical stable values ​​and fused values ​​from relevant sensors using a self-calibration formula, low-reliability data can still provide reasonable alternative estimates when used in display and decision-making, thus ensuring continuous system operation. This method effectively overcomes the control gaps or display deficiencies caused by directly deleting outliers, ensuring the continuous monitoring capability of the rice-fish co-culture system under abnormal operating conditions.

[0072] Sixth, through a global control confidence and control isolation mechanism, the automatic execution of control commands for critical equipment such as water pumps, drainage pumps, and feeders is prohibited when the overall data confidence of the system is insufficient, thereby preventing abnormal data from directly triggering dangerous actions. This design builds a safety barrier between data processing and control decision-making, significantly improving the operational safety and reliability of the rice-fish symbiotic smart agriculture system.

[0073] The following presents a possible implementation of a multi-source sensor reliable fusion and anomaly self-correction system for rice-fish co-culture scenarios. This system executes the various steps and corresponding technical effects of the multi-source sensor reliable fusion and anomaly self-correction method shown in the above embodiments and possible implementations, including: The observation vector construction module is used to construct observation vectors from multiple sources of sensors. The observation vectors contain real-time observations from at least two types of sensors in the rice-fish co-culture scenario, including water level, water temperature, air temperature and humidity, pH, salinity, conductivity, nitrogen, phosphorus, and potassium. Each type of sensor contains one or more sensor nodes of the same type. The normalization module is used to normalize each original observation value in the observation vector according to the preset lower and upper safety limits of each type of sensor, so as to obtain the normalized value. The time deviation calculation module is used to calculate the robust time deviation of each type of sensor based on the normalized value within the sliding time window. The consistency deviation calculation module is used to calculate the cross-sensor consistency deviation based on the relevant sensor set corresponding to each type of sensor. The boundary risk calculation module is used to calculate the physical boundary risk of the raw observations of each type of sensor. The credible weight generation module is used to integrate robust time bias, cross-sensor consistency bias and physical boundary risk to generate credible weights for the current observations of each type of sensor. The anomaly type discrimination module is used to determine the anomaly type of each sensor based on the comparison relationship between robust time deviation, cross-sensor consistency deviation and physical boundary risk and their corresponding thresholds. The self-calibration module is used to generate a calibrated observation value based on the historical stable value of the sensor and the similar fusion value of related sensors when the confidence weight of any sensor is lower than the confidence threshold. The control isolation module is used to calculate the global control confidence level based on the confidence weight of each sensor and its importance to control safety. When the global control confidence level is lower than the confidence threshold, the automatic control command is isolated, and only data records and alarms are retained.

[0074] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for reliable fusion and anomaly self-correction of multi-source sensors in rice-fish co-culture scenarios, characterized in that, include: S1, construct a multi-source sensor observation vector. The observation vector contains real-time observations from at least two types of sensors in the rice-fish co-culture scenario, including water level, water temperature, air temperature and humidity, pH, salinity, conductivity, nitrogen, phosphorus, and potassium. Each type of sensor contains one or more sensor nodes of the same type. S2, based on the preset lower and upper safety limits of each type of sensor, normalize each original observation value in the observation vector to obtain the normalized value; S3, calculate the robust time bias for each type of sensor based on the normalized value within the sliding time window; S4, calculate the cross-sensor consistency deviation based on the relevant sensor set corresponding to each type of sensor; S5, calculate the physical boundary risk of the raw observations for each type of sensor; S6, which integrates robust time bias, cross-sensor consistency bias and physical boundary risk, generates a reliable weight for the current observation of each type of sensor. S7. Based on the comparison relationship between robust time deviation, cross-sensor consistency deviation and physical boundary risk and their corresponding thresholds, the anomaly type of each type of sensor is determined. S8, When the confidence weight of any sensor is lower than the confidence threshold, a corrected observation value is generated based on the historical stable value of the sensor and the similar fusion value of related sensors; S9 calculates the global control confidence level based on the confidence weight of each sensor and its importance to control safety. When the global control confidence level is lower than the confidence threshold, the automatic control command is isolated, and only data records and alarms are retained.

2. The multi-source sensor reliable fusion and anomaly self-correction method as described in claim 1, characterized in that, The normalization formula in step S2 is: ,in This represents the normalized value of the m-th type of sensor at time t. This represents the raw observation value of the m-th type of sensor at time t. This represents the lower safety limit of the m-th type of sensor. This represents the safety upper limit for the m-th type of sensor.

3. The multi-source sensor reliable fusion and anomaly self-correction method as described in claim 1, characterized in that, The calculation of robust time bias in step S3 includes: Set a sliding time window and calculate the median of the normalized values ​​within that window. and interquartile range The interquartile range is the difference between the 75th percentile and the 25th percentile within the window, plus a smoothing term. ; Calculate robust time bias based on median and interquartile range .

4. The multi-source sensor reliable fusion and anomaly self-correction method as described in claim 1, characterized in that, The formula for calculating the cross-sensor consistency deviation in step S4 is as follows: ,in, This represents the set of other sensors associated with the m-th type of sensor. This represents the consistency weight of the j-th type of sensor relative to the m-th type of sensor. This represents the empirical correlation coefficient between the changing trends of the m-th type of sensor and the j-th type of sensor. and These are the normalized values ​​of the corresponding sensors at the previous time step.

5. The multi-source sensor reliable fusion and anomaly self-correction method as described in claim 1, characterized in that, The formula for calculating physical boundary risk in step S5 is as follows: ,in This represents the physical boundary risk of the m-th type of sensor at time t, when the original observation is within the safe range. It is 0.

6. The multi-source sensor reliable fusion and anomaly self-correction method as described in claim 1, characterized in that, The formula for calculating the confidence weight in step S6 is: ,in This represents the confidence weight of the m-th type of sensor at time t, where a, b, and c are the weight coefficients for robust time bias, cross-sensor consistency bias, and physical boundary risk, respectively, and 0 < t. ≤1.

7. The multi-source sensor reliable fusion and anomaly self-correction method as described in claim 1, characterized in that, The exception types in step S7 include: when and and When the noise level is reached, it is identified as transient jump noise; when and At that time, it is judged as a suspected sensor malfunction or communication anomaly; when At that time, it was determined to be a physical boundary risk; If none of the above conditions are met, it is determined that no abnormality has been found. in, , , These are preset thresholds for robust time bias, cross-sensor consistency bias, and physical boundary risk, respectively.

8. The multi-source sensor reliable fusion and anomaly self-correction method as described in claim 1, characterized in that, The formula for calculating the corrected observations in step S8 is as follows: in, These are the corrected observations. This is the historical stable value of the sensor. This is a fusion value of similar values ​​from related sensors. As a weighting factor, The confidence threshold; The formula for calculating the fusion value of the same type is: in This represents the set of sensors that belong to or are related to the m-th type of sensor. and These represent the confidence weights and original observations of the q-th type of sensor within the set.

9. The multi-source sensor reliable fusion and anomaly self-correction method as described in claim 1, characterized in that, The formula for calculating the global control confidence in step S9 is as follows: in To control the confidence level globally. Let M represent the importance of the m-th type of sensor to control safety, and M be the total number of sensor types. when At this time, the system prohibits the automatic control actions of the inlet pump, outlet pump, feeder, sprayer, and aerator. This is the confidence threshold.

10. A multi-source sensor reliable fusion and anomaly self-correction system for rice-fish co-culture scenarios, characterized in that, include: The observation vector construction module is used to construct observation vectors from multiple sources of sensors. The observation vectors contain real-time observations from at least two types of sensors in the rice-fish co-culture scenario, including water level, water temperature, air temperature and humidity, pH, salinity, conductivity, nitrogen, phosphorus, and potassium. Each type of sensor contains one or more sensor nodes of the same type. The normalization module is used to normalize each original observation value in the observation vector according to the preset lower and upper safety limits of each type of sensor, so as to obtain the normalized value. The time deviation calculation module is used to calculate the robust time deviation of each type of sensor based on the normalized value within the sliding time window. The consistency deviation calculation module is used to calculate the cross-sensor consistency deviation based on the relevant sensor set corresponding to each type of sensor. The boundary risk calculation module is used to calculate the physical boundary risk of the raw observations of each type of sensor. The credible weight generation module is used to integrate robust time bias, cross-sensor consistency bias and physical boundary risk to generate credible weights for the current observations of each type of sensor. The anomaly type discrimination module is used to determine the anomaly type of each sensor based on the comparison relationship between robust time deviation, cross-sensor consistency deviation and physical boundary risk and their corresponding thresholds. The self-calibration module is used to generate a calibrated observation value based on the historical stable value of the sensor and the similar fusion value of related sensors when the confidence weight of any sensor is lower than the confidence threshold. The control isolation module is used to calculate the global control confidence level based on the confidence weight of each sensor and its importance to control safety. When the global control confidence level is lower than the confidence threshold, the automatic control command is isolated, and only data records and alarms are retained.