# Development of Basketball Tactics Basic Cooperation Teaching System Based on CNN and BP Neural Network

Authors: Lin Hua; Guangyu Liu
Journal: Computational Intelligence and Neuroscience
 (2021)

---

## Abstract

The traditional basketball teaching mode cannot meet the needs of students for the basic cooperation of basketball tactics. Therefore, a basic cooperation teaching system of basketball tactics based on artificial neural network is studied and designed. The system has a professional basketball game video tactical learning module. The events in the basketball game video are classified through a convolutional neural network and combined with the explanation of teachers to make the students have an intuitive understanding of the basic cooperation of basketball tactics and then design the basketball game module based on a BP neural network to provide students with an online basketball tactics training platform. Finally, the teacher scores the performance of the actual on-site training students in the basic cooperation of basketball tactics through the tactical scoring module on the system. The results show that after the introduction of global and collective motion patterns, the classification accuracy of the convolutional neural network is improved by 22.48%, which has significant optimization. The average accuracy of basketball game video event classification is 62.35%, and the accuracy of snatch event classification is improved to 95.28%. The recognition rate of the BP neural network combined with momentum gradient descent method is 75%, the number of weight adjustment is less, and the memory is small while ensuring fast running speed. Students who accept the basic basketball tactics cooperation teaching system based on the artificial neural network for basketball teaching have an overall score of 27.99 ± 2.11 points The overall score of exchange defense cooperation was 24.12 ± 2.03, which was higher than that of the control group. The above results show that the basketball tactical basic cooperation teaching system based on the artificial neural network has a good teaching effect in improving students’ basketball tactical basic cooperation ability.


---

## Body

## 1. Introduction

With the advent of the era of national fitness, basketball has become a popular sports option for college students. However, in the traditional basketball teaching, it mainly depends on the explanation and demonstration of physical education teachers. There are some limitations in the teaching of sports-related knowledge by simple body language and oral language [1]. In particular, the instantaneous characteristics of body demonstration determine that students can only observe the memory traces formed by the information obtained in a short time to complete the exercise of motor skills. Different students have different mastery of the same skills, and the teaching efficiency is very low [2, 3]. At the same time, the basic cooperation of basketball tactics refers to the simple cooperation method between two or three offensive players to attack each other’s basket, which includes pass cut cooperation, cover cooperation, coordination cooperation, and sudden point cooperation [4]. Traditional basketball teaching is difficult to meet the needs of students to improve the basic cooperation ability of basketball tactics. Therefore, a convolution neural network is used to automatically analyze the events of basketball sports video to improve players’ understanding of the basic cooperation of basketball tactics. Then a basketball game module based on a BP neural network is designed. Finally, a basketball tactics basic cooperation teaching system based on an ANN is proposed.Basketball game is a confrontation mode, which is expressed as global and collective motion patterns (GCMPs) in the video. Özkan et al. put forward that basketball can help the human body maintain the level of physical vitality, improve the quality of life of some people, and improve the body’s ability to adapt to the environment [5]. Stavropoulos et al. have proposed that video simulation can be used to improve the effectiveness of decision-making skills in invasion sports. The results show that the players who learn online basketball video through computer screen and virtual reality headset have higher basketball tactical scores than those who only watch the NCAA playoff video [6]. Chuckravanen et al. found that in sports, the establishment of an effective rhythm will enable an athlete to organize and control musculoskeletal activities and psychology to a certain extent, which can improve the efficiency of effective sports [7]. Mandic et al. made statistics on the scores of NBA and European Union basketball games from 2000 to 2017 and found that the success of the basketball team cannot leave the appropriate basketball tactics, which is closely related to the number of block shots, defensive rebounds, and free throws in basketball [8]. The neural network algorithm is a new meta heuristic algorithm developed under the inspiration of the biological neural system and ANN. Zhang et al. proposed an optimization algorithm based on teaching and learning, which can ensure that the network algorithm has a faster convergence speed and reduce the possibility of falling into the local optimum [9]. Hung et al. proposed that students’ learning status can be understood through the recognition of learners’ facial emotion, and convolutional neural network will automatically learn the necessary features of the whole image [10].Zhu et al. put forward that in the teaching process, the teaching effect of students depends on their personal interest, teachers’ teaching level, teaching mode, peer learning status, and other factors. Compared with offline courses, online courses, sports games, and other teaching modes can achieve better teaching effect [11]. Naik et al. designed a neural network based on the functional link using the improved heuristic optimization method of teaching and learning elements, which simplifies the distributed network traffic, avoids the repeated parameter processing, and improves the information processing speed [12]. The ANN algorithm is widely used in various industries. Parsons et al. use the support vector machine, naive Bayes, and k-nearest neighbor technology to filter the EEG data of participating in the game and wearable sensor technology to detect the players’ neurocognition and emotional state. It is found that when the players play the game, they can effectively improve their corresponding decision-making ability calculation and compression capacity [13]. Yin et al. used the ANN to obtain specific patterns from high-fidelity data and then constructed a data-driven turbulence model with significantly improved prediction accuracy [14]. Using the ANN technology, Hong et al. have constructed a general framework for induced sludge aliasing correction, which reduces the detection error under different aliasing conditions [15].In addition to the field of basketball teaching, artificial intelligence models are widely used in a variety of scientific fields. Najafzadeh and Barani built a grouped data processing model based on genetic programming and back-propagation system to predict the pier scouring depth, which is obviously optimized compared with the traditional equation [16]. Deng constructed a typhoon comprehensive loss prediction model based on principal component analysis and BP neural network and optimized the model using the Levenberg Marquardt (LM) algorithm [17]. Najafzadeh et al. proposed using an adaptive neuro fuzzy inference system and support vector machine to predict the local scouring depth of channel long contraction and found that the prediction ability of adaptive neuro fuzzy inference system is better [18]. Starting from the subway turnstile passenger flow data, Yang et al. used ANN to estimate the number of passengers in each track section and predict the passenger flow of the subway transportation system [19].To sum up, there are a lot of researches on the ANN, basketball tactics, sports video teaching, teaching mode, and so on, but there is a lack of research on the basketball tactics foundation combined with the ANN and teaching system [20]. In view of this, this paper puts forward an ANN-based basketball tactics basic cooperative teaching system, which is mainly composed of basketball tactics basic cooperative video learning module, basketball game training module, and basketball tactics basic cooperative ability scoring module to provide more effective ways to improve the students’ ability of basic basketball tactics. The GCMP classification method based on the convolutional neural network is used to intelligently classify and analyze basketball game video events so as to provide material basis for basketball tactics teaching. The classification analysis method of multifeature fusion has a better classification effect than the traditional single domain motion classification model. Using the BP neural network to design basketball game tactical decision-making training system, compared with other neural network models, it improves the AI intelligence and identification of game modules and provides a training platform for basketball tactical teaching, which is innovative and pioneering.


