June 8, 2022

IB Lab LAMA™ - World’s first AI Software for fully automatic Measurements on Long Leg Radiographs with Hip or Knee Implants

IB Lab LAMA™ now supports radiographs with total hip and total knee implants, providing 12 standardized measurements for both pre- and post-surgery radiographs.

Share this article

IB Lab LAMA™ - World’s first AI Software for fully automatic Measurements on Long Leg Radiographs with Hip or Knee Implants

IB Lab LAMA™ now supports radiographs with total hip and total knee implants, providing 12 standardized measurements for both pre- and post-surgery radiographs.

June 8, 2022


Every year, orthopedic surgeons perform more than 1 million knee replacement surgeries in the United States alone1. Pre- and post-total knee arthroplasty (TKA) lower limb alignment is assessed manually or with the aid of interactive software applications, which can lead to high intra- and inter-reader variability, poor reproducibility and calibration errors. Furthermore, the measurement of angles and lengths on AP standing lower extremity radiographs is a time-consuming task. Currently, the best option to increase standardization in measurements is to continuously train medical professionals involved. Due to time and financial constraints, this is sometimes difficult to implement in hospitals and integrated healthcare systems.

Fully automated measurements of lower extremity radiographs could provide accurate, comprehensive, standardized and reproducible results more efficiently than the current radiological procedure. Graphical reports illustrating all measurements enable explainable artificial intelligence and mitigate the black-box phenomenon. 


The radiographic assessment of lower extremities is a standard protocol to estimate limb length discrepancies and knee alignment for the purpose of surgical planning as well as post-operative assessment. Interventions include, among others, open wedge high tibial osteotomy (OWHTO) (2), double-level osteotomy (DLO) (3), and total knee arthroplasty (TKA) (4–6). Each of these use-cases involves different measurements of clinically meaningful lengths and angles and/or definition of loading bearing axes. X-ray assessment of varus or valgus knee alignment is found to be most reliable when using a full leg standing protocol to measure the hip-knee-ankle angle (HKA) (7,8). At the same time, measurements related to load bearing points and axes are critical for surgical planning and follow-up assessment (2,9). Individual phenotypes of femoral and tibial alignment present added complexity to the overall picture of lower limb evaluation (10,11). Measurement of angles and lengths on AP standing lower extremity radiographs is a time-consuming task done with several different interactive software applications. This can lead to intra-reader and inter-reader variability as well as a lack of standardization. IB Lab LAMA’s automated measurements could thus provide accurate, comprehensive, standardized and reproducible results more efficiently than the current radiological procedure.

Figure 1: Graphical IB Lab LAMA™ report for the same patient: pre TKA surgery (left) and post TKA surgery (right).

IB Lab LAMA™ 1.03 - Standalone Performance Testing

IB Lab LAMA™ Version 1.03 is a leg angle measurement assistant powered by artificial intelligence that performs automatic measurements on long leg radiographs with implants, intended to aid medical professionals. This results in acceleration, standardization and improving accuracy in pre- and post-operative assessment of the hip and knee surgeries. LAMA aids in detecting knee alignment deformities by measuring relevant angles on standing AP radiographs of the leg. Additionally, LAMA also aids in detecting leg length discrepancy by providing the following measurements: femur, tibia and full leg length, and the difference between right and left legs on bilateral images.

Introduction & Methods

The standalone performance testing aimed to evaluate the accuracy of the artificial intelligence algorithms that comprise IB Lab LAMA™ compared to expert reads diagnostic angles and lengths in standard AP standing lower extremity radiographs. Two expert readers created a clinical reference standard (“ground truth”) by performing measurements of diagnostic angles and lengths on a pool of AP standing lower extremity radiographs with the aid of commonly used clinical planning software. IB Lab LAMA™ 1.03 measurements were then compared to this ground truth.

The study population consisted of 200 patients (146 female, 53 male, one other; age 69.2±8.9) who were referred for AP standing lower extremity radiograph following total knee arthroplasty (TKA). The patients’ knee systems included the following types of unconstrained and constrained knee implants: ACS (Implantcast® Advanced Coated System), Attune (DePuy Synthes® ATTUNE®), LPS (Zimmer® NexGen® Legacy® Posterior Stabilized), Persona (Zimmer® Persona® The Personalized Knee®), Vanguard (Zimmer® Vanguard®), RHK (Zimmer® NexGen® Rotating Hinge Knee), Attune Revision (DePuy Synthes® ATTUNE® Revision), GenuX (Implantcast® MUTARS® GenuX® MK Revision) and LCCK (Zimmer® NexGen® Legacy® Constrained Condylar Knee (LCCK)).

Results & Discussion

IB Lab LAMA™ performed within 1° for all angles regarding the mean difference,  indicating no substantial fixed bias.

The mean absolute deviation was within 1° for the angle measurements HKA, AMA, lateral femoral component angle (LCFA) and medial tibial component angle (MCTA). For angle measurements JLCA, mLPFA and mLDTA, LAMA™ performed within 2° mean absolute deviation.

