File size: 8,557 Bytes
cc1e0a0
 
d3027e7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e0e9bbc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cc1e0a0
d3027e7
 
 
 
 
 
 
 
a756e7d
d3027e7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
---
license: cc-by-4.0
task_categories:
  - image-segmentation
  - image-classification
language: []
tags:
  - solar-panels
  - photovoltaic
  - remote-sensing
  - aerial-imagery
  - segmentation
  - distribution-shift
  - france
  - belgium
pretty_name: BDAPPV
size_categories:
  - 10K<n<100K
configs:
  - config_name: google
    data_files:
      - split: train
        path: google/train-*
      - split: validation
        path: google/validation-*
      - split: test
        path: google/test-*
  - config_name: ign
    data_files:
      - split: train
        path: ign/train-*
      - split: validation
        path: ign/validation-*
      - split: test
        path: ign/test-*
dataset_info:
  - config_name: google
    features:
      - name: identifiant
        dtype: string
      - name: image
        dtype: image
      - name: mask
        dtype: image
      - name: has_mask
        dtype: bool
      - name: split
        dtype: string
      - name: surface
        dtype: float32
      - name: azimuth
        dtype: float32
      - name: tilt
        dtype: float32
      - name: kWp
        dtype: float32
      - name: departement
        dtype: int32
      - name: city
        dtype: string
      - name: dateInstalled
        dtype: string
      - name: typeInstallation
        dtype: int32
      - name: countArrays
        dtype: int32
      - name: countInverters
        dtype: int32
      - name: isIntegrated
        dtype: bool
      - name: selfConsumption
        dtype: bool
    splits:
      - name: train
        num_bytes: 2447133010
        num_examples: 20707
      - name: validation
        num_bytes: 441348728
        num_examples: 3817
      - name: test
        num_bytes: 451607704
        num_examples: 3884
    download_size: 3341481346
    dataset_size: 3340089442
  - config_name: ign
    features:
      - name: identifiant
        dtype: string
      - name: image
        dtype: image
      - name: mask
        dtype: image
      - name: has_mask
        dtype: bool
      - name: split
        dtype: string
      - name: surface
        dtype: float32
      - name: azimuth
        dtype: float32
      - name: tilt
        dtype: float32
      - name: kWp
        dtype: float32
      - name: departement
        dtype: int32
      - name: city
        dtype: string
      - name: dateInstalled
        dtype: string
      - name: typeInstallation
        dtype: int32
      - name: countArrays
        dtype: int32
      - name: countInverters
        dtype: int32
      - name: isIntegrated
        dtype: bool
      - name: selfConsumption
        dtype: bool
    splits:
      - name: train
        num_bytes: 3204106988
        num_examples: 11526
      - name: validation
        num_bytes: 875106431
        num_examples: 3206
      - name: test
        num_bytes: 694527761
        num_examples: 2593
    download_size: 4783574371
    dataset_size: 4773741180
---

# BDAPPV — Aerial Images of Rooftop Photovoltaic Installations

BDAPPV is a dataset of aerial images of rooftop PV installations in France and Belgium,
with segmentation masks and installation metadata. Images are provided by two aerial
imagery providers (Google and IGN), making it suitable for both segmentation/classification
benchmarks and **distribution shift** evaluation across imagery sources.

