A basketball shooting result prediction method and system based on machine learning

By collecting and optimizing multi-modal basketball data, and combining the neural network with the attention mechanism for shooting action recognition and score prediction, the problem of automation and accuracy of shooting result prediction in the existing technology is solved, and the data quality and prediction effect are improved.

CN118298348BActive Publication Date: 2024-09-03WUHAN SPORTS UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410337260.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-23
Publication Date
2024-09-03
Estimated Expiration
2044-03-23

AI Technical Summary

Technical Problem

Existing basketball shooting result prediction methods are difficult to identify video content, and there is a lack of shooting result prediction methods for multi-modal basketball sports data. As a result, the degree of automation and accuracy needs to be improved, and the data quality is uneven, making it difficult to meet the needs of machine learning. task requirements.

Method used

By collecting video data and shooting record data, video enhancement and numerical preprocessing methods are used to optimize the data quality, and the residual convolution bidirectional long short-term memory neural network combined with the attention mechanism is used for shooting action recognition and score prediction, which improves the prediction accuracy. Accuracy and efficiency.

Benefits of technology

It improves the automation and accuracy of basketball shooting predictions, provides a better data foundation and intelligent pre-classification guarantee, and achieves complete prediction of shooting results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118298348B
    Figure CN118298348B
Patent Text Reader

Abstract

The present invention discloses a method and system for predicting basketball shooting results based on machine learning, including data collection, data preprocessing, shooting action recognition, shooting action score prediction and basketball shooting result prediction. The present invention relates to the technical field of basketball shooting prediction, and specifically refers to a method and system for predicting basketball shooting results based on machine learning. The scheme collects video data and shooting record data, thereby improving the applicability of the method; the scheme involves data preprocessing by using video enhancement and numerical preprocessing methods, thereby optimizing data quality; the scheme uses a residual convolution bidirectional long short-term memory neural network combined with an attention mechanism to perform shooting action recognition, thereby improving the overall accuracy and recognition efficiency of the method; and the shooting score prediction is performed on the basis of the pre-classification of shooting action recognition, thereby improving the usability of the method itself.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of basketball shot prediction, and in particular to a basketball shot result prediction method and system based on machine learning. Background Art

[0002] The basketball shooting result prediction method based on machine learning uses machine learning technology and related algorithms to predict the results of basketball shots based on historical data and features. By building a model, it can provide valuable information to help basketball coaches, players and team analysts make better decisions and optimize training and tactical strategies. At the same time, it can also increase the fun and participation of watching the game.

[0003] However, in the existing basketball shot result prediction methods, there is a technical problem that the basketball shot result prediction is difficult to identify the video content and further coordinate the prediction with the specific shooting action, which leads to the need to improve the automation level of basketball shot prediction and lack of a method for predicting shooting results for multimodal basketball motion data; in the existing basketball shot result prediction methods, there is a technical problem that the data quality of original data for basketball motion data of different data types is uneven, and it is difficult to meet the needs of subsequent machine learning tasks in terms of data balance, data scale and data quality; in the existing basketball shot result prediction methods, there is a technical problem that the existing machine learning methods are insufficient in identifying shooting movements, and the accuracy and efficiency of the methods need to be improved; in the existing basketball shot result prediction methods, there is a lack of a method for further scoring prediction combined with shooting action recognition, thereby failing to fully predict the shooting results. Summary of the invention

[0004] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides a basketball shot result prediction method and system based on machine learning. In view of the technical problem that in the existing basketball shot result prediction method, it is difficult to identify the video content and further coordinate the prediction with the specific shooting action, which leads to the need to improve the automation of basketball shot prediction and the lack of a method for predicting shooting results for multimodal basketball motion data, this solution creatively collects video data and shooting record data, and predicts basketball data of two different data types through machine learning methods, thereby improving the applicability of the method; in view of the technical problem that in the existing basketball shot result prediction method, the data quality of the original data for basketball motion data of different data types is uneven, and it is difficult to meet the needs of subsequent machine learning tasks in terms of data balance, data scale and data quality, this solution creatively adopts video enhancement and numerical preprocessing methods to carry out data preprocessing scheme, optimizes the data quality, and provides a better data base for subsequent tasks. In view of the technical problem that the existing machine learning methods are not good enough in the recognition of shooting movements, and the accuracy and efficiency of the methods need to be improved in the existing basketball shooting result prediction methods, this scheme creatively adopts the residual convolution bidirectional long short-term memory neural network combined with the attention mechanism to recognize shooting actions, extracts feature maps through convolution, deepens feature information through residual, and then expands features in combination with the attention mechanism. Finally, the bidirectional long short-term memory neural network is used to recognize shooting actions for video time series data, which improves the overall accuracy and recognition efficiency of the method, and provides a good intelligent pre-classification guarantee for the subsequent overall shooting result prediction combined with numerical data prediction; In view of the technical problem that the existing basketball shooting result prediction methods lack a method for further scoring prediction combined with shooting action recognition, so that the shooting results cannot be fully predicted, this scheme creatively predicts shooting scores on the basis of shooting action recognition pre-classification, obtains accurate scoring classification information, conducts technical exploration on the overall automation of the method, and improves the usability of the method itself.

