The Application of Virtual Reality Technology in Sports Psychology: Theory, Practice, and Prospect

Once virtual reality technology (Virtual Reality, VR) came out, it has received a lot of attention; in recent years, it has been widely used in the study of psychology. Because it can improve the ecological validity of experimental research, the level of conditional control, reproducibility, and avoid the dangers of field operations, it has been introduced into the field of psychology by many researchers. Compared with traditional sports psychology research methods, virtual reality technology has the characteristics of multiperception, immersion, interaction, and imagination to get a better, more realistic feel and increase people's interest in sports. Taking the application of virtual reality technology in table tennis teaching in colleges and universities as an example, this study aims to review the application of virtual reality technology in sports psychology; summarize the theory, practice, and prospect of the application of virtual reality technology in sports psychology; and add new content to the research of sports psychology. It aims to review the principles, characteristics, and application of virtual reality technology in sports psychology; summarize the advantages and disadvantages of the application of virtual reality technology in sports and point out the problems that need to be paid attention to when using this method; explore the application of virtual reality technology in sports psychology; and add new content to the research of sports psychology.


Introduction
Virtual reality (VR) is a representative of high-tech products in the Internet era.
e computer system simulates the human feeling through programming, and the virtual world that presents it in real time is the virtual environment [1]. With the continuous development of computer hardware and the continuous development of software programming technology, virtual reality technology has gradually been applied to medical treatment, sports, education, teaching, psychotherapy, etc. ese features of virtual reality can provide students with an interesting teaching environment, provide patients with a variety of treatment methods, and provide new sports methods for physical exercise, which has penetrated people's daily lives in many ways. Based on virtual reality technology, this article studies the development of competitive sports simulation applications [2].
At present, various new technologies and methods have been widely adopted in the field of psychology for research, such as event-related potential (ERP) and functional magnetic resonance imaging (fMRI). In recent years, foreign researchers have used virtual reality technology to study psychology and achieved fruitful results. In psychological research, the virtual environment created by virtual reality technology is not only a revolutionary change in the replication, simulation, and representation of the external world in the real world, but also a new research tool and research paradigm.
VR technology has received great attention from various fields at the beginning, but due to its expensive development cost, it is generally only developed for special purposes. With the rapid development of computer science and artificial intelligence technology [3], VR technology can be said to be changing with each passing day, not only the great improvement in "3I" characteristics, but also the accompanying introduction of personal consumer VR products [4], which makes the popularization and application of VR technology possible [5]. At present, VR technology is being widely used in public safety, industrial design, medicine, planning, transportation, culture and education, and other industries and departments [6]. At the same time, in the field of psychology, more and more researchers try to apply VR technology to experimental research, psychological assessment, and clinical psychotherapy [7]. Generally speaking, according to the different presentation methods, VR is divided into nonimmersive (mainly presented directly on a computer screen) and immersive (such as helmet-based and cave-based) VR systems. Nonimmersive VR systems are less expensive, but their nonimmersive nature makes them more suitable for experiments that require simple reactions [8]. On the contrary, the immersive VR system can bring a more realistic and complex physiological and psychological experience to the individual, which is the mainstream of VR research and application in recent years [9]. is article aims to review the principles, characteristics, and application of virtual reality technology in sports psychology; summarize the advantages and disadvantages of the application of virtual reality technology in sports and point out the problems that need to be paid attention to when using this method; discuss the application of virtual reality technology in sports psychology; and add new content to the research of sports psychology.

