Radiation-free lower limb force line measurement method and system based on RGB image

By using a radiation-free lower limb force line measurement method based on RGB images, key bony anatomical points are detected by capturing images with a regular camera or mobile phone. An axis is constructed, multiple force line indices are calculated, and a schematic diagram is generated. This method solves the problems of radiation, equipment dependence, and single index in existing lower limb force line measurement technologies, and achieves portability and rapid measurement and schematic diagram generation of multiple indices.

CN123181531APending Publication Date: 2026-11-27WEST CHINA HOSPITAL SICHUAN UNIV +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611414514.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-11
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies for lower limb alignment measurement suffer from problems such as radiation dependence, equipment dependence, poor portability, inability to conduct rapid screening and high-frequency follow-up, lack of bony landmarks and clinical gold standards, single indicators and lack of schematic diagrams, and lack of flexible deployment. They cannot achieve accurate quantitative measurement of multiple alignment indicators using ordinary cameras or mobile phone photos.

Method used

A radiation-free lower limb force line measurement method based on RGB images is adopted. Lower limb images are captured by ordinary visible light cameras or mobile terminals with cameras. A detection network is used to detect key bony anatomical points, construct mechanical and anatomical axes, calculate multiple force line indices, and generate labeled schematic diagrams. It supports local or cloud-based adaptive deployment.

Benefits of technology

It enables the acquisition of multiple lower limb force line indicators using ordinary cameras or mobile phone photos under radiation-free conditions, eliminating the dependence on radiation and large equipment, improving portability and ease of use, and enabling the unified output of multiple force line indicators and the generation of schematic diagrams for doctor-patient communication in a single measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181531A_ABST
    Figure CN123181531A_ABST
Patent Text Reader

Abstract

The application discloses a kind of radiation-free lower limb force line measurement method and system based on RGB image.It includes: step 1: collect standing position lower limb RGB image and carry out pretreatment to obtain the image to be detected;Step 2: the detection network with two parallel detection branches is used to detect the pixel coordinates of multiple bony anatomical key points of bilateral lower limbs in the image to be detected, and the key point detection result is obtained;Step 3: a plurality of axis and joint surface lines are constructed according to the key point detection result;Step 4: based on each axis and joint surface line, the vector angle calculation and point-to-line distance calculation are carried out, and a plurality of lower limb force line quantitative indexes are obtained to determine the deformity type of lower limb force line;Step 5: the key points, axis and angle value are superimposed on the original RGB light image to generate a labeled lower limb force line measurement schematic diagram.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computer vision, deep learning and orthopedic biomechanical measurement technology, and more specifically to a radiation-free lower limb force line measurement method and system based on RGB images. Background Technology

[0002] Lower-limb alignment is a core quantitative basis for orthopedic assessment of knee varus and valgus deformities, preoperative planning (such as osteotomy and joint replacement), postoperative follow-up, and exercise rehabilitation. Commonly used alignment indicators in clinical practice include multiple angles and distances such as hip-knee-ankle angle (HKA), mechanical axis offset (MAD), proximal lateral femoral angle (mLPFA), distal lateral femoral angle (mLDFA), proximal medial tibia angle (MPTA), joint line convergence angle (JLCA), distal lateral tibia angle (LDTA), anatomical tibiofemoral angle (aTFA), neck-shaft angle (NSA), proximal anatomical femoral angle (aMPFA), and knee joint line tilt (JLO). All of these must be calculated under standing weight-bearing conditions, based on the construction of mechanical axis, anatomical axis, and articular surface lines using multiple bony anatomical landmarks of the hip, knee, and ankle.

[0003] The current gold standard for obtaining these indicators in clinical practice is manual measurement by physicians after full-length standing X-ray imaging of both lower limbs. This method is highly accurate, but it has inherent problems such as ionizing radiation, reliance on large, fixed equipment and professional technicians for positioning, long examination cycles, and difficulty in use for rapid outpatient screening and high-frequency follow-up. To reduce radiation and costs, several alternative or auxiliary solutions have emerged in the industry, but there is still a significant gap in achieving the goal of "obtaining multiple quantitative force line results with a single ordinary visible light imaging".

[0004] The shortcomings of existing technologies include: Radiation and equipment dependence: Gold standard X-ray and intraoperative imaging protocols (such as Direction 2) involve ionizing radiation and rely on large fixed equipment and professional positioning, which is not conducive to rapid outpatient screening and high-frequency follow-up.

[0005] Dedicated hardware / intrusion / cumbersome process: physical instruments, wearable spatial perception, optical marker arrays and point cloud registration solutions (direction one, direction two (4), direction three) require dedicated hardware or prescribed action procedures, which are not portable and easy to use, and are difficult to popularize in grassroots and home scenarios.

[0006] Relying on depth cameras and not achieving pure RGB: The most similar portable visual acquisition solution to this case still uses depth cameras to collect point clouds, which cannot meet the low-threshold requirement of "a single photo from an ordinary camera or mobile phone is sufficient".

[0007] Lack of lower limb bony landmarks and clinical gold standards: The general human posture / monocular depth scheme lacks lower limb bony anatomical landmarks and radiological gold standards for supervision, and the output does not correspond to clinical force line indicators.

[0008] Limited indicators and lack of diagrams: Existing solutions often only provide a single force line or inversion / exversion state, and cannot uniformly output the values ​​of multiple force line indicators in a single measurement and automatically generate a labeled diagram for communication between doctors and patients.

[0009] Lack of flexible deployment: The existing solution does not provide a unified adaptive deployment solution for the two typical scenarios of "local processing with dedicated cameras" and "uploading mobile phone photos to the cloud for processing".

[0010] Therefore, designing a radiation-free lower limb force line measurement method and system based on RGB images for the scenario of radiation-free quantitative measurement of lower limb force lines is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0011] In view of this, the present invention provides a radiation-free method and system for measuring lower limb force lines based on RGB images. The subject is in a standing weight-bearing position, and an image containing both lower limbs is captured by an ordinary visible light camera or a mobile terminal with a camera. The system detects key points of the lower limb bony anatomy in the image, and constructs mechanical axis, anatomical axis and articular surface lines from the detected key points. Then, it calculates multiple lower limb force line indices and generates an annotated schematic diagram.

[0012] To achieve the above objectives, the present invention adopts the following technical solution: A radiation-free method for measuring lower limb force lines based on RGB images, comprising: Step 1: Acquire RGB images of the standing lower limbs and preprocess them to obtain the image to be detected; Step 2: Use a detection network with two parallel detection branches to detect the image to be detected to obtain the pixel coordinates of multiple bony anatomical key points of both lower limbs, and obtain the key point detection results; Step 3: Construct multiple sets of axes and joint surface lines based on the key point detection results; Step 4: Based on each axis and joint surface line, multiple quantitative indicators of lower limb force line are obtained through vector angle calculation and point-to-line distance calculation to determine the deformity type of lower limb force line; Step 5: Overlay key points, axis and angle values ​​onto the original RGB light image to generate a labeled lower limb force line measurement diagram.

