Next Article in Journal
System-Level Review and Advances in Axial-Flux Permanent-Magnet Machines: Topology Classification, Design Optimisation, Materials, Modelling, and Control Strategies
Previous Article in Journal
LLM-AP: LLM-Based Anomaly Detection with Synthetic Time-Series Data Augmentation
Previous Article in Special Issue
Predicting Depressive Relapse in Patients with Major Depressive Disorder Using AI from Smartphone Behavioral Data
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Bidirectional Domain Shift Failure in Radiograph Fracture Classification Across Out-of-Distribution Pediatric and Mixed-Age Multi-Region Data

Algorithmic Medicine Laboratory, Department of Osteopathic Manipulative Medicine, College of Osteopathic Medicine, New York Institute of Technology, Old Westbury, New York, NY 11568, USA
*
Author to whom correspondence should be addressed.
Appl. Sci. 2026, 16(14), 6853; https://doi.org/10.3390/app16146853
Submission received: 11 June 2026 / Revised: 2 July 2026 / Accepted: 7 July 2026 / Published: 8 July 2026

Abstract

Deep learning systems for radiographic fracture detection routinely achieve high internal accuracy, yet they rarely undergo external validation across demographically distinct populations, leaving critical generalization gaps unexamined. Pediatric and adult populations represent fundamentally different imaging domains due to developmental anatomy (particularly growth plates (physes) in children), making cross-age validation critical for understanding true model robustness. We trained two ResNet-50 classifiers on publicly available datasets: GRAZPEDWRI-DX (pediatric wrist radiographs, n = 20,327) and FracAtlas (mixed-age multi-region radiographs, n = 4083). Models were evaluated internally and cross-tested bidirectionally on the opposing population. Both models achieved acceptable internal test accuracy (82.2% and 83.7%), yet cross-testing revealed complete discrimination failure: specificity collapsed to 0% in both directions while sensitivity artificially inflated to 100% due to all-positive prediction bias. Grad-CAM analysis identified distinct failure mechanisms: the FracAtlas-trained model misinterpreted normal pediatric physes as fractures, while the pediatric-trained model exhibited texture bias on heterogeneous adult imaging. These results demonstrate that high internal performance provides no assurance of cross-population generalizability and that pediatric–adult domain shifts can trigger catastrophic rather than graduated failure. Mandatory external validation across age-defined populations should be required before clinical deployment of fracture detection AI.

1. Introduction

Fracture detection represents one of the highest-volume diagnostic tasks in clinical radiology, with emergency departments and outpatient clinics generating substantial numbers of musculoskeletal radiographs requiring timely interpretation [1,2,3]. This diagnostic burden has motivated interest in artificial intelligence systems capable of augmenting radiologist workflow by flagging suspicious findings or providing preliminary interpretations. However, the clinical utility of such systems depends fundamentally on their ability to perform reliably across the diverse patient populations encountered in practice [4]. A fracture-detection algorithm that achieves high accuracy on one patient demographic but fails catastrophically on another would pose risks to patient safety rather than benefits [5,6]. The question of whether deep learning models can learn generalizable representations of fractures, rather than population-specific patterns that do not transfer across demographic boundaries, therefore constitutes a critical prerequisite to clinical deployment.
The integration of deep learning into radiographic interpretation has demonstrated remarkable potential for augmenting clinical diagnostic workflows. Convolutional neural networks have achieved expert-level performance on fracture detection tasks across diverse anatomical regions, with reported accuracies frequently exceeding 90% on benchmark datasets [7,8]. Recent implementations utilizing ResNet-50 architectures have achieved near-perfect area under the curve (AUC) scores for detecting nondisplaced femoral neck fractures [9], while advanced object-detection frameworks such as YOLOv8 have demonstrated high diagnostic accuracy across multiple hip fracture classifications [10]. Similarly, VGG16 and DenseNet201 architectures have achieved 97% accuracy in multi-region fracture classification [11], and custom convolutional neural networks paired with transfer learning have shown strong performance on the multi-region FracAtlas dataset [12]. These successes have accelerated regulatory approvals and commercial deployment of AI-assisted diagnostic tools in radiology departments worldwide. However, the translation of algorithmic performance from curated research datasets to heterogeneous clinical populations remains incompletely characterized, raising fundamental questions about the generalizability of learned representations across patient demographics [13].
A critical assumption underlying the deployment of medical AI systems is that features learned from one patient population will transfer meaningfully to others presenting with the same pathology. This assumption is particularly consequential in musculoskeletal radiology, where fracture detection represents a high-volume, time-sensitive diagnostic task amenable to AI augmentation. Yet the morphological differences between patient populations (most notably between pediatric and adult skeletal anatomy) introduce potential confounders that standard training and validation procedures may fail to detect. Pediatric bones exhibit developmental features including open growth plates (physes), variable ossification centers, and distinct cortical thickness profiles that fundamentally alter the radiographic appearance of both normal anatomy and pathological findings [14,15,16,17]. The diagnostic challenge posed by growth plates has been documented in pediatric-specific model development, where even dedicated CNN architectures achieved only 85% accuracy for distal radius fractures due to the persistent confusion between physes and true fracture lines [18]. Whether deep learning models can abstract fracture-indicative features that transcend these population-specific characteristics remains an open empirical question with direct implications for patient safety.
The prevailing evaluation paradigm for medical image classifiers relies on held-out test sets drawn from the same distribution as training data; while this approach appropriately measures within-domain generalization, it provides no assurance regarding performance on demographically distinct populations encountered in clinical practice. A systematic review by Yu et al. revealed that 81% of deep learning models in medical imaging experienced performance degradation when tested on external data, with nearly one quarter exhibiting AUC decreases of 0.10 or greater [19]. The RAISE systematic review of over 500 radiology AI studies found that only 6% included external validation, with those that did showing an average performance drop of 6% and a maximum drop of 44% [20]. Similarly, a review of AI training on small medical imaging datasets found that only 5% of studies included any form of external validation [21]. These findings suggest that the “expert-level” results frequently reported in the literature may be inflated by data homogeneity and fail to reflect real-world deployment conditions.
The magnitude of cross-population performance degradation has been empirically documented across multiple clinical contexts. A top-performing algorithm from the RSNA AI challenge experienced a significant drop in specificity from 94% to 70% when externally validated on a diverse trauma dataset, primarily due to anatomical confounders such as degenerative disease [22]. A systematic review of AI models in diagnostic radiology published between 2022 and 2025 found that, while internal AUC metrics remained high (0.76–0.95), external validation typically caused substantial specificity reductions of up to 24 percentage points [23]. Most concerning, Maleki et al. demonstrated that a pneumonia detection model achieving 98.7% internal accuracy correctly classified only 3.8% of external healthy samples, proving that high internal metrics can mask a complete absence of true generalizability [24]. Such failures have been attributed to “shortcut learning,” wherein models exploit hidden data acquisition biases rather than clinically relevant features, leading to performance overestimation by up to 20% [25].
Cross-population validation studies that report successful generalization underscore the exceptional nature of such results. A recent study validated the cross-population generalizability of an AI tool trained on Indian data by evaluating its performance on a large Dutch cohort across seventeen anatomical regions, achieving 87.1% sensitivity and 87.1% specificity at the patient level [26]. However, such multi-institutional validation remains the exception rather than the rule, and reviews of fracture risk assessment models continue to identify generalizability and data bias as persistent hurdles necessitating transparent, multi-institutional validation standards [27]. The current literature on fracture detection, while reporting diagnostic accuracies between 85% and 95%, consistently identifies critical barriers to clinical implementation: spectrum bias, limited model generalizability, and an urgent need for standardized multicenter validation protocols [8].
This study addresses this gap through a controlled cross-validation experiment designed to isolate the effect of patient population on classifier generalizability. We trained two identical ResNet-50 architectures on radiographically distinct datasets: one comprising mixed-age radiographs spanning multiple anatomical regions (FracAtlas [28]) and one comprising exclusively pediatric wrist radiographs (GRAZPEDWRI-DX [29]). Each model was evaluated both on held-out data from its training distribution (internal validation) and on the complete opposing dataset (external cross-testing). This bidirectional cross-testing protocol enables direct quantification of the generalization barrier between adult and pediatric populations while controlling for architectural and training configuration variables.
Our experimental design intentionally omits domain adaptation techniques, data augmentation, and fine-tuning procedures that might ameliorate cross-population performance degradation. The findings reported herein quantify the magnitude of cross-population generalization failure, identify specific anatomical and textural confounders driving misclassification, and provide explainability analyses illuminating the learned representations underlying model predictions.

Study Purpose and Objectives

The primary objective of this study is to characterize the baseline transferability of fracture-detection models in the absence of explicit generalization interventions. By documenting the unmitigated failure modes that emerge when population boundaries are crossed, we establish the empirical foundation necessary for developing and evaluating targeted solutions. The experimental design employs an intentionally extreme scenario comparing demographically and anatomically dissimilar datasets to establish theoretical upper bounds on cross-population generalization failure; while commercial fracture-detection systems typically operate within defined specifications regarding patient age and anatomical region, the deliberate violation of these boundaries in a controlled research setting reveals the mechanistic basis of domain-specific learned representations that would otherwise remain latent. This theoretical approach complements studies of clinically plausible scenarios by isolating the population factor from other sources of performance variability. Fundamentally, a robust fracture-detection algorithm should be capable of identifying bone tissue on a radiograph and recognizing whether that bone exhibits structural discontinuity, irrespective of patient age or anatomical region. Bone remains bone, and fracture remains fracture, across demographic boundaries. If a classifier achieves acceptable performance only when test images closely resemble training images in population characteristics, this constitutes evidence that the model has encoded features irrelevant to the diagnostic task itself. Such reliance on non-generalizable shortcuts represents a critical failure mode that warrants explicit investigation, rather than a predictable outcome to be dismissed as specification violation.
A classification-based approach was selected rather than object detection because the primary research question concerned whether models learn transferable representations of the fracture concept itself, independent of localization capability. Classification architectures provide a direct test of whether global image features encode population-invariant diagnostic information, whereas object-detection performance could be confounded by localization accuracy. Additionally, classification permits straightforward comparison of sensitivity and specificity metrics across populations without requiring annotation-format harmonization between datasets with different bounding box conventions.
To achieve this purpose, the study pursued three specific aims: (1) To evaluate whether deep learning models achieving acceptable internal validation performance maintain discrimination capability on demographically shifted populations. (2) To characterize potential failure modes for adult-to-pediatric versus pediatric-to-adult transfer and determine whether generalization barriers are symmetric or asymmetric in nature. (3) To establish baseline performance benchmarks against which future domain adaptation and population-aware training strategies can be evaluated.
These analyses carry implications for the regulatory evaluation and clinical deployment of radiographic AI systems, with potential to inform our understanding of whether population-specific validation should be required prior to deployment across demographic boundaries.

2. Materials and Methods

This section describes the methodological pipeline employed to evaluate the cross-population generalizability of fracture-detection models. The workflow proceeded through four phases: data preparation, model configuration, training with validation, and evaluation including cross-dataset testing and explainability analysis. The following subsections are organized to reflect this sequential structure. Study design and dataset characteristics are presented first, followed by preprocessing procedures and partitioning protocols that prepared the data for model ingestion. Network architecture and training configuration subsections detail the transfer learning approach. Label assignment and cross-testing protocols describe how binary classification labels were derived and how trained models were evaluated on opposing datasets to assess generalization across population boundaries. Explainability analysis via Gradient-weighted Class Activation Mapping is then described, followed by performance metrics used to quantify classification behavior. The section concludes with documentation of the computational environment and algorithmic contributions.

2.1. Study Design and Datasets