Virtual Reality Technology and Related
Research Progress In addition to instant interaction through language and gestures, it creates a multidimensional data space for people with broad application prospects. e actual policy of simulated VR is to process sensor data with the help of a series of sensor-integrated equipment, build a VR virtual environment based on fusion information, and finally realize the mutual interaction between the real world and the virtual space and exert its maximum value. Figure 1 shows the multisensing VR interaction model [10]. e virtual environment generator, the input system, and the output system are the three structures that constitute the VR sports simulation system. e specific contents are shown in Figure 2 [11]. Among them, the user system, high-performance computer, simulation manager, and 3D model database together constitute a virtual environment generator; effect generator and signal converter together constitute an output system; converter, glove input conversion, position and direction tracker, data glove, etc [12]. Together, they form an input system. With this as the background, the user's feeling of the environment is more realistic, and the natural interaction process between their own feelings and the virtual environment is realized, and there is an immersive feeling. erefore, there is a wide range of applications for applying virtual reality technology to sports psychology.  (Table 1). It can be seen that European and American countries are still in a leading position in the field of virtual reality research. My country's virtual reality technology started in the early 1990s. With the rapid development of digital technology and computer systems engineering, virtual reality technology has received great attention. Since 2016, virtual reality has been listed as an emerging frontier industry, which has greatly promoted the research and development enthusiasm of scientific researchers and made the virtual reality market in China more prosperous [14]. We have ushered in a new era, but in terms of the number of national publications, there is still a big gap with European and American countries, which is mainly limited by differences in economic conditions, cultural background, and scientific research capabilities. In general, every year, new countries join the research of virtual reality technology, which can be divided into the following three stages [15]. Development period: since 2012, emerging countries such as Iran, Saudi Arabia, Lithuania, Pakistan, and Jordan have also begun to work on virtual reality research [16]. e competitive sports simulation system designed this time can simulate the scene in the competitive sports competition, and record the competitive sports actions and data involved in it, so as to judge whether the sports players' actions are standard and target their defects which need improvement [17]. erefore, the integration of the competitive sports simulation system and VR technology needs to meet the data output and input functions, and it is necessary to ensure that the sports athletes' competitive sports actions are simulated as much as possible on the basis of VR technology, so as to experience the most real and best sports at any time. A reliable competitive sports simulation environment can be created in this way. e system function interaction structure is shown in Figure 3.

Research Objects.
is research takes the impact of virtual reality technology applied to table tennis teaching in colleges and universities as the research object ( Table 2) and selects 97 college students in three parallel classes of the 2018 non-sports major table tennis elective course in a college as the survey object, in order to explore the integration. e application value of virtual reality technology teaching mode in college table tennis teaching is very high.

Research
Methods. Literature data method: In order to deeply understand the application of virtual reality technology in table tennis teaching, according to the purpose and content of this research, searches on the Chinese databases: University Library, CNKI database, Wanfang academic database, and English databases: Web of Science and Science Direct, were organized and relevant data were summarized, and scientific literature visualization analysis software was used to conduct in-depth excavation of the included literature [18].
Questionnaire survey method: In this study, 97 college students from three parallel classes of table tennis elective courses in a university were selected as the subjects of the    Computational Intelligence and Neuroscience questionnaire to investigate their interest in sports situations and the autonomous learning of college students' sports [19]. e main experimental steps in this article are as follows: (1) e 97 college students selected in this article are divided into three groups according to the three types of traditional courses, virtual reality teaching courses, and video teaching courses according to different departments, and the number of the three groups is 34, 32, and 31, respectively. e three groups of faculties are social development and public administration, the School of Arts and the College of Education, with the traditional course group and video course group as the control group of this article, and the virtual reality course group as the experimental group of this article.
(2) After a one-semester table tennis class, a questionnaire survey is conducted on the passage of three groups of experiments by developing a corresponding questionnaire. Using mathematical statistics software, the results of the questionnaire are first tested for reliability and validity, so as to verify the scientific nature of the questionnaire and show that the experimental results can be used for research. (4) e students' independent learning ability in the questionnaire results, the consistency of students' interest in sports situations, and the learning effect of virtual reality teaching classes are analyzed, so as to explore students' interest in virtual reality teaching and prove the application value of the integrated virtual reality technology teaching mode in the teaching of table tennis in colleges and universities.

Description of Survey Tools
e movement is divided into forward movement and reverse movement. FK is the abbreviation of forward kinematics, that is, forward dynamics; IK is the abbreviation of inverse kinematics, that is, inverse dynamics. e skeleton of the human body is composed of many link chains that are grouped in a hierarchical manner, including hierarchical structure joints or chains, motion constraints, and effectors, which drive all parts to move simultaneously [20]. Forward dynamics considers that child joints will follow the motion of parent joints, and child joints can move independently without affecting the state of parent joints. Human motion is taken as an example, as shown in Figure 4. e advantage of forward dynamics is that the calculation is simple and the calculation speed is fast, since it involves naturally coordinated movements. When applied to the VR motion capture industry, users need to wear motion capture devices in each skeleton branch, which is inconvenient to use.

