|
--- |
|
license: mit |
|
task_categories: |
|
- video-classification |
|
size_categories: |
|
- 1M<n<10M |
|
tags: |
|
- baseball |
|
- sports |
|
- video-classification |
|
- computer-vision |
|
--- |
|
# Dataset Card for Dataset Name |
|
|
|
<!-- Provide a quick summary of the dataset. --> |
|
|
|
2.6 million clips of balls and called strikes from MLB games from the 2016 season through the 2023 season. |
|
|
|
## Dataset Details |
|
|
|
### Dataset Description |
|
|
|
<!-- Provide a longer summary of what this dataset is. --> |
|
The dataset consists of all listed balls and called strikes from Baseball Savant's [Statcast Search](https://baseballsavant.mlb.com/statcast_search) from 2016, when their video archives began, through the 2023 season. |
|
This dataset includes the date, type (eg. FF, fourseam fastball), mpt, spin rate, pitcher, batter, zone (1-14, corresponding to strike zone locations), count, inning, pitch result, and link to the video of the pitch. |
|
|
|
- **Curated by:** Henry Freed |
|
- **License:** MIT |
|
|
|
## Uses |
|
|
|
<!-- Address questions around how the dataset is intended to be used. --> |
|
The original dataset, [Picklebot-50K](https://huggingface.co/datasets/hbfreed/Picklebot-50K), was collected to call balls and strikes using a neural network, and is only labeled with ball or strike. |
|
With the additional metadata, one can imagine much more interesting classification and granular tasks like classifying pitch types. |
|
|
|
## Dataset Structure |
|
|
|
<!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. --> |
|
The dataset is three JSON files, split into train (80%), val (10%), and test (10%) files. They are structured as follows: |
|
|
|
|
|
{ |
|
"date": "2017-05-06", |
|
"pitch": "CU", |
|
"mph": "73.6", |
|
"spin_rate": "1997", |
|
"pitcher": "Garza, Matt(R)", |
|
"batter": "Jaso, John(L)", |
|
"zone": "8", |
|
"count": "0-1", |
|
"inning": "Bot 5", |
|
"pitch_result": "Called Strike", |
|
"video_link": "https://baseballsavant.mlb.com/sporty-videos?playId=e790b6cf-7ac4-45b8-8cd3-9cef03d759cb" |
|
}. |
|
|
|
|
|
|
|
|
|
## Dataset Creation |
|
|
|
### Source Data |
|
|
|
<!-- This section describes the source data (e.g. news text and headlines, social media posts, translated sentences, ...). --> |
|
The data were scraped from Baseball Savant's [Statcast Search](https://baseballsavant.mlb.com/statcast_search). |
|
|
|
|
|
#### Who are the source data producers? |
|
|
|
<!-- This section describes the people or systems who originally created the data. It should also include self-reported demographic or identity information for the source data creators if this information is available. --> |
|
|
|
[Baseball Savant](https://baseballsavant.mlb.com) and MLB/the broadcasters (whoever it is) originally created the videos. |
|
|
|
|
|
## Bias, Risks, and Limitations |
|
|
|
<!-- This section is meant to convey both technical and sociotechnical limitations. --> |
|
First, as with Picklebot-50K, only balls and called strikes were connected. Additionally, this dataset is quite unbalanced: about two-thirds of the pitches are balls, and almost half of them are fourseam fastballs (see the plots below). |
|
One should take care dealing with these imbalances. |
|
|
|
## Plots |
|
![Percentages of Pitch Results in Picklebot-2M.](plots/pitch_results.png) |
|
![Distribution of Pitch Types in Picklebot-2M](plots/pitch_types.png) |
|
![Distribution of Pitch Zones in Picklebot-2M](plots/pitch_zones.png) |
|
|