## 2. The Design of the Teaching System of Basketball Tactical Basis

### 2.1. Design of the Video Learning Module for Basketball Tactics Foundation

Through the analysis of all kinds of events in the basketball game video, this paper carries out the teaching of the basic cooperation of basketball tactics. The basic cooperation video of basketball tactics belongs to the video of multiperson cooperation. Events such as goals and defense in the video are comprehensively expressed by the behaviors of several people. The task of tactical analysis and learning is complex and arduous [21, 22]. On this basis, the classification of basketball video events is proposed.The two-stage event classification method shown in Figure1 uses global and group movement patterns (GCMPs) to complete the event preclassification in the the EVENT-OCC video segment. First, basketball events are roughly divided into five categories: 3-point shot, free throw, 2-point shot, slam dunk, and steal. Then, the convolution neural network is used to extract the spatial features of GCMPs, and the layup and 2-point ball are classified in detail. Finally, the basketball events are divided into three points success/failure, free throw success/failure, other two points success/failure, layup success/failure, and slam success/failure [23]. It can be expressed as V5−event=3−point,free throw,layup,other2−point,dunk. The prediction vector of success and failure is VSF=success,failure. Any element in the prediction event is 0 if it is not 1.(1)Vensem=V5−event⊗VSF.Figure 1
Basketball video event classification framework based on domain knowledge and GCMPs.In formula (1), V5−event is the vector of 1×5; ⊗ is the Kronecker product operation; VSF is the vector of 1×2; after the Kronecker product operation, Vensem can be expressed as 1×10 vector.As shown in Figure2, after extracting the GCMP expression of basketball video players by optical flow graph, the spatial features of GCMPs are extracted by the convolution neural network. The convolutional neural network consists of five convolution layers and three fully connected layers. fc6 to fc8 are all fully connected layers.(2)Yi=Xi+2∗Di−KiSi+1.Figure 2
Convolutional neural network framework for learning spatial features of GCMPs.Equation (2) is the expression of the size relationship between the input and output of each layer, Xi is the size of the input feature map of the i_th layer, Yi is the corresponding size of the output feature map of the layer, Si is the step size of the convolution process, and Ki is the size of the convolution kernel of the i_th layer; Di Indicates the length of the side length extension. Generally, the default value is 0. In this paper, we use long short-term memory (LSTM) to mind the temporal features of GCMPs so as to complete the event analysis of consecutive frames. When the input of the LSTM unit at t time is xt and weight matrix w, w acts on the output of ht−1 of hidden layer at t−1 time and the corresponding input xt at t time, this effect will continue to be transferred to the output ht of hidden layer at the next time [24, 25]. That is to say, the processing of each frame of video should be carried out according to the time sequence:(3)h1=Fwx1,h0=Fwx1,0,h2=Fwx2,h1,⋮hT=FwxT,hT−1.In equation (3), T is the video length, Fw is the video frame, and x1,x2,…,xT is the spatial feature of GCMPs extracted by the convolutional neural network.(4)stn=∑i=1256hti∗win+bn.In equation (3), ht is the output of a hidden layer represented by a 256 dimensional feature vector, where t is the number of video frames, stn is the response value of the n_th neuron in the classification layer, and b is a constant.(5)ptn=expstn∑n=1Nexpstn,(6)G=∑t=1Tpt1,pt2,…,ptNT.In equations (5) and (6), N represents the number of categories and G is the prediction vector of the last video segment. The prediction score matrix of the t frame is represented by pt1,pt2,…,ptN. The prediction vector of the last video segment can be obtained by calculating the average score matrix of the T frame in the video segment. The category with the highest score can be considered as the event type of the video segment.As shown in Figure3, the spatial features of the corresponding video frames in the postevent video segment are extracted through the convolution neural network. The convolution neural network will output a prediction value for each frame in the video segment and obtain the state classification of the video segment by voting. The input variables of the basketball game video are extracted through the mapping of the convolution neural network. Finally, the event classification result of the video segment is the output.Figure 3
The prediction framework of success and failure.


