Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Apr;31(4):1323-1333.
doi: 10.1007/s00167-022-06957-w. Epub 2022 Apr 8.

Prediction of complications and surgery duration in primary TKA with high accuracy using machine learning with arthroplasty-specific data

Affiliations

Prediction of complications and surgery duration in primary TKA with high accuracy using machine learning with arthroplasty-specific data

Florian Hinterwimmer et al. Knee Surg Sports Traumatol Arthrosc. 2023 Apr.

Abstract

Purpose: The number of primary total knee arthroplasties (TKA) is expected to rise constantly. For patients and healthcare providers, the early identification of risk factors therefore becomes increasingly fundamental in the context of precision medicine. Others have already investigated the detection of risk factors by conducting literature reviews and applying conventional statistical methods. Since the prediction of events has been moderately accurate, a more comprehensive approach is needed. Machine learning (ML) algorithms have had ample success in many disciplines. However, these methods have not yet had a significant impact in orthopaedic research. The selection of a data source as well as the inclusion of relevant parameters is of utmost importance in this context. In this study, a standardized approach for ML in TKA to predict complications during surgery and an irregular surgery duration using data from two German arthroplasty-specific registries was evaluated.

Methods: The dataset is based on two initiatives of the German Society for Orthopaedics and Orthopaedic Surgery. A problem statement and initial parameters were defined. After screening, cleaning and preparation of these datasets, 864 cases of primary TKA (2016-2019) were gathered. The XGBoost algorithm was chosen and applied with a hyperparameter search, a cross validation and a loss weighting to cope with class imbalance. For final evaluation, several metrics (accuracy, sensitivity, specificity, AUC) were calculated.

Results: An accuracy of 92.0%, sensitivity of 34.8%, specificity of 95.8%, and AUC of 78.0% were achieved for predicting complications in primary TKA and 93.4%, 74.0%, 96.3%, and 91.6% for predicting irregular surgery duration, respectively. While traditional statistics (correlation coefficient) could not find any relevant correlation between any two parameters, the feature importance revealed several non-linear outcomes.

Conclusion: In this study, a feasible ML model to predict outcomes of primary TKA with very promising results was built. Complex correlations between parameters were detected, which could not be recognized by conventional statistical analysis. Arthroplasty-specific data were identified as relevant by the ML model and should be included in future clinical applications. Furthermore, an interdisciplinary interpretation as well as evaluation of the results by a data scientist and an orthopaedic surgeon are of paramount importance.

Level of evidence: Level IV.

Keywords: Artificial intelligence; Knee arthroscopy; Knee surgery; Machine learning; Supervised learning; Total knee arthroplasty.

PubMed Disclaimer

Conflict of interest statement

The authors certify that they have NO affiliations with or involvement in any organization or entity with any financial interest (such as honoraria; educational grants; participation in speakers’ bureaus; membership, employment, consultancies, stock ownership, or other equity interest; and expert testimony or patent-licensing arrangements), or non-financial interest (such as personal or professional relationships, affiliations, knowledge or beliefs) in the subject matter or materials discussed in this manuscript. The authors declare that they have no conflict of interest, financial or otherwise.

Figures

Fig. 1
Fig. 1
Flowchart describing training and testing datasets
Fig. 2
Fig. 2
Overview of algorithm development (adapted from [10])
Fig. 3
Fig. 3
Correlation matrix of all parameters
Fig. 4
Fig. 4
Area under the curve receiver operating characteristics (complications)
Fig. 5
Fig. 5
Feature importance of complication prediction
Fig. 6
Fig. 6
Area under the curve receiver operating characteristics (duration)
Fig. 7
Fig. 7
Feature importance of duration prediction

References

    1. Arias-de la Torre J, Smith K, Dregan A, Valderas JM, Evans JP, Prieto-Alhambra D, Lozano L, Molina AJ, Martín V, Domingo L, Muñoz L, Espallargues M. Impact of comorbidity on the short- and medium-term risk of revision in total hip and knee arthroplasty. BMC Musculoskelet Disord. 2020;21:447. doi: 10.1186/s12891-020-03455-3. - DOI - PMC - PubMed
    1. Baker PN, Rushton S, Jameson SS, Reed M, Gregg P, Deehan DJ (2013) Patient satisfaction with total knee replacement cannot be predicted from pre-operative variables alone: A cohort study from the National Joint Registry for England and Wales. Bone Joint J 95-b:1359–1365 - PubMed
    1. Bentéjac C, Csörgo A, Martínez-Muñoz G (2019) A Comparative Analysis of XGBoost. arXiv:1911.01914
    1. Boyer B, Bordini B, Caputo D, Neri T, Stea S, Toni A. What are the influencing factors on hip and knee arthroplasty survival? Prospective cohort study on 63619 arthroplasties. Orthop Traumatol Surg Res. 2019;105:1251–1256. doi: 10.1016/j.otsr.2019.07.020. - DOI - PubMed
    1. Bozic KJ, Kurtz SM, Lau E, Ong K, Chiu V, Vail TP, Rubash HE, Berry DJ. The epidemiology of revision total knee arthroplasty in the United States. Clin Orthop Relat Res. 2010;468:45–51. doi: 10.1007/s11999-009-0945-0. - DOI - PMC - PubMed