This study employed a cross-validation experimental design to evaluate the generalizability of deep learning models trained on radiographic data from distinct patient populations. Two publicly available datasets were utilized for model development and external validation. The first dataset, FracAtlas [28], comprises mixed-age radiographs spanning multiple anatomical regions including the hand, leg, hip, shoulder, and images containing orthopedic hardware. This dataset represents a generalist collection of adult skeletal pathology. The second dataset, GRAZPEDWRI-DX [29], contains exclusively pediatric wrist radiographs, representing a specialist collection focused on a single anatomical region within a developmentally distinct population. The fundamental differences in skeletal maturity between these populations, particularly the presence of open physes (growth plates) in pediatric patients, provided an ideal substrate for testing model adaptability across demographic boundaries.
The FracAtlas dataset, published in 2023, contains 4083 musculoskeletal radiographic images curated from three major hospitals in Bangladesh [28]. Of these, 717 images contain fractures encompassing 922 individual fracture instances; each instance is annotated with bounding boxes and segmentation masks in addition to global classification labels. The dataset spans multiple anatomical regions including hand (1538 images), leg (2272 images), hip (338 images), and shoulder (349 images), with 99 images containing orthopedic hardware. Patient ages range from 8 months to 78 years, encompassing both pediatric and adult populations; the gender distribution is approximately 62% male and 38% female. Annotations were performed manually by two expert radiologists and validated by an orthopedist. The GRAZPEDWRI-DX dataset, published in 2022, contains 20,327 wrist radiograph images derived from 10,643 studies of 6091 pediatric patients treated at the Department for Pediatric Surgery of the University Hospital Graz between 2008 and 2018 [29]. Studies typically include posteroanterior and lateral projections. The dataset is annotated with 74,459 image tags and 67,771 labeled objects, with pediatric radiologists marking pathologies including fractures and periosteal reactions using lines, bounding boxes, or polygons. Patient age and sex information accompanies each image. The substantially greater image count in GRAZPEDWRI-DX relative to FracAtlas reflects both the multi-projection acquisition protocol and the extended collection period at a single high-volume pediatric trauma center. Although FracAtlas includes patients across the full age spectrum from infancy to late adulthood, the multi-region anatomical scope and collection from general diagnostic radiography practice distinguishes it from the exclusively pediatric, single-region wrist focus of GRAZPEDWRI-DX. This comparison therefore contrasts a pediatric wrist specialist dataset against a mixed-age multi-region generalist dataset rather than a strictly adult population.
The FracAtlas dataset includes hand radiographs but does not contain isolated wrist-specific imaging; no publicly available adult wrist fracture dataset of comparable size and annotation quality was identified at the time of study design. The comparison of a pediatric wrist specialist model against a mixed-age multi-region generalist model was therefore necessitated by data availability constraints rather than methodological preference. This asymmetry in anatomical scope represents a limitation that should be considered when interpreting cross-testing results. However, two considerations mitigate the impact of this limitation and render the experimental design informative despite the asymmetry.
First, theoretical considerations regarding anatomical scope asymmetry predict directional effects that can be empirically tested. A model trained exclusively on a single anatomical region would be expected to perform poorly when evaluated on diverse anatomical regions, because region-specific features learned during training would not transfer to unfamiliar anatomy. Conversely, a model trained on multiple anatomical regions would be expected to perform comparatively better when evaluated on a single region, including regions not explicitly present in training data, because multi-region training should encourage learning of region-invariant features common to all bony structures. The FracAtlas model, having been exposed to fractures across hand, leg, hip, shoulder, and other skeletal sites, should theoretically develop more generalizable representations of what constitutes a fracture than the narrowly trained GRAZPEDWRI-DX model. The cross-testing protocol is designed to evaluate whether this theoretical expectation holds in practice.
Second, and more fundamentally, a robust fracture-detection algorithm should be capable of identifying bone tissue on a radiograph and recognizing whether that bone exhibits structural discontinuity, irrespective of patient age or the specific anatomical region depicted. The hand and wrist share skeletal structures, and the fundamental radiographic task of distinguishing intact bone from fractured bone does not change across these closely related regions, nor does it change between pediatric and adult patients. Bone remains bone, and fracture remains fracture, across these boundaries. This capacity to recognize bone and detect cortical discontinuity represents the minimal competency expected of any system claiming to detect fractures. If a classifier functions only when presented with images nearly identical in patient demographics and anatomical region to those encountered during training, this would constitute evidence that the model has acquired population-specific or acquisition-specific features rather than the universal radiographic signatures of skeletal pathology. Such reliance on non-generalizable shortcuts would represent a critical failure mode warranting explicit investigation, rather than a predictable and dismissible consequence of applying a model outside its nominal specifications. The experimental design intentionally tests this fundamental expectation by crossing population boundaries under conditions where true fracture-detection capability should, in principle, transfer.

2.2. Data Preprocessing and Augmentation

All radiographic images underwent standardized preprocessing prior to model ingestion. Images were resized to 224 × 224 pixels to conform to the input requirements of the selected architecture. Grayscale images, common in radiographic data, were converted to three-channel RGB format through channel replication to ensure compatibility with pretrained network weights. This conversion was implemented through a custom reading function applied uniformly across training, validation, and test partitions (see Algorithm A1 in the Appendix A for complete pseudocode). The preprocessing pipeline ensured dimensional consistency while preserving the diagnostic features present in the original acquisitions. No additional augmentation techniques such as rotation, flipping, or intensity modification were applied, thereby isolating the effect of population differences from augmentation-induced variability. The overall cross-testing experimental design is illustrated in Figure 1.

2.3. Dataset Partitioning

Each dataset was partitioned into training, validation, and test subsets using a 75/10/15 split ratio. The two datasets differ substantially in total image count, with GRAZPEDWRI-DX containing approximately 20,000 radiographs and FracAtlas containing approximately 4000 radiographs, a ratio of roughly five to one. Despite this size disparity, both datasets possess image counts that exceed the thresholds typically considered sufficient for training convolutional neural network classifiers via transfer learning; several thousand labeled examples generally suffice for fine-tuning pretrained architectures on medical imaging tasks. No resampling or size-matching procedures were applied to equalize dataset magnitude, as the study aimed to evaluate models trained under conditions representative of each dataset’s native characteristics. However, the primary research question concerns cross-population generalization rather than comparative internal performance, and both datasets provided sufficient training examples for their respective models to achieve non-trivial internal discrimination. A model that has genuinely learned to detect fractures should generalize the core concept of cortical discontinuity regardless of training set size; failure to do so would indicate reliance on dataset-specific features rather than the universal radiographic signatures of bone and fracture. Stratified random sampling was employed to maintain class balance across all partitions. A fixed random seed (seed = 42) was set prior to partitioning to ensure reproducibility of the experimental conditions. The training subset was used for weight optimization, the validation subset for hyperparameter tuning and early stopping decisions, and the test subset for final internal performance assessment. Class labels were standardized across both datasets to a binary classification scheme distinguishing fractured from non-fractured cases.

2.4. Network Architecture

The ResNet-50 convolutional neural network architecture served as the backbone for both classification models. This architecture was selected for its demonstrated efficacy in medical image analysis tasks and its availability with pretrained weights from the ImageNet database. Transfer learning was employed by initializing network weights from ImageNet pretraining, thereby leveraging learned low-level and mid-level visual features. The terminal layers of the network were modified to accommodate the binary classification task. Specifically, the original 1000-class fully connected layer was replaced with a new fully connected layer containing two output neurons corresponding to the fractured and non-fractured classes. The classification output layer was similarly replaced with a new classification layer explicitly configured with the target class labels to prevent ambiguities in label ordering during inference.

2.5. Training Configuration

Network training was performed using stochastic gradient descent with momentum (SGDM) as the optimization algorithm. The initial learning rate was set to 0.0001 to facilitate fine-tuning of pretrained weights without catastrophic forgetting. Training proceeded for a maximum of four epochs with a mini-batch size of 32 samples. Data shuffling was performed at the beginning of each epoch to reduce ordering bias. Validation performance was evaluated every 20 iterations to monitor for overfitting. Training was executed in parallel across available CPU cores to reduce computation time. Identical training configurations were applied to both models to ensure comparability of results. The complete training pipeline, including architecture modification and artifact export procedures, is formalized in Algorithm A2, with the overall methodology from data loading through evaluation illustrated in Figure 2.

2.6. Label Assignment Protocol

Binary class labels were assigned based on annotation files accompanying each dataset. For datasets utilizing YOLO-format annotations, a custom sorting algorithm parsed the label files to identify fracture-positive cases (Algorithm A3). Images were classified as fractured if their corresponding annotation file contained bounding box coordinates with the fracture class identifier. Images lacking fracture annotations or possessing empty annotation files were classified as non-fractured. This automated sorting procedure ensured consistent label assignment across all dataset partitions and eliminated manual labeling errors.

2.7. Cross-Testing Protocol

Following internal training and validation, each model was subjected to external evaluation on the opposing dataset. The adult-trained model (trained on FracAtlas) was evaluated on the complete GRAZPEDWRI-DX pediatric dataset without any fine-tuning or domain adaptation. Symmetrically, the pediatric-trained model (trained on GRAZPEDWRI-DX) was evaluated on the complete FracAtlas adult dataset. This cross-testing protocol was designed to quantify the degree to which learned representations transfer across patient populations with fundamentally different skeletal characteristics. No modifications were made to model weights or classification thresholds during cross-testing, ensuring that observed performance reflected pure generalization capacity. The complete evaluation protocol, including failure mode analysis procedures, is detailed in Algorithm A4.

2.8. Explainability Analysis

Gradient-weighted Class Activation Mapping (Grad-CAM) was employed to visualize the spatial regions influencing model predictions (Algorithm A5). For each classification, Grad-CAM generated a heatmap overlay indicating the relative contribution of image regions to the predicted class. This technique computes the gradient of the target class score with respect to feature maps in the final convolutional layer, producing a localization map highlighting discriminative regions. Heatmaps were superimposed on original images with 50% transparency to enable visual correlation between model attention and anatomical structures. This explainability analysis was particularly valuable for diagnosing failure modes during cross-testing, as it revealed whether models attended to clinically relevant features or spurious image characteristics.
Grad-CAM visualizations were generated for a representative subset of cases rather than exhaustively for all images in the cross-testing datasets. Systematic quantitative analysis of activation patterns, such as measuring the proportion of activation falling within versus outside bony structures, was not performed in the present study. The explainability analysis was intended to provide qualitative insight into model attention patterns rather than statistically validated characterization of activation distributions. A clinically meaningful fracture-detection system should, at minimum, localize its attention to skeletal structures when making predictions, regardless of patient demographics or anatomical region; the Grad-CAM methodology permits visual assessment of whether this fundamental expectation is satisfied.

2.9. Performance Metrics

Model performance was quantified using standard classification metrics derived from confusion matrices. Sensitivity (true positive rate) measured the proportion of actual fractures correctly identified. Specificity (true negative rate) measured the proportion of non-fractured cases correctly classified. Overall accuracy represented the proportion of all cases correctly classified. These metrics were computed separately for internal test sets and cross-test evaluations to distinguish within-domain performance from cross-domain generalization. Confusion matrices were generated and exported for each evaluation scenario to enable detailed analysis of classification patterns.

2.10. Computational Environment

All experiments were conducted using MATLAB (version 26.1; MathWorks, Natick, MA, USA) with the Deep Learning Toolbox (version 26.1). Parallel computing was enabled through the Parallel Computing Toolbox to distribute training across available processor cores. The hardware platform consisted of an AMD Ryzen 7 7800X3D processor (AMD, Santa Clara, CA, USA). A local parallel pool was initialized at runtime to maximize computational throughput during both training and inference phases. Model weights and training artifacts were serialized to disk following training completion to enable subsequent analysis and cross-testing without retraining.

2.11. Algorithmic Contributions