[0005] The technical solution adopted by the present invention is as follows: The present invention provides a method for predicting basketball shooting results based on machine learning, the method comprising the following steps:

[0006] Step S1: data collection;

[0007] Step S2: data preprocessing;

[0008] Step S3: shooting action recognition;

[0009] Step S4: Shooting action score prediction;

[0010] Step S5: predicting basketball shooting results.

[0011] Furthermore, in step S1, the data collection is used to collect multimodal data required for basketball shot result prediction, specifically, to obtain original data for basketball shot result prediction from basketball game records by collecting, and the original data for basketball shot result prediction specifically includes basketball game video data and shooting record numerical data.

[0012] Further, in step S2, the data preprocessing is used to optimize the original data, specifically to perform video enhancement on the basketball game video data and perform basic preprocessing on the shooting record numerical data to obtain optimized shooting body data, including the following steps:

[0013] Step S21: manual video cropping, specifically, performing video editing through manual analysis to crop shooting action video data from the basketball game video data;

[0014] Step S22: video enhancement, specifically, mirror flipping, random cropping and video attribute adjustment of the shooting action video data to obtain enhanced shooting video data;

[0015] Step S23: numerical data processing, specifically, performing basic preprocessing operations on the shooting record numerical data, wherein the basic preprocessing includes data cleaning, data normalization and data category balancing processing to obtain optimized shooting numerical data;

[0016] The data category balance is used to prevent overfitting in model training, specifically refers to using data undersampling and data oversampling methods to adjust the data distribution of each category in the shooting action category data until the data of each category in the shooting action category data reaches data balance;

[0017] Step S24: data preprocessing, specifically, performing data preprocessing through the artificial video cropping, the video enhancement and the numerical data processing to obtain optimized shooting body data, wherein the optimized shooting body data specifically includes enhanced shooting video data and optimized shooting numerical data.

[0018] Further, in step S3, the shooting action recognition is used to construct a machine learning model based on the video data to perform shooting action recognition, and intelligently pre-classify the shooting results through the shooting action recognition, specifically, based on the enhanced shooting video data, a residual convolutional bidirectional long short-term memory neural network combined with an attention mechanism is used to perform shooting action recognition to obtain shooting action prediction information;

[0019] The residual convolution bidirectional long short-term memory neural network combined with the attention mechanism includes a convolution extraction subnet, a residual subnet, an attention subnet and a bidirectional long short-term memory subnet;

[0020] The convolution extraction subnet is used to construct a shooting action feature map;

[0021] The residual subnet is used to learn the feature differences between shooting actions;

[0022] The attention subnet is used to obtain key features for distinguishing different shooting actions;

[0023] The bidirectional long short-term memory subnetwork is used to identify shooting actions by combining correlation features between input data sequences;

[0024] The step of using a residual convolutional bidirectional long short-term memory neural network combined with an attention mechanism to perform shooting action recognition and obtain shooting action prediction information includes:

[0025] Step S31: feature engineering, specifically constructing a double-layer extreme learning framework to extract video features from the enhanced shooting video data to obtain shooting video action feature data, wherein the double-layer extreme learning framework includes a first feature kernel layer and a second training classification layer;

[0026] The first feature kernel layer is used to fuse deep learning feature kernels and manual classification feature kernels;

[0027] The second training classification layer is used to train the classifier to output feature information;

[0028] Step S32: constructing a convolutional extraction subnet, specifically constructing a batch normalization layer and a rectified linear unit layer, constructing the convolutional extraction subnet, and extracting a shooting action feature map from the shooting video action feature data through the convolutional extraction subnet;

[0029] Step S33: constructing a residual subnet, specifically constructing a one-dimensional convolution layer, a nonlinear activation layer, a random dropout layer, a maximum pooling layer and a batch normalization layer, constructing the residual subnet, and obtaining deep residual features through the residual subnet;

[0030] Step S34: constructing an attention subnet, specifically using an efficient channel attention mechanism to perform feature expansion on the deep residual features, constructing the attention subnet through feature conversion, channel attention calculation and feature integration, and obtaining key features of the shooting action through the attention subnet;

[0031] Step S35: constructing a bidirectional long short-term memory subnet, specifically constructing a forward long short-term memory subnet and a backward long short-term memory subnet, constructing a random inactivation layer after the backward long short-term memory subnet, constructing the bidirectional long short-term memory subnet, and performing shooting action prediction by constructing the bidirectional long short-term memory subnet;

[0032] Step S36: constructing a model loss function for optimizing model training includes the following steps:

[0033] Step S361: construct a three-dimensional position loss function, the calculation formula is:

[0034]

[0035] Where, L pos is the three-dimensional position loss function, ||·|| is the L2 norm calculation function, is the real 3D position corresponding to the shooting action, and pos is the predicted 3D position corresponding to the shooting action;

[0036] Step S362: construct a quaternion loss function, the calculation formula is:

[0037]