**Paper:** [Kasmi et al., Scientific Data, 2023](https://doi.org/10.1038/s41597-023-01951-4) — [arXiv:2209.03726](https://arxiv.org/abs/2209.03726)

---

## Dataset overview

| Provider | Images | Positifs (masks) | Négatifs | Note |
|----------|--------|-----------------|----------|------|
| Google   | 28,408 | 13,303 | 15,105 | 399 images excluded (no metadata entry) |
| IGN      | 17,325 |  7,685 |  9,640 | |

- Images are 400×400 px PNG files.
- Google images are a superset: every IGN installation also has a Google image.
- Masks are binary PNGs (same resolution as images).

---

## Data structure

```
bdappv/
├── google/
│   ├── img/    # 28,408 images (28,807 raw − 399 excluded)
│   └── mask/   # 13,303 segmentation masks
├── ign/
│   ├── img/    # 17,325 images
│   └── mask/   #  7,685 segmentation masks
├── annotations.csv   # manifest: one row per (installation × provider)
├── metadata.csv      # installation-level metadata
└── README.md
```

---

## Loading the dataset

```python
from datasets import load_dataset

# Google imagery (default)
ds = load_dataset("gabrielkasmi/bdappv", "google")

# IGN imagery
ds = load_dataset("gabrielkasmi/bdappv", "ign")
```

Each example contains:

```python
{
    "identifiant": "OSIBG1RDEDJ",   # installation ID
    "image":       <PIL Image>,      # 400×400 aerial image
    "mask":        <PIL Image>,      # segmentation mask (None if has_mask=False)
    "has_mask":    True,             # False = negative sample (no panel)
    "split":       "train",          # train / val / test
    "surface":     22.0,             # panel surface (m²)
    "azimuth":     -20.0,            # panel azimuth (degrees)
    "tilt":        20.0,             # panel tilt (degrees)
    "kWp":         3010.0,           # peak power (Wp)
    "departement": 31,               # French department code
    "city":        "Castanet-Tolosan",
    "dateInstalled": "2007-09-01",
    ...
}
```

---

## Recommended usage patterns

### Segmentation (positives only)

```python
ds = load_dataset("gabrielkasmi/bdappv", "google")
train_seg = ds["train"].filter(lambda x: x["has_mask"])
# 13,303 images with masks across all splits
```

### Binary classification (panel / no panel)

```python
# Both providers have validated negatives
ds_google = load_dataset("gabrielkasmi/bdappv", "google")  # 13,303 pos / 15,105 neg
ds_ign    = load_dataset("gabrielkasmi/bdappv", "ign")      #  7,685 pos /  9,640 neg
# has_mask is the binary label (True = panel present)
```

### Distribution shift benchmark (cross-provider)

The intended protocol for evaluating robustness to imagery distribution shift:

```python
train = load_dataset("gabrielkasmi/bdappv", "google", split="train")
test  = load_dataset("gabrielkasmi/bdappv", "ign",    split="test")
# Train on Google, evaluate on IGN — same installations, different sensors
```

Note: pooling both providers for training is not recommended as a default setup.
Google and IGN images of the same installation share the same ground truth object;
pooling them amounts to domain augmentation rather than independent data, and
conflates the distribution shift signal. If you want to pool, build a custom
dataloader merging both configs.

---

## Train / val / test split

Split is based on **spatial holdout by French department** to prevent geographic
leakage between splits. All Belgian and small-department installations are assigned
to train.

| Split | Installations | Departments |
|-------|--------------|-------------|
| train | 20,707 (73%) | all others  |
| val   |  3,817 (13%) | 3, 9, 11, 23, 44, 47, 52, 54, 59, 66, 72, 82, 88, 92 |
| test  |  3,884 (14%) | 2, 4, 6, 15, 16, 32, 38, 42, 51, 64, 67, 85, 91 |

The split is fixed and deterministic (seed=42). Do not re-split to ensure
comparability with published results.

---

## Licenses

This dataset combines components under different licenses:

| Component | License |
|-----------|---------|
| Segmentation masks & annotations | [CC-BY 4.0](https://creativecommons.org/licenses/by/4.0/) |
| Installation metadata | [CC-BY 4.0](https://creativecommons.org/licenses/by/4.0/) |
| Google aerial images | [Google Earth Engine ToS](https://cloud.google.com/maps-platform/terms) — **non-commercial use only** |
| IGN aerial images | [Etalab Open License 2.0](https://www.etalab.gouv.fr/licence-ouverte-open-licence/) — free incl. commercial use |

**Important:** the Google imagery restricts commercial use. For commercial applications,
use the IGN configuration only (`load_dataset("gabrielkasmi/bdappv", "ign")`).

---

## Citation

```bibtex
@article{kasmi2023bdappv,
  title     = {A crowdsourced dataset of aerial images with annotated solar
               photovoltaic arrays and installation metadata},
  author    = {Kasmi, Gabriel and Saint-Drenan, Yves-Marie and Trebosc, David
               and Jolivet, Rapha{\"e}l and Leloux, Jonathan and Sarr, Babacar
               and Dubus, Laurent},
  journal   = {Scientific Data},
  volume    = {10},
  number    = {1},
  pages     = {59},
  year      = {2023},
  publisher = {Nature Publishing Group},
  doi       = {10.1038/s41597-023-01951-4}
}
```