Datasets:
Dataset Viewer
Full Screen Viewer
Full Screen
The viewer is disabled because this dataset repo requires arbitrary Python code execution. Please consider
removing the
loading script
and relying on
automated data support
(you can use
convert_to_parquet
from the datasets
library). If this is not possible, please
open a discussion
for direct help.
Create dataset folder
mkdir eo4wildfires-ai
cd eo4wildfires-ai
Create a virtual environment and activate it
python3 -m pip install --user virtualenv
python3 -m venv .venv
source .venv/bin/activate
Setup libaries
pip3 install numpy pandas geopandas rasterio rioxarray xarray netCDF4 h5netcdf transformers datasets
Setup more libraries, if you want to check a minimum working example (https://huggingface.co/datasets/AUA-Informatics-Lab/eo4wildfires/blob/main/how-to-use-eo4wildfires.ipynb)
pip3 evaluate accelerate matplotlib
for this, you should also have a version of PyTorch installed: https://pytorch.org/
Load dataset
from datasets import load_dataset
dataset = load_dataset('AUA-Informatics-Lab/eo4wildfires')
Plot some examples
import matplotlib.pyplot as plt
import numpy as np
# Convert dataset arrays into numpy arrays
dataset.set_format('np')
fig, axes = plt.subplots(3, 2, figsize=(12, 20))
axes[0][0].imshow(dataset['validation'][0]['burned_mask']*255)
axes[0][1].imshow((dataset['validation'][0]['S2A'][3:0:-1]*255).astype('int').transpose(1, 2, 0))
axes[1][0].imshow(dataset['validation'][16]['burned_mask']*255)
axes[1][1].imshow((dataset['validation'][16]['S2A'][3:0:-1]*255).astype('int').transpose(1, 2, 0))
axes[2][0].imshow(dataset['validation'][789]['burned_mask']*255)
axes[2][1].imshow((dataset['validation'][789]['S2A'][3:0:-1]*255).astype('int').transpose(1, 2, 0))
plt.show()
Cite the dataset
@Article{fire7110374,
AUTHOR = {Sykas, Dimitris and Zografakis, Dimitrios and Demestichas, Konstantinos},
TITLE = {Deep Learning Approaches for Wildfire Severity Prediction: A Comparative Study of Image Segmentation Networks and Visual Transformers on the EO4WildFires Dataset},
JOURNAL = {Fire},
VOLUME = {7},
YEAR = {2024},
NUMBER = {11},
ARTICLE-NUMBER = {374},
URL = {https://www.mdpi.com/2571-6255/7/11/374},
ISSN = {2571-6255},
ABSTRACT = {This paper investigates the applicability of deep learning models for predicting the severity of forest wildfires, utilizing an innovative benchmark dataset called EO4WildFires. EO4WildFires integrates multispectral imagery from Sentinel-2, SAR data from Sentinel-1, and meteorological data from NASA Power annotated with EFFIS data for forest fire detection and size estimation. These data cover 45 countries with a total of 31,730 wildfire events from 2018 to 2022. All of these various sources of data are archived into data cubes, with the intention of assessing wildfire severity by considering both current and historical forest conditions, utilizing a broad range of data including temperature, precipitation, and soil moisture. The experimental setup has been arranged to test the effectiveness of different deep learning architectures in predicting the size and shape of wildfire-burned areas. This study incorporates both image segmentation networks and visual transformers, employing a consistent experimental design across various models to ensure the comparability of the results. Adjustments were made to the training data, such as the exclusion of empty labels and very small events, to refine the focus on more significant wildfire events and potentially improve prediction accuracy. The models’ performance was evaluated using metrics like F1 score, IoU score, and Average Percentage Difference (aPD). These metrics offer a multi-faceted view of model performance, assessing aspects such as precision, sensitivity, and the accuracy of the burned area estimation. Through extensive testing the final model utilizing LinkNet and ResNet-34 as backbones, we obtained the following metric results on the test set: 0.86 F1 score, 0.75 IoU, and 70% aPD. These results were obtained when all of the available samples were used. When the empty labels were absent during the training and testing, the model increased its performance significantly: 0.87 F1 score, 0.77 IoU, and 44.8% aPD. This indicates that the number of samples, as well as their respectively size (area), tend to have an impact on the model’s robustness. This restriction is well known in the remote sensing domain, as accessible, accurately labeled data may be limited. Visual transformers like TeleViT showed potential but underperformed compared to segmentation networks in terms of F1 and IoU scores.},
DOI = {10.3390/fire7110374}
}
- Downloads last month
- 135