hheiden commited on
Commit
26961b8
·
verified ·
1 Parent(s): 71dd9c8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +135 -7
README.md CHANGED
@@ -13,15 +13,143 @@ dataset_info:
13
  dtype: string
14
  - name: inchi
15
  dtype: string
16
- splits:
17
  - name: train
18
- num_bytes: 6309864
19
- num_examples: 992
20
- download_size: 3946379
21
- dataset_size: 6309864
22
  configs:
23
  - config_name: default
24
- data_files:
25
  - split: train
26
- path: data/train-*
 
 
 
 
 
 
 
 
 
 
 
27
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  dtype: string
14
  - name: inchi
15
  dtype: string
16
+   splits:
17
  - name: train
18
+     num_bytes: 6309864
19
+     num_examples: 992
20
+   download_size: 3946379
21
+   dataset_size: 6309864
22
  configs:
23
  - config_name: default
24
+   data_files:
25
  - split: train
26
+     path: data/train-*
27
+ task_categories:
28
+ - image-to-text
29
+ tags:
30
+ - chemistry
31
+ - science
32
+ - ocsr
33
+ - ocr
34
+ - patents
35
+ pretty_name: CLEF-IP 2012 Structure Recognition Test Set
36
+ size_categories:
37
+ - n<1K
38
  ---
