Next Article in Journal
A Novel Method for Monocular Depth Estimation Using an Hourglass Neck Module
Previous Article in Journal
Vertical Distribution Mapping for Methane Fugitive Emissions Using Laser Path-Integral Sensing in Non-Cooperative Open Paths
Previous Article in Special Issue
Automated Service Height Fault Detection Using Computer Vision and Machine Learning for Badminton Matches
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Engineering Features from Raw Sensor Data to Analyse Player Movements during Competition

1
School of Computing, Dublin City University, Dublin 9, D09 V209 Dublin, Ireland
2
Insight Centre for Data Analytics, School of Computing, Dublin City University, Dublin 9, D09 V209 Dublin, Ireland
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(4), 1308; https://doi.org/10.3390/s24041308
Submission received: 11 January 2024 / Revised: 9 February 2024 / Accepted: 16 February 2024 / Published: 18 February 2024

Abstract

:
Research in field sports often involves analysis of running performance profiles of players during competitive games with individual, per-position, and time-related descriptive statistics. Data are acquired through wearable technologies, which generally capture simple data points, which in the case of many team-based sports are times, latitudes, and longitudes. While the data capture is simple and in relatively high volumes, the raw data are unsuited to any form of analysis or machine learning functions. The main goal of this research is to develop a multistep feature engineering framework that delivers the transformation of sequential data into feature sets more suited to machine learning applications.

1. Introduction

Technological advancements have made it possible to measure positions, motion, and inertial forces related to human movements with several types of new instruments within the field of wearable sensors. Due to their low cost, cutting-edge technology, and easy portability, wearable sensors have been widely used in the last decade to assess and analyse physical activity [1,2,3], game demands [4], and external loads in sports analytics [5,6,7]. The capability of wearable devices for assessing and measuring human physical performances enables them to become a fixture in the near future of sports science.
In the case of GPS technology, these devices transmit the time of orbiting satellites synchronised with GPS receivers on Earth using an atomic clock. By exploiting the signals that the GPS sensor on Earth receives from at least four GPS-orbiting satellites, it is possible to compute the position of the GPS receiver [8]. The validity and reliability of the GPS sensor have been already assessed [9,10,11]. The data collected from the micro wearable devices record the physical load expenditure of athletes during training sessions and games and can be harnessed to assess players’ performances [12], prevent injuries [13,14], quantify match running performances [15], and optimise rehabilitation training [16].
This study uses data collected during games of Gaelic Football (GF), a sport that originated in Ireland, with unique rules that make it a combination between rugby and soccer. Players can carry the ball in their hands but must bounce it to the ground or tap it with their foot every four steps. It is possible to pass the ball with both hands and feet. The goalpost is similar to rugby, and it is possible to score above the crossbar (one point) or below it (three points). GF games are played by two teams of 15 amateur players. The size of the pitch is about 130–150 m in length and 80–90 m in width. GF can be played at the club (local) or county (regional) levels. County games last 70 min, with two halves of 35 min each.

1.1. Problem Statement and Contribution

Studies on Gaelic Football aim to furnish comprehensive running performance profiles for players engaged in competitive matches. This is enabled by wearable technologies, which automate the capture of high volumes of information during most or all sporting activities, such as training and matches. Despite the fact that this form of data harvesting has been widespread for over a decade, the application of machine learning and deep learning techniques is still in the embryonic stage. More complex analyses, such as the prediction of players’ running performances, is not currently addressed. To date, player running profiles have primarily been established through retrospective analysis of historical data. Recent advancements in machine learning techniques have unlocked the potential for forecasting forthcoming events and generating insights. However, automated data acquisition as typically offered by GPS devices delivers data purely on the basis of the location at a specific time, albeit at a very granular level. While some manufacturers will offer to transform this into a more usable format (effort in terms of speed and distance), it is not necessarily at a level suited to machine learning functions and, in some cases, suffers from information loss due to the highly abstract nature of the report data [17].
In this research, we present a multistep framework to manipulate raw sensor values with the objective of creating a feature set suited to predicting further actions or events during game time analysis. In effect, it offers a more data-centric approach to decision making in sports coaching and management. As part of this process, we articulate the contribution of this work as follows:
  • A methodology with a parameterisable ruleset for feature extraction from raw sensor data. In effect, a per-second stream of locations is converted to a sequence of actions.
  • An algorithm to convert a sequence of actions into an event where the event captures movement from (close to) rest and a return to the same resting state.
  • The application of existing research, covering typical in-game player workloads, to offer a comparative validation for our feature set creation. As part of this validation, a dimensional analysis of game/player workloads is presented by game (time), player, or action.
  • Finally, as a proof of concept for the application of machine learning to predict player performances towards the end of the game, the first half of a selected game plus the other previous games are used to predict the number of metres covered at high speed for the second half, with a discussion as to how these machine learning functions performed over the task.

1.2. Paper Structure

Section 2 provides a discussion of past feature engineering methods on sensor data and past GF research on players’ running performances. Section 3 describes the data acquisition and the multistep framework to obtain the Actions and Events datasets. Section 4.2 presents the validation of the Actions dataset, a set of statistics on the players’ actions and events during gameplay, and the prediction of forthcoming events. Concluding remarks are presented in Section 6.

2. Related Research

2.1. Feature Engineering

Data collected by wearable sensors represent a time series comprising latitude, longitude, and speed values. If properly analysed and processed, it is possible to extract valuable information and insights [18]. Time series can be analysed directly, or it is possible to extract features describing trends and variances [19]. A valid and effectual method for pattern recognition in time series analysis is to define the time series with respect to the distribution of data points, correlation properties, trends, and data spread [19]. The engineering of the raw data for obtaining new transformed features is a common process in GPS data analytics. The researchers in [20] proposed a transportation-mode classification method based on combining feature engineering techniques and a Light Gradient Boosting Machine to discover seven kinds of transportation modes from GPS trajectory data. The original trajectories were divided into sub-trajectories (sequences of GPS data points), where each sub-trajectory represents a unique transportation mode. Then, on these sub-trajectories were extracted the following features: the distance, average velocity, expectation velocity, expectation acceleration, 95th percentile velocity, 95th percentile acceleration, minimum velocity, variance velocity, heading change rate, stop rate, and velocity change rate. Working on the same dataset, the authors in [21] used a different set of features for the classification. In addition to the speed and acceleration, they computed the jerk, bearing, and bearing rate for each data point. Therefore, for each sub-trajectory example, they extracted the minimum, maximum, mean, median, standard deviation, and 10th, 25th, 50th, 75th, and 90th percentile for each of the specific features.
A follow-up study [22] improved the prediction results by adding additional features, both statistical attributes (kurtosis, skewness, coefficient of variation, and autocorrelation coefficient) and domain knowledge (stop rate, velocity change rate, and head change rate). The new set of statistical features benefits the final prediction [22], but some of them are slightly different measures even for the same concept (for example, the standard deviation and coefficient of variation have a similar formula and record the spread of data). This can lead to, for example, multicollinearity (an approximately linear relationship between two or more independent variables) in the data, which can damage the effectiveness of the model [23].
To recognise modes of driving railway trains from GPS data, the authors in [24] derived multiple features from the speed of locomotives during routes (in addition to some domain-specific features). The set of features can be grouped into global statistical features (mean, standard deviation, mode, median, max three consecutive values, min three consecutive values, value range, interquantile range, skewness, kurtosis, coefficient of variation, autocorrelation coefficient, stop rate, velocity change rate, distance), local statistical features (mean length of each decomposition class, length standard deviation of each decomposition class, proportion of each decomposition class, change times), and time-domain and frequency-domain features (median crossover rate, number of peaks, short-time Fourier transformation).

2.2. Players’ Running Performance Research in Gaelic Football