[0013] Preferably, the detection network of the two parallel detection branches in step 2 includes a key point heatmap branch and a region detection branch. The key point heatmap branch and the region detection branch share the same backbone, feature pyramid and neck, and are jointly trained end-to-end with a total loss of multi-task weighted sum and share the same optimizer.

[0014] Preferably, the key point heatmap branch and the region detection branch adopt the degree privileged information training and inference paradigm, and a deep fantasy branch is set at the same time; During the training phase, depth data aligned with RGB image registration was used as a privileged teacher signal for auxiliary supervision. The deep fantasy branch uses residual connections to inject the reconstructed deep clues back into the main branch. When the deep clues are unreliable, the residuals tend to zero, without degrading the original RGB path. During the inference phase, only RGB images are input, and the teacher is not involved; the deep fantasy branch has internalized the depth prior as features inferred from the RGB images; During the inference phase, only an RGB image is input to obtain the key point detection results.

[0015] Preferably, the training phase also includes mapping the X-ray gold standard annotation to the RGB domain using cross-modal calibration to form ground truth values, specifically including: The RGB-D camera and the X-ray tube are coaxially fixed and calibrated together with a calibration plate to obtain the invertible geometric mapping matrix T(x→c) and its inverse T(c→x) between the X-ray domain and the camera domain. The manually marked bony landmark pixels on the X-ray image are converted into three-dimensional physical coordinates by pixel physical size, and then transformed into the camera coordinate system through the geometric mapping matrix. Finally, they are projected onto the RGB image plane through camera intrinsic parameters to obtain the initial mapping points. The point is back-projected using the aligned depth frame, returned to the X-ray domain via T(c→x), and reprojected after z is corrected by the back projection depth. The process is iteratively converged to obtain stable RGB pixel coordinates, thus completing the point-by-point migration from the X-ray gold standard annotation to the RGB image domain.

[0016] Preferably, the multiple lower limb force line quantitative indicators include hip-knee-ankle angle (HKA), mechanical axis offset (MAD), mechanical lateral proximal femoral angle (mLPFA), mechanical lateral distal femoral angle (mLDFA), medial proximal tibia angle (MPTA), joint line convergence angle (JLCA), lateral distal tibia angle (LDTA), anatomical tibiofemoral angle (aTFA), neck-shaft angle (NSA), anatomical proximal femoral angle (aMPFA), and knee joint line tilt (JLO). Among them, the length-type index of mechanical axis offset (MAD) establishes the ratio coefficient between pixels and physical length by using a pre-set known scale reference object in the shooting scene, and converts the pixel distance into the real physical length.

[0017] Preferably, the calculation and classification process of the hip-knee-ankle angle (HKA) is as follows: Using the center of the interspinous space of the tibia as the center of the knee joint, a femoral vector is constructed pointing from the center of the knee joint to the center of the femoral head, and a tibial vector is constructed pointing from the center of the knee joint to the midpoint of the talus dome. The medial angle between the two vectors is calculated by the dot product of the vectors to obtain the HKA value. Using 180° as the neutral reference, combined with the preset symmetry tolerance zone and the direction sign of the cross product of the two vectors, the lower limb force line type is determined to be varus, neutral, or valgus.

[0018] Preferably, the method also includes deploying adaptive routing, which adaptively selects the inference execution location based on the device type and operating environment of the device that acquires the RGB image; if the image is acquired by a dedicated acquisition camera, all preprocessing, key point detection, geometric calculation and schematic diagram generation processes are completed locally on the camera, and the results are output locally; if the image is acquired by a mobile terminal, the image is uploaded to a cloud server to complete all calculation processes, and then the force line index values ​​and labeled schematic diagrams are sent back to the mobile terminal for display.

[0019] Preferably, a radiation-free lower limb force line measurement system based on RGB images includes: Dedicated camera acquisition module: Acquires RGB images of standing lower limbs in a scene where a dedicated camera is deployed, serving as the input source for local inference; Mobile terminal photography module: Collects photos of the lower limbs in mobile terminal scenarios, which serve as the input source for uploading to the cloud for inference; Deploy the routing module: Based on the type of data collection device and the operating environment, adaptively decide whether the inference is executed locally or uploaded to the cloud for execution; Image preprocessing module: performs size normalization and orientation correction on the input image; Lower limb anatomical key point detection module: Detects key bony anatomical points of both lower limbs in the preprocessed RGB image and provides key point coordinates to the downstream measurement layer; Deep privileged information assistance module: receives deep teacher signals during the training phase, reconstructs deep-related cues from RGB features during the inference phase, and back-injects the keypoint detection module in a residual manner; Axis and articular surface construction module: Construct the femoral / tibial mechanical axis, anatomical axis and articular surface lines based on key points; Multi-index geometric calculation module: Based on the constructed axis and articular surface lines, it uniformly calculates multiple lower limb force line indices and completes the classification; Schematic diagram generation module: Overlays key points, axes and angle annotations onto the original RGB image to generate a force line diagram that can be used for doctor-patient communication; Gold Standard Label Transfer and Training Module: Used during the training phase to map X-ray gold standard labels to the RGB domain to form truth values ​​using cross-modal calibration; The results output and feedback module summarizes the values ​​and diagrams of multiple indicators and sends them back to the display end via a consistent interface according to the deployment route.

[0020] As can be seen from the above technical solution, compared with the prior art, this invention discloses a radiation-free lower limb force line measurement method and system based on RGB images. This allows the test subject to obtain force line results with only a single ordinary visible light photograph (taken by a dedicated camera or mobile phone), eliminating ionizing radiation and dependence on large equipment, depth cameras, and markers. Even without X-ray information as input, it can accurately locate lower limb bony anatomical landmarks, solving the problem of "lack of direct visibility of bony structures in visible light images." Quantitative values ​​of the aforementioned multiple force line indicators are derived from the same set of anatomical key points through a unified geometric calculation pipeline, and labeled schematic diagrams are automatically generated, avoiding individual measurement of each item. For scenarios involving dedicated cameras, inference is completed locally; for scenarios involving mobile phone photography, images are uploaded to the cloud for inference, and results and schematic diagrams are returned via a consistent interface. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0022] Figure 1 This is a system block diagram provided for the present invention.

[0023] Figure 2 The system flowchart provided for this invention.

[0024] Figure 3 The network structure diagram provided by this invention. Detailed Implementation

