AI Based Detection and Multi-Class Classification of Femoral and Deformities Using Explainable Deep Learning

Authors

  • Marwa J. Mohammed College of Biomedical Engineering, University of Technology, Baghdad, IRAQ.

DOI:

https://doi.org/10.55544/sjmars.5.6.1

Keywords:

Femur Deformity, Femoral Fracture, Deep Learning, Object Detection, Anatomical Alignment, Domain Shift, Explainable AI, Grad-CAM, Neck-Shift Angle, Biomedical Engineering

Abstract

Background: There are many challenges in localizing and categorizing pathologies in the proximal and shaft regions of the femur on plain radiographs, such as images with Coxa Vara, Coxa Valga, suspected Femoral Retroversion, and Femoral Fractures. These challenges arise due to many factors including projectional variability, non-standardized patient posture and imaging, and significant differences in image acquisition at clinical centers. In this paper, we explore the feasibility of a data-driven approach for preprocessing the images to align the femur prior to object detection using deep convolutional networks.

Method: The preprocessing pipeline for anatomical alignment of a femur in images as well as the following object detection and visual explanation are implemented as a prototype using four stages of preprocessing (adapted from Kwon et al.) followed by a single-stage convolutional detector YOLOv8 and a Gradient-weighted Class Activation Mapping (Grad-CAM). The preprocessing pipeline in the first stage detects the contour of the femur and in the second stage the medial diaphyseal shaft axis of the femur is computed by using second-order polynomials and fitting data to the polynomials using Random Sample Consensus (RANSAC). In the third stage, images are rotated so that the diaphysis is aligned to the vertical axis of the image and in the last stage a normalized Region of Interest (ROI) is extracted from the images. For training and evaluation of the model a multi-source dataset of 1,098 X-ray images (898 clinical images from open sources and 200 synthesized images for calibration purposes) was used. The five categories of pathologies of the proximal and shaft regions of the femur were classified in the clinical images, i.e. Normal, Coxa Vara, Coxa Valga, suspected Retroversion and Fracture of the femur. Automated morphometric measurement of the angle of the CCD (Caput-Collum-Diaphyseal) angle was also included in the clinical images for quantitative biomechanical analysis of the pathologies.

Results on the validation set (for the held-out cohort of 175 images): The alignment enhanced model YOLOv8 performs with mean Average Precision (mAP@50) of 0.648, and mAP@50-95 of 0.488, with corresponding precision and recall values of 0.768 and 0.526 respectively. Compared to the unaligned baseline model of Recall = 0.412 (sensitivity +11.4% / +27.7% relative) on the validation set of 175 images, the results on the test set of 114 images with 142 target instances are: mAP@50 of 0.592 and mAP@50-95 of 0.445 (Precision = 0.710, Recall = 0.456) on the independent test data. Classwise detection recall at fixed IoU threshold of 0.5 is 0.800 for Coxa Vara (5 instances), 0.667 for Retroversion (6 instances), 0.462 for Normal (39 instances), 0.400 for Fractures (40 instances), and only 0.212 for Coxa Valga (52 instances). Even though object detection recall is poor for fractures and valga cases, image-level classification is quite discriminative. Also, Grad-CAM saliency heatmaps correctly steer the focus of the neural network to relevant parts of the images, i.e. to fracture lines and neck-shaft junctions. The results of intrinsic anatomical verticalization of object detection features within plain radiographs provides a measureable benefit towards robust feature learning. However, the system’s low sensitivity towards non-displaced fractures and minor angular deformities indicates that this is a research exploratory system not ready for clinical use. Future work can include retraining of the system on a GPU for increased number of epochs, prospective multi-center study with blinding of the readers, and true 3D cross-verification with CT for rotational versions of Hip radiographs.

References

[1] Standring, S. (2021). Gray's Anatomy: The Anatomical Basis of Clinical Practice (42nd ed.). Elsevier Health Sciences.