In the last decade, sports institutions and teams developed a deep interest in data-driven approaches, aiming to support decision makers in obtaining a competitive advantage. Data obtained from wearable sensors can be exploited in several ways, from describing, planning, and monitoring external loads to injury prediction. External loads in invasion field-based team sports (IFTSs) can be described by measures of total distance covered (or in specific speed bands), accelerations, or metabolic power [25]. Such metrics are the result of defined computation on data obtained via tracking systems (wearable devices) worn by the players during training sessions or official games.
The authors in [15] analysed the match running profiles of GF players. They collected data from 50 male GF players using a 4 Hz GPS sensor across 30 competitive games with a total of 212 full-game datasets collected. The variables analysed were the following: high-speed distance, sprint distance, mean velocity, peak velocity, and number of accelerations. The average match distance covered by the players was 8160 ± 1482 meters m with 1731 ± 659 m covered at high speed. The sprint distance was 445 ± 169 m with 44 sprint actions on average per match. The peak velocity was 8.4 ± 0.5 m/s with a mean velocity of 1.8 ± 0.3 m/s. The number of average accelerations completed per player was 184 ± 40. Significant differences between positions were found for total running distance, high-speed running distance, and sprint distance, with midfielder being the position most demanding for the variables total and high-speed running distance. The researchers found a significant reduction in the high-speed and sprint distance between the first and second half.
In later work by the same authors [26], they aimed to identify the position and duration of the running performance of GF players using a moving average window. The study was performed on 35 players across 32 competitive matches analysed with 300 full-match play data samples using a 4 Hz GPS sensor. Players were grouped based on their position: full-back, half-back, midfield, half-forward, and full-forward. The researchers tested ten different lengths (1 to 10 min) for the moving average to analyse the recorded speeds.
The researchers in [27] quantified the running profiles of GF players according to their position and evaluated the trend of physical performance during the games. The average relative distance recorded was 92.4 ± 23.3 m per minute m/min, composed of 28.4 ± 10.2 m/min covered at a speed ≥ 4 m/s (high-intensity running) and 9.9 ± 3.9 m/min at a speed ≥ 5.5 m/s (very high intensity running). The distance covered at high-intensity running was higher in half-backs, midfielders, and half-forwards compared to the full-backs and full-forwards. The time window P1, grouping the first 15 min of the first half (0–15 min), observed the highest amount of distance covered at each speed zones, with a linear decrease during the windows P3 (40–55, first 15 min of the second half), P2 (15–30), and P4 (55–70).
The differences in running performance between GF positions have been investigated by [28]. The running performance is dependent on the position on the pitch ( p < 0.001 ). Midfielders cover a greater amount of total and relative distances compared to the other positions. Half-backs and half-forwards ran greater total distances compared to full-forward and full-backs. Midfielders were also observed to cover a greater amount of distance at high speeds compared to all other positions, while half-backs and half-forwards traversed distances at high speeds more than the other remaining position groups. Sprinting distances were covered more by half-forwards, followed by half-backs and midfielders.
Similar differences in running performance between different GF playing positions have been confirmed in [29]. The authors found that the midfielders covered a significantly greater distance than defenders and that the frequency of jogging, cruise running, striding, and walking was greater in midfielders rather than in the forward positions [29].
The study [30] reported that GF players perform 166 ± 41 accelerations per game. The high-speed running distance and very high speed running distance were reported to be equal to 1563 ± 605 and 524 ± 190 m, respectively. The average distance covered during acceleration is 267 ± 45 m, distributed at 12 ± 5 accelerations per 5 m epoch. The maximum distance covered in acceleration is 296 ± 134 m.

2.3. The Concept of Movement Event in Sport Science Research

The concept of the movement event used in this research is based on the study [31], which designed a new approach to detect recurrent movements in sports by analysing positional data. Speed, acceleration, and angular velocity values were obtained from sequential sequences of positional data and clustered with the k-means algorithm, in order to create subgroups of values. Each action is composed of three values for the three dimensions. Sequences of actions were compared, assessing similarities using the longest common sub-string algorithm [31].
The authors in [32] proposed a framework for extracting movements from sequential GPS data. Similar to [31,32], they combined the speed, acceleration, and direction of the movement (turning angle) for defining a player movement description, utilising thresholds for each movement descriptor in order to assign individual labels (letters). Each sequence of movements starts and ends when a player is at a speed less than or equal to 1.2 m/s. The researchers in [32] compute distances among movement descriptors using the Levenshtein distance, which computes the number of required steps to transform one list of strings into another.
Based on the concept of an event as a sequence of actions between resting states defined in [31,32], this research satisfies the necessity of identifying profiles of events. Events are analysed using frequencies, the number of actions, the average and max duration, and the average and max distance covered.
Summary. Table 1 summarizes the key insights and contributions from past research relevant to our study.
We build on each of the three areas in the research described above, as we have developed a novel multistep framework, designed for the purpose of feature engineering raw sensor data into multi-granular datasets, for the purpose of exploiting machine learning functions to predict future events during game time. To the best of the authors’ knowledge, this framework represents a pioneering approach directed towards the acquisition and manipulation of features, to enable both machine learning applications and the analysis of actions and events utilising sensor data within the field of sport analytics. In addition, predictive modelling techniques are employed to forecast the high-speed distance of forthcoming events during the second half of competitive games based on the acquired data from the first half and the previous games.

3. Enrichment of Raw Sensor Data

In this section, we present a multistep method illustrated in Figure 1, which transforms raw sensor data into a series of higher-level events, which are more easily analysable. Our method is based on the concepts of actions and events, which deliver data more suited to rich forms of analysis and a broad range of machine learning functions. In summary, for each second of the game, speeds are converted to one of six action labels: ‘standing’, ‘walking’, ‘jogging’, ‘running’, ‘high-intensity running’, and ‘sprinting’, according to velocity thresholds widely accepted and defined in the literature [34]. An event is considered to be a collection of sequential actions, bookended by either ‘standing’ or ‘walking’ actions. In summary, players are regarded as being relatively static before commencing into some form of movement or sequence of actions. This feature engineering process is underpinned by a set of rules or logic taken from domain experts and the existing literature. The values shown in Table 2 represent six activity zones, which are standard across many sports, making this feature extraction process widely generic. Furthermore, the adjustment of the parameters or values within zones enables a customisation across sports, gender, and age.

3.1. Data Acquisition

The first step shown in Figure 1 is data acquisition, which refers to the generation of data on devices strapped to players and the extraction of that data from each device.
For this study, data were collected during 11 competitive GF inter-county games throughout the seasons 2019–2021. The players wore a micro GPS sensor device (STATSports Apex 10 Hz, Northern Ireland, UK), placed on the upper back, within a vest that fitted the body comfortably. Previous research assessed the accuracy and reliability of the specific sensor involved [11]. The study claims that the 10 Hz Apex unit reported a small error of around 1–2% of the distances measured in the experiments and that the unit could be used with confidence to measure distance variables during training and match play [11].
The GPS sensor records 10 observations for each second for the variables latitude, longitude, and speed (m/s). The raw data, shown in Table 3, were collected only when the athletes were actively taking part in the game and were provided already filtered by the STATSports software (version: 4.5.19).

3.2. Aggregation (Temporal Rollup)

The Data Aggregation step (which we refer to as temporal rollup) is necessary as data are sampled at too fine a level of granularity for our research purposes. Raw data files may, for example, contain data sampled at 10 Hz (10 observations per second). For the scope of this paper, a single observation per second provides a sufficient level of detail, which, in effect, is a temporal rollup to 1 s values. Thus, the input to this step is the 10 Hz dataset and the output is a dataset with one observation per second.
Our decision was to adopt the average values within each 1 s interval, as it provides a good approximation for describing movement within that timeframe. The location (latitude and longitude) is transformed to the centroid of the locations covered, while the variable speed would be the average values during the second (Table 4).

3.3. Feature Extraction

The 1 s interval data now serve as input to this second step where the goal is to further aggregate the data: in this case, a rollup to the level of action. Each data point will no longer represent 1 s of activity but an entire action, which will likely run over a number of seconds. This is carried out using a set of speed thresholds demarcating the transition from one movement type to another.

3.3.1. Parameter Definition