[0025] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0026] like Figure 2As shown, the present invention acquires RGB images of the standing lower limbs (S1) → determines the type of acquisition device by the deployment route (S2) and selects local inference (S3A) or cloud inference (S3B) accordingly → image preprocessing (S4) → detection of bony key points in the lower limb region (S5, features are back-injected by the depth privileged information auxiliary module S6 during inference) → constructs the axis and articular surface lines (S7) → uniformly calculates multiple force line indices and determines the type (S8) → generates an annotated schematic diagram (S9) → transmits back the values ​​and schematic diagram (S10).

[0027] This invention discloses a radiation-free method for measuring lower limb force lines based on RGB images, comprising: Step 1: Acquire RGB images of the standing lower limbs and preprocess them to obtain the image to be detected; Step 2: Use a detection network with two parallel detection branches to detect the image to be detected to obtain the pixel coordinates of multiple bony anatomical key points of both lower limbs, and obtain the key point detection results; Step 3: Construct multiple sets of axes and joint surface lines based on the key point detection results; Step 4: Based on each axis and joint surface line, multiple quantitative indicators of lower limb force line are obtained through vector angle calculation and point-to-line distance calculation to determine the deformity type of lower limb force line; Step 5: Overlay key points, axis and angle values ​​onto the original RGB light image to generate a labeled lower limb force line measurement diagram.

[0028] Specifically, the detection network of the two parallel detection branches in step 2 includes a key point heatmap branch and a region detection branch. The key point heatmap branch and the region detection branch share the same backbone, feature pyramid and neck, and are jointly trained end-to-end with the total loss of multi-task weighted sum and share the same optimizer.

[0029] In a specific embodiment of the present invention, a detection network with two parallel detection branches is used for the preprocessed RGB image: Key point heatmap branch: Outputs the positional response of each lower limb bony anatomical key point in the form of heatmap regression; the key points cover both lower limbs and are set in zones according to femoral region / tibia / ankle region, with a number of dozens, covering anatomical landmarks required for constructing each axis and articular surface line, such as the femoral head center, greater trochanter tip, femoral medial and lateral condyles, tibial interspinous center, tibial plateau medial and lateral sides, ankle mortise / talar dome, and ankle joint center.

[0030] Region Detection Branch: This branch detects multiple lower limb regions (bilateral × {hip joint region / knee joint region / ankle joint region}) using a center point + offset + size approach. It provides region-level priors and multi-target localization constraints for the heatmap branch, mitigating interference between the two lower limbs. The regions are defined as follows: Hip joint region: upper and lower boundaries from the upper end of the iliac crest of the pelvis to the upper 1 / 3 of the femoral shaft; left and right boundaries are the outermost skin surface. Knee joint region: upper and lower boundaries from the lower 1 / 3 of the femur to the upper 1 / 3 of the tibia; left and right boundaries include the inner and outer skin of the knee joint. Ankle region: lower 1 / 3 of the tibia to the entire foot.

[0031] The two branches share the backbone network and feature pyramid. The backbone can adopt a visual Transformer-type or convolutional-type backbone and load general large-scale pre-trained weights. To address the uncertainty of annotations in some regions, a region-aware negative sample supervision strategy can be adopted in uncertain regions, that is, no positive / negative supervision is applied to such regions to avoid erroneous gradients.

[0032] Furthermore, joint training methods for the two branches include: The keypoint heatmap branch and the region detection branch share the same backbone, feature pyramid, and neck. They are jointly trained end-to-end using a multi-task weighted sum total loss and share the same optimizer. The region detection branch provides region-level priors for the keypoints it covers: during inference, the detection branch first decodes the bounding boxes of each lower limb, and then masks the corresponding keypoint heatmap by expanding the bounding boxes by 25% (setting zeros outside the boxes) to suppress mutual interference between the left and right lower limbs; during training, negative sample supervision is applied to the "negative regions" outside the bounding boxes to push the keypoint response to 0, and no positive / negative supervision is applied to regions with uncertain annotations (region-aware negative sample strategy).

[0033] The input / output tensor dimensions of each branch (taking ViTPose-B, input 480×832 as an example, B is the batch size) are shown in Table 1.

[0034] Table 1

[0035] Note: The high-resolution variant adds a 2× deconvolution upsampling after the keypoint branch to obtain a 416×240 heatmap of stride-2, while the detection head remains stride-4. There are 46 keypoints (12 for hip, 13 for left / right knee, and 4 for left / right ankle), and 6 detection categories (left / right × hip / knee / ankle).

[0036] Furthermore, the backbone adopts ViTPose-B (vit_base_patch16, patch=16, embedding dimension 768, 12 layers, 12 heads, loaded with COCO+AIC+MPII pose pre-trained weights). The input is a vertical screen width of 480×height of 832; after patch=16, a 30×52 token grid is obtained. The intermediate features of layers 3 / 5 / 7 / 11 (each with 768 channels and the same resolution) are taken, and then processed by ViTFPN (each layer is 1×1 convolution to reduce to 256 channels, bilinear upsampling to stride-4 target size of 208×120 and then fused layer by layer) to obtain a single-scale feature map, which is then connected to a shared neck (two layers of 3×3 convolution 256→256) and a parallel head. As an alternative implementation, the backbone can also adopt HRNet-W32 (native stride-4) or ConvNeXt-Large.

[0037] Training hyperparameters (example): Optimizer AdamW, weight decay 1×10 -4 Two-stage training: First, pre-training (basic learning rate 1×10⁻⁶). -3 Batch size 12, 200 epochs, freeze the backbone for 10 epochs then thaw, linear preheat for the first 3 epochs, cosine annealing hot restart T0=50 / T_mult=2 / minimum 1×10 -6 Gradient clipping norm 10, mixed precision, random seed 42; fine-tuning with a smaller learning rate (learning rate 5×10). -5 (No freezing, 50 epochs). Enhancements: Horizontal flip 0.5 (synchronous left and right label swapping), rotation ±15°, scaling 0.85–1.15, translation ±5%, color jitter (0.2 / 0.2 / 0.2 / 0.05), Gaussian noise σ=0.02; ImageNet mean-variance normalization; validation set 15%. Keypoint Gaussian heatmap σ=3.0, detection heatmap σ=2.5. Optional enable UDP unbiased coding and self-training (silver label weight 0.1, σ≤8.0, TTA detection lower limit 15 / K).

[0038] Specifically, the key point heatmap branch and the region detection branch adopt the degree privileged information training and inference paradigm, and a deep fantasy branch is set at the same time; During the training phase, depth data aligned with RGB image registration was used as a privileged teacher signal for auxiliary supervision. The deep fantasy branch uses residual connections to inject the reconstructed deep clues back into the main branch. When the deep clues are unreliable, the residuals tend to zero, without degrading the original RGB path. During the inference phase, only RGB images are input, and the teacher is not involved; the deep fantasy branch has internalized the depth prior as features inferred from the RGB images; During the inference phase, only an RGB image is input to obtain the key point detection results.

