Manuscript Offprint

arXiv:2608.25845

THA-Flow Generative Model: Prosthesis Geometry Prediction from Preoperative CT

Yiping Wang, Jie Li, Jingyu Shen, Liao Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Preoperative planning for total hip arthroplasty (THA) is commonly framed as selecting a single prosthesis configuration and placement for a patient's osseous anatomy. In practice, however, the same anatomy may admit several clinically reasonable solutions, making planning inherently a one-to-many problem that is better represented by a conditional probability distribution. We present THA-Flow, a conditional flow-matching model that generates three-dimensional prosthesis geometry directly from preoperative CT. Separate AutoencoderKL models compress preoperative bone anatomy and prosthesis geometry, while a three-dimensional UNet learns a rectified flow from Gaussian noise to the prosthesis latent space under spatial bone conditioning and optional structured prosthesis parameters. The retrospective cohort comprised 1,355 hips from 1,149 patients undergoing primary THA. Following rigid registration of postoperative CT to preoperative CT, the actual postoperative prostheses were transformed independently according to the pelvic and femoral registrations and represented as a dual-channel truncated signed distance field. The prosthesis autoencoder achieved a peak signal-to-noise ratio of 47.11 dB and a structural similarity index of 0.9964 on the validation set. Complete acetabular and femoral geometries were generated across seven major stem models representing 93.4% of the cohort. Repeated bone-conditioned sampling preserved component position, alignment, and the principal bone–prosthesis interfaces while allowing limited local geometric variation. To our knowledge, THA-Flow represents the first application of generative AI to three-dimensional surgical planning for THA.

Keywords: Total hip arthroplasty; Surgical planning; Patient-matched prosthesis; Flow-matching model

1 Introduction

Preoperative planning for THA requires selection of prosthesis shape and size together with its spatial placement relative to patient anatomy. Current digital workflows rely primarily on two- or three-dimensional measurements, heuristic rules, and matching against commercial prosthesis libraries[1]. CT-based systems such as AIHIP apply deep learning to pelvic and femoral segmentation and anatomical landmark detection, but component selection and placement remain downstream procedures based on measurements, explicit planning rules, and predefined prosthesis inventories[2]. These systems improve the efficiency of image processing and measurement, yet still converge on a single component configuration and placement and therefore do not represent the distribution of plausible plans for the same anatomy.

Generative models offer a different formulation by permitting repeated sampling from a conditional distribution. THA-Net established the feasibility of synthesizing simulated postoperative radiographs from preoperative radiographs, with both unconditional and prosthesis-specified generation[3]. Its output, however, remains a two-dimensional synthetic image. Generating the entire postoperative image also redraws bone, soft tissue, and the prosthesis interface, so realistic image appearance does not guarantee preservation of the patient's original osseous anatomy. Conditioning explicitly on the preoperative bone while restricting the target to three-dimensional prosthesis geometry allows the prediction to be superimposed directly on the unaltered patient anatomy.

The primary obstacle is the construction of spatially consistent three-dimensional supervision. Hip posture differs between preoperative and postoperative CT, while femoral neck resection and metal artefacts further undermine direct registration. The postoperative prosthesis can provide voxel-level supervision only after its acetabular and femoral components have been returned independently to the preoperative coordinate space with the pelvis and femur. High-resolution three-dimensional volumes also impose substantial memory and computational demands; latent-space generation reduces this burden while preserving the principal spatial structure[4, 5]. MAISI and related work have further demonstrated spatially controlled generation of large three-dimensional medical images, with rectified flow reducing the number of sampling iterations[6, 7]. Compared with synthesizing a complete postoperative CT containing metal artefacts, soft-tissue texture, and complex acquisition-specific features, generating only an implicit representation of the target prosthesis geometry provides a more clearly defined and tractable objective. The output can also be converted directly into a surface for subsequent measurement, retrieval, and geometric analysis.

This study focuses on the three-dimensional generative formulation and technical validation of THA-Flow. Its contributions are threefold: a postoperative-to-preoperative registration pipeline that excludes metal-contaminated and surgically altered regions to establish reliable supervision in preoperative space; a dual-channel TSDF representation in which acetabular and femoral components follow the pelvis and femur, respectively; and a latent rectified-flow model in which the bone latent is injected as a spatial condition from the first convolutional layer, with optional stem model and size as additional semantic controls. We evaluate generated geometry across stem designs, at the bone–prosthesis interface, and through conditional distribution consistency; latent reconstruction and velocity-field errors serve as technical checks on model training.

References (13)