File size: 3,870 Bytes
d187468 4c05d3c 81a6358 4c05d3c 81a6358 4c05d3c 5346a89 4c05d3c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | ---
license: cc-by-nc-4.0
task_categories:
- image-classification
- image-to-text
viewer: false
---
# Math-Strike Dataset
## Dataset Description
**Math-Strike** is a novel dataset featuring real and synthetic strike-outs, component-level annotations, and aligned LaTeX, designed to support research on strike-out removal and handwritten mathematical formula recognition. Handwritten STEM manuscripts often contain strike-outs, overwrites, and other markings that disrupt mathematical content structure and reduce OCR/VLM recognition accuracy. This dataset provides a rigorous benchmark for training and evaluating models on connected-component classification, geometry-aware inpainting, and downstream compilable LaTeX generation.
The collection originates from the 2024-2025 mid-term and final examinations of a university's Multivariate Calculus Elite class.
### Dataset Subsets
The dataset is divided into two main subsets, easily accessible via Hugging Face's configuration system:
- **`real` (Math-Strike-Real)**: Contains only real, authentic strike-outs collected directly from student exam papers.
- **`synth` (Math-Strike-Synth)**: Contains synthetic strike-outs generated using an augmentation taxonomy of 20 diverse strike-out styles (e.g., wavy, zigzag, multi-crossed, blackout) to address class imbalance and improve model robustness against complex occlusion patterns.
Additionally, the `original_img` folder is provided in the repository, containing the full page-level raw scans with minimal border cropping and all original marks.
## Dataset Structure
### Data Instances
When loading the dataset via the `datasets` library, each instance represents a single connected component extracted from the manuscript.
### Data Fields
| Field | Type | Description |
| :--- | :--- | :--- |
| `id` | int | Global component identifier. |
| `page_img` | string | Source page filename. |
| `bbox` | list | Bounding box coordinates in pixels. |
| `centroid` | list | Geometric centre (x, y) of the component. |
| `box_area` / `pixel_area` | int | Foreground-pixel count within the component. |
| `label` | int | 0 = retained (valid mathematical symbol), 1 = removed (strike-out/noise). |
| `comp_size` | list | Height and width of the bounding box. |
| `image` | Image | The actual cropped PNG image of the component. |
| `file` | string | The actual path of the image. |
## Usage
You can easily load the dataset using the Hugging Face `datasets` library. The images and metadata are already pre-aligned in Parquet format.
```python
from datasets import load_dataset
# Load the subset with real strike-outs
dataset_real = load_dataset("Incinciblecolonel/MathStrike", name="real")
# Load the subset with synthetic strike-outs
dataset_synth = load_dataset("Incinciblecolonel/MathStrike", name="synth")
# Access the training split
train_data = dataset_real["train"]
print(train_data[0])
# Directly visualize the component image
train_data[0]["image"].show()
```
## Alternative Download (Raw Files)
For researchers who prefer downloading the raw image folders and JSON annotations directly instead of using the `datasets` library, the complete archived dataset (ZIP) is hosted on Kaggle:
👉 **[Download Math-Strike on Kaggle](https://www.kaggle.com/datasets/senshen1020/mathscrub-handwritten-calculus-strike-out-dataset)**
## License
The Math-Strike dataset is distributed under the **CC-BY-NC 4.0** license for non-commercial research and educational use.
## Citation
If you find this dataset useful for your research, please cite our paper:
```
@article{shen2026mathscrub,
title={MathScrub: Single-Pipeline Strike-Out Removal and LaTeX Generation for Handwritten Calculus Expressions},
author={Shen, Sen and Liu, Ning and Song, Lintao and Han, Dongkun},
journal={IEEE Transactions on Learning Technologies},
year={2026},
publisher={IEEE}
}
``` |