Distribution Shift Detection in Remote Sensing Imagery using Machine Learning Models

Abdullah Almansour, Ozan K. TonguzarXiv 2026 · arXiv

TL;DR

This paper evaluates how effectively and quickly machine learning models can detect "distribution shifts"—changes in visual data caused by new geographic or seasonal conditions—when deployed on resource-constrained platforms like UAVs. By benchmarking three open-source libraries, the authors highlight a critical trade-off: while batch-level statistical tests are highly accurate at spotting shifts, their computational latency may be too high for the split-second response times required in safety-critical aerial missions.

What Problem Does This Paper Address?

Machine learning models often perform brilliantly in the lab but fail in the field. In remote sensing, a model trained on sunny coastal images from one region might struggle when deployed over a different coastline with different lighting or sensor noise. This is known as distribution shift.

For Unmanned Aerial Vehicles (UAVs) used in disaster response or search-and-rescue, these failures can be catastrophic. While we can't always prevent shifts, we can try to detect them in real-time so the system can alert a human or trigger a fallback mode. However, UAVs have limited onboard compute. A detection algorithm that takes seconds to run is useless if the drone needs to make a navigation decision in milliseconds. This paper specifically investigates the balance between detection "effectiveness" (accuracy) and "latency" (speed).

Figure 1. Illustration of potential distribution shift for a perception model deployed on a UAV in a search-and-rescue mission. The coastal-scene examples are drawn from two different benchmarks: training images are from RESISC45 [3], while AID [21] is used to represent a shifted deployment distribution.

Methods

The authors conducted a case study using three popular open-source detection libraries:

  1. Alibi-Detect: Focuses on window-level (batch) detection using statistical tests like Kolmogorov-Smirnov (KS) and Maximum Mean Discrepancy (MMD).
  2. NannyML: Another window-level library using metrics like Hellinger and Wasserstein distances.
  3. PyTorch-OOD: Focuses on sample-level detection, evaluating individual images for "out-of-distribution" (OOD) scores using methods like Maximum Softmax Probability (MSP) and Mahalanobis distance.

The workflow involves training a standard classifier (ResNet or ViT) on "In-Distribution" data, then using that model as a feature extractor. These features are fed into the detection tools to see if they can distinguish between the original training distribution and a new, shifted dataset.

Figure 2. Overview of the proposed case-study design.

Datasets

The study utilizes three established aerial scene-classification benchmarks:

  • NWPU-RESISC45 (RESISC45): Used as the In-Distribution (ID) training set.
  • AID: Used as a shifted Out-Of-Distribution (OOD) set.
  • UCMerced Land Use (UCM): Used as a second shifted OOD set.

To ensure a fair comparison, the authors restricted the experiments to classes that exist across all datasets (e.g., "beach," "forest").

Key Insights and Ideas

  • Implementation is as important as the math: Interestingly, the Kolmogorov-Smirnov (KS) test is available in both Alibi-Detect and NannyML. However, Alibi-Detect's version was faster in their setup. This suggests that how a library handles data structures and backends (CPU vs. GPU) significantly impacts real-world performance.
  • The Window Size Dilemma: For window-level methods, larger windows (more samples) lead to much more reliable detection. However, larger windows also mean a longer "time-to-detection" because the system has to wait to collect enough samples.
  • GPU Acceleration is a Game Changer: Methods in Alibi-Detect that utilized GPU-enabled operations (like MMD and LSDD) achieved much lower processing times than CPU-bound methods, which is vital for hardware-accelerated edge devices.
  • Sample-level vs. Window-level: Sample-level methods (PyTorch-OOD) are incredibly fast (sub-millisecond) but generally less accurate at identifying subtle distributional shifts compared to statistical tests that look at a group of images.

Key Results

  • Performance Degradation: Distribution shift is real. A ResNet-18 model's accuracy dropped from 97.47% on its home dataset to 84.37% when tested on the UCM dataset.
  • Detection Effectiveness: The Cramer-von Mises (CvM) test from Alibi-Detect was a standout performer, achieving high detection rates even with small window sizes (N=16).
  • Latency: Sample-level methods were the fastest, with MaxLogits taking only 0.146 ms per sample. In contrast, window-level methods like KS in NannyML could take over 1400 ms to process a batch, which might be prohibitive for high-speed UAV navigation.
Comparison of shift detection rates across different window sizes.

Limitations and Future Work

The authors acknowledge several constraints:

  • Scope: They only tested a subset of available methods and three specific libraries.
  • Shift Complexity: Cross-dataset evaluation is a "noisy" way to measure shift because it mixes many variables (sensor, geography, etc.). More controlled benchmarks are needed to isolate specific types of shifts.
  • Hardware: The tests were run on an NVIDIA Tesla T4; results might differ on even more constrained "edge" hardware like a Jetson Nano or specialized drone flight controllers.

Future research should focus on latency-aware monitoring, creating detection mechanisms that are specifically optimized for the strict timing and power requirements of autonomous aerial systems.

Summary updated

Abstract

Remote sensing imagery acquired by Unmanned Aerial Vehicles (UAVs) supports wide range of applications; however, deploying machine learning (ML) models on resource-constrained aerial platforms introduces challenges beyond predictive accuracy, particularly when deployment data differ from the distributions observed during training. Such shifts are common in remote sensing due to geographic, sensor, seasonal, and other visual variations. A practical solution is to equip deployed models with mechanisms that detect emerging distribution shifts and support subsequent responsive actions. This paper presents an empirical case study of three open-source detection tools: (i) Alibi-Detect; (ii) NannyML; and (iii) PyTorch-OOD. Using cross-dataset remote-sensing shifts, we evaluate both detection effectiveness and computational latency of these tools. Our results reveal differences in detection behavior and processing cost across methods and implementations, highlighting trade-offs between detection capability and response-time. These findings motivate further work toward lightweight, and latency-aware monitoring mechanisms for resource-constrained systems.
BibTeX
@misc{almansour2026distribution,
  author = {Abdullah Almansour and Ozan K. Tonguz},
  title = {{Distribution Shift Detection in Remote Sensing Imagery using Machine Learning Models}},
  year = {2026},
  eprint = {2611.13510},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.13510},
}
Figure