# Intelligent System for Training and Assessment of Basketball Referee in Sports Event Using Intelligent Sensor

Authors: Qianqian Wang; Jie Ren; Haitao Yang; Yangjie Sun
Journal: Wireless Communications and Mobile Computing
 (2021)

---

## Abstract

Aiming at the problem of the fairness of the judgment results in the traditional basketball referee training and evaluation process affected by external factors, an intelligent system for training and assessment of basketball referees in sports events based on intelligent sensors is proposed. We collect the judged poses of basketball referees by wearing intelligent sensor devices, store the collected information in the database using the converter, and analyze the pose data with the quaternion pose solution method based on complementary filters. According to the comparator, the analysis result is compared with the standard judgment information, and the action is judged whether the action conforms to the basketball judgment rules of the sports event. The judge’s action pose score is evaluated according to the judgment result, and the training assessment result is outputted. The results show that the system can clearly simulate the acceleration and pose angle data of the referee’s complex actions, the recognition rate of various basketball penalty poses is high, and the error of the pitch, yaw, and roll pose calculations is small. The response time of this system is 4 ms, when the number of requests sent by the client is 200 which is unanimously approved by the referees.


---

## Body

## 1. Introduction

Due to basketball having attracted extensive attention from people from all walks of life all over the world, more and more attention has been paid to the fair and impartial adjudication of basketball events. Therefore, the judgment requirements for basketball referees are stricter [1]. In recent years, China has also paid more attention to basketball sports and invested a lot of money to train excellent basketball referees for basketball associations and sports colleges and universities, which has contributed to the development of basketball in China [2]. However, at present, the assessment of the professional ability of referees is not perfect. The requirements are for basketball referees to not only need to remember the judgment rules but also have professional referee quality [3]. At the same time, they have the ability to judge the trajectory and speed of basketball in time and accurately, so as to ensure the fairness and justice of the game results. Foreign basketball referee assessment methods ignore the due referee quality of referees, and the judgment method of referees mainly stays on man-made subjective consciousness. The evaluation methods of domestic basketball referees lack the judgment of motion direction and yaw angle in the process of basketball. Therefore, the main way of training and assessment of basketball referees still stays in the written way. This way cannot assess the judgment ability of referees in the field and cannot meet the needs of the development of modern basketball. Therefore, it is very necessary to continuously optimize the assessment method of basketball referee training. Many scholars have conducted relevant research on the assessment and training methods of basketball referees, but they have not achieved the ideal effect.Relevant scholars have studied this and achieved some results. Xia et al. [4] proposed a training and assessment system based on the interactive simulation equipment of an urban rail operation. The system is based on the interactive simulation equipment of an urban rail operation, applies virtual reality technology, industrial automation technology, big data storage technology, and computer-aided behavior assessment technology and has all the functions of training practice assessment. This system can improve the efficiency of troubleshooting in real operating conditions, but the efficiency of training and assessment is low, and manual evaluation is relatively large. Sun and Wu [5] proposed an optimal pose estimation method for the Microelectromechanical System (MEMS) inertial system based on the indirect Extended Kalman Filter (EKF), deduced the linear motion features related to the state vector perturbation, designed the perturbed state equation, and adopted the standard linear Kalman filter for the perturbation The state and its covariance have been optimized and updated. Finally, the accelerometer output is used for observation, and the chain rule is used to complete the measurement matrix. This method can effectively reduce the impact of random drift on pose estimation, but the pose accuracy is poor. Wang and Zhu [6] proposed a multitarget visual tracking assessment system for basketball referees of different levels. This study takes basketball referees as an example and adopts the classic multitarget tracking MOT paradigm. This study was aimed at exploring the differences in the multiobjective visual tracking ability of basketball referees of different levels. This method can effectively track multiple targets but only considers the transmission of the basketball between passers, and the evaluation index is relatively single. Huo [7] proposed that the NBA referee credibility and authority system only pays attention to the referee’s competition rules. Therefore, it is necessary to constantly improve the new basketball referee assessment and training method on the basis of learning from the experience at home and abroad. In recent years, with the wide application of intelligent sensors, various industries have achieved remarkable results by using the superior performance of sensors [8]. The advantage of the intelligent sensor is that it can capture information, data, and images and transmit them in real time and is less affected by external factors [9]. Therefore, this paper proposes an intelligent simulation system for basketball referee training and assessment in sports events based on intelligent sensors. The system can accurately identify the actions of basketball events, is not affected by human operation, and can accurately judge the movement speed and yaw angle of basketball, so as to ensure the fairness and justice of the judgment results and improve the public’s cognition of the quality of basketball referees.The contributions of this paper are as follows: (1) By wearing intelligent sensor equipment, the judgment pose of basketball referees is collected. (2) The converter is used to store the collected information in the database, and the quaternion pose solution method based on the complementary filter is used to analyze the pose data. (3) According to the comparison and analysis results of the comparator and the standard evaluation information, we judge whether the action conforms to the basketball evaluation rules of sports events. (4) We evaluate the score of the referee’s action and pose according to the judgment results and output the training assessment results.


## 2. Design of Basketball Referee Training and Assessment Intelligent System

