ATHAAR: A Medieval Scientific Arabic Manuscript Dataset for Handwritten Text Recognition
Organizations: IRIT, Université de Toulouse, France · IMT, Université de Toulouse, France · CLLE, Université de Toulouse Jean-Jaurès, France
Abstract
Despite recent progress in handwritten text recognition, medieval Arabic scientific manuscripts remain an open challenge for current vision-language models (VLMs) due to cursive ligatures, variable diacritization, and more importantly the lack of training data. This paper aims to address this gap, by proposing the first annotation guidelines dedicated to the transcription of scientific Arabic manuscripts inspired by textual criticism, a well-established approach to historical text editing. We then propose, ATHAAR, a new dataset manually annotated following this guideline. Unlike previous resources in the field, ATHAAR varies both witnesses of the same text, calligraphic styles, and content to deal with texts but also numerals. Relying on state-of-the-art VLMs, we finally design a set of experiments to study models transfer across scripts, chapters, and treatises. Our findings highlight the limitations of current systems when faced with the specificities of ancient scientific texts.
Figures & tables
| Name | Domain | Date / period | Volume | Numeral content | Script variation | Several witnesses of the same text | Guide / agreement |
|---|---|---|---|---|---|---|---|
| Muharaf ( Saeed et al., 2024 ) | Literature | 19th–21st c. | 1,644 images; 36,311 lines | n/r | No: Only Ruq’ah | No | ✗ / ✗ |
| Agapet ( Ibrahim, 2024 ) | Religious | 13th, 14th, 17th c. | 831 pages | n/r | Yes, n/r | n/r | ✗ / ✗ |
| Historical Arabic HTR ( Najam and Faizullah, 2024 ) | Religious | n/r | 40 pages; 640 lines | n/r | n/r | No | ✗ / ✗ |
| RASM ( Clausner et al., 2018 ) | Scientific | 10th–19th c. | 120 pages; 2,164–2,613 lines | Yes: n/r | n/r | n/r | ✗ / ✗ |
| RASAM ( Vidal-Gorène et al., 2021b ) | Literature | 17th–19th c. | 300 images; 7,540 lines (v1) | Yes: fractions, tables; n/r | No: Only Maghrebi | No | ✗ † / ✗ |
| Iskandar ( LiPA and Huma-Num, 2024 ) | Literature | 17th–19th c. | 297 pages | n/r | Yes, n/r | Yes: 5 copies of one work but not same content | ✗ / ✗ |
| Manuscript | Date | #ch | Script | #Pg/Ln | %D. | Dg. |
| Tiers 1–2: al-Qānūn | ||||||
| Ms01 (Berlin, 1613) | 12th c. | 2 | Naskh | 7/224 | 2.58 | 198 |
| Ms02 (Berlin, 275) | 19th c. | 2 | Nasta’liq | 11/290 | 0.08 | 200 |
| Ms04 (Cairo, 866) | 13th c. | 2 | Naskh | 8/217 | 20.63 | 195 |
| Ms05 (Hyderabad, 374) | 17th c. | 1 | Nasta’liq | 8/156 | 0.00 | 190 |
| Ms06 (Istanbul, 87) | 11–12th | 2 | Naskh | 14/339 | 12.88 | 202 |
| Manuscript | Lines | CER (%) | WER (%) |
|---|---|---|---|
| Ms01 | 33 | 1.6 | 7.1 |
| Ms02 | 27 | 2.4 | 9.2 |
| Ms13 | 31 | 4.5 | 20.5 |
| Ms17 | 36 | 2.2 | 12.2 |
| Pooled | 127 | 2.6 | 11.7 |
| Gemini | CHURRO | Qari-OCR | |||||
|---|---|---|---|---|---|---|---|
| Exp. | CER | WER | CER | WER | CER | WER | |
| C-Scr (N) | 0 | 17.2 | 62.1 | 76.5 | 124.5 | 88.6 | 135.5 |
| 3 | 16.3 | 62.3 | 70.0 | 115.6 | 154.5 | 198.9 | |
| C-Scr (NT) | 0 | 20.0 | 55.4 | 87.3 | 143.4 | 93.9 | 157.6 |
| 3 | 18.5 | 53.8 | 79.9 | 134.9 | 158.6 | 219.5 | |
| C-Ch | 0 | 18.9 | 61.8 | 75.3 | 127.5 | 78.7 | 127.7 |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Manuscript | Date | #ch. | Chapter | Script | Statistics | ||||||||
| Pages | Lines | Words | Chars | Diacr. marks | % diacr. | Numeral strings | Digits | Tags | |||||
| Tiers 1–2: al-Qānūn al-Mas‘ūdī | |||||||||||||
| Ms01_Berlin_Or-Quart-1613 | 12th c., 1166 | 2 | X.6 | Naskh | 5 | 158 | 3,114 | 13,461 | 316 | 2.35 | 51 | 198 | 3 |
| I.4 | 2 | 66 | 1,298 | 6,079 | 189 | 3.11 | 0 | 0 | 0 | ||||
| Ms02_Berlin_Or-Oct-275 | 19th c., 1834 | 2 | X.6 | Nasta’liq | 7 | 180 | 2,672 | 10,964 | 14 | 0.13 | 52 | 200 | 0 |
| XI.2 | 4 | 110 | 1,519 | 6,881 | 1 | 0.01 | 0 | 0 | 0 | ||||
| Exper. | Total lines | Query (70%) | Support (30%) |
|---|---|---|---|
| C-Scr | 2,164 | 1,516 | 648 |
| C-Ch | 804 | 564 | 240 |
| C-Tr | 924 | 646 | 278 |
| Gemini | CHURRO | Qari-OCR | ||||
| Witness | CER | WER | CER | WER | CER | WER |
| Naskh queries — support from Nasta’liq pool | ||||||
| Ms01 (Berlin 1613) | 14.3 | 48.4 | 64.2 | 115.2 | 175.8 | 225.0 |
| Ms04 (Cairo 866) | 34.1 | 123.9 | 62.2 | 109.8 | 106.5 | 153.3 |
| Ms06 (Istanbul 87) | 19.6 | 86.7 | 54.5 | 93.9 | 123.5 | 155.1 |
| Ms07 (Konya 6625) | 13.4 | 41.5 | 74.6 | 125.2 | 247.9 | 338.2 |
| Gemini | CHURRO | Qari-OCR | ||||
|---|---|---|---|---|---|---|
| Witness | CER | WER | CER | WER | CER | WER |
| Ms01 (Berlin 1613) | 5.6 | 26.9 | 35.3 | 85.0 | 156.4 | 171.8 |
| Ms02 (Berlin 275) | 25.3 | 60.3 | 55.5 | 109.3 | 250.2 | 343.0 |
| Ms04 (Cairo 866) | 28.0 | 99.7 | 40.7 | 91.0 | 124.5 | 117.5 |
| Ms06 (Istanbul 87) | 23.3 | 82.9 | 57.1 | 108.0 | 203.3 | 168.3 |
| Ms08 (Istanbul 1498) | 35.0 | 86.0 | 111.0 | 167.5 | 106.4 | 172.0 |
| Gemini | CHURRO | Qari-OCR | ||||
|---|---|---|---|---|---|---|
| Witness | CER | WER | CER | WER | CER | WER |
| Ms Ar 2494 (Abū al-Wafā) | 25.1 | 63.3 | 68.7 | 105.8 | 153.7 | 175.2 |
| Ms Ar 2458 (Ibn al-Haytham) | 29.3 | 73.2 | 75.3 | 114.7 | 335.7 | 335.8 |
| Ms Ar 2504 (Farghānī) | 2.3 | 13.7 | 38.4 | 107.4 | 260.6 | 381.1 |
| Ms Ar 2546 (Farghānī) | 13.9 | 39.8 | 49.3 | 110.8 | 217.5 | 319.4 |
| Ms Ar 2497 (Bīrūnī) | 7.5 | 25.9 | 32.8 | 104.9 | 275.6 | 377.8 |
| CER (%) | WER (%) | |
|---|---|---|
| 1 | ||
| 3 | ||
| 5 | ||
| 7 | ||
| 10 |
Optical Character Recognition
Optical character recognition converts text in images into machine-readable text, from printed pages and handwriting to signs and symbols.
See all 206 papers