Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Artif. Intell., 12 January 2026

Sec. Machine Learning and Artificial Intelligence

Volume 8 - 2025 | https://doi.org/10.3389/frai.2025.1692894

Enhanced multi-class object detector for bone fracture diagnosis with prescription recommendation

  • 1School of Computational and Communication Science and Engineering, The Nelson Mandela African Institution of Science and Technology, Arusha, Tanzania
  • 2Department of Business Administration, Tanzania Institute of Accountancy (TIA), Dar es Salaam, Tanzania
  • 3Department of Orthopedic and Trauma Surgery, Bugando Medical Centre, Mwanza, Tanzania

Bone fractures are among the most prominent injuries in the modern world that affect all ages and races. Traditional treatment involves radiographic imaging that relies heavily on radiologists manually analyzing images. There have been efforts to develop computer-aided diagnosis tools that employ artificial intelligence and deep learning approaches. Existing literature focuses on developing tools that only detect and classify bone fractures, rather than addressing the broader issue of bone fracture management. However, evidence of scholarly works that include treatment recommendations is still lacking. Furthermore, deep learning-based object detectors that achieve state-of-the-art results are computationally expensive and considered as black-box solutions. Developing countries, such as Sub-Saharan Africa, face a shortage of radiologists and orthopedists. For this reason, this paper proposes a methodological approach that uses a more efficient object detection model to diagnose long bone fractures and provide prescription recommendations. An enhanced anchoring process, known as adaptive anchoring, is proposed to improve the performance of the Regional Proposal Network and the object detection model. A Faster R-CNN model with ResNet-50/101 and ResNext-50/101 backbones was used to develop an object detection model that uses X-ray images as input. To understand and interpret the model’s decision, a Gradient-based Class Activation Mapping method was used to assess the model’s learnability. The results indicate that the proposed adaptive anchoring approach can improve computational efficiency, reducing training time by up to 29% compared to the traditional approach. Model accuracy during training and validation ranged between 94% and 98%. Overall, adaptive anchoring performed better when applied with the ResNet-101 backbone, yielding an Average Precision of 92.73%, an F1 score of 96.01%, a precision of 96.80%, and a recall of 95.23%. The study provides valuable insights into the use of computationally efficient deep learning models for medical recommendation systems. Future studies should develop models to diagnose fractures using input images from various modalities and to provide prescription recommendations.

1 Introduction

Bones constitute part of the skeletal system, protect internal organs, and facilitate movements in vertebrate animals. However, human bones are prone to fractures from automobile accidents and falls. The World Health Organization (WHO) estimates the loss of 1.19 million lives, between 20 and 50 million non-fatal injuries, costing 3% of gross domestic product yearly, due to road traffic crashes (WHO, 2023). Common fracture patterns that medical professionals are likely to encounter in their daily work include transverse, oblique, spiral, comminuted, greenstick, and impacted fractures, as shown in Figure 1. Fibula/tibia (leg) and femur (thigh) fractures are the most common fractures in Africa, classified by fracture location (Pouramin et al., 2019).

Figure 1
Five X-ray images of forearms, each showing different types of fractures. From left to right: transverse fracture, oblique fracture, spiral fracture, comminuted fracture, and impacted fracture.

Figure 1. Common fracture patterns.

While traditional fracture treatment relies heavily on radiographic imaging, this approach has limitations. Despite its remarkable capabilities, the human eye often struggles to detect minor fractures (Yadav and Rathor, 2020). Furthermore, doctors who frequently deal with emergencies can be hindered by fatigue (Tanzi et al., 2020). These limitations underscore the pressing need for more advanced tools, such as computer-aided diagnosis (CAD), in the treatment of fractures. Applying CAD tools powered by deep learning models has significantly enhanced the performance of radiographic diagnosis (Lindsey et al., 2018). Applying deep learning approaches has yielded state-of-the-art performance results in fracture diagnosis (Ma and Luo, 2021). These advancements hold immense promise for the future of healthcare. The success of deep learning in diagnosis led to the introduction of recommendation systems to enhance personalized healthcare (Lichtner et al., 2023; Nayak et al., 2023; Wang and Qian, 2021). Developing countries, such as those in SSA, face a shortage of radiologists (Laage Gaupp et al., 2019) and orthopedists (Wilhelm et al., 2017). Applying deep learning models to fracture diagnosis—including prescribing recommendations—may significantly enhance healthcare delivery in resource-limited environments. However, deep learning models that guarantee state-of-the-art performance results are known to be computationally expensive (Thompson et al., 2023). There have been efforts to make deep learning models smaller, faster, and much better than traditional ones (Menghani, 2023). Furthermore, deep learning models are known to lack transparency and explainability in their predictions. This has become a significant concern for practitioners when they cannot tell how models make predictions and the key features that lead to a specific decision.

This paper proposes an enhanced multi-class object detection model with adaptive anchoring for fracture diagnosis, with prescription recommendations as a second opinion to radiologists and surgeons. Radiologists labeled the collected X-ray images, and orthopedists suggested prescription recommendations. The Regional Proposal Network (RPN) was modified to guide the anchoring process and avoid searching areas where fractures are unlikely to be located. This study selects the standard surgical methods based on three assumptions to implement recommendations. First, patients are skeletally mature, and X-ray images of only adult patients are included. Second, the distal neurovascular status is intact, allowing for limb salvage. Third, fractures are classified as open or closed, from Gustilo-Anderson I to IIIA. Impacted fractures are typically treated with immobilization, such as casting or splinting. Other standard surgical methods are intramedullary nailing (Shen and Tejwani, 2024) and plate osteosynthesis (Hansmann, 1886). Fracture patterns and surgeon preferences are often applied to select the optimal treatment of bone fractures (Hurley et al., 2023). To address explainable artificial intelligence (XAI), a Gradient-based Class Activation Mapping (Grad-CAM) method was used to examine how the model makes predictions from input images. The main contributions of this paper can be summarized in four aspects:

• The demographic of bone fractures to characterize the distribution in developing countries is documented.

• A modified anchoring process, called adaptive anchoring, to improve the RPN and performance of the object detection model is proposed.

• An enhanced multi-class object detector using bounding box regression is trained for fracture diagnosis with prescription recommendations.

• The Grad-CAM method is applied to explain how the model makes predictions from the given input images.

The remaining part of the paper is organized as follows: Section 2 presents the materials and methods used in this study. Section 3 presents the results of this study’s discussions. Section 4 provides a conclusion and recommends future research.

2 Materials and methods

2.1 Ethics statement

This study was approved by the ethics committee governed by three institutions: The Centre for Education Development in Health (CEDA), Kibong’oto Infectious Diseases Hospital (KIDH), and the Nelson Mandela African Institution of Science and Technology (NM-AIST), letter No: KNCHREC/00068/11/2022 issued January 18th, 2023. Multi-view X-ray images were collected from the Kilimanjaro Christian Medical Centre (KCMC) in Kilimanjaro and the Muhimbili Orthopedic Institute (MOI) in Dar es Salaam, Tanzania.

2.2 Data collection

Digital Imaging and Communication in Medicine (DICOM) format was used to store captured X-ray images. Images were stored together with the patient’s medical records in the health information system. An Open Health Imaging Foundation (OHIF) web platform was used to extract and convert DICOM images. The photos were saved in JPEG and PNG formats, with randomly generated file names for de-identification. A separate index file was created to map images and their corresponding labels. Bone fracture labeling was conducted on long bones, including the radius, ulna, femur, and tibia, to annotate the presence and anatomical locations of fractures. Five board-certified senior radiologists independently reviewed images for fracture classification. The standard radiological criteria for fracture diagnosis, including assessment of cortical disruption and displacement, were applied during labeling. To assess inter-rater reliability, Cohen’s Kappa coefficient was calculated and found to be 0.85, indicating strong agreement. An orthopedic surgeon lastly reviewed the images and included the treatment recommendations.

2.3 Dataset

The Robo flow online tool was used to draw bounding boxes on X-ray images and generate Tensor Flow Object Detection format files to train an object detection model. A total of 4,014 images of long bones, comprising 864 forearms (ulna and radius), 414 upper arms (humerus), 1,530 legs (fibula and tibia), and 1,206 thighs (femur), were collected between October 2022 and September 2023. The dataset was split into three non-overlapping image sets with a ratio of 60:20:20 for training, validation, and testing, as recommended for studies involving deep learning models (Muraina, 2021). Stratified 10-fold cross-validation was used to address class imbalance and ensure robust results. Figure 2 summarizes the training pipeline of an object detector.

Figure 2
Flowchart depicting a machine learning process. A dataset of 4014 images is preprocessed and split into training (60%), validation (20%), and testing (20%) sets. The training set creates a trained model, which is then converted into a deployable model. This model is used to analyze new cases and generate automated diagnosis reports.

Figure 2. Training pipeline of the multi-class object detector.

Data augmentation techniques were applied during preprocessing to improve model generalization. Variations of the same image were created through geometric transformations and colour transformations. Geometric transformations include rotation, random cropping (80%), scaling, and horizontal flipping (p = 0.5). Colour transformations include brightness, contrast, and saturation adjustments within ±20%. These data augmentation techniques simulate real-world variations, thereby enhancing the model’s robustness. Augmentation was confined to the training split in each fold, with no leakage across folds. Table 1 summarizes the dataset and augmentation ranges for each class, grouped according to the corresponding bone fracture treatment.

Table 1
www.frontiersin.org

Table 1. Dataset distribution and augmentation range for each class.

The classes pose a severe imbalance challenge, especially given that class I accounts for around 13% of the total dataset. Per-class support and cost-sensitive strategy were used to rebalance the outcomes of model decisions. Underrepresented classes were penalised more heavily than overrepresented classes. Table 2 summarizes the class support and weights used during sampling to handle class imbalances.

Table 2
www.frontiersin.org

Table 2. Class support and class weight to address the imbalance challenge.

2.4 Treatment recommendations

Throughout the study, standard surgical methods were applied to implement the recommendations. However, in some cases, fracture management may vary depending on resource availability and the surgeon’s preference. Table 3 summarizes standard surgical methods applied to implement treatment recommendations for bone fractures.

Table 3
www.frontiersin.org

Table 3. Surgical methods for treatment recommendations.

We implemented a hierarchical rule-based classifier to map fractures into four treatment-strategy categories (casting, ORIF-FAD, ORIF-IMN, and ORIF-Plate). The model uses structured descriptors derived from imaging annotations—including fracture location, pattern complexity, displacement, comminution, and morphological stability tags—to evaluate eligibility for each treatment class. Each class is associated with an inclusion–exclusion rule set derived from established orthopedic taxonomies. These rules do not produce clinical recommendations but serve as deterministic criteria for benchmarking automated labeling and evaluating model consistency relative to expert-assigned categories.