### 2.1. Overall System Structure

The designed sensing equipment is worn on the assessors, and the assessors are brought into the virtual basketball game through the sensing drive [10]; using the ability of the sensor to capture information, the pose and action of the referee are photographed and collected, and the collected information is connected to the database for storage through the converter. The collected information is analyzed based on the quaternion pose solution method of the complementary filter and compared with the standard evaluation information by the comparator [11, 12]. The interpreter is used to score the referee’s actions and poses, and finally, the evaluation results are outputted through the output device. The hardware framework of the basketball referee training and assessment system is shown in Figure 1.Figure 1
Overall system structure.


### 2.2. Sensor Driving Node Design

The intelligent sensing device mainly collects data according to the sensing drive [13], and Figure 2 describes the hardware circuit structure of the intelligent sensing device.Figure 2
Hardware structure of intelligent sensing equipment.The intelligent sensing device is composed of a sensing driving part and a microprocessor, which are connected through a bus [14]. The intelligent sensing device is mainly responsible for collecting information and comprehensively sorting the collected information to obtain quaternion data. After the data is outputted, it is converted by a data converter and compared with the standard data [15]. As a key part of the whole system structure, the intelligent sensing device has high requirements for poses. Therefore, when designing the intelligent sensing device, it should meet its small features and be easy for the examiner to wear.The microprocessor mainly uses the advantages of its various transmission means to make the information output timely and accurate. The microprocessor includes a controller to control the obtained data information, avoid the influence caused by the installation axis error of accelerometer and gyroscope [16], reduce the packaging space, and then output the sensing information. The main advantage of a triaxial magnetometer is that it occupies a small area and has a high synthesis effect [17]. With the Interintegrated Circuit (IIC) interface, it can maximize the accuracy of output information. The sensor driver is easy to operate and has low manufacturing cost, which reduces the complex effect of system construction to a certain extent.


### 2.3. Pose Calculation of Data Converter

#### 2.3.1. Spatial Rotation Quaternion Method

The standard quaternion method has a small workload, fast response time, less relevance to microprocessors [18], and no repeated cycle mode. It can be used as a space full pose solution method [19]. Due to the convenient conditions of this method, the quaternion method is expressed as follows:
(1)Q=q0+q1i+q2i+q3k.The size of the quaternion is expressed by the norm:(2)Q=q02+q12+q22+q32.The judgment method of the standardized quaternion depends on the value ofQ. If the value is equal to 1, the quaternion is standardized [20]. The pose matrix is Cbn, yaw angle is ψ, pitch angle is θ, and roll angle is φ. The equation of the pose matrix method is
(3)Cbn=cosψcosφ+sinψsinθsinφsinψcosθcosψsinφ−sinψsinθcosφcosψsinθsinφ−sinψcosφcosψcosθ−cosψsinθcosφ−sinψsinφ−cosθsinφsinθcosθcosφ.The pose matrix equation (3) can be expressed as
(4)Cbn=1−2q22+q322q1q2−q0q32q1q3+q0q22q1q2+q0q31−2q12+q322q2q3+q0q12q1q3+q0q22q2q3−q0q11−2q12+q22.The quaternion differential equation of the pose matrix can be expressed as(5)q0+q1+q2+q3+=120−ωx−ωy−ωzωx0ωy−ωyωy−ωz0ωxωzωy−ωx0q0q1q2q3.The solution of the differential equation in equation (5) can be obtained in combination with the standardized quaternion initial value qi0− obtained in equation (6). After the obtained quaternion q0,q1,q2,q3 is normalized, the normalized quaternion q0−,q1−,q2−,q3− for spatial rotation is obtained and can be used as the original value of the following differential equation (6) [21].
(6)q0=121+T11+T22+T33,q1=121+T11−T22−T33,q2=121−T11+T22−T33,q3=121−T11−T22+T33.LetT be a matrix; its symbol can be determined by signq0. When Q=1, we get a normalized quaternion; a standardized quaternion is obtained. Therefore, it can be seen that the quaternion qi obtained from equation (6) is used for spatial rotation, and it should be standardized:
(7)qi0−=qiq02+q12+q22+q32,i=0,1,2,3,where qi0− represents the initial value of the standardized quaternion.


#### 2.3.2. Quaternion Pose Solution Method Based on Complementary Filter