### 2.2. Decision-Making Module Design of Sports Games

After the analyzing and learning basketball video, the basic training of online basketball tactics is carried out through the decision-making module of basketball game to improve the level of basic cooperation of basketball tactics. A decision system of the basketball game based on the BP neural network algorithm and cluster analysis is designed.Figure4 shows the basic flow of the game system in the basketball game module. The system is composed of an online decision-making stage and offline learning stage. The former is responsible for sending corresponding decision-making instructions to the NPC according to the specific operation behavior of players. The latter is mainly used for data processing to ensure the continuous evolutionary learning of neural network [26–28].Figure 4
The flow chart of the basketball game decision system.The BP neural network shown in Figure5 is composed of neurons, weights, activation functions, and so on. The input variable enters the BP neural network from the input neuron. After layer-by-layer mapping in the neural network structure and a series of adjustments such as weight and excitation function, it reaches the output layer to obtain the final output variable [29]. The input and output states of the ith neuron in the hidden layer are(7)neti=∑i=1Mwijxj+θ.Figure 5
Structure diagram of the three-layer BP neural network.In equation (7), neti refers to the input value of the i_th node in the hidden layer and the weight between the node and the j_th node in the input layer. The input value of the j_th node in the input layer and the threshold value of the i_th node in the hidden layer are represented by xj and θi, respectively. The number of output neurons was M.(8)yi=∅neti=∅∑i=1Mwijxj+θ.Equation (8) is the expression of the output value of the i_th node of the hidden layer; ∅x is the excitation function of the hidden layer.(9)netk=∑j=1qwkiyi+ak.Equation (9) is the input expression of the k node in the output layer. The input value of the k node in the output layer is represented by netk, and q is the number of neurons in the hidden layer. Then, the threshold value of the k node in the output layer is represented by ak.(10)ok=ψnetk.Equation (10) is the expression of the output value of the k node of the output layer. Compared with the traditional AI technology, the basketball game AI with the neural network has the advantages of fast processing speed, high stability, and strong learning ability.(11)fx=11+e−2x.Equation (11) is the excitation function; its range is (0, 1), and the input value changes greatly near 0, which can balance the behavior between linear and nonlinear and improve the nonlinear mapping ability of the neural network.(12)xk+1=xk−ηy′fxk.Formula (12) is the iterative process expression of the BP neural network. The vector composed of weights and thresholds of all neurons is represented by xk; η shows the learning rate of neural network. The objective function and its gradient are represented by fxk and y′fxk, respectively. To improve the convergence speed of BP algorithm, the momentum term is introduced into the BP algorithm.(13)ΔWt=ηδo+αΔWt−1.In equation (13), Wt and o represent the weight matrix and output vector, respectively; the momentum coefficient introduced is represented by α, and t is the adjustment time.Table1 is the format of the real-time data of the game. X1, Y1, …, and D2 are used as the input of the neural network, X and Y are used as output positions of mobile destination coordinates, 15 hidden neurons are set, and fx=1/1+e−2x is the hidden layer excitation function. The basketball game module based on the BP neural network is constructed. In this module, the normalization of relevant game data is completed through linear function transformation.(14)Y=X−XminXmax−Xmin.Table 1
Game real-time data format table.
Field nameSpecific descriptionClassificationX1Player PG position coordinateXContinuous typeY1Player PG position coordinateYContinuous typeX2Defensive PG player coordinate positionXContinuous typeY2Defensive PG player coordinate positionYContinuous typeOBDo you hold the ballBoolean typeD1Distance between own playerF and defenderContinuous typeD2Distance between own playerC and defenderContinuous typeXPlayer’s moving target coordinateXContinuous typeYPlayer’s moving target coordinateYContinuous typeIdReal time data numberContinuous typeTidStatistics noContinuous typeIn equation (14), Y is the normalized value and X is the initial value. The maximum value of X is Xmax, and the minimum value is Xmin.(15)DBk=1k∑i=1kmaxDWi+DWjDCij,i=1∼k,j≠1.In formula (15), k is the number of cluster centers. The average distance from all samples in the cluster i to the cluster center is expressed by DWi. The average distance from all samples in cluster j to the cluster center is expressed by DWj. The distance between i and j is expressed by DCij. DBk refers to the effectiveness index, which is a measure based on the distance from the sample cluster to different cluster centers. The optimal cluster number is found by taking the number of cluster centers corresponding to the minimum value [30].As shown in Figure6, players can carry out online basketball tactics training through the system. When basketball players choose to hold the ball, the neural network will judge the ball processing strategy by itself and pass and shoot according to the players’ choice. When the basketball player chooses not to hold the ball, the decision-making part of the neural network, which is responsible for moving, moves according to the player’s operation.Figure 6
Decision making flow chart of basketball players.According to Figure7, the basketball tactical basic cooperation teaching system based on the ANN consists of five modules: basketball tactical analysis module, tactical analysis effect evaluation module, online basketball tactical basic cooperation training module, online performance score evaluation module, and field operation scoring module. The trained basketball players first analyze and learn the basic cooperation of basketball tactics through the basketball game video and then consolidate and carry out the personal operation of basketball tactical basic cooperation using the online basketball game. Finally, the teacher scores the players who carry out the field basketball game according to the scoring module of the field operation.Figure 7
The framework of the basketball technology foundation teaching system based on the artificial neural network.


