Martial arts action scoring and recognition method based on multi-modal spatial-temporal feature fusion

Through the multimodal spatial and temporal feature fusion method, combining time and space encoder, the characteristics of martial arts actions are extracted and task heads are designed, which solves the problem of insufficient utilization of multimodal information for action scores and recognition in the existing technology, and realizes action scores Completed at the same time as recognition improves the accuracy of rating and recognition and the ability to automatically evaluate martial arts competitions.

CN118887724APending Publication Date: 2024-11-01SHANGHAI UNIV
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410732300.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing martial arts action scoring and recognition technology lacks the utilization of multimodal information, resulting in low robustness and flexibility in processing information, and the inability to complete the scoring and recognition tasks of the action at the same time.

Method used

Using a multimodal spatiotemporal feature fusion method, the action skeleton sequence is extracted through the mmpose algorithm, and the two-branch backbone network of the time encoder and the space encoder are combined to extract the time and space characteristics of the action, and the scoring and identification task heads are designed to realize Simultaneous rating and recognition of actions.

Benefits of technology

It significantly improves the accuracy and persuasiveness of the action recognition and scoring results, and can complete the action scoring and recognition tasks at the same time, providing new ideas for automated evaluation for martial arts competitions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887724A_ABST
    Figure CN118887724A_ABST
Patent Text Reader

Abstract

The invention relates to a martial arts action scoring and recognition method based on spatial-temporal feature fusion. The martial arts action scoring and recognition method comprises the following five steps: step 1, creating a martial arts action quality scoring and recognition video data set; 2, converting the martial art video data set sorted in the step 1 into an action skeleton, inputting the action skeleton into a time sequence semantic comparison model, and pre-training a time encoder; step 3, respectively inputting the skeleton sequences sorted in the step 2 into a time encoder and a space encoder of a network to obtain time sequence features and space sequence features of a deep layer and a shallow layer; 4, predicting a frame sequence action type classification result through an action recognition encoder by using the multi-modal sequence features in the step 3, and predicting an action score through a scoring model; and 5, carrying out system transplantation by using the network model obtained in the step 4, and designing an application for martial art scoring and identification. According to the method, accurate scoring can be realized, and a new thought is provided for automatic evaluation of martial arts.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of action quality assessment and action recognition, and in particular to an action scoring and recognition method based on multimodal spatiotemporal feature fusion. Background Art

[0002] Action quality assessment is a hot topic in the field of computer vision research. It automatically scores the corresponding actions by analyzing the action postures and motion trajectories in action videos. Action recognition is to classify actions into different categories by analyzing the characteristics of actions in videos. Previous methods often directly extract video features alone, lack the use of multimodal information, such as sequence space features, audio information, etc., have low robustness and flexibility in processing information, and poor interpretability when predicting scores and explaining action recognition results. At the same time, these methods lack the use of human skeleton information, and can only complete the task of scoring actions, but cannot complete the recognition task at the same time. Therefore, studying how to combine multimodal information to simultaneously complete the scoring and recognition tasks of martial arts actions has become a new research direction. Summary of the invention

[0003] Aiming at the limitations of existing martial arts action scoring and recognition technologies, this paper proposes an innovative method based on multimodal spatiotemporal feature fusion. The method first applies the mmpose algorithm to extract the action skeleton sequence in the video, converts the original image frame sequence into a skeleton sequence, and effectively reduces the influence of environmental factors on action analysis. In order to deeply analyze the action sequence features, a multimodal feature extraction strategy that integrates the temporal encoder and the spatial encoder is adopted. This strategy extracts the temporal and spatial features of the action skeleton sequence through a dual-branch backbone network, significantly improving the stability and accuracy of sequence feature extraction. In the temporal encoder part, a pre-trained model is used, which consists of a data enhancement module, a time contrast module, and a context contrast module to enhance the encoder's ability to extract sequence features. During the pre-training process, a normalized temperature scaled cross entropy loss function is used to maximize the consistency of the enhanced data of the same sequence and minimize the difference between the enhanced data of different sequences. After the backbone network, two task heads, scoring and recognition, are also designed, so that the model can complete the action recognition and scoring tasks simultaneously. The scoring model predicts the score through regression analysis, while the recognition model determines the action type through frame classification, thereby enhancing the model's ability to handle multiple events. In addition, the time encoder and the action recognition model achieve an effective fusion of deep and shallow features through jump links, which is conducive to more comprehensive extraction of multi-scale information. During the training process, the action classification model is optimized using the binary cross entropy loss function, while the scoring model is trained using the mean square error loss function. The optimization goal of the overall network is to minimize the sum of these three loss functions. This method comprehensively considers multiple modal information, improves the persuasiveness of action recognition and scoring results, and can simultaneously complete the scoring and recognition tasks of actions, providing an accurate and practical solution for practical applications.