The pose information is solved by an accelerometer and magnetometer. In different motion states, the calculation accuracy is high, but it is greatly affected by external factors and has poor flexibility [22]. A gyroscope can also calculate pose information with good flexibility, but due to the wide variety of calculation vectors, the accuracy of the data is not high. In order to obtain more accurate data information on the premise of flexibility, the information is obtained by fusing the sensor data, which mainly adopts the filtering algorithm. The Kalman filter has strong advantages in estimation [23], with large workload for matrix calculation and strong correlation constraints on the microprocessor. Compared with the complementary filter, the complementary filter has a faster processing speed and less computation when calculating the matrix and vector and does not consider the performance of the processor [24]. After random analysis, the complementary filtering algorithm is more suitable for pose calculation. The specific algorithm of pose solution is shown in Figure 3.Figure 3
Pose solution process.We describe the output vector of the accelerometer that terminates the motion underb by ab=axb,ayb,azbT. The component formed by acceleration g when affected by gravity is described by ab; then, the detection vector of g is set to ab.Due toaxb,ayb,azbT=Cnb00gT, the third column vector of the latter is the measurement vector of gravity acceleration g, and the deviation of the measurement vector of detection vectors ab and g is described by equation (8), which is the error erra of acceleration or the error errθφ of the pitch angle and roll angle.
(8)erra=errθφ=T31T32T33×axbaybazb.The magnetometer data processing is blocked, because the navigation coordinate system n is greatly affected by the local magnetic field, and the specific orientation of the magnetic field cannot be determined temporarily [25]. Therefore, the data obtained from coordinate system b must be studied and calculated.Set in the carrier coordinate systemb, the output vector of the magnetometer is mb=mxb,myb,mzbT. Therefore, it is impossible to judge the area of the magnetic field, so it is subject to the same treatment:
(9)mb−=mbmb=Cnbmxb−myb−mzb−T.The observation vectormb− of the geomagnetic field is the component under b. To obtain the geomagnetic field data described in equation (10), it is necessary to convert mb− to the n system:
(10)hxnhynhznT=Cnbmxb−myb−mzb−T.The included angle between theY-axis of the carrier and the due north direction is the yaw angle. nxn,nyn,nzn is used to describe the sorted local geomagnetic field data, and the precondition for sorting is that under the navigation coordinate system n. We set nxn=0, nyn=hxn2+hyn2, nzn=hzn, and convert the data to the b system to obtain
(11)bxbbybbzb=CnbnxnnynnznT.Through the cross-multiplication of geomagnetic measurement vector and observation vector in carrier coordinate systemb described in equation (12), we obtain errm and errψ:
(12)errm=errψbxbbybbzb×mxb−myb−mzb−,where bxb,byb,bzbT is used to describe the geomagnetic field measurement vector.The pose angle error of the system is(13)errm=errψ=errθφ.Correction of the gyro data by error is(14)δ=Kp⋅err+Kt∫err,(15)ω=ωb+δ,where the adjustment quantity of error is described by δ; Kp and Kt are the adjustment coefficients. The output value of the gyroscope in the carrier coordinate system is ωb, and ω is the adjusted gyroscope value.


## 2.1. Overall System Structure

The designed sensing equipment is worn on the assessors, and the assessors are brought into the virtual basketball game through the sensing drive [10]; using the ability of the sensor to capture information, the pose and action of the referee are photographed and collected, and the collected information is connected to the database for storage through the converter. The collected information is analyzed based on the quaternion pose solution method of the complementary filter and compared with the standard evaluation information by the comparator [11, 12]. The interpreter is used to score the referee’s actions and poses, and finally, the evaluation results are outputted through the output device. The hardware framework of the basketball referee training and assessment system is shown in Figure 1.Figure 1
Overall system structure.


## 2.2. Sensor Driving Node Design

The intelligent sensing device mainly collects data according to the sensing drive [13], and Figure 2 describes the hardware circuit structure of the intelligent sensing device.Figure 2
Hardware structure of intelligent sensing equipment.The intelligent sensing device is composed of a sensing driving part and a microprocessor, which are connected through a bus [14]. The intelligent sensing device is mainly responsible for collecting information and comprehensively sorting the collected information to obtain quaternion data. After the data is outputted, it is converted by a data converter and compared with the standard data [15]. As a key part of the whole system structure, the intelligent sensing device has high requirements for poses. Therefore, when designing the intelligent sensing device, it should meet its small features and be easy for the examiner to wear.The microprocessor mainly uses the advantages of its various transmission means to make the information output timely and accurate. The microprocessor includes a controller to control the obtained data information, avoid the influence caused by the installation axis error of accelerometer and gyroscope [16], reduce the packaging space, and then output the sensing information. The main advantage of a triaxial magnetometer is that it occupies a small area and has a high synthesis effect [17]. With the Interintegrated Circuit (IIC) interface, it can maximize the accuracy of output information. The sensor driver is easy to operate and has low manufacturing cost, which reduces the complex effect of system construction to a certain extent.


## 2.3. Pose Calculation of Data Converter

### 2.3.1. Spatial Rotation Quaternion Method

