File size: 12,350 Bytes
5f7e1f7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
030fc46
 
 
 
 
 
5f7e1f7
 
 
 
 
 
 
030fc46
 
 
 
0d430ff
b0b6189
 
 
 
 
 
 
 
 
8c2868d
 
b0b6189
 
a6d9422
8c2868d
c1e5208
b0b6189
c1e5208
 
b0b6189
4d7e8f7
b0b6189
056050e
4d7e8f7
b0b6189
 
 
 
 
 
5298f64
43230a2
 
056050e
43230a2
 
 
 
 
 
 
 
b0b6189
23e5287
b0b6189
 
 
 
 
 
 
 
 
 
 
 
 
637c836
d53c353
b0b6189
 
 
 
 
2b4c8b3
b0b6189
68e7300
 
 
9393216
2b4c8b3
 
 
 
 
f743343
 
2b4c8b3
 
c0a4f9e
 
 
 
 
 
 
 
 
 
 
 
2b4c8b3
 
9393216
 
b0b6189
 
 
 
 
 
43230a2
b0b6189
 
 
 
 
 
fb17fd5
 
b0b6189
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3a993ed
 
 
 
 
 
 
 
 
b0b6189
 
 
 
 
 
 
 
 
 
 
 
 
 
c9c8a50
 
b0b6189
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8c85eaf
b0b6189
 
 
 
 
 
 
 
 
 
 
 
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
---
dataset_info:
  features:
  - name: height
    dtype: int64
  - name: width
    dtype: int64
  - name: fold
    dtype: string
  - name: raster_name
    dtype: string
  - name: location
    dtype: string
  - name: image
    dtype: image
  - name: tile_name
    dtype: string
  - name: annotations
    struct:
    - name: bbox
      sequence:
        sequence: float64
    - name: segmentation
      dtype: 'null'
    - name: area
      sequence: float64
    - name: iscrowd
      sequence: int64
    - name: is_rle_format
      dtype: 'null'
    - name: category
      sequence: string
  - name: tile_metadata
    struct:
    - name: crs
      dtype: string
    - name: transform
      sequence: float64
    - name: bounds
      sequence: float64
    - name: width
      dtype: int64
    - name: height
      dtype: int64
    - name: count
      dtype: int64
    - name: dtypes
      sequence: string
    - name: nodata
      dtype: 'null'
  splits:
  - name: test
    num_bytes: 11729504363.402
    num_examples: 1477
  - name: validation
    num_bytes: 2786536280
    num_examples: 387
  - name: train
    num_bytes: 16884458976
    num_examples: 585
  download_size: 31336873232
  dataset_size: 31400499619.402
configs:
- config_name: default
  data_files:
  - split: test
    path: data/test-*
  - split: validation
    path: data/validation-*
  - split: train
    path: data/train-*
license: cc-by-4.0
tags:
- vision
- ai
- climate
- forest
- tree
- remote_sensing
size_categories:
- 10K<n<100K
---

---

# SelvaBox: A high-resolution dataset for tropical tree crown detection

<p align="left">
  <img src="./teaser_wo_name.png" width="800"/>
</p>

<!-- Provide a quick summary of the dataset. -->

This is the version of the SelvaBox dataset that has been pre-processed and presented in our SelvaBox paper.
The dataset is made of 14 rasters resampled at 4.5 cm GSD, from three different countries: Brazil, Ecuador and Panama. These rasters were tiled into more than 2400 images. It comprises over 83 000 unique human bounding box annotations for tropical tree crowns in dense canopies.

## Dataset Details

### Dataset Description

<!-- Provide a longer summary of what this dataset is. -->

Training tiles are 3555x3555 pixels, while validation and test tiles are 1777x1777 pixels, equivalent to 80x80 meters spatial extent. There is 50% overlap between train and validation tiles, and 75% between test tiles (to ensure that the largest trees of 50+ meters in diameter will fit entirely in at least one tile).
The table below summarizes the information on the three splits. Note that the # Annotations reported is larger than 83000 due to the overlap between tiles, which duplicates annotations. 
There is also a similar effect regarding the # Tiles: there are more test tiles than train or valid but that's because of the 75% overlap between tiles, compared to 50%.
The 'Geographic Area % of total dataset column' more accurately describes how much data was assigned to each split.