2.5 Model selection

An object detection model for fracture diagnosis was implemented using a deep convolutional neural network as the backbone network. ResNet (He et al., 2016) was implemented as the backbone, as it is among the prominent models for fracture detection (Meena and Roy, 2022). An object detector containing the Faster R-CNN model with a ResNet backbone for feature extraction guarantees a better performance (Tahir et al., 2021).

2.6 Adaptive anchoring

This paper proposes an adaptive anchoring Faster R-CNN for bone fracture diagnosis. After scrutinizing X-ray images containing long bone fractures, it is revealed that the Region of Interest (ROI) is often positioned relatively close to the center of the image. The number of anchors is significantly reduced by focusing on a small area. Therefore, the overall efficiency of the anchoring process can be improved.

Input images are loaded, and features are extracted using a backbone network. The image features output from the backbone network are considered inputs for the RPN network. Conventionally, RPN scans the input image and generates anchors across the image. This paper introduces adaptive anchoring to guide the anchoring process and avoid areas where fractures are unlikely to occur. Given the nature of X-ray images containing long-bone fractures, the fractured regions can be located within an area after omitting a portion on either side of the image, as well as at the top and bottom. Figure 3 illustrates the possible location of fractured regions after dividing an image into nine sectors.

Figure 3
X-ray images showing four fractured bones: the leg, thigh, upper arm, and lower arm. Each image depicts a fracture with visible misalignment or breaks in the bone structure.

Figure 3. Location of fractured regions.

Given an image centered at ( x , y ) with height h and width w , by avoiding 33% of the width on either side and 16.5% on the top and bottom, the area for RPN to scan can be guided within the four coordinates beginning with the top-left corner by considering the following Equations 1–4.

A = ( x 0.17 w , y + 0.34 h )     (1)
B = ( x + 0.17 w , y + 0.34 h )     (2)
C = ( x + 0.17 w , y 0.34 h )     (3)
D = ( x 0.17 w , y 0.34 h )     (4)

Algorithm 1 summarizes the entire adaptive anchoring process. The input images are in grayscale and have low brightness, which hinders feature extraction. The signal-to-noise ratio and detection features can be improved by applying brightness normalization to the images. This approach has been used in similar studies that apply object detection for bone fracture diagnosis (Wang and Huang, 2022). Figure 4 provides the functional structure of the proposed object detection model.

ALGORITHM 1
Figure 4
Flowchart illustrating a neural network for object detection. An input image passes through a ResNet backbone, generating a feature map. This map goes through an RPN Network with modified anchoring, then adaptive anchoring, and ROI pooling. Finally, Fast R-CNN classification outputs classification and bounding box results with BB and Cls Loss calculation.

Figure 4. Functional structure.

Equation 5 was used to implement brightness normalization. The scaling factor is given as K , where r represents the value of a pixel in a particular image, r min is the minimum pixel value, and r max is the maximum pixel value. Pixel values are normalized within the range of [0, 1] with a scaling factor K applied to enhance brightness (setting K > 1) or reduce brightness (setting K  < 1), otherwise set to 1 in deal cases.

S = K r r min r max r min     (5)

2.7 Evaluation metrics

The Average Precision (AP) and F1 score were used as evaluation criteria in this study, along with accuracy, precision, and recall. These metrics are commonly used in similar studies involving object detection models.

2.8 Implementation details

Python was used to code the experiments in this study, utilizing Jupyter notebooks within a TensorFlow framework. Training and testing of the object detection models were conducted on a personal computer. The PC features a 1 TB hard disk, 16GB of RAM, and an Intel Core i7 processor. NVIDIA GeForce GTX 1650 Ti GPU-accelerated graphics with Max-Q design. The operating system was a 64-bit version of Windows 11 Pro, version 23H2.

The classification and bounding-box regression losses were combined to form a multi-task loss function. The model’s training parameters were updated using an SGD optimizer configured with a weight decay of 0.0001 and a momentum of 0.9. The learning rate was set to 0.001 and scheduled with weight decay, which reduces the rate by 0.1 after every 10 iterations.

2.9 Explainable artificial intelligence

Grad-CAM was integrated into the object detector to visualize how regions of the input image contributed to the predictions made. Initially, the model performed a forward pass, and the last convolutional layer produced feature maps and generated predictions. Then, the gradient of the class score was computed with respect to feature maps. Afterward, the global average of the gradients was used to calculate the weight of each channel in the feature map by using Equation 6.

c k = 1 Z i , j y c A i , j k     (6)

Where y c represents the score for the class C , A i , j k signifies the activation at the location ( i , j ) for channel k , and Z is the normalization factor. Computed weights were used to combine weighted feature maps and generate a Grad-CAM heatmap using Equation 7.

Grad _ CAM = ReLU ( k c k A k )     (7)

Generated heatmaps were resized to match the input images’ sizes, and each map was overlaid on the original image to produce the visual representation. The visual representation shows which regions of the input image the model focused on during fracture detection.

3 Results and discussions

3.1 Comparative analysis of recent literature

The literature shows efforts to improve fracture diagnosis using AI and ML tools. Initially, classical machine-learning approaches were applied to detect and classify fractures (Johari and Singh, 2018; Myint et al., 2018). Later, deep learning achieved cutting-edge results and was expected to surpass human capabilities in radiographic imaging (Ma and Luo, 2021). Afterward, researchers sought to improve the efficiency and performance of fracture-diagnosis models.

