A multi-angle functional position three-dimensional bone model reconstruction method and a storage medium
By acquiring multi-angle two-dimensional X-ray images in functional positions and combining them with projection geometry parameters and pre-trained models, latent variables and pose parameters are optimized, solving the problem of anatomical distortion in 3D reconstruction in existing technologies. This achieves high-precision, interpretable, individualized skeletal reconstruction and generates a 3D bone model that conforms to physiological posture.
Patent Information
- Application Number
- CN202611585202.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-14
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies for 3D reconstruction based on multi-angle X-ray images lack geometric constraints, leading to anatomical distortion and making it impossible to achieve high-precision, interpretable, and clinically measurable individualized skeletal reconstruction in functional positions.
By acquiring two-dimensional X-ray images of the target object at multiple different projection angles in the functional position, extracting two-dimensional observation information, calling a pre-trained three-dimensional bone morphology generation model, and combining projection geometric parameters and multi-angle consistency constraints, optimizing latent variables, model parameters, and pose parameters, a specific three-dimensional bone model is generated, and clinical measurement parameters are calculated.
Ensuring that the spatial position of the reconstructed model conforms to the actual physiological posture avoids the generation of deformed structures in purely data-driven methods, improves the convergence speed and noise resistance of the optimization process, and generates a three-dimensional bone model with high geometric fidelity and anatomical rationality, which can directly calculate the parameters required for clinical use.
Smart Images