| Split | Tile Size (px) | Tile Size (m) | Overlap | # Tiles | # Annotations | Geographic Area % of total dataset|
| ----- | -------------- | ------------- | ------- | ------- | ------------- | ------------------- |
| Train | 3555           | 160.0 m       |    50%     | 585     | 232,071       | ~74%               |
| Valid | 1777           | 80.0 m        |    50%     | 387     | 38,651        | ~13%                |
| Test  | 1777           | 80.0 m        |    75%     | 1,477   | 161,188       | ~13%               |


- **Curated by:** Will be added after double-blind review.
- **Funded by:** Will be added after double-blind review.
- **License:** CC BY 4.0

### Dataset Sources

<!-- Provide the basic links for the dataset. -->

- **Repository:** Will be added after double-blind review.
- **Paper:** Will be added after double-blind review.

## Uses

<!-- Address questions around how the dataset is intended to be used. -->

This dataset was designed to train instance detection models specifically for tropical trees in the rainforests of Central and South America.
Please note that annotations do not contain taxonomic information like the species of the trees - it is a binary tree detection dataset.

## Dataset Structure

<!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->

Unfortunately, because of the large size of the images of the dataset, the previewer currently does not work properly.

The images are stored as PIL Tiff files and annotations are in COCO format.

To check the structure of the dataset, you can use this python script, which will print the metadata of the first image in the train split (without downloading the entire dataset):

```python
from datasets import load_dataset

dataset = load_dataset("CanopyRS/SelvaBox", split="train", streaming=True)
first_row = next(iter(dataset))
print("First row data:", first_row)
print("First row keys:", first_row.keys())
```

To display the image from the first row you can run:

```python
from matplotlib import pyplot as plt

img = first_row["image"]
plt.imshow(img)
plt.axis("off")
plt.title(first_row["tile_name"], fontsize=10)
plt.show()
```