## 2.1. Design of the Video Learning Module for Basketball Tactics Foundation

Through the analysis of all kinds of events in the basketball game video, this paper carries out the teaching of the basic cooperation of basketball tactics. The basic cooperation video of basketball tactics belongs to the video of multiperson cooperation. Events such as goals and defense in the video are comprehensively expressed by the behaviors of several people. The task of tactical analysis and learning is complex and arduous [21, 22]. On this basis, the classification of basketball video events is proposed.The two-stage event classification method shown in Figure1 uses global and group movement patterns (GCMPs) to complete the event preclassification in the the EVENT-OCC video segment. First, basketball events are roughly divided into five categories: 3-point shot, free throw, 2-point shot, slam dunk, and steal. Then, the convolution neural network is used to extract the spatial features of GCMPs, and the layup and 2-point ball are classified in detail. Finally, the basketball events are divided into three points success/failure, free throw success/failure, other two points success/failure, layup success/failure, and slam success/failure [23]. It can be expressed as V5−event=3−point,free throw,layup,other2−point,dunk. The prediction vector of success and failure is VSF=success,failure. Any element in the prediction event is 0 if it is not 1.(1)Vensem=V5−event⊗VSF.Figure 1
Basketball video event classification framework based on domain knowledge and GCMPs.In formula (1), V5−event is the vector of 1×5; ⊗ is the Kronecker product operation; VSF is the vector of 1×2; after the Kronecker product operation, Vensem can be expressed as 1×10 vector.As shown in Figure2, after extracting the GCMP expression of basketball video players by optical flow graph, the spatial features of GCMPs are extracted by the convolution neural network. The convolutional neural network consists of five convolution layers and three fully connected layers. fc6 to fc8 are all fully connected layers.(2)Yi=Xi+2∗Di−KiSi+1.Figure 2
Convolutional neural network framework for learning spatial features of GCMPs.Equation (2) is the expression of the size relationship between the input and output of each layer, Xi is the size of the input feature map of the i_th layer, Yi is the corresponding size of the output feature map of the layer, Si is the step size of the convolution process, and Ki is the size of the convolution kernel of the i_th layer; Di Indicates the length of the side length extension. Generally, the default value is 0. In this paper, we use long short-term memory (LSTM) to mind the temporal features of GCMPs so as to complete the event analysis of consecutive frames. When the input of the LSTM unit at t time is xt and weight matrix w, w acts on the output of ht−1 of hidden layer at t−1 time and the corresponding input xt at t time, this effect will continue to be transferred to the output ht of hidden layer at the next time [24, 25]. That is to say, the processing of each frame of video should be carried out according to the time sequence:(3)h1=Fwx1,h0=Fwx1,0,h2=Fwx2,h1,⋮hT=FwxT,hT−1.In equation (3), T is the video length, Fw is the video frame, and x1,x2,…,xT is the spatial feature of GCMPs extracted by the convolutional neural network.(4)stn=∑i=1256hti∗win+bn.In equation (3), ht is the output of a hidden layer represented by a 256 dimensional feature vector, where t is the number of video frames, stn is the response value of the n_th neuron in the classification layer, and b is a constant.(5)ptn=expstn∑n=1Nexpstn,(6)G=∑t=1Tpt1,pt2,…,ptNT.In equations (5) and (6), N represents the number of categories and G is the prediction vector of the last video segment. The prediction score matrix of the t frame is represented by pt1,pt2,…,ptN. The prediction vector of the last video segment can be obtained by calculating the average score matrix of the T frame in the video segment. The category with the highest score can be considered as the event type of the video segment.As shown in Figure3, the spatial features of the corresponding video frames in the postevent video segment are extracted through the convolution neural network. The convolution neural network will output a prediction value for each frame in the video segment and obtain the state classification of the video segment by voting. The input variables of the basketball game video are extracted through the mapping of the convolution neural network. Finally, the event classification result of the video segment is the output.Figure 3
The prediction framework of success and failure.


## 2.2. Decision-Making Module Design of Sports Games

