Principal component analysis in running trainings
Abstract
Running training plans have become a trend between professional and amateur runners to train for races. However, not all of them have a preliminary study to guarantee their effectivity. In this project, we analyse running sessions using the Principal Component Analysis method in order to find which are those parameters that a running training plan needs to focus on and how they are trained to help the runner to be faster. As an application, we analyse a particular training plan with the information obtained from the method and we find out how its indicator qualify every run, compared with the planned one.
Full text
Title: Principal Component Analysis in running trainings Author: Gerard Romagós Vilà Advisor: Antonio Rodríguez-Ferran // Alberto García González Department: Department of Civil and Environmental Engineering - LaCàN Academic year: 2019-2020 Degree in Mathematics
Universitat Polit`ecnica de Catalunya Facultat de Matem`atiques i Estad´ıstica Degree in Mathematics Bachelor’s Degree Thesis Principal Component Analysis in running trainings Gerard Romag´os Vil`a Supervised by Antonio Rodr´ıguez-Ferran Alberto Garc´ıa Gonz´alez Professor at UPC Professor at UPC LaC`aN Group LaC`aN Group June, 2020
Als meus tutors Antonio i Alberto, per haver-me guiat en aquest projecte, a la meva fam´ılia i amics, pel suport durant tota aquesta etapa, i a la Marina, pels `anims i forces que m’ha donat en cada moment.
Abstract Running training plans have become a trend between professional and amateur runners in recent years. In fact, everyone who trains for a race follows a training plan, even if it is done by himself/herself. The elabration of all of this training plans has been possible thanks to smartwatches that collect all kind of information of running trainings such as distance, pace, heart rate or elevation gain. However, some of the training plans have been elaborated without a preliminary study on what do they need to focus on to help the runner to be faster. For this reason, in this document we are going to analyse running trainings in order to find which are those parameters that a training plan needs to improve to allow the runner to be faster. We will define a variable as a description of a training by taking its most general parameters and we will apply the Principal Component Analysis (PCA) method, due to it will let us discard those irrelevant parameters. We will see that they are not enough to classify a running training, so we will need to add more specific parameters to our variable and apply again PCA. This time, we will determine that a running training is defined by the minimum pace. This means that training and improving this parameter is going to be the the key for the training plan to turn the runner faster, because it will allow the athlete to be more comfortable in higher velocities. Moreover, we are going to observe, thanks to PCA, that a training plan for a 5 or a 10 kilometers race will be the same because Distance is not going to be a relevant parameter. Also, we will notice that heart rate loses pace dependance when the runner runs faster than his/her threshold pace value. Finally, as an application of our results, we are going to use the previous information to check that our particular training plan is helping us to improve our minimum pace and, consequently, is allowing us to be faster. Keywords Running training plans, Smartwatches, Running training, Parameters, Principal Component Analysis (PCA), Pace, Distance, Heart rate, Threshold pace value.
Contents 1 Introduction 1 1.1 Background.............................. 1 1.2 Motivation .............................. 3 1.3 Objectives............................... 3 1.4 Outline ................................ 3 2 Some running knowledge 5 2.1 A running training session . . . . . . . . . . . . . . . . . . . . . . 5 2.1.1 Parameters .......................... 5 2.1.2 Types of running training . . . . . . . . . . . . . . . . . . 6 2.1.3 Theoretical trainings . . . . . . . . . . . . . . . . . . . . . 6 3 Method of principal component analysis 8 3.1 Introduction.............................. 8 3.2 Principal Component Analysis . . . . . . . . . . . . . . . . . . . 9 3.2.1 Covariance matrix C1.................... 9 3.2.2 Reducing the dimension . . . . . . . . . . . . . . . . . . . 10 3.2.3 Covariance matrix C2.................... 12 3.2.4 The equivalence of diagonalizing C1and C2........ 13 3.2.5 Singular Value Decomposition (SVD) . . . . . . . . . . . 13 4 Methodology 15 5 Results 19 5.1 Initialdata .............................. 19 5.1.1 Study of the initial data . . . . . . . . . . . . . . . . . . . 20 5.2 Adding more specific parameters . . . . . . . . . . . . . . . . . . 23 5.2.1 Study of the new database . . . . . . . . . . . . . . . . . 23 5.3 Analysis of our training plan . . . . . . . . . . . . . . . . . . . . 26 5.3.1 Intensity Factor (IF) . . . . . . . . . . . . . . . . . . . . . 27 6 Discussion and conclusions 29
Chapter 1 Introduction 1.1 Background In recent years we have seen that all of the sports World Records have been broken, with stratospheric performances that all of us thought they were inhuman few years before. Records like the sub-2-hour marathon in Vienna in 2019 [4] or the sub-8-hour ironman in the Ironman World Championship in Hawaii in 2018 and 2019 [6] show the improvement of all the athletes in sports. The life of a professional athlete is based on training a lot of hours every day doing your best at every moment, resting the hours the body needs and eating a balanced diet. In short, they take care of their body in order to be able to continue training and improving every day. But in the lasts years, all of these things are not being enough to be a professional athlete. And it is at this point where the data analysis becomes the key to be the best. Data analysis is used in athletics in many ways such as technology to have better materials that help the athlete to be faster, nutrition to control what is the athlete eating every day, in training planning to optimize workouts or in the same trainings to know in real time how is the training session going. In all of these examples, data analysis has caused a revolution and a need to have everything controled and analysed. In the case of the real time information and the optimization of training plans, collecting all this information has been possible thanks to devices like smartwatches, heart rate sensors, GPS, power meters, etc. The integration of all of these sensors in the same device offers to the athlete the ability to know immediately how is he training, so he can adjust himself/herself his performance immmediately in order to follow as close as possible the theoretical training. 1
Chapter 3 Method of principal component analysis 3.1 Introduction Principal Component Analysis (PCA) is a popular technique used in a lot of fields like image processing [2], driving simulations [10],. . . As we will see in the following chapters, we are going to use this method to determine which are the most important parameters to analyse in a running training plan. In other words, we will find the variables where we have more variation, and we will focus on studying how is their behaviour and which are their trends. As we are going to see in this chapter, Principal Component Analysis’ method is based on the reduction of the dimension of our dataset, preserving as much information as possible. Firstly, it defines a new orthonormal basis composed by linear combinations of our initial variables of the dataset, called Principal Components. Then, it keeps only the Principal Components with the largest variance, so we will have a new space with less dimensions that contains as much information as we want from the initial one. These Principal Components are where our dataset has no correlation and where most of the statistical information is being concentrated, so we are able to do a better interpretation of it and work easily with it due to the reduction of the dimensionality. The most important results of the PCA method and the Singular Value Decomposition (SVD) [9] [11], will be given as an alternative of the diagonalization of the covariance matrices. The detailed explanation of this method can be found in the reference section [5] [7]. 8
3.2 Principal Component Analysis Definition 3.2.1. Let x= (x1, x2, . . . , xm) be a m-dimensional variable (x∈ Rm). Let x1,x2, . . . ,xnbe nsamples of our variable x. Suppose that we have more samples than dimensions of the variable (mn).Then, we can express the sample data matrix (X) as the m×nmatrix: X= . . .. . .· · · . . . x1x2· · · xn . . .. . .· · · . . . where xi= (xi 1, xi 2, . . . , xi m), ∀i= 1, . . . , n. 3.2.1 Covariance matrix C1 Once we have our sample data matrix defined, our purpose is to obtain an orthonormal basis of our dataset, preserving as much information as possible. This is, in fact, to find those directions(Principal Components) where Xhas more variability, keeping orthogonality. For this, we need to define the sample covariance matrix: Definition 3.2.2. Let Xbe our sample data matrix, with X∈ Mm×n(R). The sample covariance matrix (C1) of our variable xis: (C1)ij =1 n n X k=1 (xk i−¯xi)(xk j−¯xj) 1 ≤i, j ≤m(3.1) where ¯x= (¯x1,¯x2,...,¯xm) is the mean value for each variable, with ¯xi= 1 nPn k=1 xk i,∀i= 1, . . . , m. Notice that if we have the m variables with mean equal to zero, this is ¯x= (¯x1,¯x2,...,¯xm) = (0,0,...,0), then the expression for C1turns: C1=XXT(3.2) We can assume, without loss of generality, that all of the mvariables have mean equal to zero. The reason is that if we have nsamples of a m-dimensional variable xwith mean ¯ x, then we can define new nsamples subtracting the mean at every sample: yi=xi−¯ x,∀i= 1, . . . , n. The factor 1 nis just for scaling and can be neglected. Up to this point, we will supose that the mean of the m variables is zero and we will use the second definition for the covariance matrix C1. It is important to see that the matrix C1has the following properties: 1. C1is a Mm×m(R) squared matrix. 2. C1is symmetric matrix. 3. C1is a positive-semidefinite positive. 9
Now, due to C1is a symmetric and positive-semidefinite matrix, we are able to apply the Spectral Theorem: Theorem 3.2.3 (Spectral Theorem).Let A∈ Mm×m(R) be a symmetric, positive-definite matrix of real values. Then 1. Ahas mreal eigenvalues that satisfy λ1≥λ2≥. . . ≥λm≥0. 2. Ahas meigenvectors u1, u2, . . . , umthat satisfy Aui=λiui,∀i= 1, . . . , m and generates an orthonormal basis of Rm. 3. Acan be expressed as A=SDS−1=SDST, where D= (λ1, λ2, . . . , λm) is a diagonal matrix with the eigenvalues of Aand S= (u1, u2, . . . , um) is an orthonormal matrix with the eigenvectors of Ain column. Thank to the Spectral Theorem, our covariance matrix decomposes in: C1=UΛ1UT(3.3) where U∈ Mm×m(R) is the orthonormal matrix and Λ1∈ Mm×m(R) is the diagonal matrix resulting of diagonalizing C1. Definition 3.2.4. Let z=UTxbe the expression of the variable xin the new orthonormal basis. Then, we can define Z=UTXas the projected sample matrix of x(matrix of samples of z). Proposition 3.2.5. The covariance matrix of the the projected sample matrix Zis the diagonal matrix Λ1. Proof. Taking the definition of the covariance matrix for X(2): ZZT= (UTX)(UTX)T= (UTX)(XTU) = UTXXTU=UTC1U= =UT(UΛ1UT)U= Λ1 as Uis orthonormal and C1=UΛ1UT 3.2.2 Reducing the dimension We have seen that the covariance matrix of Zis Λ1, which is diagonal. This means that the mcomponents of zare fully uncorrelated (and linearly independent). This is, in fact, that the variance of every variable of xis described by the corresponding component of z. The following step is to reduce the dimension, preserving as much information as possible. So, we are going to use the trace and the eigenvalues of both covariance matrices C1and Λ1because they will tell us how much dispersion accumulates each component of both Xand Z. It is important to see that the trace and the eigenvalues of C1and Λ1are the same due to trace and eigenvalues are invariant under change of basis: 10
Proposition 3.2.6. The trace of C1is the same as the trace of Λ1and their value is Pm i=1 λi. Proof. As we have seen in the previous section, C1=UΛ1UT. Then, if we want to compute the trace of C1: tr(C1) = tr(UΛ1UT) = tr(Λ1UUT) = tr(Λ1) = m X i=1 λi where we have used the property of tr(AB) = tr(BA) with A∈ Mm×n(R) and B∈ Mn×m(R). Definition 3.2.7. Let ∈(0,1) be the information loss parameter. This parameter will control the maximum of information lost when we reduce the dimension. Notice that, the lower the value of is, the less the information is lost. So, we will take 1. Definition 3.2.8. Let r= 1, . . . , m be the reduced number of dimensions. This is the minimum number of dimensions of the reduced space needed to perserve as much information as we want. The relation between the information loss parameter () and the reduced number of dimensions (r)is the following: r X i=1 λi≥(1 −) m X i=1 λi(3.4) This reduction of the dimension neglect the m−rlower eigenvalues and, consequently, their associated eigenvectors. But these eliminated eigenvalues are the ones that tell us less information because they are related to the components with lower variance. On the other hand, we are keeping the largest eigenvalues so, the directions that contain more statistical information of our dataset. Once we define how much information we allow to be lost (give a value for ), we obtain a value for rand we are able to define the new reduced basis and the reduced projected sample data matrix: Definition 3.2.9. We define the new reduced basis U∗∈ Mm×r(R) as the first reigenvectors of U. Definition 3.2.10. We define the reduced projected sample data matrix Z∗∈ Mr×n(R) as the first rdimensions of the projected sample matrix Z.Z∗is obtained from the new reduced basis U∗and the sample data matrix Xby computing the product: Z∗= (U∗)TX(3.5) 11
Summarising, we have found a new space where the variables are not correlated, with less dimensions than the original one and that contains as much information as we want. For this reason, working in this new space will allow us to do better interpretations of our data and have results easier. Finally, it is important to know that we can return to the initial space once we have used the reduced-dimension space by the backward mapping: ˆ X=U∗Z∗(3.6) In order to compare our sample data matrix Xwith ˆ Xand we see that the error produced by the reduction of dimensionality is related to the value of the tolerance . The error increases as the value of increases. So, we can conclude that we can approximate Xby ˆ X: X=UZ ≈U∗Z∗(3.7) 3.2.3 Covariance matrix C2 Up to now we have been considering that we have more samples of a variable xthan dimensions of this variable (mn). In the case that we are in the opposite situation (nm), it is useful to consider samples as elements of an n-dimensional space. This choise will avoid us to compute the covariance matrix C1, which will be more expensive in therms of computational cost. for this, we define the new covariance matrix: Definition 3.2.11. We define the sample covariance matrix C2as: (C2)ij =1 m m X k=1 (xi k−¯xi)(xj k−¯xj)∀i, j = 1, . . . , n (3.8) where ¯xi=1 mPm l=1 xi lis the mean value of the sample xi. As we have seen for the sample covariance matrix C1, if ¯xi= 0 ∀i= 1, . . . , n, then we can express the sample covariance matrix C2as: C2=XTX(3.9) In this case we can also assume, without loss of generality, that the mean value for the sample is 0 by the same argument as for the covariance matrix C1. The properties of C2are the same as the properties of C1, but in this case C2is aMn×n(R) matrix. So, the covariance matrix satisfies the Spectral Theorem conditions and we can decompose it in: C2=VΛ2VT(3.10) where V∈ Mn×n(R) is a orthogonal matrix and Λ2∈ Mn×n(R) is a diagonal matrix with λ1≥λ2≥. . . ≥λn≥0. 12
Now, we are able to compute the projected sample matrix Zin therms of V and X. Z=VT(XTX) (3.11) Proof. The equivalence of the two definitions of Zis going to be seen in section 3.3. Finally, the dimensionality reduction is computed in the same way as for the covariance matrix C1, arriving to the same results. 3.2.4 The equivalence of diagonalizing C1and C2 The only thing we need to see is that we will get the same result if we compute C1or if we compute C2. Suppose that we are in the case when our sample data matrix Xhas more samples of our variable than dimensions of the variable (mn). The other case is done in the same way permuting C1and C2. We have seen how to compute both covariance matrices C1and C2and how to diagonalize them. Then applying those definitions in our case and diagonalizing them, we have that C1ui=λiui∀i= 1, . . . , m (3.12) and C2vi=λivi∀i= 1, . . . , m (3.13) the other n−meigenvalues are 0 and their associated eigenvectors describe the kernel space of C2. This means that they do not have information of our dataset, so when we reduce de dimension we are not taking them account. For this reason, due to we have the same non-zero eigenvalues for C1and C2, the dimensionality reduction is the same for both matrices. 3.2.5 Singular Value Decomposition (SVD) Singular Value Decomposition (SVD) is an alternative method to have a decomposition of the covariance matrix C1and C2because it avoids diagonalization [11]. We will only apply the method once to the sample data matrix and we will end having both expressions for the matrices. So, if we take the (SVD) for the sample data matrix X: X=UΣVT(3.14) where U∈ Mm×m(R) and V∈ Mn×n(R) are orthogonal matrices and Σ ∈ Mm×n(R) is a diagonal matrix with σ1≥σ2≥. . . ≥σm≥0. Using this expression of our matrix X, we can obtain the decomposition of the covariance matrix C1: C1=XXT=UΣVTVΣTUT=UΣΣTUT=UΛ1UT(3.15) 13
where Λ1= ΣΣT. See that Λ1∈ Mm×m(R) diagonal with values λi=σ2 i,∀i= 1, . . . , m. We can also consider C2=XTXand, as before, C2can be expressed as a result of the (SVD) of X: C2=XTX=VΣTUTUΣVT=VΣTΣVT=VΛ2VT(3.16) where Λ2= ΣTΣ. See that Λ2∈ Mn×n(R) diagonal with values λi=σ2 i,∀i= 1, . . . , m and λj= 0,∀j=m+ 1, . . . , n. To end up with this section, we have seen that with only the decomposition of the sample data matrix Xusing the (SVD), we can obtain both covariance matrices C1and C2and the change of basis that transform them into diagonal matrices. At the same time, we can see that the two definitions of the projected sample matrix Zare equivalent and generate the same vectorial space: Proof. Recalling both definitions and using the (SVD) of X: Z=UTX=UTUΣVT= ΣVT Z=VT(XTX) = VT(VΣTUTUΣVT) = VT(VΣTΣVT)=ΣTΣVT And we observe that <ΣVT>=<ΣTΣVT>due to ΣTΣ∈ Mn×n(R) and Σ ∈ Mm×n(R) are diagonal. 14
Chapter 4 Methodology As we have seen in previous chapters, in this project we are going to deal with running trainings, using the information that they provide to analyse, interpret and extract some final concluisons about them. We are going to apply the Principal Component Analysis method to find out which are the most important parameters by looking into their variability in order to know where we need to focus on our trainings. The data we are going to work with has been obtained from a database that collect all the performs of a running smartwatch with GPS and a heart rate sensor integrated: Garmin Forerunner 935. The account where the watch is linked is my own Garmin Connect profile. In this webpage, we can find a register of my daily workouts and many personal phisical status such as body weight, fitness mark, or the threshold value for the pace (4 minutes 20 seconds) and the heart rate (175 bpm). Inside the workouts, we can see a summary of our training with the route, whether contidions and all of the parameters achieved like distance, average pace, average heart rate, elevation gain, . . . There is also a segmentation of the distance in kilometers and their respective paces and some graphics showing the elevation gain, the pace and the heart rate through the time. The period of time of our running trainings is from 1st of January of 2019 to 31st of December of 2019. During all this time, I have completed a total of 80 running trainings, focused on 5 and 10 kilometers races. It is important to mention that these workouts have been combined with others swimming and cycling trainings, which have not been considered. The most common parameters of a running training session are distance, average pace, average heart rate, elevation gain, Intensity Factor (IF), Intervals and Post-Activity. 15
Now, we are in conditions to present the variables we will use to describe a training. For this, we define xas: x= Distance (km) Average pace (min/km) Average heart rate (bpm) Elevation gain (m) And we will leave IF, Post-Activity and Intervals as independent variables. It is important to notice that the variables are not in the same units. Due to we cannot compare and analyse variables with different units, we need to put them in the same ones. We will choose: 1. Kilometers for distance. 2. Seconds for time. 3. Beats per minute for the heart rate. Although we can see that we are using minutes for the heart rate, beats per minute (bpm) is the standard unit for heart rate measurements. For this reason we will take bpm as heart rate unit instead of beats per second. Once we have put all the variables in the same units (notice that Post- Activity, Intervals and IF are dimensionless), the next step is to define our sample data matrix as: X=x1. . . x80= Distance1. . . Distance80 Average pace1. . . Average pace80 Average heart rate1. . . Average heart rate80 Elevation gain1. . . Elevation gain80 After that, we need to center our samples. This means that we need to calculate the mean value of every variable xj: ¯ xj=1 80 80 X i=1 xj i∀j= 1. . . 4 (4.1) where xj iis the j-th variable of the i-th training. Subtracting this mean value for every variable in all the samples, we obtain a zero mean matrix Xc: Xc=x1−¯x. . . x80 −¯x where ¯x= ¯x1 ¯x2 ¯x3 ¯x4 16
It will be useful to keep the non-centered matrix Xto observe som data behaviours and intuitive relations, so we will name the centered one as Xc. For example, we will analyse the relation between the variables Average pace and Average heart rate by aproximating them using linear least squares [1]. The aim of this method is to approximate the variables by a first degree polynomial minimizing the sum of the squares of the residuals of the samples to the polynomial. Proposition 4.0.1 (Computation of the coefficients for linear least squares approximation).Supose we have nsamples of a 2-dimensional variable P= (r, s). We want to find c1and c2such that s=c1r+c2(4.2) is the best approximation of the samples that minimizes SUM = n X i=1 (si−(c1ri+c2))2(4.3) Proof. The last equation in vectorial form is: SUM =sTs−2c1sTr−2c2n¯s+c2 1rTr+ 2c1c2n¯r+nc2 2(4.4) where ¯sand ¯rare the mean value of s and r. To minimize, taking the derivative of c1and c2and equalizing to 0, we obtain: ∂SUM ∂c1 =−2sTr+ 2c1rTr+ 2nc2¯r= 0 (4.5) ∂SUM ∂c2 =−2n¯s+ 2nc1¯r+ 2nc2= 0 (4.6) Finally, solving this linear system of equations, we end up with the following expression for the two coefficients: c1=sTr−n¯r¯s rTr−n¯r2(4.7) c2= ¯s−c1¯r(4.8) Once we will have studied some data particularities, we will start with the Principal Component Analysis (PCA). For this, we will use the centered sample data matrix Xc, we will compute the matix C1and we will diagonalize it applying the Singular Value Decomposition. Due to C1is a squared symmetric matrix, we will obtain the following decomposition of C1: C1=UΣUT(4.9) where U∈ M4×4(R) orthogonal and Σ ∈ M4×4(R) diagonal. 17
Information of the eigenvalues Eigenvalue Eigenvector Percentage λ1= 7.20·104U(:,1) = −0.01 −0.28 0.00 0.00 0.04 −0.96 74.8 % λ2= 2.00·104U(:,2) = 0.02 −0.96 0.06 0.00 −0.06 0.28 20.7 % λ3= 3.42·103U(:,3) = −0.09 −0.03 −0.89 0.00 −0.45 −0.01 3.5 % λ4= 6.00·102U(:,4) = 0.17 0.07 0.43 0.00 −0.88 −0.06 0.6 % λ5= 3.43·102U(:,5) = −0.98 0.00 0.16 0.00 −0.12 0.00 0.4 % λ6= 6.79 U(:,6) = 0.00 0.00 0.00 −1.00 0.00 0.00 0.0007 % Table 5.2: Information obtained from the diagonalization of the covariance matrix. 24
One of the new information that we observe is that the most important parameter is not the average pace as we saw before. In this case, it is the minimum pace. We continue seeing that the parameters present uncorrelation, even though less than before and the third and fourth eigenvectors are linear combinations of maximum heart rate and average heart rate. To reduce the dimension, we take the same = 0.015 and we see that r= 3 is needed. Now it is time to use the parameters Interval and Post-Activity in order to see any classification of the samples. The result of using them is the following image: Figure 5.3: Plot of the three Principal Components. We can see that the parameter Interval is really classified, due to we have base runs trainings on the left and intervals trainings on the right. This result gives us the type of run where we the minimum pace is trained, which is doing intervals sessions. 25
5.3 Analysis of our training plan In the previous section we have determined that the most important parameter is the minimum pace of a training. This parameter is trained by doing many intervals sessions. So, we want to check if our training plan is performing as espected, allowing us to decrease the minimum pace. To do so, we need to classify our intervals sessions. The reason is that the minimum pace while doing short intervals is not the same for every length of intervals. Observing them, we see that there are 4 different lengths of intervals: 300, 400, 1.000 and 2.000 meters. The following pictures show, for every length of interval, the progression of the minimum pace every time we do an interval training of every length: Figure 5.4: Evolution of the minimum pace for every type of interval. a) 300 meters. b) 400 meters. c) 1000 meters. d) 2000 meters. For every length of interval we see that every time we do the same training, we reach lower and lower paces. Although it the graphics they are all increasing, we need to remember that in Table 5.2 the sign of the coordinate of the minimum pace of the eigenvector is negative, so in this case decreasing the minimum pace is seeing an increment of the values. This result brings us to confirm that our training plan is helping us to be faster. 26
5.3.1 Intensity Factor (IF) As a final analysis of our training plan, we want to observe the parameter IF and try to see how is calculated. This information will help us to determine if IF is a good indicator of how good has been a training compared with the theoretical running training expected. As a first idea, we start plotting our Principal Components against IF and, for the second one, we see the following graphic: Figure 5.5: Plot of Z∗ 2vs IF. Due to the second Principal Component is essentially the average pace with a few influence of the minimum pace, we deduce that IF is a value defined by the average pace. So, if we plot the Average pace versus IF, we obtain: 27
Figure 5.6: Plot of Average pace vs IF. We can see that there is a linear behaviour. As in the first part of the chapter, we are going to approximate the samples in order to find a first degree polynomial that fits well our data. Defining AP as Average pace, we want to find αand βsuch that: IF =α∗AP +β(5.7) Calculating this coefficients, we see that α=(AP)T(IF)−80( ¯ AP)( ¯ IF) (AP)T(AP)−80 ¯ AP2(5.8) β=¯ IF −α¯ AP (5.9) where ¯ AP and ¯ IF are the mean value of each variable. So, the values are α=−3.01.10−2and β= 1.73. Thinking a little bit, we see that α≈ − 1 260 . This value is the threshold value for the pace in seconds per kilometer units. Summarising, we have found that IF formula is the following one: IF ≈ − Average pace Threshold pace value + 1.73 (5.10) So, we can say that IF is just described by the average pace of the training. 28
Chapter 6 Discussion and conclusions In this last Chapter we will present the conclusions, the discussion of the results seen in Chapter 5 and we will expose the porposals and needs for an efficient training plan. We will also comment on some points of our running training plan and their parameters as an example to follow in the case of checking other training plans. 1. Training plans need to be focused on improving the minimum pace. The main objetive of all training plans must be to prepare the athlete to be faster. This means that the athlete must be able to run in lower paces during more time. Thanks to Principal Component Analysis, we have seen that the most important parameter of a training is the minimum pace. The importance of improving this parameter is related with the comfortability of the athlete running in lower paces, letting him/her to spend less time to finish a race. 2. Races of 5 and 10 kilometers have the same training plan. One of the observations of the eigenvalues of the diagonalization of the covariance matrix has been that Distance does not have much relevance in a training as a parameter. This tells us, due to the training plan is prepared to train short distance races, that the runner does not need to worry about Distance while training for 5 or 10 kilometers races. 3. Heart rate loses some pace dependance for low values of pace This conclusion comes from the fact that we have seen that Average heart rate and Average pace are independent. 4. Having a better description of a training helps to do a better analysis. Using the most common parameters is not enough to describe completely a training. Most of the running trainings have different parts where the athlete needs to work harder or easier, so the average pace is not the best reference to tell how good has been a training session. 29
5. Intensity Factor is described just by the average pace. Although it seemed to be a sophisticated equation, it has been a relation of the threshold pace value and the average pace done in the training. Due to we have seen that the average pace is not a good indicator to describe a training, we suggest to change its formula by using also the minimum pace. 6. Our training plan helps us to be faster. The analysis of our training plan has shown that we have improved our minimum pace while following the training plan, as we can see in the interval trainings. On a personal point of view, this project has shown to me an example of how mathematics can be used toghether with any field. It has been a great experience to apply data analysis with my hobbies and see how it gives such useful results that I will use for sure in my further trainings and races. In conclusion, athletes will be required to work with mathematics if they want to improve and be the best. Up to now, the contribution of Big Data in sport has been extremly huge and this is just the beggining. For sure, we will see lots of new world records in the future. 30
References In this chapter we can find all the references used in this document: [1] AUBANELL, Anton; BENSENY, Antoni; DELSHAMS, Amadeu. ´ Utiles b´asicos de c´alculo num´erico. Servei de Publicacions de la Universitat Aut`onoma de Barcelona, 1993. [2] CLAUSEN, Clifford; WECHSLER, Harry. Color image compression using PCA and backpropagation learning. Pattern Recognition, 2000, vol. 33, no 9, p. 1555-1560. [3] COGGAN, A., 2020. Normalized Power, Intensity Factor And Training Stress Score. [online] Trainingpeaks.com. Available at: https://www.training peaks.com/blog/normalized-power-intensity-factor-training-stress/ [Accessed 21 March 2020]. [4] Eliud Kipchoge Breaks Two-Hour Marathon Barrier, 2020. Nytimes.com [online] [Accessed 15 June 2020]. [5] GARC´ IA-GONZ´ ALEZ, Alberto, et al. A kernel Principal Component Analysis (kPCA) digest with a new backward mapping (pre-image reconstruction) strategy. arXiv preprint arXiv:2001.01958, 2020. [6] HICHENS, LIZ, 2018, Patrick Lange Goes Sub-8 Hours for First Time in Ironman World Championship History – Triathlete. Triathlete [online]. 2018. Available from: https://www.triathlete.com/events/patrick-lange-goes-sub-8- hoursfor-first-time-in-ironman-world-championship-history/ [Accessed 14 June 2020]. [7] Jolliffe, I. T. Principal component analysis. Second Edition. Springer Series in Statistics, New York, 2002. [8] KARVONEN, Juha; VUORIMAA, Timo. Heart rate and exercise intensity during sports activities. Sports medicine, 1988, vol. 5, no 5, p. 303-311. [9] L´ AZARO, J. Tom´as; OLL´ E, Merce; PACHA, Juan R. Calcul Numeric. Manual de Practiques Facultat de Matematiques i Estadıstica UPC. 31
[10] LI, Mu; FU, Jia-Wei; LU, Bao-Liang. Estimating vigilance in driving simulation using probabilistic PCA. En 2008 30th Annual International Conference of the IEEE Engineering in Medicine and Biology Society. IEEE, 2008. p. 5000-5003. [11] M. Navas and C. Ordonez Efficient computation of PCA with SVD in SQL. Proceedings of the 2nd Workshop on Data Mining Using Matrices and Tensors, 2009. 32