Korea Digital Contents Society
[ Article ]
Journal of Digital Contents Society - Vol. 25, No. 3, pp.695-706
ISSN: 1598-2009 (Print) 2287-738X (Online)
Print publication date 31 Mar 2024
Received 23 Jan 2024 Revised 16 Feb 2024 Accepted 15 Mar 2024
DOI: https://doi.org/10.9728/dcs.2024.25.3.695

Design and Optimization of Basketball Hit Prediction Model Based on Convolutional Neural Network and Sensor Data

Man Zhang1 ; Seung-Soon Shin2, *
1Ph.D.’s Course, Dept. of Computer and Media Engineering, Tongmyong University, Busan 48520, Korea
2Professor, Dept. of Information Security, Tongmyong University, Busan 48520, Korea
CNN 및 센서 데이터 기반 농구 적중 예측 시스템의 설계 및 최적화
장만1 ; 신승수2, *
1동명대학교 컴퓨터미디어공학과 박사과정
2동명대학교 정보보호학과 교수

Correspondence to: *Seung-Soo Shin E-mail: shinsss@tu.ac.kr

Copyright ⓒ 2024 The Digital Contents Society
This is an Open Access article distributed under the terms of the Creative Commons Attribution Non-CommercialLicense(http://creativecommons.org/licenses/by-nc/3.0/) which permits unrestricted non-commercial use, distribution, and reproduction in any medium, provided the original work is properly cited.

Abstract

Basketball shooting percentage is an important index used to measure a player’s technical skill. This paper presents a basketball shot prediction model based on a convolutional neural network (CNN) and sensor data, to improve the efficiency and accuracy of basketball shot training. First, three sensors were used to collect player motion data during the shooting process, and the CNN was used to analyze and learn these data. The proposed model achieved 98.5% shooting prediction accuracy, which is higher 13.5% than the existing paper method. Recently, the rapid development of artificial intelligence and sensor technology has led to the emergence of deep learning-based shooting hit prediction models, providing new scientific tools for basketball training.

초록

농구 슛 성공률은 선수의 기술 수준을 측정하는 중요한 지표 중에 하나이다. 기존의 슛팅 훈련 방식은 주로 코치의 경험과 선수의 개인 연습에 의존하기 때문에 객관성과 과학성이 부족하다. 본 논문의 목적은 합성곱 신경망과 센서 데이터를 기반으로 한 농구 슛 예측 모델을 제안하여 농구 슛 훈련의 효율성과 정확도를 향상시키는 것이다. 본 연구에서는 세 가지 센서를 사용하여 슛 과정에서 선수의 동작 데이터를 수집하고, 이러한 데이터를 분석 및 학습하기 위해 컨볼루션 신경망을 사용하는 농구 슛 예측 모델을 제안한다. 제안한 모델은 최대 98.5%의 슛 예측 정확도를 달성을 하였고, 기존 모델 보다 13.5% 높다. 최근 인공지능과 센서 기술의 급속한 발전으로 딥러닝을 기반으로 한 슛팅 적중 예측 모델이 점차 등장하고 있으며, 이는 농구 훈련에 새로운 과학적 수단을 제공할 것으로 기대된다.

Keywords:

Convolutional Neural Network, Angle Sensor, Magnetic Sensor, Gyroscope, Object Prediction

키워드:

컨볼루션 신경망, 각도 센서, 자기 센서, 자이로스코프, 물체 예측

Ⅰ. Introduction

Achieving professional-level basketball training has been a challenge in many countries. Studies have shown that healthy adults can only maintain high concentration for only about 10∼15 minutes, and that one-on-one personalized basketball training requires a lot of time and money[1],[2].

Recent research has shown that in the field of sports training, the use of advanced technological tools to improve the performance of athletes has become a hot topic of research. In the field of basketball, improving the shooting percentage is crucial for the team to win or lose. Some recent related papers include "Deep Learning-Based Basketball Player Positioning Recognition System Design" and "Motion Sensor-Based Basketball Motion Recognition Technology Research", which provide useful references for the application of technology and performance optimization in basketball training.

We proposes a basketball shot prediction model by using sensor and convolutional neural network technology. First, we use the angle sensor, magnetic sensor, gyroscope, then use convolutional neural networks to train models to predict whether a basketball is hit or miss. The method can adjust the shooting action according to the predicted result, then improve the basketball's hit percentage. This method can provide basketball players with more effective training guidance, help them better get the shooting skills and improve the percentage.

What we would like to do is as follows Based on the analysis of the latest papers, we plan to design a basketball hit prediction system based on CNN and sensors to improve the efficiency and effectiveness of basketball training. By collecting sports data and combining it with deep learning models for training, our goal is to propose a basketball hit prediction scheme with higher accuracy and more practicality to provide athletes with more accurate training guidance.

We will collect and analyze large amounts of basketball movement and performance data for personalized guidance and model training. We will also explore the application of sensor technology to monitor and capture dynamic data of players[3],[4].

The work presents innovative methods to enhance basketball particularly for individuals who are new to shooting skills, especially for individuals new to the sport. By combining convolutional neural networks and sensor technology, these approaches can also be applied to other sports, such as soccer or other sports.


Ⅱ. Related Works

2-1 Basketball Hit Prediction

Basketball hit prediction refers to the use of machine learning or deep learning techniques to predict the outcome of a basketball player's shooting maneuver, such as predicting whether the ball will go in or whether the shot will be successful[5]-[7].

Harmonet et al.[8] use a convolutional neural network combined with a feed forward network on basketball shot prediction. Wright et al.[9] used a factorization machine model to make shot predictions based on 2015∼2016 National Basketball Association data. Oughali et al.[10] proposes a comparative study using machine learning algorithms to predict the shooting success by basketball players in the NBA (national basketball association).

2-2 Convolutinonal Neural Network

Convolutional Neural Networks[11] is a class of feedforward neural networks with convolutional computation and deep structure and is a representative algorithm of deep learning. The convolutional neural network structure includes input layer, convolutional layer, pooling layer and fully connected layer. Among them, the convolutional layer is the core part of the convolutional neural network, and features are extracted from the input data by convolutional operation. The pooling layer is used to reduce the dimensionality of the data, reducing computation and overfitting problems. The fully connected layer is used to combine the features of the previous layers to output the final classification or regression result.

2-3 Sensor

1) Angle Sensor

