Enhancing Foundation Models for Imbalanced SAR Ship Classification via Targeted Oversampling
Organizations: Institute of Science and Technology, National Research Council, Pisa, Italy
Abstract
Remote-sensing foundation models offer strong representations for SAR imagery, but their behavior under severe long-tail class imbalance is still not well characterized. We benchmark DOFA and SAR-JEPA on the imbalanced OpenSARShip dataset and compare them with ImageNet-pretrained baselines under a fixed, training-efficient protocol that keeps the backbone frozen. To mitigate imbalance without fine-tuning, we apply four oversampling methods in embedding space exclusively to minority classes and train a lightweight classifier head on the augmented embeddings. Across both foundation models, oversampling improves Macro-F1 and test accuracy relative to their respective baselines, with the largest Macro-F1 gains observed for DOFA using ADASYN (34.39 to 38.56) and for SAR-JEPA using SVM-SMOTE (25.89 to 32.30). We also report class-wise behavior, showing that aggregate improvements can coexist with persistent failures on specific rare classes. Code for embedding extraction and reproducible multi-seed evaluation is provided to support rapid experimentation on free-tier hardware.
Figures & tables
| Model | Method | Accuracy | Macro-F1 |
|---|---|---|---|
| DOFA | Base | 60.65 1.12 | 34.39 0.26 |
| DOFA | ADASYN | 72.42 0.84 | 38.56 1.85 |
| DOFA | KMeans | 72.82 0.75 | 35.59 0.62 |
| DOFA | SENN | 66.96 1.17 | 33.85 1.23 |
| DOFA | SVM | 72.32 1.36 | 36.87 1.05 |
| SAR-JEPA | Base | 48.02 2.53 | 25.89 1.20 |
| Class | Baseline | ADASYN | KMeans | SENN | SVM |
|---|---|---|---|---|---|
| DOFA | |||||
| Cargo | 73.15 1.27 | 82.52 0.67 | 83.09 0.64 | 81.32 0.34 | 83.54 0.19 |
| Dredging | 18.74 3.64 | 19.93 5.09 | 8.28 4.46 | 19.71 1.14 | 8.99 0.14 |
| Fishing | 27.47 2.05 | 24.70 5.47 | 30.56 2.82 | 32.03 6.72 | 34.31 4.52 |
| Passenger | 24.98 7.47 | 38.41 7.17 | 28.83 3.88 | 26.08 2.40 | 30.79 1.12 |
| Tanker | 52.40 1.39 | 51.30 0.75 | 49.91 1.64 | 30.75 2.51 | 49.22 0.63 |
Class-Imbalanced Learning
Class-imbalanced learning develops classifiers that recognize rare classes without sacrificing performance on common ones.
See all 254 papers