[0039] In a specific embodiment of the present invention, such as Figure 3 As shown, the Deep Privileged Information (LUPI) training and inference paradigm enables pure RGB models to acquire prior knowledge from the depth modality, while eliminating the need for any depth sensors during the inference phase: Training data source: An Intel RealSense D455 (RGB+Depth) camera was mounted at the front end of the X-ray beam limiter. RGBD images of the subject were simultaneously acquired during each X-ray exposure to construct RGBD data pairs for image registration and alignment. Alignment between the two RGBD modes was achieved using camera intrinsic parameters, as detailed in the previous patent ZL 2025 1 1999682.6.

[0040] Training Phase: Training samples consist of "RGB + depth" pairs aligned with visible light images. The depth branch acts as the "privileged information" teacher, guiding the network to learn features related to 3D structure. Simultaneously, a depth illusion branch (HallBranch) is set up, allowing it to predict / reconstruct depth-related features from the RGB backbone features, with consistency with the teacher's depth features serving as an auxiliary supervision term. This auxiliary supervision term is superimposed on the main task loss with a small weight (the weight is much smaller than the main loss, for example, a very small auxiliary weight coefficient).

[0041] The backup design uses a residual connection method to inject the reconstructed depth clues back into the main branch. When the depth clues are unreliable, the residuals tend to zero, without degrading the original RGB path, thus ensuring robustness.

[0042] Inference phase: Only RGB images are input, and the depth teacher does not participate; the depth fantasy branch has "internalized" the depth prior into features that can be inferred from RGB, thereby improving the accuracy of key point localization in the absence of a depth sensor.

[0043] In addition, to improve the utilization of weakly labeled data, test-time augmentation (multiple geometric augmentation inferences on the same image and fusion) can be used to generate silver labels, and self-training iteration can be performed in the manner of "high weight for gold labels and low weight for silver labels".

[0044] Specifically, the training phase also includes mapping X-ray gold standard annotations to the RGB domain using cross-modal calibration to form ground truth values, specifically including: The RGB-D camera and the X-ray tube are coaxially fixed and calibrated together with a calibration plate to obtain the invertible geometric mapping matrix T(x→c) and its inverse T(c→x) between the X-ray domain and the camera domain. The manually marked bony landmark pixels on the X-ray image are converted into three-dimensional physical coordinates by pixel physical size, and then transformed into the camera coordinate system through the geometric mapping matrix. Finally, they are projected onto the RGB image plane through camera intrinsic parameters to obtain the initial mapping points. The point is back-projected using the aligned depth frame, returned to the X-ray domain via T(c→x), and reprojected after z is corrected by the back projection depth. The process is iteratively converged to obtain stable RGB pixel coordinates, thus completing the point-by-point migration from the X-ray gold standard annotation to the RGB image domain.

[0045] In a specific embodiment of the present invention, the image data comes from all lower extremity X-ray examinations in the clinical outpatient clinic. Taking pelvic X-ray as an example, the pelvic X-ray and the corresponding RGBD are acquired simultaneously. Then, anatomical bony points are marked on the pelvic X-ray and then mapped and converted to RGBD.

[0046] Specifically, the loss function in the training process includes the main loss and the auxiliary loss, and the specific process includes: Let p be the heatmap prediction after Sigmoid processing, y be the Gaussian ground truth (with a peak value of 1), and let the focal parameters be α=2 and β=4.

[0047] ① Keypoint heatmap loss (CenterNet focus loss with visibility masking): L kp =-(1 / N pos )·Σ c∈V Σ (i,j) [ (y=1)·(1-p) α ·logp+ (y<1)·(1-y) β ·p α ·log(1-p)]; Where V represents the set of visible / annotated keypoint channels in the sample. Channels of invisible keypoints are not included in the calculation (i.e., "visibility masking") to avoid generating incorrect gradients at occlusion / missing labels.

[0048] N pos =|V|: The number of visible keypoints, used for normalization to prevent loss from increasing with the number of keypoints.

[0049] The positive sample term only applies at the true peak y=1, (1-p) α The challenge lies in ensuring that the peak, which is "predicted very well," contributes only a small amount of gradient; negative sample terms are effective at all locations except for the peak, (1-y). β Reduce the penalty for positions close to the true peak, p α Lower the background that makes it easy to distinguish.

[0050] Function: To create a sharp response peak at the actual location of each visible key point, while suppressing the others.

[0051] ② The loss in the negative region is due to the fact that the true value in the negative region is always y≡0, and the loss in the focal negative sample term is (1-y). β=1, therefore, the simplified form is: L negkp =-(1 / N neg )·Σ c Σ (i,j) M i,j neg ·p α ·log(1-p), M neg : Negative region mask outside the frame (takes 0 / 1). Sets 1 to the position outside the region frame decoded by the region detection branch (after expanding outward by 25%); sets 0 to the position inside the frame and the marked uncertain region (uncertain region is not supervised).

[0052] N neg =ΣM neg The total number of negative region locations included, used for normalization.

[0053] Function: Explicitly pushes the keypoint response at "other leg / irrelevant background" toward 0, suppressing crosstalk between the left and right lower limbs.

[0054] ③Loss of regional detection heatmap L det : with L kp They are exactly the same, with only three differences: (a) Replace the channels with 6 region center categories; (b) No visibility masking (all 6 category channels participate); (c) Replace the normalization constant with the number of region centers N for this sample. det Its function is to locate the center point of each lower limb region, providing region-level priors for key points.

[0055] ④ Detect offset / size loss L off L size : ; ; k: the k-th truth region bounding box, N det The number of frames.

[0056] c k The center of the frame is at the original image coordinates; It falls on an integer grid point on the downsampled heatmap.

[0057] o k ∈[0,1)²: Quantization error caused by downsampling (the true value of the sub-pixel offset at the center); ô is the predicted offset, which only occurs at integer grid points. The value at point k is used to participate in the loss.

[0058] sk=(w k ,h k ): The actual width and height of the frame; For predicted size. Function: To recover the center decimal places lost during downsampling. off And the regression box size L size .

[0059] ⑤ Keypoint sub-pixel offset loss (masking at the integer peak of the true value, Δ is the sub-pixel residual (dx,dy)): L kpoff =(1 / (2N pos ))·Σ c∈V Σ (i,j) M c,i,j peak ·‖ c,i,j -Δ c,i,j ||1

[0060] Δ=(dx,dy)∈[0,1)²: The true value of the subpixel residual of the real continuous coordinates of the key point relative to its integer peak grid points; To predict residuals.

[0061] M peak Peak mask: Only the peak grid points with true integer values ​​are 1, and the rest are 0 - that is, only the grid point where the key point is located regresses the subpixel offset.

[0062] Factor 2 corresponds to the two components (dx, dy) of Δ, making this term the average L1 for "each component, each key point".