Angle sensor[12]-[14] is a sensor that measure the angle of rotation or orientation of an object. They are used to detect changes in the angle of an object relative to a reference point, axis or plane and convert these changes into a corresponding electrical or digital signal. Angle sensor consist of sensing element, measurement circuit, intelligence component and interface component. The sensing element is the core component of the angle sensor and is used to sense and convert the angular movement of an object into an electrical signal. The measurement circuit is the circuit responsible for processing and converting the signals generated by the sensitive element. It is capable of amplifying, filtering, digitizing, or analog converting the signals received from the sensitive element to accurately measure and calculate the angle. Intelligence component is usually built-in processors or chips that are used to analyze, process, or store sensor data. These elements are capable of processing and interpreting the data collected by the sensor to provide more advanced functions such as calibration, alignment, or data decoding. Interface component is used to communicate with other devices or systems. The integration of these components enables angle sensor to measure the angular motion of an object and convert this information into corresponding electrical or digital signals to meet the needs of different fields and applications accurately and reliably.

2) Magnetic Sensor

Magnetic sensor[15]-[17] is a device used to measure the strength and direction of the surrounding magnetic field, it converts magnetic field signals into electrical signals with a high degree of accuracy and precision. It measures magnetic field direction, strength and changes.

3) Gyroscope

Gyroscope[18]-[21] is a device based on the conservation of angular momentum that is used to sense and maintain direction. A gyroscope consists primarily of a rotor that is centered on its axis and can be rotated. Due to the angular momentum of the rotor, gyroscope tends to resist a change in direction once they begin to rotate.

The primary use of gyroscopes is in the inertial navigation system, where they play a crucial role in determining the attitude and position of carriers, including airplanes, ships, missiles, and more. Gyroscopes are also critical in attitude control systems, enabling the measurement and regulation of carrier orientation to maintain stability. Moreover, they are crucial components in a variety of toys, such as gyros and gyro dashboards.

2-4 Kalman Filter

The Kalman filter[22] is a set of mathematical equations that provides an efficient computational (recursive) solution of the least-squares method. The filter is very powerful in several aspects: it supports estimations of past, present, and even future states, and it can do so even when the precise nature of the modeled system is unknown.

The Kalman filter formula is as follows:

xk=A×xk-1+B×uk(1) 
Pk=A×Pk-1×AT+Q(2) 
zk=C×xk+vk(3) 

Where, k is the end time, k-1 is the start time, xk is the state estimation of the end time, Pk is the state covariance matrix of the end time, zk is the observed value of the end time, A is the system matrix, B is the control matrix, C is the observation matrix, Q is the system matrix. vk is the observation noise.

2-5 Human Activity Recognition (HAR)

Motion recognition technology, on the other hand, refers to the identification of specific sports movements by analyzing the trajectory or posture of the athlete. This technology also plays an important role in sports training and can be used to assess the accuracy of athletes' movements and monitor training effects. It has been shown that movement recognition technology can help coaches and athletes better master the technical elements of sports and improve the relevance and effectiveness of training.

For the advantages and disadvantages of the prediction model, we will describe its accuracy, real-time and scalability in detail. Accuracy is one of the most important indicators of the performance of a prediction model. A good prediction model should have high accuracy and be able to accurately predict basketball hits. However, some traditional prediction models may suffer from insufficient accuracy, limited by factors such as feature representation capability or model complexity[24].


Ⅲ. Basketball Hit Prediction Model

3-1 Design Philosophies