Different techniques have been applied to improve efficiency, for instance, an anchor-based model (Qi et al., 2020), a crack-sensitive model (Ma and Luo, 2021), a feature ambiguity model (Wu et al., 2021), automated preprocessing (Wang and Huang, 2022), and a two-stage model (Yang et al., 2022). Other techniques focus on improving performance and efficiency, such as ensemble-based neural networks (Ghosh et al., 2021), and a guided anchoring model (Xue et al., 2021). Researchers applied pre-trained deep learning models, fitted to smaller datasets, to identify fractured radiographs from non-fractured ones (Nikhil et al., 2023; Kandel et al., 2020). This paper contributes to the existing literature by proposing an alternative approach that aims to improve the efficiency and performance of models. By modifying the conventional anchoring process and adapting it to the task at hand, detection models can be made more efficient. Avoid searching for objects that are never located, which saves computational power and improves overall performance. Furthermore, the paper provides fracture demographics classified by age, fracture location, and mechanism of injury. This broadens understanding of the problem and offers valuable insights into targeted measures to either eliminate or reduce it in developing countries. Table 4 summarizes the main contribution of this paper relative to existing literature.

Table 4
www.frontiersin.org

Table 4. Comparative assessment of existing literature and main contributions.

3.2 Bone fracture trends and distribution

Table 5 presents an overview of fracture distribution disaggregated by gender and age. Out of 1,410 patients, 63% were males, with the majority of fractures occurring between the ages of 25 and 54. The fewest cases were observed among female patients aged 18 to 24.

Table 5
www.frontiersin.org

Table 5. Fracture distribution disaggregated by gender.

Table 6 presents the distribution of fractures by fracture location. Leg-dominated long bone fractures account for 36.2% of the entire distribution. Most fractures occurred between the ages of 25 and 44, accounting for 52.3% of leg fractures, indicating that youths are more affected by leg fractures, while elders are more affected by femur fractures.

Table 6
www.frontiersin.org

Table 6. Fracture site distribution categorized by age.

The mechanism of injury, as presented in Table 7, is primarily RTI, which accounts for 48.7% of the total cases, with the majority of these cases reported among individuals aged 25–54. This indicates that the working-age population suffers the most from RTIs. On the other hand, falls are the leading cause of injury among older people, and the risk increases with age. The youth suffer the least from falls, with the fewest cases among those aged 18 to 24. The following section presents the empirical results of performance evaluations of the proposed multi-class object detection model.

Table 7
www.frontiersin.org

Table 7. Mechanism of injury disaggregated by age.

This study discovered that male patients are significantly more affected by fractures than their female counterparts. A possible explanation is that in developing countries like Sub-Saharan Africa, males are more likely to engage in high-risk outdoor activities. Most fractures in males occur in patients between the ages of 25 and 54 and decrease significantly with age. Fractures in female patients do not vary considerably with age but do increase slightly with age. One interesting finding is that the distribution of fractures is comparable between male and female patients in old age. Several factors could explain this observation. First, high-risk outdoor activities in males tend to decrease with age. Second, in old age, falls are the primary contributor to injuries, affecting both males and females equally. Third, both males and females are affected by osteoporosis, which increases skeletal fragility and the risk of fractures.

Other studies have similarly identified the dominance of males in fracture patients (Chen et al., 2024). However, in some regions with different socioeconomic conditions, the number of female patients is significantly higher than that of males (Bergh et al., 2021). This discrepancy could be attributed to regional socioeconomic status, which determines the nature and type of functions performed by males and females in their communities. Results from this study indicate that the leading cause of long bone fractures that affect the working-age population is road traffic injuries. The working-age group tends to suffer most from RTI because of involvement in high-risk outdoor activities. RTI poses a severe economic threat in lower socioeconomic countries like those in Sub-Saharan Africa, affecting individuals, families, and nations at large. The WHO estimates a 3% loss of gross domestic product in most countries due to road traffic crashes (WHO, 2023).

3.3 Training and inference time of enhanced object detector

The effectiveness of the proposed adaptive anchoring approach was evaluated for each image by comparing the training and prediction times. Results were benchmarked against the standard Faster R-CNN model with ResNet-50/101 and ResNext-50/101 backbone networks. The Faster R-CNN training time ranged from 50 to 70 h, and the inference time per test image was 110–196 milliseconds on the GPU and 280–590 milliseconds on the CPU. The proposed Faster R-CNN with adaptive anchoring achieved training times of 40–50 h, and inference time per test image ranged from 105 to 192 milliseconds on the GPU and 283 to 496 milliseconds on the CPU. This result implies that the proposed approach can improve training time by up to 29%. Table 8 summarizes the training and inference times of the models using four backbones.

Table 8
www.frontiersin.org

Table 8. Training time and inference time of object detection models.

3.4 Performance evaluation

The proposed approach was applied to train a model, achieving an accuracy of 94% to 98%. The model’s learning ability was notably good as the loss index converged with increasing training iterations. The loss index plateaued at 0.25. The box regression loss was 0.12, and the class accuracy was 0.96. The results of the proposed adaptive anchoring approach were benchmarked with a standard Faster R-CNN model. Table 9 presents the average performance results of the proposed approach after fine-tuning the detection models across the 10 data splits. Overall, better performance was observed when adaptive anchoring was applied with a ResNet-101 backbone, yielding an AP of 92.73%, an F-1 score of 96.01%, a precision of 96.80%, and a recall of 95.23%.