[0038] Where, L qua is the quaternion loss function, ||·|| is the L2 norm calculation function, imag(·) is the imaginary part function, is the real quaternion used to represent the real shooting action, qua is the predicted quaternion used to represent the predicted shooting action, is the quaternion cross product operator;

[0039] Step S363: construct a composite loss function, the calculation formula is:

[0040]

[0041] Where L is the composite loss function, i is the loss function index, and when i is 1, L i is the three-dimensional position loss function L pos , when i is 2, L i is the quaternion loss function L qua , exp(·) is a natural base function, is the square of the composite weight value corresponding to the i-th loss function;

[0042] Step S37: Training the shooting action recognition model, specifically, training the model through the feature engineering, the convolution extraction subnet, the residual subnet, the attention subnet, the bidirectional long short-term memory subnet and the model loss function to obtain the shooting action recognition model Model AI ;

[0043] Step S38: Shooting action recognition, specifically using the shooting action recognition model Model AI , based on the enhanced shooting video data, shooting action recognition is performed to obtain shooting action prediction information.

[0044] Further, in step S4, the shooting action score prediction is used to construct a machine learning model to predict the specific score of the shooting action based on the numerical data, specifically, based on the optimized shooting numerical data, a long short-term memory neural network method is used to predict the shooting action score to obtain the shooting score prediction data;

[0045] The long short-term memory neural network specifically includes an input layer, a long short-term memory neural network layer and an output layer;

[0046] The input layer is used to receive score prediction numerical data input samples;

[0047] The long short-term memory neural network layer is used to construct a basic long short-term memory neural network structure;

[0048] The output layer is used to output the result of score prediction;

[0049] The method of using a long short-term memory neural network to predict the shooting action score and obtain the shooting score prediction data includes:

[0050] Step S41: constructing an input layer, specifically, inputting the optimized shooting numerical data as score prediction numerical data into a sample to construct the input layer;

[0051] Step S42: constructing a long short-term memory neural network layer, specifically constructing an input gate, a forget gate, a hidden state, a cell state and an output gate, constructing a long short-term memory neural network layer, and performing shooting action score prediction through the long short-term memory neural network layer to obtain shooting score prediction data;

[0052] Step S43: constructing an output layer, specifically, using the shooting score prediction data as a model output to construct the output layer;

[0053] Step S44: Shooting action score prediction model training, specifically, performing model training through the input layer, the long short-term memory neural network layer and the output layer to obtain the shooting action score prediction model Model PP ;

[0054] Step S45: Shooting action score prediction, specifically using the shooting action score prediction model Model PP , based on the optimized shooting numerical data, the shooting action score prediction is performed to obtain the shooting score prediction data.

[0055] Furthermore, in step S5, the basketball shooting result prediction is used to combine the shooting action prediction based on the video and the shooting score prediction based on the numerical value to predict the basketball shooting result. Specifically, based on the shooting action prediction information, the shooting action type is identified and extracted from the specific basketball game player's action, and the shooting action type is combined with the shooting score prediction data to obtain the shooting result prediction data.

[0056] The present invention provides a basketball shooting result prediction system based on machine learning, comprising a data collection module, a data preprocessing module, a shooting action recognition module, a shooting action score prediction module and a basketball shooting result prediction module;

[0057] The data collection module is used for data collection, and obtains raw data for predicting basketball shooting results through data collection, and sends the raw data for predicting basketball shooting results to the data preprocessing module;

[0058] The data preprocessing module is used for data preprocessing. Through data preprocessing, optimized shooting entity data is obtained. The optimized shooting entity data includes enhanced shooting video data and optimized shooting numerical data. The enhanced shooting video data is sent to the shooting action recognition module, and the optimized shooting numerical data is sent to the shooting action score prediction module;

[0059] The shooting action recognition module is used for shooting action recognition, obtains shooting action prediction information through shooting action recognition, and sends the shooting action prediction information to the basketball shooting result prediction module;

[0060] The shooting action score prediction module is used for shooting action score prediction, obtains shooting score prediction data through shooting action score prediction, and sends the shooting score prediction data to the basketball shooting result prediction module;

[0061] The basketball shot result prediction module is used for basketball shot result prediction, and obtains shot result prediction data through basketball shot result prediction.

[0062] The beneficial effects achieved by the present invention using the above scheme are as follows:

[0063] (1) In view of the technical problem that the existing basketball shooting result prediction methods are difficult to identify the video content and further coordinate the prediction with the specific shooting action, which leads to the need to improve the automation of basketball shooting prediction and the lack of a method for predicting shooting results for multimodal basketball sports data, this solution creatively collects video data and shooting record data, and predicts two different types of basketball data through machine learning methods, thereby improving the applicability of the method;

[0064] (2) In view of the technical problem that the quality of original data for basketball sports data of different data types is uneven in the existing basketball shooting result prediction methods, and it is difficult to meet the needs of subsequent machine learning tasks in terms of data balance, data scale and data quality, this solution creatively adopts video enhancement and numerical preprocessing methods to involve data preprocessing solutions, optimizes data quality, and provides a better data foundation for subsequent tasks;