The standard quaternion method has a small workload, fast response time, less relevance to microprocessors [18], and no repeated cycle mode. It can be used as a space full pose solution method [19]. Due to the convenient conditions of this method, the quaternion method is expressed as follows:
(1)Q=q0+q1i+q2i+q3k.The size of the quaternion is expressed by the norm:(2)Q=q02+q12+q22+q32.The judgment method of the standardized quaternion depends on the value ofQ. If the value is equal to 1, the quaternion is standardized [20]. The pose matrix is Cbn, yaw angle is ψ, pitch angle is θ, and roll angle is φ. The equation of the pose matrix method is
(3)Cbn=cosψcosφ+sinψsinθsinφsinψcosθcosψsinφ−sinψsinθcosφcosψsinθsinφ−sinψcosφcosψcosθ−cosψsinθcosφ−sinψsinφ−cosθsinφsinθcosθcosφ.The pose matrix equation (3) can be expressed as
(4)Cbn=1−2q22+q322q1q2−q0q32q1q3+q0q22q1q2+q0q31−2q12+q322q2q3+q0q12q1q3+q0q22q2q3−q0q11−2q12+q22.The quaternion differential equation of the pose matrix can be expressed as(5)q0+q1+q2+q3+=120−ωx−ωy−ωzωx0ωy−ωyωy−ωz0ωxωzωy−ωx0q0q1q2q3.The solution of the differential equation in equation (5) can be obtained in combination with the standardized quaternion initial value qi0− obtained in equation (6). After the obtained quaternion q0,q1,q2,q3 is normalized, the normalized quaternion q0−,q1−,q2−,q3− for spatial rotation is obtained and can be used as the original value of the following differential equation (6) [21].
(6)q0=121+T11+T22+T33,q1=121+T11−T22−T33,q2=121−T11+T22−T33,q3=121−T11−T22+T33.LetT be a matrix; its symbol can be determined by signq0. When Q=1, we get a normalized quaternion; a standardized quaternion is obtained. Therefore, it can be seen that the quaternion qi obtained from equation (6) is used for spatial rotation, and it should be standardized:
(7)qi0−=qiq02+q12+q22+q32,i=0,1,2,3,where qi0− represents the initial value of the standardized quaternion.


### 2.3.2. Quaternion Pose Solution Method Based on Complementary Filter

The pose information is solved by an accelerometer and magnetometer. In different motion states, the calculation accuracy is high, but it is greatly affected by external factors and has poor flexibility [22]. A gyroscope can also calculate pose information with good flexibility, but due to the wide variety of calculation vectors, the accuracy of the data is not high. In order to obtain more accurate data information on the premise of flexibility, the information is obtained by fusing the sensor data, which mainly adopts the filtering algorithm. The Kalman filter has strong advantages in estimation [23], with large workload for matrix calculation and strong correlation constraints on the microprocessor. Compared with the complementary filter, the complementary filter has a faster processing speed and less computation when calculating the matrix and vector and does not consider the performance of the processor [24]. After random analysis, the complementary filtering algorithm is more suitable for pose calculation. The specific algorithm of pose solution is shown in Figure 3.Figure 3
Pose solution process.We describe the output vector of the accelerometer that terminates the motion underb by ab=axb,ayb,azbT. The component formed by acceleration g when affected by gravity is described by ab; then, the detection vector of g is set to ab.Due toaxb,ayb,azbT=Cnb00gT, the third column vector of the latter is the measurement vector of gravity acceleration g, and the deviation of the measurement vector of detection vectors ab and g is described by equation (8), which is the error erra of acceleration or the error errθφ of the pitch angle and roll angle.
(8)erra=errθφ=T31T32T33×axbaybazb.The magnetometer data processing is blocked, because the navigation coordinate system n is greatly affected by the local magnetic field, and the specific orientation of the magnetic field cannot be determined temporarily [25]. Therefore, the data obtained from coordinate system b must be studied and calculated.Set in the carrier coordinate systemb, the output vector of the magnetometer is mb=mxb,myb,mzbT. Therefore, it is impossible to judge the area of the magnetic field, so it is subject to the same treatment:
(9)mb−=mbmb=Cnbmxb−myb−mzb−T.The observation vectormb− of the geomagnetic field is the component under b. To obtain the geomagnetic field data described in equation (10), it is necessary to convert mb− to the n system:
(10)hxnhynhznT=Cnbmxb−myb−mzb−T.The included angle between theY-axis of the carrier and the due north direction is the yaw angle. nxn,nyn,nzn is used to describe the sorted local geomagnetic field data, and the precondition for sorting is that under the navigation coordinate system n. We set nxn=0, nyn=hxn2+hyn2, nzn=hzn, and convert the data to the b system to obtain
(11)bxbbybbzb=CnbnxnnynnznT.Through the cross-multiplication of geomagnetic measurement vector and observation vector in carrier coordinate systemb described in equation (12), we obtain errm and errψ:
(12)errm=errψbxbbybbzb×mxb−myb−mzb−,where bxb,byb,bzbT is used to describe the geomagnetic field measurement vector.The pose angle error of the system is(13)errm=errψ=errθφ.Correction of the gyro data by error is(14)δ=Kp⋅err+Kt∫err,(15)ω=ωb+δ,where the adjustment quantity of error is described by δ; Kp and Kt are the adjustment coefficients. The output value of the gyroscope in the carrier coordinate system is ωb, and ω is the adjusted gyroscope value.


## 2.3.1. Spatial Rotation Quaternion Method