[2] Bhandari, M., & Swiontkowski, M. (2017). Management of acute hip fracture. New England Journal of Medicine, 377(21), 2053-2062.

[3] Koulouvaris, P., Stafylas, K., Sculco, T., & Xenakis, T. (2008). Custom-design implants for severe distorted proximal anatomy of the femur in young adults. Acta Orthopaedica, 79(2), 203-210.

[4] Aunan, E., Østergaard, D., Meland, A., Dalheim, K., & Sandvik, L. (2017). A simple method for accurate rotational positioning of the femoral component in total knee arthroplasty. Acta Orthopaedica, 88(6), 657-663.

[5] Murphy, S. B., Simon, S. R., Kijewski, P. K., Wilkinson, R. H., & Griscom, N. T. (1987). Femoral anteversion. The Journal of Bone & Joint Surgery, 69(8), 1169-1176.

[6] Schmidt, G., Altman, G., Dougherty, J., & DeMeo, P. (2010). Reproducibility and reliability of the anatomic axis of the lower extremity. The Journal of Knee Surgery, 17(03), 140-143.

[7] Pauwels, F. (1976). Biomechanics of the Normal and Diseased Hip: Theoretical Foundation, Technique and Results of Treatment. Springer-Verlag, Berlin.

[8] Tannast, M., Siebenrock, K. A., & Anderson, S. E. (2007). Femoroacetabular impingement: radiographic diagnosis—what the radiologist should know. American Journal of Roentgenology, 188(6), 1540-1552.

[9] Clohisy, J. C., Carlisle, J. C., Beaule, P. E., et al. (2008). A systematic approach to the plain radiographic evaluation of the young adult hip. The Journal of Bone & Joint Surgery, 90(Suppl 4), 47-66.

[10] Schmaranzer, F., Movahhedi, M., Singh, M., Kallini, J. R., Nanavati, A. K., Steppacher, S. D., Heimann, A. F., Kiapour, A. M., & Novais, E. N. (2024). Computed tomography-based automated 3D measurement of femoral version: Validation against standard 2D measurements in symptomatic patients. Journal of Orthopaedic Research, 42(10), 2210-2221.

[11] Lerch, T. D., Todorski, I. A., Steppacher, S. D., Schmaranzer, F., Zheng, G., Ryan, M. K., & Siebenrock, K. A. (2018). High prevalence of excessive femoral torsion in patients with femoroacetabular impingement. The American Journal of Sports Medicine, 46(11), 2734-2744.

[12] Cooper, C., Campion, G., & Melton, L. J. (1992). Hip fractures in the elderly: a world-wide projection. Osteoporosis International, 2(6), 285-289.

[13] Shree, S., Bhagawati, R., Chanda, S., & Neog, D. R. (2025). From pixels to diagnosis: A systematic review of deep learning in femoral fracture detection and classification. Bioengineering and Healthcare Informatics, 18, 01018.

[14] Liu, P., Lu, L., Chen, Y., Huo, T., Xue, M., Wang, H., Fang, Y., Xie, Y., Xie, M., & Ye, Z. (2022). Artificial intelligence to detect the femoral intertrochanteric fracture: The arrival of the intelligent-medicine era. Frontiers in Bioengineering and Biotechnology, 10, 927926.

[15] Katsoulis, M., Benetou, V., Karapetyan, T., et al. (2017). Excess mortality after hip fracture in elderly persons from Europe and the USA: the CHANCES project. Journal of Internal Medicine, 281(3), 300-310.

[16] Park, C. W., Oh, S. J., Kim, K. S., Jang, M. C., Kim, I. S., Lee, Y. K., Chung, M. J., Cho, B. H., & Seo, S. W. (2022). Artificial intelligence-based classification of bone tumors in the proximal femur on plain radiographs: System development and validation. PLOS ONE, 17(2), e0264140.