Table 9
www.frontiersin.org

Table 9. Average performance results of object detection models.

The results in this sub-section suggest that the RPN in object detection models can be adapted to improve performance on a specific task. Training time and overall performance significantly improve by avoiding searching areas where objects are never in the images. The performance was further assessed stratified by site where images were acquired. AP and F-1 scores are reported as means and bootstrapped with 95% confidence intervals (CIs). Results indicate minor variations in F-1, ranging from 0.2% to 0.8%, with data from Muhimbili National Hospital on the positive side. The AP ranged from 0.2% to 0.9% across data from the two cohorts. The results indicate that the proposed model can be deployed in regional hospitals while maintaining the desired output level. Table 10 presents performance results stratified by the site of acquisition.

Table 10
www.frontiersin.org

Table 10. Average performance stratified by acquisition site.

Afterward, a Faster R-CNN model with a ResNet-101 backbone was applied to assess the model’s ability in recommending prescriptions. Unseen data were organized into four classes corresponding to each prescription recommendation. On average, precision was 86.37%, recall was 84.86%, and average precision was 85.19%. These performance results are desirable for a well-trained object detection model applied to detect bone fractures. Table 11 summarizes the model’s average performance in prescribing recommendations.

Table 11
www.frontiersin.org

Table 11. Average performance results of the model’s ability to recommend prescriptions.

As shown in the table, the performance of Class I recommendations was not particularly impressive, with an average precision of 72.64%. This can be explained by the limited number of data instances resulting in ORIF FAD, where cases accounted for approximately 13% of the total. Class II accounted for 25%, Class III for 37%, and Class IV for 25% of the total. This implies that the more training data and representative data are available, the better the overall model’s performance.

The Precision Recall (PR) for both standard Faster R-CNN and Faster R-CNN with adaptive anchoring is given in Figure 5. The proposed adaptive anchoring approach attained an area under the curve (AUC) of 93%, surpassing the standard R-CNN by 10%. Figure 6 shows the AP for both standard and adaptive anchoring of Faster R-CNN at multiple intersection-over-union (IoU) thresholds. Both models achieved comparable performance on the test set when the threshold was lenient. When the threshold is strict (@0.75), the standard R-CNN achieved an AUC of 79%, which is lower than the 91% achieved with adaptive anchoring. With a more stringent threshold (@0.90), the standard R-CNN attained an AUC of 69%. This implies that the proposed adaptive anchoring approach outperforms standard anchoring, even as thresholds become increasingly stringent.

Figure 5
Precision-recall curve with axes labeled

Figure 5. PR curve for standard R-CNN (blue) and adaptive (red).

Figure 6
Two graphs displaying precision-recall curves with different Intersection over Union (IoU) thresholds. Graph (a) shows three curves: IoU 0.50 with Average Precision (AP) 1.00, IoU 0.75 with AP 0.79, and IoU 0.90 with AP 0.69. Graph (b) shows similar curves: IoU 0.50 with AP 1.00, IoU 0.75 with AP 0.91, and IoU 0.90 with AP 0.75. All curves depict performance trade-offs with varying precision and recall values.

Figure 6. AP at multiple IoU thresholds for standard Faster R-CNN (a) and adaptive anchoring of Faster R-CNN (b).

The proposed adaptive anchoring method reduces the total number of anchors per input image from 160,000 to 53,000 (67% reduction), resulting in a 29% reduction in training time. These results indicate that standard R-CNN with conventional anchor configurations is redundant. The adaptive anchoring approach achieves high performance with significantly fewer anchors, thereby reducing computational cost. Table 12 summarizes anchor density for each FPN layer for both standard Faster R-CNN and adaptive anchoring Faster R-CNN.

Table 12
www.frontiersin.org

Table 12. A summary of anchor density reduction.

3.5 Deployment and latency

The developed model was embedded in a web-based system prototype and deployed on a server with an Intel Core i7-8565U (8 cores @ 1.99 GHz), 128 MB UHD Graphics, 8 GB RAM, and a 477 GB SSD, running Windows 11 Pro v23H2. The connection between the client node and the server node occurred over a 100 Mbps LAN. Measurements of latency reflect single-user end-to-end latency unless otherwise stated. Table 13 summarizes the end-to-end web request latencies between a client and server. Results include aggregated latency values and distribution percentiles, including preprocessing from the picture archiving and communication system (PACS) to the model decision.

Table 13
www.frontiersin.org

Table 13. End-to-end latency from PACS to decision.

The minimum hardware requirements were determined by progressively reducing resources until the system exceeded the expected latency threshold of 420 s. A quad-core Intel i5 laptop CPU with 8 GB of RAM is sufficient to host the prototype, achieving a median latency of 300 s. Table 14 summarizes the minimum hardware requirements.

Table 14
www.frontiersin.org

Table 14. Minimum hardware requirements for acceptable performance.

The proposed system achieves a reasonably low end-to-end latency (median: 207 s, P95: 293 s) when deployed on an 8-core Intel server with 8 GB of RAM. Even under reduced configurations (quad-core CPU, 4 GB RAM), the prototype remains functional, with a median latency of 300 s, making it ideal for practical deployment on low-cost hardware. However, the full implementation of the proposed system prototype is sought to be a module accessed through the existing EMR system in local hospitals.

3.6 Interpreting model decisions