The standard quaternion method has a small workload, fast response time, less relevance to microprocessors [18], and no repeated cycle mode. It can be used as a space full pose solution method [19]. Due to the convenient conditions of this method, the quaternion method is expressed as follows:
(1)Q=q0+q1i+q2i+q3k.The size of the quaternion is expressed by the norm:(2)Q=q02+q12+q22+q32.The judgment method of the standardized quaternion depends on the value ofQ. If the value is equal to 1, the quaternion is standardized [20]. The pose matrix is Cbn, yaw angle is ψ, pitch angle is θ, and roll angle is φ. The equation of the pose matrix method is
(3)Cbn=cosψcosφ+sinψsinθsinφsinψcosθcosψsinφ−sinψsinθcosφcosψsinθsinφ−sinψcosφcosψcosθ−cosψsinθcosφ−sinψsinφ−cosθsinφsinθcosθcosφ.The pose matrix equation (3) can be expressed as
(4)Cbn=1−2q22+q322q1q2−q0q32q1q3+q0q22q1q2+q0q31−2q12+q322q2q3+q0q12q1q3+q0q22q2q3−q0q11−2q12+q22.The quaternion differential equation of the pose matrix can be expressed as(5)q0+q1+q2+q3+=120−ωx−ωy−ωzωx0ωy−ωyωy−ωz0ωxωzωy−ωx0q0q1q2q3.The solution of the differential equation in equation (5) can be obtained in combination with the standardized quaternion initial value qi0− obtained in equation (6). After the obtained quaternion q0,q1,q2,q3 is normalized, the normalized quaternion q0−,q1−,q2−,q3− for spatial rotation is obtained and can be used as the original value of the following differential equation (6) [21].
(6)q0=121+T11+T22+T33,q1=121+T11−T22−T33,q2=121−T11+T22−T33,q3=121−T11−T22+T33.LetT be a matrix; its symbol can be determined by signq0. When Q=1, we get a normalized quaternion; a standardized quaternion is obtained. Therefore, it can be seen that the quaternion qi obtained from equation (6) is used for spatial rotation, and it should be standardized:
(7)qi0−=qiq02+q12+q22+q32,i=0,1,2,3,where qi0− represents the initial value of the standardized quaternion.


## 2.3.2. Quaternion Pose Solution Method Based on Complementary Filter

The pose information is solved by an accelerometer and magnetometer. In different motion states, the calculation accuracy is high, but it is greatly affected by external factors and has poor flexibility [22]. A gyroscope can also calculate pose information with good flexibility, but due to the wide variety of calculation vectors, the accuracy of the data is not high. In order to obtain more accurate data information on the premise of flexibility, the information is obtained by fusing the sensor data, which mainly adopts the filtering algorithm. The Kalman filter has strong advantages in estimation [23], with large workload for matrix calculation and strong correlation constraints on the microprocessor. Compared with the complementary filter, the complementary filter has a faster processing speed and less computation when calculating the matrix and vector and does not consider the performance of the processor [24]. After random analysis, the complementary filtering algorithm is more suitable for pose calculation. The specific algorithm of pose solution is shown in Figure 3.Figure 3
Pose solution process.We describe the output vector of the accelerometer that terminates the motion underb by ab=axb,ayb,azbT. The component formed by acceleration g when affected by gravity is described by ab; then, the detection vector of g is set to ab.Due toaxb,ayb,azbT=Cnb00gT, the third column vector of the latter is the measurement vector of gravity acceleration g, and the deviation of the measurement vector of detection vectors ab and g is described by equation (8), which is the error erra of acceleration or the error errθφ of the pitch angle and roll angle.
(8)erra=errθφ=T31T32T33×axbaybazb.The magnetometer data processing is blocked, because the navigation coordinate system n is greatly affected by the local magnetic field, and the specific orientation of the magnetic field cannot be determined temporarily [25]. Therefore, the data obtained from coordinate system b must be studied and calculated.Set in the carrier coordinate systemb, the output vector of the magnetometer is mb=mxb,myb,mzbT. Therefore, it is impossible to judge the area of the magnetic field, so it is subject to the same treatment:
(9)mb−=mbmb=Cnbmxb−myb−mzb−T.The observation vectormb− of the geomagnetic field is the component under b. To obtain the geomagnetic field data described in equation (10), it is necessary to convert mb− to the n system:
(10)hxnhynhznT=Cnbmxb−myb−mzb−T.The included angle between theY-axis of the carrier and the due north direction is the yaw angle. nxn,nyn,nzn is used to describe the sorted local geomagnetic field data, and the precondition for sorting is that under the navigation coordinate system n. We set nxn=0, nyn=hxn2+hyn2, nzn=hzn, and convert the data to the b system to obtain
(11)bxbbybbzb=CnbnxnnynnznT.Through the cross-multiplication of geomagnetic measurement vector and observation vector in carrier coordinate systemb described in equation (12), we obtain errm and errψ:
(12)errm=errψbxbbybbzb×mxb−myb−mzb−,where bxb,byb,bzbT is used to describe the geomagnetic field measurement vector.The pose angle error of the system is(13)errm=errψ=errθφ.Correction of the gyro data by error is(14)δ=Kp⋅err+Kt∫err,(15)ω=ωb+δ,where the adjustment quantity of error is described by δ; Kp and Kt are the adjustment coefficients. The output value of the gyroscope in the carrier coordinate system is ωb, and ω is the adjusted gyroscope value.


## 3. Experimental Results and Analysis

### 3.1. Data Sets

