Iot abnormal data processing method based on edge computing
By performing clock skew compensation and data quality analysis at edge nodes, and establishing communication sharing relationship diagrams and device physical association diagrams, the problem of inconsistent time bases for multi-source sensor data in the Industrial Internet of Things is solved, achieving low-latency response and accurate abnormal data processing.
Patent Information
- Application Number
- CN202611379081.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-07
- Publication Date
- 2026-11-27
AI Technical Summary
In the Industrial Internet of Things (IIoT), inconsistent time references of multi-source sensor data, communication quality issues, and equipment anomalies are intertwined. The large latency of cloud processing and the possibility that automatic value supplementation may cover up real evidence of anomalies make it difficult to effectively distinguish between communication disturbances, sensor inaccuracies, and real equipment anomalies.
Clock skew and drift compensation are performed on edge nodes, communication sharing relationship diagrams and device physical association diagrams are established, and abnormal segments are diverted and double anti-fact conformal prediction intervals are generated through timing prediction and double consistency cause discrimination. Repair values are only written when there is sufficient evidence of consistency.
It achieves low-latency anomaly response, data availability, and protection of real device anomaly evidence, reduces the risk of false alarms and omission of key anomalies, and improves the accuracy of anomaly data processing.
Smart Images

Figure CN123185047A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of edge data processing in the Industrial Internet of Things (IIoT), and more particularly to an IoT anomaly data processing method based on edge computing. Background Technology
[0002] Industrial Internet of Things (IIoT) typically uses sensors such as vibration, temperature, current, and pressure to continuously sense the operating status of equipment and aggregate the collected data to a platform for monitoring and analysis. Different sensors have different sampling frequencies, clock references, and communication paths. Factors such as equipment clock drift, network arrival jitter, message loss, transient noise, sensor saturation, or inaccuracy can all affect the timing and location of the data and the reliability of the measurement, making it difficult to directly align and correlate multi-source data.
[0003] Existing centralized cloud processing methods require the continuous transmission of large amounts of raw data, resulting in long response chains. When identifying anomalies using fixed thresholds or single residuals, it is difficult to distinguish between communication disturbances, sensor misalignments, and actual device anomalies by leveraging communication resource sharing relationships and physical propagation relationships between devices. Directly interpolating or predicting anomalous data may also overwrite evidence of actual device anomalies, while isolating all anomalies would reduce the continuity of usable data.
[0004] Therefore, there is a need for an IoT abnormal data processing method that can address the shortcomings of the existing technologies mentioned above. Summary of the Invention
[0005] One objective of this invention is to propose an IoT anomaly data processing method based on edge computing. Addressing the problems in existing technologies such as inconsistent time bases of multi-source sensor data, the mixing of communication quality issues and device anomalies, significant cloud processing latency, and the potential for automatic value replacement to overwrite genuine anomaly evidence, this invention proposes a technical solution that sequentially executes logical time alignment, data quality analysis, construction of communication sharing relationship graphs and device physical association graphs, time-series prediction and dual consistency cause discrimination, anomaly fragment diversion, and dual anti-fact conformal prediction interval permission on adjacent edge nodes of the device. Repair values are written only when the interval consistency evidence formed by adjacent prediction and self-historical prediction, the cause confidence level, and the physical constraints simultaneously meet the permission conditions; otherwise, the original anomaly data is retained or isolated. This achieves a technical effect that balances low-latency anomaly response, data availability, and protection of genuine device anomaly evidence.
[0006] This invention provides a method for processing abnormal IoT data based on edge computing, including:
[0007] S1. Receive asynchronous data streams from multiple sensors at an edge node adjacent to industrial equipment, perform clock offset and drift compensation on the asynchronous data streams, and map them to a unified logical time axis to obtain the time support interval of the sample.
[0008] S2. Generate a data quality vector based on the time support interval, establish a communication sharing relationship graph and a device physical association graph, and determine the validity of graph edges according to the degree of overlap of the time support intervals and the data quality vector;
[0009] S3. Perform time-series prediction based on historical data of the target sensor and effective physical adjacent sensor data to obtain prediction residuals. Determine initial outliers based on the prediction residuals and the data quality vector. Obtain communication co-occurrence consistency and physical propagation consistency based on the time-series relationship of the initial outliers connected by the effective graph edges in the two types of graphs.
[0010] S4. Based on the prediction residual, data quality vector, communication co-occurrence consistency and physical propagation consistency, determine the cause status and confidence level of the initial anomaly point to form anomaly fragments;
[0011] S5. Divide the abnormal segments according to the cause state: retain the original data for real equipment abnormalities, isolate the abnormal segments whose state cannot be determined, and generate two counterfactual prediction intervals based on the data of physically adjacent sensors and the uncontaminated historical data of the target sensor for communication disturbances or sensor inaccuracies. Determine the repair permission result according to the interval consistency, confidence level and physical constraints of the equipment, and write the repair value or keep the isolation according to the repair permission result.
[0012] Optionally, S1 includes: retaining sensor identifier, source timestamp, edge reception timestamp, message sequence number, verification status, retransmission status, communication link identifier, and device status for each sample;
[0013] An observation sequence is formed based on the sensor identifier, consisting of a source timestamp and an edge receiving timestamp. The clock offset is estimated using the observation sequence, and the drift is estimated using the change in clock offset within adjacent observation intervals.
[0014] Based on the estimated clock offset and drift correction sample positions on the unified logic time axis, the time support interval is determined according to the sampling period, network arrival jitter and offset estimation error, and the time positioning error boundary determined by the sampling period, network arrival jitter and offset estimation error is used as the alignment uncertainty, and the original measurement value is retained and not covered by the time mapping process.
[0015] Optionally, S2 includes: the data quality vector is composed of message continuity component, arrival jitter component, time interval stability component, instantaneous noise component, saturation or constant value component, calibration state component and cross-variable physical constraint compliance component;
[0016] Each component is determined based on the message sequence number gap within the sliding window, the deviation of the edge reception time interval from the source time interval, the dispersion of adjacent sampling intervals, the deviation of the local difference of the measured value from the historical difference distribution, the duration of the measured value being located at the sensor range boundary or remaining unchanged, the validity period of the calibration record, and the residual of the cross-variable physical constraint corresponding to the operating condition.
[0017] Each component is subjected to anomaly direction transformation and normalization, so that an increase in the value of each component indicates an increase in the deviation of the corresponding data quality index from the normal operating condition distribution, and each component is normalized to a preset common value range.
[0018] Furthermore, the communication sharing graph uses sensors as nodes and establishes communication graph edges between shared gateways, communication links, or sensor nodes that are sources of message anomalies.
[0019] The physical association diagram of the equipment uses sensors as nodes and establishes physical graph edges based on at least one of the following: equipment connection structure, energy transfer relationship, medium transfer relationship, and time delay correlation relationship of historical data under normal operating conditions.
[0020] The overlap ratio of the time support interval of the connected samples and the corresponding component in the data quality vector are input into the graph edge weight update rule. When the updated graph edge weight reaches the validity threshold determined by the graph edge weight distribution of the normal working condition historical window, the corresponding graph edge is marked as a valid graph edge.
[0021] Optionally, S3 includes: inputting the historical data of the target sensor before the current time support interval, the current device operating condition, and the data of the effective adjacent sensors in the overlapping time support interval in the device physical association diagram into the edge time series prediction unit to obtain the target sensor prediction value, and determining the target sensor prediction residual based on the target sensor measurement value and the target sensor prediction value;
[0022] Anomaly scores are generated based on the deviation of the target sensor prediction residual from the normal operating condition residual distribution and the deviation of the data quality vector from the normal operating condition quality distribution. Samples whose anomaly scores reach the initial anomaly threshold determined by the quantile values of the normal operating condition calibration samples are marked as the initial anomaly points.
[0023] The communication co-occurrence consistency is determined based on the time overlap ratio of the initial anomaly points appearing at both ends of the effective graph edges of the communication sharing relationship graph, and the physical propagation consistency is determined based on the order of appearance of the initial anomaly points along the effective physical graph edges of the device physical association graph according to the corresponding time delay.
[0024] Optionally, S4 includes: inputting the target sensor prediction residual, data quality vector, communication co-occurrence consistency and physical propagation consistency into the cause discrimination unit, outputting one of the following cause states: communication disturbance, sensor inaccuracy, real device abnormality and indeterminability, as well as the posterior probability of each candidate cause state, and using the posterior probability corresponding to the output cause state as the confidence level.
[0025] Hysteresis entry threshold and hysteresis exit threshold are determined based on the abnormal scores in the normal operating condition calibration sample. The hysteresis entry threshold is higher than the hysteresis exit threshold. When the abnormal score reaches the hysteresis entry threshold, an abnormal segment is initiated. After the abnormal segment is initiated, consecutive initial abnormal points with abnormal scores not lower than the hysteresis exit threshold are merged. The merging is terminated when the abnormal score is lower than the hysteresis exit threshold.
[0026] The boundaries of the merged segments are corrected based on the changes in the prediction residuals of adjacent points and the changes in the data quality vector, and the abnormal segments are generated by recording the start and end times, affected channels, original data indexes, causal status and confidence level.
[0027] Furthermore, abnormal segments where the communication co-occurrence consistency reaches the communication consistency threshold and the message continuity component or jitter component reaches the corresponding upper boundary of the normal operating condition are identified as communication disturbance candidates.
[0028] Abnormal segments in which communication co-occurrence consistency does not reach the communication consistency threshold, physical propagation consistency does not reach the physical consistency threshold and at least one of the saturated or constant value components and calibration state components reaches the upper boundary of the corresponding normal operating condition are identified as sensor misalignment candidates.
[0029] When the physical propagation consistency reaches the physical consistency threshold, and the difference in the time of occurrence of the intervariable physical constraint residual of the sensor connected by the effective physical graph edge of the device physical association graph is within the time delay tolerance range of the corresponding graph edge and the order of occurrence conforms to the propagation direction represented by the graph edge, the abnormal segment is identified as a real device abnormal candidate.
[0030] Among the candidates whose posterior probability reaches the cause discrimination threshold determined by the target misjudgment upper limit of the cause calibration sample, output the cause state corresponding to the one with the largest posterior probability. When the posterior probabilities of two candidates are tied for the maximum value, output the cause state that appears first in the order of real equipment abnormality, sensor inaccuracy, and communication disturbance. When there are no candidates whose posterior probability reaches the cause discrimination threshold, output the indeterminate state.
[0031] Output alarm control flags for actual abnormal equipment status, and refuse automatic value compensation flags for status that cannot be determined.
[0032] Optionally, S5 includes: after the cause state is communication disturbance or sensor misalignment and before writing the repair value, for each time point to be repaired in the abnormal segment, the first counterfactual repairer shields the data of the target sensor in the abnormal segment, selects adjacent sensors with valid graph edges and time support interval overlap ratio reaching the overlap threshold from the device physical association graph, and inputs the data of the selected adjacent sensors and the current device operating condition into the first counterfactual repairer to generate adjacent prediction candidates for the corresponding time point to be repaired;
[0033] Based on the sensors in the communication sharing relationship diagram that are connected to the target sensor through effective communication graph edges and co-occur with the initial anomaly point in the anomaly segment, the gateway identifier or communication link identifier recorded in the corresponding effective communication graph edge is determined as the anomaly communication resource identifier. The second counterfactual repairer blocks the sensor data that shares the anomaly communication resource identifier with the target sensor and blocks the data in the target sensor that is marked as the initial anomaly point. Only the remaining historical data of the target sensor before and after the anomaly segment is used to generate the self-historical prediction candidate corresponding to the time point to be repaired.
[0034] When there are no adjacent sensors that meet the overlap threshold, or when the remaining historical data does not reach the input sequence length required by the edge time series prediction unit, a corresponding prediction candidate unavailable flag is generated.
[0035] Furthermore, for the calibration sample segment and the current abnormal segment, the upper bound of the values of each component in the data quality vector at each time point is obtained as the quality deviation value at the corresponding time point, and the median value of the quality deviation value at each time point within the segment is used as the segment quality score.
[0036] The quality grading interval and length grading interval are determined based on the fragment quality score quantile and consecutive missing length quantile of the calibration sample fragments, respectively. The quality grade and consecutive missing length grade are used as a joint index, and the historical prediction residuals verified by the real measurement values of the corresponding time points to be repaired are stored in the calibration buffer according to the source of the counterfactual repairer.
[0037] Based on the quality grading range into which the current anomalous segment's segment quality score falls and the length grading range into which the current anomalous segment falls, read the historical prediction residuals of the first and second counterfactual repairers from the corresponding calibration buffer.
[0038] For each time point to be repaired, the absolute value of the historical prediction residual is used as the non-compliance score. The quantile value of the non-compliance score is determined according to the target coverage. The adjacent conformal prediction interval containing the adjacent prediction candidate and the self-historical conformal prediction interval containing the self-historical prediction candidate are generated with the corresponding quantile value as the boundary.
[0039] The allowable width is determined based on the sum of the alignment uncertainty and the sensor accuracy error boundary, and the adjacent conformal prediction interval and the self-history conformal prediction interval are used as the two counterfactual prediction intervals.
[0040] When there is a prediction candidate unavailable flag or the number of historical prediction residuals in the corresponding calibration buffer does not reach the number of samples required to generate the quantile value, a prediction interval unavailable flag is generated for the corresponding time point to be repaired.
[0041] Furthermore, for each time point to be repaired, the intersection of the two counterfactual prediction intervals is calculated, and the arithmetic mean of the lower and upper boundaries of the intersection is used as the robust center value of the corresponding time point to be repaired.
[0042] When there are no predicted candidate unavailable flags and predicted interval unavailable flags, the intersection exists, the intersection width is not greater than the allowed width, the posterior probability corresponding to the communication disturbance or sensor misalignment reaches the cause discrimination threshold, and the robust center value satisfies the cross-variable physical constraints corresponding to the current equipment operating condition, a permissible repair result corresponding to the time point to be repaired is generated, the corresponding missing or erroneous data is replaced with the robust center value, and repair source, intersection boundary and data quality vector labels are attached;
[0043] If any unavailable flag exists or any of the aforementioned permission conditions are not met, a rejection result for the corresponding time point to be repaired is generated, the corresponding data is kept isolated, and the corresponding data is not written to the normal data buffer.
[0044] The beneficial effects of this invention are:
[0045] 1. By estimating the clock offset and drift of each sensor at the edge node and uniformly representing data of different sampling frequencies with time support intervals, it is possible to provide an alignment basis with time range for multi-source correlation, reducing the processing and response latency caused by round trips to the cloud.
[0046] 2. By combining data quality vectors, communication sharing relationship graphs, device physical association graphs, prediction residuals, and communication co-occurrence and physical propagation consistency, abnormal segments can be identified and diverted. This helps to distinguish between communication disturbances, sensor inaccuracies, and real device anomalies, reducing the risk of false alarms and missed critical anomalies caused by fixed threshold judgments.
[0047] 3. By forming a double anti-fact conformal prediction interval through adjacency prediction and self-history prediction, and by using interval intersection, allowable width, causal posterior probability and equipment physical constraints to jointly control repair permission, edge nodes are only written with repair values when there is sufficient consistent evidence, and actively refuse repair when conditions are insufficient, thereby avoiding covering real equipment anomalies or low-confidence anomalies as bad data. Attached Figure Description
[0048] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:
[0049] Figure 1 This is a flowchart of the IoT anomaly data processing method based on edge computing according to the present invention.
[0050] Figure 2 This is a flowchart of the repair decision process based on the intersection permission of the two anti-facts prediction interval in S5 of the present invention. Detailed Implementation
[0051] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0052] refer to Figures 1-2 The edge computing-based IoT anomaly data processing method includes:
[0053] S1. Receive asynchronous data streams from multiple sensors at an edge node adjacent to industrial equipment, perform clock offset and drift compensation on the asynchronous data streams, and map them to a unified logical time axis to obtain the time support interval of the sample.
[0054] S2. Generate a data quality vector based on the time support interval, establish a communication sharing relationship graph and a device physical association graph, and determine the validity of graph edges according to the degree of overlap of the time support intervals and the data quality vector;
[0055] S3. Perform time-series prediction based on historical data of the target sensor and effective physical adjacent sensor data to obtain prediction residuals. Determine initial outliers based on the prediction residuals and the data quality vector. Obtain communication co-occurrence consistency and physical propagation consistency based on the time-series relationship of the initial outliers connected by the effective graph edges in the two types of graphs.
[0056] S4. Based on the prediction residual, data quality vector, communication co-occurrence consistency and physical propagation consistency, determine the cause status and confidence level of the initial anomaly point to form anomaly fragments;
[0057] S5. Divide the abnormal segments according to the cause state: retain the original data for real equipment abnormalities, isolate the abnormal segments whose state cannot be determined, and generate two counterfactual prediction intervals based on the data of physically adjacent sensors and the uncontaminated historical data of the target sensor for communication disturbances or sensor inaccuracies. Determine the repair permission result according to the interval consistency, confidence level and physical constraints of the equipment, and write the repair value or keep the isolation according to the repair permission result.
[0058] In this specific embodiment, S1 includes:
[0059] In this specific embodiment, the edge node is deployed next to an industrial equipment consisting of a drive motor, a centrifugal pump, and a circulation pipeline. It receives asynchronous data streams from sensors for motor vibration, current, bearing temperature, inlet pressure, and outlet pressure. The edge node maintains an independent receiving queue for each sensor and uses the sensor identifier and message sequence number as deduplication keys. Messages that fail verification are only written to the original evidence buffer and do not enter subsequent quality calculations. Retransmitted messages retain the first reception time and retransmission status. Valid messages that have not been duplicated form a sample record to be aligned.
[0060] Each sample record to be aligned includes sensor identifier, source timestamp, edge reception timestamp, message sequence number, verification status, retransmission status, communication link identifier, equipment status, original measurement value, range, and reception batch identifier. The source timestamp and edge reception timestamp are both converted to milliseconds. The equipment status consists of the programmable logic controller's operating mode, speed range, and valve opening. The original measurement value is stored separately in a buffer that only appends the original data. Subsequent time mapping only adds a logical time field without overwriting the original measurement value and the two original timestamps.
[0061] Edge nodes generate an observation sequence of source timestamps and edge reception timestamps from the most recent sixty calibrated and non-retransmitted samples based on sensor identifiers, and use robust linear fitting with absolute bias loss to estimate the clock relationship. , Indicates sensor The The edge reception timestamps for each sample are in milliseconds. This represents the corresponding source timestamp, in milliseconds. It represents a dimensionless quantity relative to a clock reference rate. This represents the clock offset in milliseconds. This represents the discrete index of the sensor in the node table of this dual-image snapshot. The value range is the set of sensor identifiers in this node table. The unit is not applicable because it is only used to identify sensors. This represents the discrete index of the sample sequence number in the corresponding sensor time-aligned cache. The value range is from one to sixty within the current sixty-sample fitting window. The unit is not applicable because it is only used to locate the sample. During fitting, observations with absolute residuals exceeding three times the current residual median value are discarded, and at least twenty observations are retained.
[0062] The clock offset was obtained for two adjacent 30-second observation intervals of the same sensor, and the edge nodes were... Calculate the incremental drift rate. Indicates sensor Relative to the benchmark rate obtained from the most recent robust fit The inter-window incremental drift rate is a dimensionless quantity. Indicates that the current observation interval is in a fixed range. The re-estimated clock offset in milliseconds. This indicates that the previous observation interval was in the same period. The estimated clock offset is given in milliseconds. This represents the difference in time between the center times of two observation intervals, expressed in milliseconds. This represents a dimensionless protection quantity used to prevent division by zero in the time difference, and in this specific embodiment, it is set to one millisecond. The sensor discrete index defined in the section containing the S1 clock relationship formula is used. The range, source, and reason for inapplicability of its values and units are all based on the complete definition of that section. The cumulative increment is only absorbed when a new robust fit is published. and put Zeroing is performed to avoid repeated compensation for clock rate deviation; if there are fewer than twenty observations but a previous valid clock parameter version exists, the reference rate, offset, and drift rate of that version are used, and the clock estimation status is marked as to be calibrated.
[0063] When a newly deployed, replaced, or restarted sensor does not have a previous valid clock parameter version and has fewer than twenty valid observations, the edge node only writes the sample to the original evidence buffer and the calibration queue, generates a time parameter unavailable flag, does not calculate the logical time position, alignment uncertainty, or time support interval, and does not allow the sample to enter the S2 to S5 automatic handling chain; after the same sensor has accumulated no less than twenty valid observations and the verification has been completed, the edge node releases the first clock parameter version, clears the time parameter unavailable flag, and re-enqueues the calibration sample according to the stable identifier composed of sensor identifier, message sequence number, and receiving batch identifier;
[0064] Using the most recent robustly fitted reference source time as the drift compensation benchmark, edge nodes are calculated according to... Calculate the unified logic time position. Indicates the first The logical time position of each sample, in milliseconds. This indicates the reference source time of the current fitting window, in milliseconds. , and Using the complete explanation of the section containing the S1 clock relationship formula, Using the complete explanation of the S1 incremental drift rate formula, This represents the discrete index of the sensor defined in the segment containing the clock relationship formula. This indicates the discrete index of the sample sequence number defined in this section. The range, source, and unit of the values of both are not applicable, and the reasons for this are based on the complete definition in this section. The clock parameters are written into the clock parameter table with the sensor identifier and parameter version as the joint key. The parameter version is incremented when the refit is successful or when the programmable logic controller switches operating conditions.
[0065] Edge nodes read the sensor's nominal sampling period from the device configuration table and calculate the 95th percentile of network arrival jitter from the most recent 60 seconds of valid messages. Simultaneously, they save the 95th percentile of the robust fitting residuals as the offset estimation error. Each record in the device configuration table uses the sensor identifier as the key and records the sampling period, timestamp resolution, maximum allowable drift rate, maximum allowable alignment uncertainty, message sequence number modulus, range, accuracy error bound, configuration version, and effective time. The maximum allowable alignment uncertainty is in milliseconds and is recorded from maintenance records within the most recent 30 days during the deployment and calibration phase. The 99.5 percentile value of the alignment uncertainty of the confirmed normal sample is determined by the sum of a timestamp resolution and is not less than half of the nominal sampling period. The message sequence number modulus is taken as the sequence number cycle length specified by the sensor communication protocol. This table is established by the sensor calibration record and communication protocol configuration at the time of deployment and is updated when the sensor is replaced, the communication protocol is changed, or the sampling configuration is changed. If any required field is missing, expired, or incompatible with the current configuration version, the edge node marks the corresponding sample time status as unreliable, writes the configuration unavailable flag, and prohibits the sample from entering the automatic repair chain.
[0066] Edge nodes establish unified pre-emptive safety status records for time parameter unavailability, configuration unavailability, quality benchmark unavailability, and target prediction unavailability. Each record includes at least the sample stability identifier, sensor identifier, flag type, cause code, source step, source configuration or model version, logical order of first occurrence, current isolation status, and clearing conditions. For locations where logical time cannot yet be generated, the edge reception timestamp and reception batch identifier are used to maintain the order. When a time parameter unavailability or configuration unavailability flag is generated, S1 immediately writes the record and associates it with the original evidence index. At the same time, the record is synchronized to the S3 abnormal evidence cache through the read-only safety event channel without triggering S2 or S3 model calculation. Subsequent steps can only append the status and version fields and must not delete or overwrite the pre-emptive cause.
[0067] edge nodes by Determine the alignment uncertainty. Indicates the first The time positioning error bound for each sample is given, and the unit is milliseconds. This indicates the nominal sampling period, expressed in milliseconds. This represents the 95th percentile value of network jitter, expressed in milliseconds. This represents the offset estimation error, expressed in milliseconds. This represents the upper bound of the relative clock rate estimation error and is a dimensionless quantity. and , Using the complete explanation of the section containing the S1 clock relationship formula, The complete explanation of the section containing the S1 unified logic time position formula is adopted, in which... , The range, source, and unit of values are not applicable, and the reasons for such inapplicability are determined by the cited paragraph; when the calculation result exceeds the maximum permissible alignment uncertainty in the configuration table, the time state of the sample is marked as unreliable.
[0068] For each reliable sample at a given time state, the edge node generation time support interval , Indicates sensor The Each sample is located within a closed interval on a unified logical time axis, with endpoints in milliseconds. Using the complete definition of the segment containing the S1 unified logic time position formula, Following the complete explanation of the section containing the S1 alignment uncertainty formula, and The complete interpretation of the S1 clock relationship formula section is used, and its value range, source, and unit inapplicability are all determined by this section; samples with unreliable time states are still retained in this interval but carry an unreliability flag so that the subsequent data quality vector can improve the corresponding deviation component instead of deleting the original evidence;
[0069] Before forming an observation sequence, edge nodes establish a candidate timestamp pairing set. Candidates must have the same sensor identifier and message sequence number, the source timestamp must be incremented and the edge receiving timestamp must not be earlier than the previous valid receiving timestamp, and the pairing time difference must not exceed the maximum network waiting threshold in the device configuration table. In this specific implementation, the threshold is taken as five times the nominal sampling period. Candidates that meet the conditions are selected in the order of verification passed, no retransmission, and earlier receiving time. When there are no complete ties, they are selected in the lexicographical order of the receiving batch identifier. Unselected candidates are retained in the original evidence buffer and the rejection reason is recorded.
[0070] After each clock parameter update, the edge node performs holdout verification using the ten most recently selected pairs. A new parameter version is released only when the logical time position remains strictly increasing, the 95th percentile of the received time residual does not exceed the maximum network wait threshold, and the absolute value of the estimated drift rate does not exceed the maximum drift rate allowed by the device configuration table. If the verification fails, the previous valid parameter version is restored and the current sample time state is marked as pending calibration. The release threshold, restored version, and verification statistics are written into the clock parameter audit log.
[0071] Edge nodes write sample records, logical time positions, time support intervals, alignment uncertainties, clock parameter versions, and time states into the time alignment cache, which is stably sorted by logical time position. Within the same logical time position, the order is determined by the edge receiving timestamp and message sequence number. The sorted time alignment cache serves as the sole input for S2 to generate the data quality vector and the two types of relationship graphs. The original data buffer is only used for tracing and associating repair records after S5 permission.
[0072] In this specific embodiment, S2 includes:
[0073] In this specific implementation, the edge node takes the time-aligned cache written by S1 as input, maintains a 60-second sliding quality window according to the sensor identifier, and updates the window every 10 seconds. The window record includes the sample index, time support interval, message sequence number difference, source time interval, edge reception time interval, local measurement difference, range boundary hit duration, calibration validity period, equipment condition and cross-variable physical constraint residual. For samples that lack equipment condition or range fields, the corresponding quality component is set to the maximum deviation value and the reason for the missing value is retained.
[0074] For each sample, the edge node forms a seven-dimensional data quality vector, which sequentially records the message continuity component, arrival jitter component, time interval stability component, instantaneous noise component, saturation or constant value component, calibration state component, and cross-variable physical constraint compliance component. The message continuity component is calculated by dividing the number of missing sequence numbers in the window by the expected number of messages. The arrival jitter component is calculated by the absolute value of the difference between the edge receiving interval and the source time interval. The time interval stability component is calculated by the median absolute deviation of the adjacent source time intervals. The above original indicators are dimensionless quantities, milliseconds, and milliseconds, respectively.
[0075] The raw index of the instantaneous noise component is the absolute deviation of the current local first-order difference relative to the median value of the normal historical difference under the same operating conditions. The unit is consistent with the corresponding sensor measurement value. The raw index of the saturation or constant value component is the maximum value between the continuous hit duration of the range boundary and the continuous duration of the constant value, and the unit is seconds. The calibration status component is the number of days that the current time exceeds the calibration expiration time, and the records that have not expired are recorded as zero. The cross-variable physical constraint compliance component is the absolute residual of the constraint function under the current operating conditions. The unit is specified by each constraint record. The constraint record also saves the normalized benchmark to avoid direct addition of different physical quantities.
[0076] For the Each original quality indicator, edge nodes are categorized as follows: Perform abnormal direction transformation and normalization. Indicates sensor The The first sample A mass deviation component that is dimensionless. This indicates the corresponding original quality index. and These represent the 50th and 99th percentile values of normal historical indicators under the same sensor and operating conditions, respectively, and are in the same unit as the original indicators. This represents the dimensionless protection quantity and takes the minimum resolution of non-zero normal historical indicators. This means input Truncation to closed interval The function's own unit is not applicable because it only performs upper and lower bound selection; the output unit is the same as... Consistent; truncation of lower bound Furthermore, it is a dimensionless quantity, with its upper bound truncated. And it is a dimensionless quantity; express The lower bound of the function is zero and is dimensionless. express The upper bound of the function is taken as one and is a dimensionless quantity. This represents the discrete index of the seven quality components in the quality benchmark table, with values ranging from one to seven. Units are not applicable, as it only locates the quality field. This represents the discrete index of the sensor defined in the segment containing the S1 clock relationship formula. This represents the discrete index of samples in the time-aligned cache. The reasons why the source, value range, and units of these two are not applicable are explained in the full definition in this section. The larger the normalization result, the greater the deviation from the normal operating condition.
[0077] Normal quality baselines are stored in the quality baseline table according to sensor identifier, equipment condition, mass component index, measurement unit, and range version. Each record includes two quantile values, protection quantity, original unit, normal window start and end time, number of samples, version, and update time. The quality baseline table is established from historical windows confirmed to be without abnormalities in the last thirty days of equipment maintenance records. It is updated offline incrementally daily, and at least one thousand valid samples are retained for each operating condition. Edge nodes first search for records where the sensor identifier, equipment condition, mass component index, measurement unit, and range version are all completely matched and the number of valid samples is not less than one thousand. If the corresponding operating condition record is unavailable, it only performs simultaneous transmission with the same measurement unit and range version. The sensor searches for adjacent speed ranges in ascending order of absolute speed difference. When the speed differences are the same, it selects the first range in ascending order of speed value and writes the reference substitution flag and the actual range into the data quality vector record. When there are no compatible and sufficiently sampled records for the same working condition and adjacent ranges, the edge node writes the quality reference unavailable flag, skips the normalization formula that depends on the reference, and conservatively sets the corresponding quality component to one. It also sets the validity flags of the relevant communication graph edge and physical graph edge to zero and adds the quality reference version, quality reference unavailable reason code and isolation status to the pre-safety state record defined in S1. The cause status is changed to uncertain, the segment is kept isolated and automatic repair is prohibited.
[0078] Edge nodes establish a communication sharing graph with sensors as nodes. Node fields include sensor identifier, gateway identifier, communication link identifier, message subject, and most recent online time. Communication graph edges are established between nodes sharing gateways, sharing communication links, or nodes with the same message anomaly source identifier. Communication graph edges record the identifiers of the two ends nodes, shared resource type, shared resource identifier, creation version, and validity status. Communication resource configuration is imported from the read-only routing table of the edge gateway and rebuilt when the routing version changes.
[0079] Edge nodes establish a physical association graph of the equipment using sensors as nodes. Directed or undirected physical graph edges are established based on the equipment connection structure, energy transfer relationship, medium transfer direction, and time delay correlation of historical data under normal operating conditions. The physical graph edges record the node identifiers at both ends, association type, propagation direction, nominal time delay, time delay tolerance, correlation strength, operating condition range, and topology version. In this specific embodiment, the relationship between motor current and vibration is a directed energy relationship, the relationship between inlet pressure and outlet pressure is a directed medium relationship, and the relationship between bearing temperature and vibration is a relationship between equipment structure. The topology record is jointly calibrated by the equipment pipeline instrumentation diagram, programmable logic controller point table, and normal operating data.
[0080] For the initially undirected device structure associated edges, the edge nodes test the two propagation directions during the historical time delay calibration stage under normal operating conditions. The direction with the largest time delay hit rate in the reserved window and reaching the minimum hit rate in the physical graph edge parameter table is fixed with the propagation direction, nominal time delay, and time delay tolerance. If the hit rates are the same, the first end is determined according to the lexicographical order of the sensor identifiers at both ends from smallest to largest. If neither direction reaches the minimum hit rate, the undirected adjacency attribute of the edge is retained, so that it is only used as the S3 adjacency prediction feature and does not participate in the numerator, denominator, graph edge weighted average, or S4 real device anomaly candidate gating of physical propagation consistency. The reasons for the non-fixable propagation direction and the calibration version are written in the dual graph snapshot.
[0081] For the samples that are closest at the two ends of a graph edge in the current logical time, the edge nodes are ranked according to... The computation time supports the interval overlap ratio. Represents a node With nodes The interval overlap ratio and its value ranges from zero to one. and Represents a node The time interval supports a lower and upper boundary, and the unit is milliseconds. and Represents a node The corresponding boundary and the unit is milliseconds. This represents a dimensionless protection quantity for one millisecond. and This represents the discrete indices of the first and last sensors in the current graph edge record of the dual-graph snapshot. The value range is the identifiers at both ends of the graph edge. Units are not applicable because it only locates graph nodes. This represents the discrete index of the nearest sample in the time-aligned cache at both ends, based on the logical time. The source is the current logical window, and the unit is not applicable because it only locates the sample. and These represent the minimum and maximum value functions for inputs of the same dimension, respectively. The units of the functions themselves are not applicable, and the output units are consistent with the input units.
[0082] edge nodes by Update graph edge weights. This indicates the effective weight of the edge in the current graph, which is a dimensionless quantity. This represents the set of mass component indices associated with the graph edge in the graph edge parameter table, and is a subset of one to seven. The unit of the set itself is not applicable, as it only restricts the summation members. This represents the non-negative dimensionless weights of each mass component, and their sum is one. , , and The complete explanation of the segment containing the S2 time support interval overlap ratio formula is retained. , and The complete explanation of the section containing the S2 quality deviation component formula is adopted, in which the source, value range and unit inapplicability of each discrete index are determined by the cited section; the communication graph edges adopt the message continuity, arrival jitter and time interval stability components, and the physical graph edges adopt the instantaneous noise, saturation or constant value, calibration status and cross-variable physical constraint compliance components. The graph edge weights decrease monotonically as the quality deviation increases.
[0083] The graph edge parameter table uses the association type and equipment condition as the joint key to store the quality component index set, non-negative weight, validity threshold, overlap threshold, normal weight distribution, number of calibration samples, and version. The validity threshold is taken as the lower 5th percentile of the graph edge weight in the normal historical window under the same condition. The overlap threshold is set to 0.6 in this specific implementation. When the graph edge weight reaches the validity threshold and the overlap ratio reaches the overlap threshold, it is marked as a valid graph edge. If no parameter record is found, the time status at either end is unreliable, or the result in the weight brackets is less than zero, it is marked as invalid and the reason is recorded.
[0084] For each target sensor, the edge node forms a candidate graph edge set by configuring communication resources or the graph edges directly associated with it in the physical topology. It then filters the edges according to predicates such as topology version matching, time support interval overlap ratio reaching the overlap threshold, and graph edge weight reaching the validity threshold. The retained items are sorted in descending order by graph edge weight. If the weights are the same, they are sorted in ascending order by the sensor identifier at the other end. The node outputs a valid graph edge set and an invalid graph edge set with rejection reasons. If the candidate set is empty, the node outputs a no-adjacent graph edge flag and does not construct virtual graph edges.
[0085] Edge nodes write the seven-dimensional data quality vector and its baseline version into the quality vector cache, and write the node table, graph edge table, current weight, validity flag, shared communication resource identifier, propagation direction and time delay tolerance of the two types of graphs into the dual graph snapshot. The dual graph snapshot is identified by logical time window and topology version, and serves as the input for S3 to select effective physical adjacent sensors, calculate communication co-occurrence consistency and physical propagation consistency.
[0086] Edge nodes also set up a messageless supervisor for each target sensor; when the trusted logical clock exceeds the sum of a certain expected sampling time in the versioned sampling schedule and the maximum allowable arrival delay in the device configuration table, and there is still no message uniquely mapped to that expected point in the time alignment cache, a messageless evidence item is immediately generated for that expected point, without waiting for subsequent messages to discover the gap; the evidence item records the target sensor identifier, expected sampling point sequence number, expected logical time, previous reliable original message index, missing placeholder identifier, sampling schedule version, time parameter version, current dual-graph snapshot index, and task stability. The message continuity component is set to 1, and the remaining unobservable quality components are set to 1 and an unobservable mask is added. Continuously overdue expectation points are merged into an active no-message evidence segment according to the sampling date procedure number. The starting boundary is fixed as the first overdue expectation point, and the ending boundary advances with each new overdue expectation point. After the first recovery message arrives and its sequence number is uniquely aligned with the expectation grid, it is fixed as the last overdue expectation point before the recovery message. The active evidence segment and each no-message evidence item are written to the abnormal evidence cache in real time. When not recovered, the active state is retained and the boundary objects that have been formed are not discarded.
[0087] In this specific embodiment, S3 includes:
[0088] In this specific implementation, the edge node selects the effective physical neighbor node of the target sensor from the dual-map snapshot of S2, and reads up to sixty historical samples that were not marked as initial anomalies before the current time support interval of the target sensor, the current device condition, and samples of effective neighbor nodes within the overlapping time support interval from the time alignment cache. These samples are then interpolated to the sampling grid of the target sensor according to their logical time positions. The interpolation is only used to predict the input copy and does not change the original data buffer. When there are thirty to fifty-nine effective historical samples of the target, the edge node fills the left side of the sixty-row tensor with normalized zero values and sets the corresponding target missing mask to one. The real historical samples are right-aligned in ascending time order. The same random left-side padding and masking rules are used during the model training phase. When there are fewer than thirty effective historical samples of the target, a target prediction unavailable flag is written. The prediction model is not called, and pseudo residuals or anomaly scores are not calculated. The current sample is transferred to an uncertain and isolated path until at least thirty compatible versions of non-anomaly historical samples are obtained consecutively before re-entering real-time discrimination.
[0089] Before invoking the prediction model, the edge node retrieves the pre-safety state record defined by S1 using the sample stability identifier. If any of the flags indicating unavailable time parameters, unavailable configuration, or unavailable quality benchmarks are still valid, the prediction model is not invoked, and the record, along with the original evidence index, is directly written to the anomalous evidence cache. When a target prediction unavailable flag is generated, the edge node appends the model version, the number of existing compatible historical samples, the reason code, and the clearing conditions to the same pre-safety state record. Even if there are no predicted values, pseudo residuals, anomalous scores, or initial anomalous points, they are written to the anomalous evidence cache for S4 to form indeterminate segments according to the pre-safety path independent of the anomalous threshold.
[0090] The edge time series prediction unit uses a one-dimensional causal dilated convolutional network to process the target sensor's historical sequence, and uses the weighted sum of adjacency features with graph edge weights as additional input. The input records include the target measurement value, a seven-dimensional data quality vector, equipment condition code, adjacent measurement values, physical graph edge weights, and nominal time delay. Continuous variables are normalized according to the median and interquartile range of the normal history of the same sensor under the same condition. Missing adjacent inputs are set to zero and a missing mask is added. The model outputs a predicted value in the same unit as the target sensor measurement value.
[0091] The prediction model is trained using data windows that have been confirmed to be normal by equipment maintenance records in the last 30 days. The training set and validation set are divided into an 8:2 ratio according to the equipment operation date. The loss function is the sum of the absolute prediction error and the smoothing term of the prediction change at adjacent time points. The model version records the input field version, number of network layers, convolution kernel width, dilation rate, training sample time range, and validation error. In this specific implementation, three convolutional layers are used, with a convolution kernel width of 3 and dilation rates of 1, 2, and 4. If the absolute error of the validation set exceeds 10% of the previous production version, the new version is rejected.
[0092] Edge time series prediction unit according to Generate target sensor prediction values. Indicates sensor Index at logical time The predicted value and the unit is consistent with the measured value. The parameter is Edge time series prediction model, This represents the set of model parameters obtained through training with normal data, and is a combination of dimensionless parameters and dimensionally transformed parameters within the model. This represents the target sensor historical input tensor deterministically read from the time-aligned cache. It has a shape of 60x11. The first dimension is arranged according to the most recent 60 logical samples. The second dimension consists of a one-dimensional normalized measurement value, a seven-dimensional dimensionless mass vector, a two-dimensional dimensionless operating condition code, and a one-dimensional missing mask. Therefore, all dimensions after input to the model are dimensionless quantities. This represents the adjacency input tensor generated deterministically from the valid physical graph edges and corresponding time support intervals of the same bigraph snapshot in S2. It has a shape of 60x12. The second dimension consists of, in order: normalized adjacency measurements, dimensionless graph edge weights, time delays normalized to the nominal sampling period, a seven-dimensional dimensionless mass vector, propagation direction encoding, and a missing mask. Each dimension is dimensionless. When there are more than one adjacency, the corresponding field is formed by a weighted sum based on the graph edge weights. This represents a two-dimensional device condition code read from the current operating record of the programmable logic controller, and is a dimensionless vector. This represents the discrete index of the sensor defined in the segment containing the S1 clock relationship formula. This indicates the discrete index of the sample sequence number defined in this section. The source, value range, and unit of both are not applicable, and the reasons for their inapplicability are based on the complete definition in this section.
[0093] edge nodes by Calculate the predicted residuals. This indicates the target sensor prediction residual, with units consistent with the measured value. This represents the current raw measurement value of the target sensor, and the unit is determined by the sensor type. Using the complete explanation of the section containing the S3 target sensor prediction formula, , The reasons for inapplicability of the source, range of values, and unit are explained in the complete definition of this section; and according to... Calculate the residual deviation. Indicates the dimensionless residual deviation. This represents the 99th percentile of the absolute value of the normal residual under the same sensor and operating conditions, and is in the same unit as the measured value. This indicates the minimum resolution of the corresponding sensor and is in the same unit. Using the complete explanation of the S2 mass deviation component formula; the ratio of residuals before normalization. Furthermore, it is a dimensionless quantity, with its lower bound truncated. Furthermore, it is a dimensionless quantity, with its upper bound truncated. And it is a dimensionless quantity; This represents the ratio of residuals before normalization, and its value is not less than zero and is a dimensionless quantity. This indicates that the lower bound of the cutoff is zero and is a dimensionless quantity; This indicates that the upper bound of the current truncation is selected, and the result is a dimensionless quantity; the output is a dimensionless quantity.
[0094] edge nodes by Generate anomaly scores. This represents the anomaly score of the target sample, with a value ranging from zero to one. This represents the residual deviation weight and has a value between zero and one. Indicates the first Each quality deviation component has a non-negative weight, and the sum of the seven weights is one. Following the complete explanation of the section containing the S3 residual deviation formula, and Using the complete explanation of the section containing the S2 mass deviation component formula, and The complete explanation of the S3 target sensor prediction formula is used. The source, value range and unit inapplicability of each discrete index are determined by the cited paragraph. An increase in residual or any quality deviation will not reduce the anomaly score. The weight is determined by maximizing the macro average recall rate on the validation set by normal samples and anomaly samples confirmed by maintenance records.
[0095] The initial anomaly threshold is read from the anomaly threshold table according to the sensor identifier and operating condition. The 99.5 percentile value of the anomaly score of the calibration sample under normal operating condition is taken. The anomaly threshold table also records the residual benchmark, score weight, number of quantile samples, version and effective time. When the anomaly score reaches the initial anomaly threshold, the sample is marked as the initial anomaly point, and the original data index, predicted value, prediction residual, anomaly score, quality vector version and model version are written into the initial anomaly point table. Samples that do not reach the threshold still retain the score for S4 hysteresis exit judgment.
[0096] For each valid communication graph edge in the communication sharing graph, the edge nodes establish candidate pairs for the initial outliers at both ends within the current 60-second window, in ascending order of logical time. Candidates must satisfy the condition that their time support intervals intersect. The selection is first performed in descending order of overlap ratio, then in ascending order of the absolute value of the logical time difference between the two ends, and finally in lexicographical order of the stable identifiers of the original data at both ends. Each initial outlier enters at most one pair, thus obtaining the number of one-to-one pairings. Computational communication co-occurrence consistency, Represents a node With nodes The communication co-occurrence consistency and the value ranges from zero to one. This represents the number of overlapping pairs mentioned above, and is not greater than [amount missing]. , and These represent the initial number of outliers at both ends, and all three are dimensionless counts. This indicates the counter protection value and is set to one. , The discrete indexes of the sensors at both ends of the graph edge defined by the formula for the overlap ratio of the S2 time support interval are indicated. The source, value range and unit of the indexes are not applicable, and the reason for their inapplicability follows the complete definition of this section. When there are no initial outliers at both ends, the consistency is recorded as zero, and the same pairing rule is used for calibration and online inference.
[0097] For each valid directed physical graph edge in the equipment physical association graph, edge nodes are matched with upstream and downstream initial anomaly points according to the nominal time delay and translation time delay tolerance of the edge. A match is considered complete only when the difference between the downstream anomaly occurrence time and the upstream anomaly occurrence time falls within the time delay tolerance range and the sequence conforms to the propagation direction. Calculate the consistency of physical propagation. Indicates physical propagation consistency and takes values from zero to one. This represents the number of pairs that satisfy both the order and the time delay. This represents the number of candidate pairs obtained by performing one-to-one matching at both ends in ascending logical time order and lexicographical order of stable identifiers, both of which are dimensionless counts. , The discrete indexes of the sensors at both ends of the graph edge defined in the segment containing the S2 time-supported interval overlap ratio formula are not applicable. The reasons for their inapplicability, including their source, value range, and units, are explained in the complete definition of that segment. This function represents the maximum value of inputs with the same dimensions. The function's own units are not applicable, and the output units are consistent with the input units.
[0098] Edge nodes weight the consistency of valid physical graph edges and valid communication graph edges connected to the same target sensor and with fixed propagation directions, respectively, to obtain the communication co-occurrence consistency and physical propagation consistency of the target samples. Undirected physical edges in unfixed directions are not included in the physical propagation consistency weighting member. If there are no valid graph edges for the corresponding category, the consistency is set to zero and a "no valid edge" flag is written. Subsequently, the target sensor prediction value, prediction residual, residual deviation, anomaly score, initial anomaly flag, two-class consistency, valid graph edge index, previous safety status record, and the... Version identifiers are written to the abnormal evidence cache for the cause discrimination unit of S4 to read. For the no-message evidence items written by S2, the edge nodes do not call the prediction model or generate pseudo-prediction residuals. Instead, they register each overdue expectation point as an initial no-message abnormal point, set the abnormal score to one, set the prediction value, prediction residual, and residual deviation fields to unavailable, and set the corresponding existence mask to zero. At the same time, they calculate the communication co-occurrence characteristics according to the adjacency status of the communication graph in the same logical window, the shared resource identifier, and the adjacent sensor evidence, and continue to pass them to S4 along with the boundary of the active no-message evidence segment and the version identifier.
[0099] In this specific embodiment, S4 includes:
[0100] In this specific implementation, the causation discrimination unit reads the prediction residual, residual deviation, seven-dimensional data quality vector, communication co-occurrence consistency, physical propagation consistency, effective graph edge index, equipment condition, and model version of each initial anomaly point from the real-time anomaly evidence cache of S3. It also supplements graph edge records from the same dual-graph snapshot that formed the evidence, forming a fixed-length causation feature vector. Communication graph edges and physical graph edges are sorted in descending order of graph edge weight, lexicographical order of the sensor identifiers at both ends, and lexicographical order of the graph edge stability identifier, respectively, retaining the first four entries for each. Each graph edge slot is sequentially written with the dimensionless graph edge weight, shared communication resource code, propagation direction code, and a target-nominal sampling period normalization. The time delay tolerance, dimensionless cross-variable physical constraint residuals, and existence mask are all considered. The shared communication resource identifier is converted into an eight-bit one-hot encoding table with a fixed feature pattern version. The external identifier is uniformly written into the eighth bit of the other category. The propagation direction is fixed and encoded as positive one, negative one in the reverse direction, and zero in the undirected direction. When there are fewer than four graph edges, all remaining slots are set to zero and the existence mask is set to zero. When there are more than four graph edges, the remaining graph edges after sorting are truncated. When there are no valid graph edges, all four slots are set to zero. Continuous features are normalized to zero to one according to the same working condition quantile value of the causal calibration sample. The feature field order, category encoding table, truncation quantity, and normalization parameters are all written into the feature pattern version. Only the same version is used for training and online inference.
[0101] Before constructing the causal feature vector, the causal discrimination unit prioritizes reading the prior safety status records. If any of the flags indicating unavailable time parameters, unavailable configuration, unavailable quality benchmark, or unavailable target prediction on the same sensor remains valid, the four-category model and point-level gating are not executed. Instead, consecutive safety records are merged into prior safety segments according to the logical order or edge reception order of the records, and a single record also forms a segment. The causal status of this segment is directly recorded as undetermined, the confidence level is recorded as zero, the segment discrimination acceptability flag is recorded as zero, an automatic rejection complement flag is written, and the sample is saved in the segment record. Stability identifier, original evidence index, all pre-establishment flags, cause code, source step, source version, isolation status, and cleanup conditions enable objects that have not generated predicted values or initial outliers to be reliably transmitted to S5; for messageless initial outliers that do not have the above-mentioned pre-establishment security flags, the causal feature vector is enhanced with a messageless source flag, a mask for the prediction field, and an unobservable mask for the quality field. The same feature pattern version is used for training and online inference, so that when target measurements are missing, four-category discrimination is still performed based only on observable communication shared features, adjacent evidence, and masks without filling in the prediction field;
[0102] The cause discrimination unit uses a four-category gradient boosting tree to generate raw scores for four categories: communication disturbance, sensor misalignment, real equipment anomaly, and indeterminate. Then, temperature scaling on the retained calibration set is used to convert the raw scores into posterior probabilities. The training samples come from communication link maintenance records, sensor calibration and replacement records, equipment failure work orders, and manually reviewed indeterminate segments saved by edge nodes. The samples are grouped by equipment and date to avoid the same fault segment from entering the training set and calibration set at the same time. When the inference output is lower than the cause discrimination threshold, it is written as an indeterminate state with low confidence and does not enter the automatic repair.
[0103] Causal discrimination unit according to Calculate the posterior probability. Indicates the first The initial outliers belong to the candidate causes. The posterior probability is such that the sum of the probabilities of the four classes is one. This indicates that the gradient boosting tree represents the candidate causes. The original score is dimensionless. This indicates that the same gradient boosting tree is used for the first... The candidate cause is in the first The original scores of the initial outliers are dimensionless. This represents a positive temperature parameter obtained by minimizing the negative log-likelihood from the calibration set, and it is a dimensionless quantity. and These represent the discrete indices of candidate causes in the output order of the causation threshold table and the gradient boosting tree, respectively. They are both set to one through four, corresponding to communication disturbance, sensor misalignment, real device malfunction, and indeterminate, respectively. Units are not applicable, as they only identify the category. This represents the discrete index of the outlier in the current window of the initial outlier table in S3. The value range is the associated record of the current segment in the table. The unit is not applicable because it only locates outliers. This represents a dimensionless natural exponential function, where the function's own units are not applicable.
[0104] Before comparing posterior probabilities, edge nodes set threshold values for communication disturbance candidates. , Indicates the first The communication disturbance candidate open flag for each initial anomaly point is either zero or one. It is set to one only when the communication co-occurrence consistency reaches the communication consistency threshold and the message continuity component or jitter component reaches the upper 99th percentile boundary of the normal distribution under the same operating conditions; otherwise, it is set to zero. This represents the initial outlier discrete index defined in the section containing the S4 posterior probability formula. Its source, value range, and unit are not applicable, and the reason for its inapplicability follows the complete explanation of this section. When the gate value is zero, the corresponding posterior probability does not participate in the maximum value selection.
[0105] Edge nodes set gate values for sensor misalignment candidates , Indicates the first The sensor misalignment candidate open flag for each initial anomaly point is either zero or one. It is set to one only when the communication co-occurrence consistency is lower than the communication consistency threshold, the physical propagation consistency is lower than the physical consistency threshold and at least one of the saturated or constant components or the calibration state component reaches the corresponding upper quantile boundary; otherwise, it is set to zero. This represents the initial outlier discrete index defined in the section containing the S4 posterior probability formula. The source, value range, and reason for the inapplicability of the unit are explained in the complete definition of that section.
[0106] Edge nodes set threshold values for real device anomaly candidates. , Indicates the first The initial anomaly point has a real device anomaly candidate open flag, which is either zero or one. It is set to one only when the physical propagation consistency reaches the physical consistency threshold, the transvariable physical constraint residuals of the sensors at both ends of the effective physical graph edge both reach their respective upper quantile boundaries, and the difference between the times of occurrence of the two anomalies falls within the graph edge time delay tolerance range and the order conforms to the propagation direction. Otherwise, it is set to zero. This represents the initial outlier discrete index defined in the section containing the S4 posterior probability formula. The source, value range, and reason for the inapplicability of the unit are explained in the complete definition of that section.
[0107] The communication consistency threshold and the physical consistency threshold are determined by the minimum consistency quantile value on the confirmed cause calibration segment that makes the target misclassification rate not exceed 2 percent, and are stored according to the equipment operating conditions. When calibrating the threshold, the candidate values at the 0.01 interval are traversed one by one. First, the values with a misclassification rate exceeding the target upper limit are screened out. Then, the value with the highest recall rate is selected from the remaining values. If the recall rates are the same, the candidate value with the largest value is selected to reduce the opening of non-target candidates.
[0108] The cause threshold table uses equipment operating conditions and cause categories as joint keys, recording communication consistency threshold, physical consistency threshold, upper quantile boundaries of each mass component, cause discrimination threshold, target misjudgment upper limit, number of calibration samples, version, and update time. The cause discrimination threshold is the lowest posterior probability of satisfying the target misjudgment upper limit on the calibration set at 2%. In this specific implementation, at least 200 calibration segments are used for each cause category. When there are insufficient samples, the threshold is not lowered, and the candidate threshold value is immediately forced to zero and a check flag is set. If any candidate in the segment has a check flag, the cause status of the segment is directly recorded as undetermined. A manual check queue item is generated, including the segment index, missing calibration category, existing number of samples, model version, and threshold version. S5 only keeps the segment isolated and prohibits automatic repair. Only after manual check supplements the calibration record and releases a compatible threshold version will it be re-queued according to the new version.
[0109] The cause discrimination unit first performs an indeterminate safety judgment: when the posterior probability of the indeterminate class is the maximum of the four classes, reaches the indeterminate dedicated threshold, or when the posterior probability of the best automatically handleable class minus the indeterminate class posterior probability is less than the safety margin, it directly outputs an indeterminate state and rejects point-level automatic handling; the indeterminate dedicated threshold in this specific implementation is 0.45, and the safety margin is 0.10. Both are determined by the candidate combinations on the indeterminate calibration samples that make the unknown pattern recall rate not less than 98%, and are bound to the cause threshold table version; only when... When it cannot be determined that the safety judgment is invalid, the cause discrimination unit selects the candidate with the largest posterior probability from the candidates that are open and whose posterior probability reaches the cause discrimination threshold. The larger the posterior probability, the more credible the cause is. When two candidates are tied for the maximum value, the first one to appear is output in the order of priority: real equipment abnormality, sensor inaccuracy, and communication disturbance. When there are no candidates that reach the threshold, the state of indeterminacy is output. The posterior probability of the selected cause is used as the confidence level, and four types of posterior probabilities, the indeterminacy threshold, the safety margin, and the safety judgment result are retained for S5 verification.
[0110] Edge nodes read the hysteresis entry threshold and hysteresis exit threshold from the anomaly threshold table. The hysteresis entry threshold is taken as the 99.5 percentile of the anomaly score of the normal operating condition calibration sample, and the hysteresis exit threshold is taken as the 97.5 percentile, ensuring that the former is higher than the latter. When the anomaly score reaches the entry threshold, the anomaly segment is started. After the segment is started, the continuous samples with scores not lower than the exit threshold and the initial anomaly points in them are merged. The merging is terminated when the score is lower than the exit threshold for three consecutive sampling periods. The initial anomaly point without a message does not wait for the exit condition, but is directly merged into a no-message anomaly segment according to the sampling date program number of the no-message evidence segment of S2. The segment start logic time is taken as the first overdue expectation point. When the recovery message completes the unique alignment, the termination logic time is fixed with the last overdue expectation point before recovery and enters the subsequent segment level discrimination. When it has not yet recovered, the active segment is retained and the termination boundary is advanced for each additional overdue expectation point. The active segment does not enter S5 in advance. The fixed segment, together with all its no-message evidence items, must be written into the anomaly segment table and the waiting-to-repair queue for diversion input.
[0111] After the initial merging is completed, the edge nodes compare the absolute change of the prediction residuals of adjacent points inside and outside the segment boundary with the maximum component change of the seven-dimensional data quality vector. When any change of a sampling point outside the boundary still reaches the 99th percentile of the corresponding normal historical change distribution, the node expands outward by one point. When both types of changes of the outermost point inside the boundary are lower than the 50th percentile and it is not an initial outlier, the node shrinks inward by one point. The expansion or shrinkage does not exceed three sampling periods. When the continuous index constraint is not met, the boundary correction is stopped and the previous boundary is maintained.
[0112] The posterior probabilities of edge nodes for each initial outlier within the corrected segment are weighted by the outlier score and then... Obtain the fragment-level posterior probability. Representing fragments Candidate causes The fragment-level posterior probability takes values between zero and one. This represents the cumulative value of the product of the anomaly score within a segment and the posterior probability of the corresponding candidate cause, and is a dimensionless quantity. This represents the cumulative abnormal score within a segment, and is a dimensionless quantity. This indicates the causal discrete index defined in the section containing the S4 posterior probability formula. The reason why its source, range of values, and units are not applicable follows the complete explanation of that section. This represents the discrete index of the segments in the abnormal segment table, allocated in ascending order of the starting logical time. The value range is from one to the total number of segments in the current window. The unit is not applicable because it only locates abnormal segments. When the cumulative abnormal score value is zero, the segment-level posterior probability is set to zero and an uncertain state is output.
[0113] Edge nodes establish segment-level gating for three types of candidates: the sum of the initial anomaly scores of points with a point-level gating of 1 within a segment is divided by the sum of the anomaly scores of all initial anomaly points within the segment to obtain the support ratio for that type of gating; the support ratio is set to zero when the cumulative value of all initial anomaly score scores is zero. A segment-level gating is only enabled when the support ratio is not less than 0.5, the number of support points is not less than two, and the corresponding segment-level posterior probability reaches the cause discrimination threshold. The support point index and ratio are recorded in a fixed category order: communication disturbance, sensor misalignment, and real device anomaly. For segments where security cannot be determined, the four types of segment-level posterior probabilities are used for security determination, and the dedicated threshold and safety margin for point-level indeterminacy are adopted. The determination is made when the segment-level posterior probability of the indeterminable class is the maximum value of the four classes, reaches the dedicated threshold, or the segment-level posterior probability of the best automatically handleable class minus the segment-level posterior probability of the indeterminable class is less than the safety margin. Edge nodes set a segment discrimination acceptable flag. , Representing fragments The cause determination is zero or one, depending on whether it meets the automatic handling conditions. It is only one if at least one segment-level gate is open, the corresponding segment-level posterior probability reaches the cause determination threshold, the segment-level security determination is invalid, there is no pending verification flag, and the model version is compatible with the threshold version. This represents the discrete index of the abnormal segment defined in the segment containing the S4 segment-level posterior probability formula. Its source, value range, and unit are not applicable, and the reason for its inapplicability follows the complete interpretation of this segment. If any condition is not met, it is set to zero and the indeterminate state is output.
[0114] Edge nodes only select the candidate with the highest fragment-level posterior probability from those candidates whose fragment-level gating is open and who have reached the corresponding cause discrimination threshold, when the fragment discrimination acceptable flag is one and the fragment-level security judgment cannot be determined, in order to obtain the fragment-level cause status and confidence. When the absolute value of the maximum probability difference does not exceed 10 to the power of negative six, they are considered to be in a tie. When in a tie, they are resolved in the order of real equipment anomaly, sensor inaccuracy, and communication disturbance. When not in a tie, the category priority rule does not apply. The fragment record includes the start and end logical time, affected channels, original data index range, cause status, confidence, four types of posterior probabilities, anomaly score range, quality vector summary, dual-graph snapshot logical time window, topology version, and effective graph edge index. Point-level gating, fragment-level gating, supported point index, supported proportion, undetermined special threshold, security margin, undetermined security judgment result, threshold version, and tie decision order are written into the discrimination audit field.
[0115] When the cause status is a real device anomaly, the edge node writes the device alarm control flag to the device monitoring topic and locks the original data index as read-only evidence. When the cause status is uncertain, it writes the reject auto-completion flag and moves the fragment into the isolation buffer. Communication disturbances or sensor misalignment fragments are written to the repair queue. The abnormal fragment record, control flag, and repair queue item together serve as the input for S5 traffic offloading and counterfactual prediction permission.
[0116] In this specific embodiment, S5 includes:
[0117] In this specific implementation, the edge node first reads the abnormal segment records of S4 and distributes them according to their cause status, while verifying the prior security status carried by the segment records; the original data of the abnormal segments of the real device continues to be stored in the original data buffer and only alarms and verification marks are allowed to be attached. If it cannot be determined that the segment is in the isolation buffer, it is prohibited from entering the normal data buffer. If any of the prior flags of unavailable time parameters, unavailable configuration, unavailable quality benchmark, or unavailable target prediction is valid, it is directly written to the unavailable status of the task to be repaired and the audit record, without generating counterfactual candidates; only segments that do not have valid prior security flags, whose cause status is communication disturbance or sensor inaccuracy, whose confidence level reaches the cause discrimination threshold, and whose security judgment cannot be determined to be invalid are generated into the task to be repaired table; the edge node uses the target sensor identifier and the nominal sampling period in the S1 device configuration table. During the segment's start and end logical time, a desired sampling grid is generated. Existing erroneous samples are uniquely mapped to existing sample tasks according to the rule that the intersection of the time support interval and the desired logical time is minimized. The time point without a message is determined by the sequence number difference of adjacent valid messages and the desired grid, and the desired logical time, missing placeholder identifier, and the index of the original messages before and after are assigned. The sequence number difference is cyclically calculated based on the message sequence number modulus in the device configuration table. If the number of sequence number gaps is inconsistent with the number of logical time gaps, if irregular sampling is configured but a versioned sampling schedule is missing, or if the segment boundary cannot fall on a valid desired grid, an unusable flag is written to the task table and the segment is kept isolated. The segment boundary is truncated according to the earliest and latest desired sampling points within it. Tasks are sorted in ascending order of the target sensor's desired logical time and the task stability identifier, thereby clearly distinguishing between existing erroneous samples and missing message slots.
[0118] For empty slots without messages, edge nodes construct a placeholder time support interval centered on the expected logical time: when there are adjacent messages with reliable time status before and after, the sum of the maximum alignment uncertainty on both sides and half a nominal sampling period is taken as the conservative error bound; when there is only a reliable message on one side, the sum of the alignment uncertainty on that side, half a nominal sampling period, and the expected time distance from the adjacent message to the empty slot is taken; when there are no reliable messages on either side or the sampling schedule version is incompatible, a placeholder alignment uncertainty unavailable flag is set and repair is refused; in the seven-dimensional data quality vector of the placeholder, the message continuity component is fixed at one; the arrival jitter component and time... The interval stability component is calculated based on the expected sampling schedule, the reception time and sequence number interval of adjacent reliable messages according to the same S2 benchmark. When the input is insufficient, it is conservatively set to one. The instantaneous noise component, saturation or constant value component and cross-variable physical constraint compliance component that cannot be directly calculated due to the lack of target measurement value are all set to one. The calibration status component is calculated based on the expected logical time of the empty slot and the sensor calibration expiration time. When the configuration is missing, it is set to one. The obtained occupancy time support interval, alignment uncertainty, seven-dimensional quality vector, sampling schedule version, quality benchmark version, index of the original message before and after, and missing reason code are written together into the task table to be repaired.
[0119] The first counterfactual repairer masks the target sensor's data throughout the entire anomalous segment when processing the time point to be repaired. Based on the logical time window, topology version, and valid physical graph edge index in the S4 segment record, it reads the physical association graph snapshot of the same device used to form the causal evidence of the segment. From this, it selects adjacent sensors with valid graph edges and corresponding sample time support interval overlap ratios of 0.6, and removes adjacent samples with a maximum mass vector component of 1. It then uses the retained adjacent sequence, segment record conditions, graph edge weights, propagation direction, and nominal time delay inputs that are consistent with the structure of the S3 prediction unit but trained separately to obtain adjacent prediction candidates in the same unit as the target sensor's measurement values. When the dual graph snapshot is missing, the topology version is inconsistent, or the model is incompatible, an unusable adjacent candidate flag is generated and kept isolated, without migrating to the real-time new version.
[0120] First Counterfactual Fixer Obtain real-time adjacency prediction candidates. Indicates the first Each time point to be repaired has a candidate adjacent neighbor for prediction, and the unit is the same as the measured value. This represents the cumulative value of the product of each effective adjacency model prediction and the corresponding graph edge weight, and is in the same unit as the measured value. This represents the sum of graph edge weights involved in the accumulation, and is a dimensionless quantity. The numerical subscript 1 indicates the source of the first counterfactual repairer in the task list to be repaired. The unit is not applicable because it only locates the repairer. This represents the discrete index of time points in the current abnormal segment repair task, arranged in ascending logical time. The value range is from one to the total number of time points to be repaired for this segment. The unit is not applicable because it only locates time points. When the total weight is zero or the effective adjacency constraint is not met, an adjacency prediction candidate unavailable flag is generated.
[0121] The first counterfactual repairer writes the candidate value, the adjacent sensor identifier used, the graph edge version, the model version, and the time point to be repaired into the adjacent candidate record. When there is no valid adjacent sensor that meets the overlap threshold, the continuous length of the adjacent input is less than thirty sampling points, or any input condition is mismatched, an adjacent prediction candidate unavailable flag is also generated, and the gap is not filled with low-quality adjacent data.
[0122] The second counterfactual repairer, based on the logical time window of the dual-graph snapshot, topology version, and valid communication graph edge index in the S4 segment record, searches for nodes that are connected to the target sensor via valid communication graph edges and co-occur with the initial anomaly point within the anomalous segment from the same communication shared relationship graph snapshot used when forming the causal evidence of the segment. It identifies the gateway identifier or communication link identifier recorded in the corresponding communication graph edge as the anomalous communication resource identifier, and then masks all sensor data that share this anomalous communication resource identifier, as well as data in the target sensor marked as the initial anomaly point and data within the current anomalous segment. When the snapshot is missing, the topology version is inconsistent, or the graph edge index is invalid, it generates a historical candidate unavailable flag and keeps it isolated.
[0123] The second counterfactual repairer only reads uncontaminated historical data from the target sensor before and after the anomalous segment, deterministically selecting a total of sixty sampling points, with no less than fifteen on each side; when there are no less than thirty on both sides, the thirty closest to the segment boundary are selected from each side; when one side has fifteen to twenty-nine points, all available points on that side are selected, and the other side is supplemented with sixty points from the nearest to the segment boundary, with a maximum of forty-five points on either side; when points at the same time distance are parallel, they are selected according to the lexicographical order of the original data stability identifier; the selected samples on both sides are arranged in ascending logical time order and are marked with left and right side labels, time distance, and equipment condition codes; the bidirectional robust autoregressive model extrapolates at both ends of the segment using the fifteen to forty-five samples actually obtained on each side; the model training uses the same rules of at least fifteen on each side, a total of sixty, and deterministic supplementation; edge nodes are... Generated from historical prediction candidates, Indicates the first Each candidate point in time to be repaired is a self-predicted historical value and is in the same unit as the measured value. and These represent predicted values extrapolated from the historical data on the left and right sides of the segment, respectively, and are in the same unit as the measured values. and These represent the time distances from the point to be repaired to the nearest uncontaminated samples on the left and right sides, respectively, in milliseconds. The numerical subscript 2 indicates the source of the second counterfactual repairer in the task list to be repaired; the unit is not applicable because it only locates the repairer. and These represent the left and right historical direction indicators of the segment, respectively. Their values are derived from the boundaries of abnormal segments. Units are not applicable, as they only indicate direction. The discrete index of the time point to be repaired, defined in the section containing the candidate formula for S5 adjacency prediction, is used. The source, value range, and reason for the inapplicability of the unit are explained in the complete definition of that section.
[0124] If, during the initial processing, there are fewer than fifteen reliable historical samples that are compatible and uncontaminated on the right side, but at least fifteen on the left side, and all other input conditions are met, the second counterfactual repairer does not generate a final unusable flag. Instead, it records the task status as waiting for the right-side history to be supplemented, recording the number of samples still needed, the segment end logic time, the target operating condition, the sampling schedule version, the model version, and the waiting deadline. Each newly added reliable sample event is re-enqueued once according to the task stability flag. After reaching fifteen on the right side and a total of at least sixty before and after, candidates for prediction from the history are generated. The waiting deadline is determined by the sensor and operating condition version. The repair waiting configuration table must be determined no earlier than thirty nominal sampling periods after the end of the segment; if the deadline is exceeded, the operating conditions change during the waiting period, or the sampling schedule or model version is no longer compatible, a candidate unavailable flag from the historical prediction will be generated and kept isolated; if there are fewer than fifteen on the left, the operating conditions before and after are inconsistent, the sum of the two time distances is zero, or the total number of historical samples is still less than sixty after the samples on the right are supplemented, a candidate unavailable flag from the historical prediction will be generated directly; when a candidate is available, the masked resource identifier, historical index range, extrapolated values on both sides, time distance and model version will be written into the candidate record from the historical prediction.
[0125] For calibration sample segments and current abnormal segments, edge nodes are configured according to... Calculate the quality deviation at each time point. Indicates the first The quality deviation values at each time point range from zero to one. , and The complete explanation of the section containing the S2 mass deviation component formula is used, where the source, value range, and reason for inapplicability of each discrete index are determined by this section. The discrete index of the time point to be repaired is defined using the segment where the S5 adjacency prediction candidate formula is located. This represents the function representing the maximum value of inputs with the same dimensions. The function's own units are not applicable, and the output units are the same as the input units. Then press... Calculate the segment quality score. Representing fragments The quality score is between zero and one. This indicates the discrete index of the outlier segment defined in the segment containing the S4 segment-level posterior probability formula. The reason why its source, value range, and unit are inapplicable follows the complete definition of that segment. Indicates the index of the time point to be repaired. This is an abnormal segment. The index set relationship is not applicable to units, as it only limits the statistical members. This function takes the median value of the members. The function's own units are not applicable, but the output units are consistent with the members. The higher the quality score, the greater the deviation of the fragment data quality from the normal operating conditions.
[0126] edge nodes by Calculate the length of consecutive missing characters. Representing fragments The number of consecutive sampling points to be repaired is a dimensionless count. and These represent the discrete indices of the first and last expected sampling points in the same continuous task segment of the target sensor's task table to be repaired. The value range is the continuous expected sampling point index of the target sensor's task table, not the global time-aligned cache index. The unit is not applicable because it only locates the target channel task. When sampling irregularly, the index follows the expected point sequence number of the versioned sampling schedule. The message sequence number is wrapped around and resolved by the sequence number modulus of the S1 device configuration table. Expected points outside the segment boundary are not included. This indicates the discrete index of the outlier segment defined in the segment containing the S4 segment-level posterior probability formula. The reason why its source, value range, and unit are inapplicable follows the complete definition of that segment. and These represent the start and end boundary markers of continuous task segments, derived from the S5 task list to be repaired. The units are not applicable because they only mark the boundary direction. Subsequently, the fragment quality scores of the cause-calibration sample fragments are divided into three quality levels: low, medium, and high, based on the 33rd and 66th percentile values. The continuous missing lengths are divided into three length levels: short, medium, and long, based on the 50th and 90th percentile values.
[0127] Edge nodes establish calibration buffers using a joint index of target sensor identifier, equipment condition, measurement unit and range version, counterfactual model compatible version, quality level, length level, and counterfactual repairer source. The buffers record candidate values, corresponding actual measured values, historical prediction residuals, sensor identifier, equipment condition, measurement unit, range version, calibration time, and model version. When the current segment falls on a quantile boundary, it is assigned to the corresponding level of the interval above the boundary. During retrieval, the target sensor, operating condition, measurement unit, and range version must be the same, and the model version must be within the allowed range of the compatible version table. The buffer with the latest update time is selected only when all filtering predicates are satisfied. If there are insufficient records, a prediction interval unavailable flag is output. Backtracking across sensors, different operating conditions, or different dimensions is prohibited.
[0128] The calibration buffer only receives historical data segments for which complete and accurate measurements were subsequently obtained and confirmed by maintenance records to be free of actual equipment malfunctions. Store historical prediction residuals. Indicate source The The historical prediction residuals are consistent with the units of the measured values. This represents the actual measurement value obtained afterward at the corresponding time point, and the unit is consistent with the target sensor measurement value. This indicates that the corresponding counterfactual prediction candidate has the same unit as the target sensor measurement value. A discrete index indicating the source of the first or second counterfactual repairer, with a value of one or two and originating from candidate records. Units are not applicable, as it only locates the repairer. This represents the discrete record index within the matched compatible calibration bucket, sorted by calibration time and stable record identifier. The value ranges from one to the number of valid records in that bucket. Units are not applicable, as this only locates calibration records. and These represent the actual measurement field and the counterfactual candidate field, respectively, both derived from the same calibration record. The unit is not applicable, as it only distinguishes the field identity. Records that do not meet the integrity constraints of the actual measurement value are removed and not included in the quantile calculation.
[0129] The first and second counterfactual repairers maintain residual records respectively. A single composite index bucket retains a maximum of 2,000 records and a minimum of 100 records. Incompatible records are cleared and the buffer version is incremented when the model version is updated, the sensor is replaced, or the range is changed. Edge nodes enable composite level indexing. , This represents a discrete index of quality level, taking one of low, medium, or high, derived from the quantile boundaries of the segment quality score. This represents a discrete index based on length levels, taking one of the short, medium, or long values, derived from the quantile boundaries of consecutive missing lengths. , and The units are not applicable, as they only locate the joint calibration bucket; availability flags are set at edge nodes. , Indicate source In joint level The calibration bucket availability is zero or one. It is set to one only when the complete joint index exists, the number of records is not less than one hundred, and the sensor, operating condition, unit, range, and model version compatibility constraints are met. Otherwise, it is set to zero, and a prediction interval unavailable flag is generated. This indicates the source discrete index of the repairer defined in the section containing the S5 historical prediction residual formula. The reason why its source, value range and unit are not applicable follows the complete explanation of this section.
[0130] Regarding the source The counterfactual repairer uses the absolute value of historical prediction residuals as the non-consistency score for edge nodes, and then... Obtain the conformal cleavage boundary. Indicate source In joint level The lower quantile boundary and the unit are consistent with the target sensor measurement value. This indicates the number of items in the same compatible calibration bin, sorted from smallest to largest. The absolute value of each historical residual is given, and the output unit is consistent with the target sensor measurement value. Indicate source With joint level The effective number of samples corresponding to the calibration bucket, and is a dimensionless count. This represents the coverage loss rate and is a dimensionless quantity; in this specific implementation, it is set to 0.05. This represents the discrete index of the calibration bucket sequence statistics, with values ranging from 1 to 1. The unit is not applicable because it only locates and sorts members. This indicates the discrete index representing the source of the repairer defined in the segment containing the S5 historical prediction residual formula. The joint-level discrete index, which represents the section defining the S5 calibration bucket availability formula, is explained using the complete definition of the corresponding section, including its source, value range, and reasons for inapplicability of units. This indicates that the input is not less than the dimensionless input. The smallest integer function, whose own unit is not applicable; if the minimum calibration sample constraint is not met, the quantile boundary is not calculated and an unusable flag is output;
[0131] When both counterfactual candidates are available and there are sufficient compatible calibration bucket samples, the edge nodes are... Two counterfactual conformal prediction intervals are generated respectively. Indicate source At the point of time pending repair The prediction interval and the boundary units are consistent with the measured values. Indicates the source of candidate records Counterfactual prediction candidates and in the same unit as the measured value, Using the complete explanation of the section containing the S5 conformal cleavage boundary formula, and The source, value range, and reason for inapplicability of units are explained in the complete definition of this section and the section containing the S5 calibration bucket availability formula. The discrete index of the time point to be repaired is defined by the segment where the S5 adjacency prediction candidate formula is located; the first counterfactual repairer outputs the adjacency conformal prediction interval, and the second counterfactual repairer outputs the historical conformal prediction interval. When the candidate is unavailable or the calibration sample is insufficient, no pseudo interval is generated and a prediction interval unavailable flag is written.
[0132] After generating two prediction intervals, the edge nodes determine the allowable width based on the alignment uncertainty of S1 and the upper bound of the normal rate of change under the current operating conditions of the target sensor. calculate, This indicates the maximum allowable interval width for the time point to be repaired, and the unit is consistent with the measured value. This represents the 99th percentile of the absolute value of the rate of change of the target sensor's normal measurement value with respect to logic time, with the unit being the measurement value per second. The calibration table for the upper limit of the normal rate of change uses sensor identification, equipment condition, measurement unit, range version, and compatible model version as the joint key. It records the most recent 30 days of adjacent normal sample pairs that have been confirmed by maintenance records to have no real equipment abnormalities and for which the quality benchmark is available, as well as the start and end times of the statistical window, the number of valid sample pairs, the 99th percentile value, the time alignment configuration version, the table version, and the effective time. Each joint key must have at least one thousand valid sample pairs to be usable. This represents the alignment uncertainty defined in the segment containing the S1 alignment uncertainty formula, with the unit being milliseconds. This indicates the accuracy error limit of the target sensor in the equipment configuration table, and it is in the same unit as the measured value. This represents the discrete index of the target sensor defined in the segment containing the S1 clock relationship formula. This indicates the discrete index of the time point to be repaired as defined in the segment containing the candidate formula for S5 adjacency prediction. The source, value range, and unit inapplicability of these two are explained in the complete definition of the corresponding segment. Dividing by one thousand is used to convert milliseconds to seconds. The coefficient two represents the two-sided error bound of the full width of the intersection. If the current sensor, operating condition, measurement unit, range version, model version, or time alignment configuration version is incompatible, or if there are fewer than one thousand valid sample pairs, the edge node is set with an unavailable allowable width flag, the pseudo-allowable width is not calculated, and isolation is maintained according to the rejected repair path.
[0133] For the two counterfactual prediction intervals, the edge nodes are... and Calculate the intersection boundary. and These represent the lower and upper boundaries of the intersection, respectively, with units consistent with the measured values. and This represents the lower and upper boundaries of the adjacent conformal prediction interval generated by the segment containing the S5 prediction interval formula. and This indicates the lower and upper boundaries of the self-historical conformal prediction interval generated in the same segment. The numerical subscripts one and two indicate the sources of the first and second counterfactual repairers, respectively. The unit is not applicable because it only locates the repairer. This indicates the discrete index of the time point to be repaired defined in the segment containing the candidate formula for S5 adjacency prediction. The reason why its source, value range, and unit are not applicable follows the complete explanation of this segment. and These represent the maximum and minimum value functions of inputs with the same dimensions, respectively. The units of the functions themselves are not applicable, and the output units are consistent with the input units. If the upper boundary is less than the lower boundary, the intersection does not exist and a rejection repair result is generated.
[0134] When the intersection exists, the edge nodes are ordered according to... Calculate the robust central value. This represents the robust central value at the time point to be repaired, with units consistent with the measured value. and Using the complete explanation of the S5 intersection boundary formula, The discrete index of the time point to be repaired, defined in the section containing the S5 adjacency prediction candidate formula, is used. The reasons for its inapplicability regarding its source, value range, and units are explained in the complete definition of that section. The intersection width of the edge nodes is then calculated. And only calculated in the segment where the intersection width is no greater than the allowable width formula of S5. Continue to verify the confidence level of the causes and the physical constraints of the equipment;
[0135] Cross-variable physical constraints are read from the physical constraint table according to the equipment operating conditions. The records include constraint identifier, participating sensors, same-dimensional conversion coefficient, residual calculation formula, allowable upper limit of residual, operating condition range, number of calibration samples and version. In this specific embodiment, the constraint residuals of pump inlet pressure, outlet pressure and motor current are first divided by their respective normal operating condition range to form dimensionless components and then weighted and summed. When the dimensionless residual obtained after substituting the robust center value does not exceed the 99th percentile of the normal calibration distribution, it is determined that the physical constraint is satisfied. If no matching operating condition record is found, the repair is directly rejected.
[0136] edge nodes by Generate a repair license mark. Indicates the first The permission status of each pending repair time point is either zero or one. This indicates that both counterfactual candidates and the interval are available. This indicates that the two intervals intersect. This indicates that the intersection width is not greater than the allowed width. This indicates that the segment-level posterior probability corresponding to communication disturbance or sensor misalignment has reached the causation discrimination threshold. This indicates that the robustness center value satisfies the physical constraints of the current operating condition. The numerical subscripts one to five represent five categories of conditions: candidate availability, intersection existence, width qualification, causality qualification, and physical constraint qualification, respectively. The value range is one to five, and the unit is not applicable because it only identifies the condition category. This indicates the discrete index of the time point to be repaired defined in the segment where the candidate formula for S5 adjacency prediction is located. Its source, value range and unit are not applicable. The reason for its inapplicability follows the complete explanation of this segment. All five conditional quantities are zero or one and only take one when the corresponding condition is met.
[0137] When the repair permission flag is one, the edge node generates a permission repair result based on the current real-time repair task, writes the robust center value into the repair value field of the normal data buffer, and retains the original data index and adds the repair source, two interval boundaries, intersection boundary, quality vector label, cause status, confidence, model version and calibration buffer version.
[0138] When any unavailable flag exists, the intersection does not exist, the intersection width exceeds the allowed width, the cause confidence is insufficient, or the physical constraints are not met, the edge node generates a rejection repair result, so that the corresponding data continues to be stored in the isolation buffer and is not written to the normal data buffer. The reason for permission or rejection is determined and retained at each time point within the segment. Finally, the repair audit record, the normal data buffer update event, and the isolation status are transmitted to the device monitoring service for subsequent alarm display, traceability audit, and model calibration, thereby completing selective repair without covering real device anomaly evidence.
[0139] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
[0140] The time alignment, quality assessment, dual-graph association, and cause discrimination of this invention form a continuous data processing chain, enabling edge nodes to characterize common disturbances on the communication path and physical anomalies propagating along the device structure, and select retention, isolation, or repair operations accordingly, thereby shortening the processing chain while maintaining the traceability of anomaly evidence.
[0141] Compared to structures that rely solely on a single prediction result for compensation, this invention further employs an independent data masking method to form adjacent prediction candidates and self-historical prediction candidates, and introduces conformal prediction interval intersection and active rejection conditions, enabling the repair action to be driven by verifiable consistency evidence. When determining the allowable width, the alignment uncertainty in the time dimension is first propagated to a measurement error bound based on the rate of change of the target sensor's measured value under the current operating conditions with logical time. This error bound is then combined with the sensor's accuracy error bound to determine the allowable width, thereby ensuring that the two error bounds are combined under the same measurement dimension.
Claims
1. A method for processing abnormal IoT data based on edge computing, characterized in that, include: S1. Receive asynchronous data streams from multiple sensors at the edge node adjacent to the industrial equipment, perform clock offset and drift compensation on the asynchronous data streams and map them to a unified logic time axis to obtain the time support interval of the samples. S2. Generate data quality vectors based on time support intervals, establish communication sharing relationship graphs and device physical association graphs, and determine the validity of graph edges based on the degree of overlap of time support intervals and data quality vectors; S3. Based on the historical data of the target sensor and the effective physical adjacent sensor data, perform time series prediction to obtain the prediction residual. Determine the initial outlier points according to the prediction residual and the data quality vector. Based on the time series relationship of the initial outlier points connected by the effective graph edges in the two types of graphs, obtain the communication co-occurrence consistency and physical propagation consistency. S4. Based on the prediction residual, data quality vector, communication co-occurrence consistency and physical propagation consistency, determine the cause status and confidence level of the initial anomaly point to form anomaly fragments; S5. Divert abnormal segments according to their cause and state: retain the original data for real equipment anomalies, isolate abnormal segments whose state cannot be determined, and generate two counterfactual prediction intervals for communication disturbances or sensor inaccuracies based on the data of physically adjacent sensors and the uncontaminated historical data of the target sensor. Determine the repair permission result based on the interval consistency, confidence level and physical constraints of the equipment, and write the repair value or keep it isolated according to the repair permission result.
2. The IoT anomaly data processing method based on edge computing according to claim 1, characterized in that, S1 includes: For each sample, retain the sensor identifier, source timestamp, edge reception timestamp, message sequence number, verification status, retransmission status, communication link identifier, and device status; An observation sequence is formed based on the sensor identifier, consisting of a source timestamp and an edge receiving timestamp. The clock offset is estimated using this observation sequence, and the drift is estimated using the change in clock offset within adjacent observation intervals. The position of the estimated clock offset and drift correction sample on a unified logic time axis is determined based on the sampling period, network arrival jitter, and offset estimation error. The time positioning error boundary determined by the sampling period, network arrival jitter, and offset estimation error is used as the alignment uncertainty, and the original measurement value is retained and not covered by the time mapping process.
3. The IoT anomaly data processing method based on edge computing according to claim 2, characterized in that, In step S2, the data quality vector consists of a message continuity component, an arrival jitter component, a time interval stability component, an instantaneous noise component, a saturation or constant value component, a calibration state component, and a cross-variable physical constraint compliance component. Each component is determined based on the message sequence number gap within the sliding window, the deviation of the edge reception time interval from the source time interval, the dispersion of adjacent sampling intervals, the deviation of the local difference of the measured value from the historical difference distribution, the duration of the measured value being at the sensor range boundary or remaining unchanged, the validity period of the calibration record, and the cross-variable physical constraint residual corresponding to the operating condition. Each component is subjected to anomaly direction transformation and normalization so that an increase in the value of each component indicates an increase in the deviation of the corresponding data quality index from the normal operating condition distribution, and each component is normalized to a preset common value range.
4. The IoT anomaly data processing method based on edge computing according to claim 3, characterized in that, In step S2, the communication sharing relationship graph uses sensors as nodes and establishes communication graph edges between sensor nodes that are the source of shared gateways, communication links, or abnormal messages; the device physical association graph uses sensors as nodes and establishes physical graph edges based on at least one of the following: device connection structure, energy transfer relationship, medium transfer relationship, and time delay correlation relationship of historical data under normal operating conditions; the overlap ratio of the time support interval of the connected samples and the corresponding component in the data quality vector are input into the graph edge weight update rule; when the updated graph edge weight reaches the validity threshold determined by the graph edge weight distribution of the historical window under normal operating conditions, the corresponding graph edge is marked as a valid graph edge.
5. The IoT anomaly data processing method based on edge computing according to claim 4, characterized in that, S3 includes: inputting historical data of the target sensor before the current time support interval, the current device operating condition, and data of effective adjacent sensors in the overlapping time support interval of the device physical association graph into the edge timing prediction unit to obtain the target sensor prediction value, and determining the target sensor prediction residual based on the target sensor measurement value and the target sensor prediction value; generating anomaly scores based on the deviation of the target sensor prediction residual from the normal operating condition residual distribution and the deviation of the data quality vector from the normal operating condition quality distribution, marking samples whose anomaly scores reach the initial anomaly threshold determined by the quantile value of the normal operating condition calibration samples as the initial anomaly points; determining the communication co-occurrence consistency based on the time overlap ratio of the initial anomaly points appearing at both ends of the effective graph edges of the communication sharing relationship graph, and determining the physical propagation consistency based on the order of appearance of the initial anomaly points along the effective physical graph edges of the device physical association graph according to the corresponding time delay.
6. The IoT anomaly data processing method based on edge computing according to claim 5, characterized in that, S4 includes: The target sensor prediction residual, data quality vector, communication co-occurrence consistency, and physical propagation consistency are input into the cause discrimination unit. The unit outputs one of the following cause states: communication disturbance, sensor inaccuracy, real equipment anomaly, and indeterminacy, along with the posterior probability of each candidate cause state. The posterior probability corresponding to the output cause state is used as the confidence level. Hysteresis entry threshold and hysteresis exit threshold are determined based on the anomaly score in the normal operating condition calibration sample. The hysteresis entry threshold is higher than the hysteresis exit threshold. When the anomaly score reaches the hysteresis entry threshold, an anomaly segment is initiated. After the anomaly segment is initiated, consecutive initial anomaly points with anomaly scores not lower than the hysteresis exit threshold are merged. Merging is terminated when the anomaly score is lower than the hysteresis exit threshold. The merged segment boundary is corrected based on the changes in prediction residuals and data quality vectors of adjacent points. The anomaly segment is generated by recording the start and end times, affected channels, original data index, cause state, and confidence level.
7. The IoT anomaly data processing method based on edge computing according to claim 6, characterized in that, Abnormal segments where communication co-occurrence consistency reaches the communication consistency threshold and message continuity or jitter components reach the upper quantile boundary of the corresponding normal operating condition are identified as communication disturbance candidates; abnormal segments where communication co-occurrence consistency does not reach the communication consistency threshold, physical propagation consistency does not reach the physical consistency threshold and at least one of saturation or constant value components or calibration state components reaches the upper quantile boundary of the corresponding normal operating condition are identified as sensor misalignment candidates; when physical propagation consistency reaches the physical consistency threshold, and the difference in the time of abnormal occurrence of the transvariable physical constraint residuals of the sensors connected to the effective physical graph edge of the device physical association graph is located at the time of the corresponding graph edge. When the abnormal segment appears within the hysteresis tolerance range and the order of occurrence conforms to the propagation direction represented by the graph edge, it is identified as a candidate for real equipment abnormality. Among the candidates whose posterior probability reaches the cause discrimination threshold determined by the target misjudgment upper limit of the cause calibration sample, the cause state corresponding to the one with the largest posterior probability is output. When the posterior probabilities of two candidates are tied for the maximum value, the cause state that appears first is output in the order of real equipment abnormality, sensor inaccuracy, and communication disturbance. When there are no candidates whose posterior probability reaches the cause discrimination threshold, the indeterminate state is output. For real equipment abnormality states, a device alarm control flag is output, and for indeterminate states, an automatic value replacement rejection flag is output.
8. The IoT anomaly data processing method based on edge computing according to claim 7, characterized in that, In step S5, after the cause state is communication disturbance or sensor misalignment and before the repair value is written, for each time point to be repaired in the abnormal segment, the first counterfactual repairer shields the data of the target sensor in the abnormal segment, selects adjacent sensors with valid graph edges and time support interval overlap ratio reaching the overlap threshold from the device physical association graph, and inputs the data of the selected adjacent sensors and the current device operating condition into the first counterfactual repairer to generate adjacent prediction candidates for the corresponding time point to be repaired; Based on the sensors in the communication sharing relationship graph that are connected to the target sensor through effective communication graph edges and co-occur with the initial anomaly point in the anomaly segment, the gateway identifier or communication link identifier recorded in the corresponding effective communication graph edge is determined as the anomaly communication resource identifier. The second counterfactual repairer masks the sensor data that shares the anomaly communication resource identifier with the target sensor and masks the data in the target sensor marked as the initial anomaly point. Only the remaining historical data of the target sensor before and after the anomaly segment is used to generate the self-historical prediction candidate corresponding to the time point to be repaired. When there is no adjacent sensor that meets the overlap threshold, or when the remaining historical data does not reach the input sequence length required by the edge time series prediction unit, a corresponding prediction candidate unavailable flag is generated.
9. The IoT anomaly data processing method based on edge computing according to claim 8, characterized in that, In step S5, for the calibration sample segment and the current anomalous segment, the supremacy of the values of each component in the data quality vector at each time point is calculated as the quality deviation value at the corresponding time point, and the median value of the quality deviation value at each time point within the segment is used as the segment quality score; the quality grading interval and length grading interval are determined according to the segment quality score quantile and consecutive missing length quantile of the calibration sample segment, respectively, using the quality level and consecutive missing length level as a joint index, and the historical prediction residual verified by the real measurement value of the corresponding time point to be repaired is stored in the calibration buffer according to the source of the counterfactual repairer; according to the quality grading interval and length grading interval into which the segment quality score of the current anomalous segment falls, the first counterfactual repairer and the... are read from the corresponding calibration buffer. The second counterfactual repairer uses historical prediction residuals; for each time point to be repaired, the absolute value of the respective historical prediction residual is used as the non-compliance score, the quantile value of the non-compliance score is determined according to the target coverage, and the adjacent conformal prediction interval containing the adjacent prediction candidates and the self-historical conformal prediction interval containing the self-historical prediction candidates are generated with the corresponding quantile value as the boundary; the allowable width is determined according to the sum of the alignment uncertainty and the sensor accuracy error boundary, and the adjacent conformal prediction interval and the self-historical conformal prediction interval are used as the two counterfactual prediction intervals; when there is a prediction candidate unavailable flag or the number of historical prediction residuals in the corresponding calibration buffer does not reach the number of samples required to generate the quantile value, the prediction interval unavailable flag for the corresponding time point to be repaired is generated.
10. The IoT anomaly data processing method based on edge computing according to claim 9, characterized in that, In step S5, the intersection of the two counterfactual prediction intervals is calculated for each time point to be repaired. The arithmetic mean of the lower and upper boundaries of the intersection is used as the robust center value for the corresponding time point to be repaired. When there are no prediction candidate unusable flags and prediction interval unusable flags, the intersection exists, the intersection width is not greater than the allowable width, the posterior probability corresponding to the communication disturbance or sensor misalignment reaches the cause discrimination threshold, and the robust center value satisfies the cross-variable physical constraints corresponding to the current equipment operating condition, a permissible repair result for the corresponding time point to be repaired is generated. The corresponding missing or erroneous data is replaced with the robust center value, and repair source, intersection boundary, and data quality vector labels are attached. If any unavailable flag exists or any of the aforementioned permission conditions are not met, a rejection result for the corresponding time point to be repaired is generated, the corresponding data is kept isolated, and the corresponding data is not written to the normal data buffer.
