--- pretty_name: FranceCrops license: cc-by-4.0 task_categories: - tabular-classification task_ids: - tabular-multi-class-classification tags: - agriculture - crop-classification - crop-type-mapping - earth-observation - geospatial - remote-sensing - sentinel-2 - sentinel-2-l2a - timeseries - time-series-classification - representation-learning - self-supervised-learning - low-label-learning - few-shot-learning - france - rpg - parquet - geoparquet - tabular size_categories: - 100K 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: ```text 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](assets/low_label_curves.png) 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: ```python 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`: ```python 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: ```python 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: ```python 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: ```python 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](https://creativecommons.org/licenses/by/4.0/). The full license text is included in [`LICENSE`](LICENSE). Please attribute this derived benchmark and its upstream data sources when reusing it: - FranceCrops Benchmark, Antoine Saget, CC BY 4.0. - [Copernicus Sentinel-2 L2A data](https://dataspace.copernicus.eu/data-collections/copernicus-sentinel-missions/sentinel-2), prepared through Google Earth Engine. Sentinel data are made available on a free, full, and open basis under the Copernicus Sentinel Data Legal Notice referenced by the [Copernicus Data Space terms](https://dataspace.copernicus.eu/terms-and-conditions). - [IGN Registre Parcellaire Graphique (RPG)](https://www.data.gouv.fr/datasets/rpg), 2022 edition, used for parcel boundaries and crop codes and distributed under the Licence Ouverte / Open Licence 2.0. This derived dataset is not endorsed by the European Commission, ESA, Google, or IGN. ## Citation Please cite the FranceCrops work: ```bibtex @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} } ```