An unmanned aerial vehicle visual anomaly perception method and system based on a dynamic topology evolution graph neural network
By constructing a dynamic graph structure through a dynamic topological evolution graph neural network, the problem of dynamic interaction and spatiotemporal consistency in UAV visual anomaly perception methods under complex dynamic environments is solved, enabling accurate perception and risk prediction of anomaly areas.
Patent Information
- Application Number
- CN202611033601.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-13
- Publication Date
- 2026-11-24
AI Technical Summary
Existing UAV visual anomaly perception methods are difficult to effectively express the dynamic interaction and spatiotemporal consistency between anomaly regions in complex dynamic environments. Fixed topology structures cannot dynamically reflect the propagation relationship between anomaly regions, resulting in the inability to accurately analyze the anomaly diffusion path and risk propagation direction.
A dynamic topological evolution graph neural network is adopted. Through multimodal feature fusion and superpixel region partitioning, a dynamic graph structure is constructed to adaptively update the relationship between nodes and edges. By combining the dynamic graph temporal memory mechanism and the topological evolution update mechanism, the spatiotemporal consistency of abnormal targets and risk propagation prediction are realized.
It enhances the ability of drones to perceive anomalies and provide early warnings of risks in complex and dynamic scenarios, and can dynamically model the correlation between abnormal areas to accurately predict the development trend of anomalies and the direction of risk propagation.
Smart Images

