Next Article in Journal
Current Problems of Forest Protection (25–27 October 2022, Katowice Poland)
Next Article in Special Issue
A Comparative Analysis Study on Para Athletics’ Track Discipline Change and Performance Trend in the Paralympic Games (2004–2020)
Previous Article in Journal
Sequential Characteristics Based Operators Disassembly Quantization Method for LSTM Layers
Previous Article in Special Issue
Using Ultra-Wide Band to Analyze Soccer Performance through Load Indicators during a Full Season: A Comparison between Starters and Non-Starters
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Digital Twin in Sport: From an Idea to Realization

Faculty of Electrical Engineering and Computer Science, University of Maribor, Koroška Cesta 46, 2000 Maribor, Slovenia
*
Author to whom correspondence should be addressed.
Appl. Sci. 2022, 12(24), 12741; https://doi.org/10.3390/app122412741
Submission received: 6 November 2022 / Revised: 29 November 2022 / Accepted: 9 December 2022 / Published: 12 December 2022
(This article belongs to the Special Issue Advances in Sports Performance Analysis and Applied Technologies)

Abstract

:
A digital twin is a virtual model to reflect a physical object and helps it by making proper decisions. The decision-making process is based on the same input data that the simulated physical object has access to. Due to exploiting artificial intelligence, the decision-making process of the digital twin is more sophisticated than that of the physical object. In this study, the digital twin is applied to the sports training domain, where it addresses those questions that have arisen during the implementation of interval cycling training sessions. Thus, the digital twin runs on a mobile device (i.e., the Raspberry Pi platform), with which a cycle is equipped and demonstrates user-friendliness, robustness, reliability, and accuracy. The interval training sessions are transferred to the mobile device in the form of the domain-specific language EasyTrain, ensuring higher expressive power and ease of use. During the implementation, the digital twin advises the athlete with predicted information obtained by a sophisticated prediction model via a screen. The results of a huge experimental work showed that the difference in the average efficiency of the interval training implementation between the two cyclists that performed the experiments is prominent, as the efficiency of the professional training surpassed 90%, while the amateur training efficiency barely achieved 70%.

1. Introduction

Nowadays, sport is one of the most important activities in the world. In particular, team sport disciplines, such as football, volleyball, and basketball, attract a lot of people [1,2]. Moreover, people also identify with their idols playing the roles of holders in team games. Obviously, a similar situation is not far away in individual sport disciplines. Additionally, in these disciplines, winners enjoy huge attention from their fans. Take, for example, sport disciplines such as cycling, running, and tennis, where successful athletes can normally survive with the fruits of their labor.
The big change in sport has arisen with the emerging multi-sport disciplines, such as triathlons and duathlons, where athletes undergo more sport disciplines sequentially one after another, while the total time is the sum of the times achieved in particular disciplines, to which their times for preparing for the next discipline are also added (i.e., so-called transition times). Interestingly, in these disciplines, amateur competitors compete together with professional ones at the same time [3]. Consequently, the wall between the amateur and professional sports has started to be knocked down, while amateur athletes are additionally stimulated to train more in order to draw nearer to the results of their idols.
Normally, amateur athletes cannot hire the support of professional sports trainers due to their great cost. Consequently, they choose the help of modern sport technologies, such as Garmin, Polar, Suunto, and Coros mobile sport watches [4,5]. Besides measuring the load indicators during the implementation of training sessions, these also offer advice on how to train (i.e., training plans), archiving of already implemented training sessions, and miscellaneous analysis of an athlete’s progress in training [6]. Artificial Sport Trainer (AST) [7] presents complete help for an athlete in individual sport disciplines in all phases of sport training, where all these phases are covered using computational intelligence (CI) algorithms [8,9].
Although sports watches allow most functionalities necessary for monitoring the implementation of the sport training sessions, and are small and simple for wearing during the implementation, the huge development of the Internet of Things (IoT) devices demands a universal mobile device capable of connecting the huge range of sensors simply and reliably [10,11,12,13]. One such kind of device is most certainly the Raspberry Pi, i.e., a low-cost mobile computer with solid hardware as well as software equipment [14].
A digital twin is a virtual model to mimic a physical object [15]. It is connected to the same input stream as the corresponding physical object, and it is capable of predicting the decisions based on this input more reliably and accurately that the controlled object [16]. The idea behind using the digital twin in sport is to advise athletes (i.e., physical objects) during the implementation of sport training sessions how to overcome different situations during the implementation, in order to achieve the performance as demanded in the proposed training plan.
In our study, interval cycling sessions are taken into consideration, where the heart rate is imposed as a measure of intensity. Obviously, the digital twin is put onto the Raspberry Pi mobile device capable of controlling different IoT sensors and a global positioning system (GPS) receiver, and, finally, installed on the cycle. Indeed, the digital twin is not simply a simulation that controls one particular process, but it is a study of a virtual environment capable of running more simulations of multiple processes simultaneously [17]. Here, the virtual environment is perceived by the heart rate (HR) monitor and GPS receiver, while a planned interval cycling session presents the framework of the digital twin model. The interval cycling session can be created either by the real sports trainer manually, or by the AST automatically. Then, it is transmitted to the mobile device in the form of domain-specific language (DSL) that is simple to use and ensures enough expressive power [18] to describe the sport training domain efficiently.
Two scenarios were tested using the proposed solution, in which amateur and professional cyclists implemented the same training plan. The performances of both athletes were recorded carefully by the digital twin, while the differences were identified and analyzed in detail. The results of the experimental work were promising and showed that the proposed digital twin can be applied successfully in practice.
The main contributions of the paper are as follows:
  • introducing the concept of the digital twin in sport;
  • design and implementation of the digital twin for controlling the implementation of the interval training in cycling;
  • proposing the mobile device platform for running the digital twin on Raspberry Pi;
  • design and implementation of the DSL EasyTrain for transmitting the training plans to the digital twin;
  • testing and evaluating the digital twin on two case studies, i.e., by controlling the implementation of the interval training for professional and amateur cyclist training.