The basic design ideas of this model mainly include three parts, as shown in Fig. 1. It includes data collection, sensor’s data calculation and training CNN model.

Fig. 1.

Overview of the proposed model

The system uses three sensors to collect motion data during the player's shooting:

  • ⦁Angle sensor: used to measure the angle of the player's shooting shot.
  • ⦁Magnetic Sensor: Used to measure the force of the player's shot.
  • ⦁Gyroscope: Measures the rotation of the player's shot. Sensor data is collected at a rate of 100 times per second and stored in a local database.
1) Data Processing

The collected raw data needs to be pre-processed, including:

  • ⦁Data cleaning: removing noise and anomalous data.
  • ⦁Data normalization: mapping the data to a uniform scale.
  • ⦁Feature extraction: extract features related to shooting hits.
2) Model Training

The basketball shot prediction model is trained using a Convolutional Neural Network, a machine learning model that specializes in image and time series data.

The model training process is as follows:

  • ⦁Divide the preprocessed data into a training set and a test set.
  • ⦁Use the training set to train the CNN model.
  • ⦁Evaluate the model performance using the test set.
3) Model Prediction

The trained model can be used to predict whether the new shot data will hit or not. The prediction process is as follows:

  • ⦁Input the new shot data into the model.
  • ⦁The model outputs the prediction, i.e., the probability of the shot hitting.
4) Apply to Training

The prediction results can be applied to the basketball training process, for example:

  • ⦁Real-time feedback: Provide players with real-time feedback on shot prediction to help them adjust their shooting posture and movement.
  • ⦁Training plan development: Based on the player's shooting prediction results, personalized training plans are developed to improve training efficiency.
5) System Advantage
  • ⦁Objectivity: The system analyzes data to make predictions without being influenced by subjective factors.
  • ⦁Scientific: The system utilizes CNN and other machine learning technologies to learn the key factors of shooting from data.
  • ⦁Efficiency: The system can automatically analyze data and provide real-time feedback to help players quickly improve their shooting percentage.

3-2 Function Description

Using the sports sensor to collect the data during the basketball training. It includes the three sports data, angle sensor, magnetic sensor and gyroscope. The basketball shot time as start time, the basketball hit time as end time. Then based on the start time and the end time. The sensor data from the start time to the end time is collected as a data in the model training. Wherein, the data includes angle sensor data, magnetic sensor data, and gyroscope data.

The angle vector, angular velocity vector, control input matrix, state transition matrix, measure matrix of start time, measure matrix of end time, initial state vector, initial covariance matrix and covariance matrix at each timestamp (from start time to end time) are computed using the proposed Kalman filter based method. The results of the nine matrices over each timestamp were then using CNN to train basketball hit prediction based on sensor model.

3-3 System Design

1) Sensor Data Collection

The sensors were calibrated, so the raw data output from the basketball player's hand-worn sensors was used directly in the collection section. In the following we will proceed to the detailed.

• Angle Sensor

Angle sensor is typically used to measure the angle of rotation of an object relative to some coordinate system. Its output is also provided in the form of three axes(x, y and z), representing the angle of rotation of the object around each of the three axes of the coordinate system.

x-axis usually represents the angle of rotation around the sensor's x-axis. This axis is usually aligned with the long axis of the object(e.g., the front-to-back orientation of a vehicle).

y-axis represents the angle of rotation around the y-axis of the sensor. This axis is usually aligned with the horizontal axis of an object(e.g., the left/right direction of a vehicle).

z-axis represents the angle of rotation around the sensor's z-axis. This axis is usually aligned with the vertical axis of an object(e.g., the up and down directions of a vehicle).

• Gyroscope

Gyroscope is typically used to measure the rotational velocity of an object, and their output is also provided in the form of three axes(x, y and z) that represent the rotational velocity of the object around each of the three coordinate axes.

x-axis represents the angular velocity of an object rotating around the sensor's x-axis. Positive values indicate clockwise rotation and negative values indicate counterclockwise rotation.

y-axis represents the angular velocity of an object rotating around the y-axis of the sensor. Positive values indicate clockwise rotation, negative values indicate counterclockwise rotation.

z-axis represents the angular velocity of an object rotating around the z-axis of the sensor. Positive values indicate clockwise rotation, negative values indicate counterclockwise rotation.

• Magnetic Sensor

Magnetic sensor is typically used to detect the strength and direction of the surrounding magnetic field. Their output typically consists of magnetic field strength values in three axes(x, y and z), representing the component of the magnetic field strength in each axis at the location of the object.

x-axis represents the strength of the magnetic field in the x-axis direction of the magnetic sensor. Positive values indicate that the magnetic field is oriented in the positive x-axis direction, while negative values indicate that the magnetic field is oriented in the negative x-axis direction.

y-axis represents the magnetic field strength in the y-axis direction of the magnetic sensor.