No standardised set of speed thresholds is available for IFTSs [35] to classify a player’s movement. Speed thresholds suggested by [34], which are commonly used in IFTSs, were therefore adopted. Each speed value  x i  ( i = 1 , 2 , , n , where n is the last second of the game) recorded in the instant of time i is converted to an action using the labelled thresholds (Table 2).
In addition, the acceleration is computed by subtracting each speed value from the previous one. A sample of the dataset after this step is shown in Table 5.
Algorithm 1 illustrates the DetectAction algorithm. This algorithm sequentially processes the rows of a dataset related to one of the halves of a game played by a single player. It effectively compresses similar actions into a unified row, simplifying a sequence of consecutive actions. It computes various features on the identified actions, such as the minimum and maximum values, the absolute energy (sum of squared values), the count of values above the average, the sum of all values (sum over the time series values), the length of the longest consecutive subsequence above the mean (longest strike), and the coefficient of variation ( standard deviation mean ) for the variables speed and acceleration. Additionally, the number of accelerations and decelerations are measured as the count of times the acceleration values were  2 and  −2.
Algorithm 1 DetectAction algorithm
Require: N rows of dataset
Require:  N 2
Require:  x z  action performed by the player at iteration z
Require:  t z  time of the game at iteration z
1:
a v g _ s p e e d 0
2:
a v g _ s p e e d _ l i s t  []
3:
s t a r t _ t i m e _ l i s t  []
4:
e n d _ t i m e _ l i s t  []
5:
y c u r r e n t _ a c t i o n
6:
z 0
7:
while    i N do
8:
      if  x i = y  then
9:
          c o n t i n u e
10:
    else if  x i y  then
11:
         a v g _ s p e e d a v g ( x z , , x i 1 )
12:
         a v g _ s p e e d _ l i s t [ z ] a v g _ s p e e d
13:
         s t a r t _ t i m e _ l i s t [ z ] t z
14:
         e n d _ t i m e _ l i s t [ z ] t i 1
15:
         z z + 1
16:
         y x _ i
17:
    else if  i = N  then
18:
         a v g _ s p e e d a v g ( x _ z , , x _ i )
19:
         a v g _ s p e e d _ l i s t [ z ] a v g _ s p e e d
20:
         s t a r t _ t i m e _ l i s t [ z ] t z
21:
         e n d _ t i m e _ l i s t [ z ] t i
22:
    end if
23:
end while
The algorithm also captures the time when the action occurred, the start and end locations on the pitch, and the duration of the action in seconds. It is important to mention that actions are recorded with a minimum duration set at 1 s.
Algorithm 1 exclusively displays the variables of average speed, starting time, and ending time. The variables recording the starting and ending locations adhere to the rule of the starting and ending times, while the remaining variables (min, max, absolute energy, longest strike, etc., both for speed and acceleration) follow the criterion of average speed.
Algorithm 1 iterates through the N rows of a dataset (Table 5) comprising the sequence of the time, location, speed, action, and acceleration of a player during a game. At each iteration i, the action performed by a player is indicated by the variable  x i  and the time when the action occurs by the variable  z i .
The first step of the algorithm is to initialise the required variables avg_speed, avg_speed_list, start_time_list, end_time_list, y, and z, which will measure the average speed during the action, the list of such speeds, the time when the action begins and the time when it ends, the current stored action, and the row when the action starts, respectively (1–6). While iterating over each row of the dataset (which has a length equal to N) (7), if the current performed action is equal to the current stored action, then it continues with the next row (8, 9). If the two actions are different (10), then the average speed from the row when the action starts to the current row is computed (11) and stored in the list of the speeds (12), the starting time and ending time of the action are added to the corresponding lists (13, 14), and the variables storing the row when the action starts (z) and the current action (y) are updated (15, 16). If the row is the last row of the dataset (17), the algorithm computes the average speed until this row (18), it stores the value in the list of the speeds (19), and it adds the starting time and ending time of the action to the corresponding lists (20, 21).
Algorithm 1 requires the data points to be consecutive on a per-second basis. It thus works on one half per time. It is suggested to apply it individually to each half of the game for each player and subsequently concatenate the results.
A sample of the resulting dataset after this step is shown in Table 6 (some of the features introduced in this section have been omitted).

3.3.2. Direction of Movement

In order to detect the direction of movement, the next step is the computation of the turning angle from the position at time i (beginning of the action) and the position at  i + 1  (end of the action) [32] ( i = 1 , 2 , , n , where n is the last second of the game). The turning angle is the angle you would need to turn from the starting direction to the ending direction in order to reach the destination. For obtaining the turning angle, the bearing for the two consecutive points should be computed and then subtracted. The bearing is used to describe the direction or angle between two points, measured clockwise from the magnetic north. It represents the direction you would need to travel in a straight line from point A to point B, measured in degrees. There are different steps needed for computing the bearing:
1.
Compute X and Y [32]:
X = cos ( θ B ) sin ( Δ L ) ,
Y = cos ( θ A ) sin ( θ B ) sin ( θ A ) cos ( θ B ) cos ( Δ L ) ,
where  θ  denotes the latitude, L denotes the longitude, A and B denote two consecutive decimal coordinates, and  Δ L  denotes the difference between L at A and L at B.
2.
Compute the bearing  β  [32]:
β = arctan 2 ( X , Y ) ,
3.
The turning angle  τ  is obtained by subtracting the bearing computed on two successive time points [32]:
τ = β i β i 1 ,
The numerical turning angle values are expressed as degrees from  0  to  360  and are then converted to a label (forward, backward, right, and left) expressing the direction of movement (Table 7)

3.4. Event Detection

As per our earlier definition in Section 3.2, an event is a sequence of actions that occur between two resting states ‘standing’ or ‘walking’. Therefore, an event commences when the player transitions out of a ‘standing’ or ‘walking’ state (speed  2  m/s) to performing actions at higher speeds ‘jogging’, ‘running’, etc. and finally returns to a ‘standing’ or ‘walking’ movement (Figure 2). Each event can be of different lengths and compositions but all start and end with ‘standing’ or ‘walking’ unless some unexpected interruption occurs. This definition of an event is based on past research [31,32].
The DetectEvent algorithm (Algorithm 2) iterates through the N rows of the dataset corresponding to one half of a player’s game (Table 6) to identify actions associated with the same event.
Algorithm 2 DetectEvent algorithm
Require:  N 2
Require:  x z  action performed by the player at the iteration z
1:
y s Standing
2:
y w Walking
3:
e v e n t s _ l i s t  []
4:
i d _ e v e n t 0
5:
c u r r e n t _ s t a t e 0
6:
while    i N do
7:
    if  x i = y s  or  x i = y w  then
8:
        if  c u r r e n t _ s t a t e = 1  then
9:
              i d _ e v e n t i d _ e v e n t + 1
10:
            e v e n t s _ l i s t [ i ] i d _ e v e n t
11:
        end if  c u r r e n t _ s t a t e = 0
12:
         e v e n t s _ l i s t [ i ] i d _ e v e n t
13:
         c u r r e n t _ s t a t e 1
14:
    end if  x i y s  and  x i y w
15:
     e v e n t s _ l i s t [ i ] i d _ e v e n t
16:
     c u r r e n t _ s t a t e 0
17:
end while
Algorithm 2 begins with the initialisation of variables:  y s y w , events_list, id_event, and current_state, representing a variable equal to ‘standing’, a variable equal to ‘walking’, the list of the events ids, the current event id, and the current state, respectively (1–5). Current state is an indicator that contains 0 the first time the algorithm meets an action equal to ‘standing’ or ‘walking’ or 1 if it has already met one. While iterating over the dataset (6), if the current action x_i is equal to ‘standing’ or ‘walking’ (7), two situations can occur. If the current state is equal to 1 (8), a new event starts: the id_event is increased by 1 (9), and the new value is added to the list of events (10). On the contrary, if the current state is equal to 0 (11)), add the id_event to the list of the events (12) and switch the value of the variable current state to 1 (13). If the current action x_i is different from ‘standing’ or ‘walking’ (14), add the current id_event to the list of the events (15) and set the current state to 0 (16).
At the end of this step, each action is assigned to an event with a unique identifying label (Table 8).
The final step in constructing the Events dataset involves the aggregation of actions and action features into events. The Actions dataset is aggregated into the Events dataset by grouping rows sharing the same event ID. Each row of the final Events dataset represents an event performed by a player in a game.
Table 9 displays a sample of the resulting Events dataset. ‘player ID’ indicates the ID of the player; the ‘event ID’ indicates the ID of the event; ‘start_second’ and ‘end_second’ indicate the starting and ending seconds from the beginning to the game ‘start_time’ and ‘end_time’, expressed in Table 6 as a specific time in the format HH:MM:SS, have here been converted); ‘start_lat’, ‘start_lon’, ‘end_lat’, and ‘end_lon’ indicate the starting and ending locations of the event; ‘avg speed’ and ‘std speed’ indicate the average and the standard deviation of the speed of the actions composing the event; ‘duration’ indicates the duration of the event; ‘std duration’ indicates the standard deviation of the duration of the actions composing the event; ‘distance’ indicates the distance covered during the event; high-speed distance’ indicates the distance covered at speed ≥5.5 m/s during the event; and ‘unique turning angles’ indicate the number of different directions of movement during the event.
The average and standard deviation has been calculated for the statistical features derived from the speed and acceleration values of each action and presented in Section 3.3.1. These features include the minimum and maximum values, absolute energy, count of values above the average, sum of all values, length of the longest strike, and coefficient of variation. Furthermore, the total count of accelerations and decelerations has been calculated for each event.
Not all the collected features have been displayed in Table 9 due to space reasons.