2. Basic Information

2.1. The Basics of the Sport Training

Although human physiology is more or less the same for all human beings, the response of humans’ bodies is different for the same training program [19]. This means that each athlete in training has unique personal characteristics. A cyclist with more fast-twitch muscles, for instance, needs more workouts for improving endurance and vice versa, the cyclist with more slow-twitch muscles must perform more workouts for improving speed in order to become an all-round cyclist [20].
Despite the differences in the athletes’ physiology, four common principles of the training process can be identified as follows [21]:
  • progressive overload;
  • specificity;
  • reversibility;
  • individuality.
Progressive overload considers that an athlete needs to increase the amount of training for increasing fitness gradually and steadily. Thus, workouts cause physical stress on an athlete’s body. This stress can be either positive, when the overload causes only fatigue, or negative, when injuries emerge because of too great of an overload. Sport training affects, specifically, two physiological categories of changes in fitness that are both critical for high-performance athletes: central and peripheral. The former refers to the heart, lungs, and blood, while the latter to muscles. Reversibility deals with the problem of losing fitness. It is well-known that fitness cannot be regained with resting. Individuality means that each athlete’s body imposes its own physiological characteristics. Consequently, as each athlete is unique, his or her training plan must be unique.
In general, a sport training session is expressed mathematically as a quadruple:
T S = T y p e , D u r a t i o n , I n t e n s i t y , F r e q u e n c y ,
where T y p e refers to the type of training session (e.g., for improving speed, power, or strength), D u r a t i o n prescribes an endurance of a particular training session, I n t e n s i t y determines how intensively the workout needs to be performed, and  F r e q u e n c y identifies how often should the athlete train. In line with this, duration is more important for specifying the amount of training than the distance. Interestingly, intensity is inversely related to duration in the following sense: The higher the intensity, the shorter the duration of the stress that can be overcome by the athlete’s body. It can be measured in more ways, while the heart rate (HR) and power (PWR) meters remain the most important intensity measures in cycling.
Considering HR, the intensity of a workout is prescribed using the so-called HR-zones that are based on a percentage of the athlete’s maximum HR, i.e., functional threshold HR (FTHR). The FTHR is an athlete’s bio-marker, and denotes the highest numbers of beats per minute (bpm). Normally, this value is approximated by subtracting the athlete’s age from the number 220. The example of five HR zones according to Coggan [20] is illustrated in Table 1, from which it can be seen that the first two (i.e., ‘Active recreation’ and ‘Endurance’) are of low intensity, the third (i.e., ‘Tempo’) is of moderate intensity, while the last two (i.e., ‘Lactate threshold’ and ‘VO 2 max’) are of high intensity.
The HR-zones are determined according to percent of FTHR (‘% FTHR’ column). The table also contains a recommended duration of workouts in minutes for continuous and interval sport training sessions, and the border values of HR-zones for a 40-year-old athlete (with FTHR = 180 bpm). The continuous training session refers to a workout that is performed only once (i.e., F r e q u e n c y = 1 ), while the interval training session consists of a sequence of speed and recovery intervals (i.e., F r e q u e n c y > 1 ), where both the intervals are determined by their intensity and duration. Typically, speed intervals need to be performed at a higher intensity and shorter duration, while the recovery intervals are usually of lower intensity, but longer duration.
A sport trainer quantifies the volume of training using a training load. Mathematically, the training load is expressed according to Banister [22]:
T R I M P = I n t e n s i t y · D u r a t i o n ,
where training impulse ( T R I M P ) also presents the primary measure of the performed training.

2.2. The Digital Twin Concept

A digital twin represents a digital replica of a physical entity [15] and belongs to the top 10 strategic technology trends for 2019 as proposed by the Gartner group [23]. The founder of this technology was the National Aeronautics and Space Administration (NASA) during the rescue mission of Apollo 13 in 1970. According to Gene Kreuz, NASA chief flight director for Apollo 13, the simulators, supplementing the first digital twin were some of the most complex technology of the entire space program [24]. These simulators, running simultaneously with the damaged spacecraft, helped to bring the crew back to Earth alive. In particular, an analog simulation of the conditions in space and a virtual assembly enabled scientists on Earth to advise the crew by solving the problems in space.
Digital twin technology has proven to be indispensable nowadays. IoT sensors enabled digital twins to become cost-effective, so they could become imperative to Industry 5.0 and play the main role in understanding, analyzing, and optimizing physical objects. In line with this, the digital twin integrates technologies such as artificial intelligence (AI) and machine learning (ML) [25]. The main domains of their applicability are forecasting problems, i.e., problems where one monitors changes in virtual models or predicts potential risks before applying new plans, which are necessary for Industry 5.0. Nowadays, digital twins solve various problems in medicine and sports.
A scheme of the proposed digital twin is illustrated in Figure 1, from which it can be seen that this joins three different worlds, i.e., physical, analog, and digital, into a whole. The physical world (the environment) is sensed by the humans and their replicas (i.e., the digital twins) by sensors.
Although a human senses the environment using five sensory organs (i.e., eye, ear, skin, nose, and mouth), a digital twin is capable of sensing only digital data acquired from digital sensors. Here, we are interested in digital sensors whose results are presented to humans in a user-friendly form (e.g., a display). Such senses can be processed by human brains and transmitted as data to the digital twin simultaneously.
The human reacts to the senses with action, the selection of which is a consequence of the decision-making process in the mind (reactive behavior). On the other hand, digitalized data are processed by the digital twin’s model that makes decisions on the basis of predictive analysis. This decision prescribes the so-called predicted behavior by the digital twin and is transmitted to the human. At the end, the human alone decides how to react to the sense: reactively or predictively.

3. The Digital Twin in Cycling

