ACR: Domain-Adaptive Semantic Segmentation under Taxonomy Shift in Specialized Domains

WACV 2027
1University of Luxembourg   2SolarCleano

ACR is a plug-in that extends existing unsupervised domain adaptation (UDA) methods for semantic segmentation to handle both domain and taxonomy shift. Target-only classes are recovered from a handful of labeled target images, with no extra cost at inference.

Qualitative comparison on ESCDD to PVF1 and ESCDD to PVF1UV adaptation

ACR is evaluated on photovoltaic (PV) segmentation datasets, with electroluminescence (EL) images (ESCDD) as the source domain and RGB (PVF1) and UV (PVF1UV) images as the target domains. ACR recovers target-only classes (e.g. module spacing, ribbon crack) that standard UDA methods cannot predict.

Highlights

EL → UV · DAFormer
+13.41 mIoU
on the complete target taxonomy, including classes the source never labels.
EL → UV · DAFormer
+4.80 mIoU
on the shared classes that source and target have in common.
Supervision
≤ 2%
of target samples labeled to recover each target-private class.
Deployment
0
extra parameters or latency at inference: DPR and EAPR run only during training.

Abstract

Semantic segmentation in specialized domains, such as industrial inspection and medical imagery, is challenged not only by distribution shifts across acquisition conditions, but also by discrepancies between source and target taxonomies. This is particularly relevant to photovoltaic (PV) inspection, where annotations require expert knowledge, datasets are small and imbalanced, and different imaging modalities such as electroluminescence (EL), ultraviolet-induced fluorescence (UV) and visible light (RGB) imagery reveal complementary structural and defect-related characteristics.

We introduce anchored class recovery (ACR), a domain-adaptive semantic segmentation framework that jointly addresses distribution and taxonomy shifts. Our approach enhances self-training unsupervised domain adaptation pipelines through dual prototype refinement (DPR), which refines the target adaptation for shared classes using a feature prototype bank. For target-private classes, an exemplar-anchored pseudo-label recovery (EAPR) module combines a frozen SAM 2 backbone with a lightweight few-shot learner to generate class-specific pseudo-labels from minimal target annotations.

We evaluate ACR on one public EL dataset and two PV datasets that we collected using a robotic inspection platform, covering both RGB and UV imagery. To the best of our knowledge, this is the first systematic study of cross-modality domain adaptation for PV semantic segmentation. In the challenging EL→UV setting, ACR improves DAFormer by 4.80 mIoU points on the shared taxonomy and by 13.41 mIoU points on the complete target taxonomy.

Problem setting

Distribution and Taxonomy Shift

Most UDA methods assume the source and target domains share the same label space. In expert domains like PV inspection this rarely holds: each imaging modality reveals different structures, and some target classes have zero source pixels. ACR splits the target label space into shared classes, adapted without target labels, and target-private classes, recovered from a handful of target exemplars.

Samples, class distribution and feature PCA for ESCDD, PVF1 and PVF1UV

(a) Samples from the three PV datasets: ESCDD (EL), PVF1 (RGB) and PVF1UV (UV). (b) Per-class pixel distribution (the dominant cell class is omitted). (c) PCA of frozen DINOv3 features: the three modalities form well-separated clusters, revealing a large cross-modality gap.

Method

Anchored Class Recovery

Overview of the ACR architecture

Overview of ACR. Blue: supervised source training. Pink: conventional UDA adaptation. Green: teacher pseudo-labels refined by DPR. Red: few-shot relabeling of target-private classes by EAPR.