After the analyzing and learning basketball video, the basic training of online basketball tactics is carried out through the decision-making module of basketball game to improve the level of basic cooperation of basketball tactics. A decision system of the basketball game based on the BP neural network algorithm and cluster analysis is designed.Figure4 shows the basic flow of the game system in the basketball game module. The system is composed of an online decision-making stage and offline learning stage. The former is responsible for sending corresponding decision-making instructions to the NPC according to the specific operation behavior of players. The latter is mainly used for data processing to ensure the continuous evolutionary learning of neural network [26–28].Figure 4
The flow chart of the basketball game decision system.The BP neural network shown in Figure5 is composed of neurons, weights, activation functions, and so on. The input variable enters the BP neural network from the input neuron. After layer-by-layer mapping in the neural network structure and a series of adjustments such as weight and excitation function, it reaches the output layer to obtain the final output variable [29]. The input and output states of the ith neuron in the hidden layer are(7)neti=∑i=1Mwijxj+θ.Figure 5
Structure diagram of the three-layer BP neural network.In equation (7), neti refers to the input value of the i_th node in the hidden layer and the weight between the node and the j_th node in the input layer. The input value of the j_th node in the input layer and the threshold value of the i_th node in the hidden layer are represented by xj and θi, respectively. The number of output neurons was M.(8)yi=∅neti=∅∑i=1Mwijxj+θ.Equation (8) is the expression of the output value of the i_th node of the hidden layer; ∅x is the excitation function of the hidden layer.(9)netk=∑j=1qwkiyi+ak.Equation (9) is the input expression of the k node in the output layer. The input value of the k node in the output layer is represented by netk, and q is the number of neurons in the hidden layer. Then, the threshold value of the k node in the output layer is represented by ak.(10)ok=ψnetk.Equation (10) is the expression of the output value of the k node of the output layer. Compared with the traditional AI technology, the basketball game AI with the neural network has the advantages of fast processing speed, high stability, and strong learning ability.(11)fx=11+e−2x.Equation (11) is the excitation function; its range is (0, 1), and the input value changes greatly near 0, which can balance the behavior between linear and nonlinear and improve the nonlinear mapping ability of the neural network.(12)xk+1=xk−ηy′fxk.Formula (12) is the iterative process expression of the BP neural network. The vector composed of weights and thresholds of all neurons is represented by xk; η shows the learning rate of neural network. The objective function and its gradient are represented by fxk and y′fxk, respectively. To improve the convergence speed of BP algorithm, the momentum term is introduced into the BP algorithm.(13)ΔWt=ηδo+αΔWt−1.In equation (13), Wt and o represent the weight matrix and output vector, respectively; the momentum coefficient introduced is represented by α, and t is the adjustment time.Table1 is the format of the real-time data of the game. X1, Y1, …, and D2 are used as the input of the neural network, X and Y are used as output positions of mobile destination coordinates, 15 hidden neurons are set, and fx=1/1+e−2x is the hidden layer excitation function. The basketball game module based on the BP neural network is constructed. In this module, the normalization of relevant game data is completed through linear function transformation.(14)Y=X−XminXmax−Xmin.Table 1
Game real-time data format table.
Field nameSpecific descriptionClassificationX1Player PG position coordinateXContinuous typeY1Player PG position coordinateYContinuous typeX2Defensive PG player coordinate positionXContinuous typeY2Defensive PG player coordinate positionYContinuous typeOBDo you hold the ballBoolean typeD1Distance between own playerF and defenderContinuous typeD2Distance between own playerC and defenderContinuous typeXPlayer’s moving target coordinateXContinuous typeYPlayer’s moving target coordinateYContinuous typeIdReal time data numberContinuous typeTidStatistics noContinuous typeIn equation (14), Y is the normalized value and X is the initial value. The maximum value of X is Xmax, and the minimum value is Xmin.(15)DBk=1k∑i=1kmaxDWi+DWjDCij,i=1∼k,j≠1.In formula (15), k is the number of cluster centers. The average distance from all samples in the cluster i to the cluster center is expressed by DWi. The average distance from all samples in cluster j to the cluster center is expressed by DWj. The distance between i and j is expressed by DCij. DBk refers to the effectiveness index, which is a measure based on the distance from the sample cluster to different cluster centers. The optimal cluster number is found by taking the number of cluster centers corresponding to the minimum value [30].As shown in Figure6, players can carry out online basketball tactics training through the system. When basketball players choose to hold the ball, the neural network will judge the ball processing strategy by itself and pass and shoot according to the players’ choice. When the basketball player chooses not to hold the ball, the decision-making part of the neural network, which is responsible for moving, moves according to the player’s operation.Figure 6
Decision making flow chart of basketball players.According to Figure7, the basketball tactical basic cooperation teaching system based on the ANN consists of five modules: basketball tactical analysis module, tactical analysis effect evaluation module, online basketball tactical basic cooperation training module, online performance score evaluation module, and field operation scoring module. The trained basketball players first analyze and learn the basic cooperation of basketball tactics through the basketball game video and then consolidate and carry out the personal operation of basketball tactical basic cooperation using the online basketball game. Finally, the teacher scores the players who carry out the field basketball game according to the scoring module of the field operation.Figure 7
The framework of the basketball technology foundation teaching system based on the artificial neural network.