[0065] (3) In view of the technical problems that the existing machine learning methods are insufficient in the recognition of shooting movements and the accuracy and efficiency of the methods need to be improved in the existing basketball shooting result prediction methods, this solution creatively adopts the residual convolution bidirectional long short-term memory neural network combined with the attention mechanism to perform shooting action recognition, extracts feature maps through convolution, deepens feature information through residual, and then expands features by combining the attention mechanism. Finally, the bidirectional long short-term memory neural network is used to recognize shooting actions for video time series data, which improves the overall accuracy and recognition efficiency of the method and provides a good intelligent pre-classification guarantee for the subsequent overall shooting result prediction combined with numerical data prediction;

[0066] (4) In view of the technical problem that the existing basketball shooting result prediction methods lack a method to further predict scores by combining shooting action recognition, thus making it impossible to fully predict the shooting results, this scheme creatively predicts shooting scores based on the pre-classification of shooting action recognition to obtain accurate score classification information, conducts technical exploration of the overall automation of the method, and improves the usability of the method itself. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 A schematic diagram of a flow chart of a basketball shooting result prediction method based on machine learning provided by the present invention;

[0068] Figure 2 A schematic diagram of a basketball shooting result prediction system based on machine learning provided by the present invention;

[0069] Figure 3 This is a schematic diagram of the process of data preprocessing in step S2;

[0070] Figure 4 This is a schematic diagram of the process of shooting action recognition in step S3;

[0071] Figure 5 This is a flow chart of the shooting action score prediction in step S4.

[0072] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION

[0073] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0074] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.

[0075] Example 1, see Figure 1 The present invention provides a method for predicting basketball shooting results based on machine learning, the method comprising the following steps:

[0076] Step S1: data collection;

[0077] Step S2: data preprocessing;

[0078] Step S3: shooting action recognition;

[0079] Step S4: Shooting action score prediction;

[0080] Step S5: predicting basketball shooting results.

[0081] Example 2, see Figure 1 , Figure 2 and Figure 3 This embodiment is based on the above embodiment. In step S1, the data collection is used to collect multimodal data required for basketball shooting result prediction, specifically, raw data for basketball shooting result prediction is obtained by collecting from basketball game records. The raw data for basketball shooting result prediction specifically includes basketball game video data and shooting record numerical data;

[0082] The shooting record numerical data specifically includes shooting action category data and shooting result mark data;

[0083] The shooting action category data specifically includes static shooting action, jump shot action, emergency stop shooting action, post-up shooting action, jump shot tip-in action, arc top shooting action, three-point shooting action, step-over shooting action, shooting retreat action, cutting into the basket shooting action, through the basket shooting action, hook shot action, shoulder passing shooting action, double-team shooting action, breakthrough shooting action, arc bottom shooting action, breakthrough sudden stop shooting action, lock-on shooting action, counterattack shooting action, intentional mistake shooting action, ignoring defense shooting action, free throw shooting action, arm-raising emergency stop shooting action and baseline shooting action;

[0084] The shooting result marking data specifically includes shooting hit data and specific score detail data.

[0085] By performing the above operations, in order to solve the technical problem that in the existing basketball shot prediction methods, it is difficult to identify the video content and further coordinate the prediction with the specific shooting action, which leads to the need to improve the automation level of basketball shot prediction and the lack of a method for predicting shooting results for multimodal basketball motion data, this scheme creatively collects video data and shooting record data, and predicts two different data types of basketball data through machine learning methods, thereby improving the applicability of the method.

[0086] Example 3, see Figure 1 , Figure 2 and Figure 3 This embodiment is based on the above embodiment. In step S2, the data preprocessing is used to optimize the original data, specifically to perform video enhancement on the basketball game video data and perform basic preprocessing on the shooting record numerical data to obtain optimized shooting body data, including the following steps:

[0087] Step S21: manual video cropping, specifically, performing video editing through manual analysis to crop shooting action video data from the basketball game video data;

[0088] Step S22: video enhancement, specifically, mirror flipping, random cropping and video attribute adjustment of the shooting action video data to obtain enhanced shooting video data;

[0089] Step S23: numerical data processing, specifically, performing basic preprocessing operations on the shooting record numerical data, wherein the basic preprocessing includes data cleaning, data normalization and data category balancing processing to obtain optimized shooting numerical data;

[0090] The data category balance is used to prevent overfitting in model training, specifically refers to using data undersampling and data oversampling methods to adjust the data distribution of each category in the shooting action category data until the data of each category in the shooting action category data reaches data balance;

[0091] Step S24: data preprocessing, specifically, performing data preprocessing through the artificial video cropping, the video enhancement and the numerical data processing to obtain optimized shooting body data, wherein the optimized shooting body data specifically includes enhanced shooting video data and optimized shooting numerical data.

[0092] By performing the above operations, in order to address the technical problem that in the existing basketball shooting result prediction methods, there are basketball sports data of different data types, the data quality of the original data is uneven, and it is difficult to meet the needs of subsequent machine learning tasks in terms of data balance, data scale and data quality, this solution creatively adopts video enhancement and numerical preprocessing methods to involve data preprocessing solutions, optimizes data quality, and provides a better data foundation for subsequent tasks.