Images of four classes of long bones were used to examine how the model makes predictions and which features it learns from input images. Results indicate that the trained model uses features such as edges, curvatures, discontinuities, and anomalies to align bone parts. These features help the model make predictions and reach a specific decision. Figure 7 shows the visualization of detected objects using the Grad-CAM method. The first row contains the original input images fed into the model, and the second row includes the Grad-CAM visualizations.

Figure 7
X-ray images show fractures in various bones, labeled (a) through (d). Below each X-ray, heatmaps indicate areas of interest with red and yellow gradients on a blue background, correlating with the fractures.

Figure 7. Model visualization using the Grad-CAM method for input images of (a) leg, (b) thigh, (c) upper arm, ad (d) lower arm.

Figure 7a represents how the model used features from the input image of a leg and successfully identified the fractured area. Figure 7b indicates which part of the input image of a thigh the model used to extract features and make a prediction. Figure 7c is the visualization of the upper arm, and Figure 7d is the visualization of the lower arm. Taken together, these visualizations indicate the model uses relevant features from input images to make predictions. This clearly shows how the model makes predictions and uses similar features to make decisions like specialized medical practitioners.

In addition to Grad-CAM visualizations, quantitative sanity checks were conducted by randomizing labels and input images. The aim was to determine whether the model’s performance stemmed from learning true image-label associations rather than spurious correlations or memorization. Ground truth labels were randomly permuted, and images were replaced with noise-based proxies, and the model was retrained. The model trained on this corrupted dataset showed a near-chance performance. The resulting performance collapse confirms that the model does not rely on unintended shortcut features leaking into the labels. Figure 8 shows a PR curve of both standard Faster R-CNN and adaptive anchoring R-CNN recorded after randomization of labels and input images.

Figure 8
Precision-recall graph comparing two models. The blue line represents one model with an Average Precision (AP) of 0.49, while the red line represents another model with an AP of 0.46. Both lines show precision values decreasing as recall increases.

Figure 8. PR curve for standard R-CNN (blue) and adaptive (red) after randomization test.

3.7 Fracture diagnosis with prescription recommendations

The rapid pace of progress has primarily influenced radiographic imaging in machine learning and deep learning. Over the last decade, the literature has witnessed an increasing number of studies applying deep learning to medical imaging. This application is crucial in enhancing the diagnosis process through medical imaging and mitigating the limitations of traditional approaches that rely solely on human interpretation. Developing countries, such as those in SSA, face enormous challenges in medical imaging. For example, Tanzania has 60 registered radiologists serving a population of approximately 60 million (Laage Gaupp et al., 2019). Although special programs have been established to train future radiologists (Iyawe et al., 2021). The shortage remains evident, particularly as the population continues to grow. Applying deep learning in medical imaging is essential and may serve as an additional intervention strategy.

There is a shortage of orthopedic surgeons in most developing countries in SSA, although limited evidence exists to quantify the exact gap. In Malawi, non-physician clinicians have been providing orthopedic care due to the shortage of orthopedists, and results indicate that task-shifting can be safe (Wilhelm et al., 2017). Deep learning models that assist in fracture diagnosis and provide prescription recommendations can significantly aid in resource-limited conditions, such as the SSA. Recommendation systems in the healthcare industry are gaining popularity as technology advances, aiming to enhance personalized healthcare. A guideline-driven decision support system to support family healthcare, utilizing semantic technology and open data analysis, has been introduced (Wang and Qian, 2021). An evidence-based clinical guideline system and monitored adherence to COVID-19 treatment recommendations have been implemented (Lichtner et al., 2023). An intelligent system that predicts a disease and recommends drugs by utilizing machine learning algorithms is proposed (Nayak et al., 2023). It is crucial to continue advancing deep learning models to reach their full potential, especially in medical applications such as diagnosis and treatment.

4 Conclusion

This study aimed to develop an efficient multi-class object detection model for bone fracture diagnosis that incorporates prescription recommendations. The research has also shown that the model’s efficiency and performance can be improved by modifying the anchoring process to search for areas where objects are likely to be located. Experiments have confirmed that applying adaptive anchoring in the process may reduce training time by up to 29%. This approach will help expand our understanding of how to continually improve object detection efficiency and performance. The study primarily confirmed that the object detection model can be utilized for bone fracture diagnosis and to suggest a corresponding prescription. Another important practical implication is that the study has identified the group most prone to bone fractures, the mechanisms of injury, and the locations of fractures, disaggregated by patient age. This provides valuable insight for law enforcement organizations in addressing the causes of bone fractures and for medical practitioners in treating them. The focus of this study was confined to long bones; notwithstanding this limitation, it offers valuable insights into the use of deep learning models as recommendation systems in medical applications.

Data availability statement

The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding author.

Ethics statement

The studies involving humans were approved by The Center for Education Development in Health (CEDA), Kibong’oto Infectious Diseases Hospital (KIDH), and the Nelson Mandela African Institution of Science and Technology (NM-AIST). The studies were conducted in accordance with the local legislation and institutional requirements. Written informed consent for participation was not required from the participants or the participants’ legal guardians/next of kin in accordance with the national legislation and institutional requirements.

Author contributions

DM: Data curation, Writing – original draft, Conceptualization, Writing – review & editing, Formal analysis, Methodology. SK: Formal analysis, Conceptualization, Writing – review & editing, Supervision. SS: Data curation, Investigation, Writing – review & editing, Supervision. DN: Conceptualization, Supervision, Methodology, Writing – review & editing, Formal Analysis.

