Behavior identification method and system based on buried leakage cable and multi-mode sensing
By using a behavior recognition method that combines buried leaking cables and multi-modal sensing in complex environments, the problem of insufficient behavior recognition accuracy in the existing technology is solved, and accurate recognition and anomaly detection of human behavior are achieved, improving the efficiency of the behavior recognition. Intelligent monitoring system performance.
Patent Information
- Application Number
- CN202410771699.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-15
- Publication Date
- 2024-10-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technologies have insufficient accuracy and robustness for human behavior recognition in complex environments and are difficult to meet the needs of complex application scenarios. In particular, there are challenges in environmental adaptability and privacy protection.
A behavior recognition method based on buried leaky cables and multi-modal sensing is used to obtain radio frequency, video and audio data by setting up a multi-modal sensor array in the target area, combined with adaptive beam forming algorithm, graph attention network and bidirectional The long short-term memory network generates a multi-modal heterogeneous graph network, extracts spatiotemporal behavioral features, and performs behavioral recognition through fully connected layers and focus loss functions.
It improves the accuracy and robustness of behavior recognition, can better describe the dynamic changes and contextual information of the target behavior, achieves accurate identification of human behavior in the target area and real-time detection of abnormal behavior, and enhances the accuracy of the intelligent monitoring system. performance, robustness and interpretability.
Smart Images