[0093] Example 4, see Figure 1 , Figure 2 and Figure 4 This embodiment is based on the above embodiment. In step S3, the shooting action recognition is used to build a machine learning model based on the video data to perform shooting action recognition, and intelligently pre-classify the shooting results through the shooting action recognition. Specifically, based on the enhanced shooting video data, a residual convolutional bidirectional long short-term memory neural network combined with an attention mechanism is used to perform shooting action recognition to obtain shooting action prediction information;

[0094] The residual convolution bidirectional long short-term memory neural network combined with the attention mechanism includes a convolution extraction subnet, a residual subnet, an attention subnet and a bidirectional long short-term memory subnet;

[0095] The convolution extraction subnet is used to construct a shooting action feature map;

[0096] The residual subnet is used to learn the feature differences between shooting actions;

[0097] The attention subnet is used to obtain key features for distinguishing different shooting actions;

[0098] The bidirectional long short-term memory subnetwork is used to identify shooting actions by combining correlation features between input data sequences;

[0099] The step of using a residual convolutional bidirectional long short-term memory neural network combined with an attention mechanism to perform shooting action recognition and obtain shooting action prediction information includes:

[0100] Step S31: feature engineering, specifically constructing a double-layer extreme learning framework to extract video features from the enhanced shooting video data to obtain shooting video action feature data, wherein the double-layer extreme learning framework includes a first feature kernel layer and a second training classification layer;

[0101] The first feature kernel layer is used to fuse deep learning feature kernels and manual classification feature kernels, specifically to train an extreme learning machine for feature extraction to obtain deep learning features, and to use the L2 norm for feature fusion to obtain a feature kernel group, wherein the feature kernel group specifically includes deep learning features, manual classification features, and fusion features;

[0102] The second training classification layer is used to train the classifier to output feature information, specifically by using the L1 norm to perform regularization calculation on the feature kernel group to obtain a video feature vector group, and by performing kernel matrix calculation on the video feature vector group to obtain a classification linear feature kernel matrix, and using a Gaussian mixture model to perform principal component analysis on the classification linear feature kernel matrix to obtain video feature descriptor information, and combining the classification linear feature kernel matrix and the video feature descriptor information to obtain shooting video action feature data;

[0103] Step S32: constructing a convolutional extraction subnet, specifically constructing a batch normalization layer and a rectified linear unit layer, constructing the convolutional extraction subnet, and extracting a shooting action feature map from the shooting video action feature data through the convolutional extraction subnet;

[0104] Step S33: constructing a residual subnet, specifically constructing a one-dimensional convolution layer, a nonlinear activation layer, a random dropout layer, a maximum pooling layer and a batch normalization layer, constructing the residual subnet, and obtaining deep residual features through the residual subnet;

[0105] The residual subnetwork specifically includes a first residual layer, a second residual layer, a third residual layer and a fourth residual layer;

[0106] The first residual layer includes 128 convolution kernels and a maximum pooling layer with a pooling window size of 256;

[0107] The second residual layer includes 196 convolution kernels and a maximum pooling layer with a pooling window size of 128;

[0108] The third residual layer includes 256 convolution kernels and a maximum pooling layer with a pooling window size of 64;

[0109] The fourth residual layer includes 320 convolution kernels and a maximum pooling layer with a pooling window size of 32;

[0110] The convolution kernel size of the one-dimensional convolution layer is 3;

[0111] Step S34: constructing an attention subnet, specifically using an efficient channel attention mechanism to perform feature expansion on the deep residual features, constructing the attention subnet through feature conversion, channel attention calculation and feature integration, and obtaining key features of the shooting action through the attention subnet;

[0112] The feature conversion specifically refers to converting the format of the depth residual feature to obtain conversion intermediate feature data;

[0113] The channel attention calculation is specifically to convert the converted intermediate feature data into an attention weight value using a S-type function;

[0114] The feature integration is specifically to combine the attention weight value, perform weighted summation on the deep residual features, and obtain the key features of the shooting action;

[0115] Step S35: constructing a bidirectional long short-term memory subnet, specifically constructing a forward long short-term memory subnet and a backward long short-term memory subnet, constructing a random inactivation layer after the backward long short-term memory subnet, constructing the bidirectional long short-term memory subnet, and performing shooting action prediction through the bidirectional long short-term memory subnet;

[0116] The forward long short-term memory subnet is used to process the past information of time series data, and the specific number of units is set to 96;

[0117] The specific number of units of the backward long short-term memory subnet for processing future information of time series data is set to 96;

[0118] The rate of the random deactivation layer is set to 0.25;

[0119] Step S36: constructing a model loss function for optimizing model training includes the following steps:

[0120] Step S361: construct a three-dimensional position loss function, the calculation formula is:

[0121]

[0122] Where, L pos is the three-dimensional position loss function, ||·|| is the L2 norm calculation function, is the real 3D position corresponding to the shooting action, and pos is the predicted 3D position corresponding to the shooting action;