[0004] In order to achieve the above object, the present invention adopts the following technical solution:

[0005] A martial arts action scoring and recognition method based on multimodal spatiotemporal feature fusion, the steps are as follows:

[0006] Step 1: Preprocessing of martial arts action quality scoring and recognition video dataset: Create a martial arts action quality scoring and recognition video dataset; mark the corresponding action scores for training the action scoring module; mark the action type recognition results of the video clips for training the action recognition module; obtain the organized martial arts video dataset;

[0007] Step 2: Pre-training of the temporal encoder: The martial arts video dataset organized in step 1 is converted into action skeleton information and then input into the temporal semantic comparison model to pre-train the temporal encoder and obtain the action skeleton sequence;

[0008] Step 3: Extract spatiotemporal features through the backbone network: Input the action skeleton sequence sorted in step 2 into the time encoder and space encoder of the backbone network respectively to obtain deep and shallow time series features and spatial sequence features. In the action recognition decoder, the extracted shallow and deep time features are connected through the upsampling recognition module, and the embedded features of different levels are fused by normalization and fused with the spatial features to generate multimodal sequence features that integrate spatiotemporal information.

[0009] Step 4: Use multimodal feature fusion for prediction training: Use the multimodal sequence features in step 3 to predict the classification results of frame sequence action types through the action recognition encoder, predict the action score through the scoring model, and enhance the prediction ability of the network by continuously iteratively optimizing the mean square loss function of the network to obtain a network model for martial arts action scoring and recognition;

[0010] Step 5: Application of martial arts movement scoring and recognition: Use the network model obtained in step 4 to transplant the system and design an application for martial arts scoring and recognition.

[0011] Preferably, the martial arts action quality scoring and recognition video data set preprocessing in step 1 includes the following operations:

[0012] 1-1: Collect videos of Lianhuanquan martial arts movements, covering 16 types of clip type labels; the data comes from videos shot by recruited volunteers, covering people of different martial arts levels and different age groups. After screening, it contains 346 videos, and the resolution of each video is 1920×1080;

[0013] 1-2: Use the image annotation tool VGG ImageAnnotator (VIA) to annotate the action types in each video; the annotation includes the start and end time of the action and the corresponding category, and save the corresponding information in CSV format;

[0014] 1-3: Score and annotate the video based on the standardization, coherence, mental expression, and completeness of the actions in the video, and save the corresponding information in Excel format;

[0015] 1-4: Check the dataset to remove labeling errors and noise data; ensure the accuracy and professionalism of the labeling to improve the quality of the dataset and ensure its reliability in practical applications. 11,453 labeled action type data samples and 1,384 scoring data samples are obtained.

[0016] Preferably, the pre-training of the temporal encoder in step 2 includes the following operations:

[0017] 2-1: Use the mmpose algorithm to extract action skeleton sequences from the videos in the dataset; connect all action skeleton sequences into a long sequence, and then cut them into 60-frame, 90-frame, and 120-frame sequence segments, respectively, and input them into the pre-training model for analysis to form a multi-scale feature extraction process;

[0018] 2-2: Perform strong and weak enhancement on the clips in step 2-1; strong enhancement uses a permutation and dithering strategy, where permutation includes dividing the sequence into clips of a random number of frames, the maximum being the total length of the current sequence, and shuffling them randomly; weak enhancement uses a dithering and scale strategy, adding random motion changes to the sequence and increasing its frame size proportionally;

[0019] 2-3: Input the action skeleton sequence after strong and weak enhancement processing in step 2-2 into two identical encoder models respectively to obtain the potential representation of the sequence, and use the sequence Transformer model to extract the context vector in the random time period;

[0020] 2-4: Use the context vector obtained in step 2-3 to predict the time step of the next frame in a random time period, and use a bilinear logarithmic model to minimize the dot product between the predicted representation and the true representation of the same sample, while maximizing the dot product with other samples in the mini-batch;

[0021] 2-5: Perform a nonlinear transformation on the context vector obtained in step 2-3, apply the context vector to the context contrast space, and use the context contrast loss function to maximize the similarity between positive pairs, where positive pairs represent the enhancement patterns of the same sequence, and minimize the similarity between negative pairs, where negative pairs are strong and weak enhancement pairs of other sequences in the same input batch.

[0022] Preferably, the step 3 of extracting spatiotemporal features through a backbone network comprises the following steps:

