sport-activities-features documentation!

sport-activities-features is a minimalistic toolbox for extracting features from sports activity files written in Python.

Unleashing the Power of Sports Activity Analysis: A Framework Beyond Ordinary Metrics 🚀

Prepare to dive into the thrilling world of sports activity analysis, where hidden geographic, topological, and personalized data await their grand unveiling. In this captivating journey, we embark on a quest to extract the deepest insights from the wealth of information generated by monitoring sports activities. Brace yourself for a framework that transcends the limitations of conventional analysis techniques. 💪🔍

Traditional approaches often rely on integral metrics like total duration, total distance, and average heart rate, but they fall victim to the dreaded “overall metrics problem.” These metrics fail to capture the essence of sports activities, omitting crucial components and leading to potentially flawed and misleading conclusions. They lack the ability to recognize distinct stages and phases of the activity, such as the invigorating warm-up, the endurance-testing main event, and the heart-pounding intervals. ⏱️🚴‍♀️📈

Fortunately, our sport-activities-framework rises above these limitations, revealing a comprehensive panorama of your sports activity files. This framework combines the power of identification and extraction methods to unlock a treasure trove of valuable data. Picture this 📷 : effortlessly identifying the number of hills, extracting average altitudes of these remarkable formations, measuring the total distance conquered on those inclines, and even deriving climbing ratios for a true measure of accomplishment (total distance of hills vs. total distance). But that’s just the tip of the iceberg! The framework seamlessly integrates a multitude of extensions, including historical weather parsing, statistical evaluations, and ex-post visualizations that bring your data to life. 🗻📊🌦️

For those seeking to venture further, we invite you to explore the realms of scientific papers on data mining that delve into these captivating topics. Discover how our framework complements the world of generating and predicting automated sport training sessions, creating a harmonious synergy between theory and practice. 📚🔬💡

Detailed insights 🔍

Prepare to be astounded by the capabilities of the sport-activities-features framework. It effortlessly handles TCX & GPX activity files and harnesses the power of the Overpass API nodes. Presenting the range of functions at your disposal:

  • Unleash the integral metrics: From total distance to total duration and even calorie count, witness the extraction of these vital statistics with a single glance. 📏⏰🔥 (Integral Metrics Extraction example)

  • Conquer the peaks: Ascend to new heights by extracting topographic features like the number of hills, their average altitudes, the total distance covered on these majestic slopes, and the thrilling climbing ratio. Prepare for a breathtaking adventure! ⛰️📈🧗‍♂️ (Hill Data Extraction example)

  • Embark on a visual journey: Immerse yourself in the beauty of your accomplishments as you plot the identified hills on a mesmerizing map. Witness the landscape come alive before your eyes. 🗺️🏞️🖌️ (Draw Map with Identified Hills example)

  • Embrace the rhythm of intervals: Explore the intervals within your sports activities, uncovering their numbers, durations, distances, and heart rates. Unveil the heartbeat of your performance! 🏃‍♀️📊💓 (Draw Map with Identified Intervals example)

  • Calculate the training loads: Dive deep into the intricate world of training loads and discover the Banister TRIMP and Lucia TRIMP methods. Gain invaluable insights into optimizing your training regimen. 📈⚖️🏋️‍♂️ (Calculate Training Load example)

  • Weather the storm: Unlock the power of historical weather data from external services, adding a fascinating layer of context to your sports activities. ☀️🌧️⛈️

  • Unveil the secrets within coordinates: Explore the integral metrics of your activities within specific geographical areas, uncovering valuable data on distance, heart rate, and speed. Peer into the depths of your performance! 🌍📍📉 (Extract Data Inside Area example)

  • Embrace randomness: Extract activities from CSV files and indulge in the excitement of randomly selecting a specific number of activities. Embrace the element of surprise! 🎲📂🎉 (Extract Random Activities from CSV example)

  • Conquer the dead ends: Unravel the mysteries of your sports activities by identifying the dead ends. Prepare to navigate the uncharted territories of your performance! 🚧🗺️🔍 (Dead End Extraction example)

  • Unlock the format: Seamlessly convert TCX files to GPX, opening doors to even more possibilities. Adapt and conquer! ⚙️🔄✨ (Convert TCX to GPX example)

And that’s just the beginning! The sport-activities-framework holds countless other features, awaiting your exploration. Brace yourself for an exhilarating journey of discovery, where the ordinary becomes extraordinary, and your sports activities come alive like never before. 🌟🔥🏃‍♂️

The framework comes with two (testing) benchmark datasets, which are freely available to download from: DATASET1, DATASET2.

Historical weather data

Weather data parsed is collected from the Visual Crossing Weather API. Please note that this is an external unaffiliated service, and users must register to use the API. The service has a free tier (1000 Weather reports/day) but is otherwise operating on a pay-as-you-go model. For pricing and terms of use, please read the official documentation of the API provider.

Overpass API & Open Elevation API integration

Without performing activities, we can use the OpenStreetMap for the identification of hills, total ascent, and descent. This is done using the Overpass API, which is a read-only API that allows querying of OSM map data. In addition to that altitude, data is retrieved by using the Open-Elevation API, which is an open-source and free alternative to the Google Elevation API. Both of the solutions can be used by using free publicly accessible APIs (Overpass, Open-Elevation Public API) or can be self-hosted on a server or as a Docker container (Overpass Self-hosting, Open-Elevation Self-hosting).

Documentation

The main documentation is organized into a couple of sections:

[1]

Iztok Fister Jr., Luka Lukač, Alen Rajšp, Iztok Fister, Luka Pečnik, and Dušan Fister. A minimalistic toolbox for extracting features from sport activity files. In 2021 IEEE 25th International Conference on Intelligent Engineering Systems (INES), 000121–000126. IEEE, 2021.

[2]

Iztok Fister Jr., Iztok Fister, Dušan Fister, and Simon Fong. Data mining in sporting activities created by sports trackers. In 2013 international symposium on computational and business intelligence, 88–91. IEEE, 2013.

[3]

Iztok Fister, Iztok Fister Jr, and Dušan Fister. Computational intelligence in sports. Volume 22. Springer, 2019.

[4]

Alen Rajšp and Iztok Fister Jr. A systematic literature review of intelligent data analysis methods for smart sport training. Applied Sciences, 10(9):3013, 2020.