Figures
Abstract
Jumping is an important task in skiing, snowboarding, ski jumping, figure skating, volleyball and many other sports. In these examples, jumping tasks are a performance criterion, and therefore detailed insight into them is important for athletes and coaches. Therefore, this paper aims to introduce a simple and easy-to-implement jump detection algorithm for skiing using acceleration data from inertial measurement units attached to ski boots. The algorithm uses the average of the absolute vertical accelerations of the two boots. We provide results for different parameter settings of the algorithm and two types of jumps: Big Air jumps and jumps during skiing. The latter are divided into small (time of flight < 500 ms) and medium (time of flight ≥ 500 ms) jumps. The algorithm detects 100% of Big Air, 94% of medium and 44% of small jumps. In addition, the settings with the highest detection rates also have the highest number of overdetected jumps. To resolve this conflict, a penalty-adjusted score that considers the number of overdetected jumps in the final performance analysis is proposed.
Citation: Kranzinger S, Kranzinger C, Martinez Alvarez A, Stöggl T (2024) Development of a simple algorithm to detect big air jumps and jumps during skiing. PLoS ONE 19(7): e0307255. https://doi.org/10.1371/journal.pone.0307255
Editor: Anwar P.P. Abdul Majeed, Sunway University, MALAYSIA
Received: November 9, 2023; Accepted: July 2, 2024; Published: July 18, 2024
Copyright: © 2024 Kranzinger et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All data files of detected and overdetected jumps are available from the OSF (DOI: 10.17605/OSF.IO/54NXE) database.
Funding: This work was partly funded by the Austrian Federal Ministry for Transport, Innovation and Technology, the Austrian Federal Ministry for Digital and Economic Affairs, and the federal state of Salzburg under the research program COMET—Competence Centers for Excellent Technologies—in the project Digital Motion in Sports, Fitness and Well-being (DiMo). This research received financial support by the Austrian Federal Ministry for Climate Action, Environment, Energy, Mobility, Innovation and Technology and Land Salzburg under Contract No. 2021-0.641.557.
Competing interests: The authors have declared that no competing interests exist.
Introduction
Jumping is an important task and a performance criterion in many sports. Therefore, detailed knowledge about jumping is important for athletes and coaches. Besides standard metrics of jump performance as jump duration, jump height and jump distance, the jump analysis can be used to infer the total load on the body from jumps and landings, or it could contribute to the introduction of gamification applications in the amateur field. In the case of freeriding, it can be applied to show how long and far a jump was and, as a consequence, the trajectory of a jump could also be concluded. Therefore, the correct detection of jumps can be a powerful tool to help athletes and coaches control load and establish training targets.
The methodology for jump detection is based on tape measures [1], laser based distance calculation [2], force plates [1, 3], pressure sensor and insoles [4] or video analysis [5]. However the feasibility of these measures is not well adaptable to in-field measures. Therefore, minimal invasive on-body sensor technology might be a tool to be used in these settings. Inertial measurement units (IMUs) are used for sport performance evaluation and kinematic analysis [6, 7] in various sport disciplines e.g. from indoor sports (e.g. volleyball [8–10], combat sports [11] or figure skating [12, 13]) to outdoor or winter sports (e.g. snowboarding [14], golf [15], ski jumping [16] or alpine skiing [17, 18]). For alpine skiing [18] a scoring algorithm was developed to quantify the quality of movement with the potential to evaluate long-term performance and training management. Therefore, IMUs are well suited for monitoring athletes in various sports and could serve as a tool for analysis and more efficient training programming.
In existing literature authors already developed algorithms to estimate vertical jump heights of different jump types, such as squat jumps [19], countermovement jumps [19–21] or plyometric jumps [20]. The IMUs used in existing literature are either attached directly on the body or mounted on devices. Sadi and Klukas [22] proposed an algorithm for snow sports jump detection using a head-mounted Micro-Electro-Mechanical System (MEMS) IMU. The algorithm is based on two methods developed by the authors, which are Windowed Mean Canceled Multiplication and Preceding and Following Acceleration Difference. Their results showed that 92% of jumps during snowboarding, including ollie, step-up, cliff drop, and standard jump, were detected correctly. Lee et al. [23] detected jumps based on a threshold method for skiing and snowboarding. The authors used IMUs mounted on the helmet and additionally a MEMS barometric pressure sensor to detect jumps during skiing and snowboarding. However, according to Lee et al. [23] the head is not the perfect place due to head movements. Roberts-Thomson et al. [24] presented a fuzzy logic-based algorithm for jump detection in sports using accelerometer data of IMUs. The algorithm was applied to snowboarding and ski jumping, with IMUs mounted directly on the snowboards and skis, and successfully detected 92% and 100% of the jumps respectively. However, alongside traditional skiing and snowboarding, freestyle skiing is becoming more popular since the introduction of slope style as an Olympic discipline [25]. Therefore, it is crucial for coaches and athletes to distinguish the detection performance for different types of jumps in skiing. In addition, the implementation of a fuzzy logic-based algorithm (see [24]) could be challenging and thus be associated with limitations for users. Consequently, this work aims to develop an algorithm based on IMU acceleration data to detect jumps under different skiing conditions such as Big Air jumps and jumps during skiing. One advantage over other studies is that the proposed algorithm uses a simple and easy-to-implement structure. To overcome the problem of accounting for unwanted movements, the IMUs are attached to the skier’s boots, which should allow for stable data recording. In addition, we propose a method to resolve the trade-off between detected and overdetected jumps by introducing a penalty-adjusted score.
Materials and methods
Sensors
For all data collections two IMUs mounted on both ski boots were used. The sensor setup and positioning was previously developed and validated for automatic ski turn detection [26] and ski style classification [27]. As in [26, 27] the configuration was 2.5 × 3 × 0.83 mm ±8 g ±500 dps full-scale, board by Movesense [28].
The angular velocities of the accelerometer were recorded at 833 Hz. Analog and digital low-pass filters were applied directly by the IMU after A/D conversion and the signal was forwarded via Bluetooth at 54 Hz [28]. In order to ensure consistent data recording and exclude deviations in placement, the positioning and alignment of the sensors were kept the same for all participants. For all participants the IMUs were attached to the upper posterior cuff of the left and right ski boot, as illustrated in Fig 1. The IMU was fixed using a tight elastic strap and a customized rigid housing to avoid movement or misalignments. The X-axis corresponded to the lateral axis of the boot to the right, the Y-axis to the vertical axis of the boot upwards and the Z-axis was aligned according to the anterior-posterior direction. Apart from the IMUs mounted on the skiing boots, all jumps were additionally filmed with video recordings and a sampling rate of 25 Hz (Hero4 Session, GoPro, San Mateo, CA, USA [29]). Video and sensor data were synchronized using a jump event at the beginning and end of each trial, which is visible in the video and as a high peak of vertical acceleration in the IMU data of the boot. The synchronization jumps were detected in the vertical axis of the accelerometer and synchronized with the frame at landing.
Data collection
For the development and validation of the algorithm two types of jumps were performed. The recruitment period began on December 1, 2019 and lasted until December 31, 2019. All participants provided informed consent in written form. The study was approved by the local ethics committee of the University of Salzburg (GZ 11/2018). First, Big Air jumps were collected from four professional athletes who jumped over Big Air jumps in one day at a snowpark in an Austrian ski resort. To make the algorithm more robust to this type of jump, the athletes performed several types of flips and spins so the algorithm would be more challenged as shown in Fig 2. Secondly, jumps during skiing were collected from two recreational skiers who made jumps during conventional skiing, as shown in Fig 3. These jumps were performed on different days in the same Austrian ski resort. We divided jumps during skiing into small (flight time < 500 ms) and medium (flight time ≥ 500 ms) jumps. A total of 15 Big Air, 18 small and 34 medium jumps were collected.
Algorithm and parameter settings
A simple structured and easy to implement algorithm was developed to detect the jumps based on the acceleration data from IMUs. The mean value of the absolute vertical accelerations (Accy) of the left and right boot is used as initial data. Then there are two parameters, a rolling window to smooth the data and a value to which these smoothed values are rounded, which can be set to detect the respective jumps: First, the data is smoothed with a rolling window of X data points, where one data point corresponds to 18.5 ms for a collection rate of 54 hz. To find the best parameter settings, the rolling window is set between a value of 10–25 data points, which corresponds to a period from 185.2 ms to 463 ms. Second, these smoothed values are rounded to the nearest increments of five or ten (e.g. when rounded to the nearest five: a value of 3 is rounded to 5, a value of 23 is rounded to 25, etc.; when it is rounded to the nearest 10: a value of 3 is rounded to 0, a value of 23 is rounded to 20 etc.). Finally, the areas of zeros are identified as jumps. All calculations are made with the software R [30].
The following schematic representation of the algorithm should facilitate the understanding of its structure:
- Taking the mean absolute values of the raw data: mean(abs(), abs())
- Smoothing this data with a rolling window: parameter setting of 10–25 data points used for the rolling window, corresponding to a period from 185.2 ms to 463 ms
- Rounding these smoothed values to the nearest increments of five or ten
- Identify the areas of zeros as jump region
Fig 4 visualises an example snapshot of the IMU data for jumps during skiing. Fig 4a) shows the raw signal of the left and right ski boot. Fig 4b) shows the mean value of the absolute vertical acceleration of the left and right ski boot. Fig 4c) shows the smoothed signal (based on a rolling window of 463 ms) and Fig 4d) illustrates rounding to the nearest increment of 10. A jump is detected when the rounded signal is equal to 0. In the case of Fig 4, four jumps were detected.
Validation scores
To validate the algorithm, the jump start time detected in the video was compared with the jump start time calculated by the algorithm. For the jumps to match, the jump start times determined by the algorithm and the video recording must be within 150 ms. Otherwise, the jumps were considered undetected.
To evaluate the respective parameter settings, we present results for:
- (1) the ratio of properly detected jumps over the total number of jumps and
- (2) the number of overdetected jumps
for each combination of the two parameter settings (rolling window and value to which is rounded) respectively. For visualisation we used heat maps, which were created with the R package ggplot2 [31]. Moreover, we introduced a so-called penalty-adjusted score that takes into account the trade-off between (1) and (2). Thus, we first computed the (3) penalty score, which is the sum of the overdetected jumps divided by the total number of jumps (ground truth). In a next step, we subtracted the penalty score (3) from (1), the proportion of detected jumps to the total number of jumps. Consequently, the (4) penalty-adjusted score is lower when the number of overdetected jumps is high relative to the total number of jumps (ground truth). (1) (2) (3) (4)
We have to note that it was not possible to calculate the number of overdetected jumps in Big Air jumps, since only one Big Air jump per ride was analyzed.
Results
Relative ratio of detected jumps
Fig 5 shows that the detection rates for Big Air jumps range from 87% to 100%. The lowest detection rates are found for a rolling window between 444.4 − 463 ms and when rounding to the nearest 5, while the highest detection rates are found when rounding to the nearest 10 and a rolling window between 277.8 − 463 ms.
Fig 6 shows that for small jumps we find the highest relative ratio of detected jumps (44%) for a rolling window between 185.2–314.8 ms and when the IMU data is rounded to the nearest increment of 10. For a rolling window between 333.3 − 463 ms and rounding to the nearest 5, we have the lowest relative ratio of detected small jumps.
For medium jumps, Fig 7 shows the highest detection rate of 94% for a rolling window between 185.2–277.8 or 351.8 − 463 ms and when the IMU data is rounded to the nearest 10. The lowest detection rate is for a rolling window between 407.4 − 463 and when rounded to the nearest 5.
Fig 8 shows the results for all jumps with a flight time ≥ 500 ms, considering both Big Air and medium jumps. We find the highest detection rate for a rolling window of 185.2, 277.8 and between 351.8 − 463 ms and when rounding to the nearest 10. On the other hand, we find the lowest detection rate for a rolling window between 444.4 − 463 and when rounding to the nearest 5.
Number of overdetected jumps and adjusted-penalty score
Fig 9 shows that the smaller the rolling window, the higher the number of overdetected jumps for each rounding parameter. The results range from 51 to eight overdetected jumps when rounding to the nearest 10 and 22 to zero overdetected jumps when rounding to the nearest 5.
Fig 10 shows the lowest and highest scores of all parameter combinations when rounding to the nearest 10, increasing from −0.21 to 0.58 between a rolling window of 185.2 to 407.4 ms. When rounding to the nearest 5, the penalty-adjusted score varies from 0.21 for a rolling window of 185.2 ms to 0.35 for a rolling window of 240.7 ms.
Discussion and conclusion
The aim of this work was to develop a simple and easy-to-implement algorithm based on IMU acceleration data to detect jumps under different skiing conditions. The results showed a very high ratio of jumps detected with barely any overdetections for small and medium jumps.
For jumps during skiing, the algorithm has the highest detection rates for the smallest rolling window of 185.2 ms and when rounding to the nearest 10 for small and medium jumps, respectively. The lowest detection rates are found for a rolling window of 463 ms and when rounding to the nearest 5. Interestingly, the opposite picture is seen for the number of overdetected jumps: the highest number is found when rounding to the nearest 10 and using a rolling window of 185.2 ms, while we have no overdetected jumps when rounding to the nearest 5 and using a rolling window of 463 ms. Thus, there is a trade-off between the detection rate and the number of overdetected jumps. We therefore introduced what we call a penalty-adjusted score to account for this trade-off. According to the adjusted-penalty score, the best parameter settings are a rolling window of 388.9 or 407.4 ms and rounding to the nearest 10. Interestingly, the adjusted-penalty score increases for a rolling window of 185.2 to 388.9 ms, but decreases for a rolling window of 425.9 to 463 ms.
Compared to the results of Sadi and Klukas [22], which achieved a detection rate of 92% for jumps during snowboarding, we achieve slightly better results with a detection rate of 96%, for jumps with a flight time ≥ 500 ms, considering both Big Air and medium jumps. Compared to Roberts-Thomson et al. [24], which achieved a detection rate of 100% for ski jumping, the algorithm shows an equivalent detection rate of 100% with respect to Big Air jumps. However, the algorithm can be improved for jumps smaller than 500 ms, where it achieved a detection rate of 44%. The relatively low detection rate is likely due to the short flight time associated with a low vertical acceleration level and maybe some noise in the signal due to takeoff and landing accelerations.
The small number of participants who performed jumps is one of the limitations of the present study. To account for it, several different Big Air jump styles were performed, and different skill level skiers were included (professional and recreational). Furthermore, the algorithm is based on the detection of airtime, when the vertical acceleration is constant and the external vibrations are typically low, limiting the influence of anthropometrics and skill level. Nevertheless, a larger number and diversity of participants and jump characteristics could increase the validity and robustness of the algorithm.
Moreover, future studies should analyse multiple Big Air jumps during a run to calculate the number of overdetected jumps and the penalty-adjusted score.
In summary, the proposed algorithm works well for medium jumps but needs to be strengthened for small jumps with a time of flight less than 500 ms. For Big Air jumps all jumps could be detected, while 94% of all jumps with a flight time ≥ 500 ms could be detected during conventional skiing. The advantage of the proposed algorithm is that it provides an easy-to-implement structure, provides fast feedback, and has high accuracy for jump durations greater than 500 ms. Future work could further develop the algorithm to detect additional events, such as jump duration, and to classify the type of jump.
References
- 1. Buckthorpe M, Morris J, Folland JP. Validity of vertical jump measurement devices. Journal of sports sciences. 2012;30(1):63–69. pmid:22111944
- 2. Viitasalo JT, Rahkila P, Österback L, Alén M. Vertical jumping height and horizontal overhead throwing velocity in young male athletes. Journal of sports sciences. 1992;10(5):401–413. pmid:1433460
- 3. Raymond F, Lussier B, Dugas F, Charbonneau M, Croteau F, Kennedy C, et al. Using portable force plates to assess vertical jump performance: A metrological appraisal. Sports. 2018;6(4):149. pmid:30463226
- 4.
Dehzangi O, Bache BA, Iftikhar O. Activity detection using fusion of multi-pressure sensors in insoles. In: 2018 24th International Conference on Pattern Recognition (ICPR). IEEE; 2018. p. 3315–3321.
- 5.
Hsu CC, Chen HT, Chou CL, Lee SY. Spiking and blocking events detection and analysis in volleyball videos. In: 2012 IEEE International Conference on Multimedia and Expo. IEEE; 2012. p. 19–24.
- 6. Rana M, Mittal V. Wearable sensors for real-time kinematics analysis in sports: a review. IEEE Sensors Journal. 2020;21(2):1187–1207.
- 7. Camomilla V, Bergamini E, Fantozzi S, Vannozzi G. Trends supporting the in-field use of wearable inertial sensors for sport performance evaluation: A systematic review. Sensors. 2018;18(3):873. pmid:29543747
- 8. Gageler HW, Wearing S, James AD. Automatic jump detection method for athlete monitoring and performance in volleyball. International Journal of Performance Analysis in Sport. 2015;15(1):284–296.
- 9. MacDonald K, Bahr R, Baltich J, Whittaker JL, Meeuwisse WH. Validation of an inertial measurement unit for the measurement of jump count and height. Physical Therapy in Sport. 2017;25:15–19. pmid:28254580
- 10. Schleitzer S, Wirtz S, Julian R, Eils E. Development and evaluation of an inertial measurement unit (IMU) system for jump detection and jump height estimation in beach volleyball. German Journal of Exercise and Sport Research. 2022;52(2):228–236.
- 11. Worsey MT, Espinosa HG, Shepherd JB, Thiel DV. Inertial sensors for performance analysis in combat sports: A systematic review. Sports. 2019;7(1):28. pmid:30669590
- 12. Bruening DA, Reynolds RE, Adair CW, Zapalo P, Ridge ST. A sport-specific wearable jump monitor for figure skating. PloS one. 2018;13(11):e0206162. pmid:30462651
- 13. Panfili A, Spanò A, Cortesi A. A Wearable System for Jump Detection in Inline Figure Skating. Sensors. 2022;22(4):1650. pmid:35214552
- 14.
Harding J, Small JW, James DA. Feature extraction of performance variables in elite half-pipe snowboarding using body mounted inertial sensors. In: BioMEMS and Nanotechnology III. vol. 6799. SPIE; 2007. p. 332–343.
- 15. Jensen U, Schmidt M, Hennig M, Dassler FA, Jaitner T, Eskofier BM. An IMU-based mobile system for golf putt analysis. Sports Engineering. 2015;18:123–133.
- 16. Chardonnens J, Favre J, Le Callennec B, Cuendet F, Gremion G, Aminian K. Automatic measurement of key ski jumping phases and temporal events with a wearable system. Journal of sports sciences. 2012;30(1):53–61. pmid:22168430
- 17. Yu G, Jang YJ, Kim J, Kim JH, Kim HY, Kim K, et al. Potential of IMU sensors in performance analysis of professional alpine skiers. Sensors. 2016;16(4):463. pmid:27043579
- 18. Snyder C, Martínez A, Jahnel R, Roe J, Stöggl T. Connected skiing: Motion quality quantification in alpine skiing. Sensors. 2021;21(11):3779. pmid:34072526
- 19. Monnet T, Decatoire A, Lacouture P. Comparison of algorithms to determine jump height and flight time from body mounted accelerometers. Sports Engineering. 2014;17:249–259.
- 20.
Milosevic B, Farella E. Wearable inertial sensor for jump performance analysis. In: Proceedings of the 2015 workshop on Wearable Systems and Applications; 2015. p. 15–20.
- 21. Fathian R, Khandan A, Chiu LZ, Rouhani H. Assessment of countermovement jump with and without arm swing using a single inertial measurement unit. Sports Biomechanics. 2022; p. 1–18. pmid:35119345
- 22. Sadi F, Klukas R. Reliable jump detection for snow sports with low-cost MEMS inertial sensors. Sports Technology. 2011;4(1-2):88–105.
- 23. Lee TJ, Zihajehzadeh S, Loh D, Hoskinson R, Park EJ. Automatic jump detection in skiing/snowboarding using head-mounted MEMS inertial and pressure sensors. Proceedings of the Institution of Mechanical Engineers, Part P: Journal of Sports Engineering and Technology. 2015;229(4):278–287.
- 24.
Roberts-Thomson CL, Lokshin AM, Kuzkin VA. Jump detection using fuzzy logic. In: 2014 IEEE Symposium on Computational Intelligence for Engineering Solutions (CIES). IEEE; 2014. p. 125–131.
- 25. Kurpiers N, Petrone N, Supej M, Wisser A, Hansen J, Kersting UG. Application of Inertial Motion Unit-Based Kinematics to Assess the Effect of Boot Modifications on Ski Jump Landings—A Methodological Study. Sensors. 2020;20(13):3805. pmid:32646033
- 26. Martínez A, Brunauer R, Venek V, Snyder C, Jahnel R, Buchecker M, et al. Development and validation of a gyroscope-based turn detection algorithm for alpine skiing in the field. Frontiers in Sports and Active Living. 2019;1:18. pmid:33344942
- 27. Neuwirth C, Snyder C, Kremser W, Brunauer R, Holzer H, Stöggl T. Classification of alpine skiing styles using GNSS and inertial measurement units. Sensors. 2020;20(15):4232. pmid:32751374
- 28.
Movesense. Movesense; 2023. https://www.movesense.com/wp-content/uploads/2017/11/Movesense-Sensor-Datasheet-_-20171109.pdf.
- 29.
GoPro. GoPro; 2023. https://gopro.com/content/dam/help/hero4-session/manuals/UM-A_H4Session_ENG_REVD_WEB.pdf.
- 30.
R Core Team. R: A Language and Environment for Statistical Computing; 2023. Available from: https://www.R-project.org/.
- 31.
Wickham H. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York; 2016. Available from: https://ggplot2.tidyverse.org.