[0023] 3-1: For the input action skeleton sequence, the action skeleton sequence is input into the temporal encoder and the spatial encoder respectively;

[0024] 3-2: In the spatial encoder, a convolution operation on the time dimension is first performed to process the temporal relationship between consecutive frames, extract temporal features, and then undergo a graph convolution operation, which combines spatial features with temporal features; graph convolution aggregates the features of a node with the features of its neighbors through an adjacency matrix, thereby transferring information between nodes;

[0025] 3-3: The aggregated features in step 3-2 are nonlinearly activated using the ReLU activation function, then undergo a convolution operation in the time dimension, and finally perform layer normalization, and use the dropout operation to prevent overfitting;

[0026] 3-4: In the temporal encoder, a nonlinear projection operation is first performed on the sequence to obtain an overall sequence feature. Four downsampling layers are used to gradually reduce the feature map size from 64 to 512 and increase the number of channels from 128 to 1024 to obtain four shallow and deep sequence features.

[0027] 3-5: In the action recognition decoder module, there are four upsampling layers, which gradually restore the feature map size and the number of channels, forming a symmetrical structure with step 3-4, and jump-linking the deep and shallow features to form multi-scale feature fusion.

[0028] Preferably, the step 4 of using multimodal feature fusion to perform prediction training includes the following operations:

[0029] 4-1: In the scoring decoder, a scoring head is used, which consists of multiple convolutional layers and batch normalization layers for further processing and regression after feature extraction. It includes a one-dimensional convolutional layer with 128 input channels, 64 output channels, and a convolution kernel size of 3, a one-dimensional batch normalization layer for normalizing the output of 64 channels, a modified linear activation function for introducing nonlinearity, a second one-dimensional convolutional layer with 64 input channels, 32 output channels, and a convolution kernel size of 3, and a last convolutional layer that reduces the number of channels of the feature map to the output dimension, corresponding to the score interval of the score;

[0030] 4-2: For the scoring task in step 4-1, use the mean square error loss function to gradually narrow the gap between the predicted score and the actual score label;

[0031] 4-3: In the action recognition decoder, by forward propagating feature maps of different layers and a series of upsampling, the feature maps of lower layers are gradually fused, and finally the final classification result is obtained through the logits classification function. The binary cross entropy loss function is used to gradually reduce the difference between the probability distribution of the action type predicted by the model and the true label;

[0032] 4-4: Train the model by optimizing the sum of the loss functions of the entire network;

[0033] 4-5: The network model is trained using the Adam optimization algorithm, with a learning rate of 1e-3, a batch size of 8, and a total of 50 training iterations.

[0034] Preferably, the application of martial arts action scoring and recognition in step 5 includes the following operations:

[0035] 5-1: JetBrains PyCharm was selected as the development tool, and PyQt5 was used for system interface development;

[0036] 5-2: Export the martial arts action scoring and recognition model trained in step 4 to ONNX format, implement the model loading logic in the system, and ensure that the application can load the trained model file;

[0037] 5-3: Use PyQt5 to design user interfaces, including UI components such as windows, buttons, labels, and input boxes. Use layout managers to arrange UI components properly to ensure a neat and user-friendly interface.

[0038] 5-4: Write the main logic of the application, including loading the model, processing user input, performing model inference, displaying results, and writing event handling functions for UI components, such as button click events and file selection events;

[0039] 5-5: Implement the data preprocessing module to convert the user input into the format required by the model; implement the post-processing module to convert the model output into a format that the user understands and display it. Create a function or class to encapsulate all steps of model reasoning, including loading the model, preprocessing the input, performing reasoning, and post-processing the output. When the user triggers the corresponding operation, call the reasoning interface;

[0040] 5-6: Use PyInstaller to package the Python application into an executable file to obtain the application software for martial arts action scoring and recognition.

[0041] The present invention has the following obvious outstanding essential features and remarkable advantages:

[0042] 1. The present invention designs a martial arts action scoring and recognition method based on the fusion of multimodal spatiotemporal features; in view of the deficiencies of the martial arts action scoring and recognition network structure based on the temporal encoder in spatial feature analysis and the characteristics of the interconnection of human body postures in the action sequence, a parallel spatial encoder is added to the temporal encoder structure to form a dual-stream network that fuses multimodal features; the combined network can simultaneously obtain the temporal representation and spatial representation of the input sequence, helping the model to learn more generalized action patterns, better parse and understand each part of the action and their interrelationships, and thus more accurately analyze the action;

[0043] 2. For the temporal encoder part, the method of the present invention adopts a temporal contrast and contextual contrast method based on strong and weak enhancement, which further improves the encoder's ability to extract sequence features;