The Mechanical Axis Deviation (MAD), Leg length, and Tibia length measurements all performed within 5mm mean absolute deviation. The mean difference was within 2mm for all lengths.

JLCA, LCFA, MCTA and MAD performed exceptionally well when compared with pre-implant images.

Comparison of IB Lab LAMA 1.03 outputs and averaged readings of two experts (Ground Truth) for the TKA dataset
Angles are given in degrees. Lengths are given in mm.

Figure 2: Scatter plot and Deming regression (solid line) of IB Lab LAMA™ and mean expert reader outputs for parameters HKA, LCFA, MCTA and Leg length.


IB Lab LAMA™ is the world’s first AI-supported easy-to-use application to perform automated and precise measuring of leg geometry to evaluate lower limb deformities, which promptly produces over 12 radiological measurements that lead to time savings and standardization. With version 1.03, these measurements are also performed on legs with knee and hip implants. Considering there are over four million knee and hip implant surgeries performed in OECD member countries each year, LAMA 1.03 has great potential to significantly reduce the workload and improve the workflow of medical professionals by automating radiological measurements pre-and-post hip/knee surgery.

IB Lab LAMA™ aids in detecting genu varum/valgum by measuring mechanical axis deviation (MAD) and detecting leg length discrepancy by comparing the length of both legs on bilateral images. Detailed analysis of mechanical angles, according to Paley, allows informed decision making on the next steps in treating the patient. 

Relevant clinical findings are highlighted in a visual output report by applying the latest international medical standards to enable timely and accurate decision making. The findings are summarized in a graphical output report, attached to the original x-ray image and saved automatically in the PACS system. Optionally, the AI results can be fed as text into a pre-defined RIS template or PDF for accelerated reporting. The AI facilitates the monitoring of disease progression by facilitating  the comparison of radiographic disease parameters over time.

  1. Kremers M. H., Larson R. D, Crowson S. C., et al. Prevalence of Total Hip and Knee Replacement in the United States. 2015;97(17):1386-1397. doi:10.2106/JBJS.N.01141
  2. Yin Y, Li S, Zhang R, Guo J, Hou Z, Zhang Y. What is the relationship between the “Fujisawa point” and postoperative knee valgus angle? A theoretical, computer-based study. The Knee. 2020;27(1):183-191. doi:10.1016/j.knee.2019.10.018
  3. Nakayama H, Iseki T, Kanto R, et al. Physiologic knee joint alignment and orientation can be restored by the minimally invasive double level osteotomy for osteoarthritic knees with severe varus deformity. Knee Surg Sports Traumatol Arthrosc. 2018;28(3):742-750. doi:10.1007/s00167-018-5103-3
  4. Mulcahy H, Chew FS. Current Concepts in Knee Replacement: Features and Imaging Assessment. American Journal of Roentgenology. 2013;201(6):W828-W842. doi:10.2214/AJR.13.11307
  5. Neil MJ, Atupan JB, Panti JPL, Massera RAJ, Howard S. Evaluation of lower limb axial alignment using digital radiography stitched films in pre-operative planning for total knee replacement. Journal of Orthopaedics. 2016;13(4):285-289. doi:10.1016/j.jor.2016.06.013
  6. Zahn RK, Renner L, Perka C, Hommel H. Weight-bearing radiography depends on limb loading. Knee Surg Sports Traumatol Arthrosc. 2019;27(5):1470-1476. doi:10.1007/s00167-018-5056-6
  1. Zampogna B, Vasta S, Amendola A, et al. Assessing Lower Limb Alignment: Comparison of Standard Knee Xray vs Long Leg View. Iowa Orthop J. 2015;35:49-54.
  2. Lazennec JY, Chometon Q, Folinais D, Robbins CB, Pour AE. Are advanced three-dimensional imaging studies always needed to measure the coronal knee alignment of the lower extremity? International Orthopaedics (SICOT). 2017;41(5):917-924. doi:10.1007/s00264-016-3340-y
  3. Iseki Y, Takahashi T, Takeda H, et al. Defining the load bearing axis of the lower extremity obtained from anterior-posterior digital radiographs of the whole limb in stance. Osteoarthritis and Cartilage. 2009;17(5):586-591. doi:10.1016/j.joca.2008.10.001
  4. Lin Y-H, Chang F-S, Chen K-H, Huang K-C, Su K-C. Mismatch between femur and tibia coronal alignment in the knee joint: classification of five lower limb types according to femoral and tibial mechanical alignment. BMC Musculoskeletal Disorders. 2018;19(1):411. doi:10.1186/s12891-018-2335-9
  5. Hirschmann MT, Moser LB, Amsler F, Behrend H, Leclercq V, Hess S. Phenotyping the knee in young non-osteoarthritic knees shows a wide distribution of femoral and tibial coronal alignment. Knee Surg Sports Traumatol Arthrosc. 2019;27(5):1385-1393. doi:10.1007/s00167-019-05508-0