## 3. Research on the Application Effect of Basketball Tactics Basic Cooperation Teaching System Based on the ANN

### 3.1. Research on the Effectiveness of the Basketball Game Video Event Classification Module Setting

To verify the effectiveness of the research and design of basketball video event classification, video segments in the NCAA dataset are selected, and the fixed length of them is expanded to obtain NCAA + database. Two hundred fifty games are randomly selected as experimental data, 200 of which are randomly selected as training set data and 50 as test set data; 2483 semantic events are randomly selected from the test set.As shown in Figure8, after the introduction of GCMPs, the overall accuracy of the basketball game video event classification results increased from 45.00% without the introduction of GCMPs to 67.48%. The classification accuracy of free throw events increased by 72.13%, layup and other 2-point events increased by 12.76%, dunk events increased by 11.17%, and snatch events increased by 17.08%. The overall basketball video event classification accuracy increased by 22.48%.Figure 8
Comparison of the results of event classification between the event OCC video segment and GCMPs.As shown in Figure9, there are 580 3-point events, 160 free throws, 428 layups, 671 other 2-point events, 30 dunks, and 614 steals in the video segments of 2483 semantic events randomly selected from the test set. The results show that the average accuracy of the basketball game event classification is 62.35%, and the classification accuracy of free throw and snatch events is 94.38% and 95.28%, respectively. The above results show that the basketball tactics foundation proposed in this study, combined with the learning video module, can help users have an intuitive understanding of basketball events at the fastest speed and track and analyze the tactics of professional basketball players in real time through the classification of different types of basketball game video events. Finally, we can deepen our mastery of basketball tactics.Figure 9
Classification results of six events in the basketball match.


### 3.2. Effectiveness of the Basketball Game Module Setting

To verify the actual effect of the BP neural network algorithm in basketball games, the experimental platform MATLAB is selected, the number of training samples is 1000, the number of test samples is 2268, the minimum error value is 0.001, the total number of training is 5000, and the corresponding memory consumption and recognition rate under different training algorithms are observed.As shown in Figure10, the weight adjustment times of the BP neural network based on the driving quantity gradient descent method is only 921 times, the recognition rate reaches 75%, the memory consumption is small, the error surface gradient is 0.0022, and the mean square error is 0.00176. The weight of the BP neural network is adjusted 5000 times, the recognition rate is 57%, the memory consumption is small, the gradient of error surface is 0.0504, and the mean square error is 0.00431. Using the Powell Beale conjugate gradient method, the BP neural network weights are adjusted 1054 times, the recognition rate reaches 79%, the memory consumption is large, the error surface gradient is 0.0002, and the mean square error is 0.00100. From the analysis of the overall application effect of the neural network, the BP neural network based on the driving quantity gradient descent method cannot only run fast but also occupy a small amount of memory, which will not lead to the decline of image memory allocation caused by excessive memory occupied by the AI part.Figure 10
Training effect of various training algorithms. (a) Weight adjustment times. (b) Mean square error value. (c) Error surface gradient. (d) Recognition rate. I, II, III, IV, and V refer to gradient descent method, adaptive learning rate gradient descent method, driving amount gradient descent method, Powell Beale conjugate gradient method, and quasi-Newton method, respectively.
(a)(b)(c)(d)As shown in Figure11, the pixels of the basketball half court and player size are 1000 × 500 and 20 × 20, respectively. Blue and gray are the attackers. The player controls the gray role. Green is the defender. The hollow circle indicates that the player is controlling the basketball. The goal of the defensive AI is to keep the distance between the attacker and the basketball box and prevent the attacker from attacking. The movement strategy of the two blue characters in the offensive side is to keep a certain distance from PG and try to get rid of the defensive players by moving. According to the actual situation and environmental factors of the players in the game scene, the players make decision-making reasoning and finally make tactical decisions such as shooting, passing, and snatching, gradually grasping the importance of basic cooperation of basketball tactics in the game and constantly improving their ability of the basic cooperation of basketball tactics. The basic basketball tactics based on the ANN plays an important role in improving the attractiveness of basic basketball teaching and stimulating learners’ interest in learning.Figure 11
Basketball game screenshot.


### 3.3. Analysis of the Practical Application Effect of the Teaching System

