Inspection robot early warning method, system and equipment combining state space model with causal intervention

By constructing a structured state-space model and a differentiable causal graph, the patrol robot can proactively intervene and determine abnormal precursors, solving the problems of inability to provide early warnings and high false alarm rates in existing technologies. It provides interpretable early warnings and improves the safety of inspection scenarios.

CN123177428APending Publication Date: 2026-11-27HANGZHOU JIZHI JUSHEN TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611092986.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-22
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing anomaly detection technologies for patrol robots cannot provide early warnings, have a high false alarm rate, cannot effectively distinguish between random noise and causal anomalies, and lack interpretability.

Method used

A structured state-space model is constructed using the Mamba architecture. Combined with a differentiable causal graph, the response changes are obtained through proactive intervention actions, the nature of the disturbance is determined, and an interpretable early warning report is generated.

Benefits of technology

It enables early warnings to be issued within T seconds before an abnormal event occurs, reducing the false alarm rate, improving the reliability and credibility of the early warning system, and providing explainable causes and development trends of anomalies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177428A_ABST
    Figure CN123177428A_ABST
Patent Text Reader

Abstract

The application provides a kind of fusion state space model and early warning method, system and equipment of causal intervention of inspection robot, which comprises the following steps: collecting and preprocessing multi-source time series data in the inspection scene. Construct a structured state space model, and extract the implicit state variables corresponding to the multi-source time series data. Construct a differentiable causal graph with implicit state variables as nodes, actively perform small intervention actions, obtain the response change of implicit state variables before and after intervention, and determine the current disturbance type according to the matching result of response change and causal strength. If it is determined that it is a precursor of causal anomaly, predict the future time series trajectory of the implicit state variable, and if it deviates from the preset normal state manifold and is predicted to exceed the preset critical point after T seconds, issue a warning and generate an explainable warning report. Obtain the warning verification result, and iteratively optimize the parameters of the structured state space model, the normal state manifold and the differentiable causal graph.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of anomaly detection and early warning technology for patrol robots, and particularly to an advanced early warning method, system and equipment for patrol robots that integrates state space model and causal intervention. Background Technology

[0002] As the core equipment for autonomous inspection, patrol robots' anomaly detection and early warning capabilities directly impact the safety and stability of inspection scenarios such as industrial parks, factories, oil depots, and substations. Currently, most existing anomaly detection technologies for patrol robots remain at the "post-event identification" level. This means that anomaly signals can only be detected and alarms issued by sensors after an abnormal event has already occurred (such as the appearance of an open flame, pipeline leaks, or attempted intrusion). This approach cannot predict potential risks in advance. This post-event early warning mode fails to provide sufficient time for personnel to respond, often leading to escalated losses in the event of sudden and highly dangerous anomalies such as oil pipeline leaks or pressure vessel ruptures.

[0003] In recent years, time-series forecasting models (such as recurrent neural networks and Transformers) have been attempted to be applied to anomaly prediction, using historical data to predict future states. However, most existing time-series forecasting models can only make correlation predictions based on historical data, making it difficult to uncover the causal relationships behind abnormal events and effectively distinguish between random noise and causal anomalies—for example, misjudging sensor signal fluctuations caused by birds flying over pipes as pipe leaks, or misjudging normal personnel passing by as intrusion, resulting in a high false alarm rate. At the same time, traditional anomaly early warning methods lack interpretability, only issuing a warning signal that "an anomaly exists," without clearly indicating the cause, development trend, or expected occurrence time of the anomaly, hindering rapid decision-making and response by staff.

[0004] Chinese patent CN120744749A proposes introducing causal inference into anomaly detection. It acquires multi-source data and updates a dynamic knowledge graph, extracts multi-dimensional feature vectors, and fuses these features to generate a preliminary anomaly score. It then combines a causal graph model and counterfactual reasoning to calculate the causal effect value of key features, calibrates the anomaly score, and generates intervention instructions. While this scheme introduces a causal inference mechanism, its technical approach relies on an autoencoder for anomaly reconstruction, and its intervention method—generating intervention instructions after anomaly detection—is a passive response or remedy after anomaly occurs, failing to achieve proactive prediction of anomaly events. Furthermore, this scheme struggles to capture the deep-seated patterns of dynamic changes in the physical world and cannot proactively predict the timing of anomaly events. Summary of the Invention

[0005] In order to overcome the shortcomings of the prior art, this invention provides a method, system and device for early warning of inspection robots that integrates state-space model and causal intervention.

[0006] To achieve the above objectives, the first aspect of the present invention provides a method for advance warning of inspection robots that integrates state-space models and causal intervention, comprising: Step S1: Collect multi-source time-series data from the patrol robot's inspection scenario and perform preprocessing; Step S2: Construct a structured state-space model using the Mamba architecture and extract implicit state variables corresponding to multi-source time-series data; Step S3: Construct a differentiable causal graph with implicit state variables as nodes, control the patrol robot to actively perform small intervention actions, obtain the response changes of implicit state variables before and after intervention, and determine whether the current disturbance belongs to a causal abnormal precursor or a correlated noise interference based on the matching results of the response changes and the causal strength in the differentiable causal graph. Step S4: If it is determined to be a causal abnormal precursor, the future time-series trajectory of the implicit state variable is predicted by the structured state-space model. When the future time-series trajectory deviates from the preset normal state manifold and is predicted to exceed the preset critical point after the advance warning duration T seconds, an early warning is issued, and an interpretable early warning report is generated based on the differentiable causal graph. If it is determined to be a correlated noise interference, the early warning is blocked. Step S5: Obtain the early warning verification results and iteratively optimize the parameters of the structured state-space model, the normal state manifold, and the differentiable causal graph; the verification results include three types: correct early warning, false alarm, and missed alarm.