IK Algorithm.
Take the action of hitting the ball as an example: if we know the starting position, final position, and path of the ball, then the rotation of the bowler's arm, etc. can be calculated automatically according to inverse kinematics [21]. e inverse kinematics method relieves the tedious work of the forward kinematics method to a certain extent and is one of the best ways to generate realistic joint motions [22].
Since inverse dynamics can solve the positioning problem, the IK algorithm can be applied to VR motion capture technology and gesture recognition technology [23].   Motion capture technology is taken as an example to illustrate the specific implementation process in Figure 5: Motion capture technology uses specialized sensors called trackers to record the movement of an athlete. en, we can use the recorded data to generate animation motion [24].

PNP.
PNP is precisely a problem; the PNP problem was proposed by Fisher and Bolles in 1981 [25]. PnP translates as plug and play. e specific expression of the PNP problem is as follows: the distance between any two feature points in a given n feature points and the angle formed between the two feature points and the optical center are known to solve the distance between each feature point and the optical center. ere are many ways to solve the PNP problem, which can be roughly divided into two categories, noniterative algorithms and iterative algorithms: When the iterative algorithm is applied to solve the PNP problem, it is derived based on the assumption that there is no image noise. In order to overcome the influence of noise and improve the accuracy of pose calculation, the PNP iterative algorithm is often used to solve the pose information [26]. e main idea is to further express the PNP problem as a constrained nonlinear optimization problem. A numerical solution can measure the relative pose of the target. e optimization variable space of this processing method is the N + 6 dimension (N is the number of point features), the amount of iterative calculation is large, and it is affected by the accuracy of the initial value solution, so the algorithm usually converges to the local minimum or converges to the wrong solution, rather than the global minimum [27]. P3P is taken as an example and illustrated in Figure 6.
As shown, O is the optical center of the camera; the lengths between the three feature points A, B, and C of the target and the optical center O are x, y, and z, respectively; and the angles between the three known lines are α, β, c, |AB| � c, |AC| � b |BC| � a. α, β, c and a, b, c can be used to solve x, y, and z: this is the P3P problem. e number of feature points in the P3P problem is only 3, and the non-iterative algorithm can be used directly. e equation is described as follows: Suppose A′, B′, and C′ are the points of A, B, and C on the imaging plane of the camera, respectively; then, after obtaining x, y, and z, using the coordinates of A′, B′, C′, according to the camera's imaging relationship, the coordinates of the feature points can be solved in the camera coordinate system. e PNP algorithm can be applied to VR positioning technology, such as infrared optical positioning technology, to obtain pose information [28]. e specific implementation process is that the camera obtains the image of the target object, and then extracts the feature points in the image; then, the PNP algorithm is used to obtain the coordinates of the feature points in the camera coordinate system; and finally, the information of the feature points in the world coordinate system is obtained as shown in Figure 7. Computational Intelligence and Neuroscience