To verify the actual teaching effect of the basketball tactics basic cooperation teaching system proposed in this study, the students (experimental group, 50 students) who accepted the basketball tactics basic cooperation teaching system to learn basketball tactics knowledge and the students (control group, 50 students) who received the conventional basketball education mode were selected in the experiment tactical basis with connotation characteristics (time, space, cooperation, regularity, adaptability, effectiveness, technical action) and other two aspects were scored, and throught-test compared the two groups of students’ score difference, P<0.05, the difference was statistically significant.As shown in Figure12, in terms of the timing, regularity, effectiveness, strain, and technical action of covering cooperation, the scores of the experimental group receiving the education of the basketball tactics basic cooperation teaching system based on ANN were higher than those of the control group receiving conventional outdoor basketball education, but the difference was not statistically significant P>0.05. The scores of the experimental group were higher than those of the control group in the aspects of space and cooperation, and the difference was statistically significant P<0.05. From the analysis of the overall score of cover cooperation, it can be seen that the overall average score of the experimental group was (27.99 1 ± 11), which was significantly higher than that of the control group P<0.05. The above results show that the use of ANN-based basketball tactics with basic teaching system education for basketball tactics with basic education can achieve the teaching effect of the traditional teaching mode and students have a more thorough understanding of the basic basketball tactics with the cover and their own ability to cover with a greater extent.Figure 12
The students in two groups scored in cooperation. (a) Screen coordinate score. (b) Difference of the screen cooperation score.
(a)(b)As shown in Figure13, in terms of timing, regularity, effectiveness, adaptability, and technical action of exchange defense cooperation, the scores of the experimental group receiving the education of the basketball tactics basic cooperation teaching system based on ANN were higher than those of the control group, but the difference was not statistically significant P>0.05. In the aspect of space and cooperation of exchange defense, the score of the experimental group was significantly higher than that of the control group, and the differences were statistically significant P<0.05. From the overall score of exchange defense cooperation, the score of exchange defense cooperation of the students who received the education of basic basketball tactics with the teaching system was (28.47 4.67) ± 53), which was significantly higher than that of the control group (24.121 ± 03), and the difference was statistically significant P<0.05. The above results show that the application of the teaching system based on the ANN in the teaching process of basketball tactics basic cooperation can obviously improve the students’ exchange defense cooperation ability and cover cooperation ability and improve the students’ basketball tactics basic cooperation ability in an all-round way.Figure 13
Two groups of students exchange defensive cooperation score. (a) Exchange defense with single score. (b) Exchange defense with individual score difference.
(a)(b)


## 3.1. Research on the Effectiveness of the Basketball Game Video Event Classification Module Setting

To verify the effectiveness of the research and design of basketball video event classification, video segments in the NCAA dataset are selected, and the fixed length of them is expanded to obtain NCAA + database. Two hundred fifty games are randomly selected as experimental data, 200 of which are randomly selected as training set data and 50 as test set data; 2483 semantic events are randomly selected from the test set.As shown in Figure8, after the introduction of GCMPs, the overall accuracy of the basketball game video event classification results increased from 45.00% without the introduction of GCMPs to 67.48%. The classification accuracy of free throw events increased by 72.13%, layup and other 2-point events increased by 12.76%, dunk events increased by 11.17%, and snatch events increased by 17.08%. The overall basketball video event classification accuracy increased by 22.48%.Figure 8
Comparison of the results of event classification between the event OCC video segment and GCMPs.As shown in Figure9, there are 580 3-point events, 160 free throws, 428 layups, 671 other 2-point events, 30 dunks, and 614 steals in the video segments of 2483 semantic events randomly selected from the test set. The results show that the average accuracy of the basketball game event classification is 62.35%, and the classification accuracy of free throw and snatch events is 94.38% and 95.28%, respectively. The above results show that the basketball tactics foundation proposed in this study, combined with the learning video module, can help users have an intuitive understanding of basketball events at the fastest speed and track and analyze the tactics of professional basketball players in real time through the classification of different types of basketball game video events. Finally, we can deepen our mastery of basketball tactics.Figure 9
Classification results of six events in the basketball match.


## 3.2. Effectiveness of the Basketball Game Module Setting

To verify the actual effect of the BP neural network algorithm in basketball games, the experimental platform MATLAB is selected, the number of training samples is 1000, the number of test samples is 2268, the minimum error value is 0.001, the total number of training is 5000, and the corresponding memory consumption and recognition rate under different training algorithms are observed.As shown in Figure10, the weight adjustment times of the BP neural network based on the driving quantity gradient descent method is only 921 times, the recognition rate reaches 75%, the memory consumption is small, the error surface gradient is 0.0022, and the mean square error is 0.00176. The weight of the BP neural network is adjusted 5000 times, the recognition rate is 57%, the memory consumption is small, the gradient of error surface is 0.0504, and the mean square error is 0.00431. Using the Powell Beale conjugate gradient method, the BP neural network weights are adjusted 1054 times, the recognition rate reaches 79%, the memory consumption is large, the error surface gradient is 0.0002, and the mean square error is 0.00100. From the analysis of the overall application effect of the neural network, the BP neural network based on the driving quantity gradient descent method cannot only run fast but also occupy a small amount of memory, which will not lead to the decline of image memory allocation caused by excessive memory occupied by the AI part.Figure 10
Training effect of various training algorithms. (a) Weight adjustment times. (b) Mean square error value. (c) Error surface gradient. (d) Recognition rate. I, II, III, IV, and V refer to gradient descent method, adaptive learning rate gradient descent method, driving amount gradient descent method, Powell Beale conjugate gradient method, and quasi-Newton method, respectively.
(a)(b)(c)(d)As shown in Figure11, the pixels of the basketball half court and player size are 1000 × 500 and 20 × 20, respectively. Blue and gray are the attackers. The player controls the gray role. Green is the defender. The hollow circle indicates that the player is controlling the basketball. The goal of the defensive AI is to keep the distance between the attacker and the basketball box and prevent the attacker from attacking. The movement strategy of the two blue characters in the offensive side is to keep a certain distance from PG and try to get rid of the defensive players by moving. According to the actual situation and environmental factors of the players in the game scene, the players make decision-making reasoning and finally make tactical decisions such as shooting, passing, and snatching, gradually grasping the importance of basic cooperation of basketball tactics in the game and constantly improving their ability of the basic cooperation of basketball tactics. The basic basketball tactics based on the ANN plays an important role in improving the attractiveness of basic basketball teaching and stimulating learners’ interest in learning.Figure 11
Basketball game screenshot.


