﻿# xBD: separate a missed building from an incorrect damage category

Use xBD paired disaster imagery to separate building localization errors from damage classification errors and preserve the event-level context of evaluation.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-xbd-localization-damage-conditional-error/
Language: en

## Define the prediction stages

xBD provides paired pre-disaster and post-disaster imagery with building damage annotations. The [dataset paper](https://arxiv.org/abs/1911.09296) introduces the damage-assessment setting and annotation scale. A pipeline may first localize a building and then assign damage. When a destroyed structure is absent from the predicted footprint map, that failure differs from selecting the wrong damage class for a correctly localized building. Preserve this distinction when diagnosing the result.

## Keep paired imagery attached to the event

Retain the image pair, disaster event and relevant metadata in each example. Replacing a missing pre-event image with another nearby acquisition changes the evidence available to the model. Inspect alignment before interpreting differences as physical damage. Seasonal appearance, viewing conditions and registration errors can change pixels without representing the target damage category, so a subtraction image alone is not equivalent to the provided assessment task.

## Compare conditional and complete evaluation

A classifier receiving reference building polygons has already been given localization information. An end-to-end system must discover those regions itself. Report which condition applies to the experiment and retain localization errors separately from damage-category confusion. The [official baseline](https://github.com/DIUx-xView/xView2_baseline) provides distinct localization and classification modeling references; using its code does not remove the need to state what inputs and masks were supplied during evaluation.

## Identify the actual archive population

The [TorchGeo adapter](https://github.com/torchgeo/torchgeo/blob/main/torchgeo/datasets/xbd.py) documents the particular challenge archives it uses and explicitly distinguishes other releases under the same project umbrella. Preserve archive membership before comparing sample counts or scores. A framework's train and test arguments can select a narrower population than a paper's full release. Keep mask class values and their interpretation recoverable when exporting targets into another training library.

## Read errors in the intended context

Inspect failure cases by event and damage category rather than averaging away a weak event with many easy buildings elsewhere. This is an evaluation design recommendation, not a claim that a model is suitable for operational emergency decisions. Existing guides on [group-aware splitting](/journal/data-guide-entity-group-split-design/) and [image geometry](/journal/data-guide-image-exif-box-coordinate/) support the preparation. The distinctive xBD question remains whether the system found the right building and assigned the correct damage assessment under its actual input assumptions.
