Human skeleton behavior recognition method based on space-time fusion graph convolutional network
Through the human skeleton behavior recognition method based on the spatiotemporal fusion graph convolution network, the skeleton data graph and the spatiotemporal fusion graph convolution operation block are used to optimize the human skeleton recognition model, which solves the problem of low accuracy in the existing technology and achieves more efficiency. and accurate human skeleton behavior recognition.
Patent Information
- Application Number
- CN202410758146.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-01
AI Technical Summary
The existing human skeleton behavior recognition technology has low accuracy, does not fully utilize the temporal and spatial information of the skeleton, and relies on prior knowledge, which limits the dependence and correlation between long-distance joint points.
The human skeleton behavior recognition method based on the spatiotemporal fusion graph convolution network is used to optimize the human skeleton recognition model and improve the joint space by constructing the skeleton data graph and obtaining the adjacency matrix, combined with the spatiotemporal fusion graph convolution operation block and the multi-scale temporal convolution unit. and the ability to identify time correlations.
It improves the accuracy and efficiency of human skeleton behavior recognition, enhances the structure and environmental robustness of the model, and improves the accuracy of recognition.
Smart Images

Figure CN118736670A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of skeleton behavior recognition, and more specifically, to a human skeleton behavior recognition method based on a spatiotemporal fusion graph convolutional network. Background Art
[0002] Human behavior recognition technology is one of the research directions of computer vision. It refers to the use of computer vision technology to analyze specified video or image sequences to identify the behavior categories displayed by the human body in the data. As a part of human recognition technology, human skeleton behavior recognition technology has received widespread attention and rapid development in recent years. Its application scope includes intelligent monitoring, human-computer interaction, motion analysis, health monitoring and other fields.
[0003] Although the existing human skeleton behavior recognition technology can also distinguish human behavior, its accuracy is low and it does not fully and effectively use the skeleton's temporal and spatial information for recognition. At the same time, traditional methods focus on using prior knowledge for recognition, which limits the dependency correlation between long-distance joint points.
[0004] The prior art discloses a method and system for identifying human skeleton data behavior, which identifies human skeleton data by establishing a GCN model and an attention mechanism. It focuses on lightweighting the model but ignores the improvement of accuracy. Summary of the invention
[0005] In view of the defect of inaccurate human skeleton behavior recognition in the prior art, the present invention proposes a human skeleton behavior recognition method based on a spatiotemporal fusion graph convolutional network to achieve accurate recognition of human skeleton behavior.
[0006] The primary purpose of the present invention is to solve the above technical problems. The technical solution of the present invention is as follows:
[0007] A human skeleton behavior recognition method based on spatiotemporal fusion graph convolutional network, comprising:
[0008] S1: Obtain human skeleton sequence data and its true behavior categories;
[0009] S2: constructing a skeleton data graph based on the human skeleton sequence data, and obtaining an adjacency matrix from the skeleton data graph; sampling the human skeleton sequence data to obtain a training data set;
[0010] S3: inputting the adjacency matrix and the training data set into the constructed human skeleton recognition model to obtain the behavior recognition category;
[0011] S4: establishing a loss function according to the behavior recognition category and the behavior true category, optimizing the constructed human skeleton recognition model, and obtaining a trained human skeleton recognition model;
[0012] S5: Input the user's skeleton sequence data to be recognized into the trained human skeleton recognition model to obtain the human skeleton recognition result.
[0013] Furthermore, in step S2, each sample in the training data set includes: joint coordinates, time series, number of joints, and true behavior category.
[0014] Furthermore, in step S2, the calculation formula for obtaining the adjacency matrix from the skeleton data graph is as follows:
[0015]
[0016] Among them, x and y represent the index of the joint in the skeleton data graph.
[0017] Furthermore, the human skeleton recognition model includes a plurality of sequentially connected spatiotemporal fusion graph convolutional network basic blocks and a fully connected layer.
[0018] Furthermore, the spatiotemporal fusion graph convolution network basic block includes a spatiotemporal fusion graph convolution operation block, a first summing point, a first activation unit, a second summing point, a multi-scale time convolution unit, a third summing point and a second activation unit connected in sequence;
[0019] The input end of the spatiotemporal fusion graph convolution operation block is also connected to the input ends of the second summing point and the third summing point respectively.
[0020] Furthermore, the spatiotemporal fusion graph convolution operation block is composed of a plurality of spatiotemporal fusion graph convolution units arranged in parallel;
[0021] The spatiotemporal fusion graph convolution unit includes: a time stream branch unit, a space stream branch unit, a spatiotemporal coupling stream branch unit, and a feature fusion unit;
[0022] The time stream branching unit, the space stream branching unit, and the time-space coupling stream branching unit are arranged in parallel, and the output ends of the time stream branching unit, the space stream branching unit, and the time-space coupling stream branching unit are all connected to the input end of the feature fusion unit.
[0023] Furthermore, the spatial stream branch unit includes: a first convolution layer, a global average pooling layer in the time dimension, a first pairwise self-reduction layer, a second convolution layer, a first feature summing point, and an adjacency matrix input layer;
[0024] Among them, the first convolution layer, the time dimension global average pooling layer, the first pairwise self-reduction layer, the second convolution layer, and the first feature summing point are connected in sequence, and the output end of the adjacency matrix input layer is connected to the input end of the first feature summing point;
[0025] The spatiotemporal coupling flow branching unit includes a third convolutional layer;
[0026] The time stream branch unit includes a fourth convolution module, a spatial dimension global average pooling layer, and a second pairwise self-reduction layer connected in sequence;
[0027] The feature fusion unit includes a first multiplication point, a second multiplication point and a fourth addition point;
[0028] Among them, the output end of the first feature addition point and the output end of the third convolutional layer are both connected to the input end of the first multiplication point, the output end of the third convolutional layer and the output end of the second pairwise self-subtraction layer are both connected to the input end of the second multiplication point, and the output end of the first multiplication point and the output end of the second multiplication point are both connected to the input end of the fourth addition point.
[0029] Furthermore, the multi-scale temporal convolution unit includes:
[0030] The fifth convolution layer, the sixth convolution layer, the seventh convolution layer, the eighth convolution layer, the first convolution expansion layer, the second convolution expansion layer, the maximum pooling layer, and the concat splicing layer;
[0031] Among them, the output end of the fifth convolutional layer is connected to the input end of the first convolutional expansion layer, the output end of the sixth convolutional layer is connected to the input end of the second convolutional expansion layer, the output end of the seventh convolutional layer is connected to the input end of the maximum pooling layer, and the output end of the first convolutional expansion layer, the output end of the second convolutional expansion layer, the output end of the maximum pooling layer, and the output end of the eighth convolutional layer are connected to the input end of the concat splicing layer.
[0032] Furthermore, in step S4, the loss calculation formula is as follows:
[0033]
[0034] Among them, N is the total number of samples in the training data set, i is a sample in N, M is the total number of true behavior categories, c is a true behavior category in M, and y ic Indicates whether the true category of the behavior of sample i is c, p ic It represents the predicted probability that sample i belongs to the true category c of behavior.
[0035] A human skeleton behavior recognition device based on a spatiotemporal fusion graph convolutional network, comprising:
[0036] Training data acquisition module: obtain human skeleton sequence data and its true behavior categories;
[0037] Preprocessing module: construct a skeleton data graph based on the human skeleton sequence data, and obtain an adjacency matrix from the skeleton data graph; sample the human skeleton sequence data to obtain a training data set;
[0038] Behavior category recognition module: input the adjacency matrix and training data set into the constructed human skeleton recognition model to obtain behavior recognition category;
[0039] Recognition model optimization module: establish a loss function according to the behavior recognition category and the behavior real category, optimize the constructed human skeleton recognition model, and obtain a trained human skeleton recognition model;
[0040] Recognition application module: input the user's skeleton sequence data to be recognized into the trained human skeleton recognition model to obtain the human skeleton recognition result.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] The present invention processes human skeleton sequence data through a human skeleton recognition model, making human skeleton behavior recognition more accurate. By constructing a skeleton data graph, human body recognition is made more efficient, more structured, and more environmentally robust, thereby improving the accuracy of human skeleton behavior recognition. By optimizing the human skeleton recognition model, the model has the ability to extract joint spatial correlation, temporal correlation, and aggregate joint information, thereby improving the accuracy of human skeleton behavior recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A flow chart of a method for human skeleton behavior recognition based on a spatiotemporal fusion graph convolutional network is provided in an embodiment.
[0044] Figure 2 A structural diagram of a human skeleton recognition model provided in an embodiment.
[0045] Figure 3 A basic block structure diagram of the spatiotemporal fusion graph convolutional network provided for the embodiment.
[0046] Figure 4 A structural diagram of a spatiotemporal fusion graph convolution unit provided in an embodiment.
[0047] Figure 5 A structural diagram of the spatiotemporal fusion graph convolution unit provided in the embodiment.
[0048] Figure 6 A structural diagram of a multi-scale temporal convolution unit provided in an embodiment. DETAILED DESCRIPTION
[0049] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;
[0050] In order to better illustrate the present embodiment, some parts in the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product;
[0051] It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.
[0052] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0053] Example
[0054] like Figure 1 As shown, a human skeleton behavior recognition method based on a spatiotemporal fusion graph convolutional network includes:
[0055] S1: Obtain human skeleton sequence data and its true behavior categories;
[0056] S2: constructing a skeleton data graph based on the human skeleton sequence data, and obtaining an adjacency matrix from the skeleton data graph; sampling the human skeleton sequence data to obtain a training data set;
[0057] S3: inputting the adjacency matrix and the training data set into the constructed human skeleton recognition model to obtain the behavior recognition category;
[0058] S4: establishing a loss function according to the behavior recognition category and the behavior true category, optimizing the constructed human skeleton recognition model, and obtaining a trained human skeleton recognition model;
[0059] S5: Input the user's skeleton sequence data to be recognized into the trained human skeleton recognition model to obtain the human skeleton recognition result.
[0060] In a specific embodiment, the optimization is performed in a loop, that is, steps S1-S4 are repeatedly performed until 70 epochs are reached and then the optimization is stopped.
[0061] Furthermore, in step S2, each sample in the training data set includes: joint coordinates, time series, number of joints, and true behavior category.
[0062] In a specific embodiment, the real categories of behavior include drinking water, eating, brushing teeth, reading, writing, etc.
[0063] Furthermore, in step S2, the calculation formula for obtaining the adjacency matrix from the skeleton data graph is as follows:
[0064]
[0065] Among them, x and y represent the index of the joint in the skeleton data graph.
[0066] Furthermore, if Figure 2 As shown, the human skeleton recognition model includes multiple spatiotemporal fusion graph convolutional network basic blocks connected in sequence and one fully connected layer.
[0067] In a specific embodiment, the number of basic blocks of the multiple spatiotemporal fusion graph convolutional networks is 10.
[0068] Furthermore, if Figure 3 As shown, the spatiotemporal fusion graph convolution network basic block includes a spatiotemporal fusion graph convolution operation block, a first summing point, a first activation unit, a second summing point, a multi-scale time convolution unit, a third summing point and a second activation unit connected in sequence;
[0069] The spatiotemporal fusion graph convolution operation block is composed of a group of spatiotemporal fusion graph convolution units arranged in parallel;
[0070] The input end of the spatiotemporal fusion graph convolution operation block is also connected to the input ends of the second summing point and the third summing point respectively.
[0071] It should be noted that the spatiotemporal fusion graph convolution unit is used to generate the spatial correlation adjacency matrix and the temporal correlation adjacency matrix between joints, which effectively captures the relevant dependencies between joints under different motion types and in different time frames, so that the human skeleton recognition model can more accurately identify human behavior categories.
[0072] In a specific embodiment, the formulas for the first summing point, the first activation unit, and the second summing point are as follows:
[0073] X″=X+ReLU(BN(X′1+X′2+X′3))
[0074] Among them, ReLU represents the ReLU activation function, BN represents the batch normalization operation, and X′ m represents the output of the mth spatiotemporal fusion graph convolution unit, X represents the input of the spatiotemporal fusion graph convolution network basic block, and X″ represents the output of the second summing point.
[0075] In a specific embodiment, the formulas of the third summing point and the second activation unit are as follows:
[0076] X″″=ReLU(X″′+X)
[0077] Among them, ReLU represents the ReLU activation function, X″′ represents the output of the multi-scale temporal convolution unit, X″″ represents the output of the second activation unit, and X represents the input of the basic block of the spatiotemporal fusion graph convolution network.
[0078] It should be noted that the multi-scale temporal convolution unit is used to help the network better aggregate joint information at different time lengths, thereby improving the generalization ability of the human skeleton recognition model.
[0079] Furthermore, the spatiotemporal fusion graph convolution operation block is composed of a plurality of spatiotemporal fusion graph convolution units arranged in parallel;
[0080] like Figure 4 As shown, the spatiotemporal fusion graph convolution unit includes: a time stream branch unit, a space stream branch unit, a spatiotemporal coupling stream branch unit, and a feature fusion unit;
[0081] The time stream branching unit, the space stream branching unit, and the time-space coupling stream branching unit are arranged in parallel, and the output ends of the time stream branching unit, the space stream branching unit, and the time-space coupling stream branching unit are all connected to the input end of the feature fusion unit.
[0082] Furthermore, if Figure 5 As shown, the spatial stream branch unit includes: a first convolution layer, a global average pooling layer in the time dimension, a first pairwise self-reduction layer, a second convolution layer, a first feature summing point, and an adjacency matrix input layer;
[0083] Among them, the first convolution layer, the time dimension global average pooling layer, the first pairwise self-reduction layer, the second convolution layer, and the first feature summing point are connected in sequence, and the output end of the adjacency matrix input layer is connected to the input end of the first feature summing point;
[0084] The spatiotemporal coupling flow branching unit includes a third convolutional layer;
[0085] The time stream branch unit includes a fourth convolution module, a spatial dimension global average pooling layer, and a second pairwise self-reduction layer connected in sequence;
[0086] The feature fusion unit includes a first multiplication point, a second multiplication point and a fourth addition point;
[0087] Among them, the output end of the first feature addition point and the output end of the third convolutional layer are both connected to the input end of the first multiplication point, the output end of the third convolutional layer and the output end of the second pairwise self-subtraction layer are both connected to the input end of the second multiplication point, and the output end of the first multiplication point and the output end of the second multiplication point are both connected to the input end of the fourth addition point.
[0088] In a specific embodiment, the spatiotemporal fusion convolution operation block is composed of three spatiotemporal fusion graph convolution units arranged in parallel.
[0089] It should be noted that the spatial stream branch unit is used to capture the spatial correlation adjacency matrix, which mainly reflects the global connection of the joint points. Then the pre-defined adjacency matrix A is used to strengthen the local connection between the joint points, and an adjacency matrix that focuses on both local and global connections is obtained.
[0090] It should be noted that the time stream branch unit is used to capture the time-correlated adjacency matrix, reconstruct the inter-frame information of the joints through the information in the time dimension, and flexibly model the time-dependent topological information of the joints.
[0091] It should be noted that the spatiotemporal coupling flow branch unit is used to extract high-level features of joint information.
[0092] It should be noted that the feature fusion unit retains the channel and frame information, can flexibly model the time-dependent topological information of the joints, and reconstruct the spatiotemporal information of the skeleton through the time-dependent and channel-dependent adjacency matrices.
[0093] In a specific embodiment, the convolution kernel sizes of the first convolution layer, the second convolution layer, the third convolution layer, and the fourth convolution layer are 1×1.
[0094] In a specific embodiment, the calculation formula of the spatiotemporal fusion graph convolution unit is as follows:
[0095] X ST =f 1×1 (X)
[0096] Among them, X ST represents the spatiotemporal coupling characteristics, f n×n represents a convolution operation with a convolution kernel of n×n, and X represents the input of the basic block of the spatiotemporal fusion graph convolution network;
[0097] X s =A+Alpha×f 1×1 (M - (AvgPool T (f 1×1 (X))))
[0098] Among them, X S represents the spatial feature, f n×n Indicates a convolution operation with a convolution kernel of n×n, AvgPool T represents the global average pooling in the time dimension, M - represents a pairwise self-reduction operation, Alpha represents the scale factor, A represents the initial adjacency matrix, and X represents the input of the basic block of the spatiotemporal fusion graph convolutional network;
[0099] X T =f 1×1 (M - (AvgPool s (f 1×1 (X))))
[0100] Among them, X T represents the time feature, f n×n Indicates a convolution operation with a convolution kernel of n×n, M - Represents a pairwise self-decrement operation, AvgPool S represents the global average pooling in the spatial dimension, and X represents the input of the basic block of the spatiotemporal fusion graph convolutional network;
[0101] X′=beta×X S ×X ST +(1-beta)×X T ×X ST
[0102] Among them, X′ represents the output of the spatiotemporal fusion graph convolution unit, X ST represents the spatiotemporal coupling characteristics, X S Represents the spatial feature, X T represents the time characteristic, and beta represents the proportional coefficient.
[0103] It should be noted that the correlation coefficients of Alpha, Beta and the convolution kernel will all be optimized during model optimization.
[0104] Furthermore, if Figure 6 As shown, the multi-scale temporal convolution unit includes:
[0105] The fifth convolution layer, the sixth convolution layer, the seventh convolution layer, the eighth convolution layer, the first convolution expansion layer, the second convolution expansion layer, the maximum pooling layer, and the concat splicing layer;
[0106] Among them, the output end of the fifth convolutional layer is connected to the input end of the first convolutional expansion layer, the output end of the sixth convolutional layer is connected to the input end of the second convolutional expansion layer, the output end of the seventh convolutional layer is connected to the input end of the maximum pooling layer, and the output end of the first convolutional expansion layer, the output end of the second convolutional expansion layer, the output end of the maximum pooling layer, and the output end of the eighth convolutional layer are connected to the input end of the concat splicing layer.
[0107] In a specific embodiment, the convolution kernel sizes of the fifth convolution layer, the sixth convolution layer, the seventh convolution layer, and the eighth convolution layer are 1×1.
[0108] In a specific embodiment, the calculation formula of the multi-scale time convolution unit is as follows:
[0109]
[0110] X3=MaxPooling 3×1 (f 1×1 (X″))
[0111] X4=f 1×1 (X″)
[0112] X″′=concat(X1,X2,X3,X4)
[0113] Where X″ represents the input of the multi-scale temporal convolution unit, X″′ represents the output of the multi-scale temporal convolution unit, and f n×n Indicates a convolution operation with a convolution kernel of n×n. Represents a convolution operation with a convolution kernel of n×m and a dilation factor of o, MaxPooling n×m represents the maximum pooling operation of n×m, and concat represents the concatenation operation.
[0114] Furthermore, in step S4, the loss calculation formula is as follows:
[0115]
[0116] Among them, N is the total number of samples in the training data set, i is a sample in N, M is the total number of true behavior categories, c is a true behavior category in M, and y ic Indicates whether the true category of the behavior of sample i is c, p ic It represents the predicted probability that sample i belongs to the true category c of behavior.
[0117] A human skeleton behavior recognition device based on a spatiotemporal fusion graph convolutional network, comprising:
[0118] Training data acquisition module: obtain human skeleton sequence data and its true behavior categories;
[0119] Preprocessing module: construct a skeleton data graph based on the human skeleton sequence data, and obtain an adjacency matrix from the skeleton data graph; sample the human skeleton sequence data to obtain a training data set;
[0120] Behavior category recognition module: input the adjacency matrix and training data set into the constructed human skeleton recognition model to obtain behavior recognition category;
[0121] Recognition model optimization module: establish a loss function according to the behavior recognition category and the behavior real category, optimize the constructed human skeleton recognition model, and obtain a trained human skeleton recognition model;
[0122] Recognition application module: input the user's skeleton sequence data to be recognized into the trained human skeleton recognition model to obtain the human skeleton recognition result.
[0123] The same or similar reference numerals correspond to the same or similar components;
[0124] The terms used in the drawings to describe positional relationships are only used for illustrative purposes and should not be construed as limiting this patent;
[0125] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A human skeleton behavior recognition method based on spatiotemporal fusion graph convolutional network, characterized in that: include: S1: Obtain human skeleton sequence data and its true behavior categories; S2: constructing a skeleton data graph based on the human skeleton sequence data, and obtaining an adjacency matrix from the skeleton data graph; sampling the human skeleton sequence data to obtain a training data set; S3: inputting the adjacency matrix and the training data set into the constructed human skeleton recognition model to obtain the behavior recognition category; S4: establishing a loss function according to the behavior recognition category and the behavior true category, optimizing the constructed human skeleton recognition model, and obtaining a trained human skeleton recognition model; S5: Input the user's skeleton sequence data to be recognized into the trained human skeleton recognition model to obtain the human skeleton recognition result.
2. According to claim 1, a human skeleton behavior recognition method based on spatiotemporal fusion graph convolutional network is characterized in that: In step S2, each sample in the training data set includes: joint coordinates, time series, number of joints, and true behavior category.
3. According to claim 1, a human skeleton behavior recognition method based on spatiotemporal fusion graph convolutional network is characterized in that: In step S2, the calculation formula for obtaining the adjacency matrix from the skeleton data graph is as follows: Among them, x and y represent the index of the joint in the skeleton data graph.
4. According to claim 1, a human skeleton behavior recognition method based on spatiotemporal fusion graph convolutional network is characterized in that: The human skeleton recognition model includes a plurality of spatiotemporal fusion graph convolutional network basic blocks connected in sequence and a fully connected layer.
5. According to claim 4, a human skeleton behavior recognition method based on spatiotemporal fusion graph convolutional network is characterized in that: The spatiotemporal fusion graph convolution network basic block includes a spatiotemporal fusion graph convolution operation block, a first summing point, a first activation unit, a second summing point, a multi-scale time convolution unit, a third summing point and a second activation unit connected in sequence; The input end of the spatiotemporal fusion graph convolution operation block is also connected to the input ends of the second summing point and the third summing point respectively.
6. According to claim 5, a method for human skeleton behavior recognition based on spatiotemporal fusion graph convolutional network is characterized in that: The spatiotemporal fusion graph convolution operation block is composed of a plurality of spatiotemporal fusion graph convolution units arranged in parallel; The spatiotemporal fusion graph convolution unit includes: a time stream branch unit, a space stream branch unit, a spatiotemporal coupling stream branch unit, and a feature fusion unit; The time stream branching unit, the space stream branching unit, and the time-space coupling stream branching unit are arranged in parallel, and the output ends of the time stream branching unit, the space stream branching unit, and the time-space coupling stream branching unit are all connected to the input end of the feature fusion unit.
7. According to claim 6, a method for human skeleton behavior recognition based on spatiotemporal fusion graph convolutional network, characterized in that: The spatial stream branch unit includes: a first convolution layer, a global average pooling layer in the time dimension, a first pairwise self-reduction layer, a second convolution layer, a first feature summing point, and an adjacency matrix input layer; Among them, the first convolution layer, the time dimension global average pooling layer, the first pairwise self-reduction layer, the second convolution layer, and the first feature summing point are connected in sequence, and the output end of the adjacency matrix input layer is connected to the input end of the first feature summing point; The spatiotemporal coupling flow branching unit includes a third convolutional layer; The time stream branch unit includes a fourth convolution module, a spatial dimension global average pooling layer, and a second pairwise self-reduction layer connected in sequence; The feature fusion unit includes a first multiplication point, a second multiplication point and a fourth addition point; Among them, the output end of the first feature addition point and the output end of the third convolutional layer are both connected to the input end of the first multiplication point, the output end of the third convolutional layer and the output end of the second pairwise self-subtraction layer are both connected to the input end of the second multiplication point, and the output end of the first multiplication point and the output end of the second multiplication point are both connected to the input end of the fourth addition point.
8. According to claim 7, a method for human skeleton behavior recognition based on spatiotemporal fusion graph convolutional network is characterized in that: The multi-scale temporal convolution unit includes: The fifth convolution layer, the sixth convolution layer, the seventh convolution layer, the eighth convolution layer, the first convolution expansion layer, the second convolution expansion layer, the maximum pooling layer, and the concat splicing layer; Among them, the output end of the fifth convolutional layer is connected to the input end of the first convolutional expansion layer, the output end of the sixth convolutional layer is connected to the input end of the second convolutional expansion layer, the output end of the seventh convolutional layer is connected to the input end of the maximum pooling layer, and the output end of the first convolutional expansion layer, the output end of the second convolutional expansion layer, the output end of the maximum pooling layer, and the output end of the eighth convolutional layer are connected to the input end of the concat splicing layer.
9. According to claim 1, a method for human skeleton behavior recognition based on spatiotemporal fusion graph convolutional network, characterized in that: In step S4, the loss calculation formula is as follows: Among them, N is the total number of samples in the training data set, i is a sample in N, M is the total number of true behavior categories, c is a true behavior category in M, and y ic Indicates whether the true category of the behavior of sample i is c, p ic It represents the predicted probability that sample i belongs to the true category c of behavior.
10. A human skeleton behavior recognition device based on spatiotemporal fusion graph convolutional network, applied to the recognition method according to any one of claims 1 to 9, characterized in that: include: Training data acquisition module: obtain human skeleton sequence data and its true behavior categories; Preprocessing module: construct a skeleton data graph based on the human skeleton sequence data, and obtain an adjacency matrix from the skeleton data graph; sample the human skeleton sequence data to obtain a training data set; Behavior category recognition module: input the adjacency matrix and training data set into the constructed human skeleton recognition model to obtain behavior recognition category; Recognition model optimization module: establish a loss function according to the behavior recognition category and the behavior real category, optimize the constructed human skeleton recognition model, and obtain a trained human skeleton recognition model; Recognition application module: input the user's skeleton sequence data to be recognized into the trained human skeleton recognition model to obtain the human skeleton recognition result.