[0123] Step S362: construct a quaternion loss function, the calculation formula is:

[0124]

[0125] Where, L quais the quaternion loss function, ||·|| is the L2 norm calculation function, imag(·) is the imaginary part function, is the real quaternion used to represent the real shooting action, qua is the predicted quaternion used to represent the predicted shooting action, is the quaternion cross product operator;

[0126] Step S363: construct a composite loss function, the calculation formula is:

[0127]

[0128] Where L is the composite loss function, i is the loss function index, and when i is 1, L i is the three-dimensional position loss function L pos , when i is 2, L i is the quaternion loss function L qua , exp(·) is a natural base function, is the square of the composite weight value corresponding to the i-th loss function;

[0129] Step S37: Training the shooting action recognition model, specifically, training the model through the feature engineering, the convolution extraction subnet, the residual subnet, the attention subnet, the bidirectional long short-term memory subnet and the model loss function to obtain the shooting action recognition model Model AI ;

[0130] Step S38: Shooting action recognition, specifically using the shooting action recognition model Model AI , based on the enhanced shooting video data, shooting action recognition is performed to obtain shooting action prediction information.

[0131] By performing the above operations, in view of the technical problem that in the existing basketball shooting result prediction methods, the existing machine learning methods are insufficient in the recognition of shooting movements, and the accuracy and efficiency of the methods need to be improved, this scheme creatively adopts the residual convolution bidirectional long short-term memory neural network combined with the attention mechanism to perform shooting action recognition, extracts feature maps through convolution, deepens feature information through residuals, and then expands features in combination with the attention mechanism, and finally uses the bidirectional long short-term memory neural network to recognize shooting actions for video time series data, which improves the overall accuracy and recognition efficiency of the method, and provides a good intelligent pre-classification guarantee for the subsequent overall shooting result prediction combined with numerical data prediction.

[0132] Example 5, see Figure 1 , Figure 2 and Figure 5This embodiment is based on the above embodiment. In step S4, the shooting action score prediction is used to construct a machine learning model to predict the specific score of the shooting action based on the numerical data. Specifically, based on the optimized shooting numerical data, a long short-term memory neural network method is used to predict the shooting action score to obtain the shooting score prediction data;

[0133] The long short-term memory neural network specifically includes an input layer, a long short-term memory neural network layer and an output layer;

[0134] The input layer is used to receive score prediction numerical data input samples;

[0135] The long short-term memory neural network layer is used to construct a basic long short-term memory neural network structure;

[0136] The output layer is used to output the result of score prediction;

[0137] The method of using a long short-term memory neural network to predict the shooting action score and obtain the shooting score prediction data includes:

[0138] Step S41: constructing an input layer, specifically, inputting the optimized shooting numerical data as score prediction numerical data into a sample to construct the input layer;

[0139] Step S42: constructing a long short-term memory neural network layer, specifically constructing an input gate, a forget gate, a hidden state, a cell state and an output gate, constructing a long short-term memory neural network layer, and performing shooting action score prediction through the long short-term memory neural network layer to obtain shooting score prediction data;

[0140] Step S43: constructing an output layer, specifically, using the shooting score prediction data as a model output to construct the output layer;

[0141] Step S44: Shooting action score prediction model training, specifically, performing model training through the input layer, the long short-term memory neural network layer and the output layer to obtain the shooting action score prediction model Model PP ;

[0142] Step S45: Shooting action score prediction, specifically using the shooting action score prediction model Model PP , based on the optimized shooting numerical data, the shooting action score prediction is performed to obtain the shooting score prediction data.

[0143] By executing the above operations, in order to solve the technical problem that the existing basketball shooting result prediction method lacks a method to further predict the score by combining the shooting action recognition, thus failing to fully predict the shooting result, this solution creatively predicts the shooting score based on the pre-classification of the shooting action recognition, obtains accurate score classification information, conducts technical exploration on the overall automation of the method, and improves the usability of the method itself.

[0144] Example 6, see Figure 1 and Figure 2 This embodiment is based on the above embodiment. In step S5, the basketball shooting result prediction is used to combine the shooting action prediction based on the video and the shooting score prediction based on the numerical value to predict the basketball shooting result. Specifically, based on the shooting action prediction information, the shooting action type is identified and extracted from the specific basketball game player action, and the shooting action type is combined with the shooting score prediction data to obtain the shooting result prediction data.

[0145] Embodiment 7, see Figure 1 and Figure 2 , this embodiment is based on the above embodiment, and a basketball shooting result prediction system based on machine learning provided by the present invention includes a data collection module, a data preprocessing module, a shooting action recognition module, a shooting action score prediction module and a basketball shooting result prediction module;

[0146] The data collection module is used for data collection, and obtains raw data for predicting basketball shooting results through data collection, and sends the raw data for predicting basketball shooting results to the data preprocessing module;

[0147] The data preprocessing module is used for data preprocessing. Through data preprocessing, optimized shooting entity data is obtained. The optimized shooting entity data includes enhanced shooting video data and optimized shooting numerical data. The enhanced shooting video data is sent to the shooting action recognition module, and the optimized shooting numerical data is sent to the shooting action score prediction module;