Funding

The author(s) declared that financial support was not received for this work and/or its publication.

Conflict of interest

The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declared that Generative AI was not used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

Bergh, C., Wennergren, D., Möller, M., and Brisby, H. (2021). Fracture incidence in adults in relation to age and gender: a study of 27,169 fractures in the Swedish fracture register in a well-defined catchment area. PLoS One 15:e0244291. doi: 10.1371/journal.pone.0244291

Crossref Full Text | Google Scholar

Chen, C., Lin, J. R., Zhang, Y., Ye, T. B., and Yang, Y. F. (2024). A systematic analysis on global epidemiology and burden of foot fracture over three decades. Chin. J. Traumatol. 28, 208–215. doi: 10.1016/j.cjtee.2024.03.001

Crossref Full Text | Google Scholar

Ghosh, M., Hassan, S., and Debnath, P. (2021). Ensemble based neural network for the classification of MURA dataset. J. Nat. 4, 1–5. doi: 10.36937/janset.2021.004.001

Crossref Full Text | Google Scholar

Hansmann, C. (1886). Eine neue Methode der Fixierung der Fragmente bei complicierten Frakturen. Verh. Dtsch. Ges. Chir. :158, 134–136.

Google Scholar

He, K, Zhang, X, Ren, S, and Sun, J. Deep residual learning for image recognition. In: Proceeding of the IEEE computer society conference on computer vision and pattern recognition. 2016;770–778 San Juan: IEEE

Google Scholar

Hurley, E. T., Wickman, J., Crook, B. S., Cabell, G., Rodriguez, K., Boadi, P., et al. (2023). Intramedullary nailing vs. open reduction–internal fixation for humeral shaft fractures: a meta-analysis of randomized controlled trials. J. Shoulder Elb. Surg. 32, 2567–2574. doi: 10.1016/j.jse.2023.07.015,

PubMed Abstract | Crossref Full Text | Google Scholar

Iyawe, E. P., Idowu, B. M., and Omoleye, O. J. (2021). Radiology subspecialisation in Africa: a review of the current status. S. Afr. J. Radiol. 25:2168. doi: 10.4102/sajr.v25i1.2168

Crossref Full Text | Google Scholar

Johari, N., and Singh, N. (2018). Bone fracture detection using edge detection technique. Adv. Intell. Syst. Comput 584, 11–19. doi: 10.1007/978-981-10-5699-4_2

Crossref Full Text | Google Scholar

Kandel, I., Castelli, M., and Popovic, A. (2020). Musculoskeletal images classification for detection of fractures using transfer learning. J. Imaging 6:127. doi: 10.3390/jimaging6110127,

PubMed Abstract | Crossref Full Text | Google Scholar

Laage Gaupp, F. M., Solomon, N., Rukundo, I., Naif, A. A., Mbuguje, E. M., Gonchigar, A., et al. (2019). Tanzania IR initiative: training the first generation of interventional radiologists. J. Vasc. Interv. Radiol. 30, 2036–2040. doi: 10.1016/j.jvir.2019.08.002,

PubMed Abstract | Crossref Full Text | Google Scholar

Lichtner, G., Spies, C., Jurth, C., Bienert, T., and Mueller, A. (2023). Automated monitoring of adherence to evidenced-based clinical guideline recommendations: design and implementation study. J. Med. Internet Res. 25:e41177. doi: 10.2196/41177,

PubMed Abstract | Crossref Full Text | Google Scholar

Lindsey, R., Daluiski, A., Chopra, S., Lachapelle, A., Mozer, M., Sicular, S., et al. (2018). Deep neural network improves fracture detection by clinicians. Proc. Natl. Acad. Sci. USA 115, 11591–11596. doi: 10.1073/pnas.1806905115,

PubMed Abstract | Crossref Full Text | Google Scholar

Ma, Y., and Luo, Y. (2021). Bone fracture detection through the two-stage system of crack-sensitive convolutional neural network. Inf. Med. Unlocked 22:100452. doi: 10.1016/j.imu.2020.100452

Crossref Full Text | Google Scholar

Meena, T., and Roy, S. (2022). Bone fracture detection using deep supervised learning from radiological images: a paradigm shift. Diagnostics 12:2420, 1–17. doi: 10.3390/diagnostics12102420

Crossref Full Text | Google Scholar

Menghani, G. (2023). Efficient deep learning: a survey on making deep learning models smaller, faster, and better. ACM Comput. Surv. 55, 1–37. doi: 10.1145/3578938

Crossref Full Text | Google Scholar

Muraina, IO Ideal dataset splitting ratios in machine learning algorithms: general concerns for data scientists and data analysts. In: 7th international Mardin Artuklu scientific Researches conference. Mardin, Turkey; 2021 496–504.

Google Scholar

Myint, W. W., Tun, H. M., and Tun, K. S. (2018). Analysis on detecting of leg bone fracture from X-ray images. Int. J. Scient. Res Publicat. 8, 371–377. doi: 10.29322/IJSRP.8.9.2018.p8150

Crossref Full Text | Google Scholar

Nayak, S. K., Panda, S. K., Garanayak, M., Swain, S. K., and Godavarthi, D. (2023). An intelligent disease prediction and drug recommendation prototype by using multiple approaches of machine learning algorithms. IEEE Access 11, 99304–99318. doi: 10.1109/ACCESS.2023.3314332