The computational methodology employed in this study was implemented through five interconnected algorithms, each serving a distinct function within the overall processing pipeline. Complete pseudocode representations are provided in the Appendix A to enable full reproducibility. Algorithm A1 defines the standardized image preprocessing function ensuring dimensional and format consistency across all pipeline stages. Algorithm A2 orchestrates the complete transfer learning workflow including architecture modification, training configuration, and artifact export. Algorithm A3 implements automated YOLO annotation parsing and binary label assignment. Algorithm A4 implements the cross-dataset evaluation protocol central to this study’s experimental contribution, including failure mode detection. Algorithm A5 provides Gradient-weighted Class Activation Mapping for model explainability.
The five algorithms comprising the computational workflow exhibit a hierarchical dependency structure, illustrated in Figure 3. The data-sorting algorithm (Algorithm A3) operates first and independently, requiring only raw data and annotation files as input. The preprocessing function (Algorithm A1) is defined independently but is invoked by subsequent algorithms during data-loading operations. The training algorithm (Algorithm A2) depends on both preceding components and produces trained model files as output. The cross-testing algorithm (Algorithm A4) requires trained models from the training phase and applies the same preprocessing function to external data. Finally, the Grad-CAM algorithm (Algorithm A5) operates on trained models and specific input images, providing interpretability for predictions generated during evaluation.
The modular architecture of this algorithmic workflow confers several methodological advantages. First, separation of data sorting from model training permits reuse of organized datasets across multiple experimental configurations without repeated preprocessing. Second, encapsulation of the preprocessing function as an independent utility ensures identical image transformation across training and evaluation phases, eliminating a potential source of domain shift. Third, isolation of the cross-testing protocol from internal evaluation enables systematic comparison of within-domain and cross-domain performance using identical computational procedures. Fourth, integration of Grad-CAM as a standalone algorithm permits explainability analysis to be applied selectively to samples of interest without modification to upstream components. The complete pseudocode for each algorithm is provided in Algorithms A2–A5, detailing input requirements, processing steps, decision logic, and output formats.

3. Results

The results are organized into thematic sections reflecting the logical progression of the experimental analysis. Internal validation performance is presented first to establish baseline model capabilities within their respective training distributions. Cross-testing results follow, documenting generalization performance when models are evaluated on populations outside their training domain. Finally, Grad-CAM explainability analysis provides mechanistic insight into the observed failure modes. This organization permits assessment of whether acceptable internal performance predicts external generalization capability.

3.1. Internal Classification Performance

Figure 4 presents the confusion matrices for both ResNet-50 classifiers evaluated on their respective home datasets across training, validation, and test partitions. The top row displays results for the pediatric specialist model trained on GRAZPEDWRI-DX, while the bottom row shows results for the mixed-age generalist model trained on FracAtlas.
The GRAZPEDWRI-DX model demonstrated consistent performance across all internal partitions, achieving 88.5% sensitivity for fracture detection on the held-out test set with 69.9% specificity for normal case identification. The training partition exhibited slightly lower specificity (72.7%) compared to test performance, suggesting appropriate regularization without substantial overfitting. Validation metrics closely approximated test set performance, indicating reliable hyperparameter selection during model development.
The FracAtlas model exhibited a markedly different classification pattern characterized by high specificity but reduced sensitivity. On the internal test set, the model correctly identified 94.9% of non-fractured cases while detecting only 31.5% of true fractures. This asymmetric performance pattern persisted across all partitions, with training sensitivity reaching 54.3% before declining to 32.4% on validation and 31.5% on test data. The substantial gap between sensitivity and specificity reflects the class imbalance inherent in the adult radiograph dataset, where non-fractured cases substantially outnumber fracture cases.
Overall accuracy on internal test sets reached 82.2% for the GRAZPEDWRI-DX model and 83.7% for the FracAtlas model. These metrics confirm that both networks successfully learned discriminative features from their respective training distributions, establishing baseline competency prior to cross-dataset evaluation.
Table 1 presents extended performance metrics that provide threshold-independent assessment of classifier discrimination. The Matthews Correlation Coefficient (MCC) is particularly informative for binary classification evaluation because it incorporates all four confusion matrix quadrants and remains robust to class imbalance, producing a high score only when a classifier performs well on both positive and negative classes. The GRAZPEDWRI-DX model achieved an MCC of 0.56, indicating moderate but meaningful discrimination between fractured and non-fractured pediatric wrist radiographs. The FracAtlas model achieved a lower MCC of 0.34, reflecting its asymmetric performance profile with high specificity but poor sensitivity. Diagnostic likelihood ratios further characterize clinical utility: a positive likelihood ratio (LR+) greater than 1 indicates that a positive test result increases the probability of disease, while a negative likelihood ratio (LR-) less than 1 indicates that a negative result decreases disease probability. The GRAZPEDWRI-DX model exhibited LR+ of 2.94 and LR- of 0.16, suggesting moderate diagnostic value in both directions. The FracAtlas model showed higher LR+ (6.10) but substantially weaker LR- (0.72), consistent with its specificity-dominant classification pattern, where positive predictions carry greater confidence than negative predictions. Notably, the two models exhibit opposite calibration profiles: the GRAZPEDWRI-DX model is sensitivity-dominant (88.52% sensitivity vs. 69.94% specificity), while the FracAtlas model is specificity-dominant (31.48% sensitivity vs. 94.85% specificity). This distinction becomes important when interpreting cross-testing failure modes in subsequent sections.

3.2. Quantitative Performance Metrics

Figure 5 presents the comprehensive performance metrics calculated from the confusion matrices for both ResNet-50 classifiers across training, validation, and test partitions. These metrics provide complementary perspectives on classification performance beyond the raw confusion matrix values presented in Figure 4.
The GRAZPEDWRI-DX model (pediatric specialist) demonstrated consistent and balanced performance across all evaluation partitions, as shown in Figure 5a,b. Overall accuracy ranged from 80.86% on the validation set to 82.73% on the training set, with test accuracy of 82.20%. The F1-score, which harmonizes precision and recall, remained stable between 85.86% and 87.14% across partitions, indicating robust fracture-detection capability. Sensitivity exceeded 86% across all partitions, reaching 88.52% on the test set, while specificity remained moderate at approximately 70%. Precision values consistently exceeded 85%, suggesting that positive predictions carried high confidence.
The FracAtlas model (mixed-age generalist) exhibited markedly different performance characteristics, as illustrated in Figure 5c,d; while overall accuracy appeared acceptable (83.69% on test), the balanced accuracy of 63.17% revealed substantial performance asymmetry between classes. The most striking observation was the pronounced decline in sensitivity from 54.28% during training to 31.48% on the test set, indicating that the model failed to detect approximately two-thirds of true fractures in held-out data. Conversely, specificity remained exceptionally high (94.85% on test), demonstrating reliable identification of non-fractured cases. The F1-score declined substantially from 63.31% during training to 40.48% on the test set, reflecting the progressive deterioration of fracture detection capability.
Both models demonstrated the expected generalization hierarchy, with metrics generally declining from training through validation to test partitions. The FracAtlas model exhibited steeper decline curves, particularly for sensitivity and F1-score, suggesting greater susceptibility to overfitting or insufficient representation of fracture-positive features in the training data.

3.3. Training Dynamics and Convergence Behavior

Figure 6 presents the learning curves for both ResNet-50 classifiers, illustrating the progression of accuracy and loss metrics across four training epochs. These curves provide insight into model convergence behavior and the relationship between training and validation performance throughout the optimization process.
The FracAtlas model (mixed-age generalist) demonstrated rapid initial convergence, with training accuracy rising from 55% to 88% within the first epoch before stabilizing at approximately 90% by training completion, as shown in Figure 6a. Validation accuracy followed a similar trajectory, increasing from 60% to 82% in the first epoch and reaching a final value of 84.28%. The training–validation accuracy gap remained narrow throughout training, measuring approximately 5.7 percentage points at convergence. The loss curves in Figure 6b corroborate this convergence pattern, with both training and validation loss decreasing monotonically from initial values near 0.70 to final values of approximately 0.35.
The GRAZPEDWRI-DX model (pediatric specialist) exhibited a more gradual learning trajectory. Training accuracy increased from 40% to 75% during the first epoch and continued rising to 82% by training completion. Validation accuracy progressed from 67% to 80.91%, with the majority of improvement occurring in the first two epochs. The training–validation accuracy gap for this model measured approximately 1.1 percentage points at convergence, indicating tighter coupling between training and held-out performance. Loss values decreased from 0.90 to 0.42 for both training and validation, with near-perfect overlap between the two curves throughout the training process.
Both models completed training within the allocated four epochs, with the FracAtlas model requiring 380 total iterations (46 min 58 s) and the GRAZPEDWRI-DX model requiring 508 iterations (249 min 43 s). The difference in training duration reflects the larger dataset size of GRAZPEDWRI-DX rather than differences in convergence efficiency. Neither model exhibited signs of overfitting, as validation metrics continued improving or remained stable throughout training without divergence from training metrics.

3.4. External Cross-Testing Results

External validation through cross-dataset testing revealed complete generalization failure for both models, as documented in Figure 7. When evaluated outside their respective training distributions, both classifiers collapsed into degenerate prediction modes characterized by universal positive classification.
The FracAtlas model (FracAtlas-trained) was evaluated on the complete GRAZPEDWRI-DX pediatric wrist dataset comprising 2034 images. As shown in Figure 7a, the model classified every image as fractured, including all 692 non-fractured cases. This resulted in 100% sensitivity but 0% specificity, with overall accuracy of 65.98% attributable entirely to the dataset’s class distribution rather than discriminative capability. The model’s failure to identify any negative cases indicates a fundamental inability to recognize normal pediatric skeletal anatomy.
The GRAZPEDWRI-DX model (pediatric-trained) exhibited identical collapse when evaluated on the FracAtlas mixed-age dataset containing 4083 images across seven anatomical subgroups. As illustrated in Figure 7b, the model predicted fracture for every image, misclassifying all 3366 non-fractured cases while correctly identifying all 717 true fractures by default. The resulting 100% sensitivity and 0% specificity yielded an overall accuracy of only 17.56%, substantially below the chance performance level for a balanced binary classifier.
Figure 8 and Table 2 provide a detailed breakdown of the GRAZPEDWRI-DX model performance across anatomical subgroups within the FracAtlas dataset. The FracAtlas annotation scheme permits non-mutually exclusive subgroup assignments: the four anatomical regions (hand, leg, hip, shoulder) may overlap with acquisition-based categories (mixed, hardware, multiscan), as images containing orthopedic hardware or composite multi-region scans retain their primary anatomical classification. Consequently, subgroup counts exceed the dataset total of 4083 unique images. The uniform 100% sensitivity and 0% specificity pattern persisted across all seven anatomical categories, confirming that the generalization failure was systematic rather than region-specific.
Figure 9 quantifies the magnitude of performance degradation from internal to external evaluation. The GRAZPEDWRI-DX model’s specificity dropped from 69.94% on internal testing to 0% on cross-testing, representing complete loss of negative class discrimination. Similarly, the FracAtlas model’s specificity declined from 94.85% to 0%. Both models exhibited paradoxical sensitivity increases to 100% during cross-testing, an artifact of the all-positive prediction strategy rather than improved fracture-detection capability.
The completeness and uniformity of this collapse pattern provides evidence that the failure reflects a fundamental breakdown in transferable representation rather than simple threshold miscalibration or a shift in output distribution. Several observations support this interpretation. First, both models maintained balanced prediction distributions on their respective internal test sets, demonstrating functional decision boundaries within their training domains. Second, the collapse to identical degenerate behavior (100% sensitivity, 0% specificity) occurred symmetrically for both models despite their markedly different internal calibration profiles; the GRAZPEDWRI-DX model exhibited sensitivity-dominant classification while the FracAtlas model exhibited specificity-dominant classification. Third, the all-positive prediction pattern persisted uniformly across all seven anatomical subgroups in the FracAtlas dataset (Table 2), including regions with substantially different class distributions. If the failure were attributable to threshold drift or calibration mismatch, we would expect graded degradation and subgroup-dependent variation rather than universal binary collapse. The observed pattern is instead consistent with models learning dataset-specific shortcuts (such as pediatric growth plate morphology or adult trabecular texture patterns) that become categorically misleading when applied to the opposing population.

3.5. Grad-CAM Explainability Analysis

