Prediction of gap balancing based on 2-D radiography in total knee arthroplasty for knee osteoarthritis patients
Arthroplasty volume 5, Article number: 60 (2023)
To investigate the influence of osteophytes on postoperative gap balancing, and to work out a predictive model of the relationship between osteophyte size and gap gaining in primary total knee replacement.
One hundred and ten patients were enrolled in the study. Pre- and postoperative radiographs were collected and analyzed. They were assigned to the training dataset and test dataset randomly at a ratio of 9:1 by using the statistical package R (version 4.0.5). Size and marginal distances of osteophytes, planned bone cut planes, predicted bone cuts and joint gaps were labeled on the preoperative standing anteroposterior and lateral views, while actual bone cuts and joint gaps were recorded on the postoperative plain films, respectively. Statistical analysis was performed.
Actual joint gaps were significantly related to the distances of medial and lateral predictive bone cutting lines, bone cut thickness on tibial side and posterior condylar, as well as size and marginal distances of osteophytes (P < 0.05). A predictive equation was generated, with a root mean square error (RMSE) of 3.4761 in validation. A 2-D planning system with adjustable input parameters and dim predictive outputs on joint gap was developed. The equation is \(S \left(Joint Gap\right)=1.82+0.15*y+0.552*Tibial cut+0.953*Femoral cut+0.197*Post Condyle\)
Postoperative joint gap can be predicted on the basis of preoperative measurements on 2-D plain films. Larger sample size may help improve the effectiveness and accuracy of the predictive equation.
Total knee arthroplasty (TKA) is commonly used for surgical treatment of knee osteoarthritis (OA) with good to excellent results reported. Preoperative planning is essential for a successful TKA procedure. The precision of planning has improved with the utility of digital planning systems and applying planning on three-dimensional images, which are considered more accurate .
As one of the basic steps of TKA, gap balancing, an important technique, can create stable and balanced medial–lateral and flexion–extension gaps. Gap balancing can be variously achieved by removal of osteophytes, proper release of soft tissues, and reasonable compromise to alignments, depending on different alignment concepts adopted. Intraoperatively, gap balance is a hand-check procedure, that relies on the experience of surgeons. Although the effect of osteophyte removal can be predicted from preoperative radiographic films, it is difficult to precisely quantify a balanced gap after release.
Computer science has been increasingly used in various medical settings. More recently, artificial intelligence (AI)-based medical systems have become commercially available. Modern systems armed with machine learning algorithms have been applied in image processing, health state monitoring and prediction, detection of diseases, medication administration and management of patients, among others [2,3,4,5,6,7,8].
In this study, we attempted to develop a 2-D planning system with an algorithm of the balanced gap from the preoperative plain film of the knee. Computer-assisted methods were used to investigate the influence of osteophytes on postoperative gap balancing and to obtain an equation that predicts the relationship between osteophyte size and gap gaining in primary TKA for OA.
Radiographic data of patients who received primary TKA from January to December 2021 were reviewed. One hundred and ten TKA cases that met the inclusion criteria were enrolled. Criteria for inclusion and exclusion are shown in Fig. 1. Standard pre- and postoperative anteroposterior and lateral radiographs of the knee were collected for analysis. The study was approved by Ethics Committee of our institute (Approved Number: S2020-005–01).
Several elements were defined on preoperative AP and lateral plain films (see Table 1, Fig. 2A and B). The thickness of the bone cut was calculated. Due to the irregularity in osteophyte shapes, the area of osteophytes on the femoral and tibial sides was taken as trapeziform, of which the apexes were defined on plain film. Borders of the trapeziform were designated w, x, y, and z (Fig. 2C).
On the postoperative films, only bone-cut lines were located (Table 2). We assumed that all included cases achieved a balanced rectangular joint gap after bone cut and soft tissue balancing. A rectangle was defined, with its longer borders standing for bone cut lines, while the shorter borders used for the measurement of joint gap (Fig. 2D).
Calibration of magnification and modification of labeled elements
Given errors that might occur in magnification, a marker was used during radiographic examination. Calibrated data were collected using unified magnification.
Since it was difficult to obtain the exact thickness of bone intraoperatively, and cutting lines on the femoral and tibial sides might not be precisely shown on X-ray films, modification of cutting line(s) might be required to obtain more precise parameters. Pre- and postoperative AP films were overlapped in a unified magnification. If cutting lines on pre- and postoperative films were not consistent, it was adjusted on preoperative AP film, and the amount of cutting was recalculated (Fig. 2E).
Gap balancing techniques were utilized during the TKA procedure . Routine mid-incision and medial parapatellar approach were applied for arthrotomy. Osteophytes protruding from the medial cortex of the distal femur and proximal tibia were removed. Since osteophytes of the posterior distal femur were inaccessible before bone cutting, they were left intact until 4-in-1 cutting was performed. A distal femoral cut was made first, with valgus of cutting jig set to 5°. Afterwards, a perpendicular tibial cut was made. Two lamina spreaders were inserted into medial and lateral joint spaces, respectively. The lateral joint gap should be big enough to allow for spacer trial, while a 1-to-2 mm compromise of medial gap might be acceptable, because posterior osteophytes were left intact. External rotation of femoral component was determined with the knee in 90° flexion. Spreaders were inserted into the space between posterior condyles and tibial plateau, and maximum tension of collateral ligaments was achieved. Upon acheivement of balanced ligament tensions were achieved, a line parallel to tibial plateau was drawn on the surface of distal femur, which served as the external rotation reference. Then the four-in-one cutting procedure would be performed by following the principles of posterior reference procedure, as the distance between cutting lines of posterior condyles and tibia equaled to the total thickness of prosthesis in flexion. A spacer trial might be helpful for determining the position of cutting lines. As it lay on the tibial plateau, the upper side of the spacer stood for the position of cutting line of posterior femur. Osteophytes of posterior femur were removed. Flexion and extension gaps should be confirmed with a spacer or spreaders. We recommended using the trial spacers that go with the prosthetic system, or performing a trial reduction instead. No more soft tissue release should be performed as soon as bone cut is accomplished.
Estimation of joint gap upon osteophyte removal and soft tissue release
According to the rationale of gap balancing technique in TKA, soft tissue release should be minimal. The additional gap resulted mainly from removal of osteophytes, and was calculated from the difference between the outer and inner rims of osteophyte trapeziform area (Fig. 3).
Statistical analysis and predictive equation simulation
One hundred and ten cases were included in our study and were divided into a training dataset and a test dataset randomly at a ratio of 9:1. Statistical package R (Version 4.0.5, The R Foundation for Statistical Computing, Vienna, Austria) was used for statistical analysis. Relations among continuous variables were assessed in terms of Pearson’s correlation coefficient, while differences were tested by an independent t-test. A P < 0.05 was considered statistically significant.
Univariable linear regression analysis was performed to evaluate the association between each predictive variable and the joint gap. Additionally, stepwise regression was conducted. Considering the correlation between independent variables, independent variables that had significant influence on dependent variables and were independent of each other were chosen in the multivariable analysis. Meanwhile, distributions of residual and fitting values were checked to make sure that they were in line with the linear regression hypothesis.
A tenfold cross-validation was conducted to avoid a certain sampling bias. The fold with the best predictive effect was selected as the final model.
To compare the performance of the model and predict the contribution of the predictors in the multivariate linear regression model, we used R-squared to evaluate the performance of the models, with higher values indicating a more incredible prediction. Furthermore, the models' root mean square error (RMSE) and mean absolute error (MAE) of the models were also calculated . Low values of RMSE and MAE indicated good predictive power of the mode.
All variables showed no significant differences in mean values between the training dataset and test datasets (Table 3). As shown in Figure, thickness of tibial cut, femoral cut and posterior condyle, length of borders of osteophyte trapeziform (w, x, y, and z) and joint gap were correlated significantly (P < 0.05). Moreover, border lengths of osteophyte trapeziform were correlated with each other, as well (Fig. 4).
Univariate analysis and multivariate analysis results are listed in Table 4. Each predictor had a significant influence on the dependent variable in the univariate analysis (P < 0.05). The linear relationships were clearly shown between the predictors and Joint Gap (Fig. 5A).
Moreover, backwards-stepwise selection was conducted. Considering the collinearity of linearity, y, thickness of tibial cut, femoral cut and post condyle were retained in the multivariate analysis.
Distributions of residual and fitting values were shown in Fig. 5B, and satisfied the linear regression hypothesis.
The ten-fold cross validation
The result of the tenfold cross-validation is shown in Table 5. The performance of the ten-fold model showed that the R-squared value was large. And the RMSE, MAE values were relatively low, which indicated that the model had good-fitting and was robust.
The best performance fold was chosen for the establishment of the best model. R-Squared equaled 0.8191, which was close to 1 in the range of 0 and 1. The RMSE equaled 3.4761, which was acceptable in clinical practice.
Joint Gap calculation equation was as follows:
According to the aforementioned equation, a 2-D preoperative planning system was developed with adjustable parameters such as planned resection thicknesses and orientations of prosthesis, which may provide a rough prediction of joint gap based on surgeon-preset bone cutting (Fig. 6).
Postoperative parameters were demonstrated on the right panel. Osteophytes were identified automatically, and joint gap was calculated according to the predictive equation and preset bone cuts. Orientation and height of bone cuts can be adjusted.
Preoperative planning is a good start for all surgical procedures. Analog films had been used for years before digital radiographs were introduced. Errors in magnification made planning on analog films inaccurate. Digital preoperative planning has been proven to be more accurate in hip and knee arthroplasties [11, 12]. However, issues, such as implant rotation and extraarticular deformities, remained unaddressed in 2D planning procedure [13,14,15]. Recently, 3D templating based on CT or MRI scan yielded better accuracy in predicting implant size as compared to traditional 2D films . Meanwhile, Kobayashi et al. demonstrated the unnecessity of applying 3D templating before TKA, as their results failed to support the superiority of the technique in predicting implant size preoperatively . Robotic systems attained better results in alignment in TKA than individualized 3D planning, although the former is time-consuming and doesn’t produce superior PROMs than the latter . Moreover, any additional technique rather than traditional 2D templating may incur additional cost or radiation exposure. We attempted to plan on plain films, with influence on soft tissues taken into account. To our knowledge, it was the first attempt to quantitatively determine soft tissue release on a 2-D planning system.
By using the aforementioned equation, if the amount of preoperative femoral and tibial cut is known, targeted joint gap can be calculated and serve as a reference to surgeons. It should be mentioned that not all dimensions of osteophytes were involved in the equation. Only distance between tips of osteophyte protrusions significantly affected posterior joint gap. Additionally, it is well-known that the amount of bone cut will affect joint gap achieved, and, further, the thickness of tibial insert. This has been taken into account in the building of the model.
Machine learning has been widely used in medical fields and for preoperative planning of TKA, including implant size, position, economic analysis, outcome evaluation and patient/implant follow-ups [19,20,21,22,23,24]. Cross-validation is a method used for model and data-set validation to estimate the out-of-sample error. It has become quite popular because of its simplicity and utility [25, 26]. Ten-fold cross-validation performs the fitting procedure a total of ten times, with each fit being performed on a training set consisting of 90% of the total training set selected at random, with the remaining 10% used as a holdout set for validation. In our study, we conducted a ten-fold cross-validation by using the R software to avoid sampling bias and it is an effective attempt to use the machine learning concept to deal with large samples.
Our study is subject to limitations. First, all data were reviewed retrospectively, while the sample size was relatively small. Loss of intraoperative information might bring sample bias to the study. We conducted a cross-validation of samples to minimize the influence of sample size. Secondly, Some factors, such as surgeons' understanding about soft tissue balancing that might influence their maneuver or mis-handlings during operation, are not taken into consideration. Moreover, surgeons' preference for balancing in TKA does influence the establishment of the model. We attempted to adjust parameters in the system to accommodate different surgical preferences such as ligament balancing or measurement resection in the published edition of our software. A prospective study with better design may be closer to real-world practice, and will improve the accuracy of planning. Implant variables were not considered in the model, either, because minimal variation in implant dimensions might not influence the results significantly. Last but not least, the equation we worked out may be useful in guiding preoperative planning but uncertainties in surgical procedures require the ability to respond flexibly during operation. A surgeon should take all possible factors into account preoperatively in order to perform a perfect surgery.
In this study, we have worked out an equation to predict the influence of preoperative radiographic elements on the soft tissue balancing before TKA, and a preoperative planning system has been developed. The computer-assisted method was proven useful in generating a reliable equation. Further studies are warranted to modify and improve the model to achieve better results.
Availability of data and materials
Study data and material were held by researchers in the Chinese PLA General Hospital. The datasets used and analyzed during the current study are available from the corresponding author upon reasonable request.
Tuecking LR, Ettinger M, Nebel D, Welke B, Schwarze M, Windhagen H, et al. 3D-surface scan based validated new measurement technique of femoral joint line reconstruction in total knee arthroplasty. J Exp Orthop. 2021;8(1):16 (Epub 2021/02/27).
Chung SW, Han SS, Lee JW, Oh KS, Kim NR, Yoon JP, et al. Automated detection and classification of the proximal humerus fracture by using deep learning algorithm. Acta Orthop. 2018;89(4):468–73 (Epub 2018/03/27).
Kim DH, MacKinnon T. Artificial intelligence in fracture detection: transfer learning from deep convolutional neural networks. Clin Radiol. 2018;73(5):439–45 (Epub 20171218).
Qin C, Yao D, Shi Y, Song Z. Computer-aided detection in chest radiography based on artificial intelligence: a survey. Biomed Eng Online. 2018;17(1):113 (Epub 20180822).
Thiebaut R, Thiessard F, Section Editors for the IYSoPH, Epidemiology I. Artificial Intelligence in Public Health and Epidemiology. Yearb Med Inform. 2018;27(1):207–10 Epub 2018/08/30.
Bayliss L, Jones LD. The role of artificial intelligence and machine learning in predicting orthopaedic outcomes. Bone Joint J. 2019;101-B(12):1476–8 (Epub 2019/12/04).
Beyaz S. A brief history of artificial intelligence and robotic surgery in orthopedics & traumatology and future expectations. Jt Dis Relat Surg. 2020;31(3):653–5 (Epub 2020/09/24).
Kim D, Lee JH, Kim SW, Hong JM, Kim SJ, Song M, et al. Quantitative Measurement of Pneumothorax Using Artificial Intelligence Management Model and Clinical Application. Diagnostics (Basel). 2022;12(8). Epub 20220729.
Dennis DA, Komistek RD, Kim RH, Sharma A. Gap balancing versus measured resection technique for total knee arthroplasty. Clin Orthop Relat Res. 2010;468(1):102–7 (Epub 2009/10/01).
Legates DR, McCabe GJ. Evaluating the use of “goodness-of-fit” Measures in hydrologic and hydroclimatic model validation. Water Resour Res. 1999;35(1):233–41.
The B, Diercks RL, van Ooijen PM, van Horn JR. Comparison of analog and digital preoperative planning in total hip and knee arthroplasties. A prospective study of 173 hips and 65 total knees. Acta Orthop. 2005;76(1):78–84.
Vanin N, Kenaway M, Panzica M, Jagodzinski M, Meller R, Krettek C, et al. Accuracy of digital preoperative planning for total knee arthroplasty. Technol Health Care. 2010;18(4–5):335–40.
Okamoto S, Mizu-uchi H, Okazaki K, Hamai S, Tashiro Y, Nakahara H, et al. Two-dimensional planning can result in internal rotation of the femoral component in total knee arthroplasty. Knee Surg Sports Traumatol Arthrosc. 2016;24(1):229–35 (Epub 20141009).
Tanzer M, Makhdom AM. Preoperative planning in primary total knee arthroplasty. J Am Acad Orthop Surg. 2016;24(4):220–30 (Epub 2016/03/19).
Wu PH, Zhang ZQ, Gu MH, Zhao XY, Kang Y, Liao WM, et al. Radiographic measurement of femoral lateral bowing and distal femoral condyle resection thickness: variances and effects on total knee arthroplasty planning. Chin Med J (Engl). 2017;130(21):2557–62.
Ettinger M, Claassen L, Paes P, Calliess T. 2D versus 3D templating in total knee arthroplasty. Knee. 2016;23(1):149–51 (Epub 20160105).
Kobayashi A, Ishii Y, Takeda M, Noguchi H, Higuchi H, Toyabe S. Comparison of analog 2D and digital 3D preoperative templating for predicting implant size in total knee arthroplasty. Comput Aided Surg. 2012;17(2):96–101 (Epub 20120206).
Lei K, Liu L, Yang P, Xiong R, Yang L, He R, et al. Robotics versus personalized 3D preoperative planning in total knee arthroplasty: a propensity score-matched analysis. J Orthop Surg Res. 2022;17(1):227 (Epub 20220411).
Hyer JM, White S, Cloyd J, Dillhoff M, Tsung A, Pawlik TM, et al. Can We Improve Prediction of Adverse Surgical Outcomes? Development of a Surgical Complexity Score Using a Novel Machine Learning Technique. J Am Coll Surg. 2020;230(1):43–52 e1 (Epub 2019/11/02).
Groot OQ, Bongers MER, Ogink PT, Senders JT, Karhade AV, Bramer JAM, et al. Does artificial intelligence outperform natural intelligence in interpreting musculoskeletal radiological studies? A systematic review. Clin Orthop Relat Res. 2020;478(12):2751–64 (Epub 2020/08/03).
Picard F, Deakin AH, Riches PE, Deep K, Baines J. Computer assisted orthopaedic surgery: past, present and future. Med Eng Phys. 2019;72:55–65 (Epub 2019/09/27).
Jamshidi A, Pelletier JP, Martel-Pelletier J. Machine-learning-based patient-specific prediction models for knee osteoarthritis. Nat Rev Rheumatol. 2019;15(1):49–60.
Karnuta JM, Navarro SM, Haeberle HS, Helm JM, Kamath AF, Schaffer JL, et al. Predicting Inpatient Payments Prior to Lower Extremity Arthroplasty Using Deep Learning: Which Model Architecture Is Best? J Arthroplasty. 2019;34(10):2235–41 e1 Epub 2019/06/25.
Ramkumar PN, Karnuta JM, Navarro SM, Haeberle HS, Scuderi GR, Mont MA, et al. Deep learning preoperatively predicts value metrics for primary total knee arthroplasty: development and validation of an artificial neural network model. J Arthroplasty. 2019;34(10):2220–7 e1 (Epub 2019/07/10).
Hallstrom BR, Hughes RE, Huddleston JI 3rd. State-Based and National U.S. Registries: The Michigan Arthroplasty Registry Collaborative Quality Initiative (MARCQI), California Joint Replacement Registry (CJRR), and American Joint Replacement Registry (AJRR). J Bone Joint Surg Am. 2022;104(Suppl 3):18–22 (Epub 20221019).
Klemt C, Uzosike AC, Cohen-Levy WB, Harvey MJ, Subih MA, Kwon YM. The Ability of Deep Learning Models to Identify Total Hip and Knee Arthroplasty Implant Design From Plain Radiographs. J Am Acad Orthop Surg. 2022. Epub 20220208.
The authors would like to thank Jiying Chen, Haifeng Li, Yonggang Zhou, Fangyuan Yu, Wei Chai, Libo Hao and Qiang Lu for contributions of their surgical cases. We also acknowledge Dongling Xing, Deli Meng and Jery Li for their efforts in facilitating this study.
No funding was received for the study.
Ethics approval and consent to participate
The study was approved by the Ethics Committee of Chinese PLA General Hospital (Approved Number: S2020-005–01). Informed consent was obtained prior to study initiation.
Consent for publication
The authors confirmed that any identifying images or other personal or clinical details of participants presented in the manuscript have obtained consent for publication from participants in our study. Proof of consent for publication can be requested at any time.
Guoqiang Zhang is the member of Arthroplasty Editorial Board and other authors declare that they have no competing interests. All authors were not involved in the journal’s review or decisions related to this manuscript.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
About this article
Cite this article
Zhang, Z., Luo, Y., Zhang, C. et al. Prediction of gap balancing based on 2-D radiography in total knee arthroplasty for knee osteoarthritis patients. Arthroplasty 5, 60 (2023). https://doi.org/10.1186/s42836-023-00218-y