[0063] Function: To refine the peak values ​​of the heatmap to sub-pixel precision using integer grid points. This directly determines the measurement accuracy of angular indicators (such as HKA) and is crucial to the accuracy of this solution.

[0064] ⑥ Deep privileged auxiliary loss (fantasy features aligned with deep teacher features, sg is the stopping gradient, only deep samples are included)

[0065] L hall =(1 / (|D|·C·H·W))·Σ n∈D ||f hall (n) -sg(f depth (n) )‖ F 2

[0066] D: The set of samples in the current batch that contain ground truth values ​​(registered RGBD pairs), where |D| is the number of samples. Pure RGB samples are not included in this category.

[0067] f depth The deep teacher branch extracts features (teacher signals) from the depth map, with shapes [C,H,W] (e.g., 256×208×120).

[0068] F hall The HallBranch is a "depth cue" feature reconstructed solely from the RGB backbone features, and all features have the same shape.

[0069] sg(·): Stop-gradient. Teacher features are treated as fixed targets, and this loss is not backpropagated to update the teacher, preventing auxiliary tasks from contaminating the main branch.

[0070] ‖‖ F 2 The squared Frobenius norm (element-by-element sum of squares), divided by |D|·C·H·W, is converted into the element-by-element mean square error (MSE).

[0071] Function: Forces the RGB branches to "imagine" 3D structural cues consistent with the actual depth. During inference, the teacher removes these cues, and the imagined features are reinjected into the main path as residuals (feat←feat+f_hall); when the depth cues are unreliable, the residuals tend to zero, without degrading the pure RGB main path.

[0072] Total losses (main losses = ①③④⑤, auxiliary losses = ②⑥): L=1.0·L kp +1.0·L det +1.0·L off +0.1·L size +1.0·L kpoff +0.1·L negkp +1×10 -4 ·L hall The weight of the deep privileged assistance loss is 1×10. -4 This embodies the principle of "guiding without overshadowing"; the deep teacher does not participate in the reasoning stage, and the fantasy branch is back-injected in the form of residuals (feat←feat+f_hall). When the deep clues are unreliable, the residuals tend to zero, and the pure RGB main path is not degraded.

[0073] Furthermore, visibility masking assigns a visibility marker (mask) to each keypoint: when calculating the loss, only the channels that are truly visible in the image and have valid ground truth values ​​are summed. Visibility masking is a channel-level filtering mechanism used by the keypoint heatmap branch when calculating the loss during the training phase.

[0074] In keypoint detection, each bony anatomical landmark corresponds to a channel in the keypoint heatmap. Since the training ground values ​​are derived from X-ray gold standard annotations through cross-modal calibration transfer, not every landmark on every image has a valid ground value—for example, the landmark may be outside the frame, obscured by clothing or internal metal fixation devices, or the landmark may not be labeled in the sample. In such cases, the channel containing the landmark lacks reliable supervisory information and is called an "invisible channel".

[0075] "Visibility masking" involves assigning a visibility marker (mask) to each keypoint channel. When calculating the keypoint heatmap loss, only the visible channels (channels with valid truth values) are summed (corresponding to the formula in...).

[0076] Σ_{visible channels}) masks invisible channels, excluding them from the loss calculation and gradient backpropagation. Its purpose is to avoid incorrectly penalizing channels lacking valid ground truth values ​​as negative samples, preventing the introduction of erroneous supervision and ensuring training stability and localization accuracy.

[0077] The region detection heatmap loss (L_det) detects lower limb regions that always exist in the image and always have valid ground truth values, with no cases of missing channel ground truth values. Therefore, it adopts the same focal loss form as the keypoint heatmap loss but does not require visibility masking. This is why the two-branch loss is identical, but the keypoint branch is masked while the detection branch is not.

[0078] In a specific embodiment of the present invention, the specific steps for gold standard label migration include: (1) The RGB-D camera and the X-ray tube are coaxially fixed and calibrated together with the calibration plate to obtain the invertible geometric mapping matrix T(x→c) and its inverse T(c→x) between the X-ray domain and the camera domain. (2) For each bone landmark pixel manually marked on the X-ray image, first place it into a canvas of uniform size and apply known bias and orientation transformation according to the acquisition device / body position, then convert it into physical coordinates according to the pixel physical size (detector side length ÷ number of pixels, on the order of approximately 0.125 mm / pixel), and take the DICOM source-image receiver distance SID (label 0018, 1110). (3) The three-dimensional point of the camera coordinate system is obtained by p3d=T(x→c)·[x,y,SID,1]^T, and then projected onto the RGB pixels through the camera intrinsic parameters (pinhole + distortion model) to obtain the initial mapping point; (4) Backproject the point using the aligned depth frame, return it to the X-ray domain via T(c→x), correct z with the backprojection depth, and reproject it. Iterative convergence yields stable RGB pixel coordinates. Thus, each X-ray gold standard annotation is transferred point by point to the ground truth keypoint on the paired RGB image, which is used to supervise the keypoint detection branch. This transfer is only performed during the training phase, and the inference link does not depend on the X-ray or depth.

[0079] Deep Privileged Information (LUPI) Training Paradigm: During training, depth is used as the "privileged information" teacher, while only RGB is used during inference.

[0080] Unified key points → Geometric calculation pipeline: Derive multiple force line indices and generate diagrams from the same set of key points.

[0081] Local / cloud adaptive dual deployment: Automatically routes and infers location based on the data collection device.

[0082] Prerequisites: The image being tested should contain a relatively complete area of ​​both lower limbs from the hip to the ankle, and the standing position and shooting angle should meet the basic visibility requirements.

[0083] Specifically, the quantitative indicators of lower limb alignment include hip-knee-ankle angle (HKA), mechanical axis offset (MAD), proximal lateral femoral angle (mLPFA), distal lateral femoral angle (mLDFA), proximal medial tibia angle (MPTA), joint line convergence angle (JLCA), distal lateral tibia angle (LDTA), anatomical tibiofemoral angle (aTFA), neck-shaft angle (NSA), proximal anatomical femoral angle (aMPFA), and knee joint line tilt (JLO). Among them, the length-type index of mechanical axis offset (MAD) establishes the ratio coefficient between pixels and physical length by using a pre-set known scale reference object in the shooting scene, and converts the pixel distance into the real physical length.

[0084] In one specific embodiment of the present invention, the detected anatomical key points are uniformly constructed with the following geometric elements, and multiple force line indices are calculated accordingly: Geometric element construction: (Determining the location of these anatomical key points in the RGB image requires reference to the previous patent ZL2025 1 1999682.6) The center of the femoral head (which can be determined by finding the center of the best-fit circle from the edge of the femoral head), the center of the knee (the center of the interspinous space of the tibia), and the center of the ankle (the midpoint of the dome of the talus). The femoral mechanical axis (femoral head center → knee center), the tibial mechanical axis (knee center → ankle center), and the weight-bearing mechanical axis (femoral head center → ankle center, i.e., Mikulicz line). Femoral / tibial anatomical axis (fitted by the axis points of the bone shaft); Articular surface lines: proximal femoral articular surface direction line (greater trochanter tip → femoral head center), distal femoral condyle tangent line, tibial plateau line, distal tibial articular surface line; femoral neck axis.

