songdj commited on
Commit
2b98ca4
·
verified ·
1 Parent(s): 8688023

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +167 -0
README.md ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - visual-question-answering
5
+ - image-classification
6
+ - text-generation
7
+ language:
8
+ - zh
9
+ tags:
10
+ - education
11
+ - math
12
+ - error-analysis
13
+ - handwritten
14
+ - multimodal
15
+ - scratchwork
16
+ pretty_name: ScratchMath
17
+ size_categories:
18
+ - 1K<n<10K
19
+ configs:
20
+ - config_name: primary
21
+ data_files: "primary/data-*.parquet"
22
+ - config_name: middle
23
+ data_files: "middle/data-*.parquet"
24
+ dataset_info:
25
+ - config_name: primary
26
+ features:
27
+ - name: question_id
28
+ dtype: string
29
+ - name: question
30
+ dtype: string
31
+ - name: answer
32
+ dtype: string
33
+ - name: solution
34
+ dtype: string
35
+ - name: student_answer
36
+ dtype: string
37
+ - name: student_scratchwork
38
+ dtype: image
39
+ - name: error_category
40
+ dtype:
41
+ class_label:
42
+ names:
43
+ 0: 计算错误
44
+ 1: 题目理解错误
45
+ 2: 知识点错误
46
+ 3: 答题技巧错误
47
+ 4: 手写誊抄错误
48
+ 5: 逻辑推理错误
49
+ 6: 注意力与细节错误
50
+ - name: error_explanation
51
+ dtype: string
52
+ splits:
53
+ - name: train
54
+ num_examples: 1479
55
+ - config_name: middle
56
+ features:
57
+ - name: question_id
58
+ dtype: string
59
+ - name: question
60
+ dtype: string
61
+ - name: answer
62
+ dtype: string
63
+ - name: solution
64
+ dtype: string
65
+ - name: student_answer
66
+ dtype: string
67
+ - name: student_scratchwork
68
+ dtype: image
69
+ - name: error_category
70
+ dtype:
71
+ class_label:
72
+ names:
73
+ 0: 计算错误
74
+ 1: 题目理解错误
75
+ 2: 知识点错误
76
+ 3: 答题技巧错误
77
+ 4: 手写誊抄错误
78
+ 5: 逻辑推理错误
79
+ 6: 注意力与细节错误
80
+ - name: error_explanation
81
+ dtype: string
82
+ splits:
83
+ - name: train
84
+ num_examples: 241
85
+ ---
86
+
87
+ # ScratchMath
88
+
89
+ **ScratchMath** is a multimodal benchmark dataset for evaluating the ability of Multimodal Large Language Models (MLLMs) to analyze handwritten mathematical scratchwork produced by real students. Unlike existing math benchmarks that focus on problem-solving accuracy, ScratchMath targets **error diagnosis** — identifying what type of mistake a student made and explaining why.
90
+
91
+ ## Dataset Description
92
+
93
+ The dataset contains 1,720 samples of authentic student scratchwork collected from an online education platform. Each sample includes:
94
+
95
+ - A math problem with its correct answer and solution
96
+ - The student's incorrect answer
97
+ - A photograph of the student's handwritten scratchwork
98
+ - A human-annotated error category and detailed error explanation
99
+
100
+ ### Subsets
101
+
102
+ | Subset | Description | Samples |
103
+ |--------|-------------|---------|
104
+ | `primary` | Primary school (Grades 1–6) math problems | 1,479 |
105
+ | `middle` | Middle school (Grades 7–9) math problems | 241 |
106
+
107
+ ### Error Categories
108
+
109
+ Each sample is labeled with one of seven error categories:
110
+
111
+ | Category | English | Primary | Middle |
112
+ |----------|---------|---------|--------|
113
+ | 计算错误 | Calculation Error | 453 | 113 |
114
+ | 题目理解错误 | Question Comprehension Error | 499 | 20 |
115
+ | 知识点错误 | Knowledge Gap Error | 174 | 45 |
116
+ | 答题技巧错误 | Problem-Solving Strategy Error | 118 | 17 |
117
+ | 手写誊抄错误 | Handwriting Transcription Error | 95 | 29 |
118
+ | 逻辑推理错误 | Logical Reasoning Error | 73 | 2 |
119
+ | 注意力与细节错误 | Attention & Detail Error | 67 | 15 |
120
+
121
+ ## Fields
122
+
123
+ | Field | Type | Description |
124
+ |-------|------|-------------|
125
+ | `question_id` | string | Unique identifier for the math problem |
126
+ | `question` | string | The math problem text (may contain LaTeX in `$...$` delimiters) |
127
+ | `answer` | string | The correct answer(s) |
128
+ | `solution` | string | Step-by-step solution with explanation |
129
+ | `student_answer` | string | The student's incorrect answer |
130
+ | `student_scratchwork` | image | Photograph of the student's handwritten work |
131
+ | `error_category` | ClassLabel | One of 7 error types (see above) |
132
+ | `error_explanation` | string | Detailed explanation of what error the student made and why |
133
+
134
+ ## Usage
135
+
136
+ ```python
137
+ from datasets import load_dataset
138
+
139
+ # Load primary school subset
140
+ ds_primary = load_dataset("songdj/ScratchMath", "primary")
141
+
142
+ # Load middle school subset
143
+ ds_middle = load_dataset("songdj/ScratchMath", "middle")
144
+
145
+ # Access a sample
146
+ sample = ds_primary["train"][0]
147
+ print(sample["question"])
148
+ print(sample["error_category"])
149
+ sample["student_scratchwork"].show() # Display the scratchwork image
150
+ ```
151
+
152
+ ## Citation
153
+
154
+ If you use this dataset, please cite:
155
+
156
+ ```bibtex
157
+ @inproceedings{song2026scratchmath,
158
+ title={Can MLLMs Read Students' Minds? Unpacking Multimodal Error Analysis in Handwritten Math},
159
+ author={Song, Dingjie and Xu, Tianlong and Zhang, Yi-Fan and Li, Hang and Yan, Zhiling and Fan, Xing and Li, Haoyang and Sun, Lichao and Wen, Qingsong},
160
+ booktitle={Proceedings of the 27th International Conference on Artificial Intelligence in Education (AIED)},
161
+ year={2026}
162
+ }
163
+ ```
164
+
165
+ ## License
166
+
167
+ This dataset is released under the [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) license.