Characterizing Datasets to Anticipate Unsupervised Domain Adaptation Performance for Radiographic Pneumonia Detection
Authors: Iftakhar Hossain, Md. Imran Hasan, Salahuddin Ahmed, Eric D. McCollum, Abdullah H. Baqui, Taufiq Hasan
Organizations: Department of Biomedical Engineering and the mHealth Laboratory, Bangladesh University of Engineering and Technology (BUET), Dhaka-1205, Bangladesh · Projahnmo Research Foundation, Dhaka, Bangladesh · Global Program in Pediatric Respiratory Sciences, Eudowood Division of Pediatric Respiratory Disease, Johns Hopkins University School of Medicine, Baltimore, MD, USA · International Center for Maternal and Newborn Health, Department of International Health, Johns Hopkins Bloomberg School of Public Health, Baltimore, MD, USA · Center for Bioengineering Innovation and Design, Johns Hopkins University, Baltimore, MD, USA
Deep learning models for pneumonia detection from chest radiographs exhibit degraded accuracy when applied across institutions, which motivates Unsupervised Domain Adaptation (UDA). We observe that UDA performance depends on the properties of both the source and target datasets, and that performance gains are asymmetric with respect to dataset pairs. We investigate which structural properties of chest X-ray datasets are the most important predictors of UDA performance, and whether they can be measured before adaptation is attempted. Five chest radiograph datasets were characterized by the class separability of their features, obtained from one forward pass of a frozen DenseNet-121 and summarized by the Silhouette Score, with the Fisher Ratio as a supporting measure. All twenty directed source-target pairs were adapted with a Domain-Adversarial Neural Network (DANN), while direct transfer without adaptation was also evaluated. Seven published transferability estimators were computed on the same representation for comparison. We found that adaptation performance depended on both endpoints in opposite directions. More separable target datasets attained higher AUC scores (r=0.934, p=0.042), whereas more separable sources produced lower AUC scores (r=−0.922, p=0.017). The signed difference in separability tracked the signed difference in AUC between the two directions of a pair (r=−0.932, p=0.017) and identified the better direction in 10 of 10 pairs (p=0.001). The proposed descriptor was comparable to the best published estimators on target evaluation. Source and target datasets play opposite structural roles in adaptation: higher class separability makes a dataset easier as a test set but not as a training source. This framework can guide dataset selection for adaptation in low-resource settings without running full experiments.
Figures & tables
Fig. 1: Overview of the structural analysis pipeline. Five chest radiograph datasets are passed through a frozen DenseNet-121 to extract penultimate-layer features, from which the class separability of the two diagnostic classes is computed for each dataset, yielding a structural profile of each domain independent of any particular source-target pairing.
Dataset
Normal
Pneumonia
Total
Train
Kermany (pediatric)
1,583
4,273
5,856
5,232
NIH-RSNA (adult)
3,350
3,350
6,700
6,000
PadChest (adult)
3,350
3,350
6,700
6,000
CheXpert (adult)
3,350
3,350
6,700
6,000
PRF (pediatric)
2,777
1,999
4,776
4,107
TABLE I: Summary of the Datasets, Ordered by the Separability of Table III
Fig. 2: Domain-Adversarial Neural Network architecture. A shared feature extractor Gf maps labeled source and unlabeled target batches to a common feature space f . The label predictor Gy is trained on source data only (loss Ly ); the domain discriminator Gd is trained on both domains (loss Ld ). A gradient reversal layer between Gf and Gd passes activations forward unchanged and negates the gradient during backpropagation, driving Gf toward domain-invariant features.
Component
Setting
Feature extractor Gf
ResNet-18, ImageNet-pretrained,
final layer removed (512-d)
Label predictor Gy
512 → 256, BN, ReLU,
dropout 0.5, 256 → 2
Domain discriminator Gd
identical head, 256 → 2
Gradient reversal
λ(p) per ( 10 )
TABLE II: Training Protocol for the Adaptation Regime
Fig. 3: Directed AUC for all source-target pairs under (a) direct transfer (source-trained model evaluated on the target without adaptation) and (b) DANN. Rows are sources and columns are targets, both ordered by separability; off-diagonal cells show the twenty cross-domain pairs. In (a), the diagonal (bold italic) reports in-domain AUC, where a model is trained and evaluated on the same dataset as a reference point rather than a transfer result. In (b), the diagonal is undefined, since DANN requires distinct domains. The right strip of each panel gives the mean AUC of each dataset as a source and the bottom strip its mean AUC as a target, computed over cross-domain pairs only. Both panels share a color scale.
Fig. 4: Transfer performance by regime. (a) Mean incoming AUC for each target dataset under both regimes. (b) Per-pair AUC, points above the identity line indicating pairs on which the adapted model reaches a higher value. Point color denotes the source dataset.
Fig. 5: Two-dimensional UMAP embeddings of the DenseNet-121 feature representation for each dataset, colored by class label. Datasets with a higher Silhouette Score show more visibly separated classes.
Proposed descriptors
Reference estimators
Dataset
Silhouette
Fisher Ratio
GBC
LogME
H-score (s)
TransRate
NLEEP
PACTran-G
SFDA
Kermany
0.1535
0.3486
17.9147
+0.2347
0.8637
60.6346
−0.3230
−4.9686
−0.2554
NIH-RSNA
0.1265
0.2891
11.3861
−0.0693
0.7848
43.2202
−0.3432
−4.3534
−0.3702
PadChest
0.0671
0.1412
4.8135
−0.3791
0.5890
30.5928
−0.5162
−9.1413
−0.4502
CheXpert
0.0326
0.0731
3.4402
−0.5465
0.4330
20.1721
−0.6136
−13.0551
−0.5489
PRF
0.0086
0.0206
0.4197
−0.6024
0.4024
14.8896
−0.6682
−10.5807
−0.5858
TABLE III: Structural Descriptors and Reference Transferability Estimators per Dataset, Primary Extractor. Higher Values Indicate Greater Class Separability in Every Column. Datasets Are Ordered by Silhouette Score; All Nine Measures Produce This Same Order.
DANN
Direct transfer
Measure
r
p
ρ
pρ
r
p
ρ
pρ
Silhouette Score
+0.934
0.0417
+0.900
0.0833
+0.850
0.0583
+0.900
0.0833
Fisher Ratio
+0.932
0.0417
+0.900
0.0833
+0.852
0.0583
+0.900
0.0833
GBC [ 19 ]
+0.840
0.0667
+0.900
0.0833
+0.735
0.1500
+0.900
0.0833
LogME [ 13 ]
+0.853
0.0583
+0.900
0.0833
+0.747
0.1417
+0.900
0.0833
H-score [ 11 ]
+0.908
0.0583
+0.800
0.1333
+0.821
0.1083
+0.800
0.1333
TABLE IV: Target Structure and Reference Estimators versus Mean Incoming AUC ( n=5 ; Exact Permutation p )
DANN
Direct transfer
Measure
r
p
ρ
pρ
r
p
ρ
pρ
Silhouette Score
−0.922
0.0167
−0.900
0.0833
−0.706
0.1333
−0.600
0.3500
Fisher Ratio
−0.919
0.0167
−0.900
0.0833
−0.706
0.1250
−0.600
0.3500
TABLE V: Source Structure versus Mean Outgoing AUC ( n=5 ; Exact Permutation p ). No Reference Estimator Describes the Source Role.
DANN
Direct transfer
Descriptor
Analysis
r
p
r
p
Silhouette
Signed difference vs signed Δ AUC
−0.932
0.0167
−0.859
0.0250
Absolute gap vs mean pair AUC
−0.301
0.3083
−0.321
0.2833
Fisher
Signed difference vs signed Δ AUC
−0.932
0.0167
−0.860
0.0250
Absolute gap vs mean pair AUC
−0.269
0.3667
−0.294
0.3167
TABLE VI: Pair-Level Analyses ( n=10 Unordered Pairs; Dataset-Label Permutation p ). The Signed Difference Is s(A)−s(B) against AUC(A→B)−AUC(B→A) .
Descriptor
Regime
r
p
ρ
pρ
R2
Silhouette
DANN
+0.722
0.0167
+0.693
0.0250
0.521
Direct transfer
+0.568
0.0167
+0.505
0.0583
0.323
Fisher
DANN
+0.720
0.0167
+0.693
0.0250
0.519
Direct transfer
+0.569
0.0167
+0.505
0.0583
0.324
TABLE VII: Transfer Potential versus Directed AUC ( n=20 Directed Pairs; Dataset-Label Permutation p )
Fig. 6: Transfer Potential versus directed transfer AUC across all twenty ordered pairs, under (a) DANN and (b) direct transfer. The dashed line is the linear trend and point color denotes the source dataset. A positive Transfer Potential corresponds to a pairing in which the target is more separable than the source.
Descriptor
Regime
Correct
Binomial p
Silhouette
DANN
10/10
0.0010
Direct transfer
8/10
0.0547
Fisher
DANN
10/10
0.0010
Direct transfer
8/10
0.0547
TABLE VIII: Direction Prediction. Fraction of the Ten Unordered Pairs for Which the Sign of the Transfer Potential Identifies the Better of the Two Directions.
Silhouette
Fisher Ratio
Relationship
Regime
NIH
CheXpert
NIH
CheXpert
Separability → incoming AUC
DANN
+0.934
+0.963
+0.932
+0.823
Direct
+0.850
+0.927
+0.852
+0.726
Separability → outgoing AUC
DANN
−0.922
−0.761
−0.919
−0.909
Direct
−0.706
−0.572
−0.706
−0.842
Signed difference →Δ AUC
DANN
−0.932
−0.908
−0.932
−0.847
TABLE IX: Robustness to the Feature Extractor: Pearson r Under Two Independently Trained DenseNet-121 Networks
Fig. 7: The two endpoints play opposite structural roles under adaptation. (a) Targets with higher class separability receive higher mean incoming AUC. (b) Sources with higher class separability produce lower mean outgoing AUC, so more overlapped sources tend to transfer more strongly.
Fig. 8: In-domain training accuracy of each dataset utilized as a source, ordered by Silhouette Score. The most separable sources begin near their ceiling and saturate within a few epochs; the more overlapped sources begin far lower and improve gradually.
Aug 31, 2026·Abdullah Al Mamun, Md. Nasif Osman Khansur, Md Ashraful Hossen Akash +2Chest X-Ray Classification
Department of Computer Science and Engineering, Rajshahi University of Engineering & Technology (RUET), Kazla, Rajshahi 6204, Bangladesh · Elite Research Lab LLC, New York, USA · Faculty of Information Science and Technology, Multimedia University, Melaka, Malaysia +1