[0085] Indicator calculations (uniformly derived from the included angles or distances from points to lines of the above elements, with angle directions recorded as needed): HKA: The medial angle between the femoral mechanical axis (center of femoral head → center of knee) and the tibial mechanical axis (center of knee → center of ankle); its deviation of 180° relative to the femoral head can be used to determine the type of varus / neutral / valgus.

[0086] MAD: Distance from the weight-bearing mechanical axis (Mikulicz line) to the center of the knee.

[0087] mLPFA: The lateral angle between the femoral mechanical axis and the direction line of the proximal femoral articular surface.

[0088] mLDFA: The lateral angle between the femoral mechanical axis and the tangent of the distal femoral condyle.

[0089] MPTA: Medial angle between the tibial mechanical axis and the tibial plateau line.

[0090] JLCA: The angle between the tangent of the distal femoral condyle and the tibial plateau line in the coronal plane (note the acute angle, and the direction is noted separately).

[0091] LDTA: Lateral angle between the mechanical axis of the tibia and the articular surface line of the distal tibia.

[0092] aTFA: The lateral angle between the femoral anatomical axis and the tibial anatomical axis.

[0093] NSA: Angle between the femoral neck axis and the anatomical axis of the femoral shaft.

[0094] aMPFA: The angle between the proximal femoral articular surface direction line and the femoral anatomical axis.

[0095] JLO: The angle between the tibial plateau line and the horizontal support surface (note the acute angle, and the direction is noted separately).

[0096] The conversion from pixels to actual length (used for length-related metrics such as MAD) can be established using a scaling factor based on a known scale reference in the shooting scene (such as a calibration reference or a preset reference ruler). Finally, the schematic diagram generation module overlays key points, the aforementioned axis / joint surface lines, and corresponding angle values ​​onto the original image to form an annotated schematic diagram.

[0097] Furthermore, the specific processes of reasoning and measurement include: (1) Acquire RGB images of standing lower limbs and preprocess them (landscape 848×480, rotated 90° clockwise, scaled / padded to 480×832, and normalized according to ImageNet mean and variance). (2) Output key point heatmap [46,208,120], key point sub-pixel offset [2,208,120] and detection head output using only RGB forward inference (depth prior has been internalized in the depth fantasy branch, no depth sensor is required); (3) After the detection head passes through the Sigmoid function, the peak value is taken for each category (threshold 0.3), and the offset and size are combined to decode the bounding boxes of the six lower limb regions; (4) Mask the key point heatmap by expanding the region box by 25% (set zero outside the box), take the peak value of each channel (threshold 0.3) and superimpose the sub-pixel offset residual, and calculate the pixel coordinates of each key point image according to the step size; (5) Construct geometric elements from key points (find the center of the femoral head by finding the best-fit circle at the edge of the femoral head, the center of the interspinous region of the tibia as the center of the knee, the midpoint of the dome of the talus as the center of the ankle, and the mechanical axis / anatomical axis / articular surface line). (6) Unify the calculation of multiple force line indicators. For example, HKA takes the knee center as the vertex and takes the angle θ between the femoral vector (knee → hip) v_f and the tibial vector (knee → ankle) v_t = arccos(v_f·v_t / (‖v_f‖·‖v_t‖)). The sign of the z component of the cross product of the two is used to determine varus / valgus, and the type is determined relative to the 180° tolerance zone. Other indicators are obtained from the angle between the corresponding axis / articular surface lines or the distance from the point to the line. Length indicators (such as MAD) are converted into the actual length by using the known scale reference in the scene. (7) Generate a labeled schematic diagram by overlaying key points, axis lines and angle values ​​on the original image; (8) By deployment route: For dedicated camera scenarios, all the above inference and measurement are completed on the local device and output locally; for mobile terminal scenarios, the data and schematic diagram are sent back after the inference is completed on the cloud. The two scenarios share the same recognition and geometric calculation logic and have consistent output.

[0098] Specifically, the calculation and classification process of the hip-knee-ankle angle (HKA) is as follows: Using the center of the interspinous space of the tibia as the center of the knee joint, a femoral vector is constructed pointing from the center of the knee joint to the center of the femoral head, and a tibial vector is constructed pointing from the center of the knee joint to the midpoint of the talus dome. The medial angle between the two vectors is calculated by the dot product of the vectors to obtain the HKA value. Using 180° as the neutral reference, combined with the preset symmetry tolerance zone and the direction sign of the cross product of the two vectors, the lower limb force line type is determined to be varus, neutral, or valgus.

[0099] In a specific embodiment of the present invention, the number and division of key points are as follows: the number of bony key points of the bilateral lower limbs is in the tens, and the tissue is divided into femoral, tibial and ankle regions; the regional detection branch category is in the "bilateral × three-region" range.

[0100] Input and feature resolution: The input image is normalized to a higher vertical resolution (e.g., the long side is about several hundred pixels, and the vertical scale is larger than the horizontal scale); the backbone output features are downsampled relative to the input by an integer multiple (e.g., the downsampling step size is on the order of 4).

[0101] Deep privilege information auxiliary weight: The weight of the auxiliary supervision item in the deep fantasy branch is taken to be on an extremely small order of magnitude (much smaller than the loss of the main task, for example, 10). -4 The magnitude (of the signal) is determined by magnitude analysis, with the principle of "guiding without overshadowing".

[0102] Silver / Gold Label Weights: During self-training, the weight of the gold label is on the order of 1.0, and the weight of the silver label is on the order of approximately 0.5; the silver label is generated by fusing multiple augmented inferences (such as more than ten to dozens of augmentations) during testing.

[0103] HKA type determination range: Using 180° as a neutral reference, a symmetrical tolerance zone (such as 180°±3°) is set to distinguish between inversion / neutral / outversion; JLCA and JLO record acute angles and record the angle direction separately.

[0104] Specifically, this also includes deploying adaptive routing, which adaptively selects the inference execution location based on the device type and operating environment of the RGB image acquisition device; if the image is acquired by a dedicated acquisition camera, all preprocessing, key point detection, geometric calculation and schematic diagram generation processes are completed locally on the camera, and the results are output locally; if the image is acquired by a mobile terminal, the image is uploaded to a cloud server to complete all calculation processes, and then the force line index values ​​and labeled schematic diagrams are sent back to the mobile terminal for display.