Shared classes
Dual Prototype Refinement (DPR)
An EMA-updated bank of per-class feature prototypes, used in two spaces. CPA (class-prototype alignment) pulls source and target features of each class toward a shared prototype.
PAPR (prototype-anchored pseudo-label recovery) relabels uncertain target pixels to thin classes when their features are decisively closer to that class's prototype, restoring supervision the confidence-gated teacher omits.
Target-private classes
Exemplar-Anchored Pseudo-label Recovery (EAPR)
A frozen SAM 2 encoder with a lightweight few-shot learner, mapping network and adaptive fusion module, adapted from OFL-SAM 2. Trained per class on ≤ 2% of target samples, it writes pseudo-labels for classes that have no source pixels. Each extra class adds only 1.21M parameters during training.
Deployment
No inference overhead
DPR and EAPR are used only during training. At test time, prediction is a single forward pass of the student network, so the deployed model keeps the size and speed of the base UDA method. ACR plugs into DAFormer and MIC without changing their architecture.
Results

Recovering Classes the Source Never Labeled

ACR is used with two UDA base models, DAFormer and MIC. Closed-set methods (DAFormer, SeCoV2, MIC) cannot predict target-private classes, so those classes count as 0 IoU in mIoUall. On the shared classes (mIoUshared), ACR uses no target labels, so it has the same supervision as the baselines.

EL → UV  (ESCDD → PVF1UV)
mIoU (%) over the 7 shared classes and all 9 target classes. Higher is better. Gains are over each base model.
Shared classesAll classes
DAFormer
shared: 23.55all: 18.32
DAFormer + SeCoV2
shared: 23.88all: 18.58
DAFormer + ACR
shared: 28.35+4.80all: 31.73+13.41
MIC
shared: 23.34all: 18.16
MIC-CSI
shared: 22.18all: 17.26
DYNALIGN
shared: 22.39all: 18.17
MIC + ACR
shared: 24.00+0.66all: 27.66+9.50
EL → RGB  (ESCDD → PVF1)
mIoU (%) over the 7 shared classes and all 8 target classes. Higher is better. Gains are over each base model.
Shared classesAll classes
DAFormer
shared: 26.22all: 22.94
DAFormer + SeCoV2
shared: 21.95all: 19.20
DAFormer + ACR
shared: 21.60−4.62all: 22.92−0.02
MIC
shared: 27.80all: 24.32
MIC-CSI
shared: 19.09all: 16.70
DYNALIGN
shared: 15.30all: 13.73
MIC + ACR
shared: 24.40−3.40all: 26.58+2.26

On EL→RGB, the gain on the target-private class comes with a trade-off on some frequent shared classes (e.g. busbars), which leaves DAFormer + ACR level with DAFormer overall.

Target-private classes
EL → UV · module spacing
71.84 IoU
with DAFormer + ACR. Best other method: 6.05 (DYNALIGN).
EL → UV · ribbon crack
15.26 IoU
with DAFormer + ACR. Best other method: 0.75 (DYNALIGN).
EL → RGB · module spacing
41.81 IoU
with MIC + ACR. Best other method: 2.76 (DYNALIGN).
Generalization

Beyond PV: Cross-Geography Remote Sensing

On SpaceNet-8, adapting from Louisiana-East (USA) to Germany, MIC + ACR raises the thin, hard-to-recover road class from 0.01% to 1.84% IoU and overall mIoU from 46.31% to 46.60%, with building slightly lower (40.50% → 39.79%). This is initial evidence that anchored recovery helps underrepresented structures outside PV inspection.

SpaceNet-8 qualitative results: image, ground truth, MIC, MIC+ACR

Red: building. Blue: road.

Contact

For questions, contact shiva.hanifi@uni.lu

BibTeX

@inproceedings{hanifi2027acr,
  title     = {{ACR}: Domain-Adaptive Semantic Segmentation under Taxonomy Shift in Specialized Domains},
  author    = {Hanifi, Shiva and Jafarnejad, Sasan and Cormier, Mathieu and Elghazaly, Gamal and Frank, Raphael},
  booktitle = {Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)},
  year      = {2027}
}

Acknowledgments. This work was funded by SolarCleano. We thank SolarCleano for providing access to its robotic inspection platform for collecting the PVF1 and PVF1UV datasets.