The digital twin plays the role of personal assistant, and helps the athlete in the implementation phase of the sport training by advising how to react in some situations appearing during the training session at each moment. Consequently, it demands some kind of mobile device capable of hosting the applications on limited hardware. Nowadays, there are a lot of mobile devices offering these characteristics, from general to special purposes. These devices can either be worn by an athlete or mounted on the cycle. It must be connected to the Internet and be wearable with many IoT sensors for monitoring the behavior of the athlete and the cycle.

3.1. Design of the Digital Twin in Cycling

Indeed, the proposed digital twin in cycling consists of the following three components (Figure 2):
  • network connection;
  • a feedback system;
  • predicting model.
Each athlete in the implementation of a sport training session follows the demands of a training plan that determines a framework for a digital twin model.
The training plan can be transferred to the mobile device using a network connection through a wireless Internet, such as WiMAX, 4G, 5G, or Wi-Fi. Although many formats exist for data transfer, a special DSL EasyTrain is applied in [26] in order to enable real, as well as artificial sport trainers (such as AST [27]) to transfer training plans in an easy to use and universal way. The detailed description of the DSL is omitted due to the paper length limitation.
A feedback system has a closed-loop characteristic [28]. This means that the output affects the control on the one hand and induces sequence of cause-and-effects that exist between the input and output variables, on the other. Data (the input for the model) are obtained from the IoT sensors, with which a cycle or an athlete is equipped. The model transforms raw data into training load indicators, on which basis new predictions are made. The results of the prediction are presented on the display of the mobile device together with the sensed data, and both are subjects of the athlete’s final decision making.
Many modern ML methods could be used for predicting the digital twin’s decision. However, the selection of the proper one relies on the speed of the digital twin’s response. Obviously, the speed is connected strongly to the limited hardware on mobile devices.

3.2. Implementation of the Digital Twin

An interval training session is defined formally as a tuple:
T S ( I n t ) = I n t _ t y p e , t s p e , H R ¯ s p e , t r e c , H R ¯ r e c , r e p e a t s ,
where I n t _ t y p e is the type of the interval training session, t s p e the duration and H R ¯ s p e the average HR of the speed interval, t r e c the duration and H R ¯ r e c the average HR of the recovery interval, and  r e p e a t s denotes the frequency of the interval training session.
The algorithm for implementing the interval training in cycling is developed using three algorithms:
  • training plan observer;
  • digital twin feedback system;
  • digital twin prediction.
The first component is devoted to communication with the central AST module and building the framework of the model. The digital twin feedback system is responsible for: (1) obtaining data from sensors during the implementation process, (2) analyzing the data, and (3) predicting the decision of the digital twin and displaying this to an athlete.

3.2.1. Training Plan Observer

The pseudo-code of the training plan observer is presented in Algorithm 1, from which it can be seen that the training plan observer first provides an archive of the interval training sessions described in EasyTrain from the AST system (in function Receive line 1). Then, a list of collection of sport training sessions in JSON data-interchange format is generated by the EasyTrain in function EasyTrain (line 2). The collection is presented on a user display, from which the proper sport training session identified with I D is selected in the function Select (line 3). This session is then loaded into the digital twin as a model in the function Load (line 4), which guides the cyclist during the implementation of a training session. The implementation starts by pressing the <start> button on the display in the function Receive (line 5). Finally, the implementation is performed in the for loop (lines 6–9), where the digital twin feedback system for the speed in the function DigitalTwin (line 7) and recovery intervals in the function DigitalTwin (line 8) is called.
Algorithm 1 Training plan observer.
 
Require: A S T
1:
Receive( A S T , A r c h i v e )                     ▹ Receive an archive from AST
2:
C o l l e c t i o n = EasyTrain( A r c h i v e )                    ▹ Make a TS collection
3:
I D = Select( C o l l e c t i o n )                      ▹ Select ID from a collection
4:
T S = Load( C o l l e c t i o n , I D )                        ▹ Load the proper TS
5:
Wait_for_start_button                       ▹ Start by pressing button
6:
for i n t e r v a l 1 to r e p e a t s do                      ▹ For each interval...
7:
     T R I M P s p e DigitalTwin( T S . H R ¯ s p e , T S . t s p e )
8:
     T R I M P r e c DigitalTwin( T S . H R ¯ r e c , T S . t r e c )
9:
end for

3.2.2. Digital Twin Feedback System

Algorithm 2 illustrates a feedback system implementation of a digital twin for guiding the cyclist during the implementation of the interval training session. This starts with the parameters average proposed heart rate H R ¯ p r o p and proposed duration t p r o p , where p r o p { s p e , r e c } . This means that the same code is used for both intervals, i.e., speed and recovery. After initialization (lines 1–5), the feedback system continues until the duration of the speed/recovery interval is not exceeded (line 6). The algorithm supports all the mentioned components of the digital twin as follows: (1) data are obtained in the function ReadControlData (line 7), (2) data modeling is performed (lines 8–10), and (3) prediction is calculated in the function Prediction (line 11). The predicted value of the heart rate is displayed on the cyclist’s screen in the function VisualControlData (line 12).
Algorithm 2 Digital twin feedback system.
 
Require: H R ¯ p r o p , t p r o p
 
Ensure: T R I M P
1:
n 1                                     ▹ Times of sampling
2:
t n 1 , t n 0                               ▹ Elapsed time of cycling
3:
H R ¯ n 1 0                               ▹ Average H R calculation
4:
p l u s , m i n u s 0                          ▹ Initialization of TRIMP areas
5:
T R I M P 0                           ▹ Initialization of summary TRIMP
6:
while t n t p r o p do
7:
     H R ¯ n , t n ReadControlData;                        ▹ Obtain sample data
8:
     H R ¯ H R ¯ + 1 n H R n H R ¯ ;                      ▹ Calculate average H R
9:
     Δ t n t n t n 1
10:
     Δ T R I M P 1 2 H R ¯ n H R ¯ n 1 · Δ t n H R ¯ p r o p · Δ t n
