RBMatch: Dual-Level Class Rebalancing for Semi-Supervised Building Footprint Extraction
Organizations: Department of EEE, Bangladesh University of Engineering and Technology(BUET) · Department of EEE, University of Asia Pacific
Abstract
Accurate building footprint extraction from high-resolution remote sensing imagery is essential for urban planning, disaster response, and environmental monitoring. However, obtaining dense pixel-level annotations is costly, motivating the use of semi-supervised learning (SSL) to leverage unlabeled imagery. In remote sensing, severe foreground--background imbalance poses a particular challenge for self-training, as it can bias pseudo-label generation and the resulting unsupervised optimization toward the majority background class. We show that addressing this imbalance at only one stage is insufficient: balancing pseudo-label selection alone does not prevent background bias from re-emerging during unsupervised loss optimization, a failure mode we term \emph{imbalance leak}. To address this issue, we propose \textbf{RBMatch}, a dual-level class-rebalancing framework that jointly regulates pseudo-label generation and unsupervised optimization. RBMatch combines a supervised learning pathway with a self-training module comprising three components: adaptive class-specific thresholding (ACT) for balanced pseudo-label selection, confidence-aware class-balanced reweighting (CACBR) for mitigating class bias in the unsupervised loss, and distribution alignment (DAL) for matching the predicted unlabeled-data distribution to the labeled-data prior. Experiments on the WHU, INRIA, and Massachusetts building footprint datasets across labeled ratios of 1%--10% show that RBMatch consistently achieves the best building IoU and F1-score among the evaluated methods. The improvement is most pronounced on the highly imbalanced Massachusetts dataset, where RBMatch improves IoU by 1.37 points over the strongest baseline at a 1% labeling ratio and is the only method to outperform the fully supervised baseline across all twelve dataset--ratio settings.
Figures & tables
| Configuration | Recall | Precision | IoU | F1 | |
|---|---|---|---|---|---|
| (a) | Only-Sup | 89.68 | 93.43 | 84.36 | 91.52 |
| (b) | FixMatch (SUP+ST) | 88.55 | 93.14 | 83.13 | 90.79 |
| (c) | + ACT only | 88.60 | 94.04 | 83.89 | 91.24 |
| (d) | + CACBR only | 88.58 | 94.04 | 83.87 | 91.23 |
| (e) | ACT+CACBR (no DAL) | 89.31 | 93.80 | 84.33 | 91.50 |
| (f) | RBMatch (full) | 90.21 | 93.88 | 85.19 | 92.00 |
| Method | =0.01 | =0.02 | =0.05 | =0.10 |
|---|---|---|---|---|
| WHU Building Dataset | ||||
| Only-Sup | 83.27/90.87 | 83.55/91.04 | 84.36 / 91.52 | 85.38 / 92.11 |
| FixMatch | 82.42/90.36 | 82.89/90.64 | 83.13/90.79 | 84.74/91.74 |
| FreeMatch | 81.79/89.98 | 82.05/90.14 | 82.80/90.59 | 83.94/91.27 |
| AdaptMatch | 82.62/90.48 | 83.21/90.84 | 83.31/90.90 | 84.88/91.82 |
| DARS | 82.55/90.44 | 83.41/90.95 | 83.16/90.81 | 84.43/91.56 |
| Method | UNet | UNet++ | DeepLabV3 | SegFormer-B2 |
|---|---|---|---|---|
| Only-Sup | 73.16/84.50 | 75.37/85.95 | 78.18/87.75 | 84.36/91.52 |
| DBMatch | 75.38/85.96 | 77.83/87.53 | 78.51/87.96 | 83.90/91.25 |
| RBMatch | 77.19/87.13 | 79.37/88.50 | 80.20/89.01 | 85.19/92.00 |