uchandar29 commited on
Commit
5f49d14
·
verified ·
1 Parent(s): f9ae316

Updated README.md with dataset details and `dataset_info` configs

Browse files
Files changed (1) hide show
  1. README.md +94 -5
README.md CHANGED
@@ -1,16 +1,23 @@
1
  ---
2
- license: cc-by-nc-4.0
3
  configs:
4
  - config_name: default
5
  data_files:
6
  - split: train
7
  path: data/train-*
 
 
 
 
 
 
 
8
  dataset_info:
 
9
  features:
10
  - name: images
11
  list:
12
  image:
13
- decode: false
14
  - name: id
15
  dtype: string
16
  - name: messages
@@ -29,8 +36,90 @@ dataset_info:
29
  dtype: string
30
  splits:
31
  - name: train
32
- num_bytes: 3091580570
33
  num_examples: 145261
34
- download_size: 3070223641
35
- dataset_size: 3091580570
36
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
2
  configs:
3
  - config_name: default
4
  data_files:
5
  - split: train
6
  path: data/train-*
7
+ license: cc-by-nc-4.0
8
+ task_categories:
9
+ - image-text-to-text
10
+ language:
11
+ - en
12
+ size_categories:
13
+ - 100K<n<1M
14
  dataset_info:
15
+ - config_name: default
16
  features:
17
  - name: images
18
  list:
19
  image:
20
+ decode: true
21
  - name: id
22
  dtype: string
23
  - name: messages
 
36
  dtype: string
37
  splits:
38
  - name: train
 
39
  num_examples: 145261
 
 
40
  ---
41
+
42
+ # CDDM (Crop Disease Domain Multimodal) Dataset
43
+
44
+ CDDM is a large-scale multimodal benchmark dataset built to advance vision-language
45
+ models for crop disease diagnosis. It pairs 137,000 crop disease images with over 1
46
+ million instruction-following question-answer conversations covering disease
47
+ identification, causes, symptoms, and prevention/treatment strategies.
48
+
49
+ This dataset is indexed on https://project-agml.github.io/ as part of the AgML python
50
+ library. Standardized to the HF `image_text_to_text` format with a single conversational
51
+ `messages` schema, converted to **Parquet** with image bytes embedded directly.
52
+
53
+ ## Dataset Construction
54
+
55
+ The image data was compiled from two sources:
56
+
57
+ | Source | Images | Description |
58
+ |---|---|---|
59
+ | Web Data | 62,000 | Public agricultural datasets (Kaggle) plus web-crawled disease images |
60
+ | Private Data | 75,000 | Original images collected via field surveys across multiple farms and orchards |
61
+
62
+ All images were annotated by agricultural experts with crop category, disease category,
63
+ and appearance description. The dataset spans **16 crop categories** and **60 crop disease categories**;
64
+ 48 categories contain 500+ images each, with the remaining 7 containing 200–500 images.
65
+
66
+ Two instruction-following data types were generated using GPT-4 prompting:
67
+ - **Crop Disease Diagnosis QA** — over 1 million multi-turn QA pairs per image, covering
68
+ crop/disease identification, including deliberately-crafted negative-answer questions
69
+ to counter models' tendency toward false-positive diagnoses. Avg. question length: 6.11
70
+ words; avg. answer length: 8.92 words.
71
+ - **Crop Disease Knowledge QA** — QA pairs generated from expert-curated disease
72
+ knowledge text (symptoms, pathogen characteristics, transmission, prevention/control).
73
+ Avg. question length: 9.69 words; avg. answer length: 130.41 words.
74
+
75
+ A held-out test set of 3,000 images (not included in training data) was used by the
76
+ original authors for benchmark evaluation.
77
+
78
+ ## Usage
79
+
80
+ ```python
81
+ from datasets import load_dataset
82
+
83
+ ds = load_dataset("Project-AgML/CDDM")
84
+ first = ds["train"][0]
85
+
86
+ # Access an image — decoded to PIL automatically
87
+ img = first["images"][0]
88
+ img.show()
89
+ ```
90
+
91
+ ## Schema
92
+
93
+ Every record shares the SAME columns so heterogeneous AgML datasets concatenate cleanly:
94
+ `id`, `images` (embedded image bytes), `messages`, `origin_dataset`, and `raw_metadata`.
95
+
96
+ `raw_metadata` is a JSON-encoded string holding source fields not folded into `messages`
97
+ (here: `file_names` pointing to the original image path, and annotated `crop_category` /
98
+ `disease_category` where available); restore it with `json.loads(row["raw_metadata"])`.
99
+ Image placeholders in `messages` align 1:1 with the `images` column.
100
+
101
+ ## Citation
102
+
103
+ ```bibtex
104
+ @inproceedings{liu2024cddm,
105
+ title={A Multimodal Benchmark Dataset and Model for Crop Disease Diagnosis},
106
+ author={Liu, Xiang and Liu, Zhaoxiang and Hu, Huan and Chen, Zezhou and Wang, Kohou and Wang, Kai and Lian, Shiguo},
107
+ booktitle={Computer Vision -- ECCV 2024},
108
+ pages={157--170},
109
+ year={2025},
110
+ publisher={Springer Nature Switzerland},
111
+ address={Cham},
112
+ isbn={978-3-031-73016-0},
113
+ doi={10.1007/978-3-031-73016-0_10}
114
+ }
115
+
116
+ Liu, Xiang; Liu, Zhaoxiang; Hu, Huan; Chen, Zezhou; Wang, Kohou; Wang, Kai; Lian, Shiguo (2025), "A Multimodal Benchmark Dataset and Model for Crop Disease Diagnosis", ECCV 2024, pp. 157-170
117
+ ```
118
+
119
+ ## License
120
+
121
+ Released by the original authors (China Unicom AI Innovation Center) as an open-source
122
+ initiative for agricultural multimodal research. Original source and download instructions:
123
+ https://github.com/UnicomAI/UnicomBenchmark/tree/main/CDDMBench. This license
124
+ information is for reference only and does not constitute legal advice — refer to the
125
+ original repository for the authoritative license terms.