In order to verify the effectiveness of this system, a basketball game simulation environment was built by MATLAB simulation software to verify the intelligent simulation effect of the basketball referee training and assessment of this system; according to the pose recognition features of the system, the recognition accuracy, judgment error rate, and response time are tested. The results provide convenience for the theoretical assessment of basketball referees. The experimental data sets are the Kaggle data set and the Google Trends data set. Some images in the dataset are shown in Figure4.Figure 4
Motion image set.In the process of training and testing long short term memory (LSTM) network, the learning rate of the network is 1e-3 and the batch size is 128; that is, 128 feature vectors are input each time. The input feature of the network at each time is that the dimension is 4096 and the step size is 16; that is, one result is predicted every 16 frames. Among them, the number of nodes in the middle hidden layer is 256, the number of layers of LSTM is 1, and the number of categories of the last output event classification is 5, corresponding to 5 categories: 3-point shot, free throw, other 2-point shot, layup, dunk, and snatch.


### 3.2. Experimental Indicators

#### 3.2.1. System Data Simulation Effect

The more accurate the acceleration data and pose angle data of complex actions are, the more obvious the pose features are recognized. On the contrary, the worse pose features are recognized.


#### 3.2.2. System Recognition Rate

The higher the recognition rate of the intelligent simulation system, the better the recognition effect of the system. On the contrary, the lower the recognition rate of the assessment intelligent simulation system, the better the recognition effect of the system. The calculation equation of recognition rate is(16)Sr=trDs×100%,where Sr is the recognition rate of the basketball assessment intelligent simulation system. tr is the pose accurately recognized by the basketball assessment intelligent simulation system. Ds is the number of all poses of the basketball assessment intelligent simulation system.


#### 3.2.3. Pose Solution Effect

The smaller the pitch, yaw, and rolling pose solution error, the better the pose solution effect. On the contrary, the larger the pitch, yaw, and rolling pose solution error, the worse the pose solution effect.


#### 3.2.4. System Response Time

The shorter the system response time, the higher the system processing efficiency. On the contrary, the longer the system response time, the lower the system processing efficiency.(17)ht=t2−t1t1+t2,where ht is the response time of the basketball assessment intelligent simulation system. t1 is the time when the basketball assessment intelligent simulation system starts processing. t2 is the time when the processing of the basketball assessment intelligent simulation system is completed.


#### 3.2.5. System Use Effect

The higher the degree of satisfaction with the use of the intelligent simulation system, the better the effect. On the contrary, the lower the degree of satisfaction with the use of the intelligent simulation system, the worse the effect.


### 3.3. Results and Discussion

The poses of referees in basketball games affect the fair judgment of the game. The referee can judge whether the basketball player has committed a foul through a simple pose, and the simple action acceleration data can well show the specific action behavior features. However, the complex judgment pose action includes not only the flexion of the finger but also the swing of the arm, which is difficult to recognize. Therefore, in order to verify the ability of the system to recognize the features of this complex action, the acceleration and pose angle are compared. The specific results are shown in Figures5 and 6.Figure 5
Acceleration data of complex action.Figure 6
Pose angle data of complex action.It can be seen from the Figure6 that the system in this paper can clearly simulate the acceleration data and pose angle data of complex actions, accurately identify the pose features, and describe the changes of pose features in different time periods.In order to verify the recognition rate of basketball referee’s action data by this system, a set of experimental analyses is carried out. By selecting four different action data of basketball players during the game, each action data includes acceleration and pose angle, and the recognition rate is shown in Figure7.Figure 7
Comparison of recognition rates of different pose actions.As can be seen from the data comparison diagram in Figure7, there is no significant difference in the recognition rate of acceleration and pose angle compared with relatively simple pose actions such as left motion and left hook motion. However, for complex actions such as rotation, the recognition rate of pose angle data in this system is significantly higher than that of acceleration data, but the recognition rate of the two data under different pose actions is more than 75%. Therefore, the system in this paper has better pose recognition effect, and the recognition effect of the pose angle is better.In order to verify the effectiveness of the pose solution algorithm in the basketball game, the motion of basketball in the basketball game is simulated. This paper mainly tests the analytical error of basketball from three angles: pitch, yaw, and rolling. The relative errors of the three angle analysis results are shown in Figures8–10.Figure 8
Pitch relative error.Figure 9
Yaw relative error.Figure 10
Rolling relative error.It can be seen from the preceding figures that the error of the pose solution for the pitch, yaw, and rolling is basically in the order of 10-3%, which proves that the deviation of the system in this paper for basketball direction analysis is small. The large fluctuation of yaw and rolling is due to the false error when the pose angle is equal to 0, which cannot constitute the influencing factor for the referee to judge the game. It is proven that the system in this paper can have a good analytical effect on the trajectory and direction of basketball, and the error rate is low, which verifies the effectiveness of the system method in this paper.In order to verify the response speed of this system to the transmitted data, this system is compared with the inertial system (literature [5] system), multitarget visual tracking system (literature [6] system), and NBA referee credibility and authority system (literature [7] system). The response time comparison results are shown in Figure 11.Figure 11
Comparison of response time.As can be seen from Figure11, when the number of requests sent by the client is 200, the response time of the system in literature [5] is 7.3 ms, the response time of the system in literature [6] is 10 ms, and the response time of the system in literature [7] is 8.9 ms. The system response time is 4 ms; with the increasing number of requests sent by the client, the response time of this system in each stage is lower than that of other systems, and the fluctuation is small. The fluctuation of other literature systems is more obvious and does not fluctuate upward according to the change of the number of requests. Therefore, the stability is poor. It is proven that the system has fast response speed and good stability to the data transmission of basketball referees and can avoid the impact of data delay on the fairness of referees to a certain extent.In the experiment, five basketball referees were selected to evaluate the effects of the four systems. The scores ranged from 1 to 10 points. The scoring results are shown in Figure12.Figure 12
Scoring results.According to Figure12, it can be seen that the lowest score for this system is not less than 9, and the highest score for other systems is not more than 8. The score for the literature [5] system is relatively high. However, the score of this system is still not reached, indicating that there is still a certain gap between the system of literature [5] and the system of this paper in some aspects, which caused the referees to not score enough points. This proves that this system has more advantages than other systems and is highly satisfied with the effect of this system. This system provides a more convenient and fairer training and evaluation simulation platform for basketball referees.