Positive values indicate that the magnetic field is oriented in the positive direction of the y-axis, while negative values indicate that the magnetic field is oriented in the negative direction of the y-axis.

z-axis represents the magnetic strength in the z-axis direction of the magnetic sensor. Positive values indicate that the magnetic field is oriented in the positive direction of the z-axis, while negative values indicate that the magnetic field is oriented in the negative direction of the z-axis.

2) Sensor Data Calculation

This is because our data timestamps are highly aligned with the visually labeled portion of the data at the time of data collection, and because the sensor manufacturer has built-in denoising algorithms so that the output is very smooth data that can be used directly.

We propose to use a Karman filter-based method to calculate the angle vector, angular velocity vector, control input matrix, state transition matrix, measure matrix of start time, measure matrix of end time, initial state vector, initial covariance matrix and covariance matrix.

• Angle Vector

Angle vector is output value of the angle sensor. Angle vector is used to describe the rotational state of an object relative to some reference coordinate system. Typically, the angle of rotation around three axes (Yaw, Pitch, Roll) can be chosen to represent the angle.

The angular vector θ is represented as follows:

θ=θYawθPitchθRoll(4) 

Where, θYaw denotes the angle of rotation around the z-axis, θPitch denotes the angle of rotation around the y-axis, θRoll denotes the angle of rotation around the x-axis.

• Angular Velocity

Angular velocity vector is output value of the gyroscope. Angular velocity vector is used to describe the speed of rotation of an object around three axes. In our system, it comes directly from the output of the gyroscope. The angular velocity vector is expressed as follows:

ω=ωYawωPitchωRoll(5) 

Where, ωYaw denotes the rotation speed around the z-axis, ωPitch denotes the rotation speed around the y-axis, ωRoll denotes the rotation speed around x-axis.

• Control Input Matrix

The control input matrix Bk is typically used to incorporate external control inputs(e.g., gyroscope measurements) into the calculation. In this system, we assume that the gyroscope output is used directly to update the angular velocity.

Bk=100010001000000000(6) 

• State Transition Matrix

In the prediction step of the Kalman filter, we use the state transfer matrix Fk and the control input matrix bk to update this state vector, the formular is as follow:

xk=Fkxk-1+BkUk+ωk(7) 

Where, k is the end time, k-1 is the start time, xk is the state vector at end time k, including Yaw, Pitch and Roll and their angular velocities. xk-1 is the state vector at start time k-1, including Yaw, Pitch and Roll and their angular velocities. Fk is the state transfer matrix that describes how the state vector evolves from start time k-1 to end time k. Uk is the control input vector, which can include external control inputs, such as measurements from gyroscope. ωk is the process noise, which represents the unmodeled uncertainty or random perturbations in the system model.

The state vector is a combination of the angle vector and the angular velocity vector. Therefore, the whole state vector x is expressed as:

x=θYowθPitchθRollωYowωPitchωRoll(8) 

Where, θYaw denotes the angle of rotation around the z-axis, θPitch denotes the angle of rotation around the y-axis, θRoll denotes the angle of rotation around the x-axis, ωYaw denotes the rotation speed around the z-axis, ωPitchdenotes the rotation speed around the y-axis, ωRoll denotes the rotation speed around x-axis.

According to the data we obtained from the angle sensor and gyroscope, each segment of data includes a state vector for the start time k-1, the formula is as follow:

xk-1=θYawk-1θPitchk-1θRollk-1ωYawk-1ωPitchk-1ωRollk-1(9) 

Where, θYawk-1 denotes the angle of rotation around the z-axis at the start time k-1, θPitchk-1 denotes the angle of rotation around the y-axis at the start time k-1, θRollk-1 denotes the angle of rotation around the x-axis at the start time k-1, ωYawk-1 denotes the rotation speed around the z-axis at the start time k-1, ωPitchk-1 denotes the rotation speed around the y-axis at the start time k-1, ωRollk-1 denotes the rotation speed around the x-axis at the start time k-1.

State vector for the end time k, the formular is as follow formular:

xk=θYawkθPitchkθRollkωYawkωPitchkωRollk(10) 

Where, θYawk denotes the angle of rotation around the z-axis at the start time k, θPitchk denotes the angle of rotation around the y-axis at the start time k, θRollk denotes the angle of rotation around the x-axis at the start time k, ωYawk denotes the rotation speed around the z-axis at the start time k, ωPitchk denotes the rotation speed around the y-axis at the start time k, ωRollk denotes the rotation speed around the x-axis at the start time k.

The magnetic orientation vector is obtained from the magnetic sensor data and is represented as follows:

B=BxByBz(11) 

Where, Bx represents the magnetic field strength on the x-axis measured by the magnetic sensor, By represents the magnetic field strength on the y-axis measured by the magnetic sensor, Bz represents the magnetic field strength on the z-axis measured by the magnetic sensor.

The state transition matrix Fk is calculated according to the following formular:

Fk=xk-BkUk-ωkxk-1(12) 