To investigate the mechanistic basis of cross-dataset generalization failure, Grad-CAM (Gradient-weighted Class Activation Mapping) visualizations were generated for representative misclassified cases. Figure 10 presents activation heatmaps, revealing the image regions most influential in driving erroneous fracture predictions.
The FracAtlas model (FracAtlas-trained) exhibited concentrated activation over the distal radial physis when applied to normal pediatric wrist radiographs, as shown in Figure 10a. This growth plate structure, characterized by a transverse radiolucent band, was systematically misinterpreted as a fracture line, explaining the model’s universal positive predictions on pediatric data.
The GRAZPEDWRI-DX model (pediatric-trained) demonstrated diffuse activation patterns when applied to adult radiographs, with attention concentrated on image boundaries and background regions rather than anatomical structures, as illustrated in Figure 10b. This texture bias suggests the model learned acquisition-specific features from the homogeneous pediatric wrist dataset that triggered false positive responses when confronted with the heterogeneous imaging characteristics of multi-site adult data.
The Grad-CAM visualizations presented represent selected cases illustrating the dominant failure patterns observed during qualitative review. Future work should include statistical characterization of Grad-CAM distributions across case categories to substantiate the qualitative patterns described here. Additionally, subgroup analysis of FracAtlas hand images would clarify whether the texture bias observed in GRAZPEDWRI-DX model predictions persists when anatomical similarity to the training domain is greater; such analysis was not conducted in the present study.

4. Discussion

4.1. Comparison with Prior External Validation Studies

The complete specificity collapse observed in our cross-testing experiments represents an extreme manifestation of generalization failures documented in the medical AI literature; while prior studies report moderate degradation (such as 24 percentage point specificity reductions [23] or declines from 94% to 70% [22]), our results demonstrate that cross-population transfer can produce total discrimination failure. This aligns with Maleki et al.’s findings, wherein a pneumonia classifier achieving 98.7% internal accuracy correctly identified only 3.8% of external healthy samples [24], confirming that certain distribution shifts trigger catastrophic failure modes.
The cross-population generalization barrier has precedent in prior research. Studies achieving 90.5% accuracy on pediatric supracondylar fractures [30] typically lack external validation against adult populations. The diagnostic challenge posed by pediatric growth plates has been documented, with CNN-based systems achieving only 85% accuracy on pediatric distal radius fractures due to physis–fracture confusion [18]. Our Grad-CAM analysis confirms this confound affects the FracAtlas-trained model, which misinterprets normal physes as pathology. The pediatric-trained model exhibited a distinct failure mode characterized by texture bias rather than anatomical misinterpretation, attending to background regions and image boundary artifacts rather than skeletal structures when applied to adult radiographs.

4.2. Interpretation of Cross-Testing Failure

The complete failure of both models, irrespective of whether trained on one anatomical region or many, suggests that neither learned the abstract concept of bone fracture. Both models failed to acquire the foundational ability to identify what constitutes bone on a radiograph and subsequently to assess whether such bone exhibits structural discontinuity. This observation is particularly significant given the theoretical expectation that a model trained on multiple anatomical regions and diverse patient ages should generalize better to an unseen single region than a model trained on only one region would generalize to multiple unseen regions. The FracAtlas model—having been exposed to fractures across hand, leg, hip, shoulder, and other skeletal sites, and containing pediatric patients (ages 8 months to 7 years) with visible growth plates—should theoretically have developed more region- and age-invariant representations of fracture than the narrowly trained GRAZPEDWRI-DX model. The fact that physis–fracture confusion nonetheless occurred suggests the model failed to learn from its pediatric training examples in a way that would transfer to a purely pediatric test population. The fact that both models collapsed to identical all-positive prediction behavior, regardless of training breadth, indicates that neither extracted the universal radiographic signature of cortical discontinuity that defines fracture across all bony anatomy.
This failure cannot be attributed solely to anatomical region mismatch or patient age differences. A robust fracture-detection system should, at minimum, restrict its attention to skeletal structures when making predictions. The Grad-CAM visualizations confirm that neither model demonstrated this basic competency when confronted with unfamiliar populations: the mixed-age-trained model fixated on developmental structures irrelevant to fracture, while the pediatric-trained model attended to background texture rather than bone. These patterns indicate reliance on non-generalizable shortcuts rather than anatomically grounded diagnostic reasoning. Such shortcut learning is itself a critical finding warranting investigation, not merely a predictable consequence of applying a model outside its nominal specifications. If a fracture-detection algorithm functions only when test images closely resemble training images in population characteristics, this constitutes evidence that the model has encoded features irrelevant to the diagnostic task itself. Bone remains bone, and fracture remains fracture, across demographic boundaries; the inability of either model to recognize this fundamental invariance reveals a deeper limitation in how current deep learning systems acquire medical diagnostic concepts.

4.3. Implications for Object Detection Architectures

The classification-based approach employed here may not represent the optimal architecture for clinically deployable systems. Recent object-detection frameworks have demonstrated superior fracture localization performance: YOLOv8-based systems achieved robust accuracy on the GRAZPEDWRI-DX dataset [31], hybrid MobileNetV3–YOLOv8 architectures showed high accuracy for tibial plateau fractures [32], and YOLOv12 outperformed radiologists for lateral malleolar avulsion fractures [33].
Object-detection approaches may offer advantages for cross-population generalization by forcing spatial localization rather than relying on global features encoding population-specific characteristics. Multi-task learning frameworks performing simultaneous classification and localization have shown promise for complex anatomical regions [34], and whole-body trauma CT algorithms have successfully localized multiple fracture types [35]. Whether localization-based approaches exhibit greater resilience to cross-population domain shifts remains an important question for future investigation.

4.4. Clinical Integration Considerations

Our findings have direct implications for clinical deployment of fracture detection AI. Current evidence suggests AI systems should function as complementary tools requiring clinical oversight. A study comparing BoneView AI against orthopedic surgeons found similar accuracy, yet concluded AI should remain supplementary due to false positive risks [36,37,38]. Our results strengthen this recommendation by demonstrating that false positive rates can reach 100% on out-of-distribution populations.
Strategic frameworks for clinical AI integration emphasize model transparency and cross-institutional generalizability as deployment prerequisites [13]. Multicenter training and GAN augmentation have been identified as strategies for improving robustness [23]. However, systematic reviews continue to highlight that most research lacks independent external validation, compromising reliability estimates for diverse clinical settings [39].

4.5. Methodological Recommendations

Our findings support the consensus that external validation should be mandatory for medical AI prior to clinical deployment. Only 6% of radiology AI studies include external validation [20] and only 5% of small-dataset studies perform external testing [21], indicating systematic methodological deficiency. Data leakage and improper feature selection represent additional methodological pitfalls that can artificially inflate internal performance estimates [40]. The “shortcut learning” phenomenon, wherein models exploit acquisition biases rather than clinically meaningful features [25,41,42], can only be detected through rigorous external validation [43].
Meta-analyses of fracture detection studies found models consistently achieve over 90% sensitivity while suffering from substantial heterogeneity and high bias risk [7,44,45,46]. Even nominally successful models exhibit inconsistent performance across regions and hardware, supporting the need for multi-institutional, cross-population validation. Future studies should explicitly test generalization across demographic boundaries rather than relying on within-distribution test sets that may provide false assurance of clinical readiness.

4.6. Interpretation of Internal Classification Performance

The confusion matrices in Figure 4 reveal fundamentally different learning strategies adopted by the two models, with significant implications for understanding how deep learning systems encode domain-specific knowledge and how such encoding may limit cross-population generalizability [47,48].
The GRAZPEDWRI-DX model exhibited balanced sensitivity and specificity across all partitions (training: 87.7%/72.7%; validation: 86.5%/69.4%; test: 88.5%/69.9%), suggesting generalizable features learned within the pediatric domain. The moderate false positive rate (30%) indicates slight positive prediction bias, possibly reflecting the model’s prior learning about wrist fracture prevalence in the pediatric population.
In contrast, the FracAtlas model demonstrated pronounced sensitivity–specificity asymmetry; while achieving 94.9% specificity on the test set, sensitivity remained at 31.5%, indicating most fractures were misclassified as normal. The sensitivity decline from training (54.3%) to test (31.5%) suggests fracture-positive features did not generalize well, potentially reflecting heterogeneity across anatomical regions.
The low sensitivity of the FracAtlas model on internal validation was not regarded as disqualifying for the cross-testing experiment because the primary research question concerned cross-population generalization rather than optimal within-domain performance. The model successfully learned to distinguish classes within its training distribution, as evidenced by above-chance accuracy and high specificity; the sensitivity–specificity imbalance reflects dataset class distribution rather than complete learning failure. For the purpose of establishing baseline cross-population transferability, the critical requirement was that each model achieve non-trivial internal discrimination, which both models satisfied despite differing metric profiles. Furthermore, the cross-testing failure manifested as specificity collapse rather than sensitivity collapse, indicating that internal sensitivity levels did not determine the nature of external failure. A robust fracture-detection system should be capable of recognizing what constitutes normal bone regardless of patient population; the inability of both models to do so, irrespective of their internal metric profiles, suggests neither had learned the foundational skill of distinguishing bone from non-bone as a prerequisite to fracture detection.
These patterns have direct clinical implications. The GRAZPEDWRI-DX classifier would function effectively as a screening tool minimizing missed fractures, while the FracAtlas classifier would be poorly suited for screening where missed diagnoses carry significant consequences. Both models achieved >80% accuracy, yet their divergent sensitivity–specificity profiles highlight that comparable accuracy values can mask fundamentally different classification behaviors.
The contrast between models also reflects dataset differences. GRAZPEDWRI-DX contains balanced class distributions focused on a single region, while FracAtlas exhibits substantial class imbalance favoring non-fractured cases, which is known to bias learning toward the majority class. The stability of metrics across partitions indicates appropriate regularization without substantial overfitting, providing a reliable foundation for interpreting cross-dataset experiments.

4.7. Interpretation of Performance Metric Patterns

The performance trajectories in Figure 5 reveal fundamental differences in how the two models learned to distinguish fractured from non-fractured radiographs.
The GRAZPEDWRI-DX model achieved favorable sensitivity–specificity balance. High sensitivity (88.52% on test) indicates successful learning of discriminative features, while moderate specificity (69.94%) suggests tendency toward false positives, which are clinically preferable since missed fractures carry greater consequence than over-referrals. The narrow training–testing F1-score gap (0.36 percentage points) demonstrates good within-domain generalization.
The FracAtlas model presents a concerning profile despite acceptable accuracy. The disparity between accuracy (83.69%) and balanced accuracy (63.17%) highlights the danger of relying on single metrics for imbalanced datasets. High specificity (94.85%) coupled with low sensitivity (31.48%) indicates a conservative strategy defaulting to negative predictions, rendering the model unsuitable for screening where false negatives represent primary risk. The steep F1-score decline from training (63.31%) to testing (40.48%), i.e., a 22.83 percentage point reduction, suggests fracture-positive features were not robust representations.
These contrasting patterns illustrate how dataset characteristics influence learned representations. GRAZPEDWRI-DX, trained on a single region with consistent protocols, developed stable features generalizing well within-distribution. FracAtlas, confronting greater anatomical diversity and class imbalance, converged on a high-specificity strategy sacrificing sensitivity. These findings underscore the importance of evaluating systems using multiple complementary metrics [49,50] and inform expectations for cross-dataset generalization: models with balanced internal performance may maintain reasonable performance under distribution shifts, while those with extreme bias may collapse unpredictably.

4.8. Interpretation of Learning Dynamics