[0148] The shooting action recognition module is used for shooting action recognition, obtains shooting action prediction information through shooting action recognition, and sends the shooting action prediction information to the basketball shooting result prediction module;

[0149] The shooting action score prediction module is used for shooting action score prediction, obtains shooting score prediction data through shooting action score prediction, and sends the shooting score prediction data to the basketball shooting result prediction module;

[0150] The basketball shot result prediction module is used for basketball shot result prediction, and obtains shot result prediction data through basketball shot result prediction.

[0151] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0152] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.

[0153] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.

Claims

1. A basketball shooting result prediction method based on machine learning, characterized in that: The method comprises the following steps: Step S1: data collection, for collecting multimodal data required for basketball shooting result prediction, specifically collecting raw data for basketball shooting result prediction from basketball game records, wherein the raw data for basketball shooting result prediction specifically includes basketball game video data and shooting record numerical data; The shooting record numerical data specifically includes shooting action category data and shooting result mark data; The shooting result marking data specifically includes shooting hit data and specific score detail data; Step S2: Data preprocessing, which is used to optimize the original data, specifically to perform video enhancement on the basketball game video data and perform basic preprocessing on the shooting record numerical data to obtain optimized shooting body data, including the following steps: Step S21: manual video cropping, specifically, performing video editing through manual analysis to crop shooting action video data from the basketball game video data; Step S22: video enhancement, specifically, mirror flipping, random cropping and video attribute adjustment of the shooting action video data to obtain enhanced shooting video data; Step S23: numerical data processing, specifically, performing basic preprocessing operations on the shooting record numerical data, wherein the basic preprocessing includes data cleaning, data normalization and data category balancing processing to obtain optimized shooting numerical data; The data category balance is used to prevent overfitting in model training, specifically refers to using data undersampling and data oversampling methods to adjust the data distribution of each category in the shooting action category data until the data of each category in the shooting action category data reaches data balance; Step S24: data preprocessing, specifically, performing data preprocessing through the artificial video cropping, the video enhancement and the numerical data processing to obtain optimized shooting body data, wherein the optimized shooting body data specifically includes enhanced shooting video data and optimized shooting numerical data; Step S3: Shooting action recognition, which is used to build a machine learning model based on the video data to perform shooting action recognition, and intelligently pre-classify the shooting results through shooting action recognition, specifically, based on the enhanced shooting video data, a residual convolutional bidirectional long short-term memory neural network combined with an attention mechanism is used to perform shooting action recognition to obtain shooting action prediction information; The residual convolution bidirectional long short-term memory neural network combined with the attention mechanism includes a convolution extraction subnet, a residual subnet, an attention subnet and a bidirectional long short-term memory subnet; Step S4: Shooting action score prediction, which is used to construct a machine learning model to predict the specific score of the shooting action based on the numerical data, specifically, based on the optimized shooting numerical data, a long short-term memory neural network method is used to predict the shooting action score to obtain the shooting score prediction data; Step S5: basketball shooting result prediction, which is used to combine the shooting action prediction based on the video and the shooting score prediction based on the numerical value to predict the basketball shooting result. Specifically, based on the shooting action prediction information, the shooting action type is identified and extracted from the specific basketball game player's action, and the shooting action type is combined with the shooting score prediction data to obtain the shooting result prediction data.

2. The method for predicting basketball shooting results based on machine learning according to claim 1, characterized in that: In step S3, the residual convolutional bidirectional long short-term memory neural network combined with the attention mechanism includes a convolutional extraction subnet, a residual subnet, an attention subnet and a bidirectional long short-term memory subnet; The convolution extraction subnet is used to construct a shooting action feature map; The residual subnet is used to learn the feature differences between shooting actions; The attention subnet is used to obtain key features for distinguishing different shooting actions; The bidirectional long short-term memory subnetwork is used to perform shooting action recognition by combining correlation features between input data sequences.

3. The method for predicting basketball shooting results based on machine learning according to claim 2, characterized in that: In step S3, the step of using a residual convolutional bidirectional long short-term memory neural network combined with an attention mechanism to perform shooting action recognition and obtain shooting action prediction information includes: Step S31: feature engineering; Step S32: construct a convolutional extraction subnet; Step S33: construct a residual subnet; Step S34: construct an attention subnetwork; Step S35: construct a bidirectional long short-term memory subnetwork; Step S36: constructing a model loss function; Step S37: shooting action recognition model training; Step S38: Shooting action recognition.

4. The method for predicting basketball shooting results based on machine learning according to claim 3, characterized in that: In step S31, the feature engineering is specifically to construct a double-layer extreme learning framework to extract video features of the enhanced shooting video data to obtain shooting video action feature data, and the double-layer extreme learning framework includes a first feature kernel layer and a second training classification layer; The first feature kernel layer is used to fuse deep learning feature kernels and manual classification feature kernels; The second training classification layer is used to train the classifier to output feature information; In step S32, the convolutional extraction subnet is constructed, specifically, a batch normalization layer and a rectified linear unit layer are constructed to construct the convolutional extraction subnet, and a shooting action feature map is extracted from the shooting video action feature data through the convolutional extraction subnet.