[0044] 3. The method of the present invention displays a visual scoring effect diagram of volunteers of different levels using the application. The present invention can accurately score and bring a new idea to the automated evaluation of martial arts competitions. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 The figure is an overall flow chart of the method of the preferred embodiment of the present invention.

[0046] Figure 2 It is a temporal semantic pre-training module for a temporal encoder in the preferred embodiment method of the present invention.

[0047] Figure 3 This is a martial arts action recognition module of the preferred embodiment method of the present invention.

[0048] Figure 4 This is a martial arts action scoring module of the preferred embodiment method of the present invention.

[0049] Figure 5 A visual scoring effect diagram designed for the preferred embodiment method of the present invention. DETAILED DESCRIPTION

[0050] The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0051] Embodiment 1:

[0052] See also Figure 1 , a martial arts action scoring and recognition method based on multimodal spatiotemporal feature fusion, the steps are as follows:

[0053] Step 1: Preprocessing of martial arts action quality scoring and recognition video dataset:

[0054] Create a martial arts action quality scoring and recognition video dataset; annotate the corresponding action scores for training the action scoring module; annotate the action type recognition results of the video clips for training the action recognition module; obtain the organized martial arts video dataset;

[0055] Step 2: Pre-training of temporal encoder:

[0056] The martial arts video dataset sorted in step 1 is converted into action skeleton information and then input into the temporal semantic comparison model to pre-train the temporal encoder to obtain the action skeleton sequence;

[0057] Step 3: Extract spatiotemporal features through the backbone network:

[0058] The action skeleton sequence sorted in step 2 is input into the time encoder and space encoder of the backbone network respectively to obtain deep and shallow time series features and space series features. In the action recognition decoder, the shallow and deep time features extracted are connected through the upsampling recognition module, and the embedded features of different levels are fused by normalization and fused with the spatial features to generate multimodal sequence features that integrate spatiotemporal information.

[0059] Step 4: Use multimodal feature fusion for prediction training:

[0060] Using the multimodal sequence features in step 3, the action recognition encoder is used to predict the classification results of the frame sequence action types, and the scoring model is used to predict the action scores. By continuously iteratively optimizing the mean square loss function of the network, the prediction ability of the network is enhanced, and a network model for martial arts action scoring and recognition is obtained;

[0061] Step 5: Application of martial arts action scoring and recognition:

[0062] Use the network model obtained in step 4 to transplant the system and design an application for martial arts scoring and recognition.

[0063] The method of this embodiment comprehensively considers multiple modal information, improves the persuasiveness of action recognition and scoring results, and can simultaneously complete action scoring and recognition tasks, providing an accurate and practical solution for practical applications.

[0064] Embodiment 2:

[0065] This embodiment is basically the same as the first embodiment, with the following special features:

[0066] enter Figure 1-5 As shown, in this embodiment, the martial arts action quality scoring and recognition video data set preprocessing in step 1 includes the following operations:

[0067] 1-1: Collect videos of Lianhuanquan martial arts movements, covering 16 types of clip type labels; the data comes from videos shot by recruited volunteers, covering people of different martial arts levels and different age groups. After screening, it contains 346 videos, and the resolution of each video is 1920×1080;

[0068] 1-2: Use the image annotation tool VGG ImageAnnotator (VIA) to annotate the action types in each video; the annotation includes the start and end time of the action and the corresponding category, and save the corresponding information in CSV format;

[0069] 1-3: Score and annotate the video based on the standardization, coherence, mental expression, and completeness of the actions in the video, and save the corresponding information in Excel format;

[0070] 1-4: Check the dataset to remove labeling errors and noise data; ensure the accuracy and professionalism of the labeling to improve the quality of the dataset and ensure its reliability in practical applications. 11,453 labeled action type data samples and 1,384 scoring data samples are obtained.

[0071] In this embodiment, the pre-training of the temporal encoder in step 2 includes the following operations:

[0072] 2-1: Use the mmpose algorithm to extract action skeleton sequences from the videos in the dataset; connect all action skeleton sequences into a long sequence, and then cut them into 60-frame, 90-frame, and 120-frame sequence segments, respectively, and input them into the pre-training model for analysis to form a multi-scale feature extraction process;

[0073] 2-2: See Figure 2 , the segments in step 2-1 are subjected to strong and weak enhancement; strong enhancement uses a permutation and jitter strategy, where the permutation includes dividing the sequence into segments of a random number of frames, the maximum being the total length of the current sequence, and shuffling them randomly; weak enhancement uses a jitter and scale strategy, adding random motion changes to the sequence and increasing its frame size proportionally;