The learning curves in Figure 6 reveal distinct optimization trajectories illuminating the relationship between dataset characteristics and model learning behavior.
The FracAtlas model exhibited characteristic transfer learning convergence with rapid initial gains (55% to 88% training accuracy in epoch one), reflecting the immediate utility of ImageNet-pretrained features for the mixed-age multi-region radiographs. The subsequent plateau indicates task-specific adaptation occurred early, with later epochs fine-tuning decision boundaries. The moderate training–validation gap of 5.7 percentage points suggests generalizable features with some overfitting.
The GRAZPEDWRI-DX model began from lower initial accuracy (40%), reflecting greater distributional distance between ImageNet images and pediatric wrist radiographs. The gradual trajectory with continuous improvement through all epochs suggests more extensive feature adaptation was required. The remarkably small training–validation gap of 1.1 percentage points indicates strong generalization, attributable to anatomical homogeneity supporting robust feature learning.
The loss curves provide complementary evidence: FracAtlas achieved lower absolute loss (0.35 versus 0.42), though lower loss does not necessarily imply superior clinical performance. Parallel descent of training and validation curves confirms neither classifier exhibited pathological behaviors such as oscillation or divergence.
These convergence characteristics inform generalization expectations: tight training–validation coupling, as with GRAZPEDWRI-DX, might enable more reliable transfer to external data. The absence of overfitting indicators validates the training configuration (learning rate 0.0001, 4 epochs, validation monitoring), successfully balancing task-relevant feature extraction with preserved generalization capacity [49,50].

4.9. Interpretation of Cross-Dataset Generalization Failure

The cross-testing results in Figure 7, Figure 8, Figure 9, Figure 10 and Figure 11 demonstrate catastrophic failure of both models to generalize beyond their training distributions, with profound implications for clinical deployment across patient populations.
The uniform collapse into all-positive prediction modes suggests neither network learned robust, transferable fracture representations. Both classifiers encoded population-specific features that triggered systematic false positive activation on out-of-distribution data, aligning with the concept of shortcut learning, wherein deep networks exploit spurious correlations rather than causally relevant features.
The FracAtlas model’s failure stems from pediatric growth plates (physes), i.e., cartilaginous structures resembling fracture lines that are absent in skeletally mature patients. Grad-CAM analysis revealed consistent activation on these normal developmental structures, misinterpreting physiological radiolucency as pathology (Figure 10a). The GRAZPEDWRI-DX model’s failure reflects complementary texture bias: trained exclusively on pediatric wrist radiographs with consistent protocols, it developed sensitivity to acquisition-specific features and interpreted unfamiliar textural characteristics in heterogeneous FracAtlas images as fracture indicators (Figure 10b).
Figure 11 schematically summarizes these failure modes.
The anatomical subgroup analysis (Figure 8, Table 2) shows the GRAZPEDWRI-DX model maintained 0% specificity across all seven categories, including hand regions structurally similar to wrist. Even partial anatomical overlap was insufficient for generalization, indicating highly specific learned representations.
The performance degradation visualization (Figure 9) illustrates how the paradoxical sensitivity increase from internal testing to 100% during cross-testing reflects complete loss of discriminative capability rather than improved detection. This reinforces evaluating sensitivity and specificity jointly, as either metric alone provides incomplete information.
The symmetric failure of both scenarios, despite asymmetric internal profiles, suggests the pediatric–adult generalization barrier is bidirectional and potentially irreducible through standard transfer learning. Within-domain metrics, regardless of magnitude or balance, do not predict cross-domain capability. Models trained on adult populations cannot be assumed to transfer to pediatric applications without population-specific validation or explicit domain adaptation accounting for morphological and acquisition-related differences. The complete specificity failure represents a worst-case outcome wherein deployed systems would generate false positive alerts for every examination, overwhelming workflows while providing no diagnostic value.

4.10. Limitations and Future Research

The FracAtlas dataset contains pediatric patients aged 8 months to 7 years with visible growth plates, yet the FracAtlas-trained model nonetheless exhibited physis–fracture confusion when tested on GRAZPEDWRI-DX. This paradox suggests that mere presence of pediatric cases in training data is insufficient to prevent growth plate misinterpretation; the model may have failed to learn generalizable physis representations from its limited pediatric subset, or the pediatric cases within FracAtlas may have been too few or too heterogeneous across anatomical regions to establish robust growth plate features. It remains an open question whether more balanced mixed-age training, with explicit representation of physes across multiple anatomical sites labeled as non-fracture, would produce models capable of distinguishing developmental radiolucencies from pathological cortical discontinuities.
The present study intentionally avoided such mixed training to isolate the effect of population boundaries under conditions of complete distributional separation; however, this design choice limits the direct applicability of findings to scenarios where some degree of population overlap exists in the training data. It remains an open question whether mixed training would produce models that have genuinely learned to identify bone and detect fracture as abstract concepts, or whether such models would simply memorize a larger catalog of population-specific patterns. The ideal fracture-detection system would learn that bone is characterized by certain radiodensity and structural properties, and that fracture is characterized by cortical discontinuity, independent of patient demographics. The extent to which current deep learning architectures can achieve such abstraction, rather than superficial pattern matching, warrants further investigation.
The Grad-CAM explainability analysis in the present study was qualitative rather than quantitative. Visualizations were generated for a representative subset of cross-testing cases to illustrate dominant failure patterns, but systematic statistical analysis of activation distributions was not performed. Future research should include quantitative characterization of Grad-CAM outputs, specifically measuring the proportion of class activation falling within versus outside bony structures across case categories and stratified by prediction outcome. Such analysis would require automated bone segmentation to define anatomical regions of interest, followed by computation of summary statistics describing the spatial distribution of activation relative to skeletal anatomy. This quantitative approach would substantiate the qualitative observations reported here and permit formal statistical comparison of attention patterns between models and across population boundaries. Additionally, subgroup analysis comparing model performance and attention patterns on anatomically similar cases, such as FracAtlas hand images compared to GRAZPEDWRI-DX wrist images, would clarify the extent to which anatomical similarity moderates cross-population generalization failure.

5. Conclusions

This study demonstrated that deep learning models trained for radiographic fracture detection exhibit catastrophic generalization failure when evaluated across distinct population and anatomical boundaries. Both models collapsed to all-positive prediction behavior with complete specificity loss, regardless of acceptable internal validation performance. Grad-CAM analysis revealed distinct failure mechanisms: the mixed-age multi-region model misinterpreted normal pediatric growth plates as fractures despite its training data containing pediatric patients, while the pediatric wrist model exhibited texture bias attending to background artifacts rather than skeletal structures. These findings indicate that neither model learned the abstract concept of fracture as cortical discontinuity in bone tissue, instead relying on dataset-specific shortcuts. The results support mandatory external validation across demographic and anatomical boundaries prior to clinical deployment of radiographic AI systems and establish baseline failure modes against which future domain adaptation strategies can be evaluated.

Author Contributions

Conceptualization, R.P. and M.T.; methodology, R.P. and M.T.; software, R.P. and M.T.; validation, R.P. and M.T.; formal analysis, R.P. and M.T.; investigation, R.P. and M.T.; resources, R.P. and M.T.; data curation, R.P. and M.T.; writing—original draft preparation, R.P. and M.T.; writing—review and editing, R.P. and M.T.; visualization, R.P. and M.T.; supervision, M.T.; project administration, M.T.; funding acquisition, M.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The publicly available datasets analyzed in this study are cited within the article. All experimental results are contained within the article, and complete algorithmic details enabling reproduction of results are provided in the Section 2 and Appendix A.

Acknowledgments

During the preparation of this manuscript, the authors used Grammarly (Version 1.2.229) for grammar, spelling, and clarity checking purposes only. No generative AI tools were used for generating text, graphics, data, or for study design, data collection, analysis, or interpretation of data. The authors have reviewed and edited all content and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AIartificial intelligence
AUCarea under the curve
CNNconvolutional neural network
CTcomputed tomography
DenseNetdensely connected convolutional network
FCfully connected
GANgenerative adversarial network
Grad-CAMGradient-weighted Class Activation Mapping
GRAZPEDWRI-DXGraz pediatric wrist radiograph dataset
ResNetresidual network
RGBred, green, blue
RSNAradiological Society of North America
SGDMstochastic gradient descent with momentum
VGGVisual Geometry Group
YOLOyou only look once

Appendix A. Algorithmic Specifications

Appendix A.1. Computational Workflow Overview

The computational methodology employed in this study was implemented through a series of interconnected algorithms, each serving a distinct function within the overall processing pipeline (see Figure 3). Complete pseudocode representations of these algorithms are provided in the Appendix A to enable full reproducibility of the experimental workflow. This subsection describes the purpose, relevance, and interdependencies of each algorithmic component.

Appendix A.1.1. Data Organization and Preprocessing

The initial stage of the pipeline involves organizing raw radiographic data into a structure suitable for supervised learning. Algorithm A3 implements an automated sorting procedure that parses YOLO format annotation files to assign binary class labels to each image. This algorithm iterates through all dataset partitions, examines the annotation content for fracture class identifiers, and relocates images into appropriate subdirectories based on pathology status. The sorting algorithm is essential because the original datasets employ bounding box annotations rather than folder-based class organization, and the deep learning framework requires images to be organized by class membership for automatic label inference.
Following data organization, Algorithm A1 defines the standardized preprocessing function applied to all images prior to network ingestion. This function addresses two critical requirements of the ResNet-50 architecture: dimensional consistency and channel format compatibility. Radiographic images exhibit variable dimensions and are typically stored in grayscale format, whereas the pretrained network expects fixed size RGB inputs. The preprocessing function resizes all images to 224 by 224 pixels and converts single-channel grayscale images to three-channel format through channel replication. This preprocessing function is invoked automatically by the datastore object each time an image is read, ensuring consistent transformation across all pipeline stages.

Appendix A.1.2. Model Training Pipeline

Algorithm A2 constitutes the core training procedure and orchestrates the complete model development workflow. This algorithm initializes the computational environment, prepares data partitions, modifies the pretrained architecture, configures optimization parameters, executes the training loop, and exports all resulting artifacts. The training algorithm implements transfer learning by loading ImageNet pretrained weights and replacing only the terminal classification layers, thereby preserving learned visual features while adapting the network to the binary fracture classification task. The algorithm explicitly defines class ordering during layer replacement to prevent label assignment ambiguities that could arise from inconsistent categorical indexing across datasets [51].
The training algorithm depends on outputs from both the data-sorting algorithm (Algorithm A3) and the preprocessing function (Algorithm A1). Sorted data provides the organized directory structure from which the image datastore infers class labels, while the preprocessing function ensures dimensional and format compatibility with the network architecture. This dependency chain establishes the sequential execution order required for successful model development.

Appendix A.2. Evaluation and Explainability Workflow

Algorithm A4 implements the cross dataset evaluation protocol that forms the central experimental contribution of this study. This algorithm loads previously trained models and evaluates them on external datasets from different patient populations. The algorithm computes standard classification metrics including sensitivity, specificity, and overall accuracy for both internal test sets and cross-domain evaluations. Critically, this algorithm also incorporates failure mode analysis by detecting classification collapse patterns such as universal positive or universal negative predictions. The cross-testing algorithm provides the quantitative evidence necessary to assess model generalizability across demographic boundaries.
Algorithm A5 implements the Gradient weighted Class Activation Mapping procedure used for model explainability. This algorithm computes the gradient of the predicted class score with respect to feature maps in the final convolutional layer, producing a spatial heatmap indicating which image regions most strongly influenced the classification decision. The explainability algorithm is particularly valuable when applied to misclassified samples from the cross-testing evaluation, as it reveals whether models attend to clinically relevant anatomical features or spurious image characteristics. Integration of Grad-CAM analysis with the cross-testing protocol enables qualitative interpretation of quantitative failure patterns.

Appendix A.3. Pseudocode Definitions

Algorithm A1 Radiograph preprocessing function.
Require: 
Image file path
Ensure: 
Preprocessed RGB image tensor of dimensions 224 × 224 × 3
  1:
function customRead(filename)
  2:
     I imread(filename)
  3:
    if number of channels in I = 1 then
  4:
       ▹ Convert grayscale to RGB by channel replication
  5:
         I concatenate(I, I, I) along channel dimension
  6:
    else
  7:
        ▹ Ensure exactly 3 channels (discard alpha if present)
  8:
         I I [ : , : , 1 : 3 ]
  9:
    end if