Figure CN123181737A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of three-dimensional bone model technology, and more specifically, to a method and storage medium for reconstructing a three-dimensional bone model with multiple functional positions. Background Technology
[0002] In orthopedic clinical diagnosis, surgical planning, and postoperative evaluation, obtaining the three-dimensional morphology and clinical parameters of the target subject's bones in their actual functional state is of great significance. While traditional two-dimensional X-ray imaging offers advantages such as low radiation and low cost, its inherent two-dimensional projection characteristics prevent it from directly reflecting the three-dimensional spatial structure and stress posture of the bones. Existing computed tomography (CT) technology, although capable of reconstructing three-dimensional models, typically requires the target subject to be in a supine position, making it impossible to scan under actual weight-bearing conditions such as standing or sitting. Therefore, it is difficult to reflect the true morphology and force lines of the bones under actual physiological loads. Thus, how to accurately and efficiently reconstruct a three-dimensional bone model from multi-angle two-dimensional X-ray images taken in the target subject's functional position has become a pressing technical problem in the field of medical imaging.
[0003] Currently, the mainstream technical approaches for 3D reconstruction based on multi-view X-ray images can be divided into two categories. The first category is based on pure end-to-end deep learning methods, which directly regress 3D model coordinates or voxel meshes from multi-view 2D images using convolutional neural networks. This approach is entirely data-driven, treating the 2D-to-3D mapping as a black-box transformation process, lacking the support of geometric optics principles. The second category is based on traditional stereo vision geometry methods, which extract 2D keypoints from multi-view images and perform direct triangulation to recover the 3D structure, or use traditional linear statistical shape models combined with finite projection matching for fitting.
[0004] However, the aforementioned existing technologies still have many insurmountable shortcomings. For pure end-to-end deep learning methods, due to the lack of constraints from physical projection geometry, the reconstruction results often lack interpretability and are prone to producing erroneous structures that do not conform to common anatomical knowledge when faced with occlusion, overlap, or rare anatomical variations, failing to meet the stringent accuracy requirements of clinical diagnosis and treatment. As for traditional triangulation or linear statistical model methods, on the one hand, they struggle to handle the feature loss problems caused by bone overlap and projection blurring in X-ray images; on the other hand, due to the limited representational capabilities of linear models, they cannot accurately capture complex anatomical details and cannot effectively integrate group anatomical priors with multi-angle observations of individual target objects. Summary of the Invention
[0005] To address at least one deficiency or improvement need in the prior art, this invention provides a method for reconstructing a three-dimensional bone model in a multi-angle functional position. This method solves the problem that existing three-dimensional reconstruction techniques based on multi-angle X-rays suffer from anatomical distortion due to a lack of geometric constraints, or the inability to integrate individual observations due to the limited representational capabilities of prior models, making it difficult to achieve high-precision, interpretable, and clinically measurable individualized bone reconstruction in the functional position.
[0006] To achieve the above objectives, according to a first aspect of the present invention, a method for reconstructing a three-dimensional bone model with multiple functional positions is provided, comprising the following steps: Acquire two-dimensional X-ray images of the target object at multiple different projection angles under the functional position, and obtain the projection geometric parameters corresponding to the different projection angles; Extract two-dimensional observation information of the target bony structure from the two-dimensional X-ray image; The pre-trained three-dimensional bone morphology generation model is invoked to generate candidate three-dimensional bone models based on the two-dimensional observation information; Based on the projection geometry parameters, the candidate three-dimensional bone model is projected onto a two-dimensional image plane at various angles to obtain projection observation information; Based on the difference between the projected observation information and the corresponding two-dimensional observation information, under the constraint of multi-angle projection consistency, the latent variables, model parameters, pose parameters and optional geometric correction parameters of the candidate three-dimensional bone model are optimized specifically for the target object. Based on the optimized latent variables, model parameters, and pose parameters, a specific three-dimensional bone model for the target object is determined using the pre-trained three-dimensional bone morphology generation model, and clinical measurement parameters are calculated based on the specific three-dimensional bone model.
[0007] In one possible implementation, the plurality of two-dimensional X-ray images with different projection angles include a combination of an orthogonal image, a lateral image, and at least one oblique image.
[0008] In one possible implementation, obtaining the projection geometric parameters corresponding to multiple angles includes: The initial projection matrix of each angle is obtained by the calibration device, as well as the detection position of the calibration point in the two-dimensional X-ray image provided by the calibration device; A geometric correction parameter is introduced into the initial projection matrix, and the calibration point is projected onto the two-dimensional image plane at each angle using the corrected initial projection matrix to obtain the projection position of the calibration point. Based on the residual between the detection position and the projection position, the value of the geometric correction parameter is determined, and the projection geometric parameters corresponding to multiple angles are obtained.
[0009] In one possible implementation, extracting two-dimensional observation information of the target bony structure from the two-dimensional X-ray image includes: Obtain a heatmap of the bony key points in the target bony structure, wherein the bony key points are predefined for the target bony structure; Based on the heatmap, calculate the confidence level and uncertainty covariance of the bony key points; The two-dimensional observation information includes one or more of the following: the heatmap, the confidence level, the uncertainty covariance, the contour point set, the edge map, and the segmentation mask.
[0010] In one possible implementation, optimizing the model parameters and pose parameters corresponding to the candidate 3D bone model includes: Based on the two-dimensional observation information and the two-dimensional coordinates corresponding to the predefined key points in the candidate three-dimensional bone model, as well as the projection geometric parameters, the initial three-dimensional key points are obtained through multi-view triangulation, and the pose parameters and model parameters of each bone segment in the candidate three-dimensional bone model are initialized. The model parameters are fixed, and the pose parameters are optimized based on the comparison difference between the projected observation information and the predefined key points. Under contour and edge constraints, the model parameters and pose parameters are adjusted, and the model parameters and pose parameters are adjusted according to the similarity constraints between the projected observation information and the two-dimensional observation information.
[0011] In one possible implementation, when the target bony structure contains multiple bone segments, the optimization of the model parameters and pose parameters corresponding to the candidate three-dimensional bone model also includes joint coupling constraint terms between adjacent bone segments. The joint coupling constraint is used to limit the relative position, relative posture, range of motion, motion coupling relationship, joint surface spatial relationship or sequence continuity between adjacent bone segments, so that the optimization result is within the physiologically feasible range that is adapted to the target anatomical site. The joint coupling constraints include one or more of the following: relative pose feasible domain constraints, joint range of motion constraints, motion degree of freedom coupling constraints, joint center or joint axis consistency constraints, joint surface gap or non-penetration constraints, sequence continuity constraints, or statistical physiological prior constraints.
[0012] In one possible implementation, before determining a specific three-dimensional bone model of the target object based on the optimized three-dimensional bone morphology generation model, and calculating clinical measurement parameters based on the specific three-dimensional bone model, the method further includes: Calculate quality control indicators, which include one or more of the following: keypoint reprojection error, contour distance, calibration residual, latent variable distribution distance, joint coupling residual, or image similarity. When any of the quality control indicators exceeds the preset range, an anomaly handling mechanism is triggered. The anomaly handling mechanism includes reducing the weight of abnormal key points or abnormal perspectives, prompting recalibration, prompting manual correction, or terminating automatic reconstruction.
[0013] In one possible implementation, the calculation of clinical measurement parameters based on the specific three-dimensional bone model includes: The three-dimensional coordinates of key bony points and the coordinate system of bone segments are obtained from the specific three-dimensional bone model. Based on the three-dimensional coordinates and the bone segment coordinate system, calculate one or more clinical measurement parameters, such as force line angle, length, rotation angle, or joint posture.
[0014] In one possible implementation, when optimizing the model parameters and pose parameters corresponding to the candidate 3D bone model, one or more of the following acceleration strategies are employed: Train an initial value prediction network to predict initial latent variables and initial pose parameters from the two-dimensional X-ray image and the two-dimensional observation information; The optimization variables of the candidate 3D bone model are restricted to latent variables; The pose parameters are adjusted globally; the pose parameters and model parameters are adjusted within the region of interest. According to a second aspect of the invention, a computer-readable storage medium is also included, storing a computer program that, when executed by a processor, implements the three-dimensional bone model reconstruction method with multi-angle functional positions as described in any of the possible implementations above.
[0015] In summary, compared with the prior art, the above-described technical solutions conceived by this invention can achieve the following beneficial effects: This invention provides a method for reconstructing a three-dimensional bone model from multiple functional positions. By acquiring multi-angle two-dimensional X-rays from various angles under functional positions and combining them with precise projection geometry parameters, the spatial position of the model is ensured to conform to the actual physiological posture. Simultaneously, a pre-trained three-dimensional bone morphology generation model is introduced as a nonlinear anatomical prior. When occlusion, overlap, or noise interference exists in the two-dimensional images, it can reasonably infer missing information based on the anatomical patterns of the population, effectively avoiding the problem of generating deformed structures common in purely data-driven methods. This ensures that the reconstruction result conforms to both projection geometry constraints and anatomical rationality.
[0016] Unlike black-box end-to-end mapping, this scheme achieves precise decoupling of pose and shape parameters by back-projecting the candidate model onto a two-dimensional plane and iteratively comparing it with real observations. In particular, the introduction of an adaptive weighting mechanism based on key point confidence and uncertainty covariance during the optimization process automatically identifies and suppresses interference from fuzzy or unreliable observation data, improving the convergence speed and noise resistance of the optimization process, and reducing the dependence on hardware calibration accuracy and target object positioning consistency.
[0017] Through strong constraints from generative priors and consistency verification of multi-view geometry, the resulting specific 3D bone model possesses high geometric fidelity. Based on this, parameters such as force line angles, bone segment lengths, and joint postures are directly calculated, achieving clinical diagnostic accuracy without cumbersome manual correction. Furthermore, by introducing joint coupling constraints between multiple bone segments, the relative movements of complex structures such as the spine and lower limbs are ensured to conform to anatomical principles, preventing intersegmental penetration or dislocation. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 A flowchart illustrating an embodiment of the three-dimensional bone model reconstruction method with multiple functional positions provided by the present invention; Figure 2 A flowchart illustrating an embodiment of the present invention for obtaining projection geometric parameters corresponding to multiple angles; Figure 3 This is a flowchart illustrating an embodiment of parameter optimization for a candidate three-dimensional bone model provided by the present invention. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.
[0021] The terms "first," "second," "third," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0022] Please see Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the three-dimensional bone model reconstruction method with multiple functional positions provided by the present invention. In a specific embodiment of the present invention, a three-dimensional bone model reconstruction method with multiple functional positions is disclosed, including: S101. Obtain two-dimensional X-ray images of the target object at multiple different projection angles under the functional position, and obtain the projection geometric parameters corresponding to different projection angles. S102. Extract two-dimensional observation information of the target bony structure from two-dimensional X-ray images; S103. Call the pre-trained three-dimensional bone morphology generation model to generate candidate three-dimensional bone models based on two-dimensional observation information; S104. Based on the projection geometry parameters, project the candidate three-dimensional bone model onto the two-dimensional image plane at each angle to obtain projection observation information; S105. Based on the difference between the projected observation information and the corresponding two-dimensional observation information, under the constraint of multi-angle projection consistency, the latent variables, model parameters, pose parameters and optional geometric correction parameters of the candidate three-dimensional bone model are optimized specifically for the target object. S106. Based on the optimized latent variables, model parameters, and pose parameters, determine the specific three-dimensional bone model of the target object through the pre-trained three-dimensional bone morphology generation model, and calculate the clinical measurement parameters based on the specific three-dimensional bone model.
[0023] In the above embodiments, unlike conventional supine scanning, this approach specifically limits image acquisition to functional positions (such as standing, sitting, weight-bearing, or specific movement postures) to ensure that the acquired skeletal morphology reflects the spatial configuration under actual physiological load. The acquisition angle is not limited to traditional anterolateral views, but preferably includes at least one oblique view (as a preferred embodiment, this approach uses angle combinations such as 0°, 45°, 90°, and 135°) to alleviate skeletal overlap problems during spinal rotation or lower limb torsion. Simultaneously, the initial projection matrix for each shooting angle is obtained using calibration equipment (such as a ball bearing cylinder or calibration rod). P i =Ki [R i ∣t i ] And introduces a geometric correction parameter with limited degrees of freedom. ΔP i (Including rotation correction, translation correction, and scale correction), construct geometric correction regularization terms. L calib-reg It can automatically compensate for geometric distortions caused by equipment assembly errors or target object positioning deviations while optimizing skeletal parameters, reducing reliance on hardware calibration accuracy.
[0024] Heatmaps of bony keypoints are output using detection or segmentation networks (such as YOLO, HRNet, U-Net, etc.), and the two-dimensional coordinates of the keypoints are obtained through soft-argmax or subpixel fitting algorithms. Unlike conventional methods, the quality metrics for the synchronously quantified observation data include, but are not limited to: calculating the confidence level of keypoints based on the peak sharpness, multi-peak distribution, and visibility score of the heatmap. w ik and uncertainty covariance Σ ik The covariance matrix will serve as the weighting basis for subsequent optimization stages, automatically reducing the contribution of ambiguous or potentially occluded key points to the optimization objective and improving the robustness of the algorithm in complex clinical scenarios.
[0025] To overcome the pathological reconstruction problems caused by insufficient or occluded two-dimensional observation information, a three-dimensional bone morphology generation model pre-trained based on large-scale population anatomical data is introduced. This model is not limited to the traditional linear statistical shape model (SSM) but can also incorporate nonlinear generative priors such as variational autoencoders (VAE), diffusion models, implicit signed distance fields (SDF), or Gaussian primitives. In the target-specific reconstruction stage, population-level pre-training parameters are fixed, and the low-dimensional latent variables of the generation model are initialized based on the two-dimensional observation information extracted from S102. z b and bone segment position T b By employing a strategy of group prior and individual initialization, the rationality of the candidate model's anatomy is ensured, while avoiding the distorted reconstruction results that might occur with purely data-driven methods.
[0026] Based on the projection geometry matrix obtained in S101, the candidate 3D bone model generated in S103 is reprojected back onto the 2D image plane at various angles using differentiable rendering technology. The projection output includes not only the 2D coordinates of simulated key points, but also simulated contours, simulated edges, and even simulated DRR (digital reconstructed radiographic) images. By simulating the physical imaging process of X-rays penetrating a 3D object, the obtained simulated observation information serves as a benchmark for pixel-level or feature-level comparison with the real observation information extracted in S102, which is a prerequisite for achieving geometrically constrained inversion.
[0027] A multi-task loss function is constructed, including keypoint reprojection error, contour and edge distance loss, DRR image similarity loss, latent variable prior regularization term, and multi-segment joint coupling constraint term. The optimization process can employ a hierarchical strategy from sparse to dense. In the first stage, the shape is fixed, and only the rigid body pose is optimized to quickly align the model. In the second stage, latent variables and pose are jointly optimized, and contour and edge constraints are introduced. In the third stage, when the solution is close to the true value, high-fidelity DRR or image feature constraints are added for refinement. This hierarchical optimization mechanism effectively avoids getting trapped in local extrema through direct full-parameter optimization and reduces computational time. Furthermore, in addition to model parameters and pose, the optimization variables can also include the geometric correction parameters in S101. ΔPi This enables the joint calibration of equipment geometry and target object anatomy.
[0028] After iterative convergence in S105, the latent variables and pose parameters in the generated model have reached their optimal values. At this point, decoding the generated model yields a specific three-dimensional bone model of the target object. This model not only possesses individualized anatomical details but also accurately reflects the spatial relationships of the skeleton in functional positions. Based on this, various measurement parameters required for clinical use are automatically calculated, including but not limited to force line angles (in this embodiment, including but not limited to hip-knee-ankle angle HKA, neck-shaft angle, and spine Cobb angle), bone segment lengths, rotation angles, and joint spaces. To ensure the clinical reliability of the results, quality control indicators are also output (in this embodiment, including but not limited to keypoint reprojection error, contour distance, calibration residual, and latent variable distribution distance). When the indicators exceed preset thresholds, an abnormal viewpoint reduction or manual correction process is triggered, achieving interpretability and controllability of the reconstruction process.
[0029] Compared with existing technologies, this embodiment provides a multi-angle functional position three-dimensional bone model reconstruction method. By acquiring multi-angle two-dimensional X-rays under functional positions and combining them with precise projection geometry parameters, it ensures that the spatial position of the model conforms to the real physiological posture. At the same time, a pre-trained three-dimensional bone morphology generation model is introduced as a nonlinear anatomical prior. When there is occlusion, overlap or noise interference in the two-dimensional image, it can reasonably infer the missing information based on the anatomical rules of the population, effectively avoiding the problem of deformed structure generation common in pure data-driven methods. This ensures that the reconstruction result conforms to both projection geometry constraints and anatomical rationality.
[0030] Unlike black-box end-to-end mapping, this scheme achieves precise decoupling of pose and shape parameters by back-projecting the candidate model onto a two-dimensional plane and iteratively comparing it with real observations. In particular, the introduction of an adaptive weighting mechanism based on key point confidence and uncertainty covariance during the optimization process automatically identifies and suppresses interference from fuzzy or unreliable observation data, improving the convergence speed and noise resistance of the optimization process, and reducing the dependence on hardware calibration accuracy and target object positioning consistency.
[0031] Through strong constraints from generative priors and consistency verification of multi-view geometry, the resulting specific 3D bone model possesses high geometric fidelity. Based on this, parameters such as force line angles, bone segment lengths, and joint postures are directly calculated, achieving clinical diagnostic accuracy without cumbersome manual correction. Furthermore, by introducing joint coupling constraints between multiple bone segments, the relative movements of complex structures such as the spine and lower limbs are ensured to conform to anatomical principles, preventing intersegmental penetration or dislocation.
[0032] In some embodiments of the present invention, the two-dimensional X-ray image includes a combination of an orthogonal image, a lateral image, and at least one oblique image.
[0033] In the above embodiments, the multi-angle two-dimensional X-ray images are specifically configured as a combination of an anteroposterior image, a lateral image, and at least one oblique image. The design of this specific angle combination is not a simple superposition of quantities, but a targeted optimization based on the geometric principles of X-ray projection and the anatomical features of bones, thereby solving the problems of structural overlap, lack of depth information, and key point occlusion that are common in single-plane or dual-plane imaging.
[0034] Specifically, anteroposterior images (e.g., 0° view) provide basic projection information of the target bony structure in the coronal plane, clearly reflecting the left-right alignment, length parameters, and some inversion / valgus angles of the bones. Lateral images (e.g., 90° view) provide key anatomical information in the sagittal plane, used to assess the anteroposterior positional relationship of overlapping structures and sagittal curvature. However, relying solely on anteroposterior and lateral dual-plane imaging often results in unclear display of key anatomical landmarks due to overlapping projections when dealing with skeletal rotational deformities or complex joint structures.
[0035] To this end, at least one oblique view (e.g., a 45° or 135° perspective) is introduced. Its function is to separate anatomical structures that would otherwise overlap in anteroposterior or lateral views on a two-dimensional plane by changing the angle between the projected rays and the long axis or rotation axis of the bone. For example, in spinal imaging, oblique views help expose the pedicles and facet joints; in lower limb imaging, oblique views help assess the femoral neck anteversion angle or the anterior and posterior structures of the tibial plateau.
[0036] Please see Figure 2 , Figure 2 This is a flowchart illustrating an embodiment of the present invention for obtaining projection geometric parameters corresponding to multiple angles. In some embodiments of the present invention, obtaining projection geometric parameters corresponding to multiple angles includes: S201. Obtain the initial projection matrix of each angle through the calibration device, as well as the detection position of the calibration point in the two-dimensional X-ray image provided by the calibration device; S202. Introduce geometric correction parameters to the initial projection matrix, and use the corrected initial projection matrix to project the calibration points onto the two-dimensional image planes at various angles to obtain the projection positions of the calibration points. S203. Based on the residual between the detection position and the projection position, determine the values of the geometric correction parameters to obtain the projection geometric parameters corresponding to multiple angles.
[0037] In the above embodiments, the calibration device can be a physical calibration body, such as a calibration barrel with a built-in steel ball array, a calibration rod with a known geometric structure, or a calibration plate. Before or during the acquisition of the target object image, the calibration device is used to perform imaging and obtain the initial projection matrix for each shooting angle. P i =K i [R i ∣t i ] ,in K i This is the intrinsic parameter matrix (containing focal length, principal point coordinates, etc.). R i and t i These are the external parameter rotation matrix and translation vector, respectively. Simultaneously, image processing algorithms are used to automatically identify calibration points (such as steel ball projections and calibration rod endpoints) formed by the calibration equipment in the two-dimensional X-ray image, and to obtain the detection positions of these calibration points. v im The physical coordinates of these calibration points in three-dimensional space. Q m These are known in advance and form the anchor points connecting the two-dimensional image and the three-dimensional space.
[0038] Considering the potential mechanical wear and tear on X-ray equipment after prolonged use, as well as factors such as angle reading errors or detector bending during target imaging, the initial projection matrix... P i There are often slight deviations. To improve reconstruction accuracy, the initial value is not used directly. P i Instead, a set of restricted small-degree-of-freedom geometric correction parameters Δ are introduced. P i Specifically, Δ P i It can be defined as: Δ P i =(Δ α i Δ β i Δ γ i Δ x i Δ y i Δ z i Δ s i ); Where, Δ α i Δ β i Δ γ i For small-angle rotation correction around a specific coordinate axis; Δ x i Δ y i Δ z i For the relative translation correction of the source or detector; Δ s i Corrections related to source distance or imaging scale.
[0039] In practical applications, this invention does not impose further restrictions based on the mechanical stability of the equipment. For example, if the equipment's rotation axis is stable, only angular deviation correction and translation correction within the image plane are allowed; if longitudinal stitching is involved, Z-direction correction is added. This small-degree-of-freedom correction strategy avoids unconstrained optimization of the entire projection matrix (which may lead to degradation), ensuring the physical rationality and numerical stability of the correction process. The corrected projection matrix can be expressed as... P i (Δ P i This means that the initial matrix is superimposed with parameterized corrections.
[0040] The optimal geometric correction parameters are precisely solved by minimizing the projection residuals, using the corrected projection matrix. P i (Δ P i ), to determine the coordinates of a known calibration point in three-dimensional space Q m Projecting the data onto a two-dimensional image plane yields the theoretical projection position of the calibration point. : ; Here, π represents the perspective division operation. The calibration loss function is then constructed. L fid Calculate the detection locations of all calibration points on the image. v im With theoretical projection position Sum of squares of Euclidean distance between them: ; To prevent geometric distortion caused by over-correction and to take into account the physical significance differences of corrections for different degrees of freedom, a regularization term is introduced. ,in W p This is a diagonal matrix weighted for different modified degrees of freedom. The final total loss is... Minimize by optimizing the algorithm L calib The optimal geometric correction parameters can then be solved. .Will Substituting the initial projection matrix yields the final calibrated multi-angle projection geometry parameters used for subsequent 3D reconstruction.
[0041] In some embodiments of the present invention, extracting two-dimensional observation information of the target bony structure from a two-dimensional X-ray image includes: Obtain a heatmap of bony key points in the target bony structure. The bony key points are predefined for the target bony structure. Based on the heatmap, calculate the confidence level and uncertainty covariance of bony key points; The two-dimensional observation information includes one or more of the following: heat map, confidence level, uncertainty covariance, contour point set, edge map, and segmentation mask.
[0042] In the above embodiments, a standardized set of bony keypoint topologies is predefined for different target bony structures (such as the spine, pelvis, lower limb, or upper limb). For example, for the spine, keypoints may include the four corner points of the vertebral body, the center of the pedicle, and the tip of the spinous process; for the lower limb, they may include the center of the femoral head, the medial and lateral condyles of the femur, and the tibial plateau. These keypoints define the correspondence between the three-dimensional model and the two-dimensional image. Then, a trained deep convolutional neural network (such as Hourglass, HRNet, or U-Net architecture) is used to perform forward inference on the input two-dimensional X-ray image, outputting a heatmap corresponding to each predefined keypoint. This heatmap is a two-dimensional array with the same size as the input image or after downsampling. The peak position theoretically corresponds to the projection position of the keypoint in the image, and the peak intensity reflects the likelihood probability predicted by the network for that position.
[0043] Next, extract the maximum value from the heatmap. As the base confidence level, and combined with the sharpness of the heatmap (understandably, sharper peaks are generally more reliable), the ratio of the first peak to the second peak, and the output of the visibility classifier, it is mapped to a scalar between 0 and 1 using a sigmoid or softmax function. w ik This reflects the reliability of the key point being detected from the current perspective. For low-quality detection points caused by occlusion, overlap, or abnormal exposure, w ik It will automatically decrease.
[0044] Unlike simply providing scalar confidence scores, the covariance matrix describes the two-dimensional uncertainty distribution of keypoint locations within a plane. Specifically, it first calculates the probability distribution based on a heatmap (using Softmax or normalization), then calculates the second moments (variance) and covariance of this distribution along the X and Y axes. Mathematically, if... p ik (x, y) This is the normalized probability distribution of the heatmap. u ik Given the desired coordinates of the heatmap (which can be calculated using soft-argmax), then the covariance matrix... Σ ik It can be represented as : ; in, To prevent the matrix from exhibiting singularity due to small constants, I is the identity matrix. If the keypoint localization is ambiguous, Σ ik The determinant will increase, indicating high uncertainty; conversely, if the positioning is precise, Σ ikThis will approach a zero matrix. This covariance matrix will serve as a core component of the Mahalanobis distance metric during the optimization process of S105, enabling automatic weight reduction of data points with high uncertainty.
[0045] Please see Figure 3 , Figure 3 This is a flowchart illustrating an embodiment of parameter optimization for a candidate 3D bone model provided by the present invention. In some embodiments of the present invention, the model parameters and pose parameters corresponding to the candidate 3D bone model are optimized, including: S301. Based on the two-dimensional observation information and the two-dimensional coordinates corresponding to the predefined key points in the candidate three-dimensional bone model, as well as the projection geometric parameters, the initial three-dimensional key points are obtained through multi-view triangulation, and the pose parameters and model parameters of each bone segment in the candidate three-dimensional bone model are initialized. S302. Fix the model parameters and optimize the pose parameters of the bone segments based on the comparison difference between the projected observation information and the predefined key points. S303. Under contour constraints and edge constraints, adjust the model parameters and pose parameters of the bone segment, and further adjust the model parameters and pose parameters of the bone segment according to the similarity constraints between the projected observation information and the two-dimensional observation information.
[0046] In the above embodiment, the two-dimensional key point coordinates extracted in S102 with confidence weighting are first utilized. u ik and the projection geometry parameters determined in S201 P i The initial three-dimensional coordinates of each bony key point are obtained by employing a multi-view triangulation algorithm based on RANSAC or least squares. During this process, confidence level w ik Higher perspectives will be given greater weight in triangulation, thereby suppressing interference from low-quality observations.
[0047] Subsequently, initial registration was performed on each bone segment based on the initial 3D keypoints. For rigid bone segments, the rotation matrix that aligns the 3D keypoints on each bone segment with their corresponding 3D coordinates was solved using the least squares method. Translation vector This initializes the pose parameters; simultaneously, it initializes the model parameters of the generative prior model (such as the shape coefficients of the SSM or the latent variables of the VAE). z b The initialization process initializes the candidate 3D bone model to a zero vector or the result of fitting a statistical model based on key points, making it present an average shape that roughly matches the current target object's body shape. This initialization process ensures that the candidate 3D bone model is within a reasonable search range that is close to the true solution at the beginning of the optimization phase, which helps to shorten the convergence time of subsequent optimizations and reduces the risk of getting trapped in unreasonable local solutions.
[0048] After initialization, the first stage of optimization begins. Specifically, the model parameters initialized in S301 are fixed, meaning the geometry of the bone segments remains unchanged as the initial average or fitted shape. Only the pose parameters are used as optimization variables. The optimization objective is to minimize the reprojection error between the projected observation information and the bony key points in the two-dimensional observation information. The loss function incorporates the uncertainty covariance calculated in S102. Perform Mahalanobis distance weighting. Mathematically, the energy functional optimized in this stage can be simplified to: ; in, L kp For keypoint reprojection loss, L joint To constrain joint coupling between multiple bone segments, by fixing high-dimensional shape parameters and optimizing only the low-dimensional rigid body pose, this stage can quickly and stably move each bone segment to the correct position and orientation in three-dimensional space.
[0049] After the bone segment pose is roughly correct, the second stage of optimization begins. The goal of this stage is to fine-tune the morphological details of the bones. At this point, both model parameters and pose parameters are used as optimization variables. The optimization process consists of two progressive sub-levels: Contour and Edge Constraint Sub-level: Contour loss is constructed using the 2D skeleton contour point sequence extracted by S102 and the edge distance transformation map. L sil and edge loss L edge These loss functions measure the degree of overlap between the model's projected contour and the real image contour. By incorporating dense pixel-level or sub-pixel-level constraints, subtle deviations in bone edges can be detected, allowing for adjustments to the model parameters to gradually align the geometry of bone segments with the individualized anatomical features of the target object.
[0050] Projection similarity constraint sub-level: As an optional refinement method, or when contour information is insufficient, a global similarity constraint between projected observation information and 2D observation information can be further introduced. This constraint can capture the matching of grayscale information within the contour, which is particularly important for skeletal structures lacking obvious edges. Through this sub-level, model parameters and pose parameters can be further adjusted to eliminate residual minor errors and ensure that the projection of the 3D model at a specific angle has a high degree of consistency with the real X-ray in terms of grayscale and texture.
[0051] Through the aforementioned hierarchical optimization process, this invention effectively balances optimization accuracy and computational efficiency. The transition from S301 to S302 avoids the potential collapse that might result from directly optimizing high-dimensional model parameters; the transition from S302 to S303 realizes the shift from sparse keypoint-driven to dense image-driven, gradually unlocking the model's degrees of freedom, and ultimately achieving the reconstruction of a target-specific three-dimensional bone model with both geometric accuracy and anatomical rationality from multi-angle two-dimensional X-ray images within an acceptable computational time.
[0052] In some embodiments of the present invention, adjusting the model parameters and pose parameters based on the similarity constraint between the projected observation information and the two-dimensional observation information further includes: When the target bony structure contains multiple bone segments, the optimization objective, which adjusts the pose parameters and model parameters of each bone segment, also includes joint coupling constraints between adjacent bone segments. Joint coupling constraints are used to limit the relative position, relative posture, range of motion, motion coupling relationship, articular surface spatial relationship or sequence continuity between adjacent bone segments, so that the optimization results are within the physiologically feasible range that is adapted to the target anatomical location. Joint coupling constraints include one or more of the following: relative pose feasible domain constraints, joint range of motion constraints, motion degree of freedom coupling constraints, joint center or joint axis consistency constraints, joint surface gap or non-penetration constraints, sequence continuity constraints, or statistical physiological prior constraints.
[0053] In the above embodiments, when the target bony structure comprises multiple bone segments, such as a series of vertebrae in the spine, the pelvic-femur-tibia-ankle chain in the lower limbs, or the shoulder-elbow-wrist chain in the upper limbs, if projection optimization is performed independently on each bone segment, inconsistencies may arise between the relationships between adjacent bone segments and the actual anatomical structure or physiological movement patterns. Therefore, this embodiment adds a joint coupling regularization term to the projection consistency loss, enabling the optimizer to jointly constrain the three-dimensional relationships between multiple bone segments while satisfying two-dimensional observation.
[0054] In one implementation, the joint coupling constraint term can be represented as a weighted combination of one or more physiological constraint losses employed: ; in, L joint denoted as the total loss of joint coupling constraints in multi-segment joint optimization; M represents the set of constraint types selected based on the target anatomical location; m Indicates an index of any constraint type in set M; Lm Indicates the first m Loss terms corresponding to physiological constraints; λm This represents the weighting coefficient of the loss term. Different constraint types and weights can be used for different joint or bone segment sequences.
[0055] 1. Relative pose feasible region constraints For adjacent bone segments aa and bb, their spatial poses are represented by their respective three-dimensional pose transformations. Then, their relative poses can be expressed as follows: ; Where a and b represent the indices of a pair of adjacent bone segments; T a and T b T represents the three-dimensional pose transformations of bone segments a and b in a unified reference coordinate system; a -1 T represents a inverse transform; T ab This represents the relative three-dimensional pose transformation of bone segment b with respect to bone segment a.
[0056] Based on the physiological structure and movement characteristics of the target anatomical site, a permissible relative pose feasible domain can be set for adjacent bone segments, and constraints can be imposed on poses that exceed this feasible domain. For example, it can be represented as: ; Among them, L pose T represents the loss corresponding to the feasible region constraint of relative pose; ab This represents the current relative 3D pose of bone segment b with respect to bone segment aa; Ω ab This represents the feasible domain of physiological relative pose obtained by pre-setting or learning for bone segments a and b; d(T) represents the distance function used to measure the deviation between the relative pose and the physiologically feasible region. ab Ω ab The value represents the degree of deviation of the current relative pose from the feasible region. The physiological feasible region can be determined based on anatomical rules, biomechanical models, population statistics, training samples, other imaging information of the target object, or a combination thereof. This constraint does not require the relative pose of adjacent bone segments to approach zero, but rather to keep it within a reasonable range adapted to the specific anatomical location.
[0057] 2. Joint range of motion constraints For a joint that can be described by one or more degrees of freedom, physiologically permissible ranges can be set for the corresponding degrees of freedom. Let the j-th degree of freedom have corresponding lower and upper physiologically permissible limits; then, penalties can be imposed on the portion exceeding the physiological range, for example: ; Among them, L ROM q represents the loss of joint range of motion constraint; j represents the index of the joint's degrees of freedom; j This represents the current motion parameter value for the j-th degree of freedom. This parameter can be a rotation angle, translation amount, or other parameters that can describe the state of this degree of freedom; qj,min and q j,max Let represent the lower and upper limits of physiological tolerance for the j-th degree of freedom, respectively; This means that penalties are only imposed on movements that exceed the permissible range. This constraint ensures that functional poses within a reasonable range of activity are not unnecessarily penalized for deviating from a neutral position, and only restricts movements that exceed physiologically feasible limits.
[0058] 3. Coupling constraints of motion degrees of freedom There are coupling relationships between different degrees of freedom of motion in some joints. For dependent degrees of freedom determined or influenced by an independent degree of freedom, coupling constraints can be established based on preset or learned functional relationships, for example: ; Among them, L couple q represents the loss due to coupling constraints in the degrees of freedom of motion; dep q represents the current parameter value or parameter vector of one or more dependent motion degrees of freedom; ind Represents the current parameter values or parameter vectors for one or more independent degrees of freedom of motion; represents the kinematic coupling relationship obtained by pre-setting or learning from independent degrees of freedom to subordinate degrees of freedom; W represents the weight matrix used to adjust the importance of different coupling components; This represents the weighted square norm defined by the weight matrix W. The functional relationships can employ analytic functions, spline functions, lookup tables, statistical regression models, machine learning models, or other kinematic models learned from training data. For example, in the knee joint embodiment, coupling relationships can be set for anterior-posterior translation, internal-external rotation, or other secondary movements based on flexion-extension states; in the spine embodiment, segment-specific motion coupling constraints can be set based on the flexion-extension, lateral bending, and axial rotation relationships between adjacent segments.
[0059] 4. Consistency constraints of joint center or joint axis For target structures suitable for description using stable joint centers or joint axes, corresponding joint centers, rotation centers, or joint axes can be defined on adjacent bone segments, and the geometric descriptions of different bone segments for the same joint can be constrained to remain consistent. For example, for an approximate ball-and-socket structure, corresponding joint centers of two bone segments for the same joint can be defined separately, and the following can be used: ; Among them, L center Indicates the loss of joint center consistency constraint; C a and C b These represent the three-dimensional positions of the joint centers corresponding to the same joint defined by bone segment a and bone segment b in a unified reference coordinate system; This represents the square of the Euclidean distance. For structures described using joint axes, similar consistency constraints can be established based on the positional and directional differences between the joint axes defined by two bone segments. This constraint applies to the consistency between corresponding geometric centers or joint axes within the same joint, but does not imply that the geometric centers of any adjacent bone segments should coincide. For example, the vertebral centers of adjacent vertebrae should not be constrained by the aforementioned zero-distance constraint, but rather by constraints based on the intervertebral space, relative pose range, and segmental kinematic relationships.
[0060] 5. Joint surface gaps, contact and non-penetrating constraints For bone segments with opposing articular surfaces, clearance, contact, or non-penetration constraints can be set based on the spatial relationship between the surfaces of the two bone segments. In one implementation, a signed distance field or collision detection algorithm is used to calculate the signed distance between corresponding articular surfaces of adjacent bone segments, and it is agreed that a distance greater than 0 indicates separation of the two surfaces, equal to 0 indicates surface contact, and less than 0 indicates geometric penetration. If the target joint has preset lower and upper limits for allowable clearance, the following can be used: ; Among them, L gap Indicates the constraint loss of joint surface clearance; d ab This represents the signed distance between the corresponding articular surfaces of bone segment a and bone segment b, or the representative distance obtained by summing the distances of multiple surface sampling points; in this paper, d is defined as... ab >0 indicates that the two surfaces are separated, d ab =0 indicates contact, d ab <0 indicates geometric penetration has occurred; d min and d max These represent the lower and upper limits of the permissible joint space set for the target joint, respectively. This indicates that penalties will only be applied to portions that are less than the lower allowable limit or greater than the upper allowable limit.
[0061] When it is only necessary to prevent geometric penetration between bone segments, its simplified form can be used: ; Among them, L nonpen Denotes non-penetrating constraint loss; d ab The meaning and sign convention are the same as above. When d ab No penetration penalty occurs when dab is ≥0. When dab is <0, the penalty increases with the degree of penetration.
[0062] The above method avoids simply constraining all joint surfaces to a distance close to zero, and allows for different reasonable spatial ranges to be set according to the characteristics of cartilage, joint space, intervertebral disc or other anatomical structures.
[0063] 6. Sequence continuity constraints For multi-segment bone structures with sequential characteristics, such as a series of vertebrae in the spine or a continuous long bone chain, continuity constraints can be applied to the relative pose changes of adjacent segments. The relationships between each bone segment or adjacent segments can be represented using position and pose feature vectors, and second-order continuity constraints can be applied, for example: ; Among them, L seq The loss represents the sequence continuity constraint; j represents the index of a bone segment or segment in a multi-segment sequence; ξ represents the loss. j The feature vector representing the position, orientation, or relationship between adjacent segments of the j-th bone segment; ξ j+1 ξ j-1 represents the corresponding feature vectors of the adjacent preceding and following bone segments or segments, respectively; W represents the weight matrix of different feature components; the second-order difference term in the formula is used to measure the degree of abrupt change in the relationship between adjacent segments in the sequence. This constraint is used to suppress abrupt changes between adjacent segments without physiological basis, while allowing real curvature, rotation and segmental differences, and does not require the center distance between adjacent bone segments to remain constant.
[0064] 7. Statistical physiological prior constraints With access to population imaging data or kinematic training data, statistical physiological priors can be established based on the relative poses of adjacent bone segments, joint spaces, kinematic coupling relationships, or combinations thereof. The relationships between adjacent bone segments can be represented by feature vectors, and constraints can be established based on the probability distribution of these feature vectors in population data, for example: ; Among them, L prior ξ represents the statistical physiological prior constraint loss; ab This represents a feature vector describing the physiological relationship between bone segment a and bone segment b, which may include relative pose, joint space, motion coupling parameters, or a combination thereof; ρ(ξ) ab ) represents the probability density, likelihood, or equivalent probability score of the feature vector in a population statistical model or other learned physiological prior model; This represents a negative logarithmic transformation, where high-probability physiological relationships are associated with smaller penalties, while low-probability or abnormal relationships are associated with larger penalties. The statistical physiological prior can employ parametric statistical models, probabilistic models, machine learning models, generative models, or other models capable of describing the distribution of physiological relationships across multiple bone segments.
[0065] One or more of the above constraints can be used individually or combined according to preset weights based on the target anatomical location and the current optimization stage to form the joint coupling constraint terms. For near-ball-and-socket joints such as the hip and shoulder, constraints on joint center or joint axis consistency, range of motion, and spatial relationship of articular surfaces can be emphasized; for the knee joint, constraints on range of motion, coupling of degrees of freedom of motion, and interarticular space or non-penetrating constraints can be emphasized; for the spine, constraints on the feasible region of relative pose of adjacent vertebrae, segmental range of motion, sequence continuity, intervertebral space, and statistical physiological prior constraints can be emphasized.
[0066] By using the joint coupling constraints mentioned above, the independent optimization of multiple bone segments can be transformed into a joint optimization problem constrained by both anatomical structure and physiological movement laws. This allows the reconstruction results to satisfy the consistency of multi-angle projection while having a more reasonable three-dimensional relationship between multiple bone segments, and provides additional physiological prior constraints when local observations are missing or there is a lot of noise.
[0067] In some embodiments of the present invention, before determining a specific three-dimensional bone model of the target object based on the optimized three-dimensional bone morphology generation model, and calculating clinical measurement parameters based on the specific three-dimensional bone model, the method further includes: Calculate quality control indicators, which include one or more of the following: keypoint reprojection error, contour distance, calibration residual, latent variable distribution distance, joint coupling residual, or image similarity. When any quality control indicator exceeds the preset range, the anomaly handling mechanism is triggered. The anomaly handling mechanism includes reducing the weight of abnormal key points or abnormal perspectives, prompting recalibration, prompting manual correction, or terminating automatic reconstruction.
[0068] In the above embodiments, the optimization process of 3D bone model reconstruction is not a one-off black-box calculation, but a closed-loop control process accompanied by real-time monitoring, dynamic feedback, and risk mitigation. Given the complexity of clinical X-ray images, which often face uneven exposure, tilted positioning, bone obstruction, and even pathological deformities, relying solely on the final result for evaluation is often lagging and passive. Therefore, this embodiment deploys a multi-dimensional quality control indicator system at two time points: during and / or after optimization, and designs a graded response anomaly handling mechanism to ensure the geometric accuracy and anatomical rationality of the reconstruction results throughout the entire process.
[0069] Unlike traditional methods that only perform posterior evaluation at the end, this approach can perceive the model state in real time during iteration, providing a basis for dynamically adjusting the optimization strategy. The definitions and monitoring significance of each indicator are as follows: Keypoint Reprojection Error: As a core criterion for geometric consistency, this index calculates the reprojection error of keypoints observed in two dimensions. u ik Projection points of the 3D model The differences between them (preferably based on uncertainty covariance) Σ ik The Mahalanobis distance. Monitoring this metric during optimization allows for real-time assessment of whether the current iteration is converging and whether there are error oscillations caused by local minima; monitoring it after optimization serves as a hard standard for verifying the final accuracy of the model.
[0070] Contour Distance: A metric that measures the fit between the model edges and the image structure. It is calculated using a distance transformation map to determine the minimum distance between the projected contour and the ground truth edges. Monitoring this metric during optimization helps determine if the adjustment direction of shape parameters (model parameters) is correct and prevents overfitting noise; monitoring it after optimization confirms the accuracy of the skeletal shape reconstruction.
[0071] Calibration Residual: An indicator of the geometric stability of monitoring equipment. It involves calculating the detection position of the calibration point and its corrected projection matrix. P i (Δ P i The residual between the projected positions. This is primarily monitored during the optimization process (especially in the early stages) to determine the geometric correction parameter Δ. P i Has the regression converged to a reasonable range? If the residual continues to fail to decrease, it indicates calibration failure and requires timely intervention.
[0072] Latent Space Distance: A core indicator for measuring the rationality of the analysis. Calculate the latent variables of the current target object. z b The Mahalanobis distance to the prior mean of the population. Monitoring this metric during optimization can prevent the optimization process from going out of control, i.e., the model deviating from the reasonable anatomical distribution in order to adapt to noisy data; monitoring it after optimization is completed can be used to screen for rare anatomical variations or pathological changes, indicating that the results may exceed the distribution range of the training data.
[0073] Joint Coupling Residual: A metric measuring the synergy of multiple bone segments. Based on the target anatomical location and the actual joint coupling constraints used, it calculates one or more of the following: deviation of relative pose from the physiologically feasible range, over-limit of joint range of motion, coupling deviation of degrees of freedom, deviation of joint center or joint axis consistency, degree of articular surface gap or penetration, sequence continuity deviation, or deviation from statistical physiological priors. Monitoring this metric during optimization helps maintain the continuity of long-segment structures such as the spine and lower limbs, preventing joint dislocations caused by over-optimization of a single bone segment; monitoring after optimization is crucial for verifying the biomechanical reliability of the reconstruction results.
[0074] Image Similarity: A high-order metric (such as SSIM, MI, or gradient correlation) that measures global projection consistency. It is typically monitored in the later stages or after optimization to evaluate the overall matching degree between the simulated DRR and the original X-ray at the grayscale and texture levels, serving as a supplementary verification of geometric and morphological constraints.
[0075] Based on feedback from real-time monitoring, a tiered response and flexible de-escalation anomaly handling mechanism has been established. Preset ranges are typically based on confidence intervals derived from large-scale clinical data statistics (e.g., mean ± 3 standard deviations). When an indicator exceeds the limit, one or more of the following response strategies are automatically triggered based on the severity, stage, and nature of the abnormality: Reduce the weights of abnormal keypoints or abnormal viewpoints: For local, minor anomalies that occur during the optimization process (such as a sudden increase in reprojection error due to occlusion of individual keypoints, or a decrease in image similarity due to slight motion blur in a single viewpoint), do not immediately interrupt the process, but dynamically adjust the weights in the loss function. Specifically, increase the uncertainty covariance corresponding to the keypoint. Σ ik Alternatively, the overall weight of that viewpoint can be reduced in multi-view optimization. This is a soft-fix mechanism that allows the algorithm to find the optimal solution through robust estimation even in environments with noise and outliers, thus improving the solution's resistance to interference.
[0076] Recalibration prompt: If systematic errors are found in the early stages or during optimization, the current projection geometry parameters are deemed unreliable. In this case, subsequent time-consuming optimization steps are paused, an alert is issued to the operator, prompting them to check the calibration equipment, and it is recommended to re-execute the calibration process.
[0077] Manual correction prompts are provided: If model-level anomalies are found after optimization, it is determined that fully automated optimization has reached its limit. At this point, instead of forcibly outputting a potentially erroneous model, the iteration is paused, and the current reconstruction result (even if imperfect) is visualized and presented to the operator. The operator is prompted to manually check and correct key anatomical landmarks. Optimization is restarted based on the corrected observation data, achieving complementary advantages between humans and machines and ensuring the ability to handle extreme cases.
[0078] Terminate automatic reconstruction: For severe data quality issues discovered before or in the early stages of optimization, determining that the reconstruction task is impossible to complete, immediately terminate all subsequent computationally intensive optimization processes, release computing resources, report the clear reason for failure to the target audience, and recommend re-acquiring images. This avoids unnecessary computational overhead, improving overall efficiency and the target audience's experience.
[0079] By implementing a quality control system and tiered anomaly handling mechanism throughout the optimized process, this invention elevates simple algorithmic reconstruction into an intelligent solution with self-awareness, self-diagnosis, self-repair, and human-computer interaction capabilities. This not only improves the reliability of reconstruction results in complex clinical environments but also provides decision support for operators, ensuring the practical applicability and clinical safety of the technical solution.
[0080] In some embodiments of the present invention, clinical measurement parameters are calculated based on a specific three-dimensional bone model, including: Obtain the three-dimensional coordinates of key bony points and the coordinate system of bone segments from a specific three-dimensional bone model; Calculate one or more clinically measured parameters, such as force line angle, length, rotation angle, or joint posture, based on three-dimensional coordinates and bone segment coordinates.
[0081] In the above embodiments, reconstructing a specific three-dimensional bone model is merely a means to an end; its core value lies in the ability to accurately calculate clinical measurement parameters that are unaffected by the projection angle and possess spatial anatomical significance. Since this three-dimensional model is obtained through multi-view geometric constraint inversion under functional positions and has undergone projection consistency verification and anatomical rationality constraints, the calculation results based on this model can truly reflect the spatial configuration of the skeleton under physiological loads.
[0082] After optimization iterations, each vertex in the 3D bone model possesses precise coordinates in the world coordinate system. Based on the predefined topological relationships in S102 (e.g., defining the four corners of the superior endplate of the vertebral body, the center of the femoral head, and the medial and lateral condyles of the femur as specific keypoint indices), the 3D coordinates of these keypoints are directly indexed and extracted from the model mesh. X bk ∈R 3Unlike two-dimensional measurements that estimate intersection points visually, the coordinates obtained are the result of the model achieving the best fit with all two-dimensional observation information in three-dimensional space, naturally eliminating positioning errors caused by X-ray magnification distortion and projection overlap.
[0083] To describe the posture of the skeleton and the relative motion between bones, it is necessary to establish a local coordinate system for each bone segment b. The coordinate system is established based on the geometric relationships of key bony points. Specifically, the origin... O b The coordinate system is typically defined as the rotational or geometrical center of the bone segment. For example, the origin of the femoral coordinate system can be defined as the center of the femoral head; the origin of the vertebral coordinate system can be defined as the geometrical center of the vertebral body or the midpoint of the line connecting the pedicles. Axial axis definitions: For example, for long bones, the line connecting the center points of both ends of the bone segment can be defined as the major axis (z-axis); for the spine, the tangent along the midline of the spine can be defined as the z-axis. The other two axes are determined according to anatomical conventions using methods such as Gram-Schmidt orthogonalization to ensure coordinate system standardization. Thus, the pose of each bone segment is determined by a complete 4×4 homogeneous transformation matrix. T b The matrix encapsulates information about rotation and translation.
[0084] Using the geometric primitives obtained above, various parameters are automatically calculated according to clinically accepted orthopedic definitions and formulas. Because the calculations are based on a three-dimensional model, the results are unaffected by the projection angle and exhibit high repeatability.
[0085] Force lines reflect the weight-bearing trajectory of the bones and are a core indicator for assessing deformities and developing osteotomy plans. Specifically, this includes: lower limb force lines, calculating the projection angles of the femoral head center, knee joint center, and ankle mortise points on the coronal plane. In the 3D model, the degree of collinearity of these three center points in the frontal plane can be directly calculated, accurately quantifying the degree of varus or valgus, avoiding false varus / valgus caused by incorrect projection angles in 2D X-rays; spinal force lines, fitting the superior and inferior endplate planes of the upper and lower vertebrae in the 3D model of the spine, calculating the angle between the normal vectors of these two planes. Compared to 2D X-rays, 3D measurement can effectively isolate the influence of vertebral rotation on Cobb angle readings and simultaneously calculate the rotational components of the vertebrae in 3D space; and pelvic incidence angle, based on a pelvic coordinate system established by the midpoint of the sacral endplate, the sacral apex, and the centers of both femoral heads, calculating the angle between the line connecting the midpoint of the sacral endplate and the center of the femoral head and the perpendicular line of the sacral endplate. 3D measurement can automatically segment the endplates, avoiding measurement errors caused by endplate blurring or double shadows in 2D images.
[0086] Calculating the Euclidean distance between bony structures is a crucial basis for limb balance and prosthesis selection. Specifically, this includes: limb length difference, calculating the vertical height difference between the apex of the greater trochanter of the femur or the center of the ankle joint in both lower limbs, used to diagnose leg length discrepancy; bone segment length, such as the anatomical axis length of the femur, the length from the tibial plateau to the ankle mortise, etc., directly measuring the three-dimensional linear distance between key points at both ends of a bone segment; and osteotomy planning, in preoperative planning, where the distance from the osteotomy line to the articular surface can be directly measured on a three-dimensional model to guide the design of the surgical guide and ensure osteotomy accuracy.
[0087] Calculating rotation angles to assess the degree of torsion of bones around their long axis is a parameter that is extremely difficult to measure accurately with two-dimensional X-rays, but it is crucial for diagnosing conditions such as patellar instability and hip impingement. Specifically, it includes: femoral anteversion angle, calculated by establishing a femoral neck coordinate system and a femoral condyle coordinate system, and calculating the angle between the projections of the two coordinate systems on the cross-section. Three-dimensional measurement can accurately reflect the rotational state of the femoral neck relative to the femoral condyle, unaffected by the lower limb's posture during X-ray projection; tibial torsion angle, similarly calculated by establishing a tibial plateau coordinate system and an ankle coordinate system, and calculating their relative rotation angle, used to assess tibial internal or external rotation deformities; and vertebral body rotation angle, calculated based on the pedicle morphology or endplate ellipticity within the vertebral body, to assess the axial rotation angle of the vertebral body relative to the spinal midline, used to assess the stiffness of scoliosis.
[0088] Calculating joint posture describes the relative spatial relationships between adjacent bone segments and is commonly used in joint replacement or orthopedic surgeries. Specifically, this includes: acetabular cup posture, which calculates the angle between the normal vector of the acetabular cup implant's opening plane and a specific axis of the pelvic coordinate system in a 3D pelvic model, assessing whether the acetabular cup's anteversion and abduction angles are within safe zones, and predicting postoperative dislocation risk; knee replacement gap, which calculates the parallelism and varus / valgus and anteversion / anterior / posterior tilt relationships between the distal femoral osteotomy surface and the tibial plateau osteotomy surface in 3D space, ensuring normal lower limb alignment and joint space balance postoperatively; and spinal segment flexibility, which calculates the 3D relative displacement and rotation of spinal segments in hyperextension and hyperflexion positions, assessing the spinal range of motion and flexibility in functional positions, providing a basis for determining whether osteotomy and fusion are necessary.
[0089] In summary, calculating clinical measurement parameters based on a specific three-dimensional bone model elevates traditional two-dimensional empirical measurements to three-dimensional digital quantitative measurements. This not only provides more accurate absolute values but, more importantly, spatial orientation information, enabling a comprehensive assessment of the current situation from a three-dimensional perspective, allowing for the development of more precise surgical plans, and achieving a quantitative evaluation of postoperative outcomes.
[0090] In some embodiments of the present invention, when optimizing the model parameters and pose parameters corresponding to the candidate 3D bone model, one or more of the following acceleration strategies are adopted: Train an initial value prediction network to predict initial latent variables and initial pose parameters from two-dimensional X-ray images and two-dimensional observation information; The optimization variables of the candidate 3D bone model are restricted to latent variables; Adjust pose parameters globally; adjust pose parameters and model parameters within the region of interest.
[0091] In the above embodiments, although the computational complexity has been controlled to some extent by introducing generative priors and hierarchical optimization strategies, considering the real-time requirements of clinical scenarios and the computational challenges brought by high-resolution DRR rendering and large-scale parameter optimization, this embodiment further provides a set of pluggable and composable acceleration strategies. These strategies aim to reduce the number of iterations and the time consumed per iteration in the optimization process, while maintaining acceptable reconstruction accuracy. When optimizing the model parameters and pose parameters corresponding to the candidate 3D bone model, one or more of the following acceleration methods can be selectively adopted: 1. Train the initial value prediction network to predict the initial latent variables and initial pose parameters from two-dimensional X-ray images and two-dimensional observation information. This can skip the time-consuming random initialization or traditional triangulation initialization process by using a data-driven approach, and directly provide the optimizer with a hot start point near the global optimum.
[0092] In practice, a lightweight convolutional neural network is constructed as the initial value prediction network. The input to this network can be the original two-dimensional X-ray image. I i Alternatively, it can be the two-dimensional observation information extracted from S102. The network undergoes supervised training with large-scale synthetic data and / or real clinical data to learn the mapping relationship from two-dimensional projective features to three-dimensional model parameters. Its output represents the initial latent variables for the current target object. z 0 and initial pose parameters T 0 (Including the rotation matrix and translation vector of each bone segment).
[0093] In the target-specific reconstruction stage, the pre-trained network is directly invoked to perform forward inference on the input two-dimensional data, quickly obtaining high-quality initial values. Because the latent space of generative prior models (such as VAEs) is continuous and the pose parameters have clear geometric meanings, the initial value prediction network can reduce the search space of the optimization variables by several orders of magnitude with low inference cost. This allows subsequent iterative optimization to converge to a high-precision solution in a very small number of steps, improving reconstruction speed and meeting the real-time requirements of clinical practice.
[0094] 2. By restricting the optimization variables of the candidate 3D bone model to latent variables, the low-dimensional manifold characteristics of the generative prior model are utilized, fundamentally reducing the dimensionality of the optimization problem.
[0095] As mentioned earlier, a three-dimensional bone model can be derived from a low-dimensional latent variable z∈ R d Through generator network G θ The reconstruction yields a value where d is typically much smaller than three times the total number of vertices N in the 3D model. During the optimization process, instead of directly adjusting the 3D coordinates of thousands of vertices, the optimization variables of the candidate 3D bone model are restricted to the latent variable z.
[0096] In practice, the search space of the optimization algorithm is set to the latent space. The algorithm only updates the value of the latent variable z, while the generator network... G θ parameters θ The target object remains fixed during the target object phase. When it is necessary to calculate the loss function or projected image, it is done via forward propagation. G θ (z) Generate the 3D mesh or projected image corresponding to the current latent variable in real time. This approach results in extremely low dimensionality of the optimized variables and fast convergence. Furthermore, the generator network naturally acts as a powerful regularizer, ensuring that any solution in the latent space corresponds to an anatomically sound 3D bone model, effectively avoiding mesh distortion or noise that may occur during vertex-level optimization.
[0097] 3. Adjusting pose parameters globally and adjusting pose and model parameters within the region of interest (ROI) is a progressive optimization strategy based on multi-resolution and region of interest (ROI). By allocating different computational resources at different optimization stages, computational efficiency is maximized.
[0098] When adjusting pose parameters globally, the primary goal in the initial optimization phase is to orthogonalize bone segments in 3D space. At this stage, low-resolution 2D images are used for projection calculations. Low-resolution images not only reduce the computational cost of DRR rendering but also lower the sensitivity of the loss function to local texture noise. The focus of optimization at this stage is on adjusting pose parameters globally. Since the pose parameters have only 6 degrees of freedom, and global features are still clear at low resolution, the optimizer can converge quickly, determining the approximate spatial location of each bone segment.
[0099] When adjusting pose and model parameters within a region of interest (ROI), the primary goal in the mid-to-late stages of optimization is to finely reconstruct the morphological details of the skeleton. At this point, a high-resolution image is switched to, and a ROI mechanism is introduced. Based on the current bone segment's position and size, a local image patch containing the target bone segment is cropped as new observation input. The loss function is also limited to pixels or features within this ROI. In this mode, pose and model parameters are adjusted within the ROI. Because the ROI is much smaller than the full image, and high resolution preserves edge details, the optimizer can precisely fine-tune the pose and model parameters of the bone segments. This coarse-to-fine, full-image-to-local strategy effectively avoids the enormous computational overhead of global optimization at high resolution across the entire image, while ensuring the final reconstruction accuracy.
[0100] In addition to the strategies described above, those skilled in the art should understand that other well-known acceleration techniques can also be combined, such as using an approximate renderer to replace physically accurate DRR rendering, utilizing the GPU to calculate the projection error of multiple viewpoints in parallel, or performing first-order / second-order approximations on the loss function, all of which fall within the scope of protection of this invention.
[0101] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives, as well as magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.
[0102] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0103] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0104] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between devices or units may be electrical or other forms.
[0105] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0106] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0107] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0108] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0109] The foregoing description is merely an exemplary embodiment of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Those skilled in the art will readily conceive of embodiments of this disclosure upon considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described herein. The specification and embodiments are to be considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.
[0110] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0111] Those skilled in the art will readily understand that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for reconstructing a three-dimensional bone model with multiple functional positions, characterized in that, Includes the following steps: Acquire two-dimensional X-ray images of the target object at multiple different projection angles under the functional position, and obtain the projection geometric parameters corresponding to the different projection angles; Extract two-dimensional observation information of the target bony structure from the two-dimensional X-ray image; The pre-trained three-dimensional bone morphology generation model is invoked to generate candidate three-dimensional bone models based on the two-dimensional observation information; Based on the projection geometry parameters, the candidate three-dimensional bone model is projected onto a two-dimensional image plane at various angles to obtain projection observation information; Based on the difference between the projected observation information and the corresponding two-dimensional observation information, under the constraint of multi-angle projection consistency, the latent variables, model parameters, pose parameters and optional geometric correction parameters of the candidate three-dimensional bone model are optimized specifically for the target object. Based on the optimized latent variables, model parameters, and pose parameters, a specific three-dimensional bone model for the target object is determined using the pre-trained three-dimensional bone morphology generation model, and clinical measurement parameters are calculated based on the specific three-dimensional bone model.
2. The method for reconstructing a three-dimensional bone model with multiple functional positions according to claim 1, characterized in that, The multiple two-dimensional X-ray images with different projection angles include a combination of frontal images, lateral images, and at least one oblique image.
3. The method for reconstructing a three-dimensional bone model with multiple functional positions according to claim 1, characterized in that, Obtain the projection geometry parameters corresponding to multiple angles, including: The initial projection matrix of each angle is obtained by the calibration device, as well as the detection position of the calibration point in the two-dimensional X-ray image provided by the calibration device; A geometric correction parameter is introduced into the initial projection matrix, and the calibration point is projected onto the two-dimensional image plane at each angle using the corrected initial projection matrix to obtain the projection position of the calibration point. Based on the residual between the detection position and the projection position, the value of the geometric correction parameter is determined, and the projection geometric parameters corresponding to multiple angles are obtained.
4. The method for reconstructing a three-dimensional bone model with multiple functional positions according to any one of claims 1 to 3, characterized in that, The extraction of two-dimensional observation information of the target bony structure from the two-dimensional X-ray image includes: Obtain a heatmap of the bony key points in the target bony structure, wherein the bony key points are predefined for the target bony structure; Based on the heatmap, calculate the confidence level and uncertainty covariance of the bony key points; The two-dimensional observation information includes one or more of the following: the heatmap, the confidence level, the uncertainty covariance, the contour point set, the edge map, and the segmentation mask.
5. The method for reconstructing a three-dimensional bone model with multiple functional positions according to claim 1, characterized in that, The optimization of the model parameters and pose parameters corresponding to the candidate 3D bone model includes: Based on the two-dimensional observation information and the two-dimensional coordinates corresponding to the predefined key points in the candidate three-dimensional bone model, as well as the projection geometric parameters, the initial three-dimensional key points are obtained through multi-view triangulation, and the pose parameters and model parameters of each bone segment in the candidate three-dimensional bone model are initialized. The model parameters are fixed, and the pose parameters are optimized based on the comparison difference between the projected observation information and the predefined key points. Under contour and edge constraints, the model parameters and pose parameters are adjusted, and the model parameters and pose parameters are adjusted according to the similarity constraints between the projected observation information and the two-dimensional observation information.
6. The method for reconstructing a three-dimensional bone model with multiple functional positions according to claim 1, characterized in that, When the target bony structure contains multiple bone segments, the optimization of the model parameters and pose parameters corresponding to the candidate three-dimensional bone model also includes joint coupling constraint terms between adjacent bone segments. The joint coupling constraint is used to limit the relative position, relative posture, range of motion, motion coupling relationship, joint surface spatial relationship or sequence continuity between adjacent bone segments, so that the optimization result is within the physiologically feasible range that is adapted to the target anatomical site. The joint coupling constraints include one or more of the following: relative pose feasible domain constraints, joint range of motion constraints, motion degree of freedom coupling constraints, joint center or joint axis consistency constraints, joint surface gap or non-penetration constraints, sequence continuity constraints, or statistical physiological prior constraints.
7. The method for reconstructing a three-dimensional bone model with multiple functional positions according to claim 5, characterized in that, Before determining the specific three-dimensional bone model of the target object based on the optimized three-dimensional bone morphology generation model, and calculating clinical measurement parameters based on the specific three-dimensional bone model, the method further includes: Calculate quality control indicators, which include one or more of the following: keypoint reprojection error, contour distance, calibration residual, latent variable distribution distance, joint coupling residual, or image similarity. When any of the quality control indicators exceeds the preset range, an anomaly handling mechanism is triggered. The anomaly handling mechanism includes reducing the weight of abnormal key points or abnormal perspectives, prompting recalibration, prompting manual correction, or terminating automatic reconstruction.
8. The method for reconstructing a three-dimensional bone model with multiple functional positions according to claim 1, characterized in that, The calculation of clinical measurement parameters based on the specific three-dimensional bone model includes: The three-dimensional coordinates of key bony points and the coordinate system of bone segments are obtained from the specific three-dimensional bone model. Based on the three-dimensional coordinates and the bone segment coordinate system, calculate one or more clinical measurement parameters, such as force line angle, length, rotation angle, or joint posture.
9. The method for reconstructing a three-dimensional bone model with multiple functional positions according to claim 5, characterized in that, When optimizing the model parameters and pose parameters corresponding to the candidate 3D bone model, one or more of the following acceleration strategies are adopted: Train an initial value prediction network to predict initial latent variables and initial pose parameters from the two-dimensional X-ray image and the two-dimensional observation information; The optimization variables of the candidate 3D bone model are restricted to latent variables; Adjust pose parameters globally; adjust pose parameters and model parameters within the region of interest.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the three-dimensional bone model reconstruction method with multiple functional positions as described in any one of claims 1-9.
