HandXFM: Semantic-Structural Distillation for Hand Radiograph Foundation Models
Organizations: Department of Computer Science, Western University, London, ON, Canada · Department of Medicine, University of Manitoba, Winnipeg, MB, Canada · Department of Internal Medicine, University of Manitoba, Winnipeg, MB, Canada · Department of Biochemistry, Western University, London, ON, Canada
Abstract
Hand radiographs support diverse clinical tasks, including skeletal maturity assessment, rheumatoid arthritis scoring, abnormality screening, and anatomical localization, yet existing models are typically trained separately for each task and dataset. We present HandXFM, a domain-specific foundation model that leverages cross-modality knowledge for comprehensive hand X-ray understanding. HandXFM distills semantic priors from BiomedCLIP and structural cues from a chest X-ray Vision Transformer (ViT) through a unified alignment framework, integrating complementary medical knowledge in an interpretable way. After pretraining, HandXFM can be adapted to a range of musculoskeletal tasks, including bone age estimation, SvH score prediction, abnormality detection, joint localization, bone segmentation, and visual question answering. It consistently outperforms task-specific and single-expert baselines, achieving up to 0.11 improvement in Pearson correlation coefficient (PCC) for bone age prediction and a 12% accuracy gain in abnormality classification. Moreover, HandXFM generalizes to unseen datasets and yields cross-attention maps linking clinical terms to anatomical regions. These results demonstrate that multi-expert distillation effectively unifies semantic and structural supervision within a single pretrained model, establishing HandXFM as an interpretable and generalizable foundation model for hand radiograph analysis.
Figures & tables
| SvH Scoring | Bone Age Prediction | ||||||||
| AIRINIIReumHands (Erosion) | RSNA (Monthly Labels) | ||||||||
| Method | RMSE | MAE | PCC | Method | RMSE | MAE | PCC | ||
| RheumaVIT [ 37 ] | 0.445 | 0.360 | 0.373 | 0.766 | CCR-BAA [ 24 ] | 11.911 | 8.873 | 0.918 | 0.959 |
| DINOv3 [ 31 ] | 0.525 | 0.300 | 0.127 | 0.426 | AE-BoNet [ 34 ] | 13.799 | 10.190 | 0.891 | 0.944 |
| RadFM [ 46 ] | 0.409 | 0.231 | 0.403 | 0.797 | DINOv3 [ 31 ] | 12.702 | 9.106 | 0.907 | 0.953 |
| RadCLIP [ 25 ] | 0.402 | 0.136 | 0.487 | 0.739 | RadFM [ 46 ] | 18.395 | 13.752 | 0.805 | 0.898 |
| Method | AUC | AUPRC | ACC | F1 | P | R |
|---|---|---|---|---|---|---|
| ST-SSAD [ 36 ] | 0.5966 | 0.4969 | 0.5978 | 0.0887 | 0.6429 | 0.0476 |
| DenseNet-169 [ 35 ] | 0.8234 | 0.7788 | 0.7109 | 0.6826 | 0.6217 | 0.7566 |
| DINOv3 [ 31 ] | 0.7405 | 0.6667 | 0.6741 | 0.6589 | 0.5900 | 0.7460 |
| RadFM [ 46 ] | 0.6114 | 0.5214 | 0.4891 | 0.5983 | 0.4419 | 0.9259 |
| RadCLIP [ 25 ] | 0.8460 | 0.8084 | 0.7500 | 0.6000 | 0.9231 | 0.4444 |
| HandXFM (ours) | 0.8599 | 0.8213 | 0.7857 | 0.6903 | 0.8843 | 0.5661 |
Appendix figures & tables34 assets
Supplementary material from the paper’s appendix.
Appendix
| Component | Configuration |
|---|---|
| Student | DINOv3 ViT-B/16; 12 blocks; 12 heads; |
| Input resolution / grid | / ( ) |
| Masking | Edge-aware; ratio ; |
| Latent regressor | 6 blocks; ; 8 heads; MLP ratio 4 |
| Regressor regularization | GELU; LayerNorm; drop path up to 0.1 |
| Loss weights |
| Method | Pixel ACC | Precision | Recall | F1 |
|---|---|---|---|---|
| nnU-Net | 0.9587 | 0.4384 | 0.4762 | 0.4538 |
| U-Net | 0.9597 | 0.4549 | 0.4803 | 0.4645 |
| HandXFM | 0.9586 | 0.4596 | 0.4984 | 0.4777 |
| Dataset | Metric | DINOv3 | BiomedCLIP | Chest X-ray | HandXFM |
|---|---|---|---|---|---|
| Bone Age | |||||
| RSNA | RMSE | 12.702 | 10.497 | 10.178 | 9.932 |
| MAE | 9.106 | 7.683 | 7.584 | 7.343 | |
| 0.907 | 0.937 | 0.940 | 0.943 | ||
| PCC | 0.953 | 0.968 | 0.970 | 0.972 | |
| RHPE | RMSE | 27.828 | 18.487 | 12.462 | 11.073 |
| Metric | DINOv3 Only | BiomedCLIP Only | Chest X-ray Only | Dual (HandXFM) |
|---|---|---|---|---|
| AUC | 0.7405 | 0.7771 | 0.8485 | 0.8599 |
| ACC | 0.6741 | 0.6987 | 0.7768 | 0.7857 |
| F1 | 0.6589 | 0.6650 | 0.6933 | 0.6903 |
| P | 0.5900 | 0.6262 | 0.8248 | 0.8843 |
| R | 0.7460 | 0.7090 | 0.5979 | 0.5661 |
| Metric | DINOv3 Only | BiomedCLIP Only | Chest X-ray Only | Dual (Ours) |
|---|---|---|---|---|
| [email protected]:0.95 | 0.5900 | 0.5550 | 0.6017 | 0.7636 |
| [email protected] | 0.9650 | 0.9515 | 0.9621 | 0.9802 |
| [email protected] | 0.6487 | 0.5810 | 0.6771 | 0.9026 |
| Metric | DINOv3 Only | BiomedCLIP Only | Chest X-ray Only | Dual (HandXFM) |
|---|---|---|---|---|
| Instance-level Classification | ||||
| ACC | 0.9474 | 0.9732 | 0.9675 | 0.9751 |
| P | 0.9435 | 0.9445 | 0.9428 | 0.9481 |
| R | 0.9000 | 0.9245 | 0.9191 | 0.9264 |
| F1 | 0.9210 | 0.9344 | 0.9307 | 0.9371 |
| Instance-level Localization | ||||
| Dataset | Metric | Alignment Only | Reconstruction Only | Combined |
|---|---|---|---|---|
| Bone Age Prediction | ||||
| RSNA | RMSE | 10.200 | 10.415 | 9.932 |
| MAE | 7.600 | 7.676 | 7.343 | |
| 0.940 | 0.938 | 0.943 | ||
| PCC | 0.970 | 0.968 | 0.972 | |
| RHPE | RMSE | 11.622 | 12.329 | 11.073 |
| Metric | Alignment Only | Reconstruction Only | Combined |
|---|---|---|---|
| AUC | 0.8413 | 0.8430 | 0.8599 |
| ACC | 0.7790 | 0.7723 | 0.7857 |
| F1 | 0.6937 | 0.7243 | 0.6903 |
| P | 0.8629 | 0.7403 | 0.8843 |
| R | 0.5661 | 0.7090 | 0.5661 |
| Metric | Alignment Only | Reconstruction Only | Combined |
|---|---|---|---|
| [email protected]:0.95 | 0.5765 | 0.5995 | 0.7636 |
| [email protected] | 0.9624 | 0.9702 | 0.9802 |
| [email protected] | 0.6230 | 0.6699 | 0.9026 |
| Metric | Alignment Only | Reconstruction Only | Combined |
|---|---|---|---|
| Instance-level Classification | |||
| ACC | 0.9722 | 0.9512 | 0.9751 |
| P | 0.9436 | 0.9481 | 0.9481 |
| R | 0.9236 | 0.9036 | 0.9264 |
| F1 | 0.9334 | 0.9251 | 0.9371 |
| Instance-level Localization | |||
| Dataset | Metric | Random Masking | Edge-aware Masking |
|---|---|---|---|
| Bone Age Prediction | |||
| RSNA | RMSE | 10.729 | 9.932 |
| MAE | 7.870 | 7.343 | |
| 0.934 | 0.943 | ||
| PCC | 0.967 | 0.972 | |
| RHPE | RMSE | 11.650 | 11.073 |
| Metric | Random Masking | Edge-aware Masking |
|---|---|---|
| AUC | 0.7739 | 0.8599 |
| ACC | 0.7098 | 0.7857 |
| F1 | 0.5860 | 0.6903 |
| P | 0.7360 | 0.8843 |
| R | 0.4868 | 0.5661 |
| Metric | Random Masking | Edge-aware Masking |
|---|---|---|
| [email protected]:0.95 | 0.7125 | 0.7636 |
| [email protected] | 0.9844 | 0.9802 |
| [email protected] | 0.8485 | 0.9026 |
| Metric | Random Masking | Edge-aware Masking |
|---|---|---|
| Instance-level Classification | ||
| ACC | 0.9713 | 0.9751 |
| P | 0.9419 | 0.9481 |
| R | 0.9227 | 0.9264 |
| F1 | 0.9321 | 0.9371 |
| Instance-level Localization | ||
| Input Resolution | RMSE | MAE | PCC | |
|---|---|---|---|---|
| 18.231 | 12.356 | 0.812 | 0.903 | |
| 15.195 | 10.513 | 0.869 | 0.933 | |
| 16.404 | 11.601 | 0.847 | 0.928 |
| Method | RMSE | MAE | PCC | |
|---|---|---|---|---|
| ResNet-50 | 35.288 | 23.869 | 0.290 | 0.602 |
| RadFM | 36.717 | 26.092 | 0.236 | 0.521 |
| RadCLIP | 36.579 | 22.830 | 0.241 | 0.654 |
| HandXFM | 34.284 | 21.534 | 0.333 | 0.684 |
| Task | Method | RMSE | MAE | PCC | |
|---|---|---|---|---|---|
| Erosion | RheumaVIT | ||||
| RadFM | |||||
| RadCLIP | |||||
| HandXFM (random masking) | |||||
| HandXFM (ours) | |||||
| JSN | RheumaVIT |
| Dataset | Downstream task | Unlabeled pretraining | Downstream fitting | Held-out evaluation / separation |
|---|---|---|---|---|
| RSNA Bone Age | Bone-age regression | 12,611 training images | Official training partition | 1,425 labeled validation images; 200 unlabeled challenge test images not evaluated. Official partitions. |
| RHPE | Bone-age regression | 5,487 training images | Training partition | 713 validation; 79 test images. Disjoint splits. |
| MURA Hand | Abnormality classification | 5,543 training images | Training partition | 460 validation images. Official study-disjoint partition. |
| AIRINIIReumHands | Joint-level SvH regression | 240 training images | 240 training images | 60 validation; 30 test images. Disjoint splits. |
| Anhui RA | Whole-hand SvH regression | 2,700 training images | 2,700 training images | 760 validation; 358 test images. Image-level split. |
| MedPix Hand | Closed-set VQA | 97 training images | 97 training image–text pairs | 11 held-out test pairs. Test images excluded. |
| Split | #Images | Mean Age (mo) | Labels |
|---|---|---|---|
| Training | 12,611 | 127 | Yes |
| Validation | 1,425 | 127 | Yes |
| Test | 200 | 132 | No |
| Metric | Value |
|---|---|
| Training images | 12,611 |
| Male-labeled images | 6,833 |
| Female-labeled images | 5,778 |
| Mean Age (years) | 10.61 |
| 0–5 years | 801 |
| 6–10 years | 3,487 |
| Split | #Images | Mean Age (mo) | Labels |
|---|---|---|---|
| Training | 5,487 | 126 | Yes |
| Validation | 713 | 126 | Yes |
| Test | 79 | 126 | Yes |
| Metric | Value |
|---|---|
| Training images | 5,487 |
| Male-labeled images | 2,524 |
| Female-labeled images | 2,963 |
| Mean Age (years) | 10.5 |
| 0–5 years | 340 |
| 6–10 years | 1,590 |
| Cycle | #Images | Age range (years) | Readings per image |
|---|---|---|---|
| First Cycle | 1,103 | 1–18 | 2 |
| Second Cycle | 287 | 5–14 | 4 |
| Metric | Value |
|---|---|
| Total Patients | 1,103 |
| Male Patients | 553 |
| Female Patients | 550 |
| Ethnic Groups | CA, AA, HI, AS |
| Mean Age (years) | 9.5 |
| Age Range | 1–18 |
| Regions | #Sites |
|---|---|
| Erosion: Interphalangeal, 4 DIP, 4 PIP, 5 MCP, 1st metacarpal base, wrist, ulnar, radiocarpal | 17 |
| JSN: Interphalangeal, 4 DIP, 4 PIP, 5 MCP, CMC (3–5), wrist, radiocarpal | 19 |
| Metric | Value |
|---|---|
| Total Patients | 330 |
| Healthy Controls | 42 |
| RA Patients | 288 |
| Average Age (years) | |
| Acquisition Period | 2019–2022 |
| Hand Views | Bilateral (1 radiograph per subject) |
| Split | #Images | Annotations | Method |
|---|---|---|---|
| Training | 2,700 | JSN, Erosion, Sharp score | SvH |
| Validation | 760 | JSN, Erosion, Sharp score | SvH |
| Test | 358 | JSN, Erosion, Sharp score | SvH |
| Metric | Value |
|---|---|
| Total Radiographs | 3,818 |
| Institution | Anhui University of Traditional Chinese Medicine |
| Acquisition Period | 2020–2022 |
| Average Age (years) | Not reported |
| Annotation Experts | 2 radiologists |
| Scoring System | Sharp–van der Heijde (SvH) |
| Split | Images | Normal | Abnormal | Normal ratio |
|---|---|---|---|---|
| Training | 5,543 | 4,059 | 1,484 | 0.732 |
| Validation | 460 | 271 | 189 | 0.589 |
| Total | 6,003 | 4,330 | 1,673 | 0.721 |
| Joint label | Anatomical definition |
|---|---|
| DIP_5 | Distal interphalangeal joint of the little finger |
| DIP_4 | Distal interphalangeal joint of the ring finger |
| DIP_3 | Distal interphalangeal joint of the middle finger |
| DIP_2 | Distal interphalangeal joint of the index finger |
| PIP_5 | Proximal interphalangeal joint of the little finger |
| PIP_4 | Proximal interphalangeal joint of the ring finger |
| Label ID | Anatomical definition |
|---|---|
| 0 | Metacarpal bone of the index finger |
| 1 | Metacarpal bone of the middle finger |
| 2 | Metacarpal bone of the thumb |
| 3 | Metacarpal bone of the ring finger |
| 4 | Metacarpal bone of the little finger |
| 5 | Proximal phalanx of the middle finger |
Medical Imaging
Medical imaging uses computational methods to analyze, reconstruct, and interpret images for diagnosis, treatment planning, and monitoring.
See all 276 papers