[0007] According to an embodiment of the first aspect of the present invention, the nodes of the differentiable causal graph in step S3 include implicit state variables and preset abnormal event types; the implicit state variables include at least one of equipment pressure change rate, equipment vibration spectrum trend, gas diffusion gradient, and human flow density potential energy; the preset abnormal event types include at least one of equipment leakage, equipment failure, and personnel intrusion; the edges of the differentiable causal graph represent the causal relationship between the implicit state variables and the abnormal event types.

[0008] According to an embodiment of the first aspect of the present invention, the method for constructing the differentiable causal graph in step S3 is as follows: taking each implicit state variable and the preset abnormal event type as nodes, and the causal relationship between variables as edges, the causal strength is quantified by gradient descent. The value range of the causal strength is 0 to 1, and the larger the value, the stronger the causal relationship. The differentiable causal graph has differentiable characteristics, and its causal strength parameter participates in the gradient backpropagation in the training process of the structured state space model, so as to realize joint optimization with the structured state space model.

[0009] According to an embodiment of the first aspect of the present invention, the specific method for determining whether the current disturbance belongs to a causal anomaly precursor or correlated noise interference based on the matching result of the response change and the causal strength in the differentiable causal graph in step S3 is as follows: The changes of each implicit state variable before and after the intervention are obtained. For each implicit state variable, the product of its change and the causal strength of the variable connected to the anomalous event node in the differentiable causal graph is calculated. The weighted matching degree is obtained by summing the products. Among them, the causal strength is used as the weight coefficient of the change in the response of each variable. If the weighted matching degree is less than the preset discrimination threshold, the current disturbance is determined to be correlated noise interference; if the weighted matching degree is greater than or equal to the preset discrimination threshold, it is determined to be a precursor to causal anomaly.

[0010] According to an embodiment of the first aspect of the present invention, the minor intervention action in step S3 includes any one or more combinations of the following: changing the inspection angle of the patrol robot, emitting acoustic interference, adjusting the detection sensitivity or detection angle of the sensor.

[0011] According to an embodiment of the first aspect of the present invention, the specific method for generating an interpretable early warning report based on a differentiable causal graph in step S4 is as follows: Extract at least one anomalous event type and its corresponding causal path from the differentiable causal graph that has the strongest association with the implicit state variable that deviates from the normal state manifold. Quantify the current trend of implicit state variables in the causal path as the degree of anomaly; The degree of abnormality is compared with a preset level threshold to obtain the abnormality level; Based on the obtained anomaly level, an interpretable early warning report is generated, which includes the expected occurrence time of the anomaly, the cause of the anomaly, the current degree of anomaly, the anomaly level, and handling recommendations.

[0012] According to an embodiment of the first aspect of the present invention, in step S4, the normal state manifold is constructed by manifold learning or density estimation method based on the implicit state variable trajectory extracted from the multi-source time series data collected by the patrol robot under normal operating conditions; the advance warning duration T is dynamically set according to the safety level requirements of the inspection scenario, and the higher the safety level, the larger the value of T, and the value range of T is 3 seconds to 600 seconds.

[0013] According to an embodiment of the first aspect of the present invention, the iterative optimization in step S5 includes the following three parallel mechanisms: Parameter-level optimization: Adjust the extraction weights of implicit state variables in the structured state-space model based on the verification results, and adjust the preset critical point threshold of the normal state manifold. Cause-effect graph optimization: Adjust the causal strength quantification standard of each edge in the differentiable cause-effect graph based on the verification results; Intervention strategy optimization: Adjust the type and magnitude of minor intervention actions based on validation results; The three types of verification results trigger different optimization strategies: if the warning is correct, the weight of the current causal path is increased; if it is a false alarm, the corresponding causal strength is reduced and the intervention magnitude or type is adjusted to improve the distinguishability; if it is a missed alarm, the extraction weight of the corresponding implicit state variable is increased and the preset critical point threshold is reduced.

[0014] A second aspect of this invention provides an early warning system for abnormal events in patrol robots that integrates a state-space model and causal intervention. This system includes a data acquisition module, a latent state extraction module, a causal intervention discrimination module, an early warning module, and an iterative optimization module. The data acquisition module collects and preprocesses multi-source time-series data from patrol robot inspection scenarios. The latent state extraction module constructs a structured state-space model using the Mamba architecture and extracts the latent state variables corresponding to the multi-source time-series data. The causal intervention discrimination module constructs a differentiable causal graph with latent state variables as nodes, controls the patrol robot to actively perform minor intervention actions, obtains the response changes of the latent state variables before and after the intervention, and determines whether the current disturbance is a causal anomaly precursor or a correlated noise interference based on the matching result of the response changes and the causal strength in the differentiable causal graph. The early warning module is used to predict the future temporal trajectory of implicit state variables using a structured state-space model when a causal anomaly is identified. An early warning is issued when the future trajectory deviates from the preset normal state manifold and is predicted to exceed a preset critical point after an early warning duration of T seconds. An interpretable early warning report is generated based on the differentiable causal graph. The early warning is masked when the anomaly is determined to be related noise interference. The iterative optimization module is used to obtain the early warning verification results and iteratively optimize the parameters of the structured state-space model, the normal state manifold, and the differentiable causal graph.