## 3.1. Data Sets

In order to verify the effectiveness of this system, a basketball game simulation environment was built by MATLAB simulation software to verify the intelligent simulation effect of the basketball referee training and assessment of this system; according to the pose recognition features of the system, the recognition accuracy, judgment error rate, and response time are tested. The results provide convenience for the theoretical assessment of basketball referees. The experimental data sets are the Kaggle data set and the Google Trends data set. Some images in the dataset are shown in Figure4.Figure 4
Motion image set.In the process of training and testing long short term memory (LSTM) network, the learning rate of the network is 1e-3 and the batch size is 128; that is, 128 feature vectors are input each time. The input feature of the network at each time is that the dimension is 4096 and the step size is 16; that is, one result is predicted every 16 frames. Among them, the number of nodes in the middle hidden layer is 256, the number of layers of LSTM is 1, and the number of categories of the last output event classification is 5, corresponding to 5 categories: 3-point shot, free throw, other 2-point shot, layup, dunk, and snatch.


## 3.2. Experimental Indicators

### 3.2.1. System Data Simulation Effect

The more accurate the acceleration data and pose angle data of complex actions are, the more obvious the pose features are recognized. On the contrary, the worse pose features are recognized.


### 3.2.2. System Recognition Rate

The higher the recognition rate of the intelligent simulation system, the better the recognition effect of the system. On the contrary, the lower the recognition rate of the assessment intelligent simulation system, the better the recognition effect of the system. The calculation equation of recognition rate is(16)Sr=trDs×100%,where Sr is the recognition rate of the basketball assessment intelligent simulation system. tr is the pose accurately recognized by the basketball assessment intelligent simulation system. Ds is the number of all poses of the basketball assessment intelligent simulation system.


### 3.2.3. Pose Solution Effect

The smaller the pitch, yaw, and rolling pose solution error, the better the pose solution effect. On the contrary, the larger the pitch, yaw, and rolling pose solution error, the worse the pose solution effect.


### 3.2.4. System Response Time

The shorter the system response time, the higher the system processing efficiency. On the contrary, the longer the system response time, the lower the system processing efficiency.(17)ht=t2−t1t1+t2,where ht is the response time of the basketball assessment intelligent simulation system. t1 is the time when the basketball assessment intelligent simulation system starts processing. t2 is the time when the processing of the basketball assessment intelligent simulation system is completed.


### 3.2.5. System Use Effect

The higher the degree of satisfaction with the use of the intelligent simulation system, the better the effect. On the contrary, the lower the degree of satisfaction with the use of the intelligent simulation system, the worse the effect.


## 3.2.1. System Data Simulation Effect

The more accurate the acceleration data and pose angle data of complex actions are, the more obvious the pose features are recognized. On the contrary, the worse pose features are recognized.


## 3.2.2. System Recognition Rate

The higher the recognition rate of the intelligent simulation system, the better the recognition effect of the system. On the contrary, the lower the recognition rate of the assessment intelligent simulation system, the better the recognition effect of the system. The calculation equation of recognition rate is(16)Sr=trDs×100%,where Sr is the recognition rate of the basketball assessment intelligent simulation system. tr is the pose accurately recognized by the basketball assessment intelligent simulation system. Ds is the number of all poses of the basketball assessment intelligent simulation system.


## 3.2.3. Pose Solution Effect

The smaller the pitch, yaw, and rolling pose solution error, the better the pose solution effect. On the contrary, the larger the pitch, yaw, and rolling pose solution error, the worse the pose solution effect.


## 3.2.4. System Response Time

The shorter the system response time, the higher the system processing efficiency. On the contrary, the longer the system response time, the lower the system processing efficiency.(17)ht=t2−t1t1+t2,where ht is the response time of the basketball assessment intelligent simulation system. t1 is the time when the basketball assessment intelligent simulation system starts processing. t2 is the time when the processing of the basketball assessment intelligent simulation system is completed.


## 3.2.5. System Use Effect

The higher the degree of satisfaction with the use of the intelligent simulation system, the better the effect. On the contrary, the lower the degree of satisfaction with the use of the intelligent simulation system, the worse the effect.