## 3.3. Analysis of the Practical Application Effect of the Teaching System

To verify the actual teaching effect of the basketball tactics basic cooperation teaching system proposed in this study, the students (experimental group, 50 students) who accepted the basketball tactics basic cooperation teaching system to learn basketball tactics knowledge and the students (control group, 50 students) who received the conventional basketball education mode were selected in the experiment tactical basis with connotation characteristics (time, space, cooperation, regularity, adaptability, effectiveness, technical action) and other two aspects were scored, and throught-test compared the two groups of students’ score difference, P<0.05, the difference was statistically significant.As shown in Figure12, in terms of the timing, regularity, effectiveness, strain, and technical action of covering cooperation, the scores of the experimental group receiving the education of the basketball tactics basic cooperation teaching system based on ANN were higher than those of the control group receiving conventional outdoor basketball education, but the difference was not statistically significant P>0.05. The scores of the experimental group were higher than those of the control group in the aspects of space and cooperation, and the difference was statistically significant P<0.05. From the analysis of the overall score of cover cooperation, it can be seen that the overall average score of the experimental group was (27.99 1 ± 11), which was significantly higher than that of the control group P<0.05. The above results show that the use of ANN-based basketball tactics with basic teaching system education for basketball tactics with basic education can achieve the teaching effect of the traditional teaching mode and students have a more thorough understanding of the basic basketball tactics with the cover and their own ability to cover with a greater extent.Figure 12
The students in two groups scored in cooperation. (a) Screen coordinate score. (b) Difference of the screen cooperation score.
(a)(b)As shown in Figure13, in terms of timing, regularity, effectiveness, adaptability, and technical action of exchange defense cooperation, the scores of the experimental group receiving the education of the basketball tactics basic cooperation teaching system based on ANN were higher than those of the control group, but the difference was not statistically significant P>0.05. In the aspect of space and cooperation of exchange defense, the score of the experimental group was significantly higher than that of the control group, and the differences were statistically significant P<0.05. From the overall score of exchange defense cooperation, the score of exchange defense cooperation of the students who received the education of basic basketball tactics with the teaching system was (28.47 4.67) ± 53), which was significantly higher than that of the control group (24.121 ± 03), and the difference was statistically significant P<0.05. The above results show that the application of the teaching system based on the ANN in the teaching process of basketball tactics basic cooperation can obviously improve the students’ exchange defense cooperation ability and cover cooperation ability and improve the students’ basketball tactics basic cooperation ability in an all-round way.Figure 13
Two groups of students exchange defensive cooperation score. (a) Exchange defense with single score. (b) Exchange defense with individual score difference.
(a)(b)


## 4. Conclusion

Basketball tactics teaching is a difficult point in basketball teaching. Traditional basketball teaching methods make it difficult to achieve the expected teaching results in basketball tactics teaching. Therefore, a basketball tactics basic cooperation teaching system based on ANN is studied and designed. The system mainly consists of the professional basketball game video tactics learning module and basketball game module based on the BP neural network. The basketball tactical basis is composed of the scoring module. After the introduction of GCMPs, the classification effect of the convolutional neural network has been significantly improved, with an increase of 22.48% of the classification accuracy. The overall classification accuracy of GCMPs classification method based on convolutional neural network has been improved to 62.35%, of which the classification accuracy of steals and free throws has reached 95.28% and 94.38%, respectively. This helps students improve the clarity of tactical cognition in basketball video events. In the basketball game module, the BP neural network of the driving quantity gradient descent method is used. The recognition rate is 75%, the memory consumption is small, and the number of network weight adjustments is only 921. It can run quickly, avoid the proportion of image memory allocation, and ensure the image quality of the game. The overall average score of students receiving the basic basketball tactics cooperation teaching system education is (27.99 ± 2.11) points, and the score of exchange defense cooperation is (28.47 ± 1.53). The scores of the two abilities are higher than those of students receiving conventional basketball education. The game training module can effectively improve students’ basic tactics cooperation ability. Data mining and analysis of past basketball game videos is an important way to improve learners’ basketball tactics. The follow-up research will focus on data mining on basketball game videos and real-time tracking of tactics.



---

*Source: 9497388-2021-09-23.xml*