[0015] A third aspect of the present invention also provides a computer device having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the steps of the above-mentioned method for advance warning of inspection robots that integrates state-space models and causal intervention.

[0016] In summary, this invention efficiently captures the long-term dependencies and dynamic evolution patterns of multi-source time-series data in inspection scenarios by constructing a structured state-space model, and extracts implicit state variables representing the potential state of the system. By predicting the future trajectories of these implicit state variables and comparing them with a preset normal state manifold, this invention can issue an early warning T seconds before an abnormal event actually occurs. This completely changes the passive situation of traditional technologies that can only identify anomalies after they occur, buying valuable time for staff to handle the situation, effectively preventing the escalation of accidents and increased losses, and significantly improving the safety of inspection scenarios. Furthermore, a differentiable causal graph and an active causal intervention mechanism are introduced. By controlling the patrol robot to perform small, preset intervention actions and observing the response changes of each implicit state variable after the intervention, combined with the quantified causal strength in the differentiable causal graph, it is possible to accurately determine whether the current signal disturbance originates from a real causal anomaly precursor or irrelevant random noise. This "active interference-causal verification" model fundamentally solves the problem of high false alarm rates caused by the inability of existing technologies to distinguish between correlation and causation, greatly improving the reliability and credibility of the early warning system.

[0017] To make the above and other objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0018] Figure 1 The diagram shown is a flowchart of an inspection robot early warning method that integrates a state-space model and causal intervention, according to an embodiment of the present invention.

[0019] Figure 2 As shown Figure 1 A schematic diagram of the specific process for step S3.

[0020] Figure 3 The diagram shows the principle block diagram of an inspection robot early warning system that integrates a state-space model and causal intervention. Detailed Implementation

[0021] Existing anomaly detection methods based on time-series prediction models suffer from a high false alarm rate because they can only predict future states based on historical data and cannot effectively distinguish between random noise and causal anomalies.

[0022] Therefore, this embodiment provides a method for early warning of abnormal events in patrol robots that integrates a state-space model and causal intervention with high prediction accuracy. It includes the following steps: Step S1: Collecting multi-source time-series data from the patrol robot's inspection scenario and preprocessing it. Step S2: Constructing a structured state-space model using the Mamba architecture and extracting implicit state variables corresponding to the multi-source time-series data. Step S3: Constructing a differentiable causal graph with implicit state variables as nodes, controlling the patrol robot to actively perform minor intervention actions, obtaining the response changes of implicit state variables before and after the intervention, and determining whether the current disturbance is a causal anomaly precursor or a correlated noise interference based on the matching results of the response changes and the causal strength in the differentiable causal graph. Step S4: If determined to be a causal anomaly precursor, the structured state-space model predicts the future time-series trajectory of the implicit state variables. When the future time-series trajectory deviates from the preset normal state manifold and is predicted to exceed a preset critical point after an early warning duration of T seconds, an early warning is issued, and an interpretable early warning report is generated based on the differentiable causal graph; if determined to be correlated noise interference, the early warning is masked. Step S5: Obtain the early warning verification results and iteratively optimize the parameters of the structured state-space model, the normal state manifold, and the differentiable causal graph; the verification results include three types: correct early warning, false alarm, and missed alarm.

[0023] This embodiment will use the method applied to an oil depot inspection scenario, focusing on providing early warnings of pipeline leaks and pressure vessel failures, for detailed explanation. However, this invention does not limit the scope of the invention in any way. The early warning method for abnormal events in patrol robots that integrates the state-space model and causal intervention provided in this embodiment can also be applied to early warning in other application scenarios such as pressure vessel rupture.

[0024] Step S1: Collect multi-source time-series data from the oil depot inspection scenario and perform preprocessing. This step includes: Step S11: Synchronous Data Acquisition from Multiple Sensors: The patrol robot is equipped with multiple types of sensors and collects data according to a preset sampling frequency. In this embodiment, the sensor configuration and acquisition parameters are as follows: The pressure sensor, with a measurement range of 0~10MPa and an accuracy of ±0.01MPa, is installed at the interface of oil pipes and pressure vessels to collect the internal pressure value of the oil pipes. p ( t ).

[0025] Vibration sensor, measuring range 10~1000Hz, accuracy ±1Hz, is attached to the outer shell of a pressure vessel to collect the vibration frequency of the vessel wall. f ( t ).

[0026] The gas sensor employs a semiconductor combustible gas detector to detect methane and gasoline vapors with a detection accuracy of 1 ppm, and collects the concentration of combustible gases. c (t ).

[0027] Infrared sensor (thermal imaging), resolution 160×120, acquires surface temperature distribution of the device. T ( t ).

[0028] High-definition cameras, with a resolution of 1920×1080, capture images of personnel movement and equipment exteriors within the oil depot. I ( t ).

[0029] All sensors are synchronously triggered at a sampling frequency of 1 time per second, and the data streams are unified to the same time base through a timestamp synchronization protocol (such as PTP precise time protocol) to form the original multi-source time series dataset D. raw ={ p ( t ), f ( t ), c ( t ), T ( t ), I ( t )}.