[0105] Specifically, a radiation-free lower limb force line measurement system based on RGB images, such as... Figure 1 As shown, the dedicated camera acquisition module acquires visible light images of the standing lower limbs in a dedicated camera deployment scenario, serving as the input source for local inference. It is suitable for scenarios without network access or where data persistence is required.

[0106] Mobile terminal photography module: Captures lower limb photos in the mobile terminal scene as the input source for cloud inference. The mobile terminal uploads the images to the cloud server via the network. After the cloud completes the inference and measurement, it sends back the multi-indicator values ​​and diagrams to the terminal for display.

[0107] Both scenarios share the same set of keypoint detection and geometric calculation logic, differing only in the inference execution location, ensuring consistency and maintainability of results.

[0108] The deployment routing module adaptively determines whether inference should be executed locally or uploaded to the cloud, based on the type of data acquisition device and the operating environment. It serves as the scheduling hub connecting the acquisition and inference layers. Image preprocessing module: Performs size normalization, orientation correction and other processing on the input image to make it conform to the input specifications of the key point detection module, connecting the routing and detection.

[0109] Lower limb anatomical key point detection module: The core recognition component of this scheme, which detects the bony anatomical key points of the bilateral lower limbs in the preprocessed RGB image and provides the key point coordinates to the downstream measurement layer; its parameters are provided by the training module and receive feature support from the depth privileged information auxiliary module during inference.

[0110] The Deep Privileged Information Assist Module receives deep teacher signals during the training phase and reconstructs deep-related cues from RGB features during the inference phase, then re-injects them into the keypoint detection module in a residual manner to improve the robustness of localization under RGB input alone; it forms a "teacher-student" relationship with the keypoint detection module.

[0111] The axis and articular surface construction module constructs the femoral / tibial mechanical axis, anatomical axis, and articular surface lines based on key points, serving as a geometric intermediate layer between key points and index calculations.

[0112] Multi-index geometric calculation module: Based on the constructed axis and articular surface lines, it uniformly calculates multiple lower limb force line indices and completes the classification, providing numerical results to the output layer and schematic diagram module.

[0113] Schematic diagram generation module: Overlays key points, axes and angle annotations onto the original image to generate a force line diagram that can be used for doctor-patient communication.

[0114] Gold Standard Label Transfer and Training Module: During the training phase, cross-modal calibration is used to map X-ray gold standard labels to the RGB domain to form ground truth values, and the key point detection module and depth privileged information assistance module are trained accordingly; it only works during the training phase and is decoupled from the inference link.

[0115] The results output and feedback module summarizes the values ​​and diagrams of multiple indicators and sends them back to the display end via a consistent interface according to the deployment route.

[0116] The specific embodiments provided by this invention are as follows: Example 1 (Clinical validation represented by HKA): Application scenario (desensitization): At the radiological examination site, while the subject undergoes a standing full-length X-ray of the lower limbs, a visible light camera coaxially mounted with the imaging equipment acquires the corresponding RGB image; the X-ray gold standard is used as the ground truth after cross-modal calibration and transfer to the RGB domain, and a key point detection model is trained.

[0117] Data scale (anonymized): The training samples consist of more than two thousand paired images, and the validation samples consist of several hundred paired images; the clinical assessment covered more than one hundred subjects, with a total of more than two hundred lower limbs from both sides, and was stratified according to "whether clothing covered" and "whether there were metal internal fixation devices".

[0118] System workflow summary: Perform key point detection on a standing RGB image → Construct femoral / tibial mechanical axis → Calculate HKA and determine type → Overlay axis and angle on the original image to generate schematic diagram.

[0119] Technical effectiveness (quantitative): In the above clinical evaluation, the mean absolute error of HKA measurement relative to the X-ray gold standard was approximately 1.5°, the root mean square error was approximately 2°, the correlation coefficient with the gold standard was approximately 0.90, the intraclass correlation coefficient was approximately 0.89, and the tri-class accuracy for inversion / neutral / eversion was approximately 80%; the detection rate was close to 99%. Stratified analysis showed that the error was lower with no obstruction (naked) than with clothing obstruction (approximately 1.1° vs. approximately 1.6°, a statistically significant difference); there was no significant difference in error between the presence and absence of internal fixation devices, indicating that this method has good robustness to internal fixation devices.

[0120] Compared with control methods (desensitized): Compared with general human pose estimation, general 3D body shape estimation and other methods, this method is significantly better in terms of HKA mean absolute error (the error of the control method is about 1.5 to several times that of this method), and has a higher detection rate.

[0121] Example 2 (Multi-index extension): Based on the same set of detected key points, MAD, mLPFA, mLDFA, MPTA, JLCA, LDTA, aTFA, NSA, aMPFA, JLO and other indicators are calculated according to their geometric structure. Length indicators (such as MAD) are converted into actual lengths using known scale references within the scene. All indicators, along with HKA, are marked on the schematic diagram.

[0122] Technical effects (qualitative): Enables "one-time photography, unified output of multiple force line indicators and schematic diagrams", facilitating preoperative planning, follow-up comparison, and doctor-patient communication.

[0123] Example 3 (Dual Deployment): In dedicated camera scenarios, image inference and measurement are performed locally on the device, and the results are output on-site. In mobile terminal scenarios, photos are uploaded to the cloud for inference, and then numerical values ​​and schematic diagrams are transmitted back. Both scenarios use the same recognition and calculation logic, and the output specifications are consistent.

[0124] Example parameter settings: The auxiliary weight for deep privilege information is set to 10. -4 The magnitude, feature downsampling step size of 4, gold / silver label weights of 1.0 / 0.5, and HKA type tolerance band of 180°±3° are all implementation examples and are not intended to limit the claims.

[0125] In summary, the advantages of this invention are as follows: No ionizing radiation, zero additional hardware: The inference end only requires a regular visible light image, without the need for X-rays, depth cameras or markers, making it suitable for outpatient screening, postoperative follow-up and even home scenarios, which is fundamentally different from the radiation / contact / wearable solutions of Direction 1 and Direction 2.

[0126] Radiographic-grade anatomical localization without relying on radiographic input: By using gold standard label transfer and deep privileged information training paradigm, the pure RGB model can acquire the ability to accurately locate bony landmarks of the lower limbs, making up for the lack of bony visibility in visible light images, and is superior to general visual solutions that lack bony landmarks and gold standards (direction four).

[0127] A single measurement outputs multiple force line indicators and schematic diagrams: The aforementioned multiple indicators are derived from the same set of key points through a unified geometric pipeline and the diagrams are automatically generated, avoiding the shortcomings of existing solutions that require "single indicator / state evaluation and measurement item by item".

[0128] Inference uses only RGB and is not dependent on depth sensors: Compared with the closest depth camera acquisition scheme (direction three), the inference end of this invention does not require a depth camera, which has a lower hardware threshold and stronger portability.