4. Statistical Summaries and Feature Set Validation

To validate the framework, metrics previously adopted in GF research are applied to the Actions dataset, aiming to assess whether findings in this research align with those from prior studies. Then, a statistical analysis of the data comprising the constructed dataset is provided. Speeds, distances, actions, and events are analysed by halves or matches in order to show trends, patterns, similarities, and differences.
Several statistical t-tests on the variables have been conducted to investigate differences between the first and second halves of games. Finally, three predictive models are tested on the Events dataset to forecast the high-speed distance covered by players during the second half of a selected game, based on the first half and the remaining games.

4.1. Actions Dataset Evaluation

In order to verify that the Actions dataset is a true reflection of the actual game, it would be necessary to watch and record the movements of all 15 players in real time, a process that is both impractical and would not scale. Instead, our decision was to compare the dataset with the existing literature to ensure that our feature engineering process delivers a dataset that is in line with existing analyses in terms of the overall volumes and intensity of games. In this respect, we investigated if running profiles are coherent with previous findings in GF research using the in-game profile of elite male Gaelic Football in [15]. The authors identified an average distance covered of 8160.11 ± 1482.02 m, with 1731.29 ± 659.76 m covered at speed  4.72  m/s and 445 ± 169 m at speed  6.11  m/s. Similar values are observed in the Actions dataset: the average distance identified is 8633.8 ± 1573.6 m, with 1453.6 ± 552.7 m covered at high speeds of  4.72  m/s and 503.5 ± 205.1 m at a sprinting speed of  6.11  m/s.
Consistent outcomes were observed even for both the average and peak speeds: 1.8 ± 0.3 m/s and 8.4 ± 0.5 m/s, respectively, in [15] and 2.8 ± 1.6 m/s and 8.4 ± 0.5 m/s in this current research.
In a separate study conducted using the same data [36], the authors observed a reduction in the distance covered between the first and other quarters of the game: −4.1% with the second, −5.9% with the third, and −3.8% with the fourth. They observed a reduction in high-speed running distance (≥4.72 m/s) in the second (−8.8%), third (−15.9%), and fourth (−19.8%) quarters when compared to the first quarter. This research found, in part, a similar reduction in the distance covered between the first and other quarters of the game: −6.6% with the second, −6.6% with the third, and −15.8% with the fourth. When comparing the high-speed running distance between the first and other quarters, the reductions were equal to −7.2% (second), −11.3% (third), and −17.1% (fourth).
The previous comparisons reveal a consistent analogy between this research’s findings with those obtained by prior GF research. The marginal differences identified may be attributed to the different sample sizes or players’ fitness levels.

4.2. Games: Half by Half Analysis

The goalkeeper has been omitted from the analysis due to the difference in physical demands. The average speeds during the first and second halves are 2.84 ± 1.62 m/s and 2.73 ± 1.61 m/s, respectively. The t-test reports a statistically significant difference between the two means (p-value:  1.89 × 10 12 ).
The count, average, and standard deviation of the duration and maximum duration of the aggregated actions are shown in Table 10. The mean count of actions for each game is 3945 ± 286. The average duration of the actions is 2.9 ± 0.1 s. The average of the maximum duration of the actions is 25.2 ± 3 s.
The resulting p-value for the t-test on the count of actions is 0.004 (lower than the chosen level of significance, 0.05), showing a statistically significant difference for the number of actions in the two halves of the game, which is always higher in the first half.

4.3. Analysis of Extracted Actions

An analysis of all labelled actions is presented in Table 11. The average number of actions per game decreases as the speed increases: ‘jogging’ (4400.5 ± 226.5), ‘running’ (2402.5 ± 138.9), ‘high-intensity running’ (827.9 ± 54.3), and ‘sprint’ (155.1 ± 14.6).
A t-test has indicated the presence of a statistically significant difference in the mean duration of ‘high-intensity running’ actions between the first half (2.0 ± 0.1 s) and the second half (2.2 ± 0.1 s). In reference to the other actions, the mean duration of ‘jogging’, ‘running’ and ‘sprint’ actions are 3.4 ± 0.1, 2.3 ± 0.1, and 2.1 ± 0.2 s, respectively.
A statistically significant difference has been identified through a t-test for the mean distance per ‘high-intensity running’ action between the first and second halves (12.4 ± 8.7 and 13.1 ± 9.6 m).
The remaining actions revealed similar outcomes when comparing the two halves.

4.4. Analysis of Events

Events composed only of the actions ‘standing’, ‘walking’, and ‘standing’ and ‘walking’ are removed from the current analysis.
The average number of events during the first and second halves are 1657.3 ± 106.7 and 1538.2 ± 94.9, respectively.
The highest number of events during the first half is 1937, with 7.1 ± 6.1 s of average duration and 63 s of maximum duration for an event (Table 12). The highest for the second half is 1669 with 7.1 ± 6.2 s of average duration and 72 s of maximum duration for an event.
The average number of actions per event is 2.55 ± 2.25, with 1 as the minimum and 21 as the maximum.
Figure 3, Figure 4 and Figure 5 show the frequency of values for the features ‘duration’, ‘distance’, and ‘high-speed distance’. The shape of the frequency distribution is similar for the three investigated features, characterised by elevated frequencies at lower values and a visible decline as values increase.

5. Case Study: Predicting High-Speed Actions