5. The method for predicting basketball shooting results based on machine learning according to claim 4, characterized in that: In step S33, the residual subnet is constructed by constructing a one-dimensional convolutional layer, a nonlinear activation layer, a random dropout layer, a maximum pooling layer, and a batch normalization layer to construct the residual subnet, and deep residual features are obtained through the residual subnet; In step S34, the attention subnet is constructed, specifically by adopting a channel attention mechanism to perform feature expansion on the deep residual feature, constructing the attention subnet through feature conversion, channel attention calculation and feature integration, and obtaining the key features of the shooting action through the attention subnet; In step S35, the bidirectional long short-term memory subnet is constructed, specifically, a forward long short-term memory subnet and a backward long short-term memory subnet are constructed, a random inactivation layer is constructed after the backward long short-term memory subnet, the bidirectional long short-term memory subnet is constructed, and the shooting action is predicted through the bidirectional long short-term memory subnet; In step S36, constructing a model loss function for optimizing model training includes the following steps: Step S361: construct a three-dimensional position loss function, the calculation formula is: Where, L pos is the three-dimensional position loss function, ||·|| is the L2 norm calculation function, is the real 3D position corresponding to the shooting action, and pos is the predicted 3D position corresponding to the shooting action; Step S362: construct a quaternion loss function, the calculation formula is: Where, L qua is the quaternion loss function, ||·|| is the L2 norm calculation function, imag(·) is the imaginary part function, is the real quaternion used to represent the real shooting action, qua is the predicted quaternion used to represent the predicted shooting action, is the quaternion cross product operator; Step S363: construct a composite loss function, the calculation formula is: Where L is the composite loss function, i is the loss function index, and when i is 1, L i is the three-dimensional position loss function L pos , when i is 2, L i is the quaternion loss function L qua , exp(·) is a natural base function, is the square of the composite weight value corresponding to the i-th loss function; In step S37, the shooting action recognition model training is specifically performed through the feature engineering, the convolution extraction subnet, the residual subnet, the attention subnet, the bidirectional long short-term memory subnet and the model loss function to obtain the shooting action recognition model Model AI ; In step S38, the shooting action recognition is specifically performed using the shooting action recognition model Model AI , based on the enhanced shooting video data, shooting action recognition is performed to obtain shooting action prediction information.

6. The method for predicting basketball shooting results based on machine learning according to claim 5, characterized in that: In step S4, the long short-term memory neural network specifically includes an input layer, a long short-term memory neural network layer and an output layer; The input layer is used to receive score prediction numerical data input samples; The long short-term memory neural network layer is used to construct a basic long short-term memory neural network structure; The output layer is used to output the result of score prediction; The method of using a long short-term memory neural network to predict the shooting action score and obtain the shooting score prediction data includes: Step S41: constructing an input layer, specifically, inputting the optimized shooting numerical data as score prediction numerical data into a sample to construct the input layer; Step S42: constructing a long short-term memory neural network layer, specifically constructing an input gate, a forget gate, a hidden state, a cell state and an output gate, constructing a long short-term memory neural network layer, and performing shooting action score prediction through the long short-term memory neural network layer to obtain shooting score prediction data; Step S43: constructing an output layer, specifically, using the shooting score prediction data as a model output to construct the output layer; Step S44: Shooting action score prediction model training, specifically, performing model training through the input layer, the long short-term memory neural network layer and the output layer to obtain the shooting action score prediction model Model PP ; Step S45: Shooting action score prediction, specifically using the shooting action score prediction model Model PP , based on the optimized shooting numerical data, the shooting action score prediction is performed to obtain the shooting score prediction data.

7. A basketball shot result prediction system based on machine learning, used to implement a basketball shot result prediction method based on machine learning as described in any one of claims 1-6, characterized in that: It includes a data collection module, a data preprocessing module, a shooting action recognition module, a shooting action score prediction module and a basketball shooting result prediction module.

8. The basketball shooting result prediction system based on machine learning according to claim 7, characterized in that: The data collection module is used for data collection, and obtains raw data for predicting basketball shooting results through data collection, and sends the raw data for predicting basketball shooting results to the data preprocessing module; The data preprocessing module is used for data preprocessing. Through data preprocessing, optimized shooting entity data is obtained. The optimized shooting entity data includes enhanced shooting video data and optimized shooting numerical data. The enhanced shooting video data is sent to the shooting action recognition module, and the optimized shooting numerical data is sent to the shooting action score prediction module; The shooting action recognition module is used for shooting action recognition, obtains shooting action prediction information through shooting action recognition, and sends the shooting action prediction information to the basketball shooting result prediction module; The shooting action score prediction module is used for shooting action score prediction, obtains shooting score prediction data through shooting action score prediction, and sends the shooting score prediction data to the basketball shooting result prediction module; The basketball shot result prediction module is used for basketball shot result prediction, and obtains shot result prediction data through basketball shot result prediction.