Figure CN123161097A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of UAV visual anomaly perception technology, and in particular to a method and system for UAV visual anomaly perception based on a dynamic topological evolution graph neural network. Background Technology
[0002] Currently, most UAV visual anomaly perception methods are based on convolutional neural networks (CNNs) or Transformer visual models for target detection and anomaly recognition. For example, methods such as the YOLO series, Faster-RCNN, Mask-RCNN, and Vision Transformer all extract features from single-frame images and perform target classification and localization. While these methods demonstrate good detection accuracy in static image detection tasks, they still have significant limitations in complex dynamic environments.
[0003] Further analysis reveals that existing anomaly detection methods based on convolutional neural networks primarily rely on single-frame images for target recognition, focusing on local visual features of the target and lacking the ability to effectively model the relationships between anomaly regions that evolve over time. When continuously evolving phenomena such as crack propagation, fire spread, and landslide development occur in drone inspection scenarios, relying solely on single-frame features is insufficient to accurately represent the dynamic interactions between anomaly regions.
[0004] Meanwhile, although existing Transformer class methods can obtain global feature information, they usually adopt a fixed token relationship structure, which makes it difficult to adjust the relationship between regions in real time according to changes in the scene. Therefore, it is difficult to describe the evolution process of abnormal targets on a continuous time scale and lacks the ability to express the spatiotemporal consistency of abnormal regions.
[0005] Furthermore, most existing graph neural network methods employ fixed topologies, with node and edge relationships remaining largely unchanged after model training. When the target's motion state, spatial relationships, and anomaly development trends change during UAV inspections, fixed topologies struggle to dynamically reflect the propagation relationships between anomaly areas, making it impossible to further analyze anomaly propagation paths and risk propagation directions.
[0006] Therefore, there is an urgent need to propose a novel UAV visual anomaly perception method that can dynamically construct visual relationship graphs, adaptively update graph topology, learn anomaly propagation rules, and strengthen spatiotemporal correlation expression, in order to solve the above-mentioned problems in existing technologies. Summary of the Invention
[0007] Purpose of the invention: The first purpose of this invention is to provide a method for visual anomaly perception of UAVs based on dynamic topological evolution graph neural networks, which realizes the spatiotemporal consistency of the continuous evolution process of abnormal targets, as well as the prediction of the anomaly development trend and risk propagation direction, thereby improving the anomaly perception and risk warning capabilities of UAVs in complex dynamic scenarios.
[0008] The second objective of this invention is to provide a system for a method of visual anomaly perception for unmanned aerial vehicles based on a dynamic topological evolution graph neural network.
[0009] Technical Solution: To achieve the above objectives, the present invention provides a method for UAV visual anomaly perception based on a dynamic topological evolution graph neural network, comprising the following steps:
[0010] S1. Using a drone at timestamp t, acquire multimodal scene observation data of the monitored area, and perform feature extraction to obtain the scene state obtained by multimodal feature fusion. The multimodal observation data includes visible light RGB images, infrared thermal imaging images, depth images, optical flow field information, and UAV attitude information of the scene. The multimodal features include visual, heat distribution, spatial structure, motion, and pose features of the scene.
[0011] S2, Scene Status Superpixel regions are divided to obtain a set of superpixel regions. ;
[0012] S3, Set the superpixel regions Abstracted into dynamic graphs , , , These represent the set of nodes, edges, and edge weights at timestamp t, respectively, and the dynamic graph at adjacent timestamps. Dynamic updates are performed based on the established update mechanism;
[0013] S4. Calculate the node anomaly representations for each dynamic graph. ;
[0014] S5. Based on the node anomaly representation of each dynamic graph. To obtain the target propagation results, including: propagation path, main propagation direction, and prediction of future impact areas.
[0015] Preferably, the scene state Represented as:
[0016] ,
[0017] ,
[0018] in, This indicates a feature concatenation operation. This represents the multimodal feature fusion mapping function. , , , , With the same dimensions, the visual features, heat distribution features, spatial structure features, motion features, and pose features of the scene are mapped to a unified dimension.
[0019] Preferably, the scene state Superpixel region division includes:
[0020] S21. First, analyze the visible light RGB image under timestamp t. Perform segmentation to generate an initial set of superpixel regions:
[0021] ,
[0022] in, Indicates the first An initial superpixel region; This represents the total number of initial superpixel regions. ;
[0023] S22. Obtain the region-level multimodal features of each initial superpixel region. The region-level multimodal features corresponding to each initial superpixel region Represented as:
[0024] ,
[0025] in, , , , , These represent the initial superpixel regions. Visual features, heat distribution features, spatial structure features, motion features, and pose features;
[0026] S23. For adjacent initial superpixel regions at the same timestamp, the initial superpixel region set is adjusted based on the region-level multimodal feature similarity. Perform region aggregation, and the resulting set of superpixel regions is represented as follows:
[0027] ,
[0028] in, This represents the total number of superpixel regions after aggregation at timestamp t. , , The first superpixel region set represents the first superpixel region. One superpixel region;
[0029] S24. According to the index Update the superpixel region set Regional-level multimodal features, for superpixel regions Regional multimodal features Represented as:
[0030] ,
[0031] in, These represent superpixel regions. Visual features, heat distribution features, spatial structure features, motion features, and posture features.
[0032] Preferably, the initial superpixel region The visual features, heat distribution features, spatial structure features, motion features, and pose features are respectively represented as:
[0033] ,
[0034] ,
[0035] ,
[0036] ,
[0037] ,
[0038] in, , , , , These represent convolutional feature maps of visible light RGB images, infrared thermal imaging images, depth images, optical flow field information, and UAV attitude information, respectively. This indicates that on the convolutional feature map, for the initial superpixel region... The pixel index area, This indicates a region average pooling operation.
[0039] Preferably, the multimodal feature similarity of adjacent initial superpixel regions at the same timestamp is calculated and expressed as:
[0040] ,
[0041] ,
[0042]
[0043] ,
[0044] ,
[0045] ,
[0046] Among them, for adjacent initial superpixel regions and , , , , , These represent visual similarity, thermal distribution similarity, spatial structure similarity, motion consistency, and pose correlation, respectively. , These are weight parameters; This represents the function for calculating feature similarity. They are not the same, and their values are within a certain range. ;
[0047] When the following conditions are met: At that time, the area and Merging, among which, This indicates the region aggregation threshold.
[0048] Preferably, the node set Represented as:
[0049] ,
[0050] Among them, nodes Represents superpixel region ,node Feature representation for:
[0051] ,
[0052] ,
[0053] in, This indicates a feature concatenation operation. , Indicates to The coefficients of the dimensionality reduction operation;
[0054] The set of edges Represented as:
[0055] ,
[0056] ,
[0057] ,
[0058] ,
[0059] in, Represents the set of spatial edges. Represents the set of time edges. Represents the region adjacency function. express There are public boundaries; This represents the regional continuity score of adjacent nodes at adjacent timestamps. Indicates adjacent nodes under adjacent timestamps;
[0060] The edge weight set Represented as:
[0061] ,
[0062] ,
[0063] ,
[0064] ,
[0065] ,
[0066] in, Represents the set of spatial edge weights. Indicates adjacent nodes under the same timestamp Spatial edge weights between them This indicates the multimodal feature similarity between adjacent superpixel regions at the same timestamp. This represents adjacent nodes under adjacent timestamps. The regional continuity score.
[0067] Preferably, the node set update mechanism is as follows:
[0068] When a new superpixel region appears in the scene, perform a node addition operation on the node set;
[0069] When a target in the scene leaves a superpixel region or disappears abnormally, a node deletion operation is performed on the node set.
[0070] When multiple superpixel regions in a scene gradually connect to form a unified target, a node merging operation is performed on the node set.
[0071] When a single superpixel region in the scene is fragmented and forms multiple independent regions, a node splitting operation is performed on the node set.
[0072] The edge set update mechanism is as follows: After the node set is updated, the edges in the spatial edge set and temporal edge set whose relationships are less than a set threshold or that have become invalid are deleted based on the spatial and temporal connection relationships between the nodes; new connection edges are established for nodes with newly generated associations.
[0073] Edge weight set update mechanism: Based on the updated edge set, the spatial edge weight and temporal edge weight are recalculated.
[0074] Preferably, for dynamic graphs Abnormal node states are represented as follows:
[0075] ,
[0076] ,
[0077] in, Represents a node Abnormal response value, The anomaly detection function is composed of a fully connected layer and a sigmoid activation function. Represented by node Feature representation The input features are fed into the topological evolution graph neural network, and the final output is the node state update representation.
[0078] The aforementioned topological evolution graph neural network is a multi-layer graph attention network that takes dynamic graph sequences as input and labeled abnormal nodes in each frame as supervision. In the spatial dimension, it uses a fixed attention score obtained by exponentially normalizing the spatial edge weights for neighborhood aggregation. In the temporal dimension, it uses memory coefficients to pass the output of the last layer at the current time step to the initial state at the next time step, maintaining the smooth evolution of abnormal responses along the time sequence. At the same time, the network adapts to the real-time updates of the dynamic graph structure and finally outputs the abnormal responses of each node through a fully connected layer.
[0079] Preferably, the propagation path acquisition process is as follows:
[0080] Calculate the target from node at the same timestamp. to adjacent nodes The propagation probability is:
[0081] ,
[0082] And the propagation probability satisfies:
[0083] ,
[0084] The change in target propagation probability at adjacent timestamps is:
[0085] ,
[0086] when This indicates an increasing trend of target propagation, and is marked as a single-step path of target propagation at a certain timestamp;
[0087] when This indicates a weakening trend in the spread of the target message;
[0088] Based on the marked single-step paths, construct the target propagation path on the time series. , represented as:
[0089] ,
[0090] in Represents the total timestamp of the transmission. This represents the total number of abnormal nodes in the propagation. Indicates the index of the abnormal node in the propagation; Represents a node The set of neighboring nodes, The index of a node within the neighborhood node set;
[0091] The calculation process for the main propagation direction is as follows:
[0092] Set abnormal nodes , The center coordinates are as follows:
[0093] ,
[0094] ,
[0095] The propagation direction vector is then represented as:
[0096] ,
[0097] Calculate the main propagation direction of the anomaly based on all propagation direction vectors:
[0098] ;
[0099] in, Indicates the main direction of abnormal diffusion. express The probability of propagation between them;
[0100] The process for obtaining the future impact area is as follows:
[0101] Set nodes The future risk impact value is:
[0102] ,
[0103] When the following conditions are met: If the area corresponding to the node is determined to be within the target's potential influence area, then... Add to the set of future impact areas ;
[0104] in, This indicates the threshold that affects the judgment. Represents a node Abnormal response value.
[0105] The present invention discloses a UAV visual anomaly perception system based on a dynamic topological evolution graph neural network, comprising:
[0106] Scene state generation module: Used by UAV to acquire multimodal scene observation data of the monitored area at timestamp t, and perform feature extraction to obtain the scene state obtained by multimodal feature fusion. The multimodal observation data includes visible light RGB images, infrared thermal imaging images, depth images, optical flow field information, and UAV attitude information of the scene. The multimodal features include visual, heat distribution, spatial structure, motion, and pose features of the scene.
[0107] Scene state division module: used for classifying scene states Superpixel regions are divided to obtain a set of superpixel regions. ;
[0108] Dynamic graph building module: used to assemble superpixel regions Abstracted into dynamic graphs , , , These represent the set of nodes, edges, and edge weights at timestamp t, respectively, and the dynamic graph at adjacent timestamps. Dynamic updates are performed based on the established update mechanism;
[0109] Node anomaly representation calculation module: Used to calculate the node anomaly representations for each dynamic graph. ;
[0110] Target propagation result acquisition module: used to obtain the node anomaly representations of each dynamic graph. To obtain the target propagation results, including: propagation path, main propagation direction, and prediction of future impact areas.
[0111] Beneficial effects: The present invention has the following advantages: The present invention constructs a spatiotemporal topology graph structure that updates dynamically over time, maps regional objects in the UAV visual scene to dynamic graph nodes, and dynamically establishes node connection relationships based on visual features, motion state, semantic relationships and risk propagation characteristics, thereby realizing adaptive modeling of dynamic association relationships between abnormal regions.
[0112] Meanwhile, by introducing a dynamic graph temporal memory mechanism and a topology evolution update mechanism, the spatiotemporal consistency of the continuous evolution process of abnormal targets is realized; further, by combining the abnormal propagation analysis mechanism, an abnormal diffusion path model is established to predict the abnormal development trend and risk propagation direction, thereby improving the ability of UAVs to perceive abnormalities and provide risk warnings in complex dynamic scenarios. Attached Figure Description
[0113] Figure 1 This is a schematic diagram of the process of the present invention. Detailed Implementation
[0114] The technical solution of the present invention will be described in detail below with reference to the embodiments and accompanying drawings.
[0115] like Figure 1 As shown, a method for UAV visual anomaly perception based on dynamic topological evolution graph neural networks includes the following:
[0116] 1. Using UAVs at timestamp t, acquire multimodal scene observation data of the monitored area, extract features, and obtain the scene state obtained by multimodal feature fusion. The multimodal features include the scene's visual, heat distribution, spatial structure, motion, and pose features.
[0117] 1. For the area to be monitored, the UAV conducts inspections according to a preset flight path and performs periodic observations of the same scene area in a continuous time series. At each sampling moment, the multi-sensor equipment on the UAV synchronously collects multi-modal observation data of the scene at that moment, thereby forming a multi-modal observation data sequence with temporal continuity.
[0118] The multimodal observation data includes: visible light RGB images; infrared thermal imaging images; depth images; optical flow field information; and UAV attitude information (IMU + GPS).
[0119] The multimodal observation data sequence obtained by the UAV at timestamp t is represented as:
[0120]
[0121]
[0122] in, Represents an RGB image frame; Indicates an infrared thermal imaging frame; Represents a depth map; Represents the optical flow field; Indicates the attitude information of the UAV ( + ); Indicates IMU information, Indicates GPS information; This represents an RGB image with a resolution of H*W.
[0123] The optical flow field Used to describe the motion state of pixels in a scene, represented as:
[0124]
[0125] in, These represent the horizontal velocity, vertical velocity, amplitude, and direction of motion, respectively.
[0126] The IMU information includes the UAV's three-axis acceleration and three-axis angular velocity information, represented as follows:
[0127]
[0128] in, These represent the accelerations along the three axes respectively; These represent the angular velocities of the three axes, respectively.
[0129] The GPS information includes:
[0130]
[0131] Where lat represents latitude; lon represents longitude; and h represents flight altitude.
[0132] 2. Multimodal feature extraction from multimodal observation data sequences.
[0133] (1) To Visual feature extraction from images
[0134] ResNet-18 was used as the visual feature extraction network to... Image feature encoding. The image is sequentially processed through convolutional layers, residual modules, and global average pooling layers to extract scene texture, edge, and appearance features, with the final output being:
[0135]
[0136] in, This represents the visual features of the scene at timestamp t.
[0137] (2) To Extracting heat distribution features from images
[0138] Using lightweight convolutional networks Infrared heat distribution features are extracted from the image to characterize temperature distribution and thermal anomaly patterns, and the heat distribution features are output:
[0139]
[0140] in, This represents the heat distribution characteristics of the scene at timestamp t.
[0141] (3) To Image spatial structure feature extraction
[0142] Using convolutional coding networks The image undergoes depth feature extraction to characterize scene spatial structure, target distance, and geometric morphology information, with the following output:
[0143]
[0144] in, This represents the spatial structure features of the scene at timestamp t.
[0145] (4) Motion feature extraction
[0146] A motion encoder is constructed using a two-layer fully connected network to map pixel motion information in the scene as follows:
[0147]
[0148] (5) Pose feature extraction
[0149] Pose encoder outputs pose characteristics:
[0150]
[0151] 3. Multimodal feature fusion
[0152] Since different modal features have different dimensions, in order to achieve a unified scene representation, a fully connected mapping layer is first used to map the above modal features to a unified dimension. .
[0153]
[0154]
[0155]
[0156]
[0157]
[0158] Then, feature splicing was used for fusion:
[0159]
[0160] in, This indicates a feature splicing operation.
[0161] The result after fusion is:
[0162]
[0163] 4. Incorporate fusion features Input a feature fusion network consisting of two fully connected layers to complete a unified scene state representation. The construction of.
[0164] The first layer of fusion mapping is:
[0165]
[0166] in, These represent the weight matrix and bias vector of the first fully connected layer, respectively. This represents the linear rectification activation function.
[0167] The second layer of fusion mapping is:
[0168]
[0169] in, These represent the weight matrix and bias vector of the second fully connected network, respectively.
[0170] The final unified scene state representation is obtained:
[0171]
[0172] Furthermore, the above fusion process can be uniformly represented as:
[0173]
[0174] in, , representing the multimodal feature fusion mapping function, is composed of two fully connected network layers.
[0175] 5. The entire monitoring cycle The set of temporal scene states of} can be represented as:
[0176]
[0177] The set of scene states serves as input for subsequent dynamic region generation, dynamic graph node construction, dynamic topology evolution, anomaly propagation perception, and risk decision output.
[0178] Furthermore, the above-mentioned ResNet-18, feature dimension settings, and fusion network structure are preferred embodiments of the present invention. The feature extraction network, mapping dimension, and network parameters can be adjusted according to specific application requirements without departing from the protection scope of the present invention.
[0179] II. Scene Status Superpixel regions are divided to obtain a set of superpixel regions. .
[0180] 1. Due to the scene state Since the fused global feature vector cannot be directly used for pixel-level region segmentation, this embodiment uses a combination of original visual modal information and auxiliary modal information to generate regions. RGB images serve as the primary basis for region boundary generation, while infrared images, depth maps, and optical flow fields serve as auxiliary information for region merging and optimization. IMU / GPS information does not participate in the region segmentation process but is used for subsequent spatial relationship modeling.
[0181] (1) Initial superpixel region generation
[0182] For the RGB image at timestamp t The SLIC (Simple Linear Iterative Clustering) superpixel segmentation algorithm is used to generate an initial set of superpixel regions:
[0183]
[0184] in, Indicates the first An initial superpixel region; This represents the total number of initial superpixel regions. .
[0185] The SLIC algorithm combines color similarity and spatial distance to perform clustering, achieving segmentation of the initial superpixel region. The distance metric of the LIC algorithm is defined as:
[0186]
[0187]
[0188] in, Indicates color distance; Indicates spatial distance; This represents the compactness parameter; S represents the initial superpixel region spacing. These represent the image height and width, respectively.
[0189] Preferably, It can also adaptively adjust according to the complexity of the scene.
[0190] (2) Obtain the regional-level multimodal features of each initial superpixel region.
[0191] To characterize the visual attributes, heat distribution, spatial structure, and motion state of each initial superpixel region, corresponding region features are extracted from each modal feature map.
[0192] First, obtain the visual feature extraction network output about... Convolutional feature map of the image:
[0193]
[0194] in, This is a preferred embodiment.
[0195] For each initial superpixel region Establish pixel index region Region average pooling is used to extract features from convolutional feature maps. Extracting visual features from the region:
[0196]
[0197] in, , representing the initial superpixel region Visual features This indicates a region average pooling operation.
[0198] Similarly, to obtain Infrared feature map of the image And extract regional thermal characteristics:
[0199]
[0200] in, , representing the initial superpixel region The characteristics of heat distribution.
[0201] Get Depth feature map of the image And extract the regional spatial structure features:
[0202]
[0203] in, , representing the initial superpixel region Spatial structural characteristics.
[0204] Get Optical flow field feature map And extract regional motion features:
[0205]
[0206] in, , representing the initial superpixel region The motion characteristics.
[0207] Get pose feature map And extract the region pose features:
[0208]
[0209] in, , representing the initial superpixel region The representation of the region's pose characteristics.
[0210] Therefore, the first The region-level multimodal features corresponding to each initial superpixel region are represented as follows:
[0211]
[0212] 3. For adjacent initial superpixel regions at the same timestamp, the initial superpixel region set is adjusted based on the region-level multimodal feature similarity. Perform regional aggregation.
[0213] Considering that the initial superpixel region may be over-segmented, this embodiment dynamically aggregates adjacent regions based on regional motion consistency and feature similarity.
[0214] For adjacent areas and , They are not the same, and their values are within a certain range. The region similarity is defined as:
[0215]
[0216] Among them, visual similarity: ,
[0217] Thermal distribution similarity: ,
[0218] Spatial structural similarity: This is used to reflect the degree of consistency in the heat distribution between two regions.
[0219] Motion consistency: It is used to describe the degree of consistency in the direction and speed of movement within a region.
[0220] Pose correlation: This is used to reflect the impact of changes in the observation perspective of UAVs on regional relations.
[0221] in, , These are the weighting parameters for different modal features; This represents a feature similarity calculation function, used to measure the degree of similarity between corresponding feature vectors of two regions. Cosine similarity calculation is preferred.
[0222] When the following conditions are met: At that time, the area and Merging, among which, This represents the region aggregation threshold, used to control the conditions for region merging.
[0223] The superpixel region set after region aggregation is represented as:
[0224] in, This represents the total number of superpixel regions after aggregation at timestamp t. , , The first superpixel region set represents the first superpixel region. One superpixel region.
[0225] 4. Update the superpixel region set Regional-level multimodal features, for superpixel regions The regional-level multimodal features are represented as follows:
[0226] .
[0227] The target's motion state and anomaly evolution process adaptively adjust the region boundary and region granularity, enabling more accurate spatial separation between the anomaly region and the background region, thus providing a foundation for subsequent dynamic graph node construction, dynamic topology evolution, and anomaly propagation relationship modeling.
[0228] This dynamic region partitioning method can dynamically adjust the region boundaries and granularity according to changes in scene structure, target motion state, and region complexity, enabling more accurate spatial separation between abnormal regions and background regions, and providing a foundation for subsequent dynamic graph node construction, dynamic topology updates, and abnormal propagation relationship modeling.
[0229] III. Set up superpixel regions Abstracted into dynamic graphs , This represents the set of nodes at timestamp t. This represents the set of edges at timestamp t. This represents the set of edge weights at timestamp t.
[0230] 1. Regarding scene status The set of superpixel regions is represented as: Then the set of nodes include Nodes, Nodes Represents superpixel region .
[0231] Represented as:
[0232] .
[0233] For superpixel regions The regional-level multimodal features are represented as follows:
[0234] ,
[0235] Regional multimodal features The elements are pieced together:
[0236]
[0237] in, This indicates a feature concatenation operation; after concatenation... To reduce the computational complexity of subsequent graph neural network operations, a linear mapping layer is further employed. Dimensional reduction:
[0238]
[0239] in, , .
[0240] That is, a node The characteristics are represented.
[0241] 2. Edge set It represents the topological relationships between superpixel regions, including spatial connectivity and temporal connectivity.
[0242] (1) Spatial connection relationship
[0243] Spatial edges are used to describe the evolutionary relationship of anomalous targets in continuous space, and are represented as follows:
[0244]
[0245] Among them, nodes With nodes These are the graph nodes corresponding to different superpixel regions at timestamp t.
[0246] Spatial edges are used to describe the relationship between adjacent superpixel regions at the same time. If two superpixel regions have a common boundary, they are considered to be spatially adjacent, and a spatial edge is established between the corresponding graph nodes.
[0247] Define the region adjacency function:
[0248]
[0249] The set of spatial edges is then represented as:
[0250]
[0251] in, This represents the empty set.
[0252] (2) Temporal connection relationship
[0253] To describe the evolution of the anomalous region over continuous time, time edges across time steps are constructed:
[0254]
[0255] in, The score represents the continuity of the region, which is determined by the continuity of spatial overlap. Motion continuity Characteristic continuity To be determined jointly.
[0256] .
[0257] The time edge set is then represented as:
[0258] .
[0259] Regarding the continuity of spatial overlap For adjacent superpixel regions under adjacent timestamps, calculate the region intersection-union ratio. It represents the spatial overlap continuity of adjacent superpixel regions with adjacent timestamps.
[0260] To ensure the continuous representation of anomalous targets in the time dimension, further spatiotemporal region optimization is performed by combining the spatial overlap relationship between adjacent time regions.
[0261] Let the regions under timestamp t-1 and timestamp t be respectively... and Spatial overlap continuity is defined as:
[0262]
[0263] in, Indicates the intersection-union ratio of regions; Indicates the intersection operation; This represents the union operation.
[0264] When satisfied At that time, it is considered that the two regions belong to the continuous observation results of the same target at different times, and a spatiotemporal correlation is established.
[0265] Regarding the continuity of motion : ,
[0266] Regarding characteristic continuity : , For nodes Feature representation, For nodes The characteristics are represented.
[0267] 3. Edge weight set This includes spatial edge weights and temporal edge weights.
[0268] (1) For any spatial edge ,Will The similarity of regional features between them, as the spatial edge weight, is expressed as:
[0269]
[0270] in:
[0271] ,
[0272] ,
[0273] ,
[0274] ,
[0275] ,
[0276] ,
[0277] The set of spatial edge weights is represented as: .
[0278] (2) For any time edge ,Will The continuity score between regions is used as the time edge weight value, which means:
[0279] ,
[0280] The time edge weights are represented as follows: .
[0281] 4. Animated graph under timestamp t ,
[0282] The node set is as follows:
[0283] ,
[0284] Node feature set:
[0285] ,
[0286] Edge set:
[0287] ,
[0288] ,
[0289] ;
[0290] Edge weight set:
[0291] ,
[0292] ,
[0293]
[0294] IV. Creating dynamic graphs under adjacent timestamps The update mechanism includes updates to nodes, edges, and edge weights.
[0295] To enable the dynamic graph structure to adapt to the continuous changes in scene state during UAV inspections, this invention introduces a dynamic topology evolution mechanism. This mechanism adaptively updates the dynamic graph structure based on changes in regional structure, node characteristics, and motion field at adjacent time points, thereby achieving dynamic modeling of the evolution process of abnormal targets and regional relationships.
[0296] Node set update mechanism:
[0297] (1) When a new abnormal superpixel region appears in the scene, perform the node addition operation;
[0298] (2) When a target leaves a superpixel region or disappears abnormally in the scene, perform a node deletion operation;
[0299] (3) When multiple superpixel regions in the scene gradually connect to form a unified target, perform a node merging operation;
[0300] (4) When a single superpixel region in the scene is split and forms multiple independent regions, perform a node splitting operation.
[0301] An anomaly can be understood as a target appearing in the monitored area, such as a fire, and an abnormal superpixel area can be understood as the superpixel area where the target appears.
[0302] For example: fire spreads and creates new fire spots; cracks extend in multiple directions; people gather or disperse; vehicles separate in groups, etc.
[0303] Edge set update mechanism: After the node set is updated, the edges in the spatial edge set and temporal edge set that have weakened (below the set threshold) or become invalid are deleted based on the spatial and temporal connection relationships between the nodes; new connection edges are established for nodes with newly generated associations.
[0304] Edge weight set update mechanism: Based on the updated edge set, the spatial edge weight and temporal edge weight are recalculated.
[0305] Through the aforementioned dynamic topology evolution mechanism, this invention can continuously track the changes in scene structure and the development process of abnormal targets (such as fires that dynamically change in space over time), enabling the dynamic graph structure to adaptively adjust with environmental changes, and providing a dynamically updated graph structure foundation for subsequent information propagation, multi-scale graph fusion, and anomaly propagation perception in the topology evolution graph neural network.
[0306] V. Utilize the dynamic graph update mechanism to calculate the node anomaly representations of each dynamic graph.
[0307] To learn the relationships and propagation patterns among abnormal nodes in a dynamic graph, this invention constructs a Dynamic Topology Evolution Graph Network (DTE-GN).
[0308] 1. Topological Evolutionary Graph Neural Networks in the Training Phase: For dynamic graph sequences in time series... In the process, abnormal nodes in each dynamic graph are marked. The abnormal nodes can be understood as the corresponding nodes in the superpixel regions where the target appears.
[0309] 2. Extract the features of each node in the labeled dynamic graph sequence. As the initial state input of the topological evolution graph neural network The abnormal response values of each node are output.
[0310] (1) The topological evolution graph neural network uses the graph attention propagation mechanism to aggregate the states of neighboring nodes.
[0311] For nodes The state, the propagation process at layer l, is represented as:
[0312]
[0313] in, Represents the features of the l-th layer nodes; Represents a node The set of neighboring nodes; Indicates the parameters of the l-th layer network; Indicates the activation function; This represents the attention weights in the dynamic graph.
[0314] The attention weights for dynamic graphs are calculated as follows:
[0315]
[0316] in, For animated GIFs Spatial edge weights, The exponential function, which is an exponential operation with the natural constant e as the base, is used to convert the original edge weights into non-negative attention scores with normalization.
[0317] Since the edge weights have taken into account visual features, thermal features, spatial structure features, motion features, and pose features, attention propagation can adaptively adjust the intensity of neighborhood information aggregation according to the degree of node association.
[0318] For nodes The adjacent node corresponding to timestamp t+1 is Then the node state update is represented as:
[0319]
[0320] in, This represents the output of the last layer of the graph network; This represents the time memory coefficient.
[0321] By using the above method, the state of the dynamic graph nodes is continuously propagated along the time direction, so that the evolution process of abnormal targets maintains temporal consistency.
[0322] (2) Calculate the abnormal response value of the node
[0323] After propagation through the L-layer dynamic graph, the node state representation is obtained:
[0324]
[0325] Further, an anomaly detection layer is used to calculate the node's anomaly response value:
[0326]
[0327] in, This represents the abnormal response value of the node. The larger the abnormal response value, the higher the probability that an anomaly has occurred in the superpixel region. The anomaly detection function can be composed of a fully connected layer and a Sigmoid activation function.
[0328] Therefore, dynamic graph The abnormal status of all nodes is represented as follows:
[0329]
[0330] Through the aforementioned topological evolution graph neural network, the system can fully utilize the dynamic graph topology to propagate node information and learn the spatial relationships and temporal evolution patterns between anomalous regions, providing high-quality node representations for subsequent multi-scale graph fusion, anomaly propagation analysis, and risk decision-making.
[0331] To enhance the information transfer capability between dynamic graphs at different times, this invention adopts a dynamic graph parameter sharing mechanism, that is, DTE-GNs at different time slices share network parameters. Only the dynamic graph structure is updated dynamically over time, while the network parameters remain consistent, thereby improving the model's generalization ability and reducing the parameter scale in the continuous-time dynamic graph learning process.
[0332] VI. Based on the node anomaly representation of each dynamic graph To obtain the target propagation results, including: propagation path, main propagation direction, and prediction of future impact areas.
[0333] 1. Calculate the target node at the same timestamp. to adjacent nodes The propagation probability is:
[0334] ,
[0335] And the propagation probability satisfies:
[0336]
[0337] To analyze the development trend of anomalies, the propagation probability is continuously updated by combining the temporal connection relationships in the dynamic graph.
[0338] The change in target propagation probability at adjacent timestamps is:
[0339]
[0340] when This indicates an increasing trend of target propagation and is marked as a single-step path of target propagation.
[0341] when This indicates that the trend of target propagation is weakening.
[0342] Thus, the target propagation path can be obtained in the time series:
[0343]
[0344] in, Indicates the target propagation path, Represents the total timestamp of the transmission. This represents the total number of abnormal nodes in the propagation. Indicates the index of the abnormal node in the propagation.
[0345] 2. Prediction of the main propagation direction
[0346] Calculate the target propagation direction based on the propagation path and node spatial coordinates.
[0347] Set abnormal nodes , The center coordinates are as follows:
[0348]
[0349]
[0350] The propagation direction vector is then represented as:
[0351]
[0352] Calculate the main propagation direction of the anomaly based on all propagation direction vectors:
[0353]
[0354] in, Indicates the main direction of abnormal diffusion. express The probability of propagation between them.
[0355] 3. Future Impact Area Forecast
[0356] Based on the probability and direction of propagation, predictions can be made about the areas that will be affected in the future.
[0357] Set nodes The future risk impact value is:
[0358]
[0359] When the following conditions are met: If the area corresponding to the node is determined to be within the target's potential influence area, then... Add to the set of future impact areas .
[0360] in, This indicates the threshold that affects the judgment. Represents a node Abnormal response value.
[0361] Output the target propagation result:
[0362]
[0363] in, Indicates the target propagation path; Indicates the main direction of target propagation; This represents the set of areas that will be affected in the future.
[0364] VII. Based on the results of the target communication, issue early warnings:
[0365]
[0366] in, Indicates the target category; Indicates the target location; Indicates the risk level; Indicates the abnormal propagation path; Indicates the direction of abnormal propagation; This indicates proactive safety decisions.
[0367] 1. Let the set of anomaly categories under timestamp t be represented as:
[0368]
[0369] in, Let m represent the i-th anomaly category, and m represent the number of anomaly categories.
[0370] Anomaly categories include: fire; smoke; cracks; landslides; road collapses; building damage; structural deformation; abnormal high temperatures; illegal intrusion; traffic accidents; equipment malfunctions, etc.
[0371] 2. Based on the corresponding area of the dynamic graph node and the UAV pose information, spatial positioning of abnormal targets is performed.
[0372] Set nodes The corresponding abnormal location is represented as follows:
[0373]
[0374] in, , Represents the pixel coordinates of the image; This indicates the geographic coordinates after the drone has been located; Indicates the node number in the dynamic graph.
[0375] For multiple abnormal nodes, an abnormal location set is formed:
[0376]
[0377] 3. Generate proactive safety decisions based on risk levels and abnormal propagation results.
[0378] Let the outcome of proactive safety decisions be expressed as:
[0379]
[0380] in, Indicates whether a risk warning has been triggered; This indicates proactive safety response strategies; Indicates the target area for the warning.
[0381] 4. Different risk levels correspond to different proactive response strategies:
[0382] Level I risk: Continue monitoring;
[0383] Level II Risk: Increase inspection frequency;
[0384] Level III Risk: Plan key inspection routes for drones and continuously monitor them;
[0385] Level IV Risk: Immediately triggers a high-level alarm, sends risk information to the monitoring center, and generates control recommendations for the hazardous area.
[0386] Finally, the above information is sent to the UAV ground control terminal or monitoring platform to achieve abnormal target identification, risk assessment, propagation prediction and proactive safety warning.
Claims
1. A method for visual anomaly perception of unmanned aerial vehicles (UAVs) based on dynamic topological evolution graph neural networks, characterized in that, Includes the following steps: S1. Using a drone at timestamp t, acquire multimodal scene observation data of the monitored area, and perform feature extraction to obtain the scene state obtained by multimodal feature fusion. The multimodal observation data includes visible light RGB images, infrared thermal imaging images, depth images, optical flow field information, and UAV attitude information of the scene. The multimodal features include visual, heat distribution, spatial structure, motion, and pose features of the scene. S2, Scene Status Superpixel regions are divided to obtain a set of superpixel regions. ; S3, Set the superpixel regions Abstracted into dynamic graphs , , , These represent the set of nodes, edges, and edge weights at timestamp t, respectively, and the dynamic graph at adjacent timestamps. Dynamic updates are performed based on the established update mechanism; S4. Calculate the node anomaly representations for each dynamic graph. ; S5. Based on the node anomaly representation of each dynamic graph. To obtain the target propagation results, including: propagation path, main propagation direction, and prediction of future impact areas.
2. The UAV visual anomaly perception method according to claim 1, characterized in that, The scene state Represented as: , , in, This indicates a feature concatenation operation. This represents the multimodal feature fusion mapping function. , , , , With the same dimensions, the visual features, heat distribution features, spatial structure features, motion features, and pose features of the scene are mapped to a unified dimension.
3. The UAV visual anomaly perception method according to claim 1, characterized in that, The scene state Superpixel region division includes: S21. First, analyze the visible light RGB image under timestamp t. Perform segmentation to generate an initial set of superpixel regions: , in, Indicates the first An initial superpixel region; This represents the total number of initial superpixel regions. ; S22. Obtain the region-level multimodal features of each initial superpixel region. The region-level multimodal features corresponding to each initial superpixel region Represented as: , in, , , , , These represent the initial superpixel regions. Visual features, heat distribution features, spatial structure features, motion features, and pose features; S23. For adjacent initial superpixel regions at the same timestamp, the initial superpixel region set is adjusted based on the region-level multimodal feature similarity. Perform region aggregation, and the resulting set of superpixel regions is represented as follows: , in, This represents the total number of superpixel regions after aggregation at timestamp t. , , Indicates the first superpixel region set in the mainland One superpixel region; S24. According to the index Update the superpixel region set Regional-level multimodal features, for superpixel regions Regional multimodal features Represented as: , in, These represent superpixel regions. Visual features, heat distribution features, spatial structure features, motion features, and posture features.
4. The UAV visual anomaly perception method according to claim 3, characterized in that, The initial superpixel region The visual features, heat distribution features, spatial structure features, motion features, and pose features are respectively represented as: , , , , , in, , , , , These represent convolutional feature maps of visible light RGB images, infrared thermal imaging images, depth images, optical flow field information, and UAV attitude information, respectively. This indicates that on the convolutional feature map, for the initial superpixel region... The pixel index area, This indicates a region average pooling operation.
5. The UAV visual anomaly perception method according to claim 3, characterized in that, The multimodal feature similarity of adjacent initial superpixel regions at the same timestamp is calculated and expressed as follows: , , , , , , Among them, for adjacent initial superpixel regions and , , , , , These represent visual similarity, thermal distribution similarity, spatial structure similarity, motion consistency, and pose correlation, respectively. , These are weight parameters; This represents the function for calculating feature similarity. They are not the same, and their values are within a certain range. ; When the following conditions are met: At that time, the area and Merging, among which, This indicates the region aggregation threshold.
6. The UAV visual anomaly perception method according to claim 3, characterized in that, The set of nodes Represented as: , Among them, nodes Represents superpixel region ,node Feature representation for: , , in, This indicates a feature concatenation operation. , Indicates to The coefficients of the dimensionality reduction operation; The set of edges Represented as: , , , , in, Represents the set of spatial edges. Represents the set of time edges. Represents the region adjacency function. express There are public boundaries; This represents the regional continuity score of adjacent nodes at adjacent timestamps. Indicates adjacent nodes under adjacent timestamps; The edge weight set Represented as: , , , , , in, Represents the set of spatial edge weights. Indicates adjacent nodes under the same timestamp Spatial edge weights between them This indicates the multimodal feature similarity between adjacent superpixel regions at the same timestamp. This represents adjacent nodes under adjacent timestamps. The regional continuity score.
7. The UAV visual anomaly perception method according to claim 1, characterized in that, The node set update mechanism: When a new superpixel region appears in the scene, perform a node addition operation on the node set; When a target in the scene leaves a superpixel region or disappears abnormally, a node deletion operation is performed on the node set. When multiple superpixel regions in a scene gradually connect to form a unified target, a node merging operation is performed on the node set. When a single superpixel region in the scene is fragmented and forms multiple independent regions, a node splitting operation is performed on the node set. The edge set update mechanism is as follows: After the node set is updated, the edges in the spatial edge set and temporal edge set whose relationships are less than a set threshold or that have become invalid are deleted based on the spatial and temporal connection relationships between the nodes; new connection edges are established for nodes with newly generated associations. Edge weight set update mechanism: Based on the updated edge set, the spatial edge weight and temporal edge weight are recalculated.
8. The UAV visual anomaly perception method according to claim 6, characterized in that, For animated GIFs Abnormal node states are represented as follows: , , in, Represents a node Abnormal response value, The anomaly detection function is composed of a fully connected layer and a sigmoid activation function. Represented by node Feature representation The input features are fed into the topological evolution graph neural network, and the final output is the node state update representation. The aforementioned topological evolution graph neural network is a multi-layer graph attention network that takes dynamic graph sequences as input and labeled abnormal nodes in each frame as supervision. In the spatial dimension, it uses a fixed attention score obtained by exponentially normalizing the spatial edge weights for neighborhood aggregation. In the temporal dimension, it uses memory coefficients to pass the output of the last layer at the current time step to the initial state at the next time step, maintaining the smooth evolution of abnormal responses along the time sequence. At the same time, the network adapts to the real-time updates of the dynamic graph structure and finally outputs the abnormal responses of each node through a fully connected layer.
9. The UAV visual anomaly perception method according to claim 8, characterized in that, The process of obtaining the propagation path is as follows: Calculate the target from node at the same timestamp. to adjacent nodes The propagation probability is: , And the propagation probability satisfies: , The change in target propagation probability at adjacent timestamps is: , when This indicates an increasing trend of target propagation, and is marked as a single-step path of target propagation at a certain timestamp; when This indicates a weakening trend in the spread of the target message; Based on the marked single-step paths, construct the target propagation path on the time series. , represented as: , in Represents the total timestamp of the transmission. This represents the total number of abnormal nodes in the propagation. Indicates the index of the abnormal node in the propagation; Represents a node The set of neighboring nodes, The index of a node within the neighborhood node set; The calculation process for the main propagation direction is as follows: Set abnormal nodes , The center coordinates are as follows: , , The propagation direction vector is then represented as: , Calculate the main propagation direction of the anomaly based on all propagation direction vectors: ; in, Indicates the main direction of abnormal diffusion. express The probability of propagation between them; The process for obtaining the future impact area is as follows: Set nodes The future risk impact value is: , When the following conditions are met: If the area corresponding to the node is determined to be within the target's potential influence area, then... Add to the set of future impact areas ; in, This indicates the threshold that affects the judgment. Represents a node Abnormal response value.
10. A UAV visual anomaly perception system based on a dynamic topological evolution graph neural network, characterized in that, include: Scene state generation module: Used by UAV to acquire multimodal scene observation data of the monitored area at timestamp t, and perform feature extraction to obtain the scene state obtained by multimodal feature fusion. The multimodal observation data includes visible light RGB images, infrared thermal imaging images, depth images, optical flow field information, and UAV attitude information of the scene. The multimodal features include visual, heat distribution, spatial structure, motion, and pose features of the scene. Scene state division module: used for classifying scene states Superpixel regions are divided to obtain a set of superpixel regions. ; Dynamic graph building module: used to assemble superpixel regions Abstracted into dynamic graphs , , , These represent the set of nodes, edges, and edge weights at timestamp t, respectively, and the dynamic graph at adjacent timestamps. Dynamic updates are performed based on the established update mechanism; Node anomaly representation calculation module: Used to calculate the node anomaly representations for each dynamic graph. ; Target propagation result acquisition module: used to obtain the node anomaly representations of each dynamic graph. To obtain the target propagation results, including: propagation path, main propagation direction, and prediction of future impact areas.
