LADI-Dataset / ladi-overview

Overview of the Low Altitude Disaster Imagery (LADI) Dataset
https://registry.opendata.aws/ladi/
MIT License
30 stars 6 forks source link
dataset disaster-response psiap

LADI Overview

The Low Altitude Disaster Imagery (LADI) dataset was created to address the relative lack of annotated post-disaster aerial imagery in the computer vision community. Low altitude post-disaster aerial imagery from small planes and UAVs can provide high-resolution imagery to emergency management agencies to help them prioritize response efforts and perform damage assessments. In order to accelerate their workflow, computer vision can be used to automatically identify images that contain features of interest, including infrastructure such as buildings and roads, damage to such infrastructure, and hazards such as floods or debris.

Version 1 of the LADI dataset was funded as part of a NIST public safety innovation accelerator effort to create datasets for public safety. It collected over 40k images from the Civil Air Patrol (CAP), which were annotated by crowdsourced workers providing labels from a hierarchical set of classes. The dataset was used in a number of NIST TRECVID challenges (2020, 2021, and 2022) and provided a broad basis for classification of aerial post-disaster scenes. However, the authors found that the quality of the labels were inconsistent, stemming in part from the untrained nature of the crowdsource workers, as well as the potentially subjective definition of certain labels, such as "damage".

For LADI v2, the authors used CAP volunteers who were trained in the FEMA damage assessment process, and we collected damage labels using the defined FEMA Preliminary Damage Assessment scale: unaffected, affected, minor, major, destroyed. These damage levels have specific criteria, helping reduce the subjectivity of identifying whether a structure is damaged. We also provide pretrained classifiers to aid in replication, and serve as a basis for fine-tuning and potential deployments.

A technical writeup of the dataset and classifiers is available here.

Getting Started

The LADI v2 dataset is available on Hugging Face at MITLL/LADI-v2-dataset. This is the recommended access method.

Default configuration

The default configuration uses the v2a labels with images resized to fit within 1800x1200. This is the recommended configuration for most use cases.

from datasets import load_dataset

ds = load_dataset("MITLL/LADI-v2-dataset")

Advanced Usage

If you need access to the full resolution images, the v2 label set, or the v1 dataset, you should load from the script revision. This will use a custom dataset loader script, which will require you to set revision="script" and trust_remote_code=True.

The available configurations for the script are: v2, v2a, v2_resized, v2a_resized, v1_damage, and v1_infra.

The first time you load the dataset, you should pass download_ladi=True, which will download a local copy of the relevant dataset version to your local system at base_dir.

from datasets import load_dataset

ds = load_dataset("MITLL/LADI-v2-dataset", "v2a_resized",
                revision="script",
                streaming=True,
                download_ladi=True,
                base_dir='./ladi_dataset',
                trust_remote_code=True)

This only needs to be done once, and subsequent calls can omit the argument, and it will automatically use your local copy.

ds = load_dataset("MITLL/LADI-v2-dataset", "v2a_resized",
                revision="script",
                streaming=True,
                base_dir='./ladi_dataset',
                trust_remote_code=True)

You can also manually access the dataset at https://ladi.s3.amazonaws.com/index.html, or via AWS S3 at s3://ladi, and the provided dataset class in training/LADI-v2-dataset. We recommend using the LADI_v2_resized version which resizes the images to 1800x1200, which should be large enough for most applications, but drastically reduces the overall dataset file size.

The LADI v1 and v2 dataset files are hosted as part of the AWS Open Data program.

Dataset Details

The LADI-v2 dataset is a set of aerial disaster images captured and labeled by the Civil Air Patrol (CAP). The images are geotagged (in their EXIF metadata). Each image has been labeled in triplicate by CAP volunteers trained in the FEMA damage assessment process for multi-label classification; where volunteers disagreed about the presence of a class, a majority vote was taken. The classes are:

The v2 dataset consists of approximately 10k images, split into a train set of 8k images, a validation set of 1k images, and a test test of 1k images. The train and validation sets are drawn from the same distribution (CAP images from federally-declared disasters 2015-2022), whereas the test set is drawn from events in 2023, which has a different distribution of event types and locations. This is done to simulate the distribution shift as new events occur each year.

Dataset v2a

The v2a variant of the dataset presents the same images with a modified set of labels, where the damage categories for buildings have been compressed into two classes of buildings_affected_or_greater and buildings_minor_or_greater. We find that this task is easier and of similar practical value for triage purposes. The bridges_damage label has also been removed due to the low number of positive examples in the dataset.

Dataset Summary: v1

The dataset code also supports loading a subset of the LADI v1 dataset, which consists of roughly 25k images, broken into two tasks, 'infrastructure' and 'damage'. The LADI v1 dataset was labeled by crowdsourced workers and the labels shouldn't be considered definitive. The data may be suitable for a pretraining task prior to fine-tuning on LADI v2.

