Cross-Dataset Transfer and Unknown-Class Detection in Imbalanced SAR Ship Classification
Organizations: Institute of Science and Technology, National Research Council, Pisa, Italy
Abstract
Ship classification from Synthetic Aperture Radar (SAR) imagery is a critical computer vision task, yet the robustness of models under deployment shifts remains unclear. While models are often trained on one dataset and deployed on another, we lack a comprehensive understanding of their cross-dataset generalization. To address this, we evaluate six pretrained models on two SAR ship datasets in three settings: in-domain classification, cross-dataset transfer, and unknown-class detection. For unknown detection, we hold out all classes one at a time. In-domain, SARDet100K gives the best balanced accuracy on both datasets (73.4% on FUSARShip and 53.2% on OpenSARShip). In cross-dataset transfer, we observe strong failures: some models show moderate accuracy but near-chance balanced accuracy (for example, 64.5% accuracy but 33.3% balanced accuracy for OpenSARShip to FUSARShip). In unknown detection, performance depends on the held-out class and dataset, while MC-dropout variance is often close to random. These findings show that cross-dataset generalization in SAR remains limited and that task-specific uncertainty scores are often more informative than MC-dropout variance for held-out-class detection, although their relative ranking depends on the dataset and held-out class.
Figures & tables
| Dataset | Res. | Cargo | Tanker | Fishing |
| FShip | 1.5 m | 1693 | 785 | 148 |
| OShip | 20 m | 5303 | 139 | 1825 |
| FUSARShip | OpenSARShip | |||||
| Model | Acc | BAcc | Macro-F1 | Acc | BAcc | Macro-F1 |
| SD | 75.68 1.97 | 73.42 3.98 | 75.40 3.16 | 76.05 0.58 | 53.22 3.38 | 56.66 3.37 |
| DF | 69.58 1.63 | 56.57 2.68 | 59.32 2.06 | 74.62 0.54 | 44.38 2.62 | 47.09 3.41 |
| SJ | 69.20 2.28 | 58.34 3.49 | 61.26 3.30 | 74.36 0.43 | 45.60 2.66 | 48.31 2.96 |
| S4 | 68.94 1.65 | 57.51 2.33 | 60.38 2.41 | 73.71 0.49 | 38.17 1.51 | 37.62 2.62 |
| SM | 66.49 1.66 | 50.91 4.75 | 53.53 5.12 | 73.16 0.21 | 38.69 2.09 | 36.99 3.17 |
| FUSARShip OpenSARShip | OpenSARShip FUSARShip | |||||
| Model | Acc | BAcc | Macro-F1 | Acc | BAcc | Macro-F1 |
| SJ | 58.15 6.50 | 29.25 2.04 | 27.88 1.15 | 57.11 2.95 | 30.46 1.25 | 25.18 0.77 |
| DF | 56.48 4.64 | 45.63 4.53 | 29.55 1.90 | 60.79 1.08 | 31.58 0.63 | 25.77 0.74 |
| SM | 54.31 2.32 | 30.71 0.67 | 30.42 0.74 | 64.11 0.77 | 33.10 0.40 | 26.06 0.19 |
| PV | 51.13 6.35 | 43.40 5.09 | 27.94 1.53 | 64.49 0.32 | 33.34 0.16 | 26.30 0.36 |
| SD | 48.01 1.77 | 36.81 0.74 | 31.77 0.99 | 53.63 3.98 | 31.98 4.07 | 25.97 2.24 |
| Unknown | Acc (SD) | BAcc (SD) | Mac-F1 (SD) | Softmax | MC-Var | ||
| FUSARShip | |||||||
| Cargo | 97.17 0.92 | 92.60 1.63 | 94.53 1.64 | 62.87 (PV) | 51.72 (PV) | 59.58 (SD) | 55.35 (SD) |
| Fishing | 97.68 0.33 | 88.65 3.03 | 91.59 1.40 | 42.06 (SD) | 49.02 (SD) | 66.29 (SJ) | 58.05 (SM) |
| Tanker | 75.87 1.72 | 70.49 2.73 | 71.03 2.54 | 42.51 (DF) | 50.17 (DF) | 87.94 (PV) | 86.19 (PV) |
| OpenSARShip | |||||||
| Cargo | 95.21 0.66 | 74.27 4.56 | 78.38 3.96 | 45.83 (SJ) | 49.76 (SJ) | 57.91 (DF) | 55.55 (DF) |
| Scenario | Report | Uncertainty |
| In-domain | BA, macro-F1 | Secondary |
| Cross-dataset | BA + class recall; accuracy secondary | Required for screening |
| Unknown-class | AUROC; multiple held-out classes | Required for reject/flag |
| Pre-deployment policy | Bidirectional CD + multi-class UC | Use multiple scores, not only softmax/MC-dropout |
| Data | Unk. | Smax | MC-V | ||
| FS | Cargo | 74.17 2.59 (PV) | 66.08 2.88 (PV) | 73.30 2.21 (SD) | 69.87 2.04 (SD) |
| FS | Fishing | 24.99 1.32 (SD) | 30.73 2.69 (S4) | 46.13 3.86 (SJ) | 40.94 3.47 (SJ) |
| FS | Tanker | 5.00 0.34 (DF) | 9.61 4.17 (PV) | 40.42 4.16 (SM) | 37.94 4.84 (SM) |
| OS | Cargo | 69.83 1.73 (S4) | 73.06 0.80 (S4) | 78.39 0.56 (S4) | 76.62 0.51 (S4) |
| OS | Fishing | 6.55 3.77 (PV) | 2.28 0.36 (SJ) | 23.17 7.40 (SM) | 23.46 7.35 (SM) |
| OS | Tanker | 29.69 1.99 (SD) | 26.42 1.28 (SD) | 24.77 0.72 (SD) | 24.96 1.05 (SD) |
| Model | MC-Var | Bal. Acc | ||
| FUSARShip | ||||
| SD | 42.49 2.85 | 41.49 2.13 | 51.11 4.05 | 73.42 3.98 |
| SJ | 56.94 2.63 | 55.41 3.15 | 50.95 3.49 | 58.34 3.49 |
| S4 | 52.16 3.46 | 51.16 3.28 | 50.78 3.22 | 57.51 2.33 |
| DF | 47.61 2.70 | 50.11 2.24 | 50.54 3.40 | 56.57 2.68 |
| SM | 56.10 4.05 | 56.52 2.32 | 51.20 4.44 | 50.91 4.75 |
| Model | FUSARShip | OpenSARShip | ||||
| C | T | F | C | T | F | |
| SD | 85.54 3.37 | 81.60 7.84 | 53.13 8.48 | 93.12 1.82 | 29.40 5.44 | 37.14 9.90 |
| SJ | 85.49 4.68 | 52.53 11.05 | 37.01 9.66 | 96.53 1.28 | 13.56 3.27 | 26.71 8.03 |
| S4 | 89.12 3.47 | 55.73 6.50 | 27.67 6.92 | 98.50 0.56 | 6.56 1.92 | 9.43 4.03 |
| DF | 87.82 2.62 | 47.73 8.15 | 34.17 6.43 | 96.79 0.83 | 14.20 2.88 | 22.14 6.93 |
| SM | 87.91 4.25 | 39.73 12.99 | 25.10 11.00 | 99.72 0.21 | 0.35 0.46 | 16.00 6.24 |
| Direction | Model | MC-Var | Bal. Acc | ||
| FS OS | |||||
| SJ | 50.08 3.08 | 55.99 4.74 | 49.55 2.04 | 29.25 2.04 | |
| DF | 45.46 2.66 | 46.99 1.98 | 49.79 1.55 | 45.63 4.53 | |
| SM | 35.08 2.63 | 67.09 2.12 | 50.47 1.07 | 30.71 0.67 | |
| PV | 75.60 6.16 | 74.14 4.23 | 49.80 2.02 | 43.40 5.09 | |
| SD | 65.72 1.79 | 68.60 1.70 | 46.65 1.27 | 36.81 0.74 | |
| Model | Per-class Acc | Acc | BAcc | ||
| Cargo | Tanker | Fishing | |||
| FUSARShip to OpenSARShip | |||||
| SJ | 77.59 9.41 | 5.73 1.74 | 4.43 4.08 | 58.15 6.50 | 29.25 2.04 |
| DF | 75.04 6.55 | 2.28 0.88 | 59.57 16.59 | 56.48 4.64 | 45.63 4.53 |
| SM | 65.27 4.78 | 26.58 5.08 | 0.29 0.97 | 54.31 2.32 | 30.71 0.67 |
| PV | 67.11 9.09 | 4.10 0.85 | 59.00 21.95 | 51.13 6.35 | 43.40 5.09 |
Classification
Classification maps observations to discrete labels, including familiar, unknown, hierarchical, or multiple categories.
See all 407 papers