Figure CN118747321A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of action recognition, and in particular to a behavior recognition method and system based on buried leakage cables and multi-modal sensing. Background Art
[0002] In recent years, with the increasing demand for public safety and infrastructure protection, behavior recognition technology has received widespread attention and application in the field of security monitoring. Traditional behavior recognition technology mainly relies on video surveillance and image processing technology. Although these methods can provide relatively accurate recognition results in some scenarios, they still face many challenges in terms of environmental adaptability, privacy protection, and all-weather monitoring. Therefore, it is particularly important to develop a technology that can efficiently and accurately recognize human behavior in complex environments.
[0003] Buried Leaky Cable is a sensor technology used for intrusion detection and positioning, and is widely used in border security, oil and gas pipeline monitoring and other fields. Leaky cables emit electromagnetic waves, and when people or vehicles approach, the propagation characteristics of electromagnetic waves will change, thereby achieving intrusion detection. However, relying solely on leaky cables for behavior recognition has limited detection accuracy and recognition types, and it is difficult to meet the needs of complex application scenarios.
[0004] Therefore, a solution is urgently needed to solve the problems existing in the prior art. Summary of the invention
[0005] The embodiments of the present invention provide a behavior recognition method and system based on buried leakage cables and multi-modal sensing, which can at least solve some of the problems existing in the prior art.
[0006] A first aspect of an embodiment of the present invention provides a behavior recognition method based on buried leaky cables and multimodal sensing, comprising:
[0007] Add multiple leaky coaxial cables in the target area, wherein each leaky coaxial cable corresponds to a sub-area, and a multimodal sensor array is set in each sub-area, and the radio frequency signal emitted by the leaky coaxial cable is obtained through the multimodal sensor array, and the phase information of the radio frequency signal is extracted according to the adaptive beamforming algorithm, and the target moving speed is determined in combination with the Doppler frequency shift, and the optical flow feature, appearance feature and skeleton feature are extracted through the video data, and the frequency domain feature of the audio data is extracted through the Mel frequency cepstral coefficient, and the acquired information and the radio frequency information are deeply fused to generate a multimodal heterogeneous graph network;
[0008] Based on the graph attention network, the feature representation of the nodes in the multimodal heterogeneous graph network is updated in combination with the node attention and edge attention mechanisms to obtain a first feature, the first feature is convolved by a spatiotemporal graph convolutional neural network to extract the temporal features and spatial features of the target, a spatiotemporal behavior representation is constructed, the spatiotemporal behavior representation is sequentially learned by a bidirectional long short-term memory network to determine the long-term dependency, and the hyperparameters of the bidirectional long short-term memory network are adjusted by a gating unit in combination with a self-calibration mechanism to generate spatiotemporal behavior features of different scales;
[0009] The spatiotemporal behavior features are mapped to the behavior category space through a fully connected layer to obtain the target behavior probability distribution, the behavior category is determined in combination with the probability threshold, the determination loss value is determined in combination with the focal loss function and a behavior recognition result sequence is generated, key behaviors are extracted from the behavior recognition result sequence and the timestamp corresponding to each behavior is calculated, if there is abnormal behavior, an alarm is triggered and a spatiotemporal behavior trajectory diagram of people in the target area is drawn according to the recognition result sequence.
[0010] In an optional embodiment,
[0011] Add multiple leaky coaxial cables in the target area, wherein each leaky coaxial cable corresponds to a sub-area, and a multimodal sensor array is set in each sub-area. The radio frequency signal emitted by the leaky coaxial cable is obtained through the multimodal sensor array, and the phase information of the radio frequency signal is extracted according to the adaptive beamforming algorithm, and the target moving speed is determined in combination with the Doppler frequency shift, and the optical flow feature, appearance feature and skeleton feature are extracted through the video data, and the frequency domain feature of the audio data is extracted through the Mel frequency cepstral coefficient, and the acquired information and the radio frequency information are deeply integrated to generate a multimodal heterogeneous graph network, including:
[0012] Divide the target area into multiple sub-areas according to the size and shape of the target area, and set a leaky coaxial cable and a multi-modal sensor array in each sub-area, wherein the multi-modal sensor array includes a radio frequency receiving sensor, a video sensor and an audio sensor;
[0013] The radio frequency signal emitted by the leaky coaxial cable is collected by a radio frequency receiving sensor and filtered and amplified, and the video data and audio data collected by the video sensor and the audio sensor are preprocessed, and an adaptive beamforming algorithm is applied to the preprocessed radio frequency signal to adaptively adjust the array antenna weights and extract the phase information corresponding to the radio frequency signal at different positions in the target area, and the phase information is analyzed by short-time Fourier transform to obtain Doppler frequency shift information, and the instantaneous speed and motion trajectory of the target are calculated by combining the Doppler speed estimation algorithm;
[0014] The preprocessed audio data is framed and windowed, and each frame of the audio signal is subjected to time-frequency analysis to obtain the frequency domain features corresponding to the audio signal. The motion vectors between the preprocessed video frames are calculated by sparse optical flow, and the appearance features of the video frames are extracted by a pre-trained appearance extraction model. The skeleton features of each frame in the preprocessed video data are extracted by a posture estimation algorithm, and the spatial relationship and motion pattern of the key points of the human body are generated based on the extracted skeleton features.
[0015] Based on the spatial relationship and motion pattern of the key points of the human body, combined with the motion trajectory and the frequency domain features, the corresponding radio frequency signals, audio data and video data are used as nodes, and the association relationships between nodes of different modalities are used as edges to construct an initial multimodal heterogeneous graph network. The feature representation of each node is learned by aggregating neighbor node information, and the feature representation of each node is updated in combination with the cross-modal attention matrix to obtain the multimodal heterogeneous graph network.
[0016] In an optional embodiment,
[0017] The preprocessed video data uses sparse optical flow to calculate the motion vector between video frames as shown in the following formula:
[0018]
[0019] Among them, E() represents the error of optical flow estimation, I(x,y,t) represents the pixel value at position (x,y) of the t-th frame, u represents the pixel displacement in the x direction to be estimated, v represents the pixel displacement in the y direction to be estimated, and I(x+u,y+v,t+1) represents the pixel value at position (x+u,y+v) of the t+1 frame.
[0020] In an optional embodiment,
[0021] Based on the graph attention network, the feature representation of the nodes in the multimodal heterogeneous graph network is updated in combination with the node attention and edge attention mechanisms to obtain a first feature, the first feature is convolved by a spatiotemporal graph convolutional neural network to extract the temporal features and spatial features of the target, a spatiotemporal behavior representation is constructed, the spatiotemporal behavior representation is sequence-learned by a bidirectional long short-term memory network to determine the long-term dependency, and the hyperparameters of the bidirectional long short-term memory network are adjusted by a gating unit in combination with a self-calibration mechanism to generate spatiotemporal behavior features of different scales, including:
[0022] Based on the graph attention network, the attention coefficient between nodes is calculated by combining the attention vector and the shared weight matrix, the importance coefficient of each connecting edge is calculated by the edge attention mechanism, the node features are weightedly aggregated by combining the attention coefficient corresponding to the node and the importance coefficient corresponding to the connecting edge to obtain enhanced node features, the enhanced node features are spliced by the multi-head attention mechanism, and the first feature is obtained by combining the linear transformation;
[0023] Perform spatial graph convolution on the first feature, aggregate and transform node features through adjacency matrix and degree matrix, determine spatial dependency between nodes, perform temporal convolution on the output features of spatial graph convolution, extract local temporal patterns and dependency in the time dimension through one-dimensional convolution, alternately stack multiple layers of spatial graph convolution and temporal convolution, and extract the spatiotemporal behavior representation of the target;
[0024] The spatiotemporal behavior representation is flattened in dimension to obtain a temporal feature sequence, the temporal feature sequence is encoded through a bidirectional long short-term memory network, the long-term dependency corresponding to the temporal feature sequence is extracted through a forward memory network and a reverse memory network, the hyperparameters of the bidirectional long short-term memory network are dynamically adjusted in combination with a self-calibration mechanism, and the output features of the bidirectional long short-term memory network are pooled according to different time steps to obtain spatiotemporal behavior features at multiple scales, and the spatiotemporal behavior features are spliced to obtain spatiotemporal behavior features at multiple scales.
[0025] In an optional embodiment,
[0026] The first feature is subjected to spatial graph convolution, and the node features are aggregated and transformed through the adjacency matrix and degree matrix as shown in the following formula:
[0027]
[0028] Among them, X out represents the output feature matrix, represents the degree matrix of the adjacency matrix, represents the adjacency matrix with self-loops, X in represents the input feature matrix, and W represents the learnable weight matrix.
[0029] In an optional embodiment,
[0030] The spatiotemporal behavior features are mapped to the behavior category space through a fully connected layer to obtain the target behavior probability distribution, the behavior category is determined in combination with the probability threshold, the determination loss value is determined in combination with the focus loss function and a behavior recognition result sequence is generated, key behaviors are extracted from the behavior recognition result sequence and the timestamp corresponding to each behavior is calculated. If there is abnormal behavior, an alarm is triggered and a spatiotemporal behavior trajectory diagram of the target area personnel is drawn according to the recognition result sequence, including:
[0031] The extracted spatiotemporal behavior features at multiple scales are added to the fully connected layer, mapped to the behavior category space through the fully connected layer, and the probability distribution of the target behavior is calculated in combination with the weight matrix and the bias vector of the fully connected layer. According to the probability distribution and the preset probability threshold, the behavior category is determined. If the maximum probability value in the probability distribution is not less than the probability threshold, the current behavior is determined to be the category with the highest probability, otherwise, the current behavior is determined to be an unknown category behavior;
[0032] Determine the loss value of the current judgment result through the focus loss function, take minimizing the function value of the focus loss function as the goal, dynamically adjust the probability threshold and update the classification label of the current behavior, repeat the update until the preset maximum number of iterations is reached, obtain the behavior recognition result of the current behavior, repeat the recognition until all behaviors are classified, and obtain a behavior recognition result sequence;
[0033] Initialize the key behavior list, traverse the behavior recognition result sequence, if the category label of the current behavior is inconsistent with the category label of the behavior at the previous moment, then regard the current behavior as a new key behavior, add it to the key behavior list and record the start timestamp and end timestamp of the current key behavior, and add it until the behavior recognition result sequence is traversed;
[0034] For each behavior in the key behavior list, if there is a behavior whose category label is an unknown category behavior, this behavior is considered to be an abnormal behavior, an alarm is triggered, and a spatiotemporal behavior trajectory diagram corresponding to the current abnormal behavior is drawn according to the start timestamp and the end timestamp.
[0035] In an optional embodiment,
[0036] The fully connected layer is mapped to the behavior category space, and the probability distribution of the target behavior is calculated by combining the weight matrix and bias vector of the fully connected layer as shown in the following formula:
[0037]
[0038] Among them, p represents the probability distribution vector of the behavior category, W c represents the weight matrix of the fully connected layer, N srepresents the number of scales, α represents the learnable vector, and H i represents the spatiotemporal behavior characteristics of the i-th scale, H j represents the spatiotemporal behavior characteristics of the jth scale, T represents the transposition operation, and b c Represents the bias vector of the fully connected layer.
[0039] A second aspect of an embodiment of the present invention provides a behavior recognition system based on buried leaky cables and multimodal sensing, comprising:
[0040] The first unit is used to add multiple leaky coaxial cables in the target area, wherein each leaky coaxial cable corresponds to a sub-area, and a multimodal sensor array is set in each sub-area, and the radio frequency signal emitted by the leaky coaxial cable is obtained through the multimodal sensor array, and the phase information of the radio frequency signal is extracted according to the adaptive beamforming algorithm, and the target moving speed is determined in combination with the Doppler frequency shift, and the optical flow feature, appearance feature and skeleton feature are extracted through the video data, and the frequency domain feature of the audio data is extracted through the Mel frequency cepstral coefficient, and the acquired information and the radio frequency information are deeply integrated to generate a multimodal heterogeneous graph network;
[0041] The second unit is used to update the feature representation of the nodes in the multimodal heterogeneous graph network based on the graph attention network, in combination with the node attention and edge attention mechanisms, to obtain a first feature, to perform a convolution operation on the first feature through a spatiotemporal graph convolutional neural network and to extract the temporal features and spatial features of the target, to construct a spatiotemporal behavior representation, to perform sequence learning on the spatiotemporal behavior representation through a bidirectional long short-term memory network, to determine the long-term dependency, and to adjust the hyperparameters of the bidirectional long short-term memory network through a gating unit in combination with a self-calibration mechanism and to generate spatiotemporal behavior features of different scales;
[0042] The third unit is used to map the spatiotemporal behavior features to the behavior category space through a fully connected layer to obtain the target behavior probability distribution, determine the behavior category in combination with the probability threshold, determine the determination loss value in combination with the focal loss function and generate a behavior recognition result sequence, extract key behaviors from the behavior recognition result sequence and calculate the timestamp corresponding to each behavior, and if there is abnormal behavior, trigger an alarm and draw a spatiotemporal behavior trajectory diagram of people in the target area according to the recognition result sequence.
[0043] According to a third aspect of the embodiments of the present invention,
[0044] An electronic device is provided, comprising:
[0045] processor;
[0046] a memory for storing processor-executable instructions;
[0047] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0048] A fourth aspect of the embodiments of the present invention is:
[0049] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.
[0050] In the present invention, by setting a multimodal sensor array in each sub-area, multimodal information such as the target's radio frequency signal, video data, and audio data can be obtained. The multimodal information is deeply integrated to achieve a comprehensive characterization of the target behavior, thereby improving the accuracy and robustness of behavior recognition. By extracting spatiotemporal features, the dynamic changes and contextual information of the target behavior can be better characterized, thereby improving the spatiotemporal consistency and coherence of behavior recognition. The bidirectional long short-term memory network can simultaneously consider forward and backward time information, capture long-distance dependencies and contextual information in the behavior sequence, and improve the scale adaptability and robustness of behavior recognition. By extracting key behaviors and calculating timestamps for the recognition result sequence, the occurrence time and duration of abnormal behaviors can be accurately located. In summary, the present invention realizes accurate recognition of human behavior in the target area and real-time detection of abnormal behavior, thereby improving the accuracy, robustness, interpretability, and practicability of the intelligent monitoring system, and providing strong technical support for maintaining public safety and social stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a flow chart of a behavior recognition method based on buried leakage cable and multi-modal sensing according to an embodiment of the present invention;
[0052] Figure 2 The figure is a schematic diagram of the structure of a behavior recognition system based on buried leakage cables and multimodal sensing according to an embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0055] Figure 1 FIG. 1 is a flow chart of a behavior recognition method based on buried leakage cable and multi-modal sensing according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0056] S1. Add multiple leaky coaxial cables in the target area, wherein each leaky coaxial cable corresponds to a sub-area, and a multimodal sensor array is set in each sub-area, and the radio frequency signal emitted by the leaky coaxial cable is obtained through the multimodal sensor array, and the phase information of the radio frequency signal is extracted according to the adaptive beamforming algorithm, and the target moving speed is determined in combination with the Doppler frequency shift, and the optical flow feature, appearance feature and skeleton feature are extracted through the video data, and the frequency domain feature of the audio data is extracted through the Mel frequency cepstral coefficient, and the obtained information and the radio frequency information are deeply integrated to generate a multimodal heterogeneous graph network;
[0057] The leaky coaxial cable is a special coaxial cable that is designed to allow a portion of electromagnetic waves to leak into the surrounding environment. The multimodal sensor array refers to an array composed of multiple types of sensors for capturing different types of signals or data. The radio frequency signal refers to an electromagnetic wave signal with a frequency range of 3kHz to 300GHz, which is widely used in multiple fields. The adaptive beamforming algorithm is a technology used in the field of signal processing to control the directionality of the sensor array to enhance the signal reception effect. The Doppler shift refers to the change in the received signal when there is relative motion between the signal source and the receiver. The Mel-frequency cepstral coefficient is a feature extraction method commonly used in the field of speech recognition and audio processing. The multimodal heterogeneous graph network is a model in the field of graph neural networks, which is mainly used to process graph structure data containing multiple types of nodes and edges.
[0058] In an optional embodiment,
[0059] Add multiple leaky coaxial cables in the target area, wherein each leaky coaxial cable corresponds to a sub-area, and a multimodal sensor array is set in each sub-area. The radio frequency signal emitted by the leaky coaxial cable is obtained through the multimodal sensor array, and the phase information of the radio frequency signal is extracted according to the adaptive beamforming algorithm, and the target moving speed is determined in combination with the Doppler frequency shift, and the optical flow feature, appearance feature and skeleton feature are extracted through the video data, and the frequency domain feature of the audio data is extracted through the Mel frequency cepstral coefficient, and the acquired information and the radio frequency information are deeply integrated to generate a multimodal heterogeneous graph network, including:
[0060] Divide the target area into multiple sub-areas according to the size and shape of the target area, and set a leaky coaxial cable and a multi-modal sensor array in each sub-area, wherein the multi-modal sensor array includes a radio frequency receiving sensor, a video sensor and an audio sensor;
[0061] The radio frequency signal emitted by the leaky coaxial cable is collected by a radio frequency receiving sensor and filtered and amplified, and the video data and audio data collected by the video sensor and the audio sensor are preprocessed, and an adaptive beamforming algorithm is applied to the preprocessed radio frequency signal to adaptively adjust the array antenna weights and extract the phase information corresponding to the radio frequency signal at different positions in the target area, and the phase information is analyzed by short-time Fourier transform to obtain Doppler frequency shift information, and the instantaneous speed and motion trajectory of the target are calculated by combining the Doppler speed estimation algorithm;
[0062] The preprocessed audio data is framed and windowed, and each frame of the audio signal is subjected to time-frequency analysis to obtain the frequency domain features corresponding to the audio signal. The motion vectors between the preprocessed video frames are calculated by sparse optical flow, and the appearance features of the video frames are extracted by a pre-trained appearance extraction model. The skeleton features of each frame in the preprocessed video data are extracted by a posture estimation algorithm, and the spatial relationship and motion pattern of the key points of the human body are generated based on the extracted skeleton features.
[0063] Based on the spatial relationship and motion pattern of the key points of the human body, combined with the motion trajectory and the frequency domain features, the corresponding radio frequency signals, audio data and video data are used as nodes, and the association relationships between nodes of different modalities are used as edges to construct an initial multimodal heterogeneous graph network. The feature representation of each node is learned by aggregating neighbor node information, and the feature representation of each node is updated in combination with the cross-modal attention matrix to obtain the multimodal heterogeneous graph network.
[0064] The array antenna weight refers to the weight assigned to each antenna, which is used to optimize the performance of the received signal. The short-time Fourier transform is a signal processing technology used to decompose the signal into frequency domain information in different time windows. The Doppler shift information refers to the signal frequency offset caused by motion. The Doppler velocity estimation algorithm is used to estimate the target velocity that causes the Doppler shift. The windowing refers to multiplying the input signal with the window function to reduce the leakage effect of the signal boundary while controlling the spectral leakage and spectral resolution. The sparse optical flow is a technology in the field of computer vision, which is used to estimate pixel-level motion in image sequences. The human key points refer to some special points in human posture estimation, such as key positions such as the head, arms, knees, etc. The cross-modal attention matrix is an attention mechanism for information interaction across different modalities.
[0065] According to the size and shape of the target area, it is divided into multiple sub-areas. In each sub-area, a leaky coaxial cable is set as a radio frequency signal transmission source, and a multi-modal sensor array is arranged. The multi-modal sensor array includes a radio frequency receiving sensor, a video sensor, and an audio sensor for collecting data of different modes.
[0066] The RF signal emitted by the leaky coaxial cable is collected by the RF receiving sensor, and the collected RF signal is filtered and amplified. The video data of the target area is collected by the video sensor, and the collected video data is preprocessed, such as image denoising and correction. The audio data of the target area is collected by the audio sensor, and the collected audio data is preprocessed, such as audio denoising and enhancement. An adaptive beamforming algorithm is applied to the preprocessed RF signal, and the weight of the array antenna is adaptively adjusted to extract the phase information corresponding to the RF signal at different positions in the target area. The phase information is analyzed in time and frequency by short-time Fourier transform to obtain Doppler frequency shift information. In combination with the Doppler velocity estimation algorithm, the instantaneous velocity and motion trajectory of the target are calculated according to the Doppler frequency shift information.
[0067] The pre-processed audio data is framed and windowed, the audio signal is divided into multiple frames, and a window function is applied to each frame. Time-frequency analysis is performed on each frame of the audio signal, such as applying short-time Fourier transform to obtain the frequency domain features corresponding to the audio signal. The motion vectors between the pre-processed video data are calculated by a sparse optical flow algorithm to obtain the motion information of the target in the video. The appearance features of the video frames are extracted by a pre-trained appearance extraction model, such as a convolutional neural network. Skeleton features are extracted for each frame of the pre-processed video data by a posture estimation algorithm, such as a key point detection algorithm. Based on the extracted skeleton features, the spatial relationship and motion pattern of the key points of the human body, such as joint angles and joint displacements, are generated.
[0068] The RF signal, audio data, and video data are respectively used as nodes in the graph network. Each node represents data of one modality. According to the association between nodes of different modalities, such as time synchronization and spatial correspondence, the edges between nodes are constructed to form an initial multimodal heterogeneous graph network. The feature representation of each node is learned by aggregating the information of neighboring nodes. Methods such as graph convolution and attention mechanism can be used to fuse the feature information of neighboring nodes into the feature representation of the current node, introduce a cross-modal attention matrix, update the feature representation of each node, and obtain the final multimodal heterogeneous graph network through multiple iterations of aggregation and updating, in which the feature representation of each node contains information of different modal data.
[0069] In this embodiment, by dividing the target area into multiple sub-areas, full coverage monitoring of the target area can be achieved, and the accuracy of behavior recognition and anomaly detection can be improved. By collecting and preprocessing the RF signal, video data and audio data, high-quality original data can be obtained, laying the foundation for subsequent feature extraction and analysis. The RF signal is processed by an adaptive beamforming algorithm, and the weight of the array antenna can be adaptively adjusted to improve the reception quality of the RF signal at different positions in the target area, and enhance the detection and tracking capabilities of the target. The RF signal, audio data and video data are used as nodes in the graph network. By constructing the association relationship between the nodes, a multimodal heterogeneous graph network is formed, which can effectively fuse and utilize the complementary information between different modal data. In summary, this embodiment effectively realizes the collection, preprocessing, feature extraction and fusion of multimodal data, constructs a multimodal heterogeneous graph network rich in semantic information and context association, and provides rich and accurate feature representation for subsequent behavior recognition and anomaly detection, thereby improving the performance and effect of the entire system.
[0070] In an optional embodiment,
[0071] The preprocessed video data uses sparse optical flow to calculate the motion vector between video frames as shown in the following formula:
[0072]
[0073] Among them, E() represents the error of optical flow estimation, I(x,y,t) represents the pixel value at position (x,y) of the t-th frame, u represents the pixel displacement in the x direction to be estimated, v represents the pixel displacement in the y direction to be estimated, and I(x+u,y+v,t+1) represents the pixel value at position (x+u,y+v) of the t+1 frame.
[0074] In this embodiment, by calculating the pixel displacement between video frames, the motion information of the target in the video can be effectively extracted, providing important motion features for subsequent behavior recognition. By minimizing the error term, the optimal motion vector can be found to minimize the pixel value difference between the two frames. By performing local motion estimation on the video frames, the local motion features of the target can be effectively captured. Optical flow estimation is based on the assumption of temporal continuity and consistency, that is, it is assumed that the motion between adjacent frames is continuous and consistent. By minimizing the pixel difference between adjacent frames, the temporal continuity and consistency of the estimated motion vector can be ensured, which helps to capture the smoothness and coherence of the target motion and reduce noise and mutations in motion estimation. In summary, this embodiment can effectively extract the motion information of the target, quantify the change of motion, capture the locality and sparsity of motion, ensure the temporal continuity and consistency of motion estimation, and improve the robustness of motion features, providing important motion features for subsequent behavior recognition and anomaly detection, and helping to improve the performance and accuracy of the system.
[0075] S2. Based on the graph attention network, the feature representation of the nodes in the multimodal heterogeneous graph network is updated in combination with the node attention and edge attention mechanisms to obtain a first feature, the first feature is convolved by a spatiotemporal graph convolutional neural network to extract the temporal features and spatial features of the target, a spatiotemporal behavior representation is constructed, the spatiotemporal behavior representation is sequentially learned by a bidirectional long short-term memory network to determine the long-term dependency, and the hyperparameters of the bidirectional long short-term memory network are adjusted by a gating unit in combination with a self-calibration mechanism to generate spatiotemporal behavior features of different scales;
[0076] The graph attention network is a model based on a graph neural network, in which an attention mechanism is introduced to perform weighted processing on nodes or edges in the graph. The node attention refers to the mechanism used to calculate the importance of nodes in the graph attention network. The edge attention is the mechanism used to calculate the importance of edges in the graph attention network. The spatiotemporal behavior representation refers to a method for combining spatiotemporal information with behavioral information to model and represent behavior. The sequence learning is a machine learning method for processing sequence data, such as time series, text sequences, etc. The long-term dependency refers to the dependency between longer time spans in sequence data. The self-calibration mechanism refers to a mechanism by which the model can automatically adjust parameters such as learning rate and attention weight during training. The spatiotemporal behavior characteristics are characteristics that describe the changes in behavior in time and space.
[0077] In an optional embodiment,
[0078] Based on the graph attention network, the feature representation of the nodes in the multimodal heterogeneous graph network is updated in combination with the node attention and edge attention mechanisms to obtain a first feature, the first feature is convolved by a spatiotemporal graph convolutional neural network to extract the temporal features and spatial features of the target, a spatiotemporal behavior representation is constructed, the spatiotemporal behavior representation is sequence-learned by a bidirectional long short-term memory network to determine the long-term dependency, and the hyperparameters of the bidirectional long short-term memory network are adjusted by a gating unit in combination with a self-calibration mechanism to generate spatiotemporal behavior features of different scales, including:
[0079] Based on the graph attention network, the attention coefficient between nodes is calculated by combining the attention vector and the shared weight matrix, the importance coefficient of each connecting edge is calculated by the edge attention mechanism, the node features are weightedly aggregated by combining the attention coefficient corresponding to the node and the importance coefficient corresponding to the connecting edge to obtain enhanced node features, the enhanced node features are spliced by the multi-head attention mechanism, and the first feature is obtained by combining the linear transformation;
[0080] Perform spatial graph convolution on the first feature, aggregate and transform node features through adjacency matrix and degree matrix, determine spatial dependency between nodes, perform temporal convolution on the output features of spatial graph convolution, extract local temporal patterns and dependency in the time dimension through one-dimensional convolution, alternately stack multiple layers of spatial graph convolution and temporal convolution, and extract the spatiotemporal behavior representation of the target;
[0081] The spatiotemporal behavior representation is flattened in dimension to obtain a temporal feature sequence, the temporal feature sequence is encoded through a bidirectional long short-term memory network, the long-term dependency corresponding to the temporal feature sequence is extracted through a forward memory network and a reverse memory network, the hyperparameters of the bidirectional long short-term memory network are dynamically adjusted in combination with a self-calibration mechanism, and the output features of the bidirectional long short-term memory network are pooled according to different time steps to obtain spatiotemporal behavior features at multiple scales, and the spatiotemporal behavior features are spliced to obtain spatiotemporal behavior features at multiple scales.
[0082] The attention coefficient is a weight coefficient used in the attention mechanism, which is used to represent the degree of association between nodes in the graph. The enhanced node feature refers to updating the representation of each node by aggregating information from surrounding nodes. The adjacency matrix is an important tool for describing the graph structure, which is used to record the connection relationship between each pair of nodes in the graph. The degree matrix is a diagonal matrix, which is used to represent the degree of each node in the graph, that is, the number of adjacent nodes. The temporal convolution is a convolution operation in a convolutional neural network for processing time series data.
[0083] For each node in the multimodal heterogeneous graph network, the attention coefficient between nodes is calculated using the attention vector and the shared weight matrix through the attention mechanism. The importance coefficient of each connecting edge is calculated through the edge attention mechanism. The node features are weighted aggregated by combining the attention coefficient corresponding to the node and the importance coefficient corresponding to the connecting edge. The enhanced node features are spliced using the multi-head attention mechanism, and the spliced node features are linearly transformed to obtain the first feature.
[0084] Through the adjacency matrix and degree matrix, the spatial graph convolution operation is performed on the first feature, the node features are aggregated and transformed, the spatial dependencies between nodes are captured, and the temporal convolution operation is performed on the output features of the spatial graph convolution. The temporal convolution extracts local temporal patterns and dependencies in the time dimension through one-dimensional convolution. Multiple layers of spatial graph convolution and temporal convolution are alternately stacked to extract the spatiotemporal behavior representation of the target;
[0085] The spatiotemporal behavior representation is flattened in dimension to obtain a temporal feature sequence, wherein the flattening operation converts the spatiotemporal behavior representation into a one-dimensional temporal feature sequence to facilitate subsequent sequence modeling. A bidirectional long short-term memory network is used to encode the temporal feature sequence. The forward and backward dependencies of the temporal feature sequence are captured by the long short-term memory networks in the forward and reverse directions, respectively. The forward long short-term memory network processes the temporal feature sequence from front to back to capture the forward long-term dependency, and the reverse long short-term memory network processes the temporal feature sequence from back to front to capture the backward long-term dependency. Combined with the self-calibration mechanism, the hyperparameters of the bidirectional long short-term memory network, such as the size of the hidden layer and the number of layers, are dynamically adjusted. The output features are pooled according to different time steps to obtain spatiotemporal behavior features at multiple scales. The spatiotemporal behavior features at multiple scales are spliced to obtain the final spatiotemporal behavior features.
[0086] In this embodiment, the attention coefficient between nodes is calculated through the attention mechanism, which can effectively capture the importance and correlation between nodes, highlight key nodes and relationships, and improve the representation ability of node features. By using the attention vector and the shared weight matrix, the importance and conversion method of node features can be adaptively adjusted to make the node features more semantic and contextual information. The spatial graph convolution aggregates and transforms the node features through the adjacency matrix and the degree matrix, effectively captures the spatial dependency between nodes, and obtains the local feature representation in space. By alternately stacking multiple layers of spatial graph convolution and temporal convolution, spatial dependency and temporal dependency can be captured at the same time, and a more comprehensive and accurate spatiotemporal behavior representation can be obtained, which improves the performance of behavior recognition and anomaly detection. The spatiotemporal behavior features at multiple scales can be spliced, and the temporal information at different scales can be integrated to obtain a more comprehensive and accurate spatiotemporal behavior representation, which improves the performance of behavior recognition and anomaly detection. In summary, this embodiment can effectively extract and fuse spatiotemporal behavior features in multimodal data, make full use of the characteristics of graph structure and temporal data, and help improve the accuracy, robustness and adaptability of behavior recognition and anomaly detection, and provide strong technical support for intelligent monitoring and behavior understanding.
[0087] In an optional embodiment,
[0088] The first feature is subjected to spatial graph convolution, and the node features are aggregated and transformed through the adjacency matrix and degree matrix as shown in the following formula:
[0089]
[0090] Among them, X out represents the output feature matrix, represents the degree matrix of the adjacency matrix, represents the adjacency matrix with self-loops, X in represents the input feature matrix, and W represents the learnable weight matrix.
[0091] In this embodiment, by multiplying the input feature matrix with the adjacency matrix and the degree matrix, the features of each node can be aggregated with the features of its neighboring nodes, thereby realizing local aggregation and transformation of node features, effectively capturing the spatial dependencies between nodes, and obtaining local feature representations in space. By introducing an adjacency matrix with self-loops, that is, adding self-loops on the diagonal of the adjacency matrix, indicating that each node is also connected to itself, the features of the node itself can be considered in the aggregation process, thereby improving the integrity of the feature representation. By introducing a learnable weight matrix, the importance of different feature dimensions can be adaptively adjusted, thereby improving the expressive power of the feature representation. In summary, this embodiment can significantly improve the performance of behavior recognition and anomaly detection based on graph structured data, and provide more effective and accurate feature representations for intelligent monitoring and behavior understanding.
[0092] S3. Map the spatiotemporal behavior features to the behavior category space through a fully connected layer to obtain the target behavior probability distribution, determine the behavior category in combination with the probability threshold, determine the determination loss value in combination with the focal loss function and generate a behavior recognition result sequence, extract key behaviors from the behavior recognition result sequence and calculate the timestamp corresponding to each behavior, and if there is abnormal behavior, trigger an alarm and draw a spatiotemporal behavior trajectory diagram of the people in the target area based on the recognition result sequence.
[0093] The fully connected layer is a type of layer commonly used in neural networks, usually located at the end of the network, and is used to perform high-level abstraction and classification of the features extracted by the previous layer. The category space refers to the space composed of the predicted categories output by the model. The focal loss function is a loss function used to deal with the problem of category imbalance, which is particularly suitable for the case of uneven sample distribution. The key behavior extraction refers to identifying and extracting key behavior fragments or key frames that have an important impact on behavior understanding and judgment from the input data. The recognition result sequence refers to a series of recognition results obtained after the model performs frame-by-frame or fragment-by-fragment behavior recognition on the input data.
[0094] In an optional embodiment,
[0095] The spatiotemporal behavior features are mapped to the behavior category space through a fully connected layer to obtain the target behavior probability distribution, the behavior category is determined in combination with the probability threshold, the determination loss value is determined in combination with the focus loss function and a behavior recognition result sequence is generated, key behaviors are extracted from the behavior recognition result sequence and the timestamp corresponding to each behavior is calculated. If there is abnormal behavior, an alarm is triggered and a spatiotemporal behavior trajectory diagram of the target area personnel is drawn according to the recognition result sequence, including:
[0096] The extracted spatiotemporal behavior features at multiple scales are added to the fully connected layer, mapped to the behavior category space through the fully connected layer, and the probability distribution of the target behavior is calculated in combination with the weight matrix and the bias vector of the fully connected layer. According to the probability distribution and the preset probability threshold, the behavior category is determined. If the maximum probability value in the probability distribution is not less than the probability threshold, the current behavior is determined to be the category with the highest probability, otherwise, the current behavior is determined to be an unknown category behavior;
[0097] Determine the loss value of the current judgment result through the focus loss function, take minimizing the function value of the focus loss function as the goal, dynamically adjust the probability threshold and update the classification label of the current behavior, repeat the update until the preset maximum number of iterations is reached, obtain the behavior recognition result of the current behavior, repeat the recognition until all behaviors are classified, and obtain a behavior recognition result sequence;
[0098] Initialize the key behavior list, traverse the behavior recognition result sequence, if the category label of the current behavior is inconsistent with the category label of the behavior at the previous moment, then regard the current behavior as a new key behavior, add it to the key behavior list and record the start timestamp and end timestamp of the current key behavior, and add it until the behavior recognition result sequence is traversed;
[0099] For each behavior in the key behavior list, if there is a behavior whose category label is an unknown category behavior, this behavior is considered to be an abnormal behavior, an alarm is triggered, and a spatiotemporal behavior trajectory diagram corresponding to the current abnormal behavior is drawn according to the start timestamp and the end timestamp.
[0100] The bias vector is a commonly used parameter in neural networks, usually used together with a weight matrix to control the degree of activation of neurons. The unknown category behavior refers to the appearance of a new behavior category that has never appeared in the training data in the behavior recognition task. The probability threshold refers to the minimum probability value used to determine that a behavior belongs to a certain category in the behavior recognition task. The category label refers to an identifier used to represent different behavior categories in the behavior recognition task.
[0101] The acquired multi-scale spatiotemporal behavior features are taken as input and passed to the fully connected layer. The fully connected layer receives the input features and transforms and maps the features through the weight matrix and bias vector. The weight matrix and bias vector of the fully connected layer perform matrix multiplication and addition operations with the input features to map the features to the behavior category space. The mapped features are normalized through the activation function to obtain the probability distribution of the target behavior in each category.
[0102] Set a preset probability threshold to determine the minimum probability requirement for a behavior to belong to a certain category, find the maximum probability value in the probability distribution, and compare it with the preset probability threshold. If the maximum probability value is not less than the probability threshold, the current behavior is determined to be the category with the highest probability. If the maximum probability value is less than the probability threshold, the current behavior is determined to be an unknown category behavior.
[0103] Use the focus loss function to calculate the loss value of the current judgment result, measure the difference between the predicted result and the true label, take minimizing the function value of the focus loss function as the optimization goal, dynamically adjust the probability threshold through optimization algorithms such as gradient descent, update the classification label of the current behavior according to the adjusted probability threshold, repeat the calculation and update until the maximum number of iterations is reached or the loss function converges, and for each behavior to be identified, repeat the classification and arrange the identification results in chronological order to form a behavior identification result sequence;
[0104] Create an empty key behavior list to store the identified key behaviors, traverse each behavior in the behavior recognition result sequence in chronological order, compare the category label of the current behavior with the category label of the behavior at the previous moment, if the category label of the current behavior is inconsistent with the category label of the behavior at the previous moment, then treat the current behavior as a new key behavior, add the new key behavior to the key behavior list, and record the start timestamp and end timestamp of the key behavior, repeat the recognition until the behavior recognition result sequence traversal is completed, traverse each behavior in the key behavior list, and determine whether the category label of the current behavior is an unknown category behavior. If the category label of the current behavior is an unknown category behavior, then this behavior is considered to be an abnormal behavior, trigger an alarm, and prompt that the abnormal behavior is found. According to the start timestamp and end timestamp of the abnormal behavior, draw the spatiotemporal behavior trajectory diagram corresponding to the abnormal behavior.
[0105] In this embodiment, by inputting the extracted multi-scale spatiotemporal behavior features into the fully connected layer, and using the weight matrix and bias vector of the fully connected layer to transform and map the features, the behavior features can be mapped to the behavior category space, which helps to improve the efficiency and accuracy of behavior recognition and reduce the workload of manual analysis. By introducing the focus loss function, the probability threshold can be dynamically adjusted and the classification label of the behavior can be updated, which helps to improve the robustness and adaptability of behavior recognition and enable the model to better cope with complex scenarios. By traversing the behavior recognition result sequence and comparing the category label of the current behavior with the behavior at the previous moment, the key behavior can be automatically extracted and its start timestamp and end timestamp can be recorded. The change point and key moment of the behavior can be quickly located, providing important time clues for subsequent behavior analysis. By setting the probability threshold and dynamically adjusting the threshold, the judgment standard of abnormal behavior can be effectively controlled to improve the accuracy of anomaly detection. In summary, this embodiment realizes automatic recognition, classification and anomaly detection of behavior, and improves the efficiency, accuracy and real-time performance of behavior analysis.
[0106] In an optional embodiment,
[0107] The fully connected layer is mapped to the behavior category space, and the probability distribution of the target behavior is calculated by combining the weight matrix and bias vector of the fully connected layer as shown in the following formula:
[0108]
[0109] Among them, p represents the probability distribution vector of the behavior category, W c represents the weight matrix of the fully connected layer, N s represents the number of scales, α represents the learnable vector, and H i represents the spatiotemporal behavior characteristics of the i-th scale, H j represents the spatiotemporal behavior characteristics of the jth scale, T represents the transposition operation, and bc Represents the bias vector of the fully connected layer.
[0110] In this embodiment, the complementarity and correlation between features of different scales can be fully utilized to extract a more comprehensive and robust behavior representation, which helps to improve the accuracy of behavior recognition. The weight matrix and bias vector are introduced to perform nonlinear transformation on the fused features, which helps to enhance the model's modeling ability for complex behaviors and improve the accuracy of behavior recognition. By generating a probability distribution of behavior categories, the possibility of target behaviors in different categories can be intuitively understood, which helps users understand and interpret the results of behavior recognition and provides important information for subsequent decision-making and analysis. In summary, this embodiment can effectively improve the accuracy, robustness and interpretability of behavior recognition, while optimizing computational efficiency and realizing real-time processing.
[0111] Figure 2 FIG. 1 is a schematic diagram of a behavior recognition system based on buried leakage cables and multi-modal sensing according to an embodiment of the present invention. Figure 2 As shown, the system comprises:
[0112] The first unit is used to add multiple leaky coaxial cables in the target area, wherein each leaky coaxial cable corresponds to a sub-area, and a multimodal sensor array is set in each sub-area, and the radio frequency signal emitted by the leaky coaxial cable is obtained through the multimodal sensor array, and the phase information of the radio frequency signal is extracted according to the adaptive beamforming algorithm, and the target moving speed is determined in combination with the Doppler frequency shift, and the optical flow feature, appearance feature and skeleton feature are extracted through the video data, and the frequency domain feature of the audio data is extracted through the Mel frequency cepstral coefficient, and the acquired information and the radio frequency information are deeply integrated to generate a multimodal heterogeneous graph network;
[0113] The second unit is used to update the feature representation of the nodes in the multimodal heterogeneous graph network based on the graph attention network, in combination with the node attention and edge attention mechanisms, to obtain a first feature, to perform a convolution operation on the first feature through a spatiotemporal graph convolutional neural network and to extract the temporal features and spatial features of the target, to construct a spatiotemporal behavior representation, to perform sequence learning on the spatiotemporal behavior representation through a bidirectional long short-term memory network, to determine the long-term dependency, and to adjust the hyperparameters of the bidirectional long short-term memory network through a gating unit in combination with a self-calibration mechanism and to generate spatiotemporal behavior features of different scales;
[0114] The third unit is used to map the spatiotemporal behavior features to the behavior category space through a fully connected layer to obtain the target behavior probability distribution, determine the behavior category in combination with the probability threshold, determine the determination loss value in combination with the focal loss function and generate a behavior recognition result sequence, extract key behaviors from the behavior recognition result sequence and calculate the timestamp corresponding to each behavior, and if there is abnormal behavior, trigger an alarm and draw a spatiotemporal behavior trajectory diagram of people in the target area according to the recognition result sequence.
[0115] According to a third aspect of the embodiments of the present invention,
[0116] An electronic device is provided, comprising:
[0117] processor;
[0118] a memory for storing processor-executable instructions;
[0119] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0120] A fourth aspect of the embodiments of the present invention is:
[0121] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.
[0122] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.
[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A behavior recognition method based on buried leakage cable and multimodal sensing, characterized in that: include: Add multiple leaky coaxial cables in the target area, wherein each leaky coaxial cable corresponds to a sub-area, and a multimodal sensor array is set in each sub-area, and the radio frequency signal emitted by the leaky coaxial cable is obtained through the multimodal sensor array, and the phase information of the radio frequency signal is extracted according to the adaptive beamforming algorithm, and the target moving speed is determined in combination with the Doppler frequency shift, and the optical flow feature, appearance feature and skeleton feature are extracted through the video data, and the frequency domain feature of the audio data is extracted through the Mel frequency cepstral coefficient, and the acquired information and the radio frequency information are deeply fused to generate a multimodal heterogeneous graph network; Based on the graph attention network, the feature representation of the nodes in the multimodal heterogeneous graph network is updated in combination with the node attention and edge attention mechanisms to obtain a first feature, the first feature is convolved by a spatiotemporal graph convolutional neural network to extract the temporal features and spatial features of the target, a spatiotemporal behavior representation is constructed, the spatiotemporal behavior representation is sequentially learned by a bidirectional long short-term memory network to determine the long-term dependency, and the hyperparameters of the bidirectional long short-term memory network are adjusted by a gating unit in combination with a self-calibration mechanism to generate spatiotemporal behavior features of different scales; The spatiotemporal behavior features are mapped to the behavior category space through a fully connected layer to obtain the target behavior probability distribution, the behavior category is determined in combination with the probability threshold, the determination loss value is determined in combination with the focal loss function and a behavior recognition result sequence is generated, key behaviors are extracted from the behavior recognition result sequence and the timestamp corresponding to each behavior is calculated, if there is abnormal behavior, an alarm is triggered and a spatiotemporal behavior trajectory diagram of people in the target area is drawn according to the recognition result sequence.
2. The method according to claim 1, characterized in that Add multiple leaky coaxial cables in the target area, wherein each leaky coaxial cable corresponds to a sub-area, and a multimodal sensor array is set in each sub-area. The radio frequency signal emitted by the leaky coaxial cable is obtained through the multimodal sensor array, and the phase information of the radio frequency signal is extracted according to the adaptive beamforming algorithm, and the target moving speed is determined in combination with the Doppler frequency shift, and the optical flow feature, appearance feature and skeleton feature are extracted through the video data, and the frequency domain feature of the audio data is extracted through the Mel frequency cepstral coefficient, and the acquired information and the radio frequency information are deeply integrated to generate a multimodal heterogeneous graph network, including: Divide the target area into multiple sub-areas according to the size and shape of the target area, and set a leaky coaxial cable and a multi-modal sensor array in each sub-area, wherein the multi-modal sensor array includes a radio frequency receiving sensor, a video sensor and an audio sensor; The radio frequency signal emitted by the leaky coaxial cable is collected by a radio frequency receiving sensor and filtered and amplified, and the video data and audio data collected by the video sensor and the audio sensor are preprocessed, and an adaptive beamforming algorithm is applied to the preprocessed radio frequency signal to adaptively adjust the array antenna weights and extract the phase information corresponding to the radio frequency signal at different positions in the target area, and the phase information is analyzed by short-time Fourier transform to obtain Doppler frequency shift information, and the instantaneous speed and motion trajectory of the target are calculated by combining the Doppler speed estimation algorithm; The preprocessed audio data is framed and windowed, and each frame of the audio signal is subjected to time-frequency analysis to obtain the frequency domain features corresponding to the audio signal. The motion vectors between the preprocessed video frames are calculated by sparse optical flow, and the appearance features of the video frames are extracted by a pre-trained appearance extraction model. The skeleton features of each frame in the preprocessed video data are extracted by a posture estimation algorithm, and the spatial relationship and motion pattern of the key points of the human body are generated based on the extracted skeleton features. Based on the spatial relationship and motion pattern of the key points of the human body, combined with the motion trajectory and the frequency domain features, the corresponding radio frequency signals, audio data and video data are used as nodes, and the association relationships between nodes of different modalities are used as edges to construct an initial multimodal heterogeneous graph network. The feature representation of each node is learned by aggregating neighbor node information, and the feature representation of each node is updated in combination with the cross-modal attention matrix to obtain the multimodal heterogeneous graph network.
3. The method according to claim 2, characterized in that The preprocessed video data is used to calculate the motion vector between video frames through sparse optical flow as shown in the following formula: Among them, E() represents the error of optical flow estimation, I(x,y,t) represents the pixel value at position (x,y) of the t-th frame, u represents the pixel displacement in the x direction to be estimated, v represents the pixel displacement in the y direction to be estimated, and I(x+u,y+v,t+1) represents the pixel value at position (x+u,y+v) of the t+1 frame.
4. The method according to claim 1, characterized in that: Based on the graph attention network, the feature representation of the nodes in the multimodal heterogeneous graph network is updated in combination with the node attention and edge attention mechanisms to obtain a first feature, the first feature is convolved by a spatiotemporal graph convolutional neural network to extract the temporal features and spatial features of the target, a spatiotemporal behavior representation is constructed, the spatiotemporal behavior representation is sequence-learned by a bidirectional long short-term memory network to determine the long-term dependency, and the hyperparameters of the bidirectional long short-term memory network are adjusted by a gating unit in combination with a self-calibration mechanism to generate spatiotemporal behavior features of different scales, including: Based on the graph attention network, the attention coefficient between nodes is calculated by combining the attention vector and the shared weight matrix, the importance coefficient of each connecting edge is calculated by the edge attention mechanism, the node features are weightedly aggregated by combining the attention coefficient corresponding to the node and the importance coefficient corresponding to the connecting edge to obtain enhanced node features, the enhanced node features are spliced by the multi-head attention mechanism, and the first feature is obtained by combining the linear transformation; Perform spatial graph convolution on the first feature, aggregate and transform node features through adjacency matrix and degree matrix, determine spatial dependency between nodes, perform temporal convolution on the output features of spatial graph convolution, extract local temporal patterns and dependency in the time dimension through one-dimensional convolution, alternately stack multiple layers of spatial graph convolution and temporal convolution, and extract the spatiotemporal behavior representation of the target; The spatiotemporal behavior representation is flattened in dimension to obtain a temporal feature sequence, the temporal feature sequence is encoded through a bidirectional long short-term memory network, the long-term dependency corresponding to the temporal feature sequence is extracted through a forward memory network and a reverse memory network, the hyperparameters of the bidirectional long short-term memory network are dynamically adjusted in combination with a self-calibration mechanism, and the output features of the bidirectional long short-term memory network are pooled according to different time steps to obtain spatiotemporal behavior features at multiple scales, and the spatiotemporal behavior features are spliced to obtain spatiotemporal behavior features at multiple scales.
5. The method according to claim 1, characterized in that The first feature is subjected to spatial graph convolution, and the node features are aggregated and transformed through the adjacency matrix and degree matrix as shown in the following formula: Among them, X out represents the output feature matrix, represents the degree matrix of the adjacency matrix, represents the adjacency matrix with self-loops, X in represents the input feature matrix, and W represents the learnable weight matrix.
6. The method according to claim 1, characterized in that The spatiotemporal behavior features are mapped to the behavior category space through a fully connected layer to obtain the target behavior probability distribution, the behavior category is determined in combination with the probability threshold, the determination loss value is determined in combination with the focus loss function and a behavior recognition result sequence is generated, key behaviors are extracted from the behavior recognition result sequence and the timestamp corresponding to each behavior is calculated. If there is abnormal behavior, an alarm is triggered and a spatiotemporal behavior trajectory diagram of the target area personnel is drawn according to the recognition result sequence, including: The extracted spatiotemporal behavior features at multiple scales are added to the fully connected layer, mapped to the behavior category space through the fully connected layer, and the probability distribution of the target behavior is calculated in combination with the weight matrix and the bias vector of the fully connected layer. According to the probability distribution and the preset probability threshold, the behavior category is determined. If the maximum probability value in the probability distribution is not less than the probability threshold, the current behavior is determined to be the category with the highest probability, otherwise, the current behavior is determined to be an unknown category behavior; Determine the loss value of the current judgment result through the focus loss function, take minimizing the function value of the focus loss function as the goal, dynamically adjust the probability threshold and update the classification label of the current behavior, repeat the update until the preset maximum number of iterations is reached, obtain the behavior recognition result of the current behavior, repeat the recognition until all behaviors are classified, and obtain a behavior recognition result sequence; Initialize the key behavior list, traverse the behavior recognition result sequence, if the category label of the current behavior is inconsistent with the category label of the behavior at the previous moment, then regard the current behavior as a new key behavior, add it to the key behavior list and record the start timestamp and end timestamp of the current key behavior, and add it until the behavior recognition result sequence is traversed; For each behavior in the key behavior list, if there is a behavior whose category label is an unknown category behavior, this behavior is considered to be an abnormal behavior, an alarm is triggered, and a spatiotemporal behavior trajectory diagram corresponding to the current abnormal behavior is drawn according to the start timestamp and the end timestamp.
7. The method according to claim 6, characterized in that The fully connected layer is mapped to the behavior category space, and the probability distribution of the target behavior is calculated by combining the weight matrix and bias vector of the fully connected layer as shown in the following formula: Among them, p represents the probability distribution vector of the behavior category, W c represents the weight matrix of the fully connected layer, N s represents the number of scales, α represents the learnable vector, and H i represents the spatiotemporal behavior characteristics of the i-th scale, H j represents the spatiotemporal behavior characteristics of the jth scale, T represents the transposition operation, and b c Represents the bias vector of the fully connected layer.
8. A behavior recognition system based on buried leakage cable and multimodal sensing, used to implement the method described in any one of claims 1 to 7, characterized in that: include: The first unit is used to add multiple leaky coaxial cables in the target area, wherein each leaky coaxial cable corresponds to a sub-area, and a multimodal sensor array is set in each sub-area, and the radio frequency signal emitted by the leaky coaxial cable is obtained through the multimodal sensor array, and the phase information of the radio frequency signal is extracted according to the adaptive beamforming algorithm, and the target moving speed is determined in combination with the Doppler frequency shift, and the optical flow feature, appearance feature and skeleton feature are extracted through the video data, and the frequency domain feature of the audio data is extracted through the Mel frequency cepstral coefficient, and the acquired information and the radio frequency information are deeply integrated to generate a multimodal heterogeneous graph network; The second unit is used to update the feature representation of the nodes in the multimodal heterogeneous graph network based on the graph attention network, in combination with the node attention and edge attention mechanisms, to obtain a first feature, to perform a convolution operation on the first feature through a spatiotemporal graph convolutional neural network and to extract the temporal features and spatial features of the target, to construct a spatiotemporal behavior representation, to perform sequence learning on the spatiotemporal behavior representation through a bidirectional long short-term memory network, to determine the long-term dependency, and to adjust the hyperparameters of the bidirectional long short-term memory network through a gating unit in combination with a self-calibration mechanism and to generate spatiotemporal behavior features of different scales; The third unit is used to map the spatiotemporal behavior features to the behavior category space through a fully connected layer to obtain the target behavior probability distribution, determine the behavior category in combination with the probability threshold, determine the determination loss value in combination with the focal loss function and generate a behavior recognition result sequence, extract key behaviors from the behavior recognition result sequence and calculate the timestamp corresponding to each behavior, and if there is abnormal behavior, trigger an alarm and draw a spatiotemporal behavior trajectory diagram of people in the target area according to the recognition result sequence.
9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 7.
10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Power equipment fault diagnosis method based on multi-dimensional feature attention enhancement
CN119622318A
Expolation model for multivariate time sequence analysis and training method thereof
CN119669663A
Intelligent construction site management method and system based on photoelectric and video fences
CN119942767A
Intelligent construction site management methods and systems based on photoelectric and video fences
CN119942767B
Human motion recognition method based on human skeleton distribution, electronic equipment and storage medium
CN120375470A