[0030] Step S12: Data Cleaning and Normalization: The raw time-series data collected in Step S11 is processed for missing and outlier values ​​and then normalized. Specifically, missing values ​​caused by communication packet loss are filled using linear interpolation; outliers are identified and removed using the 3σ criterion, and then filled using linear interpolation. To eliminate the influence of differences in the dimensions and magnitudes of different sensors on model convergence, Min-Max normalization is used to map all cleaned data to the [0,1] interval to achieve normalization.

[0031] Step S13, Time Alignment and Sliding Window Construction: After processing in steps S11 and S12, based on the unified timestamp in step S11, the timestamp nearest neighbor matching method is used to ensure the alignment of various types of data at each time step. Then, a fixed time window length is used... L A sliding window segment is performed with a step size of 1 second, based on 60 sampling points (corresponding to 60 seconds of historical data) to obtain the standardized time-series dataset D. norm ∈R B×L×D ,in B For batch size, D This is the feature dimension. In this embodiment... D =4, which correspond to the equipment pressure change rate, equipment vibration spectrum trend, gas diffusion gradient, and image feature compression vector after high-definition camera capture, respectively.

[0032] Step S2: Construct a structured state-space model and extract implicit state variables.

[0033] In one possible implementation, the step includes: Step S21: Construct a model structure based on the Mamba architecture.

[0034] This embodiment uses the Mamba architecture (selective state-space model) to construct a structured state-space model, the core of which is the selective state-space equation, used to capture the dynamic changes in the inspection environment. However, this invention does not impose any limitations on this.

[0035] The structured state-space model provided in this embodiment includes an input embedding layer, a temporal coding layer (based on SSM), a hidden state extraction layer, and a prediction layer. The basic discretized representation of the state-space model is as follows: Let the continuous state variables be h ( t )∈R N ( N For the state dimension, this embodiment takes... N =256), input is x ( t )∈R D The output is y ( t )∈R D Its continuous-time dynamic system is: h ′( t )=A h ( t )+B x ( t ); y ( t )=C h ( t )+D x ( t ); Where: A∈R N×N , B∈R N×D , C∈R D×N , D∈R D×D This is the learnable parameter matrix.