• Measurement Matrix of Start Time

Measurement vector computation is another key step in Kalman filtering that describes how state vector is mapped to measurement space. Measurement vectors typically involve mapping angles in the state vector to actual measurements, such as those of a magnetic sensor.

The formula for the measurement vector of end time k is as follows:

zk-1=Hk-1xk-1+vk-1(13) 

Where, zk-1 is the measurement vector for end time k-1, including the measurements from the magnetic sensor. Hk-1 is the measurement matrix of end time k-1, which describes how the state vector is mapped to the measurement space. vk-1 is the measurement noise, representing the uncertainty or random error in the measurement.

The measurement matrix of start time k-1(Hk-1) is calculated according to the following formula:

Hk-1=zk-1-vk-1xk-1(14) 

• Measurement Matrix of End Time

The formula for the measurement vector of end time k is as follows:

zk=Hkxk+vk(15) 

Where, zk is the measurement vector for end time k, including the measurements from the magnetic sensor.

Hk is the measurement matrix of end time, which describes how the state vector is mapped to the measurement space. vk is the measurement noise, representing the uncertainty or random error in the measurement.

The measurement matrix of end time k(Hk) is calculated according to the following formula:

Hk=zk-vkxk(16) 

• Initial State Vector

The initial state usually consists of the initial angle and angular velocity, it means the state at the start time k-1, and the initial state vector x0 formula is as follows:

x0=xk-1=θYawk-1θPitchk-1θRollk-1ωYawk-1ωPitchk-1ωRollk-1(17) 

Where, θYawk-1 denotes the angle of rotation around the z-axis at the start time k-1, θPitchk-1 denotes the angle of rotation around the y-axis at the start time k-1, θRollk-1 denotes the angle of rotation around the x-axis at the start time k-1, ωYawk-1 denotes the rotation speed around the z-axis at the start time k-1, ωPitchk-1 denotes the rotation speed around the y-axis at the start time k-1, ωRollk-1 denotes the rotation speed around the x-axis at the start time k-1.

• Initial Covariance Matrix

The initial covariance matrix describes the uncertainty of the initial state (start time k-1). Elements on the diagonal represent the variance of the corresponding state variable, and elements on the off-diagonal represent the covariance between the two state variables. The covariance matrix is usually initialized to a larger value to indicate higher uncertainty in the initial estimate.

The formula of the initial covariance matrix P0 is as follow:

P0=Pk-1=σ2θYaw 000000σ2θPitch 000000σ2θRoll 000000σ2ωYaw 000000σ2ωPitch 000000σ2ωRoll (18) 

• Covariance Matrix

The ending time k covariance formula Pk is as follows:

Pk=FkP0FkT+Qk(19) 

Where, Pk is the covariance matrix of end time k, Fk is the state transition matrix representing the dynamics of the system from start time k-1 to end time k, P0 is the initial covariance matrix, Qk is the process noise covariance matrix, representing the uncertainty or variance in the system's dynamics.

3) Basketball Hit Prediction based on Sensor Model

The process of the basketball hit prediction based on sensor model as follow.

• Data Preparation

Organize the angle vector, angular velocity vector, control input matrix, state transition matrix, measure matrix of start time, measure matrix of end time, the initial state vector, initial covariance matrix and covariance matrix into tensor form and make sure that they have the same size or shape.

For each of the 9 data (vectors and matrices) for each timestamp (start time to end time), add the corresponding label indicating whether the basketball shot was hit or not. In this paper, 0 means basketball hit miss, 1 means basketball hit make.

• Build CNN Model

CNN model includes convolutional layer, pooling layer, flatten layer and fully connected layer. Feature extraction is performed on 9 data (matrices and vectors) within a timestamp by means of a convolutional layer. From the convolutional layer can get the feature map. Maximum pooling operation using pooling layer reduces the size of the feature map and preserves important information.

The Flatten layer is used to flatten multidimensional data into one dimension for passing to the fully connected layer for classification or regression. A fully connected layer is added to the top of the CNN to map the extracted features to the label space. For classification problems, the last layer can be used with a softmax activation function to make probabilistic predictions for each class.

• Training Model

The prepared sensor data is divided into training set and testing set and the CNN model is trained using the training set by adjusting the model parameters to minimize the loss function.

• Basketball Hit Prediction

Use the trained model to make predictions that the basketball hit is make or miss.


IV. Evaluation and Result

4-1 Experiments

1) Dataset Collection

In this paper, for human skeleton detection model, we uses the dataset from website of the CMU (Carnegie Mellon University) Panoptic Dataset. For other models, we collected the dataset by using the camera and labeled by labelme tool.

The details of the dataset collection are as follows, for basketball shot prediction we have chosen 2000 training sets and 2000 test sets and all these 4000 data are labeled and from completely different people. Therefore, the robustness of the program is enhanced and the fitting rate is reduced.

2) Dataset Labeling