While the main focus of this work is on engineering feature sets from the raw sensor data, it is useful to illustrate a case study of the types of possible analyses using the new feature set. Here, we run a number of experiments to predict the high-speed distance covered by players during games, comparing the results obtained by three different machine learning models.
Knowing this metric in advance can be useful for sports coaches to manage players’ time on the pitch, for example, to avoid fatigue or even injuries. The challenge is to predict, for each player, the high-speed distance covered per event during the second half of a target game. Then, these predicted distances are summed to obtain the predicted total high-speed distance per player.
The dataset used to complete this task is a transformation of the Event dataset (Table 9). For each player, a sequence of 30 consecutive high-speed distance values is used as a new set of features, and the variable to predict is the high-speed distance at the 31st position (Table 13).
To replicate a real-world scenario, each model predicts the high-speed distance values for the second half of the last game in a sequence of games, using training using data from the first half of the same game and all prior games in the sequence (in this case study, 10 previous games). The time series data of high-speed distance for the remaining games plus the first half of the tested game are merged to form a unique time series. The first half of the tested game is placed at the end of this time series, as shown in Figure 6. These data constitute the training set for the predictive experiments.
While the learning phase uses data from prior games together with the first half of the target game, during the testing phase, the test set is the model’s predictions. This approach is known as recursive forecasting. In this method, the model is trained on historical data, and rather than having a separate test set, it uses its predictions as inputs for future predictions. This experiment simulates the real scenario of the second half distances being forecast during the half-time break based on data from the first half and the previous games.
Assuming N as the number of events performed by player i during the first half, validation can thus be described as follows:
1.
The sequence composed of the last 30 high-speed distance values of the first half is used as input (test set) by the model to generate the first prediction.
2.
The sequence composed of the last 29 high-speed distance values of the first half plus the first prediction of the second half is used as input by the model to generate the second prediction.
3.
Finally, the Nth prediction uses the previous N − 1 predictions. If  N 1 < 30 , the remaining inputs are taken from the final high-speed values in the first half.
At the start of the second half, the number of player events for the half is unknown, and for the purpose of the experiment, we assume this number to be equal to the number of events in the first half. Thus, the recursive prediction process is repeated as many times as the number of events performed by the player during the first half.
It was decided to use customised models per player (as opposed to one model for all player positions) by training and testing players separately. The players involved are those who played during the first half of the tested game and played in at least one of the previous games. The set of features used is the same for each model. Three separate models were applied to solve the predictive task:
1.
XGBoost [37] with the following hyperparameters: n_estimators, 100; learning_rate, 0.1; max_depth, 3; min_child_weight, 1; colsample_bytree, 1; subsample, 1; reg_alpha, 0; reg_lambda, 1.
2.
A Long Short-Term Memory Network (LSTM) formed by the following layers: Bidirectional LSTM (unites = 64, activation = ‘tanh’) [38], Bidirectional LSTM (unites = 32, activation = ‘tanh’), Dropout (0.20), LSTM (unites = 16, activation = ‘tanh’), Feed Forward (units = 20, activation = ‘relu’), and Feed Forward (units = 1, activation = ‘linear’). The optimiser used is ‘Adam’ [39]; the learning rate and the number of epochs are 0.001 and 50, respectively.
3.
A Convolutional Neural Network (CNN) formed by the following layers: one-dimensional convolutional (filters = 64, kernel_size = 5, activation = ‘relu’) [40], one-dimensional convolutional (filters = 32, kernel_size = 3, activation = ‘relu’), one-dimensional convolutional (filters = 10, kernel_size = 5, activation = ‘relu’), one-dimensional MaxPooling (pool_size = 2) [41], Flatten, Feed Forward (40, activation = ‘relu’), Dropout (0.2), and Feed Forward (1, activation = ‘linear’). The optimiser used is ‘Adam’; the learning rate and the number of epochs are equal to 0.001 and 50, respectively.
The LSTM and CNN networks have been implemented in Keras [42]. The predicted event-by-event high-speed distances are summed for each player. In this way, it is possible to obtain the total predicted high-speed distance for the second half. Table 14 compares the predicted value with the true distances covered at high speed for each player. Only those players who played for the entire first and second halves are included. The goalkeeper has been removed from the analysis.
The mean absolute error (MAE) measures the average absolute difference between the predicted values and the actual target values and was used as it is less sensitive to outliers than the root mean squared error. For each model, the MAE between the predicted and the true high-speed distances, displayed in Table 14, has been computed. The MAE is equal to 141.7, 86.2, and 116.4 m for the XGBoost, LSTM, and CNN models, respectively. In short, the LSTM model, to predict the total distance at high speed covered during the second half of the tested game, makes, on average, an error of 86.2 m per player. The average distance at high speed covered by the 10 analysed players during the second half of the game was 358.4 m. On average, the LSTM model makes a percentage error of 24.1% on the total real high-speed distance.
The calculation of the MAE for each event is made impossible by the assumption of an equal number of events between the first and second halves. Indeed, the number of events in the second half (y test) is different from the number of events in the first half (y pred) (Table 14).
We should make clear the limitations of this particular case study. The high-speed distance in the second half could be estimated by fitness coaches by combining the average speed and the peaks of the speed of players. However, our goal is to demonstrate the possibilities using this novel feature set. As this is the first attempt to combine GPS data and machine learning models to predict future high-speed distances, it represents an initial baseline for future comparisons in this task.

6. Conclusions

The application of wearable sensor data to analyse the movements, actions, and positions of players for decision support is underused in terms of the potential exploitation of data. The existing literature describes relatively conservative approaches in how wearable sensor data are processed and applied. To the best of the authors’ knowledge, this is the first framework-based approach to process raw GPS data into a feature set suitable for supervised and unsupervised machine learning tasks in the sporting domain. The overall process comprises a number of distinct steps. A temporal rollup to 1 s values is performed by computing the centroid of the locations and the average speed in the 10 observations per second. The average speed is subsequently converted to action labels, which are well understood in the literature. Consecutive rows showing the same actions are aggregated, and several features are computed to form the Actions dataset. The DetectEvent algorithm uses the Actions dataset to group actions into a single event by collecting summary features, to build the Events dataset.
The Actions dataset was validated by comparison with metrics presented in the related literature. A machine learning case study was developed using the Events dataset to show one potential application of the feature engineering methodology. The problem of predicting the high-speed distance covered by players in the second half of a game based on past games and the first half is a new idea, and while this represents a relatively simple study, it represents a baseline for future improvements.
It is important to highlight that this work provides a relatively small case study demonstrating the effectiveness and comparative capabilities of machine learning models. Future research is deliberately planned to enhance the selection, training, and evaluation of machine learning models to ensure the accuracy and stability of the models. Using the dataset created by the work presented here, we are currently focusing on graph-based machine learning for predicting high-speed and distance events late in games; ensemble learning models to predict the future sequence of actions; and anomaly detection functions to detect unusual event sequences within games.

Author Contributions

Conceptualisation, V.A., M.R. and A.M.; methodology, V.A. and M.R.; software, V.A.; validation, V.A. and M.R.; formal analysis, V.A. and M.R.; writing–original draft preparation, V.A.; writing—review and editing, M.R.; visualisation, V.A.; supervision, M.R. and A.M. All authors have read and agreed to the published version of this manuscript.

Funding

This work was supported by Science Foundation Ireland through the Insight Centre for Data Analytics (SFI/12/RC/2289_P2) and the SFI Centre for Research Training in Machine Learning (18/CRT/6183).

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki, and approved by the Institutional Review Board (or Ethics Committee) of Dublin City University (protocol code DCUREC/2021/267 and date of approval 27 January 2022).

Informed Consent Statement

Written informed consent has been obtained from the patient(s) to publish this paper.

Data Availability Statement

Dataset available on request from the authors.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
GPSGlobal Positioning System
IFTSInvasion Field-Based Team Sport
GFGaelic Football
MLMachine Learning