[0074] 2-3: Input the action skeleton sequence after strong and weak enhancement processing in step 2-2 into two identical encoder models respectively to obtain the potential representation of the sequence, and use the sequence Transformer model to extract the context vector in the random time period;

[0075] 2-4: Use the context vector obtained in step 2-3 to predict the time step of the next frame in a random time period, and use a bilinear logarithmic model to minimize the dot product between the predicted representation and the true representation of the same sample, while maximizing the dot product with other samples in the mini-batch;

[0076] 2-5: Perform a nonlinear transformation on the context vector obtained in step 2-3, apply the context vector to the context contrast space, and use the context contrast loss function to maximize the similarity between positive pairs, where positive pairs represent the enhancement patterns of the same sequence, and minimize the similarity between negative pairs, where negative pairs are strong and weak enhancement pairs of other sequences in the same input batch.

[0077] In this embodiment, the step 3 of extracting spatiotemporal features through the backbone network includes the following steps:

[0078] 3-1: For the input action skeleton sequence, the action skeleton sequence is input into the temporal encoder and the spatial encoder respectively;

[0079] 3-2: In the spatial encoder, a convolution operation on the time dimension is first performed to process the temporal relationship between consecutive frames, extract temporal features, and then undergo a graph convolution operation, which combines spatial features with temporal features; graph convolution aggregates the features of a node with the features of its neighbors through an adjacency matrix, thereby transferring information between nodes;

[0080] 3-3: The aggregated features in step 3-2 are nonlinearly activated using the ReLU activation function, then undergo a convolution operation in the time dimension, and finally perform layer normalization, and use the dropout operation to prevent overfitting;

[0081] 3-4: In the temporal encoder, a nonlinear projection operation is first performed on the sequence to obtain an overall sequence feature. Four downsampling layers are used to gradually reduce the feature map size from 64 to 512 and increase the number of channels from 128 to 1024 to obtain four shallow and deep sequence features.

[0082] 3-5: In the action recognition decoder module, there are four upsampling layers, which gradually restore the feature map size and number of channels, forming a symmetrical structure with step 3-4, and jump linking the deep and shallow features to form multi-scale feature fusion, see Figure 3 .

[0083] In this embodiment, the prediction training using multimodal feature fusion in step 4 includes the following operations:

[0084] 4-1: In the scoring decoder, a scoring head is used, which consists of multiple convolutional layers and batch normalization layers for further processing and regression after feature extraction. It includes a one-dimensional convolutional layer with 128 input channels, 64 output channels, and a convolution kernel size of 3. A one-dimensional batch normalization layer is used to normalize the output of 64 channels and a modified linear activation function to introduce nonlinearity. The second one-dimensional convolutional layer has 64 input channels, 32 output channels, and a convolution kernel size of 3. The last convolutional layer reduces the number of channels of the feature map to the output dimension, corresponding to the score interval of the score, see Figure 4 ;

[0085] 4-2: For the scoring task in step 4-1, use the mean square error loss function to gradually narrow the gap between the predicted score and the actual score label;

[0086] 4-3: In the action recognition decoder, by forward propagating feature maps of different layers and a series of upsampling, the feature maps of lower layers are gradually fused, and finally the final classification result is obtained through the logits classification function. The binary cross entropy loss function is used to gradually reduce the difference between the probability distribution of the action type predicted by the model and the true label;

[0087] 4-4: Train the model by optimizing the sum of the loss functions of the entire network;

[0088] 4-5: The network model is trained using the Adam optimization algorithm, with a learning rate of 1e-3, a batch size of 8, and a total of 50 training iterations.

[0089] In this embodiment, the application of martial arts action scoring and recognition in step 5 includes the following operations:

[0090] 5-1: JetBrains PyCharm was selected as the development tool, and PyQt5 was used for system interface development;

[0091] 5-2: Export the martial arts action scoring and recognition model trained in step 4 to ONNX format, implement the model loading logic in the system, and ensure that the application can load the trained model file;

[0092] 5-3: Use PyQt5 to design the user interface, including UI components such as windows, buttons, labels, and input boxes, and use the layout manager to arrange UI components reasonably, see Figure 5 ;

[0093] 5-4: Write the main logic of the application, including loading the model, processing user input, performing model inference, displaying results, and writing event handling functions for UI components, such as button click events and file selection events;

[0094] 5-5: Implement the data preprocessing module to convert the user input into the format required by the model; implement the post-processing module to convert the model output into a format that the user understands and display it. Create a function or class to encapsulate all steps of model reasoning, including loading the model, preprocessing the input, performing reasoning, and post-processing the output. When the user triggers the corresponding operation, call the reasoning interface;