11:
     H R ¯ p r e d P r e d i c t i o n ( Δ T R I M P , H R ¯ , H R ¯ p r o p , t p r o p t n , & m i n u s , & p l u s )
12:
    VisualControlData( H R ¯ p r e d )                        ▹ Predict to an athlete
13:
     n n + 1 ; t n 1 t n ; H R ¯ n 1 H R ¯ n                         ▹ Update
14:
     T R I M P T R I M P + Δ T R I M P                       ▹ Update TRIMP
15:
end while

3.2.3. Digital Twin Prediction

Although a lot of AI prediction tools exist nowadays (e.g., linear regression, Bayesian inference), the preliminary tests showed that the application of these tools is not possible on limited hardware. Therefore, we searched for our own mathematical prediction model that is simple and fast enough to prevail over these hardware limitations. Indeed, the interval training session consists of speed and recovery intervals. Typically, a cyclist in the speed interval tries to overcome the proposed H R ¯ s p e as fast as possible. When the cyclist’s H R n in the n-th interval is under the H R ¯ s p e , the corresponding TRIMP values are negative but become positive, when the H R n increases over the H R ¯ s p e in the same interval. The opposite is true for the recovery interval. Consequently, two TRIMP areas can be distinguished by an integration of the H R n by time slices Δ t n for n [ 1 , T ] , i.e.,  p l u s and m i n u s , where the former denotes the positive and the latter the negative values of the integrated TRIMP. For the integration, the trapezoidal rule is applied as follows:
a r e a = n = 1 T H R ¯ n + 1 H R ¯ n 2 · Δ t n H R ¯ p r e d · Δ t n ,
where a r e a denotes either p l u s or m i n u s , and  H R ¯ p r e d is predicted average HR. Let us mention that the second term in Equation (4) denotes the TRIMP value needed for overcoming the observed time slice to the proposed average heart rate, and must be subtracted from the total TRIMP value.
The motivation behind predicting the intensity value H R ¯ p r e d is to make up for the deficit of TRIMP before reaching the H R ¯ s p e proposed in a training plan by increasing this value in the later phases of the speed interval. It holds also in the opposite way, i.e., to expend an overproduced TRIMP before reaching the H R ¯ r e c by decreasing this value in the latter phases of the recovery interval.
Let us emphasize that the proposed prediction is directed toward determining the predicted value of the heart rate by fixing the duration of the time intervals. The goal of the prediction is to balance the TRIMP values of p l u s and m i n u s by considering the expected, remaining number of the training intervals n e x p e c t , expressed mathematically as:
p l u s + n e x p e c t · H R ¯ p r e d ( t p r o p t n ) = m i n u s ,
from which the predicted H R ¯ p r e d is derived as:
H R ¯ p r e d = m i n u s p l u s n e x p e c t ( t p r o p t n ) ,
and the n e x p e c t is calculated according to deductive calculus as:
n e x p e c t = t p r o p · n t n .
Let us notice that t p r o p { t s p e , t r e c } .
A pseudo-code of the prediction component of the proposed solution is illustrated in Algorithm 3, from which it can be seen that the TRIMP areas p l u s and m i n u s are first updated by the Δ T R I M P value obtained during the last time slice. Then, either the proposed value of average heart rate is taken when the proposed H R ¯ p r o p value is not reached yet, or the predicted value is calculated according to Equation (6).
Algorithm 3 Digital twin prediction calculation.
 
Require: Δ T R I M P , H R ¯ , H R ¯ p r o p , Δ T , m i n u s , p l u s
 
Ensure: H R ¯ p r e d
1:
if Δ T R I M P < 0 then
2:
     m i n u s = m i n u s + Δ T R I M P
3:
else
4:
     p l u s = p l u s + Δ T R I M P
5:
end if
6:
if H R ¯ < H R ¯ p r o p then
7:
     H R ¯ p r e d = H R ¯ p r o p ;                        ▹ under/over proposed H R
8:
else
9:
     H R ¯ p r e d = H R ¯ p r o p + m i n u s p l u s n e x p e c t · Δ T                        ▹ Equation (6)
10:
end if

4. Experiments and Results

The purpose of the experiments was to show that the proposed digital twin could be applied in practice for advising an athlete on how to achieve the training plan goals online during the implementation of the interval training session. In line with this, more tests were conducted, and the results are illustrated in the next section.
The digital twin algorithms were implemented in the Python programming language, while EasyTrain was implemented in Ruby due to its incorporated language extension capabilities [29]. Thus, data from the sensors were captured in one-second interval rates that ensure an athlete’s training demonstrates real-time performance. The digital twin was run on a mobile device that is based on the Raspberry Pi computer equipped with GPS and WiFi modules and ANT+ USB (Table 2).
The GPS module allows access to positioning services, the WiFi module connection of the computer to the Internet, while the ANT+ USB serves as a hub for communication with IoT devices (HR monitors, power meters, etc.).
All kinds of athletes perform the same interval training sessions as illustrated in Algorithm 4, from which it can be seen that the intensity of the prescribed training session is moderate, because the average heart rate in the speed interval H R ¯ s p e = 150 bpm belongs to the moderate HR zone (Table 1).
Algorithm 4 Description of the interval training in EasyTrain.
1:
training = Ast.build(My collection) do
2:
   interval(Sample interval) do
3:
      sport: cycling
4:
      info: Moderate
5:
      speed_duration: 1
6:
      recovery_duration: 2
7:
      speed_heart_rate: 150
8:
      recovery_heart_rate: 90
9:
      repetitions: 10
10:
      type: fixed
11:
   end
