The FLAIR models are a collection of semantic segmentation models initially developed to classify land cover on very high resolution aerial images (more specifically the French BD ORTHO® product). The distributed pre-trained models differ in their :
dataset for training : FLAIR dataset or the increased version of this dataset FLAIR-INC (x 3.5 patches). Only the FLAIR dataset is open at the moment.
hardware: HPC/AI resources provided by GENCI-IDRIS
License: Etalab 2.0
Uses
Although the model can be applied to other type of very high spatial earth observation images, it was initially developed to tackle the problem of classifying aerial images acquired on the French Territory.
The product called (BD ORTHO®) has its own spatial and radiometric specifications. The model is not intended to be generic to other type of very high spatial resolution images but specific to BD ORTHO images.
Consequently, the model’s prediction would improve if the user images are similar to the original ones.
Radiometry of input images :
The BD ORTHO input images are distributed in 8-bit encoding format per channel. When traning the model, input normalization was performed (see section Training Details).
It is recommended that the user apply the same type of input normalization while inferring the model.
Multi-domain model :
The FLAIR-INC dataset that was used for training is composed of 75 radiometric domains. In the case of aerial images, domain shifts are frequent and are mainly due to : the date of acquisition of the aerial survey (from april to november), the spatial domain (equivalent to a french department administrative division) and downstream radiometric processing.
By construction (sampling 75 domains) the model is robust to these shifts, and can be applied to any images of the (BD ORTHO® product).
Land Cover classes of prediction :
The orginial class nomenclature of the FLAIR Dataset encompasses 19 classes (See the FLAIR dataset page for details).
This model was trained to be coherent withe the FLAIR#1 scientific challenge in which contestants were evaluated of the first 12 classes of the nomenclature. Classes with label greater than 12 were desactivated during training.
As a result, the logits produced by the model are of size 19x1, but classes n° 13, 14, 15, 16, 17, 18 and 19 should appear at 0 in the logits and should not be present in the final argmax product.
Bias, Risks, Limitations and Recommendations
Using the model on input images with other spatial resolution :
The FLAIR-INC_rgb_12cl_resnet34-unet model was trained with fixed scale conditions. All patches used for training are derived from aerial images with 0.2 meters spatial resolution. Only flip and rotate augmentations were performed during the training process.
No data augmentation method concerning scale change was used during training. The user should pay attention that generalization issues can occur while applying this model to images that have different spatial resolutions.
Using the model for other remote sensing sensors :
The FLAIR-INC_rgb_12cl_resnet34-unet was trained with aerial images of the (BD ORTHO® product) that encopass very specific radiometric image processing.
Using the model on other type of aerial images or satellite images may imply the use of transfer learning or domain adaptation techniques.
Using the model on other spatial areas :
The FLAIR-INC_rgbie_12cl_resnet34-unet model was trained on patches reprensenting the French Metropolitan territory.
The user should be aware that applying the model to other type of landscapes may imply a drop in model metrics.
218 400 patches of 512 x 512 pixels were used to train the FLAIR-INC_rgb_12cl_resnet34-unet model.
The train/validation split was performed patchwise to obtain a 80% / 20% distribution between train and validation.
Annotation was performed at the zone level (~100 patches per zone). Spatial independancy between patches is guaranted as patches from the same zone were assigned to the same set (TRAIN or VALIDATION).
The following number of patches were used for train and validation :
| TRAIN set | 174 700 patches |
| VALIDATION set | 43 700 patchs |
Training Procedure
Preprocessing
For traning the model, input normalization was performed to center-reduce (a mean=0 and a standard deviation = 1, channel wise) the dataset.
We used the statistics of TRAIN+VALIDATION for input normalization. It is recommended that the user apply the same type of input normalization.
The FLAIR-INC_rgb_12cl_resnet34-unet model was trained on a HPC/AI resources provided by GENCI-IDRIS (Grant 2022-A0131013803).
16 V100 GPUs were used ( 4 nodes, 4 GPUS per node). With this configuration the approximate learning time is 6 minutes per epoch.
FLAIR-INC_rgbie_12cl_resnet34-unet was obtained for num_epoch=65 with corresponding val_loss=0.55.
TRAIN loss
TRAIN loss
VALIDATION loss
VALIDATION loss
Evaluation
Testing Data, Factors & Metrics
Testing Data
The evaluation was performed on a TEST set of 31 750 patches that are independant from the TRAIN and VALIDATION patches. They represent 15 spatio-temporal domains.
The TEST set corresponds to the reunion of the TEST set of scientific challenges FLAIR#1 and FLAIR#2. See the FLAIR challenge page for more details.
The choice of a separate TEST set instead of cross validation was made to be coherent with the FLAIR challenges.
Metrics
With the evaluation protocol, the FLAIR-INC_rgb_12cl_resnet34-unet have been evaluated to OA=75.238% and mIoU=60.706%.
The following table give the class-wise metrics :
Classes
IoU (%)
Fscore (%)
Precision (%)
Recall (%)
building
79.007
88.273
88.892
87.662
pervious_surface
53.805
69.965
69.400
70.540
impervious_surface
72.274
83.906
84.051
83.762
bare_soil
61.068
75.829
74.271
77.454
water
83.352
90.920
90.149
91.705
coniferous
55.612
71.475
76.065
67.408
deciduous
69.265
81.842
77.871
86.239
brushwood
28.487
44.342
59.572
35.314
vineyard
75.632
86.126
84.467
87.850
herbaceous
50.723
67.306
70.726
64.202
agricultural_land
56.752
72.410
66.711
79.172
plowed_land
42.490
59.639
59.501
59.777
average
60.706
74.336
75.140
74.257
The following illustration gives the resulting confusion matrix :
Top : normalised acording to columns, columns sum at 100% and the precision is on the diagonal of the matrix
Bottom : normalised acording to rows, rows sum at 100% and the recall is on the diagonal of the matrix
Normalized Confusion Matrix (precision)
drawing
Normalized Confusion Matrix (recall)
drawing
Results
Samples of results
Citation
BibTeX:
@inproceedings{ign-flair,
title={FLAIR: a Country-Scale Land Cover Semantic Segmentation Dataset From Multi-Source Optical Imagery},
author={Anatol Garioud and Nicolas Gonthier and Loic Landrieu and Apolline De Wit and Marion Valette and Marc Poupée and Sébastien Giordano and Boris Wattrelos},
year={2023},
booktitle={Advances in Neural Information Processing Systems (NeurIPS) 2023},
doi={https://doi.org/10.48550/arXiv.2310.13336},
}
APA:
Anatol Garioud, Nicolas Gonthier, Loic Landrieu, Apolline De Wit, Marion Valette, Marc Poupée, Sébastien Giordano and Boris Wattrelos. 2023.
FLAIR: a Country-Scale Land Cover Semantic Segmentation Dataset From Multi-Source Optical Imagery. (2023).
In proceedings of Advances in Neural Information Processing Systems (NeurIPS) 2023.
DOI: https://doi.org/10.48550/arXiv.2310.13336