10:
            ▹ Resize to ResNet-50 input dimensions
11:
     I imresize(I, [224, 224])
12:
    return I
13:
end function
Algorithm A2 ResNet-50 transfer learning training pipeline.
Require: 
Image directory path, metadata file path, split ratios
Ensure: 
Trained fracture classification model
  1:
Input: Load radiograph image datastore from directory
  2:
Initialize: Configure parallel computing pool
  3:
Data Preparation Phase:
  4:
     Create image datastore with folder-based labels
  5:
     Standardize class categories to alphabetical order:
  6:
        ▹ Class 1: Fractured
  7:
        ▹ Class 2: Non_fractured
  8:
     Set random seed for reproducibility (seed ← 42)
  9:
     Partition dataset using stratified split:
10:
       ▹ Training set ← 75%
11:
       ▹ Validation set ← 10%
12:
       ▹ Test set ← 15%
13:
    Assign preprocessing function to all datastores
14:
Architecture Modification Phase:
15:
    Load pretrained ResNet-50 network
16:
    Extract layer graph from network
17:
    Replace terminal fully connected layer:
18:
       ▹ Remove fc1000 (1000 classes)
19:
       ▹ Insert new_fc (2 classes)
20:
    Replace classification output layer:
21:
       ▹ Explicitly define class order to prevent label swapping
22:
Training Configuration Phase:
23:
    Configure SGDM optimizer with parameters:
24:
       ▹ Initial learning rate ← 0.0001
25:
       ▹ Maximum epochs ← 4
26:
       ▹ Mini-batch size ← 32
27:
       ▹ Shuffle ← every epoch
28:
       ▹ Validation frequency ← 20 iterations
29:
       ▹ Execution environment ← parallel
30:
Training Execution Phase:
31:
    [trainedNet, info] ← trainNetwork(imdsTrain, lgraph, options)
32:
Artifact Export Phase:
33:
    Save training progress visualization
34:
    Serialize trained model to disk
35:
    Generate and export confusion matrices for all partitions
36:
Output: Return trained network and training history
Algorithm A3 YOLO annotation-based dataset sorting.
Require: 
Image directory, label directory, target class identifier
Ensure: 
Organized folder structure with class-separated images
  1:
Input: Define folder partitions ← {train, valid, test}
  2:
Input: Define fracture class identifier (targetClass ← 3)
  3:
for each folder f in partitions do
  4:
  imgDir ← path to images subdirectory
  5:
  lblDir ← path to labels subdirectory
  6:
  if imgDir does not exist then
  7:
        Log error and continue to next folder
  8:
  end if
  9:
  Create subdirectory: imgDir/Fracture
10:
  Create subdirectory: imgDir/Normal
11:
  files ← enumerate all .jpg and .png images in imgDir
12:
  for each image file i m g in files do
13:
       Extract filename without extension
14:
       lblPath ← corresponding .txt annotation file
15:
       isFracture ← false
16:
       if lblPath exists then
17:
           content ← read annotation file
18:
           if content matches regex pattern for targetClass then
19:
               isFracture ← true
20:
           end if
21:
       end if
22:
       if isFracture = true then
23:
           Move i m g to imgDir/Fracture/
24:
       else
25:
           Move i m g to imgDir/Normal/
26:
       end if
27:
  end for
28:
end for
29:
Output: Reorganized dataset with binary class folders
Algorithm A4 Cross-dataset generalization evaluation protocol.
Require: 
Trained model A (adult), Trained model B (pediatric), External datasets
Ensure: 
Cross-testing performance metrics and failure mode analysis
  1:
Phase 1: Load Artifacts
  2:
   Load Model A from FracAtlasModel.mat
  3:
   Load Model B from GRAZModel.mat
  4:
   Initialize external dataset datastores
  5:
   Apply preprocessing function to external data
  6:
Phase 2: Cross-Test Model A on Pediatric Data
  7:
   predictedLabels ← classify(Model A, GRAZ_datastore)
  8:
   Compute confusion matrix
  9:
   Calculate metrics:
10:
        ▹ Sensitivity ← TP/(TP + FN)
11:
        ▹ Specificity ← TN/(TN + FP)
12:
        ▹ Accuracy ← (TP + TN)/Total
13:
   Generate Grad-CAM heatmaps for misclassified samples
14:
Phase 3: Cross-Test Model B on Adult Data
15:
   predictedLabels ← classify(Model B, FracAtlas_datastore)
16:
   Compute confusion matrix
17:
   Calculate metrics (sensitivity, specificity, accuracy)
18:
   Generate Grad-CAM heatmaps for misclassified samples
19:
Phase 4: Failure Mode Analysis
20:
   Identify prediction collapse patterns:
21:
        ▹ Detect all-positive classification bias
22:
        ▹ Detect all-negative classification bias
23:
   Analyze Grad-CAM activation regions:
24:
        ▹ Map activations to anatomical structures
25:
        ▹ Identify spurious feature attention (growth plates, noise)
26:
Output: Cross-testing metrics, confusion matrices, explainability maps
Algorithm A5 Grad-CAM explainability visualization.
Require: 
Trained network, input image, target layer name
Ensure: 
Class activation heatmap overlaid on original image
  1:
Input: Select sample image from test datastore
  2:
Classification Phase:
  3:
   [label, scores] ← classify(trainedNet, image)
  4:
   confidence ← max(scores) × 100
  5:
Gradient Computation Phase:
  6:
   Identify final convolutional layer in network
  7:
   Compute gradient of predicted class score w.r.t. feature maps
  8:
   Apply global average pooling to gradients
  9:
   Weight feature maps by pooled gradients
10:
   Sum weighted feature maps along channel dimension
11:
   Apply ReLU activation to obtain positive contributions
12:
Visualization Phase:
13:
   map ← gradCAM(trainedNet, image, label)
14:
   Normalize heatmap to range [0, 1]
15:
   Resize heatmap to match original image dimensions
16:
   Display original image
17:
   Overlay heatmap with transparency α 0.5
18:
   Apply jet colormap for activation intensity
19:
   Annotate with predicted label and confidence score
20:
Output: Composite visualization showing model attention regions