## 3.3. Results and Discussion

The poses of referees in basketball games affect the fair judgment of the game. The referee can judge whether the basketball player has committed a foul through a simple pose, and the simple action acceleration data can well show the specific action behavior features. However, the complex judgment pose action includes not only the flexion of the finger but also the swing of the arm, which is difficult to recognize. Therefore, in order to verify the ability of the system to recognize the features of this complex action, the acceleration and pose angle are compared. The specific results are shown in Figures5 and 6.Figure 5
Acceleration data of complex action.Figure 6
Pose angle data of complex action.It can be seen from the Figure6 that the system in this paper can clearly simulate the acceleration data and pose angle data of complex actions, accurately identify the pose features, and describe the changes of pose features in different time periods.In order to verify the recognition rate of basketball referee’s action data by this system, a set of experimental analyses is carried out. By selecting four different action data of basketball players during the game, each action data includes acceleration and pose angle, and the recognition rate is shown in Figure7.Figure 7
Comparison of recognition rates of different pose actions.As can be seen from the data comparison diagram in Figure7, there is no significant difference in the recognition rate of acceleration and pose angle compared with relatively simple pose actions such as left motion and left hook motion. However, for complex actions such as rotation, the recognition rate of pose angle data in this system is significantly higher than that of acceleration data, but the recognition rate of the two data under different pose actions is more than 75%. Therefore, the system in this paper has better pose recognition effect, and the recognition effect of the pose angle is better.In order to verify the effectiveness of the pose solution algorithm in the basketball game, the motion of basketball in the basketball game is simulated. This paper mainly tests the analytical error of basketball from three angles: pitch, yaw, and rolling. The relative errors of the three angle analysis results are shown in Figures8–10.Figure 8
Pitch relative error.Figure 9
Yaw relative error.Figure 10
Rolling relative error.It can be seen from the preceding figures that the error of the pose solution for the pitch, yaw, and rolling is basically in the order of 10-3%, which proves that the deviation of the system in this paper for basketball direction analysis is small. The large fluctuation of yaw and rolling is due to the false error when the pose angle is equal to 0, which cannot constitute the influencing factor for the referee to judge the game. It is proven that the system in this paper can have a good analytical effect on the trajectory and direction of basketball, and the error rate is low, which verifies the effectiveness of the system method in this paper.In order to verify the response speed of this system to the transmitted data, this system is compared with the inertial system (literature [5] system), multitarget visual tracking system (literature [6] system), and NBA referee credibility and authority system (literature [7] system). The response time comparison results are shown in Figure 11.Figure 11
Comparison of response time.As can be seen from Figure11, when the number of requests sent by the client is 200, the response time of the system in literature [5] is 7.3 ms, the response time of the system in literature [6] is 10 ms, and the response time of the system in literature [7] is 8.9 ms. The system response time is 4 ms; with the increasing number of requests sent by the client, the response time of this system in each stage is lower than that of other systems, and the fluctuation is small. The fluctuation of other literature systems is more obvious and does not fluctuate upward according to the change of the number of requests. Therefore, the stability is poor. It is proven that the system has fast response speed and good stability to the data transmission of basketball referees and can avoid the impact of data delay on the fairness of referees to a certain extent.In the experiment, five basketball referees were selected to evaluate the effects of the four systems. The scores ranged from 1 to 10 points. The scoring results are shown in Figure12.Figure 12
Scoring results.According to Figure12, it can be seen that the lowest score for this system is not less than 9, and the highest score for other systems is not more than 8. The score for the literature [5] system is relatively high. However, the score of this system is still not reached, indicating that there is still a certain gap between the system of literature [5] and the system of this paper in some aspects, which caused the referees to not score enough points. This proves that this system has more advantages than other systems and is highly satisfied with the effect of this system. This system provides a more convenient and fairer training and evaluation simulation platform for basketball referees.


## 4. Conclusions

In recent years, the emergence of intelligent sensors in life at home and abroad provided a good environment for the wide application of intelligent sensors. Aiming at the imperfect problem of basketball referee evaluation system, this paper proposed an intelligent simulation system for basketball referee training and evaluation in sports events based on the intelligent sensor. The system proposed in this paper breaks the traditional idea that the assessment can only be carried out in written form and improves the quality of the assessment of basketball referees to a great extent, which lays a foundation for the assessment of basketball referees in the future. The following conclusions are obtained by experiments: (1) In this study, the system can accurately recognize pose features and describe the changes of pose features in different time periods. (2) The recognition rate of the pose angle data in this system is significantly higher than that of acceleration data. This system has better pose recognition effect, and the recognition effect of the pose angle is better. (3) Compared with other systems, this system has more advantages and is highly satisfied with the effect of this system. This system provides a more convenient and fairer training and evaluation simulation platform for basketball referees. The application of intelligent sensor in the basketball referee training and assessment system of sports events has just started. On this basis, how to combine specific applications in the multiangle and multidirectional enrichment of the assessment system to solve the problem of unfair judgement results due to imperfect assessment is worthy of further study.



---

*Source: 5507449-2021-12-27.xml*