Additionally, we provide the annotations and train, valid, and test AOIs (areas of interest) as .gpkg GeoPackages for all source orthomosaics in a [separate branch](https://huggingface.co/datasets/CanopyRS/SelvaBox/tree/gpkg).


## Dataset Creation

### Curation Rationale

<!-- Motivation for the creation of this dataset. -->

Will be added after double-blind review.

### Source Data

<!-- This section describes the source data (e.g. news text and headlines, social media posts, translated sentences, ...). -->

Here is an overview of the different orthomosaics that were pre-processed and tiled to produce SelvaBox:
| Raster Name     | Drone    | Country | Date          | Sky Conditions | GSD (cm/px) | Forest Type            | # Hectares | # Annotations | Proposed Split(s)  |
| --------------- | -------- | ------- | ------------- | -------------- | ----------- | ---------------------- | ---------: | ------------: | ------------------ |
| zf2quad         | m3m      | Brazil  | 2024-01-30 | clear          | 2.3         | primary                |       15.5 |         1,343 | valid              |
| zf2tower        | m3m      | Brazil  | 2024-01-30 | clear          | 2.2         | primary                |        9.5 |         1,716 | test               |
| zf2transectew   | m3m      | Brazil  | 2024-01-30 | clear          | 1.5         | primary                |        2.6 |           359 | train              |
| zf2campinarana  | m3m      | Brazil  | 2024-01-31 | clear          | 2.3         | primary                |         66 |        16,396 | train              |
| transectotoni   | mavicpro | Ecuador | 2017-08-10 | cloudy         | 4.3         | primary                |        4.3 |         5,119 | train              |
| tbslake         | m3m      | Ecuador | 2023-05-25 | clear          | 5.1         | primary                |         19 |         1,279 | train, test        |
| sanitower       | mini2    | Ecuador | 2023-09-11 | cloudy         | 1.8         | primary                |        5.8 |         1,721 | train              |
| inundated       | m3e      | Ecuador | 2023-10-18 | cloudy         | 2.2         | primary                |         68 |         9,075 | train, valid, test |
| pantano         | m3e      | Ecuador | 2023-10-18 | cloudy         | 1.9         | primary                |         41 |         4,193 | train              |
| terrafirme      | m3e      | Ecuador | 2023-10-18 | clear          | 2.4         | primary                |        110 |         6,479 | train              |
| asnortheast     | m3m      | Panama  | 2023-12-07 | partial cloud  | 1.3         | plantations, secondary |         33 |        12,930 | train, valid, test |
| asnorthnorth    | m3m      | Panama  | 2023-12-07 | cloud          | 1.2         | plantations, secondary |         15 |         6,020 | train              |
| asforestnorthe2 | m3m      | Panama  | 2023-12-08 | clear          | 1.5         | secondary              |         20 |         5,925 | valid, test        |
| asforestsouth2  | m3m      | Panama  | 2023-12-08 | clear          | 1.6         | secondary              |         28 |        10,582 | train              |

### Annotations

SelvaBox is the largest tropical tree detection dataset, one order-of-magnitude larger than existing ones (mainly BCI50ha and Detectree2). It is also the 2nd largest tree detection dataset overall in annotation count, after OAM-TCD.
| Name                   | # Trees | GSD (cm)    | Type         | Biome        |
| ---------------------- | ------: | ----------- | ------------ | ------------ |
| NeonTreeEval.     |     16k | 10          | natural      | temperate    |
| ReforesTree     |    4.6k | 2           | plantation   | tropical     |
| Firoze *et al.*    |    6.5k | 2–5         | natural      | temperate    |
| Detectree2         |    3.8k | 10          | natural      | tropical     |
| BCI50ha           |    4.7k | 4.5         | natural      | tropical     |
| BAMFORESTS         |     27k | 1.6–1.8     | natural      | temperate    |
| QuebecTrees        |     23k | 1.9         | natural      | temperate    |
| Quebec Plantation  |   19.6k | 0.5         | plantation   | temperate    |
| OAM-TCD          |    280k | 10          | mostly urban | worldwide    |
| **SelvaBox (ours)**    | **83k** | **1.2–5.1** | **natural**  | **tropical** |

#### Annotation process

<!-- This section describes the annotation process such as annotation tools used in the process, the amount of data annotated, annotation guidelines provided to the annotators, interannotator statistics, annotation validation, etc. -->

The annotations have been created by five domain experts with exact same instructions and all started with a demo and an annotation practice beforehand. All annotations have been made in ArcGIS Pro with ArcGIS Online layers to track online work of two annotators working on the same orthomosaic simultaneously. In large and dense areas, one or several annotators have performed an additional pass over the orthomosaic to annotate potential missing trees. Once annotations were completed by one or several annotators, up to two domain experts performed quality control steps for all annotations of each orthomosaic by following precise guidelines:

- A- Setup a 60x60m grid cell over the orthomosaic.
- B- Proceed to the verification by systematically scanning each cell to avoid missing any areas.
- C- Ensure that there are as many annotated trees as possible in each cell.
- D- Also annotate dead/leafless trees.
- E- Check that annotations already completed are correct, adjusting them if necessary.

All annotators and reviewers were provided with documentation with difficult use cases as a reference when they were uncertain on the annotation procedure.
 As a comparison, one may note that annotations in OAM-TCD (NeurIPS 2024) were created by professional annotators that were not domain experts, and a part of these annotations were then reviewed by ecology experts.

#### Who are the annotators?

<!-- This section describes the people or systems who created the annotations. -->

Will be added after double-blind review.

<!-- #### Personal and Sensitive Information

<!-- State whether the dataset contains data that might be considered personal, sensitive, or private (e.g., data that reveals addresses, uniquely identifiable names or aliases, racial or ethnic origins, sexual orientations, religious beliefs, political opinions, financial or health data, etc.). If efforts were made to anonymize the data, describe the anonymization process. -->

<!-- [More Information Needed] -->

<!-- ## Bias, Risks, and Limitations -->

<!-- This section is meant to convey both technical and sociotechnical limitations. -->

<!-- [More Information Needed] -->

## Citation

<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->

**BibTeX:**

Will be added after double-blind review.

## Dataset Card Contact

Will be added after double-blind review.