References

  1. Camous, F.; McCann, D.; Roantree, M. Capturing personal health data from wearable sensors. In Proceedings of the 2008 International Symposium on Applications and the Internet, Turku, Finland, 28 July–1 August 2008; IEEE: New York, NY, USA, 2008; pp. 153–156. [Google Scholar]
  2. Miškinytė, A.; Dėdelė, A. Objective assessment of physical activity patterns based on accelerometer and GPS data in adults. Travel Behav. Soc. 2021, 25, 112–119. [Google Scholar] [CrossRef]
  3. Bennett, T.; Marshall, P.; Barrett, S.; Malone, J.J.; Towlson, C. Quantifying high-speed running in rugby league: An insight into practitioner applications and perceptions. Int. J. Sports Sci. Coach. 2022, 18, 1530–1540. [Google Scholar] [CrossRef]
  4. Calderón-Pellegrino, G.; Gallardo, L.; Garcia-Unanue, J.; Felipe, J.L.; Hernandez-Martin, A.; Paredes-Hernández, V.; Sánchez-Sánchez, J. Physical demands during the game and compensatory training session (MD+ 1) in elite football players using global positioning system device. Sensors 2022, 22, 3872. [Google Scholar] [CrossRef] [PubMed]
  5. Dwyer, D.B.; Gabbett, T.J. Global positioning system data analysis: Velocity ranges and a new definition of sprinting for field sport athletes. J. Strength Cond. Res. 2012, 26, 818–824. [Google Scholar] [CrossRef] [PubMed]
  6. Rossi, A.; Perri, E.; Trecroci, A.; Savino, M.; Alberti, G.; Iaia, F.M. GPS data reflect players’ internal load in soccer. In Proceedings of the 2017 IEEE International Conference on Data Mining Workshops (ICDMW), New Orleans, LA, USA, 18–21 November 2017; IEEE: New York, NY, USA, 2017; pp. 890–893. [Google Scholar]
  7. Mandorino, M.; Figueiredo, A.; Cima, G.; Tessitore, A. Analysis of Relationship between Training Load and Recovery Status in Adult Soccer Players: A Machine Learning Approach. Int. J. Comput. Sci. Sport 2022, 21, 1–16. [Google Scholar] [CrossRef]
  8. Larsson, P. Global positioning system and sport-specific testing. Sport. Med. 2003, 33, 1093–1101. [Google Scholar] [CrossRef] [PubMed]
  9. Scott, M.T.; Scott, T.J.; Kelly, V.G. The validity and reliability of global positioning systems in team sport: A brief review. J. Strength Cond. Res. 2016, 30, 1470–1490. [Google Scholar] [CrossRef]
  10. Hoppe, M.W.; Baumgart, C.; Polglaze, T.; Freiwald, J. Validity and reliability of GPS and LPS for measuring distances covered and sprint mechanical properties in team sports. PLoS ONE 2018, 13, e0192708. [Google Scholar] [CrossRef]
  11. Beato, M.; Coratella, G.; Stiff, A.; Iacono, A.D. The validity and between-unit variability of GNSS units (STATSports Apex 10 and 18 Hz) for measuring distance and peak speed in team sports. Front. Physiol. 2018, 9, 1288. [Google Scholar] [CrossRef]
  12. Aughey, R.J. Applications of GPS technologies to field sports. Int. J. Sports Physiol. Perform. 2011, 6, 295–310. [Google Scholar] [CrossRef]
  13. Naglah, A.; Khalifa, F.; Mahmoud, A.; Ghazal, M.; Jones, P.; Murray, T.; Elmaghraby, A.S.; El-Baz, A. Athlete-customized injury prediction using training load statistical records and machine learning. In Proceedings of the 2018 IEEE International Symposium on Signal Processing and Information Technology (ISSPIT), Louisville, KY, USA, 6–8 December 2018; IEEE: New York, NY, USA, 2018; pp. 459–464. [Google Scholar]
  14. Colby, M.J.; Dawson, B.; Heasman, J.; Rogalski, B.; Gabbett, T.J. Accelerometer and GPS-derived running loads and injury risk in elite Australian footballers. J. Strength Cond. Res. 2014, 28, 2244–2252. [Google Scholar] [CrossRef]
  15. Malone, S.; Solan, B.; Collins, K.D.; Doran, D.A. Positional match running performance in elite Gaelic football. J. Strength Cond. Res. 2016, 30, 2292–2298. [Google Scholar] [CrossRef]
  16. Wei, S.; Wu, Z. The Application of Wearable Sensors and Machine Learning Algorithms in Rehabilitation Training: A Systematic Review. Sensors 2023, 23, 7667. [Google Scholar] [CrossRef]
  17. Malone, J.J.; Lovell, R.; Varley, M.C.; Coutts, A.J. Unpacking the black box: Applications and considerations for using GPS devices in sport. Int. J. Sports Physiol. Perform. 2017, 12, S2–S18. [Google Scholar] [CrossRef]
  18. Komitova, R.; Raabe, D.; Rein, R.; Memmert, D. Time Series Data Mining for Sport Data: A Review. Int. J. Comput. Sci. Sport 2022, 21, 17–31. [Google Scholar] [CrossRef]
  19. Christ, M.; Braun, N.; Neuffer, J.; Kempa-Liehr, A.W. Time series feature extraction on basis of scalable hypothesis tests (tsfresh–a python package). Neurocomputing 2018, 307, 72–77. [Google Scholar] [CrossRef]
  20. Wang, B.; Wang, Y.; Qin, K.; Xia, Q. Detecting transportation modes based on LightGBM classifier from GPS trajectory data. In Proceedings of the 2018 26th International Conference on Geoinformatics, Kunming, China, 28–30 June 2018; IEEE: New York, NY, USA, 2018; pp. 1–7. [Google Scholar]
  21. Etemad, M.; Soares Júnior, A.; Matwin, S. Predicting transportation modes of gps trajectories using feature engineering and noise removal. In Proceedings of the Advances in Artificial Intelligence: 31st Canadian Conference on Artificial Intelligence, Canadian AI 2018, Toronto, ON, Canada, 8–11 May 2018; Proceedings 31. Springer: Cham, Switzerland, 2018; pp. 259–264. [Google Scholar]
  22. Guo, M.; Liang, S.; Zhao, L.; Wang, P. Transportation mode recognition with deep forest based on GPS data. IEEE Access 2020, 8, 150891–150901. [Google Scholar] [CrossRef]
  23. Chan, J.Y.L.; Leow, S.M.H.; Bea, K.T.; Cheng, W.K.; Phoong, S.W.; Hong, Z.W.; Chen, Y.L. Mitigating the multicollinearity problem and its machine learning approach: A review. Mathematics 2022, 10, 1283. [Google Scholar] [CrossRef]
  24. Zheng, H.; Cui, Z.; Zhang, X. Identifying modes of driving railway trains from gps trajectory data: An ensemble classifier-based approach. ISPRS Int. J. Geo-Inf. 2018, 7, 308. [Google Scholar] [CrossRef]
  25. Osgnach, C.; Poser, S.; Bernardini, R.; Rinaldo, R.; Di Prampero, P.E. Energy cost and metabolic power in elite soccer: A new match analysis approach. Med. Sci. Sports Exerc. 2010, 42, 170–178. [Google Scholar] [CrossRef]
  26. Malone, S.; Solan, B.; Hughes, B.; Collins, K. Duration specific running performance in elite Gaelic football. J. Strength Cond. Res. 2017. [Google Scholar] [CrossRef] [PubMed]
  27. Gamble, D.; Spencer, M.; McCarren, A.; Moyna, N. Activity profile, PlayerLoad™ and heart rate response of Gaelic football players: A pilot study. J. Hum. Sport Exerc. 2019, 14, 711–724. [Google Scholar] [CrossRef]
  28. Malone, S.; Solan, B.; Collins, K.; Doran, D. The metabolic power and energetic demands of elite Gaelic football match play. J. Sport. Med. Phys. Fit. 2017, 57, 543–549. [Google Scholar] [CrossRef] [PubMed]
  29. Cullen, B.D.; Roantree, M.T.; McCarren, A.L.; Kelly, D.T.; O’Connor, P.L.; Hughes, S.M.; Daly, P.G.; Moyna, N.M. Physiological profile and activity pattern of minor Gaelic football players. J. Strength Cond. Res. 2017, 31, 1811–1820. [Google Scholar] [CrossRef] [PubMed]
  30. Ryan, M.; Malone, S.; Collins, K. Acceleration profile of elite Gaelic football match play. J. Strength Cond. Res. 2018, 32, 812–820. [Google Scholar] [CrossRef]
  31. Sweeting, A.J.; Aughey, R.J.; Cormack, S.J.; Morgan, S. Discovering frequently recurring movement sequences in team-sport athlete spatiotemporal data. J. Sports Sci. 2017, 35, 2439–2445. [Google Scholar] [CrossRef] [PubMed]
  32. White, R.; Palczewska, A.; Weaving, D.; Collins, N.; Jones, B. Sequential movement pattern-mining (SMP) in field-based team-sport: A framework for quantifying spatiotemporal data and improve training specificity? J. Sports Sci. 2022, 40, 164–174. [Google Scholar] [CrossRef]
  33. Zheng, Y.; Fu, H.; Xie, X.; Ma, W.Y.; Li, Q. Geolife GPS Trajectory Dataset—User Guide, Geolife GPS Trajectories, 1.1st ed.; Microsoft: Redmond, WA, USA, 2011. [Google Scholar]
  34. Coutts, A.J.; Quinn, J.; Hocking, J.; Castagna, C.; Rampinini, E. Match running performance in elite Australian Rules Football. J. Sci. Med. Sport 2010, 13, 543–548. [Google Scholar] [CrossRef]
  35. Sweeting, A.J.; Cormack, S.J.; Morgan, S.; Aughey, R.J. When is a sprint a sprint? A review of the analysis of team-sport athlete activity profile. Front. Physiol. 2017, 8, 432. [Google Scholar] [CrossRef]
  36. Malone, S.; Solan, B.; Collins, K. The running performance profile of elite Gaelic football match-play. J. Strength Cond. Res. 2017, 31, 30–36. [Google Scholar] [CrossRef]
  37. Chen, T.; Guestrin, C. Xgboost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, UAS, 13–17 August 2016; pp. 785–794. [Google Scholar]
  38. Hanson, J.; Yang, Y.; Paliwal, K.; Zhou, Y. Improving protein disorder prediction by deep bidirectional long short-term memory recurrent neural networks. Bioinformatics 2017, 33, 685–692. [Google Scholar] [CrossRef] [PubMed]
  39. Zhang, Z. Improved adam optimizer for deep neural networks. In Proceedings of the 2018 IEEE/ACM 26th International Symposium on Quality of Service (IWQoS), Banff, AB, Canada, 4–6 June 2018; IEEE: New York, NY, USA, 2018; pp. 1–2. [Google Scholar]
  40. Kiranyaz, S.; Avci, O.; Abdeljaber, O.; Ince, T.; Gabbouj, M.; Inman, D.J. 1D convolutional neural networks and applications: A survey. Mech. Syst. Signal Process. 2021, 151, 107398. [Google Scholar] [CrossRef]
  41. Gholamalinezhad, H.; Khosravi, H. Pooling methods in deep neural networks, a review. arXiv 2020, arXiv:2009.07485. [Google Scholar]
  42. Chollet, F. Keras: Deep Learning Library for Theano and TensorFlow. 2015. Available online: https://keras.io (accessed on 8 February 2024).
