Dataset Viewer
Auto-converted to Parquet Duplicate
x
array 3D
y
int16
0
19
parcel_id
stringlengths
2
7
[[[293,553,799,979,1308,1707,1879,1896,1977,2205,1797,1193],[301,518,793,960,1264,1675,1819,1893,189(...TRUNCATED)
0
8265632
[[[219,357,523,490,922,2100,2416,2321,2717,2828,1725,994],[166,340,505,460,933,2085,2432,2396,2730,2(...TRUNCATED)
0
9257904
[[[341,266,476,572,1060,1698,1878,1985,2102,2708,1973,1212],[356,336,508,569,1078,1664,1954,2021,223(...TRUNCATED)
0
2926798
[[[229,358,624,831,1254,2044,2307,2266,2473,2168,2098,1462],[299,532,778,921,1362,2230,2526,2315,268(...TRUNCATED)
0
1571848
[[[51,95,322,250,716,2287,2560,2695,3143,3992,1422,712],[163,200,452,335,838,2505,3128,3252,3405,412(...TRUNCATED)
0
6198395
[[[272,299,371,500,761,1087,1337,1552,1702,2836,1954,1283],[240,367,465,613,888,1270,1498,1755,1740,(...TRUNCATED)
0
5817505
[[[219,190,361,437,658,1060,1245,1532,1519,1846,1252,738],[243,258,366,425,670,1068,1264,1520,1526,1(...TRUNCATED)
0
8356113
[[[355,338,515,837,1152,1526,1612,1591,1854,2282,2107,1434],[423,383,530,822,1096,1429,1517,1502,174(...TRUNCATED)
0
5373205
[[[232,406,668,954,1280,1691,1825,1852,2091,2770,2218,1579],[264,483,774,1075,1371,1818,1972,2057,22(...TRUNCATED)
0
2445950
[[[276,281,498,554,918,1444,1516,1316,1518,1557,1637,1156],[281,290,509,560,930,1455,1533,1360,1548,(...TRUNCATED)
0
767574
End of preview. Expand in Data Studio

FranceCrops

FranceCrops is a crop-classification benchmark for French agricultural parcels observed with Sentinel-2 L2A time series meant to evaluate the representation learned by self-supervised or unsupervised methods. Each sample is one parcel represented by 100 sampled pixel time series. This release provides fixed supervised splits for downstream evaluation and frozen low-label subsets from 1 to 4,000 labels per class so methods can be compared under the same downstream training budgets.

A large pretraining pool for representation learning will be added in a later release. The benchmark code will be made available soon.

Dataset structure

Config Split(s) Purpose Rows Size
pretraining train representation-learning pool, coming soon, for SSL or unsupervised encoder training
benchmark train, validation, test_france, test_centre_val_de_loire Main supervised crop-classification benchmark 138,610 12.7 GiB
train_subsets train Frozen low-label row selections from benchmark/train at various sizes 553,000 3 MiB
class_map train Mapping from y to RPG crop codes and labels 20 <0.01 MiB
normalization train Frozen per-band percentile constants for normalization 12 <0.01 MiB
metadata train Optional split membership and labels without large x arrays 138,610 0.7 MiB
geolocation train Optional parcel geometries and footprints for metadata rows. See data/geolocation/README.md for details. 138,610 54.5 MiB

Split details

FranceCrops separates representation learning from downstream evaluation. The pretraining split is meant for self-supervised or other unsupervised learning: use it to learn a generic parcel encoder without using crop labels. The benchmark config is the supervised crop-classification downstream task used to compare those representations under a fixed protocol.

A typical experiment follows this order once the pretraining payload is available:

  1. learn an encoder on pretraining;
  2. freeze or reuse the learned features for the supervised benchmark samples;
  3. train downstream supervised classifiers on the frozen train_subsets, from 1 labeled example per class up to 4,000 labeled examples per class;
  4. use validation for early stopping or hyperparameter tuning;
  5. report final scores on both benchmark test splits.

Supervised benchmark split sizes:

Split Role Class coverage and balance Rows Size
train supervised training pool 20 classes, balanced; 5,000 samples per class 100,000 9.1 GiB
validation model-selection split 20 classes, balanced; 100 samples per class 2,000 185 MiB
test_france main test split 20 classes, balanced; held-out spatial-cell test partition with 1,000 examples per class 20,000 1.9 GiB
test_centre_val_de_loire geographic robustness test 20 classes, capped at 1,000 examples per class; not perfectly balanced where regional data are scarce 16,610 1.7 GiB

The benchmark task is restricted to 20 crop classes so that supervised evaluation is controlled and comparable. The train, validation, and test_france splits are balanced across these 20 classes. The test_centre_val_de_loire split uses the same 20 classes and caps each class at 1,000 examples, but some classes have fewer available parcels in that region. In contrast, the pretraining split is closer to the raw source distribution: it is unfiltered, contains all 238 RPG classes, and has the heavy class imbalance expected in the full agricultural parcel population.

All splits are disjoint: a parcel appears in only one of pretraining, train, validation, test_france, or test_centre_val_de_loire. The two test splits also test geographic generalization. test_france is made of held-out spatial cells distributed across metropolitan France, visible as squares in the map below. test_centre_val_de_loire holds out the whole Centre-Val de Loire region as a separate regional test set. The pretraining, train, and validation splits are mutually disjoint and draw from the remaining parcel distribution, spread across metropolitan France outside those held-out spatial cells and the Centre-Val de Loire regional holdout.

FranceCrops split geography

Data Schema

Each row in the benchmark config contains:

Field Type Description
x int16[100, 60, 12] 100 sampled pixel time series, 60 dates, 12 Sentinel-2 bands
y int16 Zero-based class identifier
parcel_id string Source RPG parcel identifier used for protocol joins

Each raw sample is a bag of time series for one parcel:

x.shape == (100, 60, 12)
  • 100: sampled pixel time series inside the parcel;
  • 60: aligned dates;
  • 12: Sentinel-2 bands.

The band order is:

B1, B2, B3, B4, B5, B6, B7, B8, B8A, B9, B11, B12

The temporal axis contains 60 aligned dates from 2022-02-01 to 2022-11-23 inclusive, every 5 days.

Values are stored as int16 in the Sentinel-2 L2A surface-reflectance integer scale, where 10,000 corresponds to reflectance 1.0. Cast x to float32 before normalization or model input.

Class map
y code French RPG label English label
0 AVP Avoine de printemps Spring oat
1 BDH Blé dur d’hiver Winter durum wheat
2 BTH Blé tendre d’hiver Winter soft wheat
3 BTN Betterave non fourragère / Bette Non-fodder beet / Swiss chard
4 CHU Chou Cabbage
5 CZH Colza d’hiver Winter rapeseed
6 FVL Féverole semée avant le 31/05 Faba bean sown before 31/05
7 LIF Lin fibres Fiber flax
8 MIS Maïs Maize
9 ORH Orge d'hiver Winter barley
10 PPH Prairie permanente Permanent grassland
11 PPR Pois de printemps semé avant le 31/05 Spring pea sown before 31/05
12 PTC Pomme de terre de consommation Table potato
13 RGA Ray-grass de 5 ans ou moins Ryegrass, 5 years or less
14 SGH Seigle d’hiver Winter rye
15 SOG Sorgho Sorghum
16 SOJ Soja Soybean
17 SRS Sarrasin Buckwheat
18 TRN Tournesol Sunflower
19 TTH Triticale d’hiver Winter triticale

Benchmark Protocol

The benchmark evaluates one representation per parcel. If an encoder processes individual pixel time series, aggregate the 100 pixel-level representations into a single parcel-level representation before fitting the downstream classifier.

The benchmark evaluates each representation on the same downstream training subsets. This is important in the low-label regime: when only a few labeled parcels are available for supervised training, results can vary strongly depending on which parcels were selected. The dataset therefore provides several frozen repeats for the smallest label budgets. Repeats for a given budget may overlap, but every method is evaluated on the same subsets, making comparisons more stable and focused on representation quality rather than on a particular draw of downstream labels.

Downstream training budgets are:

1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, 2000, 4000 labeled examples per class

Repeat counts decrease as the supervised training set becomes larger:

Labeled examples per class Number of frozen repeats
1 50
2 25
5 20
10 10
20, 50, 100, 200, 500, 1000 5
2000, 4000 3

Repeats for a given budget may overlap. Scores should be averaged over all frozen repeats for each label budget.

Results

The full benchmark runner and protocol details will be released in the associated GitHub repository.

The reference baseline is the following:

  1. averages the 100 pixel time series for each parcel;
  2. applies the frozen per-band low_p2/high_p98 transformation (x - low_p2) / (high_p98 - low_p2) - 0.5;
  3. flattens the resulting 60 x 12 tensor;
  4. fits balanced multinomial logistic regression;
  5. selects C using validation balanced accuracy;
  6. evaluates once on test_france and test_centre_val_de_loire.

In other words, the reference logistic-regression representation is the feature mean across the 100 time series in the bag, followed by normalization and flattening.

Reference raw-feature results (mean +/- spread):

Raw baseline low-label curves with std error bars

Scores are mean +/- sample standard deviation over frozen low-label repeats, reported in percentage points and rounded to one significant digit in the spread.

n/class repeats France BA (%; mean +/- spread) Centre-Val de Loire BA (%; mean +/- spread) France macro F1 (%; mean +/- spread) Centre-Val de Loire macro F1 (%; mean +/- spread)
1 50 28 +/- 3 25 +/- 3 26 +/- 3 21 +/- 3
2 25 35 +/- 3 31 +/- 3 34 +/- 3 28 +/- 2
5 20 46 +/- 2 41 +/- 2 46 +/- 2 37 +/- 2
10 10 52 +/- 1 46 +/- 1 52 +/- 2 43 +/- 2
20 5 59.1 +/- 0.9 52 +/- 2 59 +/- 1 48 +/- 2
50 5 67.3 +/- 0.4 59.8 +/- 0.9 67.2 +/- 0.4 57 +/- 1
100 5 72.3 +/- 0.3 62.2 +/- 0.8 72.2 +/- 0.3 59 +/- 1
200 5 77.0 +/- 0.4 67.4 +/- 0.6 77.0 +/- 0.5 65.2 +/- 0.6
500 5 81.3 +/- 0.2 72 +/- 1 81.3 +/- 0.2 71 +/- 2
1000 5 84.3 +/- 0.2 75.1 +/- 0.7 84.3 +/- 0.2 74.0 +/- 0.3
2000 3 86.1 +/- 0.2 77.0 +/- 0.2 86.2 +/- 0.2 76.7 +/- 0.5
4000 3 87.36 +/- 0.08 78.27 +/- 0.09 87.37 +/- 0.08 77.9 +/- 0.1

Loading

We recommend users to use this dataset through the benchmark code (will be made available soon). Below are some example on how to acces the data manually. Load the supervised benchmark splits:

from datasets import load_dataset

repo = "saget-antoine/francecrops"

train = load_dataset(repo, "benchmark", split="train")
validation = load_dataset(repo, "benchmark", split="validation")
test_france = load_dataset(repo, "benchmark", split="test_france")
test_centre_val_de_loire = load_dataset(
    repo,
    "benchmark",
    split="test_centre_val_de_loire",
)

Load one frozen low-label training subset and use it to select rows from benchmark/train:

subsets = load_dataset(repo, "train_subsets", split="train")

selection = subsets.filter(
    lambda row: row["n_per_class"] == 100 and row["subset_id"] == 0
)

train_row_indices = list(selection["train_row_idx"])
train_100_per_class = train.select(train_row_indices)
parcel_ids = selection["parcel_id"]

assert len(train_100_per_class) == 100 * 20

Iterate over every downstream budget and repeat in the benchmark protocol:

protocol = subsets.to_pandas()

for (n_per_class, subset_id), rows in protocol.groupby(
    ["n_per_class", "subset_id"],
    sort=True,
):
    train_subset = train.select(rows["train_row_idx"].tolist())
    # Fit and evaluate one downstream classifier for this budget/repeat.

Load helper tables:

class_map = load_dataset(repo, "class_map", split="train")
normalization = load_dataset(repo, "normalization", split="train")
metadata = load_dataset(repo, "metadata", split="train")

Load optional parcel geometries with streaming:

geolocation = load_dataset(
    repo,
    "geolocation",
    split="train",
    streaming=True,
)
geometry_row = next(iter(geolocation))
print(geometry_row["parcel_id"])
print(len(geometry_row["geometry"]))  # WKB bytes

Dataset Creation

Source data:

  • imagery: Sentinel-2 L2A observations prepared through Google Earth Engine;
  • labels and parcel boundaries: the IGN 2022 Registre Parcellaire Graphique (RPG);
  • geographic scope: metropolitan France, with a separate Centre-Val de Loire geographic robustness test.

Processing:

  • clouds, shadows, and missing observations are removed;
  • missing time steps are filled by linear interpolation resulting in every parcel being aligned and exactly 60 dates;

Intended uses

This release is intended for:

  • low-label crop classification;
  • evaluation of frozen or pretrained time-series encoders;
  • reproducible comparisons using shared splits and subset selections.

Limitations

  • The data cover one growing season, 2022.
  • Labels originate from administrative declarations and may contain source errors.
  • The benchmark contains 20 selected crop codes and is not exhaustive.
  • Temporal interpolation to fill missing/cloudy observations alters the original observation process.
  • parcel_id values are linkable to public RPG records and should be treated as a potential source of label leakage for the pretraining set.

License

The dataset is released under Creative Commons Attribution 4.0 International. The full license text is included in LICENSE.

Please attribute this derived benchmark and its upstream data sources when reusing it:

This derived dataset is not endorsed by the European Commission, ESA, Google, or IGN.

Citation

Please cite the FranceCrops work:

@inproceedings{saget2024francecrops,
  title     = {Learning from Few Labeled Time Series with Segment-Based Self-Supervised Learning: Application to Remote-Sensing},
  author    = {Saget, Antoine and Lafabregue, Baptiste and Cornu{\'e}jols, Antoine and Gan{\c{c}}arski, Pierre},
  booktitle = {Proceedings of SPAICE2024: The First Joint European Space Agency/IAA Conference on AI in and for Space},
  pages     = {275--279},
  year      = {2024}
}
Downloads last month
191