[17] Mattijssen-Horstink, L., Langeraar, J. J., Mauritz, G. J., et al. (2020). Radiologic discrepancies in diagnosis of fractures in a Dutch teaching emergency department: a retrospective analysis. Scandinavian Journal of Trauma, Resuscitation and Emergency Medicine, 28(1), 38.

[18] McDaniel, G., Mitchell, K. L., Charles, C., & Kraus, V. B. (2010). A comparison of five approaches to measurement of anatomic knee alignment from radiographs. Osteoarthritis and Cartilage, 18(2), 273-277.

[19] Simon, S., Fischer, B., Rinner, A., et al. (2023). Body height estimation from automated length measurements on standing long leg radiographs using artificial intelligence. Scientific Reports, 13, 8504.

[20] Kwon, D., Lee, J. H., Kim, J. W., Kim, J. W., Yoon, S. J., Jeong, S., & Oh, C. W. (2025). Anatomical alignment of femoral radiographs enables robust AI-powered detection of incomplete atypical femoral fractures. Mathematics, 13(22), 3720.

[21] Guan, H., & Liu, M. (2021). Domain adaptation for medical image analysis: A survey. IEEE Transactions on Biomedical Engineering, 69(3), 1173-1185.

[22] Yoon, J. S., Oh, K., Shin, Y., Mazurowski, M. A., & Suk, H. I. (2024). Domain generalization for medical image analysis: A review. Proceedings of the IEEE, 112(10), 1583-1609.

[23] Yang, Q., Wang, Y., Ji, P., & Wang, K. (2024). Automatic 3D reconstruction of the femur. In Proceedings of the 2024 7th International Conference on Artificial Intelligence and Pattern Recognition (AIPR 2024), ACM, pp. 416-425.

[24] Torimitsu, S., Ikari, H., Tsuneya, S., Uemura, Y., Okada, M., Kojima, M., Chiba, F., Iwase, H., Kawakami, E., & Makino, Y. (2026). Automated femoral measurement from postmortem computed tomographic images using artificial intelligence for forensic stature estimation in a Japanese population. International Journal of Legal Medicine, 140, 3141-3149.

[25] Chung, S. W., Han, S. S., Lee, J. W., et al. (2018). Automated detection and classification of the proximal humerus fracture by using deep learning algorithm. Acta Orthopaedica, 89(4), 468-473.

[26] Urakawa, T., Tanaka, Y., Goto, S., Matsuzawa, H., Watanabe, K., Endo, N., & Sanada, S. (2019). Detecting intertrochanteric hip fractures with deep learning. Clinical Orthopaedics and Related Research, 477(1), 252-260.

[27] Yıldız Potter, İ., Yeritsyan, D., Mahar, S., Kheir, N., Vaziri, A., Putman, M., Rodriguez, E. K., Wu, J., Nazarian, A., & Vaziri, A. (2024). Proximal femur fracture detection on plain radiography via feature pyramid networks. Scientific Reports, 14, 12046.

[28] Ren, S., He, K., Girshick, R., & Sun, J. (2015). Faster R-CNN: Towards real-time object detection with region proposal networks. Advances in Neural Information Processing Systems (NeurIPS), 28, 91-99.

[29] Jocher, G., Chaurasia, A., & Qiu, J. (2023). Ultralytics YOLOv8 (Version 8.3.235). GitHub repository: https://github.com/ultralytics/ultralytics.

[30] Selvaraju, R. R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., & Batra, D. (2017). Grad-CAM: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pp. 618-626.

[31] Kim, T., Moon, N. H., Goh, T. S., & Jung, I. D. (2023). Detection of incomplete atypical femoral fracture on anteroposterior radiographs via explainable artificial intelligence. Scientific Reports, 13, 10415.

[32] Nguyen, H. H., Le, D. T., Shore-Lorenti, C., et al. (2024). AFFnet—a deep convolutional neural network for the detection of atypical femur fractures from anteriorposterior radiographs. Bone, 187, 117215.