Crossref Full Text | Google Scholar

Nikhil, K, Reddy, K, and Cutsuridis, V. Deep convolutional neural networks with transfer learning for bone fracture recognition using small exemplar image datasets. In: 2023 IEEE international conference on acoustics, speech, and signal processing workshops (ICASSPW). Rhodes Island, Greece: IEEE; 2023. 1–5.

Google Scholar

Pouramin, P., Li, C. S., Sprague, S., Busse, J. W., and Bhandari, M. (2019). A multicenter observational study on the distribution of orthopaedic fracture types across 17 low- and middle-income countries. OTA Int. Open Access J. Orthop. Trauma 2:e026. doi: 10.1097/OI9.0000000000000026,

PubMed Abstract | Crossref Full Text | Google Scholar

Qi, Y., Zhao, J., Shi, Y., Zuo, G., Zhang, H., Long, Y., et al. (2020). Ground truth annotated femoral X-ray image dataset and object detection based method for fracture types classification. IEEE Access 8, 189436–189444. doi: 10.1109/ACCESS.2020.3029039

Crossref Full Text | Google Scholar

Shen, M., and Tejwani, N. (2024). Open tibial shaft fracture fixation strategies: intramedullary nailing, external fixation, and plating. OTA Int. 7:e316. doi: 10.1097/OI9.0000000000000316,

PubMed Abstract | Crossref Full Text | Google Scholar

Tahir, H, Muhammad Shahbaz, K, and Tariq Muhammad, O Performance analysis and comparison of faster R- CNN, mask R-CNN and ResNet50 for the detection and counting of vehicles. In: In 2021 international conference on computing, communication, and intelligent systems (ICCCIS). New York: IEEE; 2021;587–594.

Google Scholar

Tanzi, L., Vezzetti, E., Moreno, R., and Moos, S. (2020). X-ray bone fracture classification using deep learning: a baseline for designing a reliable approach. Appl. Sci. 10:1507. doi: 10.3390/app10041507

Crossref Full Text | Google Scholar

Thompson, N, Greenewald, K, Lee, K, and Manso, GF 2023 The computational limits of deep learning. New York, NY, USA: ACM (Association for Computing Machinery).

Google Scholar

Wang, W., and Huang, W. (2022). Attention mechanism-based deep learning method for hairline fracture detection in hand X-rays. Neural Comput. and Applic. 34, 18773–18785. doi: 10.1007/s00521-022-07412-0,

PubMed Abstract | Crossref Full Text | Google Scholar

Wang, H., and Qian, G. (2021). Guideline-driven medical decision support methods for family healthcare. IEEE Access 9, 116612–116621. doi: 10.1109/ACCESS.2021.3106116

Crossref Full Text | Google Scholar

WHO (2023). Road traffic injuries. Available online at: https://www.who.int/news-room/fact-sheets/detail/road-traffic-injuries (Accessed June 11, 2024).

Google Scholar

Wilhelm, T. J., Dzimbiri, K., Sembereka, V., Gumeni, M., and Bach, O. (2017). Task-shifting of orthopaedic surgery to non-physician clinicians in Malawi: effective and safe? Trop. Dr. 47, 294–299. doi: 10.1177/0049475517717178,

PubMed Abstract | Crossref Full Text | Google Scholar

Wu, H. Z., Yan, L. F., Liu, X. Q., Yu, Y. Z., Geng, Z. J., Wu, W. J., et al. (2021). The feature ambiguity mitigate operator model helps improve bone fracture detection on X-ray radiograph. Sci. Rep. 11:1589. doi: 10.1038/s41598-021-81236-1

Crossref Full Text | Google Scholar

Xue, L., Yan, W., Luo, P., Zhang, X., Chaikovska, T., Liu, K., et al. (2021). Detection and localization of hand fractures based on GA_Faster R-CNN. Alex. Eng. J. 60, 4555–4562. doi: 10.1016/j.aej.2021.03.005

Crossref Full Text | Google Scholar

Yadav, DP, and Rathor, S. Bone fracture detection and classification using deep learning approach. 2020 international conference on power electronics IoT applications in renewable energy its control PARC 2020. 2020;282–285 Red Hook, NY: Curran Associates, Inc

Google Scholar

Yang, T. H., Horng, M. H., Li, R. S., and Sun, Y. N. (2022). Scaphoid fracture detection by using convolutional neural network. Diagnostics 12:895. doi: 10.3390/diagnostics12040895,

PubMed Abstract | Crossref Full Text | Google Scholar

Keywords: bone fracture, object detection, adaptive anchoring, prescription, Tanzania

Citation: Migayo DM, Kaijage S, Swetala S and Nyambo DG (2026) Enhanced multi-class object detector for bone fracture diagnosis with prescription recommendation. Front. Artif. Intell. 8:1692894. doi: 10.3389/frai.2025.1692894

Received: 26 August 2025; Revised: 20 November 2025; Accepted: 22 December 2025;
Published: 12 January 2026.

Edited by:

Francesco Faita, Institute of Clinical Physiology, Italy

Reviewed by:

Eugenio Vocaturo, National Research Council (CNR), Italy
Vassilis Cutsuridis, University of Plymouth, United Kingdom

Copyright © 2026 Migayo, Kaijage, Swetala and Nyambo. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Daudi Mashauri Migayo, bWlnYXlvZEBubS1haXN0LmFjLnR6

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.