For training purposes, we again labeled the data twice, keeping only the core motion data as much as possible, which led to a significant reduction in arithmetic, in the program, where we labeled the key main clauses with hits as makes and misses as misses in order to minimize the effective sampling time.

Similarly, after labeling the visual aspects, we accurately intercepted the corresponding sensor changes per unit of time and labeled them in the same format.

3) Dataset Training

Due to the huge amount of data, we had to purchase expensive experimental equipment, even using up to two EPYC9004 processors and four NVIDIA A100 GPUs, as well as the fact that our experimental environment needed to be switched between different operating systems, since the sensors could only be driven in Windows, we started with a Windows server 2022 acquired the data and when labeling was done continued to Ubuntu for training, the whole process was done in such a huge experimental environment that because of this we were unable to use quantitative (dimensionless) reduction for data processing to reduce the data loss rate to an absolute low.

For our own model, we accurately intercepted the changes in the sensor per unit of visual time, so it greatly reduced the workload in cases where we had accurate data.

4-2 Performance Evaluation

We use the accuracy, confusion matrix, precision, recall, F1-Score, and support as the performance metrics for model. In this section, we describe the results for basketball hit prediction model.

The confusion matrix of basketball hit prediction model is shown in Fig. 2. The performance of accuracy, precision, recall, F1-Score, support is shown in Table 1 and the result image of basketball hit prediction model is shown in Fig. 3.

Fig. 2.

Confusion matrix of basketball hit prediction model

Performance of accuracy, precision, recall, F1-Score, support

Fig. 3.

Result image of basketball hit prediction model

Our processing flow is such that when the camera captures the player hitting the basket, the motion data per unit of time of the sensor worn by the player is immediately saved, taking into account the delay of the camera, we also carry out a time correction process, so that the error is no more than ±100ms.

4-3 Analysis of the Prosed Model

In Table 2, we compare the pure vision and the combination of motion sensors and vision, the modern research direction is mainly the non-invasive vision approach and the invasive wearable sensor approach, if the research direction is pure vision, such as e.g., refer to Liu et al.[23] and Redmon et al.[24] because the GPU needs to be handle both person identification and basketball trajectory and considering the environment, a lot of noise reduction algorithms are needed to make the source data accurate, then the complexity is too high in terms of computational power resulting in a slow program, and because of this the cost of real-time monitoring is too high, we can achieve this by annotating the changes of the sensors per unit of time and combining it with computer vision by setting up Bluetooth tags for the different players as well as transmitting the accurate data in real time back to the computer. in real times. This allows for faster processing and improved accuracy for the same amount of computing power.

Comparison of single vision and sensors

In Table 3, we compare the efficiency of similar studies when the control data source is unchanged, such as CNN Multi-Position[25] which uses a multi-modal CNN, which makes the accuracy slightly inferior to ours because the other party does not have precise control of the timing; and Sensor-based human activity[26], which uses a temporal-based motion Sensor-based human activity[26], which uses a time-series based motion detection method.

Comparison of different algorithms for similar products

If we use the time-series method, according to the articles we refer to in the past, time-series networks are generally used in weather prediction and other projects, which are not the same as our research method, so we will not list them here. In short, if the data set is bigger, the accuracy of his algorithm can be improved, so we are still beyond the other party here.


Ⅴ. Conclusion

Our research has made significant contributions to the field of basketball hit prediction through our research. Our study has demonstrated the effectiveness of using CNN and sensor data to predict the outcome of basketball shots. We have shown that our proposed system achieves notable accuracy in predicting whether a shot will hit the target, leveraging both spatial and temporal information extracted from sensor data.

Our comparative analysis of different models, including CNN[25], RNN, LSTM[26] and Transformer, has provided valuable insights into their respective strengths and weaknesses in the context of basketball hit prediction. This analysis can guide future research efforts in selecting the most suitable model architecture for similar tasks. There are several directions for future research in this area. One potential avenue is to explore the integration of additional sensor modalities or data sources to further enhance prediction accuracy and robustness.

Additionally, investigating real-time prediction capabilities and the deployment of the proposed system in practical basketball training scenarios could yield valuable insights and practical applications.

Moreover, addressing the challenges associated with data collection, annotation, and model training for large-scale datasets remains an important area for future investigation. By addressing these challenges, we can potentially improve the scalability and generalization capabilities of the proposed system.

Our research lays a solid foundation for advancing the field of basketball hit prediction, and we anticipate that future studies will build upon our findings to develop more sophisticated and effective predictive models for sports analysis and training applications.

