Abnormal gait recognition method and system based on spatiotemporal attention enhanced graph convolution
The spatiotemporal attention-enhanced graph convolution method solves the problems of noise interference and feature extraction in abnormal gait recognition, extracts fine-grained features of key joints, improves classification accuracy, and is suitable for the recognition of multiple gait patterns.
Patent Information
- Application Number
- CN202111221032.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-20
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-10-20
AI Technical Summary
The existing technology has noise interference and data errors in abnormal gait recognition, and it is difficult to extract spatial features, resulting in limited classification accuracy. In particular, the features of abnormal gait are complex and fine-grained, making it difficult to generalize.
The graph convolution method based on spatiotemporal attention enhancement is used to extract spatiotemporal features by constructing a gait skeleton graph sequence and a multi-scale graph convolutional neural network, and strengthen the features of key joints layer by layer, and use the spatiotemporal joint point attention mechanism to enhance classification. Effect.
It improves the spatial and temporal feature extraction capabilities of abnormal gait, enhances the classification effect, and achieves more efficient abnormal gait identification, especially showing superiority and stability in multiple gait modes.
Smart Images

Figure CN113887486B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of gait analysis, and in particular to an abnormal gait recognition method and system based on spatiotemporal attention enhanced graph convolution. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] Gait plays an important role in reflecting the health of the human body. Elderly degenerative diseases and neurological diseases can have serious adverse effects on gait, such as Parkinson's disease and stroke. Moreover, gait analysis can also be used for motion analysis, correcting movement posture and reducing the occurrence of sports injuries. With the popularization of depth cameras, automatic abnormal gait analysis by extracting skeleton information from depth images has important application value for medical monitoring and clinical diagnosis. It can reduce the cost of sensors for gait measurement, realize automatic diagnosis that does not rely on the subjective evaluation of doctors, improve diagnostic efficiency, and detect gait changes of patients as early as possible through daily medical monitoring, prevent related diseases and avoid irreversible adverse consequences.
[0004] There are two difficulties in skeleton-based abnormal gait recognition. First, the skeleton information extracted by the depth camera contains a lot of noise interference and serious data errors, which is very unfavorable for the automatic recognition of abnormal gaits. In previous studies, low-pass filtering is usually used to process skeleton information to reduce noise interference, and abnormal data frames are removed to improve detection accuracy. Although this has a certain effect, the classification accuracy is still limited by the performance of hardware equipment. Second, the gait pattern characteristics of abnormal gaits depend on the temporal and spatial relationship between body joints. Compared with normal gaits, abnormal gaits only have fine-grained local features, which makes it difficult to extract and classify abnormal gait features. In existing studies, gait features based on prior knowledge are extracted for abnormal gait recognition, such as joint angles, step lengths, etc., but there are many types of abnormal gaits and complex features. Artificial gait features are only for specific gait types and difficult to generalize.
[0005] In the past, gait recognition based on deep learning algorithms mostly used recurrent neural networks and convolutional neural networks, stacking the skeleton coordinates of each frame into a feature vector as the input of the recurrent neural network at each time step, or only convolving the skeleton position coordinates in the time direction. This method completely ignores the relationship between joints and has no ability to extract spatial features, which is very unfavorable for abnormal gait recognition. Summary of the invention
[0006] In order to address the deficiencies of the prior art, the present disclosure provides an abnormal gait recognition method and system based on spatiotemporal attention enhanced graph convolution. In view of the locality and spatiotemporal dependence of abnormal gait pattern features, the present application fully considers the body connection relationship between joints, obtains the body posture characteristics during walking, and uses the joint gait motion relationship scale to extract the joint motion characteristics. The fusion of graph convolutions at multiple scales can enhance the expression ability of gait features. The present application proposes a unified spatiotemporal attention mechanism to obtain the spatiotemporal position of important joints, strengthen the spatiotemporal joint feature map layer by layer, strengthen the information of abnormal joint points, extract more discerning local fine-grained joint features, and enhance the effect of abnormal gait classification.
[0007] In order to achieve the above object, the present invention adopts the following technical solution:
[0008] A first aspect of the present invention provides an abnormal gait recognition method based on spatiotemporal attention enhanced graph convolution, comprising:
[0009] The steps include:
[0010] Obtain human gait skeleton joint data and extract gait feature vectors;
[0011] Construct a gait skeleton graph sequence based on the gait feature vector and the skeleton adjacency matrix of each frame;
[0012] According to the gait skeleton graph sequence and the spatiotemporal multi-scale graph convolutional neural network model, the spatiotemporal feature representation of abnormal gait is extracted;
[0013] According to the spatiotemporal feature representation of abnormal gait, a spatiotemporal joint attention mechanism is constructed to strengthen the features of the key spatiotemporal joints of abnormal gait layer by layer to obtain the abnormal gait classification results.
[0014] In some embodiments, the construction process of the spatiotemporal multi-scale graph convolutional neural network model includes: updating layer by layer through graph convolution, and the update rule is: using a fully connected layer to map node features, performing weighted averaging on the features of each node and its neighboring nodes in the graph structure by left-multiplying a normalized adjacency matrix, and then outputting the updated features of the node through an activation function.
[0015] In some embodiments, the spatial features include joint trajectory features, joint angle features, and gait parameter features.
[0016] In some embodiments, the abnormal gait spatiotemporal features include joint trajectory features, joint angle features, and gait parameter features.
[0017] In some embodiments, the joint trajectory feature extraction process is: extracting the three-dimensional coordinates of each joint point, using graph convolution to map the coordinates of each joint to a high-dimensional space to obtain the depth feature of the joint point, and using time convolution to obtain the time trajectory feature of the joint point;
[0018] Or, the process of extracting the joint angle feature is to establish an adjacency matrix according to the connection relationship of the human body joints, use graph convolution to model the geometric features of the joints, and use time convolution to model the joint angle dynamics;
[0019] Alternatively, the gait parameter feature extraction process is: establishing an adjacency matrix based on clinical prior knowledge and gait parameters, using graph convolution to extract the spatial gait parameter features hidden between corresponding joints, and further using a temporal convolutional network to establish spatiotemporal gait parameter features.
[0020] In some embodiments, the step of gradually strengthening the features of key spatiotemporal joints of abnormal gait includes:
[0021] Perform dimension transformation on the spatiotemporal feature representation of gait to obtain a temporal feature vector and a spatial feature vector;
[0022] The time and space attention factors are solved separately through the fully connected layer;
[0023] Based on the time and space attention factors, we get the joint spatiotemporal attention weight distribution map;
[0024] The spatiotemporal feature vector of gait enhanced with spatiotemporal attention is obtained according to the joint spatiotemporal attention weight distribution map.
[0025] In some embodiments, the human gait skeleton joint data includes data of seven joint points in the lower limb joints: the ankle joint, the knee joint, the hip joint, and the midpoint of the hip joint.
[0026] In some implementations, the graph convolution layer-by-layer update rule is as follows:
[0027]
[0028] in, is the normalized adjacency matrix, is the skeleton joint data of the tth frame, is a learnable parameter, C l ,C l+1 are the dimensions of the node features of the lth and l+1th layers respectively, and σ(·) is the activation function.
[0029] A second aspect of the present invention provides an abnormal gait recognition system based on spatiotemporal attention enhanced graph convolution, comprising:
[0030] A gait feature vector extraction module is configured to: obtain human gait skeleton joint data and extract gait feature vectors;
[0031] A gait skeleton graph sequence acquisition module is configured to: construct a gait skeleton graph sequence according to a gait feature vector and a skeleton adjacency matrix of each frame;
[0032] The gait abnormality recognition module is configured to: extract the spatiotemporal feature representation of abnormal gait according to the gait skeleton graph sequence and the spatiotemporal multi-scale graph convolutional neural network model; wherein, a spatiotemporal joint point attention mechanism is constructed according to the spatiotemporal feature representation of abnormal gait, and the features of the key spatiotemporal joints of abnormal gait are strengthened layer by layer to obtain the abnormal gait classification result. The third aspect of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that when the processor executes the program, the steps of any of the above-mentioned abnormal gait recognition methods based on spatiotemporal attention enhanced graph convolution are implemented.
[0033] The fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of the abnormal gait recognition method based on spatiotemporal attention enhanced graph convolution as described above are implemented.
[0034] Compared with the prior art, the present invention has the following beneficial effects:
[0035] (1) The present invention uses graph convolutional neural networks for abnormal gait recognition based on skeleton data, constructs a spatiotemporal gait graph based on the body structure and gait movement characteristics, fully considers the characteristics of abnormal gait and skeleton data, and more efficiently extracts the spatial and temporal features of abnormal gait.
[0036] (2) This paper proposes a spatiotemporal joint attention mechanism to strengthen the features of key spatiotemporal joint points layer by layer, and enhance the network's ability to extract fine-grained joint features. A large number of experiments on two datasets with different numbers of gait patterns and samples verify the effectiveness and superiority of the proposed method.
[0037] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0039] Figure 1It is a schematic diagram of the overall process of the abnormal gait recognition method based on spatiotemporal attention enhanced graph convolution provided in Example 1 of the present invention;
[0040] Figure 2 is a gait skeleton diagram provided by Example 1 of the present invention;
[0041] FIG3( a ) is a diagram showing a spatial gait skeleton graph decomposed into three gait skeleton subgraphs as shown in Example 1 of the present invention;
[0042] FIG3( b ) is a subgraph established by extracting joint trajectory features according to Embodiment 1 of the present invention;
[0043] FIG3( c ) is a subgraph established by extracting joint angle features according to Embodiment 1 of the present invention;
[0044] FIG3( d ) is a subgraph established by extracting gait parameter features according to Embodiment 1 of the present invention;
[0045] Figure 4 It is the multi-scale graph convolutional network structure provided by Embodiment 1 of the present invention;
[0046] Figure 5(a)-Figure 5(c) This is the attention module diagram provided in Example 1 of the present invention.
[0047] Figure 6 It is a framework diagram of a multi-scale graph convolutional network algorithm with layer-by-layer attention enhancement provided by Example 1 of the present invention;
[0048] Figure 7(a)-Figure 7(c) This is a visualized attention weight distribution diagram provided in Example 1 of the present invention. DETAILED DESCRIPTION
[0049] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0050] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0051] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0052] This application proposes to automatically extract abnormal gait representations, based on the body connection scale between joints, to obtain body posture characteristics during walking. Considering that in clinical gait analysis, gait parameters during walking are important analysis contents, such as step length, etc., this application extracts joint motion characteristics based on the gait joint motion relationship scale, and the expression ability of gait characteristics can be enhanced through convolution fusion of multiple scales. The present invention proposes a spatiotemporal joint attention mechanism, which enhances the effect of abnormal gait classification by obtaining the spatiotemporal positions of important joints and strengthening the spatiotemporal joint feature maps layer by layer.
[0053] Embodiment 1
[0054] like Figure 1 As shown, the present invention provides an abnormal gait recognition method based on spatiotemporal attention enhanced graph convolution, comprising the following steps:
[0055] Step 1: Get gait skeleton joint data
[0056] The joint coordinate data of the human body during walking is acquired by a Kinect camera, and the gait skeleton joint data includes data of seven joint points of the lower limb joints, namely, the ankle joint, the knee joint, the hip joint and the midpoint of the hip joint.
[0057] As a specific embodiment, only the data of seven joint points of the lower limb joints, namely the ankle joint, knee joint, hip joint and the midpoint of the hip joint, are selected. The reason why the toes data is not used is that the data deviation of the foot is relatively large.
[0058] Guess et al. verified the accuracy and reliability of Kinects v2 in measuring the angles of the human hip and knee joints during the take-off action; Eltoukhy et al. verified the reliability of using Kinect v2 for gait evaluation when people walk on a treadmill. In terms of gait kinematics, the knee and hip angles in the sagittal plane are highly consistent with the measurement results of the Vicon system, while the ankle measurement results are less consistent; Tanaka et al. also verified the reliability of Kinect v2 in measuring gait parameters when people walk on flat ground, and found that the errors of the hip and knee angles in the sagittal and coronal planes were within 5 degrees, which met the requirements for clinical use; Khokhlova et al. verified the accuracy of the three kinematic parameters of flexion and extension, abduction and adduction, and external rotation and internal rotation of the hip and knee joints measured by the Kinect camera for unbalanced gait, and found that the flexion and extension angles of the hip and knee joints were more accurate. The above studies show that the Kinect v2 camera has met the requirements for clinical application in measuring kinematic parameters, especially the angles of the hip and knee joints.
[0059] Step 2: Extract the gait feature vector and construct a gait skeleton graph sequence based on the gait feature vector X and the skeleton adjacency matrix A of each frame;
[0060] Defining the human skeleton in is a set of N body joints, ε={v i v j |(i,j)∈H} is the geometric set of joint connection edges of each frame of skeleton data, and H represents the set of connection relationships of body joint points.
[0061] The human skeleton graph is an undirected graph. is an adjacency matrix (an adjacency matrix is a mathematical property of a graph), if v i v j If exists, then A ij =1, otherwise A ij =0.
[0062] in, is the node feature vector, where T is the number of frames in the skeleton sequence, N is the number of joint points in each frame, and C is the dimension of the joint point feature, i.e. X t ,n,: refers to the feature of joint n in the tth frame, 1≤t≤T, 1≤n≤N.
[0063] Each gait skeleton graph sequence can be represented by the gait feature vector X and each frame skeleton adjacency matrix A, where: is the skeleton joint data of the tth frame.
[0064] like Figure 2 As shown in FIG. 1 , the coordinate information of 7 lower limb joints is intercepted from the coordinate data of 25 joint points captured by the Kinect camera to construct a gait skeleton graph sequence.
[0065] Step 3: Obtain the deep representation of abnormal gait based on the gait skeleton graph sequence and the multi-scale graph convolutional neural network model based on body structure and gait motion;
[0066] The process of constructing the multi-scale graph convolutional neural network based on body structure and gait motion includes the following steps:
[0067] Based on the skeleton joint data and the adjacency matrix, the spatiotemporal depth features of abnormal gait are updated layer by layer through graph convolution. The update rule is: use the fully connected layer to map the node features, perform weighted averaging on the features of each node and its neighboring nodes in the graph structure by left-multiplying the normalized adjacency matrix, and then use the activation function output as the updated feature of this node.
[0068] Specifically, the graph convolution layer-by-layer update rule is as follows:
[0069]
[0070] in, is the normalized adjacency matrix, is the skeleton joint data of the tth frame, is a learnable parameter, C l ,C l+1 are the dimensions of the node features of the lth and l+1th layers respectively, and σ(·) is the activation function.
[0071] The adjacency matrix is normalized by symmetric normalization of the graph Laplacian matrix
[0072] Or, the random walk normalized matrix
[0073] Or, in graph convolution, to prevent gradient explosion, in
[0074] Graph convolution can only aggregate the features of adjacent nodes and build a gait skeleton graph based on the connection relationship of body joints, which cannot effectively extract gait spatiotemporal features. Gait spatiotemporal features include joint trajectory features, joint angle features, and gait parameter features. In order to improve the modeling ability of gait spatiotemporal features, the spatial gait skeleton graph shown in Figure 3(a) is decomposed into three gait skeleton subgraphs based on the representation of the above three features. Each subgraph represents the features of the corresponding scale of the gait skeleton graph. The graph components are shown as follows: Figure 3(b)-Figure 3(d) As shown:
[0075] Among them, Figure 3(b) is the subgraph established by extracting joint trajectory features, and the adjacency matrix A root =I, which means that the graph convolution in this group actually linearly transforms the features of each node through the fully connected layer.
[0076] Figure 3(c) shows the subgraph created to extract joint angle features. Extracting gait kinematic parameter features such as joint angles requires using the coordinates of three adjacent joint points to calculate the joint angles, so the adjacency matrix is defined as A angle , as shown in the following formula:
[0077]
[0078] Figure 3(d) shows the subgraph created by extracting gait parameter features. In clinical gait analysis, step length, step width, knee height, and hip joint height are all important gait feature parameters. Based on these features, the kinematic connection relationship between joints during walking is determined. Its adjacency matrix A gait for:
[0079]
[0080] like Figure 4 As shown in the figure, after grouping, each layer of graph convolution is obtained as follows:
[0081]
[0082] in, yes The measurement matrix of yes After the spatial features are extracted by graph convolution, the temporal features of the gait sequence are extracted using the temporal convolutional network (TCN).
[0083] In order to further obtain fine-grained abnormal gait space-time and alleviate the problem of over-smoothing features in the graph convolution update process, we added a spatiotemporal joint point attention mechanism layer by layer to enhance the abnormal joint point features.
[0084] Figure 5(a)-Figure 5(c) is the attention module diagram, such as Figure 5(a)-Figure 5(c) As shown, when calculating the spatiotemporal attention map, considering that a single joint point contains less information, in order to increase the perception area of attention, the solution of the spatiotemporal attention map in this embodiment includes the following steps:
[0085] The gait spatiotemporal feature vector Perform dimension transformation to obtain the time feature vector and spatial eigenvectors
[0086] The time and space attention factors are solved separately through the fully connected layer;
[0087] Among them, the temporal attention factor is:
[0088] The spatial attention factor is:
[0089] in,
[0090] The joint spatiotemporal attention weight distribution map is obtained based on the time and space attention factors, and Gaussian normalization is performed: Att (l) =softmax(φ (l) θ (l)T );
[0091] in,
[0092] The spatiotemporal feature vector of gait enhanced by spatiotemporal attention is:
[0093] like Figure 6 As shown in the figure, a graph convolutional network with spatiotemporal attention enhancement is constructed for abnormal gait recognition, and the following loss function is used for network optimization;
[0094]
[0095] in, is the classification loss function, To ensure the sparsity of the attention weight matrix, is the prediction vector, y c is the label vector, M is the number of gaits, L is the number of network layers, H is the number of attention heads, and λ is the weight coefficient.
[0096] Experimental process:
[0097] Two public datasets are used to verify the proposed method. The data are collected as follows:
[0098] The walking gait dataset: volunteers wore insoles of different thicknesses to simulate unbalanced gaits, using 5 cm, 10 cm, and 15 cm soles and 4 kg weights, so that volunteers could simulate different degrees of unbalanced gaits. The data was obtained using a treadmill and Kinect v2. A total of nine volunteers participated in the data collection, and each person collected one normal gait and eight abnormal gait sequences;
[0099] Multimodal Gait Dataset (MMGS): Insoles were used to allow volunteers to simulate abnormal gait, or participants were asked not to bend one knee when walking to simulate abnormal gait. Only 7 cm insoles were used when collecting data to simulate abnormal gait. A total of 27 volunteers walked 5 to 7 times in each gait.
[0100] Ablation experiment: Table 1 shows the statistical results of model accuracy under various settings. Model 1 is a graph convolutional network based on joint trajectory feature map and joint angle feature map. Model 2 adds gait parameter feature map on the basis of Model 1. Model 3 adds attention module on the basis of Model 2.
[0101] Table 1
[0102] Model 1 Model 2 Model 3( Figure 6 ) average value(%) 88.58 92.16 92.26 Minimum value (%) 83.23 87.16 88.69 Maximum value (%) 92.2 94.18 94.56 variance <![CDATA[3.81×10 -4 ]]> <![CDATA[2.18×10 -4 ]]> <![CDATA[1.57×10 -4 ]]>
[0103] Ablation experiments were carried out based on the multimodal gait dataset (MMGS). In this embodiment, 48 frames were randomly intercepted in each gait as a gait data, so that the data for each training is actually different, which will cause the training results to fall into different minimum values. At the same time, due to the small sample size of the dataset, the training results will have a certain degree of randomness.
[0104] In this embodiment, each model is trained 50 times, and each training result is tested 50 times on the test set to take the average, and then the results of each model are analyzed. As can be seen from Table 1, the results of the three model training, the minimum value, maximum value, and average value increase successively, and the standard deviation decreases successively. The performance is significantly improved by increasing the graph convolution of the gait motion relationship scale, which fully demonstrates that increasing the scale of the gait motion relationship between joints plays an important role in extracting the spatiotemporal features of abnormal gaits. The spatiotemporal joint attention mechanism of layer-by-layer feature enhancement also enhances the model's ability to extract local gait features. It is worth noting that the standard deviation of the model training results decreases successively, which shows that the stability of the model training is also gradually increasing.
[0105] like Figure 7(a)-Figure 7(c) Visualizing the attention map, it can be seen from the attention map that the ability to extract fine-grained features of joints can be improved by enhancing the feature map with attention.
[0106] Comparative experiment
[0107] Table 2 shows the comparison of experimental results on the walking gait dataset:
[0108] Table 2
[0109]
[0110]
[0111] On this dataset, our method outperforms all other state-of-the-art methods and achieves 100% accuracy, which shows that our use of graph convolutional networks for abnormal gait recognition based on skeleton data has a significant effect.
[0112] Table 3 shows the comparison of experimental results on the multimodal gait dataset (MMGS):
[0113] Table 3
[0114]
[0115] The following conclusions were drawn from the comparison of the experimental results themselves and the data processing:
[0116] The accuracy of gait classification using raw skeleton data in the LSTM network model is 48%, and the accuracy of gait classification using filtering data, gait cycle segmentation, and calculating the joint angles of the knee and hip joints as gait features is as high as 91%. The model disclosed in the present invention does not perform any preprocessing on the skeleton data, and randomly intercepts 48 frames from a gait sequence as a gait data. The maximum accuracy of the model is 94.01%, which is higher than the LSTM network model using preprocessed manual gait features, and much higher than the LSTM network model using raw skeleton data. In addition, the training of the present invention is end-to-end, which also shows that the method adopted in the present invention plays an important role in extracting the spatiotemporal dependency of gait skeleton data.
[0117] Embodiment 2
[0118] This embodiment provides an abnormal gait recognition system based on spatiotemporal attention enhanced graph convolution, including:
[0119] A gait feature vector extraction module is configured to: obtain human gait skeleton joint data and extract gait feature vectors;
[0120] A gait skeleton graph sequence acquisition module is configured to: extract the spatiotemporal feature representation of abnormal gait according to the gait skeleton graph sequence and a spatiotemporal multi-scale graph convolutional neural network model;
[0121] According to the spatiotemporal feature representation of abnormal gait, a spatiotemporal joint attention mechanism is constructed to strengthen the features of the key spatiotemporal joints of abnormal gait layer by layer to obtain the abnormal gait classification results.
[0122] Embodiment 3
[0123] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the abnormal gait recognition method based on spatiotemporal attention enhanced graph convolution described in Embodiment 1 are implemented.
[0124] Embodiment 4
[0125] This embodiment provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of the abnormal gait recognition method based on spatiotemporal attention enhanced graph convolution described in Embodiment 1 are implemented.
[0126] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0127] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0128] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0129] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. Abnormal gait recognition method based on spatiotemporal attention enhanced graph convolution, characterized by: The steps include: Obtain human gait skeleton joint data and extract gait feature vectors; Construct a gait skeleton graph sequence based on the gait feature vector and the skeleton adjacency matrix of each frame; According to the gait skeleton graph sequence and the spatiotemporal multi-scale graph convolutional neural network model, the spatiotemporal feature representation of abnormal gait is extracted; According to the spatiotemporal feature representation of abnormal gait, a spatiotemporal joint attention mechanism is constructed to strengthen the features of key spatiotemporal joints of abnormal gait layer by layer to obtain the abnormal gait classification results. The human gait skeleton joint data includes data of seven joint points in the lower limb joints: the ankle joint, the knee joint, the hip joint and the midpoint of the hip joint; The abnormal gait spatiotemporal features include joint trajectory features, joint angle features and gait parameter features; The step of gradually strengthening the features of the key spatiotemporal joints of the abnormal gait comprises: Perform dimension transformation on the spatiotemporal feature representation of gait to obtain a temporal feature vector and a spatial feature vector; The time and space attention factors are solved separately through the fully connected layer; Based on the time and space attention factors, we get the joint spatiotemporal attention weight distribution map; According to the joint spatiotemporal attention weight distribution map, the spatiotemporal feature vector of gait enhanced by spatiotemporal attention is obtained; The solution of the spatiotemporal attention map includes the following steps: The gait spatiotemporal feature vector Perform dimension transformation to obtain the time feature vector and spatial eigenvectors The time and space attention factors are solved separately through the fully connected layer; Among them, the temporal attention factor is: The spatial attention factor is: in, The joint spatiotemporal attention weight distribution map is obtained based on the time and space attention factors, and Gaussian normalization is performed: Att (l) =softmax(φ (l) θ (l)T ); in, The spatiotemporal feature vector of gait enhanced by spatiotemporal attention is: The joint trajectory feature extraction process is as follows: extracting the three-dimensional coordinates of each joint point, using graph convolution to map the coordinates of each joint to a high-dimensional space to obtain the depth features of the joint point, and using time convolution to obtain the time trajectory features of the joint point; Or, the process of extracting the joint angle features is to establish a first adjacency matrix according to the connection relationship of the human body joints, use graph convolution to model the geometric features of the joints, and use time convolution to model the joint angle features; Alternatively, the gait parameter feature extraction process is: establishing a second adjacency matrix based on clinical prior knowledge and gait parameters, using graph convolution to extract the spatial gait parameter features hidden between corresponding joints, and further using a temporal convolutional network to establish gait parameter features.
2. The abnormal gait recognition method based on spatiotemporal attention enhanced graph convolution as claimed in claim 1, characterized in that: The construction process of the spatiotemporal multi-scale graph convolutional neural network model includes: updating layer by layer through graph convolution, and the update rule is: using a fully connected layer to map node features, performing weighted averaging of the features of each node and its neighboring nodes in the graph structure by left-multiplying the normalized adjacency matrix, and then outputting the activation function as the updated feature of this node.
3. The abnormal gait recognition method based on spatiotemporal attention enhanced graph convolution as claimed in claim 1, characterized in that: The graph convolution layer-by-layer update rule is as follows: in, is the normalized adjacency matrix, is the skeleton joint data of the tth frame, is a learnable parameter, C l ,C l+1 are the dimensions of the lth and l+1th layer node features respectively, and σ(·) is the activation function.
4. An abnormal gait recognition system based on spatiotemporal attention enhanced graph convolution, based on the abnormal gait recognition method based on spatiotemporal attention enhanced graph convolution as described in any one of claims 1 to 3, characterized in that: include: A gait feature vector extraction module is configured to: obtain human gait skeleton joint data and extract gait feature vectors; A gait skeleton graph sequence acquisition module is configured to: construct a gait skeleton graph sequence according to a gait feature vector and a skeleton adjacency matrix of each frame; The gait abnormality recognition module is configured to: extract the spatiotemporal feature representation of abnormal gait according to the gait skeleton graph sequence and the spatiotemporal multi-scale graph convolutional neural network model; According to the spatiotemporal feature representation of abnormal gait, a spatiotemporal joint attention mechanism is constructed to strengthen the features of key spatiotemporal joints of abnormal gait layer by layer to obtain the abnormal gait classification results. The human gait skeleton joint data includes data of seven joint points in the lower limb joints: the ankle joint, the knee joint, the hip joint and the midpoint of the hip joint; The abnormal gait spatiotemporal features include joint trajectory features, joint angle features and gait parameter features; The step of gradually strengthening the features of the key spatiotemporal joints of the abnormal gait comprises: Perform dimension transformation on the spatiotemporal feature representation of gait to obtain a temporal feature vector and a spatial feature vector; The time and space attention factors are solved separately through the fully connected layer; Based on the time and space attention factors, we get the joint spatiotemporal attention weight distribution map; The spatiotemporal feature vector of gait enhanced with spatiotemporal attention is obtained according to the joint spatiotemporal attention weight distribution map.
5. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the abnormal gait recognition method based on spatiotemporal attention enhanced graph convolution as described in any one of claims 1-3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the abnormal gait recognition method based on spatiotemporal attention enhanced graph convolution as described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Human skeleton action recognition method
CN111476181A
Skeleton behavior recognition method based on 3D space-time diagram convolution
CN111814719A
Skeleton behavior recognition method and device
CN112446253A
Video behavior recognition method and system based on channel attention-oriented time modeling
CN112818843A
Lightweight graph convolution human skeleton action recognition method based on channel attention
CN113111760A