The infrastructure task involves identifying infrastructure in images and has classes building and road. It is divided into a train set of 8.2k images and a test set of 2k images.

The damage task involves identifying damage and has classes flood, rubble, and misc_damage. It is divided into a train set of 14.4k images and a test set of 3.6k images.

Supported Tasks

The images are labeled for multi-label classification, as any number of the elements listed above may be present in a single image.

Data Structure

A single example in the v2a dataset looks like this:

{
'image': <PIL.PngImagePlugin.PngImageFile image mode=RGB size=1800x1200 at ...>,
'bridges_any': False, 
'buildings_any': False, 
'buildings_affected_or_greater': False, 
'buildings_minor_or_greater': False, 
'debris_any': False, 
'flooding_any': False, 
'flooding_structures': False, 
'roads_any': False, 
'roads_damage': False, 
'trees_any': True, 
'trees_damage': True, 
'water_any': True
}

Examples in the v1 datasets are analogous, with classes drawn from their respective tasks (infrastructure and damage).

Pretrained Classifiers

We provide a set of pretrained classifiers on the LADI v2 dataset for downstream finetuning and deployment purposes. See the associated model cards on Hugging Face for instructions on how to use.

We also provide "reference" versions of each model which are trained only on the train split of the LADI v2 dataset, to aid in reproducing the results presented in the paper.

Demo Application

Demonstration ArcGIS Online Application of LADI v2 classifier outputs for select 2024 disaster events A demonstration application is available on ArcGIS Online showing a potential use case of the classifier in action. The web app shows locations of Civil Air Patrol images taken after various storms in April and May 2024. LADI-v2-classifier-small is run on each of the images and the annotations are stored in a feature service. This allows for filtering of images based on classified labels, as well as tying symbology to the output of the classifiers to identify regions of interest.

NOTE: The demo application may contain results produced by earlier versions of the model weights. While we expect (but have not verified) that the demo application is broadly representative of the results you can expect from the most recent version of the model, some of the images in the demo may not exactly match the output of the most recent model. For this reason, it is discouraged to match the outputs of your code against the demo application to test the correctness of your code.

Repository Structure

This repository contains reference code for performing inference using the pretrained classifier, as well as the scripts used in training and finetuning the LADI-v2-classifiers.

container/ contains a Dockerfile and instructions to build a docker image for inference purposes.

inference/ contains code for performing inference with the pretrained classifier.

training/ contains code and instructions for training and finetuning the classifier.

tutorials/ provides more instructions and examples of how to install dependencies, run inference, and configure the training process.

v1_docs/ provides the archived version of the now deprecated LADI v1.

Point of Contact

We encourage the use of the GitHub Issues to submit questions or issues, but when email is required, please contact the administrators at ladi-dataset-admin@mit.edu.

Citations

LADI v2

If you use the LADI v2 dataset or classifiers, please cite the following:

@misc{ladi_v2,
      title={LADI v2: Multi-label Dataset and Classifiers for Low-Altitude Disaster Imagery}, 
      author={Samuel Scheele and Katherine Picchione and Jeffrey Liu},
      year={2024},
      eprint={2406.02780},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

LADI v1

If you use the LADI v1 dataset, please cite the following:

@inproceedings{liuLargeScale2019,
author={J. {Liu} and D. {Strohschein} and S. {Samsi} and A. {Weinert}},
booktitle={2019 IEEE High Performance Extreme Computing Conference (HPEC)},
title={Large Scale Organization and Inference of an Imagery Dataset for Public Safety},
year={2019},
volume={},
number={},
pages={1-6},
keywords={Safety;Metadata;Organizations;Servers;Computer architecture;Program processors;Broadband communication;big data;indexing;inference;public safety;video},
doi={10.1109/HPEC.2019.8916437},
ISSN={2377-6943},
month={Sep.},}

Distribution Information

DISTRIBUTION STATEMENT A. Approved for public release. Distribution is unlimited.

This material is based upon work supported by the Department of the Air Force under Air Force Contract No. FA8702-15-D-0001. Any opinions, findings, conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the Department of the Air Force.

© 2024 Massachusetts Institute of Technology.

The software/firmware is provided to you on an As-Is basis

Delivered to the U.S. Government with Unlimited Rights, as defined in DFARS Part 252.227-7013 or 7014 (Feb 2014). Notwithstanding any copyright notice, U.S. Government rights in this work are defined by DFARS 252.227-7013 or DFARS 252.227-7014 as detailed above. Use of this work other than as specifically authorized by the U.S. Government may violate any copyrights that exist in this work.