[0129] Flexible deployment and consistent results: Local camera inference and mobile cloud inference share the same recognition and calculation logic, taking into account both offline and mobile convenient scenarios.

[0130] It exhibits robustness against clothing obscuring and internal fixation: designs such as zonal detection, negative sample supervision, and deep privileged information help maintain usability in common clothing and in the presence of metal internal fixation (see VI, Examples).

[0131] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.

[0132] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A radiation-free method for measuring lower limb force lines based on RGB images, characterized in that, include: Step 1: Acquire RGB images of the standing lower limbs and preprocess them to obtain the image to be detected; Step 2: Use a detection network with two parallel detection branches to detect the image to be detected to obtain the pixel coordinates of multiple bony anatomical key points of both lower limbs, and obtain the key point detection results; Step 3: Construct multiple sets of axes and joint surface lines based on the key point detection results; Step 4: Based on each axis and joint surface line, multiple quantitative indicators of lower limb force line are obtained through vector angle calculation and point-to-line distance calculation to determine the deformity type of lower limb force line; Step 5: Overlay key points, axis and angle values ​​onto the original RGB light image to generate a labeled lower limb force line measurement diagram.

2. The method for measuring lower limb force lines based on RGB images according to claim 1, characterized in that, The detection network of the two parallel detection branches in step 2 includes a key point heatmap branch and a region detection branch. The key point heatmap branch and the region detection branch share the same backbone, feature pyramid and neck, and are jointly trained end-to-end with the total loss of multi-task weighted sum and share the same optimizer.

3. The method for measuring lower limb force lines based on RGB images according to claim 2, characterized in that, The key point heatmap branch and the region detection branch adopt the degree privileged information training and inference paradigm, and a deep fantasy branch is also set. During the training phase, depth data aligned with RGB image registration was used as a privileged teacher signal for auxiliary supervision. The deep fantasy branch uses residual connections to inject the reconstructed deep clues back into the main branch. When the deep clues are unreliable, the residuals tend to zero, without degrading the original RGB path. During the inference phase, only RGB images are input, and the teacher is not involved; the deep fantasy branch has internalized the depth prior as features inferred from the RGB images; During the inference phase, only an RGB image is input to obtain the key point detection results.

4. The method for measuring lower limb force lines based on RGB images according to claim 3, characterized in that, The training phase also includes mapping X-ray gold standard annotations to the RGB domain using cross-modal calibration to form ground truth values, specifically including: The RGB-D camera and the X-ray tube are coaxially fixed and calibrated together with a calibration plate to obtain the invertible geometric mapping matrix T(x→c) and its inverse T(c→x) between the X-ray domain and the camera domain. The manually marked bony landmark pixels on the X-ray image are converted into three-dimensional physical coordinates by pixel physical size, and then transformed into the camera coordinate system through the geometric mapping matrix. Finally, they are projected onto the RGB image plane through camera intrinsic parameters to obtain the initial mapping points. The point is back-projected using the aligned depth frame, returned to the X-ray domain via T(c→x), and reprojected after z is corrected by the back projection depth. The process is iteratively converged to obtain stable RGB pixel coordinates, thus completing the point-by-point migration from the X-ray gold standard annotation to the RGB image domain.

5. The method for measuring lower limb force lines based on RGB images according to claim 1, characterized in that, The quantitative indicators of lower limb alignment include hip-knee-ankle angle (HKA), mechanical axis offset (MAD), proximal lateral femoral angle (mLPFA), distal lateral femoral angle (mLDFA), proximal medial tibia angle (MPTA), joint line convergence angle (JLCA), distal lateral tibia angle (LDTA), anatomical tibiofemoral angle (aTFA), neck-shaft angle (NSA), proximal anatomical femoral angle (aMPFA), and knee joint line tilt (JLO). Among them, the length-type index of mechanical axis offset (MAD) establishes the ratio coefficient between pixels and physical length by using a pre-set known scale reference object in the shooting scene, and converts the pixel distance into the real physical length.

6. The method for measuring lower limb force lines based on RGB images according to claim 5, characterized in that, The calculation and classification process of the hip-knee-ankle angle (HKA) is as follows: Using the center of the interspinous space of the tibia as the center of the knee joint, a femoral vector is constructed pointing from the center of the knee joint to the center of the femoral head, and a tibial vector is constructed pointing from the center of the knee joint to the midpoint of the talus dome. The medial angle between the two vectors is calculated by the dot product of the vectors to obtain the HKA value. Using 180° as the neutral reference, combined with the preset symmetry tolerance zone and the direction sign of the cross product of the two vectors, the lower limb force line type is determined to be varus, neutral, or valgus.

7. The method for measuring lower limb force lines based on RGB images according to claim 1, characterized in that, It also includes deploying adaptive routing, which adaptively selects the inference execution location based on the device type and operating environment of the RGB image acquisition device; if the image is acquired by a dedicated acquisition camera, all preprocessing, key point detection, geometric calculation and schematic diagram generation processes are completed locally on the camera, and the results are output locally; if the image is acquired by a mobile terminal, the image is uploaded to the cloud server to complete all calculation processes, and then the force line index values ​​and labeled schematic diagrams are sent back to the mobile terminal for display.

8. A radiation-free lower limb force line measurement system based on RGB images, characterized in that, include: Dedicated camera acquisition module: Acquires RGB images of standing lower limbs in a scene where a dedicated camera is deployed, serving as the input source for local inference; Mobile terminal photography module: Collects photos of the lower limbs in mobile terminal scenarios, which serve as the input source for uploading to the cloud for inference; Deploy the routing module: Based on the type of data collection device and the operating environment, adaptively decide whether the inference is executed locally or uploaded to the cloud for execution; Image preprocessing module: performs size normalization and orientation correction on the input image; Lower limb anatomical key point detection module: Detects key bony anatomical points of both lower limbs in the preprocessed RGB image and provides key point coordinates to the downstream measurement layer; Deep privileged information assistance module: receives deep teacher signals during the training phase, reconstructs deep-related cues from RGB features during the inference phase, and back-injects the keypoint detection module in a residual manner; Axis and articular surface construction module: Construct the femoral / tibial mechanical axis, anatomical axis and articular surface lines based on key points; Multi-index geometric calculation module: Based on the constructed axis and articular surface lines, it uniformly calculates multiple lower limb force line indices and completes the classification; Schematic diagram generation module: Overlays key points, axes and angle annotations onto the original RGB image to generate a force line diagram that can be used for doctor-patient communication; Gold Standard Label Transfer and Training Module: Used during the training phase to map X-ray gold standard labels to the RGB domain to form true values ​​using cross-modal calibration; The results output and feedback module summarizes the values ​​and diagrams of multiple indicators and sends them back to the display end via a consistent interface according to the deployment route.

Citation Information

Patent Citations

  • An x-ray and rgb-d imaging cross-modal calibration and annotation mapping method

    CN121437650B