12:
end
The efficiency of the interval sport training implementation was estimated using a proprietary developed measure considering the speed and recovery interval separately. The success rate for the speed interval ( S R s p e ) is calculated according to a following equation:
S R s p e = 1 r e p e a t s n = 1 r e p e a t s T R I M P s p e , n T R I M P ¯ s p e , n ,
where the variable T R I M P ¯ s p e , n is calculated from the training plan in Algorithm 4, and variable T R I M P s p e , n can be measured using the mobile device. Obviously, the variable n refers to an observed interval.
The efficiency of implementing the recovery interval S R r e c is evaluated in a similar way, in other words:
S R r e c = 1 r e p e a t s n = 1 r e p e a t s T R I M P r e c , n T R I M P ¯ r e c , n ,
where we operate with variables referring to recovery instead of a speed interval.
In summary, the average efficiency of the interval training implementation S R ¯ is highlighted by the following equation:
S R ¯ = 1 , 0 1 2 ( 1 , 0 S R s p e ) ( 1 , 0 S R r e c ) ,
which denotes the success rate as the average difference between the success rates achieved in both intervals. It holds that the higher the value of the average success rate, the better the efficiency of the implementation.

4.1. Results

The purpose of presenting the results of the experimental work is to show that the proposed digital twin for cycling is user-friendly, robust, reliable, and accurate, and, therefore, has a huge potential to be applied in a real-world environment. In line with this, the results obtained in more tests are summarized as follows:
  • the analysis of a graphical user interface (GUI),
  • Case Study 1: The results of a professional cyclist;
  • Case Study 2: The results of an amateur athlete.
The results of the performed experiments are illustrated in the remainder of the section, while the interpretation of the findings is discussed in Section 4.2.

4.1.1. Analysis of GUI

A GUI in computer science allows seamless interaction between an application and a user. The GUI for a digital twin allows two functionalities: (1) selecting and loading the appropriate interval cycling training session, and (2) controlling the implementation of the loaded session.
The GUI of the proposed digital twin is designed according to the following guidelines [30]:
  • minimalist and aesthetic design;
  • operating system compatibility;
  • data integrity;
  • easy navigation and usability;
  • security.
The minimalist design means that unimportant and not relevant information is kept to a minimum. That is, the display must be reduced for displaying only those elements that are necessary for the implementation of the interval cycling training session. The central point of the digital twin GUI presents an implementation of the interval cycling training session (Figure 3), where only five icons are presented, denoting five training load indicators. The icon in the center of the screen denotes the difference between the proposed and average heart rate. In the perception process of the cyclist, the image of the icon gets relayed back to his/her brain. Obviously, a motivated athlete wants to minimize the negative value of the difference as fast as possible. These icons are designed in an aesthetic way that attracts the athlete to look at the screen. In the sense of virtual reality, the real situation is additionally emphasized by using sound besides the visual display elements. For instance, when either the end of the current interval or the start of the next one has occurred, the event is announced by a sound signal to the athlete. Although a more detailed heartrate GUI could be displayed in Figure 3, the minimalist design guideline prevents us to made it more complex.
Operating system compatibility demands that the GUI design should ensure portability on similar platforms. The digital twin GUI is implemented in the Python programming language with the use of the PyQt5 framework. Although it is intended to be used on a Raspberry Pi device, PyQt5 ensures broad portability to various computer platforms.
Data arising in a digital twin do not remain on the origin platform for a long time, because they are copied after finishing each implementation onto the AST central system. Obviously, this is equipped with data integrity mechanisms as well.
Navigation of this GUI is simple due to the limited number of screens. Moreover, this is not even desired for the implementation screen, which is devoted to monitoring performance and prediction data only, where even navigation is excessive.
The security of the mobile device is ensured using an encrypted communication channel and allowing access to the application to the registered users only.

4.1.2. Case Study 1: Results of the Professional Cyclist

In Case Study 1, a professional cyclist was invited to implement a proposed interval training session as presented in Algorithm 4. The interval training session was estimated by a sport trainer as moderate, because it consisted of 10 repeats of the speed/recovery intervals, where the speed interval lasts 1 min at an intensity of 150 bpm (i.e., the tempo HR zone), while the recovery one lasts 2 min at an intensity of 90 bpm (i.e., the active recovery HR zone).
Research Question 1 (RQ-1) in the Case Study 1 was set as: “How to determine that the cyclist implementing the interval training session is a professional by using the DT in cycling?”. The average efficiency of the implementation was measured and recorded by the DT. The experimental period was of duration 10 × 3 min = 30 min , where 10 denotes the number of experimental phases and 3 is duration of one speed/recovery interval. Normally, the implementation of the sport training session was conducted 2 h after eating. Here, a time series analysis was performed for the participant and the results of the analysis were visualized. The following criterion was asserted for accepting the proposition: “If the efficiency of the implemented interval training session is higher than 90%, then the cyclist is a professional cyclist”.
The implementation of the interval training session was performed in sunny and calm weather at 24 , while a straight round track with little traffic was selected for the implementation. Consequently, the cyclist can be focused only on his riding on the track. The results of the implementation of the interval training session are illustrated graphically in Figure 4, which is divided into 10 speed/recovery intervals, displayed according to the overcoming time (x-axis) by the heart rate (y-axis). Actually, there are two different heart rate curves drawn: the proposed H R ¯ s p e or H R ¯ r e c , and the measured H R ¯ . Thus, the proposed heart rate curve is drawn in red, while the measured one in blue.
As can be seen in the diagram, the cyclist’s measured H R ¯ tries to follow the proposed H R ¯ s p e or H R ¯ r e c as closely as possible. Interestingly, only in speed intervals 1, 4, and 6, the measured H R ¯ overcomes the proposed H R ¯ s p e substantially, while, in the other cases, the H R ¯ is near to or below the proposed H R ¯ s p e . When the recovery intervals are observed, it can be concluded that the prominent valleys overcoming the proposed H R ¯ r e c arose in the recovery intervals 1, 3, 6, and 10. In the other recovery intervals, the measured H R ¯ is near to the proposed H R ¯ r e c . Let us emphasize that the prominent peaks and valleys are a necessary condition for achieving the average for either H R ¯ s p e or H R ¯ r e c .
Although the diagram in Figure 4 illustrates explicitly how the measured H R ¯ adapts to the proposed H R ¯ s p e and H R ¯ r e c based on the predicted H R ¯ p r e d online, we are interested in how efficient was the implementation of the interval training sessions in the sense of the training load indicator TRIMP. In line with this, the T R I M P s p e and T R I M P r e c are calculated for each speed and recovery interval, respectively.
The calculated results for the speed intervals are presented in Table 3, which is divided into more columns denoting the proposed average TRIMP for the speed interval T R I M P ¯ s p e , the measured TRIMP in the same interval T R I M P s p e , the difference between the proposed average and measured speed intervals Δ T R I M P s p e , and the corresponding efficiency S R s p e .
Let us emphasize that the negative values of the differences show that the professional cyclist did not succeed in satisfying the demands of the interval training session totally. The same fact is also justified when the efficiency of the interval training is observed (i.e., S R s p e = 92.44 % ).
The situation becomes even worse when the recovery intervals are taken into account (Table 4).
In this case, the value of measured TRIMP in recovery interval T R I M P r e c outdoes the proposed average T R I M P ¯ r e c as can be seen by observing the positive values of the recovery differences Δ T R I M P r e c . In total, the efficiency decreases to S R r e c = 90.41 % .