References

  1. Poyiadji, N.; Beauchamp, N.; Myers, D.T.; Krupp, S.; Griffith, B. Diagnostic Imaging Utilization in the Emergency Department: Recent Trends in Volume and Radiology Work Relative Value Units. J. Am. Coll. Radiol. 2023, 20, 1207–1214. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Zamani, H.; Fruscello, T.; Burleson, J.; Bhargavan-Chatfield, M.; Davenport, M.S. US Radiology Imaging and Workforce Volumes 2017–2024: An Analysis of 46.4 Million Imaging Examinations from 167 Radiology Facilities. J. Am. Coll. Radiol. 2026, 23, 1041–1048. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Huhtanen, J.; Nyman, M.; Sequeiros, R.; Koskinen, S.; Pudas, T.; Kajander, S.; Niemi, P.; Löyttyniemi, E.; Aronen, H.; Hirvonen, J. Discrepancies between Radiology Specialists and Residents in Fracture Detection from Musculoskeletal Radiographs. Diagnostics 2023, 13, 3207. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Husain, G.; Mayer, J.; Bekbolatova, M.; Vathappallil, P.; Matalia, M.; Toma, M. Machine learning for medical image classification. Acad. Med. 2024, 1, 1–18. [Google Scholar] [CrossRef] [Scilit]
  5. Cross, J.L.; Choma, M.A.; Onofrey, J.A. Bias in medical AI: Implications for clinical decision-making. PLoS Digit. Health 2024, 3, e0000651. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Yue, S.; Ginting, C.N.; Liena. Artificial Intelligence-Assisted Fracture Detection on Plain Radiographs: Diagnostic Accuracy, Bias and Clinical Workflow Outcomes. Int. J. Drug Deliv. Technol. 2026, 16, 530–539. [Google Scholar] [CrossRef] [Scilit]
  7. Lin, Z.; Ge, H.; Guo, Q.; Ren, J.; Gu, W.; Lu, J.; Zhong, Y.; Qiang, J.; Gong, J.; Li, H. MRI-based radiomics model to preoperatively predict mesenchymal transition subtype in high-grade serous ovarian cancer. Clin. Radiol. 2024, 79, e715–e724. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Elkohail, A.; Soffar, A.; Paul, A.; Radu, L.; Wasim Shaffe Ahamed, M.; Swealem, A.; Mohideen Ahamed Sha, A.A.; Mandoth Veetil, H.H.; Millat, M.S.; Shah, R. Artificial Intelligence in Bone Fracture Detection: A Review of Evidence, Limitations, and Clinical Integration. Cureus 2025, 17, e97674. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. Wang, L.; Zhang, C.; Wang, Y.; Yue, X.; Liang, Y.; Sun, N. Development and Validation of a Deep Learning System for the Detection of Nondisplaced Femoral Neck Fractures. Bioengineering 2025, 12, 466. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Zheng, Z.; Ryu, B.Y.; Kim, S.E.; Song, D.S.; Kim, S.H.; Park, J.W.; Ro, D.H. Deep learning for automated hip fracture detection and classification: Achieving superior accuracy. Bone Jt. J. 2025, 107-B, 213–220. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Aldhyani, T.; Ahmed, Z.A.T.; Alsharbi, B.M.; Ahmad, S.; Al-Adhaileh, M.H.; Kamal, A.H.; Almaiah, M.; Nazeer, J. Diagnosis and detection of bone fracture in radiographic images using deep learning approaches. Front. Med. 2025, 11, 1506686. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Qiu, H.; Liu, L.; Hong, J.; He, Y.; He, L.; Luo, Y. FracDet-v11: A multi-scale attention and wavelet-enhanced network for real-time pediatric wrist fracture detection. Sci. Rep. 2026, 16, 5888. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Elbahi, M.K.; Muhammed, A.; Fadlelmola Abdalla Mohamednour, M.; Mukhtar, F.S. Artificial Intelligence in Fracture Diagnosis on Radiographs: Evidence, Pitfalls, and Pathways for Clinical Integration (2020–2025). Cureus 2025, 17, e93124. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Augusto, A.C.d.L.; Goes, P.C.K.; Flores, D.V.; Costa, M.A.F.; Takahashi, M.S.; Rodrigues, A.C.O.; Padula, L.C.; Gasparetto, T.D.; Nogueira-Barbosa, M.H.; Aihara, A.Y. Imaging Review of Normal and Abnormal Skeletal Maturation. RadioGraphics 2022, 42, 861–879. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Kim, H.J.; You, S.K. Normal Development and Variants in Pediatric Bone. J. Korean Soc. Radiol. 2024, 85, 488. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Nguyen, J.C.; Markhardt, B.K.; Merrow, A.C.; Dwek, J.R. Imaging of Pediatric Growth Plate Disturbances. RadioGraphics 2017, 37, 1791–1812. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  17. Cavallo, F.; Mohn, A.; Chiarelli, F.; Giannini, C. Evaluation of Bone Age in Children: A Mini-Review. Front. Pediatr. 2021, 9, 580314. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  18. Aryasomayajula, S.; Hing, C.; Siebachmeyer, M.; Naeini, F.; Ejindu, V.; Leitch, P.; Gelfer, Y.; Zweiri, Y. Developing an artificial intelligence diagnostic tool for paediatric distal radius fractures, a proof of concept study. Ann. R. Coll. Surg. Engl. 2023, 105, 721–728. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  19. Yu, A.C.; Mohajer, B.; Eng, J. External Validation of Deep Learning Algorithms for Radiologic Diagnosis: A Systematic Review. Radiol. Artif. Intell. 2022, 4, e210064. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  20. Kelly, B.S.; Judge, C.; Bollard, S.M.; Clifford, S.M.; Healy, G.M.; Aziz, A.; Mathur, P.; Islam, S.; Yeom, K.W.; Lawlor, A.; et al. Radiology artificial intelligence: A systematic review and evaluation of methods (RAISE). Eur. Radiol. 2022, 32, 7998–8007. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  21. Piffer, S.; Ubaldi, L.; Tangaro, S.; Retico, A.; Talamonti, C. Tackling the small data problem in medical image classification with artificial intelligence: A systematic review. Prog. Biomed. Eng. 2024, 6, 032001. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  22. Harper, J.P.; Lee, G.R.; Pan, I.; Nguyen, X.V.; Quails, N.; Prevedello, L.M. External Validation of a Winning Artificial Intelligence Algorithm from the RSNA 2022 Cervical Spine Fracture Detection Challenge. Am. J. Neuroradiol. 2025, 46, 1852–1858. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  23. Suleman, M.U.; Mursaleen, M.; Khalil, U.; Saboor, A.; Bilal, M.; Khan, S.A.; Subhani, M.A.; Hussnain, M.A.; Tabassum, S.N.; Tahir, M. Assessing the generalizability of artificial intelligence in radiology: A systematic review of performance across different clinical settings. Ann. Med. Surg. 2025, 87, 8803–8811. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  24. Maleki, F.; Ovens, K.; Gupta, R.; Reinhold, C.; Spatz, A.; Forghani, R. Generalizability of Machine Learning Models: Quantitative Evaluation of Three Methodological Pitfalls. Radiol. Artif. Intell. 2023, 5, e220028. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  25. Ong Ly, C.; Unnikrishnan, B.; Tadic, T.; Patel, T.; Duhamel, J.; Kandel, S.; Moayedi, Y.; Brudno, M.; Hope, A.; Ross, H.; et al. Shortcut learning in medical AI hinders generalization: Method for estimating AI model generalization without external data. npj Digit. Med. 2024, 7, 124. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  26. Ruitenbeek, H.C.; Sahil, S.; Kumar, A.; Kushawaha, R.K.; Tanamala, S.; Sathyamurthy, S.; Agrawal, R.; Chattoraj, S.; Paramasamy, J.; Bos, D.; et al. Cross-validation of an artificial intelligence tool for fracture classification and localization on conventional radiography in Dutch population. Insights Imaging 2025, 16, 150. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  27. Kong, S.H. Incorporating Artificial Intelligence into Fracture Risk Assessment: Using Clinical Imaging to Predict the Unpredictable. Endocrinol. Metab. 2025, 40, 499–507. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. Abedeen, I.; Rahman, M.A.; Prottyasha, F.Z.; Ahmed, T.; Chowdhury, T.M.; Shatabda, S. FracAtlas: A Dataset for Fracture Classification, Localization and Segmentation of Musculoskeletal Radiographs. Sci. Data 2023, 10, 521. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  29. Nagy, E.; Janisch, M.; Hržić, F.; Sorantin, E.; Tschauner, S. A pediatric wrist trauma X-ray dataset (GRAZPEDWRI-DX) for machine learning. Sci. Data 2022, 9, 222. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  30. Ye, Q.; Wang, Z.; Lou, Y.; Yang, Y.; Hou, J.; Liu, Z.; Liu, W.; Li, J. Deep learning approach based on a patch residual for pediatric supracondylar subtle fracture detection. Biomol. Biomed. 2025, 25, 1631–1646. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  31. Ahmed, A.; Imran, A.S.; Manaf, A.; Kastrati, Z.; Daudpota, S.M. Enhancing wrist abnormality detection with YOLO: Analysis of state-of-the-art single-stage detection models. Biomed. Signal Process. Control 2024, 93, 106144. [Google Scholar] [CrossRef] [Scilit]
  32. Huo, T.; Liu, P.; Xue, M.; Zhang, J.; Xie, Y.; Wang, H.; Zhou, H.; Yan, Z.; Liu, S.; Lu, L.; et al. Deep learning diagnosis of adult tibial plateau fractures: Multicenter study with external validation. Radiol. Adv. 2025, 2, umaf020. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  33. Liu, J.; Sun, P.; Yuan, Y.; Chen, Z.; Tian, K.; Gao, Q.; Li, X.; Xia, L.; Zhang, J.; Xu, N. YOLOv12 Algorithm-Aided Detection and Classification of Lateral Malleolar Avulsion Fracture and Subfibular Ossicle Based on CT Images: Multicenter Study. JMIR Med. Inform. 2025, 13, e79064. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  34. Yu, Q.; Liu, Y.; Li, H.; Liu, X.; Bao, X.; Jin, W.; Xia, W.; Tang, Z.; Tang, P.; Chen, H.; et al. Multi-task learning for calcaneus fracture diagnosis of X-ray images. Biomed. Signal Process. Control 2025, 99, 106843. [Google Scholar] [CrossRef] [Scilit]
  35. Inoue, T.; Maki, S.; Furuya, T.; Mikami, Y.; Mizutani, M.; Takada, I.; Okimatsu, S.; Yunde, A.; Miura, M.; Shiratani, Y.; et al. Automated fracture screening using an object detection algorithm on whole-body trauma computed tomography. Sci. Rep. 2022, 12, 16549. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  36. Ramadanov, N.; Lettner, J.; Hable, R.; Hakam, H.T.; Prill, R.; Dimitrov, D.; Becker, R.; Schreyer, A.G.; Salzmann, M. Artificial Intelligence-Guided Assessment of Femoral Neck Fractures in Radiographs: A Systematic Review and Multilevel Meta-Analysis. Orthop. Surg. 2024, 17, 1277–1286. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  37. Albano, D.; Vignati, G.; D’Andrea, S.; Gitto, S.; Messina, C.; Accetta, R.; Sconfienza, L.M. Fracture Detection on Bone Radiographs: The Impact of an AI Tool on Orthopaedic Night Shifts. J. Imaging 2026, 12, 252. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  38. Duron, L.; Ducarouge, A.; Gillibert, A.; Lainé, J.; Allouche, C.; Cherel, N.; Zhang, Z.; Nitche, N.; Lacave, E.; Pourchot, A.; et al. Assessment of an AI Aid in Detection of Adult Appendicular Skeletal Fractures by Emergency Physicians and Radiologists: A Multicenter Cross-sectional Diagnostic Study. Radiology 2021, 300, 120–129. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  39. Liawrungrueang, W.; Cholamjiak, W.; Promsri, A.; Jitpakdee, K.; Sunpaweravong, S.; Kotheeranurak, V.; Sarasombath, P. Artificial Intelligence for Cervical Spine Fracture Detection: A Systematic Review of Diagnostic Performance and Clinical Potential. Glob. Spine J. 2025, 15, 2547–2558. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  40. Starcke, J.; Spadafora, J.; Spadafora, J.; Spadafora, P.; Toma, M. The Effect of Data Leakage and Feature Selection on Machine Learning Performance for Early Parkinson’s Disease Detection. Bioengineering 2025, 12, 845. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  41. Banerjee, I.; Bhattacharjee, K.; Burns, J.L.; Trivedi, H.; Purkayastha, S.; Seyyed-Kalantari, L.; Patel, B.N.; Shiradkar, R.; Gichoya, J. “Shortcuts” Causing Bias in Radiology Artificial Intelligence: Causes, Evaluation, and Mitigation. J. Am. Coll. Radiol. 2023, 20, 842–851. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  42. Geirhos, R.; Jacobsen, J.H.; Michaelis, C.; Zemel, R.; Brendel, W.; Bethge, M.; Wichmann, F.A. Shortcut learning in deep neural networks. Nat. Mach. Intell. 2020, 2, 665–673. [Google Scholar] [CrossRef] [Scilit]
  43. Kim, D.W.; Jang, H.Y.; Kim, K.W.; Shin, Y.; Park, S.H. Design Characteristics of Studies Reporting the Performance of Artificial Intelligence Algorithms for Diagnostic Analysis of Medical Images: Results from Recently Published Papers. Korean J. Radiol. 2019, 20, 405. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  44. Nowroozi, A.; Salehi, M.; Shobeiri, P.; Agahi, S.; Momtazmanesh, S.; Kaviani, P.; Kalra, M. Artificial intelligence diagnostic accuracy in fracture detection from plain radiographs and comparing it with clinicians: A systematic review and meta-analysis. Clin. Radiol. 2024, 79, 579–588. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  45. Kuo, R.Y.L.; Harrison, C.; Curran, T.A.; Jones, B.; Freethy, A.; Cussons, D.; Stewart, M.; Collins, G.S.; Furniss, D. Artificial Intelligence in Fracture Detection: A Systematic Review and Meta-Analysis. Radiology 2022, 304, 50–62. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  46. Jung, J.; Dai, J.; Liu, B.; Wu, Q. Artificial intelligence in fracture detection with different image modalities and data types: A systematic review and meta-analysis. PLoS Digit. Health 2024, 3, e0000438. [Google Scholar] [CrossRef] [PubMed]
  47. Bolla, D.; Bukaita, W. Multi-Region Bone Fracture Detection in X-Ray Images using Deep Learning. Med. Res. Arch. 2025, 13, 1–19. [Google Scholar] [CrossRef] [Scilit]
  48. Raj, S.; Sadegi, B.; Simon, J. Enhancing Pediatric Fracture Detection: Multicenter Evaluation of a Deep Learning AI Model and Its Impact on Radiologist Performance. Acad. Radiol. 2026, 33, 1121–1129. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  49. Toma, M. AI-Assisted Medical Diagnostics: A Clinical Guide to Next-Generation Diagnostics; Dawning Research Press: New York, NY, USA, 2025; ISBN 979-8-9998324-3-6. Available online: https://openlibrary.org/works/OL44048041W/ (accessed on 1 July 2026).
  50. Toma, M. Diagnosing AI: Evaluation of AI in Clinical Practice; Dawning Research Press: New York, NY, USA, 2026; ISBN 979-8-9998324-8-1. Available online: https://openlibrary.org/works/OL61375300M/ (accessed on 1 July 2026).
  51. Gao, B.B.; Xing, C.; Xie, C.W.; Wu, J.; Geng, X. Deep Label Distribution Learning with Label Ambiguity. IEEE Trans. Image Process. 2017, 26, 2825–2838. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Figure 1. Cross-testing experimental design. Each model was trained on its home dataset (solid arrows) and subsequently evaluated on the opposing dataset (dashed arrows) to assess generalization across patient populations.