[33] Van den Borre, I., Audenaert, E., Vermue, H., Huysentruyt, R., Van Vynckt, L., Vanhauwe, R., Pas, V., Pizurica, A., & Van Oevelen, A. (2026). Combining deep learning with statistical shape modelling enables automated lower limb measurements with observer-level reliability using weight-bearing computed tomography. Journal of Experimental Orthopaedics, 13, e70669.

[34] Wasserthal, J., Breit, H. C., Meyer, M. T., et al. (2023). TotalSegmentator: robust segmentation of 104 anatomic structures in CT images. Radiology: Artificial Intelligence, 5(5), e230024.

[35] Fischler, M. A., & Bolles, R. C. (1981). Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography. Communications of the ACM, 24(6), 381-395.

[36] Marsh, J. L., Slongo, T. F., Agel, J., et al. (2007). Fracture and dislocation classification compendium—2007: Orthopaedic Trauma Association classification, database and outcomes committee. Journal of Orthopaedic Trauma, 21(10 Suppl), S1-S133.

[37] Khameneh, N. B., Cresson, T., Lavoie, F., de Guise, J., & Vázquez, C. (2025). Automatic CNN-based 3D/2D non-rigid registration platform for fast 3D femur reconstruction and clinical 3D measurements from bi-planar radiographs. Computer Methods and Programs in Biomedicine, 244, 107955.

[38] Aldieri, A., Biondi, R., La Mattina, A. A., Szyszko, J. A., Polizzi, S., Dall’Olio, D., Curti, N., Castellani, G., & Viceconti, M. (2024). Development and validation of a semi-automated and unsupervised method for femur segmentation from CT. Scientific Reports, 14, 7403.

[39] Saillard, E., Gardegaront, M., Levillain, A., Bermond, F., Mitton, D., Pialat, J. B., Confavreux, C., Grenier, T., & Follet, H. (2024). Finite element models with automatic computed tomography bone segmentation for failure load computation. Scientific Reports, 14, 16576.

[40] Xie, W., Chen, P., Li, Z., Wang, X., Wang, C., Zhang, L., Wu, W., Xiang, J., Wang, Y., & Zhong, D. (2025). A two stage deep learning network for automated femoral segmentation in bilateral lower limb CT scans. Scientific Reports, 15, 9418.

[41] Grammens, J., Van Haver, A., Lumban-Gaol, I., Danckaers, F., Verdonk, P., & Sijbers, J. (2024). Automated landmark annotation for morphometric analysis of distal femur and proximal tibia. Journal of Imaging, 10(4), 90.

[42] Apivanichkul, K., Phasukkit, P., Dankulchai, P., Sittiwong, W., & Jitwatcharakomol, T. (2023). Enhanced deep-learning-based automatic left-femur segmentation scheme with attribute augmentation. Sensors, 23(12), 5720.

[43] Otsu, N. (1979). A threshold selection method from gray-level histograms. IEEE Transactions on Systems, Man, and Cybernetics, 9(1), 62–66.

[44] OpenCV. (n.d.). Geometric Image Transformations. OpenCV Documentation.

[45] Zheng, Z., Wang, P., Liu, W., Li, J., Ye, R., & Ren, D. (2020). Distance-IoU loss: Faster and better learning for bounding box regression. Proceedings of the AAAI Conference on Artificial Intelligence, 34(07), 12993–1300

Downloads

Published

2026-11-28

How to Cite

J. Mohammed, M. (2026). AI Based Detection and Multi-Class Classification of Femoral and Deformities Using Explainable Deep Learning. Stallion Journal for Multidisciplinary Associated Research Studies, 5(6), 1–15. https://doi.org/10.55544/sjmars.5.6.1

Similar Articles

1 2 3 4 5 6 7 8 9 10 > >> 

You may also start an advanced similarity search for this article.