[0095] 5-6: Use PyInstaller to package the Python application into an executable file to obtain the application software for martial arts action scoring and recognition.

[0096] This embodiment is based on an innovative method of multimodal spatiotemporal feature fusion, and uses the mmpose algorithm to extract the action skeleton sequence in the video, converting the original image frame sequence into an action skeleton sequence, effectively reducing the impact of environmental factors on action analysis. In order to deeply analyze the action sequence features, the method of this embodiment adopts a multimodal feature extraction strategy that integrates the time encoder and the space encoder. This strategy extracts the time and space features of the action skeleton sequence through a dual-branch backbone network, significantly improving the stability and accuracy of sequence feature extraction. In the temporal encoder part, a pre-training model is used, which consists of a data enhancement module, a time comparison module, and a context comparison module to enhance the encoder's ability to extract sequence features. During the pre-training process, a normalized temperature scaled cross entropy loss function is used to maximize the consistency of the enhanced data of the same sequence while minimizing the difference in the enhanced data between different sequences. After the backbone network, the method of this embodiment also designs two task heads, scoring and recognition, so that the model can complete action recognition and scoring tasks at the same time. The scoring model predicts the score through regression analysis, while the recognition model determines the type of action through frame classification, thereby enhancing the model's ability to handle multiple events. In addition, the effective fusion of deep and shallow features is achieved through jump links between the time encoder and the action recognition model, which is conducive to more comprehensive extraction of multi-scale information. During the training process, the action classification model is optimized using the binary cross entropy loss function, while the scoring model is trained using the mean square error loss function. The optimization goal of the overall network is to minimize the sum of these three loss functions. The method of this embodiment comprehensively considers multiple modal information, improves the persuasiveness of action recognition and scoring results, and can simultaneously complete the scoring and recognition tasks of actions, providing an accurate and practical solution for practical applications.

[0097] Embodiment three:

[0098] This embodiment is basically the same as the above embodiment, with the following special features:

[0099] The application of martial arts scoring and identification in step 5 includes the following operations:

[0100] 5-1: The system was developed in the hardware environment of Intel(R) Xeon(R) E5-2660 v4 CPU@2.00GHz processor. The computer operating system is Win10, 64-bit operating system. The development tool is JetBrains PyCharm. The system interface is developed using PyQt5.

[0101] 5-2: Export the action scoring and recognition model trained in step 4 to ONNX format, implement the model loading logic in the system, and ensure that the application can load the trained model file;

[0102] 5-3: Use PyQt5 to design the user interface, including UI components such as windows, buttons, labels, and input boxes. Use the layout manager to arrange UI components properly to ensure that the interface is neat and user-friendly. Figure 5 ;

[0103] 5-4: Write the main logic of the application, including loading the model, processing user input, performing model inference, displaying results, etc., and write event handling functions for UI components, such as button click events, file selection events, etc.;

[0104] 5-5: Implement the data preprocessing module to convert the user input into the format required by the model; implement the post-processing module to convert the model output into a format that the user can understand and display it. Create a function or class to encapsulate all the steps of model reasoning, including loading the model, preprocessing the input, performing reasoning, and post-processing the output. When the user triggers the corresponding operation (such as clicking the "score" button), call the reasoning interface;

[0105] 5-6: Use PyInstaller to package the Python application into an executable file to obtain the application software for martial arts action scoring and recognition.

[0106] In the set hardware environment and system software environment, this embodiment develops a dedicated application software for scoring and identifying martial arts movements, which is applied to scoring and identifying martial arts movements, designs a visual scoring effect diagram, and the output is more specific and has strong reference value. The core functions of the software have a good user experience. This embodiment scores by analyzing martial arts movements. This embodiment uses multimodal information to achieve high robustness and flexibility in processing information, and adopts a more intuitive output form for score prediction and action recognition result description. The application software for scoring and identifying martial arts movements developed in this embodiment makes full use of human skeleton information, which can not only complete the scoring task for the movements, but also complete the recognition task at the same time. Therefore, it is of great significance for the in-depth research, promotion and inheritance of martial arts.

[0107] In summary, the martial arts action scoring and recognition method based on the spatiotemporal feature fusion of the above embodiment of the present invention includes five steps: step 1, creating a martial arts action quality scoring and recognition video data set; step 2, converting the martial arts video data set sorted in step 1 into an action skeleton input into a temporal semantic comparison model, and pre-training the temporal encoder; step 3, respectively inputting the skeleton sequence sorted in step 2 into the temporal encoder and spatial encoder of the network to obtain deep and shallow temporal sequence features and spatial sequence features; step 4, using the multimodal sequence features in step 3, predicting the frame sequence action type classification results through the action recognition encoder, and predicting the action score through the scoring model; step 5, using the network model obtained in step 4 to perform a systematic transplantation, and designing an application for martial arts scoring and recognition. The present invention can accurately score and bring a new idea to the automated evaluation of martial arts competitions.