4.1.3. Case Study 2: Results of the Amateur Cyclist

In Case Study 2, an amateur cyclist underwent the same interval training session as the professional due to a more realistic comparison between each other. This means that the male cyclist needs to overcome the interval training session consisting of a 1 min speed interval at 150 bpm followed by a 2 min recovery interval at 90 bpm.
Research Question 2 (RQ-2) in Case Study 2 was set as: “How to determine that the cyclist implementing the interval training session is not a professional by using the DT in cycling?”. The developing propositions, the case study design, and the performed data analysis were the same as in Case Study 1, while the criterion for accepting the proposition was asserted as follows: “If the efficiency of the implemented interval training session is lesser than 90%, then the cyclist is not a professional”.
The graphical results of the amateur cyclist are illustrated in Figure 5, where the meaning of the displayed variables is the same as by the professional cyclist.
As can be seen from Figure 5, the amateur cyclist did not achieve the demands of the sport trainer in the recovery interval. Although measured heart rate H R ¯ strongly surpasses the proposed value of the speed interval H R ¯ s p e , the proposed value of the recovery interval H R ¯ r e c is never achieved by the cyclist.
The detailed analytical results of the implemented speed intervals by the amateur cyclist are presented in Table 5, from which it can be seen that the cyclist achieved even better results according to the TRIMP load indicator in the speed intervals than the professional one. The efficiency of the professional training is even S R s p e = 93.98 % in total.
Unfortunately, the same cyclist failed to satisfy the demands of the sport trainer when the recovery intervals are observed (Table 6).
The efficiency of the implementation is now only S R r e c = 50.25 % in total.

4.2. Discussion

The proposed digital twin in sport is distinguished by four characteristics: user-friendliness, robustness, reliability, and accuracy. The first characteristic refers to the usage of the application. As shown in the analysis of the GUI, the interface is simple and easy to use. The graphical design is minimalist, and consists of only those elements that are necessary for efficient decision making. Both the cyclists involved in the study helped the designers by improving the GUI with their comments and advice. Robustness means that the digital twin works well in mobile circumstances, where the computer is subject to vibration. The results of the predictions by the digital twin are reliable and accurate.
The results of the mentioned Case Studies 1 and 2 confirmed that the behavior of the professional and amateur cyclists in cycling training are enormously different, and, therefore, easily identified by using the DT for cycling. While the professional cyclist did not have any problem in achieving the border values of the upper-speed interval and the lower-recovery interval heart rates, the amateur cyclist never achieved the lower interval heart rate. This means that the trained cyclist is capable of adapting the heart rate quicker than the non-trained one. Moreover, the transitions from the lower to upper heart rate values and vice versa are more prominent for the professional cyclist.
The aggregate results of both cyclists are illustrated in Table 7, from which it can be seen that the efficiency of the proposed interval training session was S R ¯ = 91.45 % for the professional cyclist (confirming RQ-1), and only S R ¯ = 72.61 % for the amateur one (confirming RQ-2). Indeed, the digital twin informs the athlete what to do, but not how to do it. As an answer to the question, the information of sport trainers still remains valuable.

5. Conclusions

A digital twin is a digital replica of a physical object, and, as such, it has emerged in different domains of human life, such as engineering, automobile manufacturing, aircraft production, and building construction, to mention only the more important ones. This paper uncovers the usage of the digital twin in the sport domain, more precisely, its application in interval sport training in cycling. The digital twin concept was tested using two case studies in which: (1) a professional, and (2) an amateur cyclist were involved. The case studies justified that the concept could also be applied in practice.

Limitations and Future Works

However, the proposed digital twin is limited only to interval training in cycling. Additionally, the mobile device presents some kinds of limitations because it must be worn either by athletes or their equipment. Consequently, the device needs to be small in size and high in performance. Last, energy consumption plays a huge role in selecting the proper hardware.
As a matter of fact, there are many potential directions to continue the work in the future. For instance, the digital twin could be used for other sport disciplines, such as running, triathlon, and duathlon. In line with this, a smaller mobile device should be developed for running. Furthermore, the heart rate load indicator should be exchanged with a power meter, due to its higher sensitivity to the changes in the cyclist’s intensity.

Author Contributions

Conceptualization, L.L., I.F.J. and I.F.; methodology, I.F.J. and I.F.; software, L.L. and I.F.J.; validation, L.L. and I.F.; formal analysis, I.F.; writing—original draft preparation, L.L., I.F.J. and I.F.; writing—review and editing, L.L., I.F.J. and I.F. All authors have read and agreed to the published version of the manuscript.

Funding

