Datasets:

Modalities:
Image
Text
Formats:
parquet
ArXiv:
License:
File size: 5,015 Bytes
01ff86a
 
3a22e44
 
 
 
01ff86a
 
3a22e44
01ff86a
3a22e44
 
 
 
 
 
498e6c0
3a22e44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
01ff86a
 
 
 
498e6c0
01ff86a
498e6c0
 
 
 
01ff86a
498e6c0
01ff86a
 
 
498e6c0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
01ff86a
 
498e6c0
 
 
 
 
 
 
 
 
 
 
 
 
 
01ff86a
498e6c0
01ff86a
498e6c0
01ff86a
498e6c0
 
 
 
 
 
 
 
01ff86a
498e6c0
 
 
 
01ff86a
498e6c0
 
01ff86a
 
498e6c0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
01ff86a
 
498e6c0
01ff86a
498e6c0
 
 
 
 
 
 
 
 
 
01ff86a
 
 
 
 
 
 
 
 
 
 
498e6c0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
---
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
license: cc-by-nc-4.0
task_categories:
- image-text-to-text
size_categories:
- 10K<n<100K
dataset_info:
  features:
  - name: images
    list:
      image:
        decode: true
  - name: id
    dtype: string
  - name: messages
    list:
    - name: role
      dtype: string
    - name: content
      list:
      - name: type
        dtype: string
      - name: text
        dtype: string
  - name: origin_dataset
    dtype: string
  - name: raw_metadata
    dtype: string
  splits:
  - name: train
    num_bytes: 20642731765
    num_examples: 28482
  download_size: 20638215440
  dataset_size: 20642731765
---

# AgroMind

AgroMind is an agricultural remote sensing benchmark for evaluating large multimodal models on agricultural scene understanding. It contains **28,482 question-answer pairs** paired with **20,850 images** drawn from nine public datasets plus proprietary global parcel data, spanning **13 task types** across **4 evaluation dimensions**:

- **Spatial Perception** — localization, relationship determination, boundary detection
- **Object Understanding** — classification, pest/disease diagnostics, growth status assessment
- **Scene Understanding** — comparison, counting, area statistics
- **Scene Reasoning** — visual prompt reasoning, anomaly detection, climate classification, yield prediction

This dataset has been standardized to the HF `image_text_to_text` format and converted to **Parquet** with image bytes embedded directly in the dataset. All subsets (`Agriculture`, `CropHarvest`, `Fruit`, `Leaf_diseases`, `Oil_palm_trees`, `Pest`, `Rural`, `Trees`, `corn`, `crop`) have been concatenated into a single flat dataset — use the `origin_dataset` column or the `id` field (`agromind_{subset}_{index}`) to filter by source subset. Images are organized by subset under `images/{subset}/` within each row's `raw_metadata`.

This dataset is indexed on https://project-agml.github.io/ as part of the AgML python library.

---

## Schema

Every record shares the same columns so heterogeneous subsets concatenate cleanly.

| Column | Type | Description |
|---|---|---|
| `id` | `string` | Unique row identifier of the form `agromind_{subset}_{index}` |
| `images` | `list[Image]` | List of images embedded as bytes, aligned to `{"type": "image"}` placeholders in `messages` |
| `messages` | `list[dict]` | Conversational VLM format with `role` and `content` fields |
| `origin_dataset` | `string` | Source dataset name for provenance tracking |
| `raw_metadata` | `string` | JSON-encoded string of all original source fields not folded into `messages`; always includes `file_names` pointing to `images/{subset}/filename` |

### `messages` structure

```python
[
  {
    "role": "user",
    "content": [
      {"type": "image", "text": None},   # placeholder aligned to images list
      {"type": "text", "text": "<question>"}
    ]
  },
  {
    "role": "assistant",
    "content": [{"type": "text", "text": "<answer>"}]
  }
]
```

### `raw_metadata` structure

`raw_metadata` is a JSON string (not a native struct) — this is intentional, as it allows `concatenate_datasets()` to work across subsets whose original source fields differ in type. Restore fields with `json.loads(row["raw_metadata"])`. It always contains `file_names` for image path traceability:

```python
{
  "file_names": ["images/Agriculture/filename.jpg"],
  # ...original source fields preserved verbatim
}
```

---

## Usage

```python
from datasets import load_dataset

# Load the full dataset
ds = load_dataset("Project-AgML/AgroMind")

# Stream without downloading
ds = load_dataset("Project-AgML/AgroMind", streaming=True)

# Filter by subset using origin_dataset
agriculture = ds["train"].filter(lambda x: x["origin_dataset"] == "Agriculture")

# Or filter using the id field (format: agromind_{subset}_{index})
crop_harvest = ds["train"].filter(lambda x: x["id"].split("_")[1] == "CropHarvest")
```

### Accessing images

Images are stored as embedded bytes and decoded to PIL automatically:

```python
row = ds["train"][0]
image = row["images"][0]          # PIL Image, ready to use
print(image.size)                 # (width, height)
print(image.mode)                 # RGB
```

### Restoring raw metadata

```python
import json

meta = json.loads(row["raw_metadata"])
print(meta["file_names"])         # ['images/Agriculture/filename.jpg']
```

---

## Citation

```bibtex
@misc{li2025largemultimodalmodelsunderstand,
      title={Can Large Multimodal Models Understand Agricultural Scenes? Benchmarking with AgroMind},
      author={Li, Qingmei and Zhang, Yang and Mai, Zurong and Chen, Yuhang and Lou, Shuohong and Huang, Henglian and Zhang, Jiarui and Zhang, Zhiwei and Wen, Yibin and Li, Weijia and Fu, Haohuan and Huang, Jianxi and Zheng, Juepeng},
      year={2025},
      eprint={2505.12207},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2505.12207}
}
```