[0108] The above describes the embodiments of the present invention in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Various changes can be made according to the purpose of the invention. Any changes, modifications, substitutions, combinations or simplifications made according to the spirit and principle of the technical solution of the present invention should be equivalent replacement methods. As long as they meet the purpose of the invention and do not deviate from the technical principles and inventive concepts of the present invention, they belong to the protection scope of the present invention.

Claims

1. A martial arts action scoring and recognition method based on multimodal spatiotemporal feature fusion, characterized in that: Here are the steps: Step 1: Preprocessing of martial arts action quality scoring and recognition video dataset: Create a martial arts action quality scoring and recognition video dataset; mark the corresponding action scores for training the action scoring module; mark the action type recognition results of the video clips for training the action recognition module; and obtain the organized martial arts video dataset; Step 2: Pre-training of the temporal encoder: The martial arts video dataset organized in step 1 is converted into action skeleton information and then input into the temporal semantic comparison model to pre-train the temporal encoder and obtain the action skeleton sequence; Step 3: Extract spatiotemporal features through the backbone network: Input the action skeleton sequence sorted in step 2 into the time encoder and space encoder of the backbone network respectively to obtain deep and shallow time series features and spatial sequence features. In the action recognition decoder, the extracted shallow and deep time features are connected through the upsampling recognition module, and the embedded features of different levels are fused by normalization and fused with the spatial features to generate multimodal sequence features that integrate spatiotemporal information. Step 4: Use multimodal feature fusion for prediction training: Use the multimodal sequence features in step 3 to predict the classification results of frame sequence action types through the action recognition encoder, predict the action score through the scoring model, and enhance the prediction ability of the network by continuously iteratively optimizing the mean square loss function of the network to obtain a network model for martial arts action scoring and recognition; Step 5: Application of martial arts movement scoring and recognition: Use the network model obtained in step 4 to transplant the system and design an application for martial arts scoring and recognition.

2. The martial arts action scoring and recognition method based on multimodal spatiotemporal feature fusion according to claim 1 is characterized in that: The martial arts action quality scoring and recognition video data set preprocessing in step 1 includes the following operations: 1-1: Collect videos of Lianhuanquan martial arts movements, covering 16 types of clip type labels; the data comes from videos shot by recruited volunteers, covering people of different martial arts levels and different age groups. After screening, it contains 346 videos, and the resolution of each video is 1920×1080; 1-2: Use the image annotation tool VGG Image Annotator to annotate the action types in each video; the annotations include the start and end time of the action and the corresponding category, and save the corresponding information in CSV format; 1-3: Score and annotate the video based on the standardization, coherence, mental expression, and completeness of the actions in the video, and save the corresponding information in Excel format; 1-4: Check the data set and remove labeling errors and noise data; obtain 11,453 labeled action type data samples and 1,384 scoring data.

3. The martial arts action scoring and recognition method based on multimodal spatiotemporal feature fusion according to claim 1 is characterized in that: The pre-training of the temporal encoder in step 2 includes the following operations: 2-1: Use the mmpose algorithm to extract action skeleton sequences from the videos in the dataset; connect all action skeleton sequences into a long sequence, and then cut them into 60-frame, 90-frame, and 120-frame sequence segments, respectively, and input them into the pre-training model for analysis to form a multi-scale feature extraction process; 2-2: Perform strong and weak enhancement on the clips in step 2-1; strong enhancement uses a permutation and dithering strategy, where permutation includes dividing the sequence into clips of a random number of frames, the maximum being the total length of the current sequence, and shuffling them randomly; weak enhancement uses a dithering and scale strategy, adding random motion changes to the sequence and increasing its frame size proportionally; 2-3: Input the action skeleton sequence after strong and weak enhancement processing in step 2-2 into two identical encoder models respectively to obtain the potential representation of the sequence, and use the sequence Transformer model to extract the context vector in the random time period; 2-4: Use the context vector obtained in step 2-3 to predict the time step of the next frame in a random time period, and use a bilinear logarithmic model to minimize the dot product between the predicted representation and the true representation of the same sample, while maximizing the dot product with other samples in the mini-batch; 2-5: Perform a nonlinear transformation on the context vector obtained in step 2-3, apply the context vector to the context contrast space, and use the context contrast loss function to maximize the similarity between positive pairs, where positive pairs represent the enhancement patterns of the same sequence, and minimize the similarity between negative pairs, where negative pairs are strong and weak enhancement pairs of other sequences in the same input batch.