References

  • B. G. Davis, Tools for Teaching, San Francisco, CA: Jossey-Bass, 1993.
  • P. C. Wankat, The Effective, Efficient Professor: Teaching, Scholarship and Service, Boston, MA: Allyn and Bacon, 2002.
  • M. Peng, Z. Zhang, and Q. Zhou, “Basketball Footwork Recognition Using Smart Insoles Integrated with Multiple Sensors,” in Proceedings of 2020 IEEE/CIC International Conference on Communications in China (ICCC), Chongqing, China, pp. 1202-1207, August 2020. [https://doi.org/10.1109/ICCC49849.2020.9238862]
  • R. A. Asmara, I. Siradjuddin, and N. Hendrawan, “Improving Basketball Recognition Accuracy in Samsung Gear S3 Smartwatch Using Three Combination Sensors,” in Proceedings of the 4th International Conference on Vocational Education and Training (ICOVET), Malang, Indonesia, pp. 386-390, September 2020. [https://doi.org/10.1109/ICOVET50258.2020.9230342]
  • Y. Zhao, X. Zhang, M. Yang, Q. Zhang, J. Li, C. Lian, ... and G. Zhang, “Shooting Prediction Based on Vision Sensors and Trajectory Learning,” Applied Sciences, Vol. 12, No. 19, 10115, October 2022. [https://doi.org/10.3390/app121910115]
  • H. Li and M. Zhang, “Artificial Intelligence and Neural Network-Based Shooting Accuracy Prediction Analysis in Basketball,” Mobile Information Systems, Vol. 2021, 4485589, June 2021. [https://doi.org/10.1155/2021/4485589]
  • M. Nakai, Y. Tsunoda, H. Hayashi, and H. Murakoshi, “Prediction of Basketball Free Throw Shooting by OpenPose,” in Proceedings of JSAI-isAI 2018 Workshops, JURISIN, AI-Biz, SKL, LENLS, IDAA, Yokohama, Japan, pp. 435-446, November 2018. [https://doi.org/10.1007/978-3-030-31605-1_31]
  • M. Harmon, A. Ebrahimi, P. Lucey, and D. Klabjan, “Predicting Shot Making in Basketball Learnt from Adversarial Multiagent Trajectories,” arXiv:1609.04849, , September 2016. [https://doi.org/10.48550/arXiv.1609.04849]
  • R. Wright, J. Silva, and I. Kaynar-Kabul, “Shot Recommender System for NBA Coaches,” in Proceedings of the KDD-16 Workshop on Large-Scale Sports Analytics, San Francisco: CA, August 2016.
  • M. S. Oughali, M. Bahloul, and S. A. El Rahman, “Analysis of NBA Players and Shot Prediction Using Random Forest and XGBoost Models,” in Proceedings of 2019 International Conference on Computer and Information Sciences (ICCIS), Sakaka, Saudi Arabia, pp. 1-5, April 2019. [https://doi.org/10.1109/ICCISci.2019.8716412]
  • C. T. Artan and T. Kaya, “Car Damage Analysis for Insurance Market Using Convolutional Neural Networks,” in Proceedings of INFUS 2019 Conference, Istanbul, Turkey, pp. 313-321, July 2019. [https://doi.org/10.1007/978-3-030-23756-1_39]
  • A. S. Anil Kumar, B. George, and S. C. Mukhopadhyay, “Technologies and Applications of Angle Sensors: A Review,” IEEE Sensors Journal, Vol. 21, No. 6, pp. 7195-7206, March 2021. [https://doi.org/10.1109/JSEN.2020.3045461]
  • D. Goto, Y. Sakaue, T. Kobayashi, K. Kawamura, S. Okada, and N. Shiozawa, “Bending Angle Sensor Based on Double-Layer Capacitance Suitable for Human Joint,” IEEE Open Journal of Engineering in Medicine and Biology, Vol. 4, pp. 129-140, 2023. [https://doi.org/10.1109/OJEMB.2023.3289318]
  • Q. Yang, G. Shen, C. Liu, Z. Wang, K. Zheng, and R. Zheng, “Active Fault-Tolerant Control of Rotation Angle Sensor in Steer-by-Wire System Based on Multi-Objective Constraint Fault Estimator,” Journal of Intelligent and Connected Vehicles, Vol. 4, No. 1, pp. 1-15, April 2021. [https://doi.org/10.1108/JICV-08-2020-0007]
  • M. Oikawa, N. Sato, and Y. Murata, “A Proposal and Trial on a Model of a Motion Monitor System for a Ski Jumper Using Terrestrial Magnetism and Acceleration Sensors,” in Proceedings of 2009 International Conference on Network-Based Information Systems, Indianapolis: IN, pp. 364-369, August 2009. [https://doi.org/10.1109/NBiS.2009.13]
  • J. J. A. Mendes Jr., M. E. M. Vieira, M. B. Pires, and S. L. Stevan Jr., “Sensor Fusion and Smart Sensor in Sports and Biomedical Applications,” Sensors, Vol. 16, No. 10, 1569, September 2016. [https://doi.org/10.3390/s16101569]
  • M. Kondo, M. Melzer, D. Karnaushenko, T. Uemura, S. Yoshimoto, M. Akiyama, ... and T. Sekitani, “Imperceptible Magnetic Sensor Matrix System Integrated with Organic Driver and Amplifier Circuits,” Science Advances, Vol. 6, No. 4, eaay6094. [https://doi.org/10.1126/sciadv.aay6094]
  • M. A. I. Anik, M. Hassan, H. Mahmud, and M. K. Hasan, “Activity Recognition of a Badminton Game through Accelerometer and Gyroscope,” in Proceedings of the 19th International Conference on Computer and Information Technology (ICCIT), Dhaka, Bangladesh, pp. 213-217, December 2016. [https://doi.org/10.1109/ICCITECHN.2016.7860197]
  • D. T. P. Fong, Y.-Y. Chan, V. W. S. Chu, A. H. F. Lam, and P. S. H. Yung, “Using a Single Uniaxial Gyroscope to Detect Lateral Ankle Sprain Hazard,” IEEE Sensors Journal, Vol. 21, No. 3, pp. 3757-3762, February 2021. [https://doi.org/10.1109/JSEN.2020.3021855]
  • R. A. Hyde, L. P. Ketteringham, S. A. Neild, and R. J. S. Jones, “Estimation of Upper-Limb Orientation Based on Accelerometer and Gyroscope Measurements,” IEEE Transactions on Biomedical Engineering, Vol. 55, No. 2, pp. 746-754, February 2008. [https://doi.org/10.1109/TBME.2007.912647]
  • O. Lahdenoja, T. Hurnanen, Z. Iftikhar, S. Nieminen, T. Knuutila, S. Saraste, ... and T. Koivisto, “Atrial Fibrillation Detection via Accelerometer and Gyroscope of a Smartphone,” IEEE Journal of Biomedical and Health Informatics, Vol. 22, No. 1, pp. 108-118, January 2018. [https://doi.org/10.1109/JBHI.2017.2688473]
  • G. Welch and G. Bishop, An Introduction to the Kalman Filter, University of North Carolina at Chapel Hill, Chapel Hill: NC, Technical Report TR 95-041, September 1997.
  • W. Liu, D. Anguelov, D. Erhan, C. Szegedy, S. Reed, C.-Y. Fu, and A. C. Berg, “SSD: Single Shot Multibox Detector,” in Proceedings of the 14th European Conference on Computer Vision (ECCV 2016), Amsterdam, Netherlands, pp. 21-37, October 2016. [https://doi.org/10.1007/978-3-319-46448-0_2]
  • J. Redmon, S. Divvala, R. Girshick, and A. Farhadi, “You Only Look Once: Unified, Real-Time Object Detection,” in Proceedings of 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas: NV, pp. 779-788, June 2016. [https://doi.org/10.1109/CVPR.2016.91]
  • B. Tang and W. Guan, “CNN Multi-Position Wearable Sensor Human Activity Recognition Used in Basketball Training,” Computational Intelligence and Neuroscience, Vol. 2022, 9918143, September 2022. [https://doi.org/10.1155/2022/9918143]
  • L. Liu, Y. Peng, M. Liu, and Z. Huang, “Sensor-Based Human Activity Recognition System with a Multilayered Model Using Time Series Shapelets,” Knowledge-Based Systems, Vol. 90, pp. 138-152, December 2015. [https://doi.org/10.1016/j.knosys.2015.09.024]

저자소개

장 만(Man Zhang)

2017년 7월:Henan University (Bachelor)

2019년 5월:Pace University (Master)

2022년 3월~현 재: 동명대학교 컴퓨터미디어공학과 박사과정

※관심분야:AI, 딥러닝, 빅테이터, CNN

신승수(Seung-Soo Shin)

2001년 2월:충북대학교 수학과 (이학박사)

2004년 8월:충북대학교 컴퓨터공학과 (공학박사)

2005년 3월~현 재: 동명대학교 정보보호학과 교수

※관심분야:네트워크 보안, 딥러닝, IoT, 데이터분석

Fig. 1.

Fig. 1.
Overview of the proposed model

Fig. 2.

Fig. 2.
Confusion matrix of basketball hit prediction model

Fig. 3.

Fig. 3.
Result image of basketball hit prediction model

Table 1.

Performance of accuracy, precision, recall, F1-Score, support

Class Accuracy Precision Recall F1-Score Support
0 0.98 0.99 0.98 0.98 1,000
1 0.98 0.98 0.99 0.99 1,000
Total 0.950 0.99 0.98 0.98 2,000

Table 2.

Comparison of single vision and sensors

Model Scheme Method Accuracy
Basketball Hit Prediction based on Sensor Proposed Scheme CNN + Sensor 98,5%
Liu et al. Scheme[23] SSD 85%
Redmon et al. Scheme[24] YOLO 90%

Table 3.

Comparison of different algorithms for similar products

Model Scheme Method Accuracy
Basketball Hit Prediction based on Sensor Proposed Scheme CNN + Sensor 98,5%
CNN Multi-Position[25] CNN 91.5%
Sensor-based human activity[26] LSTM 81.5%