39
+
40
+ # Dataset Card for CLEF-IP 2012 Structure Recognition Test Set
41
+
42
+ This dataset is the official test set from the "Chemical Structure Recognition in Images" task held as part of the CLEF-IP 2012 workshop. It contains 992 images of chemical structures extracted from US patents, each paired with a ground-truth MOL file. This Hugging Face version has been augmented with canonical SMILES, InChI, and SELFIES strings to provide a comprehensive resource for evaluating image-to-structure models, particularly on patent literature.
43
+
44
+ ## Dataset Details
45
+
46
+ ### Dataset Description
47
+
48
+ The CLEF-IP 2012 dataset was created to benchmark the performance of Optical Chemical Structure Recognition (OCSR) systems on the challenging domain of patent documents. Images in patents are often of lower quality and present more variability than those found in chemical catalogues or textbooks, making this a valuable resource for testing model robustness.
49
+
50
+ This Hugging Face dataset version processes the provided ground truth MOL files to generate canonical SMILES, InChI, and SELFIES strings using RDKit, providing a variety of useful representations for machine learning evaluation tasks.
51
+
52
+ This particular version of the dataset was sourced from the benchmark suite compiled for the paper "A review of optical chemical structure recognition tools" by Rajan et al. In that benchmark, the original TIFF images were converted to 72dpi PNG files. This Hugging Face dataset version further processes the provided MOL files to generate canonical SMILES, InChI, and SELFIES strings using RDKit, providing a variety of useful representations for machine learning tasks.
53
+
54
+ - **Curated by:** The original dataset was curated by Peter M. Mast, Engelbert Zass, and John M. Barnard for the CLEF-IP 2012 workshop. This Hugging Face version was prepared by Hunter Heidenreich.
55
+ - **License:** The data was released for the CLEF-IP 2012 research challenge. A specific license is not provided, but it is intended for research and evaluation purposes.
56
+
57
+ ### Dataset Sources
58
+
59
+ - **Repository:**
60
+ - [Hugging Face Dataset Repo](https://huggingface.co/datasets/hheiden/CLEF-IP_2012_OCSR_test)
61
+ - [Chemical Structure Recognition task 2012](http://www.ifs.tuwien.ac.at/~clef-ip/2012/chem.shtml)
62
+ - [OCSR Review GitHub (Source of this version's data)](https://github.com/Kohulan/OCSR_Review)
63
+
64
+ ## Uses
65
+
66
+ ### Direct Use
67
+
68
+ This dataset is a test set and is intended for **evaluating** Optical Chemical Structure Recognition (OCSR) models. It is particularly well-suited for measuring performance on images sourced from patent documents. It can be used for tasks such as:
69
+
70
+ - Image-to-SMILES translation
71
+ - Image-to-InChI translation
72
+ - Benchmarking OCSR tool performance on patent data
73
+
74
+ ### Out-of-Scope Use
75
+
76
+ This dataset should **not** be used for training models due to its small size and its designation as a test set. Doing so would violate the principle of separating training and testing data and lead to inflated performance metrics. The dataset's focus on patent images means models evaluated on it may not have their performance generalize to other domains like textbooks or chemical catalogues.
77
+
78
+ ## Dataset Structure
79
+
80
+ The dataset consists of a single split ('train', reflecting the source file structure) containing 992 examples. Each example has the following fields:
81
+
82
+ - `id` (string): A unique identifier for the example (e.g., `US03862136-0002-MOL-2`).
83
+ - `image` (image): A PIL-encoded image of the chemical structure.
84
+ - `mol` (string): The ground truth structure in MOL file format.
85
+ - `smiles` (string): The canonical SMILES string for the molecule, generated from the `mol` data using RDKit.
86
+ - `inchi` (string): The standard InChI string for the molecule, generated from the `mol` data using RDKit.
87
+ - `selfies` (string): The SELFIES (SELF-referencIng Embedded Strings) representation of the molecule, generated from the `smiles` string.
88
+
89
+ ## Dataset Creation
90
+
91
+ ### Curation Rationale
92
+
93
+ The dataset was created to provide a standardized, public benchmark for evaluating OCSR systems on patent literature. This domain is of high commercial and scientific importance, but presents unique challenges due to the quality and format of images embedded in patent documents.
94
+
95
+ ### Source Data
96
+
97
+ #### Data Collection and Processing
98
+
99
+ The source data comprises 2D chemical structure diagrams extracted from United States patent documents. The ground truth MOL files were generated and manually validated by experts at InfoChem.
100
+
101
+ This Hugging Face version uses a script to process the provided MOL files, generating canonical SMILES, InChI, and SELFIES strings for each entry using the RDKit and `selfies` libraries.
102
+
103
+ #### Who are the source data producers?
104
+
105
+ The chemical structure diagrams were originally published within US patents. The dataset was collected and curated by the organizers of the CLEF-IP 2012 "Chemical Structure Recognition in Images" task.
106
+
107
+ ## Bias, Risks, and Limitations
108
+
109
+ - **Domain Specificity:** The dataset is sourced exclusively from US patents. The style, quality, and resolution of these images may not be representative of chemical diagrams found in patents from other regions (e.g., EPO, WIPO) or in different types of documents (e.g., scientific journals, textbooks).
110
+ - **Image Quality:** Patent images can be of variable and often low quality, containing scanning artifacts, noise, and compression effects. While this is a feature for a robust benchmark, it's a limitation for general-purpose use.
111
+ - **Small Size:** As a test set of 992 examples, it provides a snapshot of performance but may not be large enough to draw statistically significant conclusions for all models.
112
+
113
+ ### Recommendations
114
+
115
+ Users should be aware that this dataset is a small evaluation benchmark specific to the domain of US patent images from a particular era. It should be used exclusively for testing and not for training. Performance on this dataset should be reported alongside results from other benchmarks to provide a more complete picture of a model's capabilities.
116
+
117
+ ## Citation
118
+
119
+ **BibTeX:**
120
+
121
+ ```bibtex
122
+ @inproceedings{mast2012clef,
123
+ title={The CLEF-IP 2012 chemical structure recognition task},
124
+ author={Mast, Peter M and Zass, Engelbert and Barnard, John M},
125
+ booktitle={CLEF (Online Working Notes/Labs/Workshop)},
126
+ year={2012}
127
+ }
128
+
129
+ @article{Rajan2020,
130
+ author = {Rajan, Kohulan and Brinkhaus, Henning Otto and Zielesny, Achim and Steinbeck, Christoph},
131
+ doi = {10.1186/s13321-020-00465-0},
132
+ journal = {Journal of Cheminformatics},
133
+ title = {{A review of optical chemical structure recognition tools}},
134
+ year = {2020}
135
+ }
136
+
137
+ @misc{huggingface_dataset_CLEF,
138
+ author = {Heidenreich, Hunter},
139
+ title = {CLEF OCSR Benchmark},
140
+ year = {2025},
141
+ publisher = {Hugging Face},
142
+ journal = {Hugging Face repository},
143
+ howpublished = {\url{[https://huggingface.co/datasets/hheiden/CLEF_OCSR_benchmark](https://huggingface.co/datasets/hheiden/CLEF_OCSR_benchmark)}}
144
+ }
145
+ ````
146
+
147
+ ## Dataset Card Authors
148
+
149
+ Original dataset: Peter M. Mast, Engelbert Zass, John M. Barnard
150
+
151
+ Hugging Face version: Hunter Heidenreich, hheiden
152
+
153
+ ## Dataset Card Contact
154
+
155
+ Hunter Heidenreich, hheiden