POSIT Algorithm.
In fact, the POSIT algorithm is one of the iterative algorithms for the PNP problem mentioned above [29]. First, the initial value of the pose parameters of the three-dimensional object (POS, Pose from Orthography and Scaling algorithm) is obtained through the relationship between orthogonal projection and size transformation [30].
With the new pose measurement parameters, the POS algorithm is re-run, after repeated iterations, until the required accuracy is met in an algorithm flow. Suppose the attitude to be sought, including the rotation matrix R and the translation vector T, are e perspective projection transformation is (x c , y c ) are the coordinates of the image coordinate system in millimeters.
(X c , Y c , Z c ) are the coordinates of the camera coordinate system in millimeters. e f in the above formula is the focal length of the camera, and its specific value is not important. What is important is the ratio between f and x and y. is ratio can be obtained according to the f x and f y of the parameter matrix in the camera. In the actual operation, f � 1 can be directly set, but the corresponding x and y should also be set proportionally. For example, for a camera with internal parameters [f x , f y , u 0 , v 0 ], if the position of a pixel is (u, v), the corresponding x and y should be Suppose a point in the world coordinate system is (X w , Y w , Z w ), then Dividing both sides by TZ gives in w � Z c T z ,  e i-th row of R represents the coordinates of the unit vector of the i-th coordinate axis direction in the camera coordinate system in the world coordinate system; the i-th column of R represents the coordinates of the unit vector in the direction of the i-th coordinate axis in the world coordinate system in the camera coordinate system; T is exactly the coordinates of the origin of the world coordinate system in the camera coordinate system. In particular, T z represents the world. e origin of the coordinate system is the "depth" in the camera coordinate system.
According to the previous assumption, the "thickness" of the object in the Z-axis direction, that is, the Z-coordinate variation range of each point on the surface of the object in the camera coordinate system is much smaller than the average depth of the object in the Z-axis direction. It is important to note that both "thickness" and "depth" are relative to the Z axis of the camera coordinate system. When the origin of the world coordinate system is near the center of the object, it can be considered that the average depth is the T z component in the translation vector T, that is, the average value of Z c of each point is T z , and the variation range of Z c is small relative to T z , so it can be believed that Z c is always near T z , and Z c ≈ T z .
According to this approximate relationship, we can get is is our initial iteration value. In this initial state, we assume that all points of the object are at the same depth, and the perspective transformation at this time degenerates into a proportional orthographic projection POS.
at is, our iteration starts with a scaled orthographic projection, which is where the POSIT algorithm gets its name.

Issuance and Recovery of Questionnaires.
A total of 194 questionnaires were distributed in this experiment, of which 97 were distributed before the experiment and 97 after the experiment. e distribution and recycling of the questionnaires shall be in the form of on-site distribution and onsite recycling. In the process of filling in, if you have any questions about a certain question, you should ask the responsible person in time to ensure the authenticity of the questionnaire. Distribution and recovery: A total of 97 questionnaires were distributed before the experiment, 97 questionnaires were recovered, and the recovery rate was 100%, of which 97 were valid questionnaires, and the effective rate was 100%. After the experiment, a total of 97 questionnaires were distributed, 97 questionnaires were recovered, and the recovery rate was 100%, of which 97 were valid questionnaires, and the effective rate was 100%.

Reliability and Validity Test of the Questionnaire.
Reliability test: In order to test whether the test scale is reliable and stable so that the results can reflect the expected goals, in this study, Cronbach's alpha coefficient was used to test the consistency of the questionnaire structure. It is generally believed that the larger the α coefficient, the higher the reliability of the questionnaire. When Cronbach's α coefficient does not exceed 0.6, the internal consistency reliability is considered unacceptable. When the Cronbach's alpha coefficient is between 0.7 and 0.8, it means that it has a certain degree of reliability. When Cronbach's alpha coefficient is between 0.8 and 0.9, the reliability of the test scale is considered to be very good. In this study, Cronbach's α coefficient of 0.7-0.8 was selected as the measurement standard for testing, as shown in Table 3.
From the reliability test results of the above table, it can be seen that Cronbach's α coefficients of each dimension variable of "College Students' Self-directed Learning Scale" and "Sports Situational Interest Scale" are all greater than 0.7, which is consistent with the consistency of the questionnaire structure, indicating that the amount of the scale has good reliability.
Validity test: e validity test is a powerful tool used to measure the content and structure of the scale, as shown in Table 4. In this study, the factor analysis method will be used to test the validity of "College Students' Self-directed Learning Scale" and "Sports Situational Interest Scale." First, the KMO sample measure and Bartlett's sphere test were applied to see whether the data can be subjected to factor analysis. When the KMO is above 0.90, it means that the validity of the scale is very good; if the KMO is between 0.7-0.9, it means that the validity is acceptable; if the KMO is between 0.5 and -0.7, it means that the validity is average; if the KMO is below 0.5, it means that the validity is acceptable. Validity is not acceptable. At the same time, the significance of the sphere test must be less than 0.05, and the factor analysis is carried out on this basis.

Research Results and Analysis
e application of virtual reality technology as an auxiliary tool in table tennis teaching is conducive to improving learners' interest in table tennis, allowing students to quickly enter their role in the process of participating in learning, to achieve the purpose of training and teaching, and to develop a sense of physical exercise and behavioral habits.