[0036] The Mamba architecture introduces a selectivity mechanism, making parameters B and C dependent on the input. x ( t This allows for adaptive attention to inputs at different times. The continuous system described above is discretized using the zero-order hold (ZOH) method, with a sampling interval Δ = 1 second, resulting in the discrete state update equation: ; ; Among them, subscript t Indicates the discrete time step index (corresponding to the first...) t (sampling value in seconds) t =1,2,…, L , L =60 is the sliding window length; discretization parameter .

[0037] Step S22: Temporal coding and hidden state extraction The normalized tensor D obtained in step S13 norm ∈R B×L×D Enter the Mamba-based model constructed in step S21: Input embedding layer: The original feature dimensions are reduced by one-dimensional convolution (kernel size of 3, stride of 1). D Mapping to model hidden dimensions H =512, resulting in the embedded sequence. X emb ∈R B×L×H .

[0038] The temporal coding layer consists of four stacked MambaBlock layers, each containing a selective SSM module and a SiLU activation function. The SSM module updates the discrete state according to the equation in step S21. X emb Perform recursive processing to output a context-dependent timing representation. X ssm ∈R B×L×H .

[0039] Hidden state extraction layer: for X ssm Global average pooling and adaptive pooling operations are applied in the time dimension, and the data is passed through a linear projection layer to extract the implicit state variable Z of the physical world. t ∈R B×4 This embodiment extracts implicit state variables in four dimensions, specifically: Rate of change of oil pipe pressure (i.e., rate of change of equipment pressure) Through finite difference Calculated and smoothed using SSM; Vibration spectrum trend of pressure vessel z 2( t (, through vibration signals) f ( t Perform a short-time Fourier transform (STFT) to extract the slope of the main frequency energy change; Combustible gas diffusion gradient z 3( t Based on gas concentrationc ( t Spatial gradient approximation ∇ c (Based on the location information of the inspection robot) it is obtained through encoding; Oil depot population density potential energy z 4( t Based on images captured by a high-definition camera, the number of people in the area is statistically analyzed using a target detection network (YOLOv8), and then converted into potential energy using kernel density estimation (KDE). However, this invention does not limit this process. In other embodiments, the implicit state variables may include at least one of the following: equipment pressure change rate, equipment vibration spectrum trend, gas diffusion gradient, and potential energy of crowd density.

[0040] Prediction layer: based on the current time t Extracted Z t Starting from the initial state, the future is predicted using the recursive form of the trained SSM. T pred =60 seconds of hidden state trajectory , Indicates from the current moment t Starting from the first k The predicted value of the step, k =1,2,…,60.

[0041] Step S23: Model Training and Parameter Initialization The structured state-space model employs a pre-training + fine-tuning strategy. During the pre-training phase, publicly available industrial time-series datasets (such as UCRTimeSeriesArchive) are used in conjunction with historical normal operation data for this scenario. Mean squared error (MSE) is used as both the reconstruction and prediction losses, and the optimizer is AdamW with an initial learning rate of 1×10⁻⁶. -3 Weight decay 1×10 -4 The batch size is 32, and the training lasts for 200 epochs.

[0042] After extracting the four-dimensional implicit state variables in step S2, step S3 constructs a differentiable causal graph with the implicit state variables as nodes and implements causal intervention. In one possible implementation, such as... Figure 2 As shown, this step includes: Step S31: Construct a differentiable causal graph with implicit state variables as nodes.

[0043] Based on the implicit state variable Z extracted in step S2 t ={ z 1( t ), z 2( t ), z 3( t ),z 4( t )} and preset abnormal event nodes (in this embodiment, the preset abnormal event type is: oil pipe leakage) e 1. Pressure vessel malfunction e 2) Construct a directed causal graph G=(V,ε). The node set V={ z 1, z 2, z 3, z 4, e 1, e 2}. The edge set ε represents the causal relationship between implicit state variables and anomalous event nodes, denoted by a differentiable adjacency matrix W, where W ij Represents a node i For abnormal event nodes j The causal strength is , with a value range of [0,1]. The larger the value, the stronger the causal relationship.

[0044] This embodiment initializes some edges based on physical priors: z 1 (rate of pressure change) → e 1. The initial causal strength (for leakage) is set to 0.85; z 2 (Vibration Trend) → e 2 (Container failure) Initial strength 0.78; z 3 (Gas diffusion gradient) → e The initial strength is 0.65; the remaining sides are initially set to 0.01. Although this embodiment uses equipment leakage and equipment failure as examples of preset abnormal event types, the present invention does not limit this in any way. In other embodiments, the preset abnormal event types include at least one of equipment leakage, equipment failure, and personnel intrusion.

[0045] In this embodiment, the differentiable causal graph has differentiable properties, and its causal strength parameter... W ij Gradient backpropagation is involved in the training process of the structured state-space model to achieve joint optimization with the structured state-space model. Specifically, these causal strength parameters... W ij In forward propagation, it participates in causal inference; in backward propagation, it receives gradients from the warning results of step S4 and the verification feedback of step S5, and updates them using gradient descent. ; in, For the causal consistency loss constructed based on the feedback in step S5 η The learning rate for the cause-effect graph (set to 5 × 10) -4 ).

[0046] Step S32: Control the patrol robot to actively perform minor intervention actions.

[0047] Specifically, the patrol robot actively performs minor intervention actions. This embodiment defines three intervention actions and their precise control parameters: Intervention action M1 (change detection angle): Control the pressure sensor gimbal via servo motor to deflect Δ in the horizontal direction. θ =±5°, with a period of 2 seconds, to collect the response change of the rate of change of oil pipe pressure before and after deflection; Intervention action M2 (sonic interference): emitting a frequency through the robot's onboard speaker. f sound =500Hz, volume V sound A continuous sound wave of 30 dB was emitted for 3 seconds, and the response changes of the gas diffusion gradient were observed. Intervention action M3 (switching detection sensitivity): dynamically switches the sampling sensitivity of the gas sensor from 1ppm to 5ppm and then switches it back, recording the reading deviation at different sensitivities.

[0048] The intervention actions were executed sequentially according to a preset cycle (once every 30 seconds). A hidden state variable data window of length 5 seconds was recorded before and after each execution, denoted as Z. pre (Before intervention) and Z post (After intervention).

[0049] Although this embodiment uses minor intervention actions, including changing the detection angle, acoustic interference, and switching detection sensitivity, as examples, the present invention does not limit these actions in any way. In other embodiments, minor intervention actions include any one or more combinations of the following: changing the inspection angle of the patrol robot, emitting acoustic interference, adjusting the detection sensitivity or detection angle of the sensor; wherein: the deviation range of changing the inspection angle is ±3° to ±5°, the frequency range of the acoustic interference is 400Hz to 600Hz and the volume range is 20dB to 40dB, and the deviation range of the sensor detection angle is ±5°.

[0050] Step S33: Obtain the response change of the implicit state variables before and after the intervention, and base the results on the matching of the response change with the causal strength in the differentiable causal graph.

[0051] In one possible implementation, the step includes: Step S331: Obtain the changes Δ of each implicit state variable before and after the intervention. z i =∣ z i,post - z i,pre| For each latent variable, calculate the product of its change and the causal strength of its connection to the anomalous event node in the differentiable causal graph. Sum these products to obtain the weighted matching degree. S : ; in, Implicit state variables z i Pointing to an exception event e j The causal strength is used as a weighting coefficient for the change in the response of each variable.

[0052] Step S332: Preset the judgment threshold based on experience values. τ =0.1. If S ≥ τ If so, the current disturbance is determined to be a precursor to a causal anomaly; if S < τ If it is, then it is determined to be correlated noise interference (e.g., brief signal jitter caused by a bird flying over a pipe, although Δ z i Larger, but the path weights in the causal graph W ≈0, therefore S (Extremely small).

[0053] This embodiment controls a patrol robot to perform minor, pre-set intervention actions (such as adjusting sensor angles or emitting specific sound waves), and observes the response changes of each implicit state variable after the intervention. Combined with the quantified causal strength in a differentiable causal graph, it can accurately determine whether the current signal disturbance originates from a genuine causal anomaly precursor or irrelevant random noise (such as birds flying or changes in light and shadow). This "active interference-causal verification" model fundamentally solves the problem of high false alarm rates caused by the inability to distinguish between correlation and causality in existing technologies, greatly improving the reliability and credibility of the early warning system.

[0054] If step S3 determines that the current disturbance belongs to correlated noise interference, step S4 will disable the warning, i.e., no warning will be output. However, if step S3 determines that the current disturbance belongs to a causal anomaly precursor, step S4 will be executed to issue an early warning for the abnormal event and generate an interpretability report.

[0055] In one possible implementation, the steps for providing early warning of abnormal events and generating interpretable reports include: Step S41: Normal state manifold construction and trajectory deviation detection Based on the continuous collection of 7 days of multi-source time-series data by the patrol robot under normal operating conditions at the oil depot, the corresponding hidden state variable trajectory set Z is extracted according to steps S1~S2. normalThe normal state manifold M is constructed using Gaussian mixture model (GMM) density estimation or variational autoencoder (VAE) estimation, and the probability density distribution P(Z) of the normal state in high-dimensional space is obtained by fitting.

[0056] During real-time operation, the structured state-space model continuously outputs future trajectories. , Indicates from the current moment t Starting from the first k The predicted value of the step, k =1,2,…,60. Calculate the Mahalanobis distance between the predicted trajectory points and the normal manifold. d t+k And determine its relationship with the deviation from the critical threshold θ. If it is predicted for the first time... d t+k When the value is greater than θ, record that moment; if the prediction is displayed after T seconds (i.e., ... k =T) will result in a continuous deviation and d t+T >1.2 θ If the target deviates from the preset critical point, an advance warning is activated. The advance warning duration T is dynamically set according to the security level requirements of the inspection scenario; the higher the security level, the larger the T value. The range of T is 3 seconds to 600 seconds. In this embodiment, T is set to 45 seconds. However, this invention does not impose any limitations on this. In other embodiments, when the fusion state space model and causal intervention-based patrol robot abnormal event advance warning provided by this invention are applied to park inspections, focusing on advance warning of suspicious personnel intrusion and equipment failure, T can be set to 3 seconds. The generated warning report is: "It is expected that in 3 seconds, a suspicious person at the gate of Area A will reach the abnormal loitering threshold, indicating an intent to intrude; it is recommended that security personnel go to verify and activate on-site monitoring focus." Step S42: Generate an interpretability warning report In one possible implementation, the step includes: Step S421: Extract at least one anomalous event type and its corresponding causal path from the differentiable causal graph that has the highest correlation strength with the implicit state variables of the current deviation from the normal state manifold. Specifically, extract all incoming edges pointing to anomalous event nodes from the differentiable causal graph G, and rank them according to causal strength. W Sort; select the path with the highest strength. z i → e j As the main causal pathway.

[0057] Step S422: Transform the causal path z i → e jThe current trend of implicit state variables is quantified as the degree of anomalousness. Specifically, the current trend of implicit state variables is quantified as the degree of anomalousness. α = d t+T / σ ,in T =45 seconds is the advance warning duration in this embodiment. α ∈[0,5], where σ is the standard deviation of the normal manifold (e.g., σ=0.5).

[0058] Step S423: Determine the degree of abnormality α The anomaly level is obtained by comparing it with a preset level threshold. Specifically, the degree of anomaly is classified. α The abnormality level is obtained by comparing it with preset level thresholds γ1 and γ2, preferably setting γ1=1.2 and γ2=2.5; α <1.2 indicates "mild", 1.2≤ α A score of <2.5 indicates "moderate". α ≥2.5 is considered "severe". However, this invention does not impose any limitation on this.

[0059] Step S424: Generate an interpretable early warning report based on the obtained anomaly level, including the expected occurrence time of the anomaly, the cause of the anomaly, the current degree of anomaly, the anomaly level, and handling suggestions.

[0060] Specifically, the generated interpretability alerts include: Expected time of occurrence: from the current moment T =45 seconds later; Cause of the anomaly: "Pressure change rate of oil pipe No. 3 in area B" z 1. The pressure continues to rise, currently at 0.048 MPa / s, via a causal path. z 1→ e 1 (Intensity 0.85) Indicates a risk of leakage; Current level of anomaly: α =1.8 (moderate); Recommendations: "Immediately check valve No. 3 on oil pipeline in Zone B, shut off any sources of ignition in the vicinity, and arrange for personnel to conduct an on-site inspection."

[0061] After obtaining the early warning result in step S4, staff conduct on-site verification based on the warning report and input the warning verification result (whether the warning was correct, a false alarm, or a missed alarm) through the terminal APP or the back-end system. In this embodiment, the verification found that the valve of oil pipe No. 3 was slightly loose, and the warning was correct.

[0062] Step S5 will obtain the early warning verification results and iteratively optimize the parameters of the structured state-space model, the normal state manifold, and the differentiable causal graph. The three types of verification results will trigger different optimization strategies: if the early warning is correct, the weight of the current causal path will be increased; if it is a false alarm, the corresponding causal strength will be reduced and the intervention magnitude or type will be adjusted to improve the discriminative power; if it is a missed alarm, the extraction weight of the corresponding implicit state variable will be increased and the preset critical point threshold will be reduced.

[0063] In one possible implementation, iterative optimization includes the following three parallel mechanisms: Parameter-level optimization: Based on the validation results, adjust the extraction weights of implicit state variables in the structured state-space model and adjust the preset critical point thresholds of the normal state manifold. Specifically, in the hidden state extraction layer of the SSM, the weights of Z are adjusted. t Output connection weights in each dimension W out ∈R 4×512 Fine-tuning is performed. For latent variables that provide correct early warnings (in this example)... z 1) Enhance its weights through gradient ascent, ∇ W out (new) = W out (old) + λ ⋅∇, where λ =0.01. Simultaneously adjust the preset critical point threshold for the normal manifold. θ (For example, lowering it from 3.5 to 3.3 to improve sensitivity).

[0064] Cause-effect graph optimization: Adjust the causal strength quantification criteria for each edge in the differentiable cause-effect graph based on the validation results. Specifically, adjust the causal strength quantification criteria for each edge in the differentiable cause-effect graph. z 1→ e The intensity of 1 was increased from 0.85 to 0.88. z 3→ e The strength is kept constant at 0.65, and W is updated step by step using the Adam optimizer.

[0065] Intervention strategy optimization: Adjust the type and magnitude of minor intervention actions based on the validation results. Specifically, adjust the type and magnitude of minor intervention actions. Adjust the pressure sensor detection angle deviation from ±5° to ±3° to reduce disturbance to the normal inspection trajectory while maintaining discrimination; adjust the sound wave frequency from 500Hz to 480Hz to avoid resonance interference with the equipment's natural frequency.

[0066] It should be understood that, although Figure 1The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0067] Corresponding to the aforementioned method for early warning of abnormal events in patrol robots that integrates state-space models and causal intervention, this embodiment also provides an early warning system for abnormal events in patrol robots that integrates state-space models and causal intervention. For example... Figure 3 As shown, it includes a data acquisition module 10, a latent state extraction module 20, a causal intervention discrimination module 30, an early warning module 40, and an iterative optimization module 50. The data acquisition module 10 is used to collect multi-source time-series data from the patrol robot's inspection scenario and perform preprocessing. The latent state extraction module 20 is used to construct a structured state-space model using the Mamba architecture and extract the latent state variables corresponding to the multi-source time-series data. The causal intervention discrimination module 30 is used to construct a differentiable causal graph with latent state variables as nodes, control the patrol robot to actively execute minor intervention actions, obtain the response changes of the latent state variables before and after the intervention, and determine whether the current disturbance belongs to a causal anomaly precursor or correlated noise interference based on the matching results of the response changes and the causal strength in the differentiable causal graph. The early warning module 40 is used to predict the future temporal trajectory of implicit state variables using a structured state-space model when a causal anomaly is identified. When the future temporal trajectory deviates from the preset normal state manifold and is predicted to exceed a preset critical point after an early warning duration of T seconds, an early warning is issued, and an interpretable early warning report is generated based on the differentiable causal graph. The early warning is masked when the anomaly is determined to be related noise interference. The iterative optimization module 50 is used to obtain the early warning verification results and iteratively optimize the parameters of the structured state-space model, the normal state manifold, and the differentiable causal graph.

[0068] Since the fused state-space model and the causal intervention-based patrol robot abnormal event early warning system provided in this embodiment are different from those described in the above embodiments... Figure 1 The system corresponding to the fusion state-space model and the causal intervention-based early warning method for abnormal events in patrol robots shares the same concept in the execution steps of each module as in the above method embodiments. Therefore, steps S1 to S5 above can be referred to, and will not be elaborated here.

[0069] Thirdly, this embodiment also provides a computer device storing a computer program, which, when executed by a processor, implements steps S1 to S5 in the above-mentioned method for early warning of abnormal events of patrol robots that integrates state-space model and causal intervention.

[0070] In summary, this invention efficiently captures the long-term dependencies and dynamic evolution patterns of multi-source time-series data in inspection scenarios by constructing a structured state-space model, and extracts implicit state variables representing the potential state of the system. By predicting the future trajectories of these implicit state variables and comparing them with a preset normal state manifold, this invention can issue an early warning T seconds before the actual occurrence of an abnormal event (i.e., the advance warning duration T). This completely changes the passive situation of traditional technologies that can only identify anomalies after they occur, buying valuable time for staff to handle the situation, effectively preventing the escalation of accidents and increased losses, and significantly improving the safety of inspection scenarios. Furthermore, a differentiable causal graph and an active causal intervention mechanism are introduced. By controlling the patrol robot to perform small, preset intervention actions and observing the response changes of each implicit state variable after the intervention, combined with the quantified causal strength in the differentiable causal graph, it is possible to accurately determine whether the current signal disturbance originates from a real causal anomaly precursor or irrelevant random noise. This "active interference-causal verification" model fundamentally solves the problem of high false alarm rates caused by the inability of existing technologies to distinguish between correlation and causation, greatly improving the reliability and credibility of the early warning system.

[0071] Although the present invention has been disclosed above by way of preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art may make some modifications and refinements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the scope of protection claimed in the claims.

Claims

1. A robot early warning method integrating state-space model and causal intervention, characterized in that, include: Step S1: Collect multi-source time-series data from the patrol robot's inspection scenario and perform preprocessing; Step S2: Construct a structured state-space model using the Mamba architecture and extract the implicit state variables corresponding to the multi-source time-series data; Step S3: Construct a differentiable causal graph with the implicit state variables as nodes, control the patrol robot to actively perform micro-intervention actions, obtain the response change of the implicit state variables before and after the intervention, and determine whether the current disturbance belongs to a causal abnormal precursor or a correlated noise interference based on the matching result of the response change and the causal strength in the differentiable causal graph. Step S4: If it is determined to be a causal abnormal precursor, the structured state space model predicts the future time trajectory of the implicit state variable. When the future time trajectory deviates from the preset normal state manifold and is predicted to exceed the preset critical point after the advance warning duration T seconds, an early warning is issued, and an interpretable early warning report is generated based on the differentiable causal graph. If the interference is determined to be related noise, then the warning will be blocked. Step S5: Obtain the early warning verification results and iteratively optimize the parameters of the structured state space model, the normal state manifold, and the differentiable causal graph; the verification results include three types: correct early warning, false alarm, and missed alarm.

2. The method according to claim 1, characterized in that, The nodes of the differentiable causal graph in step S3 include the implicit state variables and the preset abnormal event types; the implicit state variables include at least one of equipment pressure change rate, equipment vibration spectrum trend, gas diffusion gradient, and human flow density potential energy; the preset abnormal event types include at least one of equipment leakage, equipment failure, and personnel intrusion; the edges of the differentiable causal graph represent the causal relationship between the implicit state variables and the abnormal event types.

3. The method according to claim 2, characterized in that, The method for constructing the differentiable causal graph in step S3 is as follows: using each implicit state variable and the preset abnormal event type as nodes, and the causal relationship between variables as edges, the causal strength is quantified by gradient descent. The value of the causal strength ranges from 0 to 1, and the larger the value, the stronger the causal relationship. The differentiable causal graph has differentiable properties, and its causal strength parameter participates in the gradient backpropagation during the training process of the structured state space model, thereby achieving joint optimization with the structured state space model.

4. The method according to claim 1, characterized in that, The specific method for determining whether the current disturbance belongs to a causal anomaly precursor or correlated noise interference based on the matching result of the response change and the causal strength in the differentiable causal graph in step S3 is as follows: The changes of each implicit state variable before and after the intervention are obtained. For each implicit state variable, the product of its change and the causal strength of the variable connected to the anomalous event node in the differentiable causal graph is calculated. The weighted matching degree is obtained by summing the products. The causal strength is used as the weighting coefficient of the change in the response of each variable. If the weighted matching degree is less than a preset discrimination threshold, the current disturbance is determined to be correlated noise interference; if the weighted matching degree is greater than or equal to the preset discrimination threshold, it is determined to be a precursor to causal anomaly.

5. The method according to claim 1, characterized in that, The minor intervention action described in step S3 includes any one or more combinations of the following: changing the inspection angle of the patrol robot, emitting sound wave interference, adjusting the detection sensitivity or detection angle of the sensor.

6. The method according to claim 1, characterized in that, The specific method for generating an interpretable early warning report based on the differentiable causal graph in step S4 is as follows: Extract at least one anomalous event type and its corresponding causal path from the differentiable causal graph that has the strongest correlation with the implicit state variable that deviates from the normal state manifold. The current trend of the implicit state variables in the causal path is quantified as the degree of anomaly. The degree of abnormality is compared with a preset level threshold to obtain the abnormality level; Based on the obtained anomaly level, an interpretable early warning report is generated, which includes the expected occurrence time of the anomaly, the cause of the anomaly, the current degree of anomaly, the anomaly level, and handling recommendations.

7. The method according to claim 1, characterized in that, The normal state manifold described in step S4 is constructed by extracting the implicit state variable trajectory from the multi-source time-series data collected by the patrol robot under normal operating conditions, and then using manifold learning or density estimation methods. The advance warning duration T is dynamically set according to the safety level requirements of the inspection scenario. The higher the safety level, the larger the value of T. The value of T ranges from 3 seconds to 600 seconds.

8. The method according to claim 1, characterized in that, The iterative optimization described in step S5 includes the following three parallel mechanisms: Parameter-level optimization: Adjust the extraction weights of implicit state variables in the structured state space model based on the verification results, and adjust the preset critical point threshold of the normal state manifold. Cause-effect graph optimization: Adjust the causal strength quantification standard of each edge in the differentiable cause-effect graph based on the verification results; Intervention strategy optimization: Adjust the type and magnitude of the micro-intervention actions based on the validation results; The three types of verification results trigger different optimization strategies: if the warning is correct, the weight of the current causal path is increased; If it is a false alarm, the corresponding causal strength is reduced and the intervention magnitude or type is adjusted to improve the distinguishability; if it is a false negative, the extraction weight of the corresponding implicit state variable is increased and the preset critical point threshold is reduced.

9. A patrol robot abnormal event early warning system integrating state-space model and causal intervention, characterized in that, include: The data acquisition module is used to collect multi-source time-series data in the patrol robot inspection scenario and perform preprocessing. The implicit state extraction module is used to construct a structured state space model using the Mamba architecture and extract the implicit state variables corresponding to the multi-source time series data. The causal intervention discrimination module is used to construct a differentiable causal graph with the implicit state variables as nodes, control the patrol robot to actively perform micro-intervention actions, obtain the response change of the implicit state variables before and after the intervention, and determine whether the current disturbance belongs to a causal abnormal precursor or a correlated noise interference based on the matching result of the response change and the causal strength in the differentiable causal graph. The early warning module is used to predict the future temporal trajectory of the implicit state variable by the structured state space model when it is determined to be a causal abnormality precursor. When the future temporal trajectory deviates from the preset normal state manifold and is predicted to exceed the preset critical point after the early warning duration T seconds, an early warning is issued, and an interpretable early warning report is generated based on the differentiable causal graph. When the interference is determined to be related noise, a warning will be issued. The iterative optimization module is used to obtain the early warning verification results and iteratively optimize the parameters of the structured state space model, the normal state manifold, and the differentiable causal graph.

10. A computer device having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Intelligent anomaly recognition and intervention processing method, device and equipment and medium

    CN120744749A