Figure 1. Transformation methodology.
Figure 1. Transformation methodology.
Sensors 24 01308 g001
Figure 2. Event identification from the raw sensor data.
Figure 2. Event identification from the raw sensor data.
Sensors 24 01308 g002
Figure 3. Left: Frequency of events per duration. Right: Frequency of events per duration ≥ 30 s.
Figure 3. Left: Frequency of events per duration. Right: Frequency of events per duration ≥ 30 s.
Sensors 24 01308 g003
Figure 4. Left: Frequency of events per distance. Right: Frequency of events per distance ≥ 130 m.
Figure 4. Left: Frequency of events per distance. Right: Frequency of events per distance ≥ 130 m.
Sensors 24 01308 g004
Figure 5. Left: Frequency of events per high-speed distance. Right: Frequency of events per high-speed distance ≥ 35 m.
Figure 5. Left: Frequency of events per high-speed distance. Right: Frequency of events per high-speed distance ≥ 35 m.
Sensors 24 01308 g005
Figure 6. The time series of high-speed distance for the remaining games are merged to form a unique time series. The first half of the tested game is placed in the last position. These data constitute the training set for the predictive experiments.
Figure 6. The time series of high-speed distance for the remaining games are merged to form a unique time series. The first half of the tested game is placed in the last position. These data constitute the training set for the predictive experiments.
Sensors 24 01308 g006
Table 1. Summary table presenting the main contributions of related research.
Table 1. Summary table presenting the main contributions of related research.
AuthorsYearDataContribution
Etemad et al. [21]2018GeoLife GPS dataset [33]Framework based on feature extraction, noise removal, and Random Forest to predict transportation modes from GPS trajectories
Wang et al. [21]2018GeoLife GPS dataset [33]Transportation mode classification method based on feature engineering and Light Gradient Boosting Machine
Zheng et al. [24]201820,349 trajectories produced by 103 locomotives, where each trajectory is composed of a sequence of latitude and longitude coordinatesMethods for extracting driving segmented standard deviation features combined with classical features to improve modes of driving railway train classification performances
Guo et al. [22]2020GeoLife GPS dataset [33]A deep forest and trajectory global feature-based model using only raw GPS data to recognise the transportation modes
Malone et al. [15]201650 male GF players during 30 competitive games using a 4 Hz GPS sensorMatch running profiles of GF players
Malone et al. [28]201650 male GF players during 35 competitive games using a 4 Hz GPS sensorComparison of the metabolic power demands between positional groups and examination of the temporal profile of elite GF match play
Cullen et al. [29]201785 male U-18 GF players during 17 competitive games using a 10 Hz GPS sensorEvaluation of the physiological profiles and activity patterns in club- and county-level under-18 GF players relative to playing position
Ryan et al. [30]201836 male GF players during 19 competitive games using a 4 Hz GPS sensorAcceleration profile of elite GF match play
Gamble et al. [27]201936 male GF players during five games using a 10 Hz GPS sensorRunning profiles of GF players for playing position and evaluation of the trend of physical performance during the games
Malone et al. [26]202235 male GF players during 32 competitive gamesPosition- and duration-specific running performance of GF players
Sweeting et al. [31]201712 elite international-level female netball during four competitive games using a Wireless Ad Hoc System for Positioning (WASP)Method to discover the frequently recurring movement sequences across playing positions during matches using radio frequency data
White et al. [32]202213 professional male rugby players during one Super League match using a 10 Hz GPS sensorFramework to identify sequential movement sequences using GPS-derived spatiotemporal data in team sports
Table 2. Speed zones and parameters.
Table 2. Speed zones and parameters.
Speed (m/s)Speed ZoneSpeed Zone ID
x i  0.194Standing1
0.194  < x i  2Walking2
< x i  4Jogging3
< x i  5.5Running4
5.5  < x i  7High-intensity running5
x i >  7Sprinting6
Table 3. Sample of raw data recorded by STATSports Apex 10 Hz sensor. The data shown have been made by the authors to resemble the original data. The names of some columns in the header have been shortened: latitude (Lat.) and longitude (Lon.).
Table 3. Sample of raw data recorded by STATSports Apex 10 Hz sensor. The data shown have been made by the authors to resemble the original data. The names of some columns in the header have been shortened: latitude (Lat.) and longitude (Lon.).
Player IDTimeLat.Lon.Speed (m/s)
15215:49:51.554.62311−7.237985.60
15215:49:51.654.99321−7.256655.24
15215:49:51.754.85332−7.239235.01
15215:49:51.854.61390−7.297335.28
Table 4. Sample of the aggregated data. The names of some columns in the header have been shortened: latitude (Lat.) and longitude (Lon.).
Table 4. Sample of the aggregated data. The names of some columns in the header have been shortened: latitude (Lat.) and longitude (Lon.).
Player IDTimeLat.Lon.Speed (m/s)
15215:49:5154.11398−7.217195.36
15215:49:5254.99321−7.497785.60
15215:49:5354.11334−7.899125.14
15215:49:5454.34509−7.211965.11
Table 5. Sample of the aggregated data with labelled actions. The names of some columns in the header have been shortened: latitude (Lat.) and longitude (Lon.).
Table 5. Sample of the aggregated data with labelled actions. The names of some columns in the header have been shortened: latitude (Lat.) and longitude (Lon.).
Player IDTimeLat.Lon.Speed (m/s)ActionAcceleration (m2/s)
15215:52:1154.12311−7.357435.424-
15215:52:1254.11387−7.197233.973−1.45
15215:52:1354.23334−7.299895.1041.12
15215:52:1454.21387−7.137805.074−0.03
15215:52:1554.11390−7.481094.994−0.08
Table 6. Sample of the aggregated data after the compression of similar actions. The names of some columns in the header have been shortened: start latitude (Start Lat.), start longitude (Start Lon.), end latitude (End Lat.), and end longitude (End Lon.).
Table 6. Sample of the aggregated data after the compression of similar actions. The names of some columns in the header have been shortened: start latitude (Start Lat.), start longitude (Start Lon.), end latitude (End Lat.), and end longitude (End Lon.).
Player IDStart TimeEnd TimeStart Lat.Start Lon.End Lat.End Lon.Speed (m/s)ActionDuration
15215:53:5115:53:5554.123−7.35754.224−7.3515.3644
15215:53:5615:53:5854.224−7.35154.011−7.3913.9732
15215:53:5915:54:0454.011−7.39154.349−7.6504.9845
15215:54:0515:54:1154.349−7.65054.012−7.6553.8336
15215:54:1215:54:1454.012−7.65554.020−7.6574.5144
Table 7. Direction of movement expressed as labelled turning angles.
Table 7. Direction of movement expressed as labelled turning angles.
Turning Angle (Degrees)DirectionDirection ID
45  τ i  or  τ i 315 Forward1
τ i >  45 and  τ i < 135 Left2
τ i  225 and  τ i < 315 Right3
τ i  135 and  τ i < 225 Backward4
Table 8. Sample of the Actions dataset after events detection. The names of some columns in the header have been shortened: player ID (P.ID), start second (Start Sec.), end second (End Sec.), start latitude (Start Lat.), start longitude (Start Lon.), end latitude (End Lat.), end longitude (End Lon.), direction (Dir.), duration (Dur.), distance (Dist.), and event ID (E.ID).
Table 8. Sample of the Actions dataset after events detection. The names of some columns in the header have been shortened: player ID (P.ID), start second (Start Sec.), end second (End Sec.), start latitude (Start Lat.), start longitude (Start Lon.), end latitude (End Lat.), end longitude (End Lon.), direction (Dir.), duration (Dur.), distance (Dist.), and event ID (E.ID).
P.IDStart Sec.End Sec.Start Lat.Start Lon.End Lat.End Lon.SpeedActionDir.Dur.Dist.E.ID
152545654.55−7.3554.11−7.355.3641420.331
152565754.11−7.3554.13−7.366.605116.631
152576254.13−7.3654.33−7.374.984341731
152627154.33−7.3754.52−7.343.8322918.832
152717654.51−7.3454.55−7.334.5134624.532
Table 9. Schema of the Events dataset at the end of the multistep framework. The names of some columns in the header have been shortened: player ID (P.ID), event ID (E.ID), start second (Start Sec.), end second (End Sec.), avg speed (Avg Sp.), std speed (Std Sp.), duration (Dur.), standard deviation duration (Std Dur.), distance (Dis.), high-speed distance (High-Speed Dist.), and unique turning angle (U.T.A.).
Table 9. Schema of the Events dataset at the end of the multistep framework. The names of some columns in the header have been shortened: player ID (P.ID), event ID (E.ID), start second (Start Sec.), end second (End Sec.), avg speed (Avg Sp.), std speed (Std Sp.), duration (Dur.), standard deviation duration (Std Dur.), distance (Dis.), high-speed distance (High-Speed Dist.), and unique turning angle (U.T.A.).
P.IDE.IDStart Sec.End Sec.Start LatStart LonEnd LatEnd LonAvg Sp.Std Sp.Dur.Std Dur.Dis.High-Speed Dist.U. T. A.
1524232754.55−7.3554.11−7.355.30.34023.53.12
1525272954.51−7.3154.11−7.353.20.1205.901
1526293954.21−7.3154.11−7.315.71.7102.6606.73
1527294354.01−7.0154.18−7.393.31.2143.436.904
1528434854.11−7.4254.16−7.306.30.551.941.211.11
Table 10. Half by half analysis: action count, average, and maximum duration, sorted by count of actions.
Table 10. Half by half analysis: action count, average, and maximum duration, sorted by count of actions.
Game IDHalfCountDuration Avg (s)Duration Std (s)Duration Max (s)
893145362.962.5723
997143082.882.5922
788141932.802.3625
973141652.832.4726
869241292.802.3623
893240832.892.5326
811140712.972.6425
946140182.812.4123
889139842.942.6025
873139832.832.4824
997239722.982.6125
934139192.952.5923
811238442.992.6337
869138062.792.3425
788237292.852.4625
873236772.912.4923
838136622.872.5324
973236142.852.4525
946235942.742.3526
934235022.892.5026
889234412.892.4825
838234172.862.6129
Table 11. Count, average, and maximum duration and distance covered for each type of action during the sampled games, sorted by average distance.
Table 11. Count, average, and maximum duration and distance covered for each type of action during the sampled games, sorted by average distance.
ActionGame IDCountDuration Avg (s)Duration Max (s)Distance Avg (m)Distance Max (m)
Sprint8731682.4717.858.8
9731492.3917.171.1
8891532.3717.157.4
8691782.2816.560.8
7881682.2616.449.2
8381312.1816.162.4
8931712.1916.066.6
9971462.0615.547.4
9341622.0715.153.2
8111362.0715.052.5
9461441.9614.749.8
High-intensity running8699112.21113.668.2
8898202.21213.370.8
9978682.21313.279.3
8117842.11113.171.5
9738372.11413.0086.8
8939062.11012.865.0
8387262.01012.663.0
8738362.01012.563.0
9467802.01012.460.0
9347812.01012.364.0
7888582.01112.167.1
Running99725892.32110.996.6
89326532.42010.994.0
81124172.32410.8112.8
97324492.31810.886.4
78824512.32210.6110.0
86924682.32010.696.0
87323372.31610.676.8
88923132.31610.676.8
93422562.21610.476.8
94623572.21510.369.0
83821382.21410.161.6
Jogging81145783.53710.5107.3
93442223.52610.472.8
89348893.42610.385.8
88941393.42510.382.5
99746773.42510.377.5
83840843.42910.184.1
87343193.32410.074.4
97343443.3269.980.6
78844453.3259.880.0
94643313.2269.784.0
86943783.2259.670.0
Table 12. Count of events, actions, average number and duration of actions in an event, and maximum number and duration of actions in an event per half of the investigated games, sorted by count of events.
Table 12. Count of events, actions, average number and duration of actions in an event, and maximum number and duration of actions in an event per half of the investigated games, sorted by count of events.
Game IDHalfEvents CountDuration Avg (s)Duration Max (s)Distance Avg (m)Distance Max (m)H. S. Dist. Avg (m)H. S. Dist. Max (m)
893119477.04825.4189.53.3117.4
997117567.25226.8236.84.387.0
811117087.26326.4216.73.786.5
869216767.03826.5158.95.197.7
946116686.93825.2148.23.886.9
973116617.24526.7198.84.098.1
788116547.34427.0199.04.189.0
997216457.34826.9191.43.7108.8
811216377.25226.0190.43.680.2
889116317.34026.8182.94.499.9
893216047.55428.1214.74.8113.5
788215946.85224.9236.94.084.8
873115907.23826.8182.74.682.5
869115756.94925.6188.84.4112.9
838115686.84824.8188.93.582.4
973215676.74825.3226.24.3108.6
873215597.04925.7190.23.882.5
934115547.54927.6209.34.192.7
946214826.84524.8179.03.793.5
838214506.83825.1156.93.991.5
934214287.24426.5163.54.070.6
889213697.47227.7264.14.9126.2
Table 13. Structure of the transformed dataset used for the prediction of high-speed distance (H.S.D.) covered by players during the second half of a game. The target feature to predict is the variable 31st H.S.D located at the end of the sequence.
Table 13. Structure of the transformed dataset used for the prediction of high-speed distance (H.S.D.) covered by players during the second half of a game. The target feature to predict is the variable 31st H.S.D located at the end of the sequence.
P.ID1st H.S.D.2nd H.S.D.3rd H.S.D.29th H.S.D.30th H.S.D.31st H.S.D.
1520003.205.1
15200005.10
1520015.45.100
152015.400021.3
15215.402.6021.30
Table 14. Player by player predictions and true values for the total distance at high speed during the second half of a randomly tested game using XGboost, LSTM, and CNN models defined in Section 5. The values presented in the tables are expressed in metres.
Table 14. Player by player predictions and true values for the total distance at high speed during the second half of a randomly tested game using XGboost, LSTM, and CNN models defined in Section 5. The values presented in the tables are expressed in metres.
Player IDPred. H.S.D. XGBoostPred. H.S.D. LSTMPred. H.S.D. CNNActual H.S.D.True Number of EventsNumber of Events Used for Pred.
146381.9528.3344.0543.6211196
152633.3422.3878.5367.5180176
163642.8432.1281.9285.376126
194474.5368.0249.8281.8116150
201240.9340.5370.2341.9199193
220336.7590.1378.2341.9234286
229239.5422.7355.2292.8265282
236498.4335.9252.3457.0234244
244519.0446.1340.8405.8189222
278141.3284.9288.2266.6180175
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Antonini, V.; Mileo, A.; Roantree, M. Engineering Features from Raw Sensor Data to Analyse Player Movements during Competition. Sensors 2024, 24, 1308. https://doi.org/10.3390/s24041308

AMA Style

Antonini V, Mileo A, Roantree M. Engineering Features from Raw Sensor Data to Analyse Player Movements during Competition. Sensors. 2024; 24(4):1308. https://doi.org/10.3390/s24041308

Chicago/Turabian Style

Antonini, Valerio, Alessandra Mileo, and Mark Roantree. 2024. "Engineering Features from Raw Sensor Data to Analyse Player Movements during Competition" Sensors 24, no. 4: 1308. https://doi.org/10.3390/s24041308

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