Consistency Analysis of Autonomous Learning Ability.
Students' autonomous learning ability is based on the learners' acquisition of learning methods and skills in the learning process, determining learning goals, selecting learning content, monitoring the learning process, and evaluating the integrity of learning results. In order to explore whether there is a statistical difference between the control class and the experimental class in the autonomous learning ability of college students before the start of the table tennis course, a one-way analysis of variance was used to conduct a comparative analysis between different groups, as shown in Table 5.
According to the consistency analysis results of the autonomous learning ability of different groups, before the table tennis teaching experiment started, there was no Computational Intelligence and Neuroscience significant difference between the control class and the experimental class in the autonomous learning ability (F � 0.368, P > 0.05). ere is also no significant difference between the four dimensions of "learning motivation, learning process, learning result and learning environment" (P > 0.05). It shows that learners of different groups tend to be consistent in terms of self-learning ability, attitude, and cognition, which creates a prerequisite for the development of this research experiment.

Consistency Analysis of Sports Situation Interests.
In order to observe whether there is a statistical difference in the interest of college students in sports situations between the control class and the experimental class before the experiment, a one-way analysis of variance was used to compare and analyze the data of different groups, as shown in Table 6.
According to the consistency analysis results of different groups of sports situational interest, before the table tennis teaching experiment started, the sports situational interest of the students in the control class and the experimental class (F � 0.103, P > 0.05) and "novelty, challenge, attention." ere was no significant difference in the six dimensions of test content (P > 0.05). It shows that different groups of college students tend to have the same level of sports interest before participating in the table tennis course, which meets the requirements of teaching experiments.

Analysis of the Learning Effect of Virtual Reality Teaching.
With the in-depth integration of virtual simulation technology and education, an immersive teaching scene is created for learners. Students use a variety of hardware devices to interact and feedback between humans and machines from a firstperson perspective to enhance their learning experience.    Table 7. rough the analysis of the learning effect of virtual reality table tennis teaching, after the intervention of virtual reality sports games for a natural semester, the subjects in terms of autonomous learning ability, learning motivation (T � −4.158, P < 0.05), learning process (T � −2.502, P < 0.05), and learning results (T � −8.617, P < 0.05) were significantly different from those before the experiment. Description: based on the HTC Vive virtual reality device as an auxiliary teaching tool for table tennis elective courses in colleges and universities, it creates a highly immersive table tennis learning environment for participants with freedom of human-computer interaction, feedback in the practice process, and authenticity of virtual scenes. In the virtual situation of exploration, the intrinsic motivation of exercise is stimulated, and the space for students to think independently is given. However, there is no significant difference in the learning environment (T � 0.272, P � 0.787 > 0.05). According to the topic, the learning environment mainly revolves around giving students some free choice of activities in the classroom, while the learning environment is created by VR equipment. e virtual simulation teaching environment can fully guarantee the enthusiasm of students to explore, and the absence of differences in this indicator just reflects the superiority of VR teaching.

Conclusion
To sum up, the key of VR technology is to focus on the word "virtual." Compared with reality, it is fictitious, but it is more real than pure imagination and traditional two-dimensional presentation. e development of science and technology  has brought about an increase in the sense of immersion. It is believed that in the near future, people will experience sensory stimulation that is infinitely close to reality in the virtual environment. While psychology is a science that studies people, VR technology provides a new direction and method for us to understand, predict, and intervene in human behavior in real life, and get rid of the constraints of the real environment. is research applies virtual reality technology to the teaching of table tennis in colleges and universities. rough the analysis of the learning effect of virtual reality table tennis teaching, it is found that the learning environment created by VR equipment can fully guarantee the enthusiasm of students to explore, and the lack of difference in this indicator precisely reflects the superiority of VR teaching. Hence, the study presented in this article has good practical significance for the improvement of table tennis sports skills learning, autonomous learning ability, and learning interest of college students. Informatization transformation provides a practical basis.

Data Availability
e labeled data set used to support the findings of this study is available from the corresponding author upon request.

Conflicts of Interest
e authors declare that there are no conflicts of interest.