4. The martial arts action scoring and recognition method based on multimodal spatiotemporal feature fusion according to claim 1 is characterized in that: The step 3 of extracting spatiotemporal features through the backbone network includes the following steps: 3-1: For the input action skeleton sequence, the action skeleton sequence is input into the temporal encoder and the spatial encoder respectively; 3-2: In the spatial encoder, a convolution operation on the time dimension is first performed to process the temporal relationship between consecutive frames, extract temporal features, and then undergo a graph convolution operation, which combines spatial features with temporal features; graph convolution aggregates the features of a node with the features of its neighbors through an adjacency matrix, thereby transferring information between nodes; 3-3: The aggregated features in step 3-2 are nonlinearly activated using the ReLU activation function, then undergo a convolution operation in the time dimension, and finally perform layer normalization, and use the dropout operation to prevent overfitting; 3-4: In the temporal encoder, a nonlinear projection operation is first performed on the sequence to obtain an overall sequence feature. Four downsampling layers are used to gradually reduce the feature map size from 64 to 512 and increase the number of channels from 128 to 1024 to obtain four shallow and deep sequence features. 3-5: In the action recognition decoder module, there are four upsampling layers, which gradually restore the feature map size and the number of channels, forming a symmetrical structure with step 3-4, and jump-linking the deep and shallow features to form multi-scale feature fusion.

5. The martial arts action scoring and recognition method based on multimodal spatiotemporal feature fusion according to claim 1 is characterized in that: The step 4 of using multimodal feature fusion to perform prediction training includes the following operations: 4-1: In the scoring decoder, a scoring head is used, which consists of multiple convolutional layers and batch normalization layers for further processing and regression after feature extraction. It includes a one-dimensional convolutional layer with 128 input channels, 64 output channels, and a convolution kernel size of 3, a one-dimensional batch normalization layer for normalizing the output of 64 channels, a modified linear activation function for introducing nonlinearity, a second one-dimensional convolutional layer with 64 input channels, 32 output channels, and a convolution kernel size of 3, and a last convolutional layer that reduces the number of channels of the feature map to the output dimension, corresponding to the score interval of the score; 4-2: For the scoring task in step 4-1, use the mean square error loss function to gradually narrow the gap between the predicted score and the actual score label; 4-3: In the action recognition decoder, by forward propagating feature maps of different layers and a series of upsampling, the feature maps of lower layers are gradually fused, and finally the final classification result is obtained through the logits classification function. The binary cross entropy loss function is used to gradually reduce the difference between the probability distribution of the action type predicted by the model and the true label; 4-4: Train the model by optimizing the sum of the loss functions of the entire network; 4-5: The network model is trained using the Adam optimization algorithm, with a learning rate of 1e-3, a batch size of 8, and a total of 50 training iterations.

6. The martial arts action scoring and recognition method based on multimodal spatiotemporal feature fusion according to claim 1 is characterized in that: The application of martial arts action scoring and recognition in step 5 includes the following operations: 5-1: JetBrains PyCharm was selected as the development tool, and PyQt5 was used for system interface development; 5-2: Export the martial arts action scoring and recognition model trained in step 4 to ONNX format, implement the model loading logic in the system, and ensure that the application can load the trained model file; 5-3: Use PyQt5 to design user interfaces, including UI components such as windows, buttons, labels, and input boxes, and use layout managers to arrange UI components properly; 5-4: Write the main logic of the application, including loading the model, processing user input, performing model inference, displaying results, and writing event handling functions for UI components, such as button click events and file selection events; 5-5: Implement the data preprocessing module to convert user input into the format required by the model; Implement the post-processing module to convert the model output into a format that the user can understand and display it. Create a function or class to encapsulate all the steps of model reasoning, including loading the model, preprocessing the input, performing reasoning, and post-processing the output. When the user triggers the corresponding operation, call the reasoning interface; 5-6: Use PyInstaller to package the Python application into an executable file to obtain the application software for martial arts action scoring and recognition.

Citation Information

Cited By

  • Intelligent technical and tactical style evaluation method and system for boxing sports

    CN119992661A

  • Police martial arts fighting action evaluation method and system based on peak shifting time pulse

    CN120339905A

  • Martial arts action real-time correction and scoring method based on multi-modal artificial intelligence

    CN121288273A

  • A martial arts action real-time correction and scoring method based on multi-modal artificial intelligence

    CN121288273B