Iztok Fister, Jr. is grateful to the Slovenian Research Agency for the financial support under Research Core Funding No. P2-0057. Iztok Fister thanks the Slovenian Research Agency for the financial support under Research Core Funding No. P2-0042—Digital twin.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

The software can be accessed using the following link: https://github.com/firefly-cpp/AST-Monitor (accessed on 1 November 2022).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Beal, R.; Norman, T.J.; Ramchurn, S.D. Artificial intelligence for team sports: A survey. Knowl. Eng. Rev. 2019, 34, 212676649. [Google Scholar] [CrossRef]
  2. Wakelam, E.; Steuber, V.; Wakelam, J. The collection, analysis and exploitation of footballer attributes: A systematic review. J. Sport. Anal. 2022, 8, 31–67. [Google Scholar] [CrossRef]
  3. McCarville, R. From a fall in the mall to a run in the sun: One journey to Ironman triathlon. Leis. Sci. 2007, 29, 159–173. [Google Scholar] [CrossRef]
  4. Sawh, M. Sports Watch Brands: Your Complete Guide to Garmin, Polar, Suunto and Coros. 2021. Available online: https://www.techradar.com/news/sports-watch-brands-your-complete-guide-to-garmin-polar-suunto-and-coros (accessed on 17 September 2022).
  5. Kamišalić, A.; Fister, I., Jr.; Turkanović, M.; Karakatič, S. Sensors and functionalities of non-invasive wrist-wearable devices: A review. Sensors 2018, 18, 1714. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  6. Connor, M.; Beato, M.; O’Neill, M. Adaptive athlete training plan generation: An intelligent control systems approach. J. Sci. Med. Sport 2022, 25, 351–355. [Google Scholar] [CrossRef] [PubMed]
  7. Fister, I.; Fister, I., Jr.; Fister, D. Computational Intelligence in Sports, 1st ed.; Adaptation, Learning, and Optimization; Springer: Cham, Switzerland, 2019; Volume 22. [Google Scholar] [CrossRef]
  8. Engelbrecht, A.P. Computational Intelligence; John Wiley & Sons, Ltd.: Hoboken, NJ, USA, 2007; p. 07030. [Google Scholar] [CrossRef]
  9. Ariyaratne, M.; Silva, R. Meta-heuristics meet sports: A systematic review from the viewpoint of nature inspired algorithms. Int. J. Comput. Sci. Sport 2022, 21, 49–92. [Google Scholar] [CrossRef]
  10. Farrokhi, A.; Farahbakhsh, R.; Rezazadeh, J.; Minerva, R. Application of Internet of Things and artificial intelligence for smart fitness: A survey. Comput. Networks 2021, 189, 107859. [Google Scholar] [CrossRef]
  11. Rajšp, A.; Fister, I., Jr. A systematic literature review of intelligent data analysis methods for smart sport training. Appl. Sci. 2020, 10, 3013. [Google Scholar] [CrossRef]
  12. Guarino, A.; Malandrino, D.; Marzullo, F.; Torre, A.; Zaccagnino, R. Adaptive talent journey: Optimization of talents’ growth path within a company via Deep Q-Learning. Expert Syst. Appl. 2022, 209, 118302. [Google Scholar] [CrossRef]
  13. De Prisco, R.; Guarino, A.; Lettieri, N.; Malandrino, D.; Zaccagnino, R. Providing music service in ambient intelligence: Experiments with gym users. Expert Syst. Appl. 2021, 177, 114951. [Google Scholar] [CrossRef]
  14. Bell, C. Beginning MicroPython with the Raspberry Pi Pico: Build Electronics and IoT Projects; Apress: Warshaw, VA, USA, 2022. [Google Scholar] [CrossRef]
  15. Chen, K. Digital Twin; Royal Collins Publishing Group: Montreal, QC, Canada, 2021. [Google Scholar]
  16. Jones, D.; Snider, C.; Nassehi, A.; Yon, J.; Hicks, B. Characterising the Digital Twin: A systematic literature review. CIRP J. Manuf. Sci. Technol. 2020, 29, 36–52. [Google Scholar] [CrossRef]
  17. Tao, F.; Zhang, H.; Liu, A.; Nee, A.Y.C. Digital Twin in Industry: State-of-the-Art. IEEE Trans. Ind. Informatics 2019, 15, 2405–2415. [Google Scholar] [CrossRef]
  18. van Deursen, A.; Klint, P.; Visser, J. Domain-Specific Languages: An Annotated Bibliography. SIGPLAN Not. 2000, 35, 26–36. [Google Scholar] [CrossRef] [Green Version]
  19. Hecksteden, A.; Kraushaar, J.; Scharhag-Rosenberger, F.; Theisen, D.; Senn, S.; Meyer, T. Individual response to exercise training—A statistical perspective. J. Appl. Physiol. 2015, 118, 1450–1459. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  20. Allen, H.; Coggan, A.R.; McGregor, S. Training and Racing with a Power Meter, 3rd ed.; VeloPress: Boulder, CO, USA, 2019. [Google Scholar]
  21. Friel, J. The Cyclist’s Training Bible, 5th ed.; VeloPress: Boulder, CO, USA, 2018. [Google Scholar]
  22. Banister, E.W. Modeling elite athletic performance. Physiol. Test. Elite Athletes 1991, 347, 403–422. [Google Scholar]
  23. Panetta, K. Gartner Top 10 Strategic Technology Trends for 2019. 2018. Available online: https://www.gartner.com/smarterwithgartner/gartner-top-10-strategic-technology-trends-for-2019 (accessed on 8 June 2022).
  24. Ferguson, S. Apollo 13: The First Digital Twin. 2020. Available online: https://blogs.sw.siemens.com/simcenter/apollo-13-the-first-digital-twin/ (accessed on 8 June 2022).
  25. Liu, M.; Fang, S.; Dong, H.; Xu, C. Review of digital twin about concepts, technologies, and industrial applications. J. Manuf. Syst. 2021, 58, 346–361. [Google Scholar] [CrossRef]
  26. Fister, I.; Fister, I.; Mernik, M.; Brest, J. Design and implementation of domain-specific language easytime. Comput. Lang. Syst. Struct. 2011, 37, 151–167. [Google Scholar] [CrossRef]
  27. Fister, I.; Fister, I., Jr.; Fister, D. Design and implementation of an artificial sports trainer. In Computational Intelligence in Sports; Adaptation, Learning, and Optimization; Springer: Berlin/Heidelberg, Germany, 2018; pp. 121–135. [Google Scholar]
  28. Stubberud, A.; Williams, I.; DiStefano, J. Schaum’s Outline of Feedback and Control Systems, 2nd ed.; McGraw-Hill, Inc.: New York, NY, USA, 1994. [Google Scholar]
  29. Mernik, M.; Heering, J.; Sloane, A.M. When and How to Develop Domain-Specific Languages. ACM Comput. Surv. 2005, 37, 316–344. [Google Scholar] [CrossRef]
  30. Andyol, Y. How to Test the Graphical User Interface: A Comprehensive Guide. 2019. Available online: https://www.qamadness.com/how-to-test-the-graphical-user-interface-a-comprehensive-guide/ (accessed on 9 September 2022).
