Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chickennungets/ifsc-data-analysis
An implementation of Elo-MMR ranking in the boulder and lead disciplines.
https://github.com/chickennungets/ifsc-data-analysis
d3 data elo elo-rating ifsc visualization webscraping
Last synced: 17 days ago
JSON representation
An implementation of Elo-MMR ranking in the boulder and lead disciplines.
- Host: GitHub
- URL: https://github.com/chickennungets/ifsc-data-analysis
- Owner: ChickenNungets
- Created: 2024-10-04T23:53:44.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-08T00:37:24.000Z (3 months ago)
- Last Synced: 2024-12-04T04:27:38.001Z (18 days ago)
- Topics: d3, data, elo, elo-rating, ifsc, visualization, webscraping
- Language: Jupyter Notebook
- Homepage:
- Size: 6.89 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
Competition Climbing is a new and exciting sport. Competitions vary wildly between one and another, with routesetters constantly introducing novel types of movement, recently emphasizing impressive parkour style coordination movement. With the additional component of high risk/randomness in the sport due to the nature of the format (e.g. only 4 minutes to attempt a boulder and only one attempt on a lead route), I wonder what kind of insights can be drawn from competition data with such a high level of variance.
# Data CollectionThe data for this project was collected by scraping the International Federation of Sport Climbing (IFSC) API, which provides detailed information about athletes, competition events, and results. The scraping process is automated using Python, leveraging multithreading to efficiently handle many API requests and queues for thread safety. I store data relating to athletes (gender, age, country, height, etc) in athlete_information.csv. Data related to athlete ranks in competition is stored in athlete_results.csv.
We can view the API calls used to retrive athlete and competition data by examining the Network tab in Chrome DevTools. You can view this in more detail in the gather.ipynb file. For failed requests, the script will automatically retry the API call multiple times before moving on to a higher success rate.
Data was collected in early October 2024 and so will not reflect changes from competitions after that date.
# Data Cleaning/Validation
Once the raw data was collected, it went through a cleaning process. I utilized pandas for data wrangling to handle null values, data inconsistencies, and outliers. The cleaning process involved:
- Removing outlier athletes and competitions (no competitions with one participant, no athletes over 10 meters tall, etc.)
- Ensuring athletes can cannot compete in the exact same competition more than once.
- Competitions are created by aggregating competition records for individual athletes. I ensured that upon aggregation competition gender, time and discipline remained constant (interestingly there are 2 cases of a male competing in a female competition)
- Handling missing values by filling or dropping as needed.# Data Analysis and Visualization
The goal of this project was to create an interactive bar chart race showing the top competition climbers and how their [Elo-MMR](https://github.com/EbTech/Elo-MMR/blob/master/paper/EloMMR.pdf) (a rating/skill estimation system for multiplayer games) ratings evolved over time. See elo.ipynb for more details on Elo-MMR implementation. elo.ipynb loads the scraped data, cleans it, calculates elo and writes these calculations as output to a csv in the d3-viz folder. I used D3.js to create a dynamic visualization.
Key features:
- Filtering by gender and discipline (boulder, lead).
- Interactive controls for selecting time ranges and the number of athletes displayed.
- Smooth animations that dynamically update the chart as you explore the data over time.
- Additionally, I've implemented a play/pause feature that lets users automatically scroll through the timeline, providing a hands-free experience for visualizing trends.
- I consider an athlete inactive if they have not competed for at least two years since the date currently being shown. They are colored light grey and there is an option to remove them.The project is hosted using GitHub Pages for easy sharing and accessibility. You can check it out [here](https://chickennungets.github.io/IFSC-data-analysis/)!
# Future Work
This project was a fun dive into data visualization and applied data science. In the future, I would like to:
- Expand the data to include speed (which in its bracket tournament format lends itself to regular [elo](https://en.wikipedia.org/wiki/Elo_rating_system) rankings) and combined boulder and lead Elo-MMR.
- Somehow integrate the variance of an athletes current ELO into the visualization, which is data I am not currently using.
- Integrate machine learning models to predict future Elo ratings based on past performance.
- Implement a full dashboard with more in-depth visualizations (e.g., scatter plots, line charts) for trend analysis.If you’re a fellow climbing enthusiast or just into data science, feel free to fork the repo or reach out with suggestions for improvements!