Physical Activity & Fitness Analysis

Introduction

Physical activity is defined as the movement of the human body produced by muscle contraction that generates energy expenditure above the resting metabolic level, and it's closely related to physical exercise and fitness.

Physical exercise is a planned, structured and repeated body movement performed to maintain or improve one or more components of physical fitness. We understand "Fitness" as the set of attributes or qualities that people have or acquire to improve performance.

Nowadays, thanks to technology we can take an in-depth analytical look at my trainings: running styles, training habits, and achievements. Helped with a GPS fitness tracker you can analyze your workout routines to see how are you performing.

If lockdown has inspired you to lace up your trainers and get running, you’re not alone. And if you haven’t yet – as the days get longer and exercise restrictions are eased, it’s a great time to start.

Objetive

Runkeeper is an app that lets you keep track of your progress as your running journey goes. Users can see their stats to check just how far they’ve come, if you are a data enthusiast making a depth analysis would be an interesting way yo get some insights of your progress and performance, and that's exactly what we are going to do.

Data

Fortunately, the app counts with a handy import feature. It’s designed for people with activity data saved on other devices or systems but want to import those activities.

Data Preprocessing

We hae columns that contain irrelevant data for our analysis, so we are going to get rid of them, addicionally we are going to look after missing values and fill them with the average value of the column.

Exploratory Data Analysis

Let's find out about the runnig metrics using a visualization of the five years the data was collected. We want a subplot for each metric, but with an idenpendent y axis for each one, the x axis will be shared.

It seems that by some reason Hearth rate has many missing values, that may be due to it wasn't being recorded. Looking at this metrics it may seem that we can look and find patterns just by sight, but We want to go further and get real numbers that can answer some common questions among fit people:

So, lets answer those questions by making some calculations. We are going to use data from 2015 to 2018 since it has the heart rate recorded.

Lets also plot long term averages of my distance run and my heart rate with their raw data to visually compare the averages to each training session.

Motivation is also important. And a visual of your goals can help you reach them. so lets say that we set a goal for 1000 km per year, through 2013-2018 lets see if we reach the goal marked by a star and dividing our graph in 3 areas.

Lets also answer how are we progressing in running skills by decomposing the weekly distance runned and visually compare it to the original data.

For our last metric visualization we are going to use the heart rate since a popular metric used to measure training intensity. Depending on age and fitness level, heart rates are grouped into different zones that people can target depending on training goals. A target heart rate during moderate-intensity activities is about 50-70% of maximum heart rate, while during vigorous physical activity it’s about 70-85% of maximum. We are going to define som training zones and see the hearth rate distribution by training intensity.

Summary

By this time we have already have visualizated and analyzed our workout performance, however a summary showing our totals would be a great resource. First, we want a summary of the distance (km) and climb (m) variables for each workout type. And second, we want the statistics for the average speed (km/hr), climb (m), and distance (km) variables for each workout type.

Conclusions and Recommendations

It is important to engage in regular physical activity in order to maintain a healthy lifestyle however a large portion of the population is insufficiently active.

Keeping track of your workout data can help you to improve your performance and keep motivation. If you are a data enthusiast making a custom analysis of your data would be a useful and interesting way yo get some insights of your progress.