Figure 1. Cross-testing experimental design. Each model was trained on its home dataset (solid arrows) and subsequently evaluated on the opposing dataset (dashed arrows) to assess generalization across patient populations.
Applsci 16 06853 g001
Figure 2. Algorithm flowchart depicting the complete pipeline from data loading through model evaluation. The process is divided into four phases: data preparation, model configuration, iterative training with validation, and comprehensive evaluation including cross-dataset testing.
Figure 2. Algorithm flowchart depicting the complete pipeline from data loading through model evaluation. The process is divided into four phases: data preparation, model configuration, iterative training with validation, and comprehensive evaluation including cross-dataset testing.
Applsci 16 06853 g002
Figure 3. Dependency graph illustrating the relationships among the five algorithms comprising the computational workflow. Solid arrows indicate data flow between pipeline stages, while dashed arrows represent function invocations. The preprocessing utility (Algorithm A1) is called by multiple downstream algorithms. Phase 1 encompasses data preparation, Phase 2 comprises model training, and Phase 3 includes all evaluation procedures.
Figure 3. Dependency graph illustrating the relationships among the five algorithms comprising the computational workflow. Solid arrows indicate data flow between pipeline stages, while dashed arrows represent function invocations. The preprocessing utility (Algorithm A1) is called by multiple downstream algorithms. Phase 1 encompasses data preparation, Phase 2 comprises model training, and Phase 3 includes all evaluation procedures.
Applsci 16 06853 g003
Figure 4. Confusion matrices for ResNet-50 classifiers evaluated on internal dataset partitions. Top row (ac): GRAZPEDWRI-DX model (pediatric specialist) performance across training, validation, and test subsets. Bottom row (df): FracAtlas model (mixed-age generalist) performance across corresponding partitions. Values represent row-wise percentages indicating the proportion of each actual class assigned to predicted categories, with absolute counts shown in parentheses. Darker shading corresponds to higher percentages. The diagonal cells represent correct classifications (true positives and true negatives), while off-diagonal cells indicate misclassifications (false positives and false negatives).
Figure 4. Confusion matrices for ResNet-50 classifiers evaluated on internal dataset partitions. Top row (ac): GRAZPEDWRI-DX model (pediatric specialist) performance across training, validation, and test subsets. Bottom row (df): FracAtlas model (mixed-age generalist) performance across corresponding partitions. Values represent row-wise percentages indicating the proportion of each actual class assigned to predicted categories, with absolute counts shown in parentheses. Darker shading corresponds to higher percentages. The diagonal cells represent correct classifications (true positives and true negatives), while off-diagonal cells indicate misclassifications (false positives and false negatives).
Applsci 16 06853 g004
Figure 5. Performance metrics across training, validation, and test partitions for both ResNet-50 classifiers. Top row (a,b): GRAZPEDWRI-DX model (pediatric specialist) demonstrating balanced performance with high sensitivity and moderate specificity. Bottom row (c,d): FracAtlas model (mixed-age generalist) exhibiting high specificity but substantially reduced sensitivity, with pronounced decline in F1-score from training to held-out partitions. General metrics include accuracy, balanced accuracy, and F1-score; class-specific metrics include sensitivity (recall), precision, and specificity.
Figure 5. Performance metrics across training, validation, and test partitions for both ResNet-50 classifiers. Top row (a,b): GRAZPEDWRI-DX model (pediatric specialist) demonstrating balanced performance with high sensitivity and moderate specificity. Bottom row (c,d): FracAtlas model (mixed-age generalist) exhibiting high specificity but substantially reduced sensitivity, with pronounced decline in F1-score from training to held-out partitions. General metrics include accuracy, balanced accuracy, and F1-score; class-specific metrics include sensitivity (recall), precision, and specificity.
Applsci 16 06853 g005
Figure 6. Comparative learning curves for both ResNet-50 classifiers during training. (a) Classification accuracy progression showing rapid convergence for the FracAtlas model (circles) with higher final accuracy compared to the GRAZPEDWRI-DX model (squares). (b) Cross-entropy loss curves demonstrating monotonic decrease for both models, with FracAtlas achieving lower final loss values. Solid lines represent training metrics; dashed lines represent validation metrics. Both models exhibit healthy convergence patterns with minimal training–validation gaps, indicating appropriate regularization without substantial overfitting.
Figure 6. Comparative learning curves for both ResNet-50 classifiers during training. (a) Classification accuracy progression showing rapid convergence for the FracAtlas model (circles) with higher final accuracy compared to the GRAZPEDWRI-DX model (squares). (b) Cross-entropy loss curves demonstrating monotonic decrease for both models, with FracAtlas achieving lower final loss values. Solid lines represent training metrics; dashed lines represent validation metrics. Both models exhibit healthy convergence patterns with minimal training–validation gaps, indicating appropriate regularization without substantial overfitting.
Applsci 16 06853 g006
Figure 7. Cross-dataset evaluation confusion matrices demonstrating complete generalization failure. (a) FracAtlas model (FracAtlas-trained) tested on GRAZPEDWRI-DX pediatric wrist radiographs: the model classified all 2034 images as fractured, achieving 0% specificity. Grad-CAM analysis revealed misinterpretation of normal pediatric growth plates (physes) as structural breaks. (b) GRAZPEDWRI-DX model (pediatric-trained) tested on FracAtlas adult radiographs: the model classified all 4083 images as fractured across all anatomical subgroups, achieving 0% specificity. The model exhibited texture bias, hallucinating fractures from background digital noise and adult soft-tissue artifacts.
Figure 7. Cross-dataset evaluation confusion matrices demonstrating complete generalization failure. (a) FracAtlas model (FracAtlas-trained) tested on GRAZPEDWRI-DX pediatric wrist radiographs: the model classified all 2034 images as fractured, achieving 0% specificity. Grad-CAM analysis revealed misinterpretation of normal pediatric growth plates (physes) as structural breaks. (b) GRAZPEDWRI-DX model (pediatric-trained) tested on FracAtlas adult radiographs: the model classified all 4083 images as fractured across all anatomical subgroups, achieving 0% specificity. The model exhibited texture bias, hallucinating fractures from background digital noise and adult soft-tissue artifacts.
Applsci 16 06853 g007
Figure 8. Anatomical subgroup analysis of GRAZPEDWRI-DX model (pediatric-trained) performance on FracAtlas mixed-age radiographs. The bar chart displays true positive counts (actual fractures correctly identified, dark bars) versus false positive counts (normal cases misclassified as fractures, light bars) for each anatomical region.
Figure 8. Anatomical subgroup analysis of GRAZPEDWRI-DX model (pediatric-trained) performance on FracAtlas mixed-age radiographs. The bar chart displays true positive counts (actual fractures correctly identified, dark bars) versus false positive counts (normal cases misclassified as fractures, light bars) for each anatomical region.
Applsci 16 06853 g008
Figure 9. Comparative performance visualization showing the transition from internal test evaluation to external cross-dataset evaluation. Internal test metrics (positions 1 and 3) demonstrate acceptable classification performance within each model’s training domain. Cross-test metrics (positions 2 and 4) reveal complete specificity collapse to 0% for both models when evaluated on the opposing dataset, while sensitivity artificially inflates to 100% due to all-positive prediction bias. Dashed arrows indicate the direction of specificity degradation from internal to external evaluation.
Figure 9. Comparative performance visualization showing the transition from internal test evaluation to external cross-dataset evaluation. Internal test metrics (positions 1 and 3) demonstrate acceptable classification performance within each model’s training domain. Cross-test metrics (positions 2 and 4) reveal complete specificity collapse to 0% for both models when evaluated on the opposing dataset, while sensitivity artificially inflates to 100% due to all-positive prediction bias. Dashed arrows indicate the direction of specificity degradation from internal to external evaluation.
Applsci 16 06853 g009
Figure 10. Grad-CAM visualizations demonstrating cross-dataset failure modes. (a) The FracAtlas-trained model exhibits strong activation over the distal radial growth plate (physis), misinterpreting this normal pediatric developmental structure as a fracture line. FracAtlas model applied to normal pediatric wrist radiograph. The model predicted fracture with 100% confidence. (b) The pediatric-trained GRAZPEDWRI-DX model shows activation concentrated on image boundary regions and background artifacts rather than anatomical structures, reflecting texture bias when confronted with unfamiliar adult radiograph characteristics. GRAZPEDWRI-DX model applied to normal adult knee radiograph. The model predicted fracture with 90.02% confidence. Warmer colors (red/yellow) indicate regions with higher contribution to the fracture prediction.
Figure 10. Grad-CAM visualizations demonstrating cross-dataset failure modes. (a) The FracAtlas-trained model exhibits strong activation over the distal radial growth plate (physis), misinterpreting this normal pediatric developmental structure as a fracture line. FracAtlas model applied to normal pediatric wrist radiograph. The model predicted fracture with 100% confidence. (b) The pediatric-trained GRAZPEDWRI-DX model shows activation concentrated on image boundary regions and background artifacts rather than anatomical structures, reflecting texture bias when confronted with unfamiliar adult radiograph characteristics. GRAZPEDWRI-DX model applied to normal adult knee radiograph. The model predicted fracture with 90.02% confidence. Warmer colors (red/yellow) indicate regions with higher contribution to the fracture prediction.
Applsci 16 06853 g010
Figure 11. Schematic representation of failure modes identified through Grad-CAM explainability analysis. (Left) The FracAtlas model (trained on mixed-age multi-region data) misinterpreted normal pediatric growth plates (physes) as pathological fracture lines, triggering universal positive classification. (Right) The pediatric-trained GRAZPEDWRI-DX model exhibited texture bias, responding to background digital noise and soft-tissue density patterns rather than true bone pathology when confronted with heterogeneous multi-site mixed-age imaging data.
Figure 11. Schematic representation of failure modes identified through Grad-CAM explainability analysis. (Left) The FracAtlas model (trained on mixed-age multi-region data) misinterpreted normal pediatric growth plates (physes) as pathological fracture lines, triggering universal positive classification. (Right) The pediatric-trained GRAZPEDWRI-DX model exhibited texture bias, responding to background digital noise and soft-tissue density patterns rather than true bone pathology when confronted with heterogeneous multi-site mixed-age imaging data.
Applsci 16 06853 g011
Table 1. Extended performance metrics for internal test evaluation. Matthews Correlation Coefficient (MCC) and diagnostic likelihood ratios provide threshold-independent assessment of classifier discrimination. The GRAZPEDWRI-DX model demonstrates moderate overall discrimination (MCC = 0.56) with sensitivity-dominant classification, while the FracAtlas model shows weaker discrimination (MCC = 0.34) with specificity-dominant classification.
Table 1. Extended performance metrics for internal test evaluation. Matthews Correlation Coefficient (MCC) and diagnostic likelihood ratios provide threshold-independent assessment of classifier discrimination. The GRAZPEDWRI-DX model demonstrates moderate overall discrimination (MCC = 0.56) with sensitivity-dominant classification, while the FracAtlas model shows weaker discrimination (MCC = 0.34) with specificity-dominant classification.
MetricGRAZPEDWRI-DXFracAtlas
True Positives (TPs)118834
False Negatives (FNs)15474
True Negatives (TNs)484479
False Positives (FPs)20826
Sensitivity (Recall)88.52%31.48%
Specificity69.94%94.85%
Positive Predictive Value (PPV)85.10%56.67%
Negative Predictive Value (NPV)75.86%86.62%
Positive Likelihood Ratio (LR+)2.946.10
Negative Likelihood Ratio (LR-)0.160.72
Matthews Correlation Coefficient (MCC)0.560.34
Table 2. Summary statistics for GRAZPEDWRI-DX model performance across anatomical subgroups in the FracAtlas dataset. The uniform 0% specificity across all subgroups demonstrates that the pediatric-trained model systematically misclassified normal mixed-age anatomy as pathological regardless of body region.
Table 2. Summary statistics for GRAZPEDWRI-DX model performance across anatomical subgroups in the FracAtlas dataset. The uniform 0% specificity across all subgroups demonstrates that the pediatric-trained model systematically misclassified normal mixed-age anatomy as pathological regardless of body region.
MetricHandLegHipShoulderMixedHardwareMultiscanTotal
Total Images15382273338349398993964083
True Positives43826363631069780717
False Positives1100201027528629223163366
Sensitivity100%100%100%100%100%100%100%100%
Specificity0%0%0%0%0%0%0%0%
Note: Subgroups are non-mutually exclusive. “Mixed” denotes multi-region images, “Hardware” indicates presence of orthopedic implants, and “Multiscan” refers to composite acquisitions. A single image may appear in multiple subgroups; consequently, subgroup values do not sum to column totals.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Patwary, R.; Toma, M. Bidirectional Domain Shift Failure in Radiograph Fracture Classification Across Out-of-Distribution Pediatric and Mixed-Age Multi-Region Data. Appl. Sci. 2026, 16, 6853. https://doi.org/10.3390/app16146853

AMA Style

Patwary R, Toma M. Bidirectional Domain Shift Failure in Radiograph Fracture Classification Across Out-of-Distribution Pediatric and Mixed-Age Multi-Region Data. Applied Sciences. 2026; 16(14):6853. https://doi.org/10.3390/app16146853

Chicago/Turabian Style

Patwary, Rahim, and Milan Toma. 2026. "Bidirectional Domain Shift Failure in Radiograph Fracture Classification Across Out-of-Distribution Pediatric and Mixed-Age Multi-Region Data" Applied Sciences 16, no. 14: 6853. https://doi.org/10.3390/app16146853

APA Style

Patwary, R., & Toma, M. (2026). Bidirectional Domain Shift Failure in Radiograph Fracture Classification Across Out-of-Distribution Pediatric and Mixed-Age Multi-Region Data. Applied Sciences, 16(14), 6853. https://doi.org/10.3390/app16146853

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop