titusz commited on
Commit
f21b80c
·
verified ·
1 Parent(s): 31b89be

Update dataset card

Browse files
Files changed (1) hide show
  1. README.md +260 -33
README.md CHANGED
@@ -1,37 +1,264 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
  features:
4
- - name: image_url
5
- dtype: string
6
- - name: iscc
7
- dtype: string
8
- - name: iscc_meta
9
- dtype: string
10
- - name: iscc_semantic
11
- dtype: string
12
- - name: iscc_content
13
- dtype: string
14
- - name: iscc_data
15
- dtype: string
16
- - name: iscc_instance
17
- dtype: string
18
- - name: source_row_id
19
- dtype: string
20
- - name: title
21
- dtype: string
22
- - name: isbn
23
- dtype: string
24
- - name: publisher
25
- dtype: string
26
- splits:
27
- - name: train
28
- num_bytes: 1815332785
29
- num_examples: 3079720
30
- download_size: 1295751379
31
- dataset_size: 1815332785
32
- configs:
33
- - config_name: default
34
- data_files:
35
- - split: train
36
- path: data/train-*
37
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ annotations_creators:
3
+ - machine-generated
4
+ language_creators:
5
+ - found
6
+ language:
7
+ - en
8
+ license: other
9
+ multilinguality:
10
+ - monolingual
11
+ size_categories:
12
+ - 1M<n<10M
13
+ source_datasets:
14
+ - cogsci13/Amazon-Reviews-2023-Books-Meta
15
+ task_categories:
16
+ - image-feature-extraction
17
+ - zero-shot-image-classification
18
+ tags:
19
+ - iscc
20
+ - content-identification
21
+ - similarity-search
22
+ - deduplication
23
+ - image
24
+ - iso-24138
25
+ - amazon
26
+ - books
27
+ - book-covers
28
+ pretty_name: "ISCC Codes for Amazon Book Covers"
29
  dataset_info:
30
  features:
31
+ - name: image_url
32
+ dtype: string
33
+ - name: iscc
34
+ dtype: string
35
+ - name: iscc_meta
36
+ dtype: string
37
+ - name: iscc_semantic
38
+ dtype: string
39
+ - name: iscc_content
40
+ dtype: string
41
+ - name: iscc_data
42
+ dtype: string
43
+ - name: iscc_instance
44
+ dtype: string
45
+ - name: source_row_id
46
+ dtype: string
47
+ - name: title
48
+ dtype: string
49
+ - name: isbn
50
+ dtype: string
51
+ - name: publisher
52
+ dtype: string
 
 
 
 
 
 
 
 
 
 
 
53
  ---
54
+
55
+ # ISCC Codes for Amazon Book Covers
56
+
57
+ Amazon book covers enriched with full 256-bit ISCC (International Standard Content Code) identifiers for cover image identification, similarity search, and deduplication research. The `image_url` field links to cover images on Amazon CDN for preview.
58
+
59
+ ## What is ISCC?
60
+
61
+ The **International Standard Content Code** ([ISO 24138:2024](https://www.iso.org/standard/77899.html)) is a
62
+ content-derived identifier for digital media assets. Unlike traditional identifiers that are assigned
63
+ arbitrarily, ISCC codes are generated algorithmically from the content itself, enabling:
64
+
65
+ - **Content Identification**: Identify content regardless of format or location
66
+ - **Similarity Search**: Find visually or semantically similar images
67
+ - **Deduplication**: Detect exact and near-duplicate content
68
+ - **Provenance Tracking**: Link derived works to their sources
69
+
70
+ ## ISCC Units
71
+
72
+ Each record contains five 256-bit ISCC-UNITs that capture different aspects of the content:
73
+
74
+ | Unit | Field | Description |
75
+ |------|-------|-------------|
76
+ | **Meta-Code** | `iscc_meta` | Similarity based on embedded metadata (filename, title) |
77
+ | **Semantic-Code** | `iscc_semantic` | AI-based visual semantic similarity (what the image depicts) |
78
+ | **Content-Code** | `iscc_content` | Perceptual image similarity (visual appearance) |
79
+ | **Data-Code** | `iscc_data` | Raw binary data similarity (file structure) |
80
+ | **Instance-Code** | `iscc_instance` | Cryptographic hash for exact matching (like SHA-256) |
81
+
82
+ The `iscc` field contains the composite ISCC-CODE combining all units.
83
+
84
+ ## Dataset Structure
85
+
86
+ ### Data Fields
87
+
88
+ | Field | Type | Description |
89
+ |-------|------|-------------|
90
+ | `image_url` | string | Cover image URL on Amazon CDN |
91
+ | `iscc` | string | Full composite ISCC-CODE |
92
+ | `iscc_meta` | string | 256-bit Meta-Code |
93
+ | `iscc_semantic` | string | 256-bit Semantic-Code |
94
+ | `iscc_content` | string | 256-bit Content-Code |
95
+ | `iscc_data` | string | 256-bit Data-Code |
96
+ | `iscc_instance` | string | 256-bit Instance-Code |
97
+ | `source_row_id` | string | Original row identifier (`parent_asin`) in source dataset |
98
+ | `title` | string | Book title |
99
+ | `isbn` | string | ISBN-13 (preferred) or ISBN-10 |
100
+ | `publisher` | string | Publisher name and edition info |
101
+
102
+ ### Data Splits
103
+
104
+ | Split | Samples |
105
+ |-------|---------|
106
+ | train | 3,079,720 |
107
+
108
+ ## Usage
109
+
110
+ ### Loading the Dataset
111
+
112
+ ```python
113
+ from datasets import load_dataset
114
+
115
+ ds = load_dataset("iscc/iscc-book-covers")
116
+ ```
117
+
118
+ ### Viewing a Sample
119
+
120
+ ```python
121
+ sample = ds["train"][0]
122
+ print(f"ISCC: {sample['iscc']}")
123
+ print(f"Title: {sample['title']}")
124
+ ```
125
+
126
+ ### Similarity Search Example
127
+
128
+ ```python
129
+ import iscc_core as ic
130
+
131
+ # Get two ISCC codes to compare
132
+ code1 = ds["train"][0]["iscc_content"]
133
+ code2 = ds["train"][1]["iscc_content"]
134
+
135
+ # Calculate hamming distance (0 = identical, 256 = maximally different)
136
+ distance = ic.iscc_distance(code1, code2)
137
+ print(f"Hamming distance: {distance}")
138
+
139
+ # Convert to similarity percentage
140
+ similarity = 1 - (distance / 256)
141
+ print(f"Similarity: {similarity:.1%}")
142
+ ```
143
+
144
+ ### Finding Near-Duplicates
145
+
146
+ ```python
147
+ import iscc_core as ic
148
+
149
+ # Threshold for near-duplicates (adjust based on use case)
150
+ THRESHOLD = 32 # ~87.5% similarity
151
+
152
+ reference = ds["train"][0]["iscc_content"]
153
+
154
+ for i, row in enumerate(ds["train"]):
155
+ distance = ic.iscc_distance(reference, row["iscc_content"])
156
+ if distance <= THRESHOLD and i > 0:
157
+ print(f"Near-duplicate found: row {i}, distance={distance}")
158
+ ```
159
+
160
+ ### Semantic Similarity Search
161
+
162
+ ```python
163
+ import iscc_core as ic
164
+
165
+ # Find semantically similar images (same subject/concept)
166
+ reference = ds["train"][0]["iscc_semantic"]
167
+
168
+ similar = []
169
+ for i, row in enumerate(ds["train"]):
170
+ distance = ic.iscc_distance(reference, row["iscc_semantic"])
171
+ if distance <= 64: # ~75% semantic similarity
172
+ similar.append((i, distance))
173
+
174
+ # Sort by similarity
175
+ for idx, dist in sorted(similar, key=lambda x: x[1])[:5]:
176
+ print(f"Row {idx} (distance={dist})")
177
+ ```
178
+
179
+ ## Source Data
180
+
181
+ This dataset was derived from [cogsci13/Amazon-Reviews-2023-Books-Meta](https://huggingface.co/datasets/cogsci13/Amazon-Reviews-2023-Books-Meta).
182
+
183
+ ### Source Data
184
+ Book metadata from the Amazon Reviews 2023 dataset by McAuley Lab.
185
+ Cover images hosted by Amazon CDN. This derivative dataset contains
186
+ ISCC codes and references to the original images, not the images themselves.
187
+ **License**: Research use only. Refer to original dataset terms.
188
+
189
+ ### Processing
190
+
191
+ ISCC codes were generated using:
192
+ - [iscc-sdk](https://github.com/iscc/iscc-sdk) - High-level ISCC generation
193
+ - [iscc-sci](https://github.com/iscc/iscc-sci) - Semantic image codes (experimental)
194
+
195
+ All processing was performed on original resolution images downloaded from Amazon CDN.
196
+
197
+ ## Considerations
198
+
199
+ ### Intended Use
200
+
201
+ - Content identification and matching research
202
+ - Image similarity search algorithm development
203
+ - Deduplication system benchmarking
204
+ - Visual-semantic retrieval experiments
205
+ - ISCC-based indexing research
206
+
207
+ ### Limitations
208
+
209
+ - Semantic codes are generated using experimental AI models and may not capture all semantic nuances
210
+ - ISCC codes are sensitive to significant image modifications (heavy cropping, overlays, filters)
211
+ - Image URLs point to Amazon CDN and may become unavailable over time
212
+
213
+ ### Privacy
214
+
215
+ This dataset contains ISCC codes and image URL references derived from the source dataset. Refer to the original
216
+ dataset documentation for privacy considerations.
217
+
218
+ ## Citation
219
+
220
+ If you use this dataset, please cite both this dataset and the original source:
221
+
222
+ **This Dataset:**
223
+ ```bibtex
224
+ @dataset{iscc_book_covers,
225
+ title = {{ISCC Codes for Amazon Book Covers}},
226
+ author = {{ISCC Foundation}},
227
+ year = {{2026}},
228
+ publisher = {{Hugging Face}},
229
+ url = {{https://huggingface.co/datasets/iscc/iscc-book-covers}}
230
+ }
231
+ ```
232
+
233
+ **Amazon Reviews 2023:**
234
+ ```bibtex
235
+ @article{hou2024bridging,
236
+ title = {{Bridging Language and Items for Retrieval and Recommendation}},
237
+ author = {{Hou, Yupeng and Li, Jiacheng and He, Zhankui and Yan, An and Chen, Xiusi and McAuley, Julian}},
238
+ journal = {{arXiv preprint arXiv:2403.03952}},
239
+ year = {{2024}}
240
+ }
241
+ ```
242
+
243
+ **ISCC Standard:**
244
+ ```bibtex
245
+ @misc{iso24138,
246
+ title = {{ISO 24138:2024 Information and documentation -- International Standard Content Code (ISCC)}},
247
+ author = {{International Organization for Standardization}},
248
+ year = {{2024}},
249
+ url = {{https://www.iso.org/standard/77899.html}}
250
+ }
251
+ ```
252
+
253
+ ## Additional Resources
254
+
255
+ - [ISCC Foundation](https://iscc.io/) - Standards organization
256
+ - [ISCC Documentation](https://sdk.iscc.codes/) - Technical documentation
257
+ - [ISO 24138:2024](https://www.iso.org/standard/77899.html) - Official standard
258
+ - [iscc-sdk](https://github.com/iscc/iscc-sdk) - Python SDK for ISCC generation
259
+ - [Amazon Reviews 2023](https://amazon-reviews-2023.github.io/)
260
+
261
+ ## Contact
262
+
263
+ - **Dataset Issues**: [iscc-datasets GitHub](https://github.com/iscc/iscc-datasets/issues)
264
+ - **ISCC Questions**: [ISCC Foundation](https://iscc.io/)