Figure 1. Scheme of the proposed digital twin model.
Figure 1. Scheme of the proposed digital twin model.
Applsci 12 12741 g001
Figure 2. Scheme of the proposed digital twin model for cycling.
Figure 2. Scheme of the proposed digital twin model for cycling.
Applsci 12 12741 g002
Figure 3. Implementation of the interval training session with the depiction of the digital twin prediction on a Raspberry Pi computer.
Figure 3. Implementation of the interval training session with the depiction of the digital twin prediction on a Raspberry Pi computer.
Applsci 12 12741 g003
Figure 4. Professional sport training.
Figure 4. Professional sport training.
Applsci 12 12741 g004
Figure 5. Amateur sport training.
Figure 5. Amateur sport training.
Applsci 12 12741 g005
Table 1. HR-based training zones.
Table 1. HR-based training zones.
HR-Zone% FTHRContinuousIntervalFTHR = 180
Active rec.<6830–90 minn/a122
Endurance69–8360–300 minn/a123–149
Tempo84–9460–180 minn/a150–169
Lactate th.95–105n/a8–30 min170–189
VO 2 max>106n/a3–8 min>190
Table 2. Specifications of the hardware equipment.
Table 2. Specifications of the hardware equipment.
IndexComponent
1Raspberry Pi 4v Model B with Raspberry Operating System
24” LCD touch screen
3USB ANT+ stick
4Adafruit’s Ultimate GPS HAT module
5Kingston SDHC 32GB Canvas
6Garmin HRM PRO Chest strap with ANT+ Transmitter
Table 3. Professional cyclist results by interval speed intervals.
Table 3. Professional cyclist results by interval speed intervals.
Int. TRIMP ¯ spe TRIMP spe Δ TRIMP spe SR spe
1150136.53−13.470.9102
2150146.91−3.090.9794
3150137.01−12.990.9134
4150146.31−3.690.9754
5150138.23−11.770.9215
6150139.40−10.600.9294
7150139.34−10.660.9289
8150144.53−5.470.9635
9150131.97−18.030.8798
10150126.39−23.610.8426
15001386.62−113.380.9244
Table 4. Professional cyclist results by interval recovery phase.
Table 4. Professional cyclist results by interval recovery phase.
Int. TRIMP ¯ rec TRIMP rec Δ TRIMP rec SR rec
1180201.4921.491.1194
2180198.7218.721.1040
3180198.7218.721.1040
4180201.7821.781.121
5180203.4823.481.1305
6180196.5516.551.0919
7180203.1823.181.1288
8180200.2520.251.1125
9180190.6910.691.0594
10180177.66−2.340.9870
18001972.52172.521.0958
Table 5. Amateur cyclist results by interval speed phase.
Table 5. Amateur cyclist results by interval speed phase.
Int. TRIMP ¯ spe TRIMP spe Δ TRIMP spe SR spe
1150128.25−21.750.8550
2150141.26−8.740.9417
3150140.38−9.620.9358
4150144.24−5.760.9616
5150138.04−11.960.9203
6150136.44−13.560.9096
7150141.77−8.230.9451
8150148.92−1.080.9928
9150139.38−10.620.9292
10150151.051.051.0070
15001409.73−90.270.9398
Table 6. Amateur cyclist results by interval recovery phase.
Table 6. Amateur cyclist results by interval recovery phase.
Int. TRIMP ¯ rec TRIMP rec Δ TRIMP rec SR rec
1180253.6673.661.4092
2180258.9578.951.4386
3180251.2971.291.3961
4180257.1477.141.4286
5180276.7796.771.5376
6180288.24108.241.6013
7180273.2493.241.5180
8180269.7989.791.4988
9180266.0286.021.4779
10180282.46102.461.5692
18002677.56877.561.4875
Table 7. Final results of both results.
Table 7. Final results of both results.
Training Δ TRIMP spe Δ TRIMP rec Δ TRIMP SR ¯
Professional−113.38−172.52−285.900.9143
Amateur−90.27−877.56−967.830.7262
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Lukač, L.; Fister, I., Jr.; Fister, I. Digital Twin in Sport: From an Idea to Realization. Appl. Sci. 2022, 12, 12741. https://doi.org/10.3390/app122412741

AMA Style

Lukač L, Fister I Jr., Fister I. Digital Twin in Sport: From an Idea to Realization. Applied Sciences. 2022; 12(24):12741. https://doi.org/10.3390/app122412741

Chicago/Turabian Style

Lukač, Luka, Iztok Fister, Jr., and Iztok Fister. 2022. "Digital Twin in Sport: From an Idea to Realization" Applied Sciences 12, no. 24: 12741. https://doi.org/10.3390/app122412741

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop