Brace treatment effect prediction method, device and equipment and storage medium
By extracting and fusing features from spinal images and scoliosis angle data, and using attention longitudinal fusion technology for regression prediction, the problem of the inability to quantitatively predict the long-term effects of brace treatment in existing technologies has been solved, and individualized long-term effect prediction has been achieved.
Patent Information
- Application Number
- CN202611677300.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot quantitatively predict long-term Cobb angle changes after brace treatment, cannot achieve individualized curve evolution trajectories, and rely on very short-term follow-ups, making it difficult to reflect long-term effects.
By extracting and encoding features from spinal images and scoliosis angle data of target patients at different time points, fusing image features and angle features, and using attention longitudinal fusion technology for regression prediction, the long-term effects of brace treatment can be predicted.
It enables quantitative prediction of the long-term effects of brace treatment, provides continuous and individualized efficacy estimates, and provides a basis for individualized decision-making in brace prescription and imaging monitoring.
Smart Images

Figure CN123182933A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of medical data processing technology, and in particular to a method, device, equipment and storage medium for predicting the treatment effect of a brace. Background Technology
[0002] Bracing is one of the main non-surgical interventions for scoliosis. Accurate prediction of bracing treatment outcomes helps in developing more personalized bracing plans and optimizing imaging monitoring strategies. Traditional methods mainly use clinical risk factors to predict bracing efficacy, such as poor bracing compliance, skeletal maturity (Risser sign), initial Cobb angle, and supine flexibility. With the development of artificial intelligence, research has emerged using AI algorithms to predict bracing efficacy. Existing studies have used binary classification models to predict bracing efficacy, such as using whether the Cobb angle progression exceeds 5° during the follow-up period as a classification criterion.
[0003] However, existing methods cannot quantitatively predict the long-term Cobb angle after bracing treatment. Methods using binary classification models, such as those mentioned above, can only provide coarse-grained judgments like "whether the angle has progressed beyond 5°," failing to quantitatively predict the specific Cobb angle value or reflect the individualized curve evolution trajectory. Furthermore, these methods often rely on very short-term follow-ups, such as 3 months, and binary labels, making it impossible to verify or predict the long-term effects of bracing treatment. In addition, due to the typically insufficient longitudinal cohort data, the difficulty in obtaining regular follow-ups, and the fact that individual responses to bracing treatment are influenced by multiple factors such as the severity of the curvature, skeletal maturity, and brace compliance, quantitatively predicting the long-term efficacy of bracing remains a significant challenge. Summary of the Invention
[0004] This application provides a method, device, equipment, and storage medium for predicting the effects of brace treatment, with the aim of quantitatively predicting the long-term effects of brace treatment in scoliosis patients, providing continuous and individualized efficacy estimates, and providing a basis for individualized decision-making regarding brace prescription and imaging monitoring.
[0005] In a first aspect, embodiments of this application provide a method for predicting the therapeutic effect of a brace, including: Feature extraction was performed on the spinal images of the target patients at the baseline monitoring time and the initial monitoring time of treatment to obtain baseline image features and initial image features; The lateral bending angle data of the target patient at the baseline monitoring time, the initial monitoring time, and the mid-term monitoring time are encoded to obtain baseline angle features, initial angle features, and mid-term angle features. The baseline image features are fused with the baseline angle features, and the initial image features are fused with the initial angle features to obtain baseline fusion features and initial fusion features, respectively. Using the intermediate angle feature as the query, and the baseline fusion feature and the initial fusion feature as the key and value respectively, attention vertical fusion is performed to obtain the vertical fusion feature; Regression prediction is performed based on the longitudinal fusion features to obtain the efficacy prediction results for the target patient when the target period of brace treatment is reached.
[0006] Optionally, feature extraction is performed on the spinal images of the target patient acquired at the baseline monitoring time and the initial monitoring time of treatment to obtain baseline image features and initial image features, including: Based on a pre-trained target medical basic model, image feature representations of each spinal image are extracted. Spatial and temporal coding are introduced into the image feature representation to obtain the spatiotemporal fusion representation of each spinal image; The spatiotemporal fusion representation is subjected to pooling processing to obtain the baseline image features and the initial image features, respectively.
[0007] Optionally, the image feature representation of each spinal image is extracted based on the pre-trained target medical basic model, including: Based on the target medical basic model, the global pooling feature vector and local feature vector of each spinal image are obtained; The global pooling feature vector and the local feature vector are concatenated sequentially to obtain the image feature representation of each spinal image.
[0008] Optionally, before extracting image feature representations of each of the spinal images based on the pre-trained target medical baseline model, the following steps are included: Freeze the encoder parameters of the target medical basic model and perform the pre-training on the target medical basic model; The process of introducing spatial and temporal coding into the image feature representation to obtain the spatiotemporal fusion representation of each spinal image includes: Spatial location coding is added to the image feature representation to obtain the spatial coding representation of each of the spinal images; Based on the adapter module, the spatial coding representation is subjected to domain adaptation processing to obtain the semantic image representation; The semantic image representation is superimposed with time encoding to obtain the spatiotemporal fusion representation of each of the spinal images.
[0009] Optionally, the step of using the intermediate angle feature as a query and performing attention-based vertical fusion with the baseline fusion feature and the initial fusion feature as keys and values respectively to obtain the vertical fusion feature includes: The intermediate angle feature is determined as the query vector, and the baseline fusion feature and the initial fusion feature are determined as the key vector and value vector, respectively. Calculate the dot product of the query vector and each of the key vectors, divide by the square root of the dimension of the key vector for scaling, and then process by a normalization function to obtain the attention weights; The value vector is weighted and summed according to the attention weights to obtain the vertical fusion feature.
[0010] Optionally, before extracting features from the spinal images of the target patient acquired at the baseline monitoring time and the initial monitoring time of treatment to obtain baseline image features and initial image features, the method further includes: Edge detection is performed on the spinal images to identify the spinal region images and the patient's personal features, and the patient's personal features are removed from the spinal images; The spinal image is converted into a grayscale image, and then scaled and filled while maintaining the aspect ratio to obtain the spinal image of a preset size.
[0011] Optionally, the regression prediction based on the longitudinal fusion features to obtain the efficacy prediction result of the target patient when the target period of brace treatment is reached includes: The longitudinal fusion features are respectively input into the first regression head and the second regression head to obtain the predicted T-type Cobb angle of the target patient under the target period based on the first regression head, and the predicted TL / L-type Cobb angle of the target patient under the target period based on the second regression head; The T-type Cobb angle prediction value and the TL / L-type Cobb angle prediction value are inversely transformed back to the angle space; After truncating the predicted values of the T-type Cobb angle and the TL / L-type Cobb angle that are less than 0° to 0°, the predicted values of the T-type Cobb angle and the TL / L-type Cobb angle are determined as the efficacy prediction results.
[0012] Secondly, embodiments of this application provide a device for predicting the therapeutic effect of a brace, comprising: The image feature module is used to extract features from the spinal images of the target patient acquired at the baseline monitoring time and the initial monitoring time of treatment, respectively, to obtain baseline image features and initial image features. An angle feature module is used to encode the lateral bending angle data of the target patient at the baseline monitoring time, the initial monitoring time, and the mid-term monitoring time of the treatment, respectively, to obtain baseline angle features, initial angle features, and mid-term angle features. The feature fusion module is used to fuse the baseline image features with the baseline angle features and to fuse the initial image features with the initial angle features, so as to obtain baseline fused features and initial fused features respectively. The vertical fusion module is used to perform attention-based vertical fusion with the intermediate angle feature as the query and the baseline fusion feature and the initial fusion feature as the key and value, respectively, to obtain the vertical fusion feature. The outcome prediction module is used to perform regression prediction based on the longitudinal fusion features to obtain the efficacy prediction results of the target patient when the target period of brace treatment is reached.
[0013] Thirdly, embodiments of this application provide a device for predicting the therapeutic effect of a brace, including: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the brace treatment effect prediction method provided in any embodiment of this application.
[0014] Fourthly, embodiments of this application provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the brace treatment effect prediction method provided in any embodiment of this application.
[0015] This application provides a method, device, equipment, and storage medium for predicting the therapeutic effect of braces. It extracts features from spinal images collected from the target patient at the baseline monitoring time and the initial monitoring time of treatment, obtaining baseline image features and initial image features. It also encodes the scoliosis angle data corresponding to the baseline monitoring time, the initial monitoring time, and the mid-treatment monitoring time of the target patient, obtaining baseline angle features, initial angle features, and mid-treatment angle features. Furthermore, it fuses the baseline image features with the baseline angle features and the initial image features with the initial angle features, obtaining baseline fused features and initial fused features respectively. Using the mid-treatment angle features as a query, and the baseline fused features and the initial fused features as keys and values respectively, it performs attentional longitudinal fusion to obtain longitudinal fused features. Based on the longitudinal fused features, it performs regression prediction to obtain the therapeutic effect prediction result of the target patient when the target period of brace treatment is reached. This solves the problem that existing technologies cannot quantitatively predict the long-term effect of brace treatment, achieving quantitative prediction of the long-term effect of scoliosis patients after brace treatment, providing continuous and individualized efficacy estimation, and providing a basis for individualized decision-making regarding brace prescription and imaging monitoring. Attached Figure Description
[0016] Figure 1 A flowchart of a method for predicting the therapeutic effect of a brace provided in Embodiment 1 of this application; Figure 2 This is a schematic diagram of the structure of a brace treatment effect prediction device provided in Embodiment 2 of this application; Figure 3 This is a schematic diagram of the structure of a brace treatment effect prediction device provided in Embodiment 3 of this application. Detailed Implementation
[0017] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present application, not the entire structure.
[0018] Example 1 Figure 1 This is a flowchart of a method for predicting the therapeutic effect of braces according to Embodiment 1 of this application. This embodiment is applicable to situations where long-term efficacy quantitative prediction is needed for scoliosis patients receiving brace treatment. The method can be executed by a brace treatment effect prediction device, which can be implemented in hardware and / or software and is generally integrated into an electronic device, such as a computer. The method specifically includes: Step 110: Extract features from the spinal images of the target patient collected at the baseline monitoring time and the initial monitoring time of treatment to obtain baseline image features and initial image features.
[0019] The target patient refers to a person with scoliosis who receives brace treatment, and can be a subject who needs brace intervention to prevent the progression of scoliosis. The treatment baseline monitoring time refers to the reference observation time before the start of brace treatment, preferably the first visit before wearing the brace, used to obtain initial status data before treatment; the initial treatment monitoring time refers to the early observation time after the start of brace treatment, preferably one month after brace wearing, used to obtain status data within a short period after treatment application. Spinal imaging refers to image data acquired by X-ray imaging, tomography, or other medical imaging methods that can reflect the overall morphology and degree of scoliosis of the spine, including but not limited to standing full-spine anteroposterior images. Feature extraction typically includes, but is not limited to, operations that can convert input images into corresponding image feature representations, such as receiving, reading, parsing, encoding, and mapping. Baseline image features refer to the feature representation extracted from spinal images acquired based on the treatment baseline monitoring time; initial image features refer to the feature representation extracted from spinal images acquired based on the initial treatment monitoring time.
[0020] Specifically, spinal images corresponding to the two monitoring times are acquired. Each spinal image is used as input for feature extraction. The feature extraction operation converts the spinal structural information contained in the images into fixed-length or variable-length feature vectors, thereby obtaining image feature representations corresponding to the two monitoring times, namely baseline image features and initial image features. During the extraction process, an appropriate feature extraction method can be selected according to the image source and imaging conditions to ensure that the extracted image features can reflect the morphology and scoliosis-related information of the spine.
[0021] In one optional implementation, feature extraction is performed on the spinal images of the target patient acquired at the baseline monitoring time and the initial monitoring time of treatment to obtain baseline image features and initial image features. This includes: extracting image feature representations of each spinal image based on a pre-trained target medical basic model; introducing spatial coding and temporal coding into the image feature representations to obtain spatiotemporal fusion representations of each spinal image; and performing pooling processing on the spatiotemporal fusion representations to obtain baseline image features and initial image features, respectively.
[0022] The target medical foundation model refers to a pre-trained foundational model on large-scale medical image data, designed for medical imaging tasks. Its encoder is capable of extracting high-level semantic and structural information from the image. The target medical foundation model includes, but is not limited to, medical image encoders trained based on contrastive learning or visual-language alignment. Optionally, the pre-trained target medical foundation model can be the MedCLIP medical foundation model. Image feature representation refers to the feature representation extracted from spinal images by the target medical foundation model, containing image semantic and structural information. Spatial coding introduction refers to the process of adding coding information reflecting the spatial relationships within the image to the feature representation; temporal coding introduction refers to the process of adding coding information reflecting the chronological order and intervals of different monitoring times to the feature representation. Spatiotemporal fusion representation refers to a feature representation that simultaneously integrates spatial location information and temporal dynamic information.
[0023] Specifically, when extracting image feature representations of each spinal image based on the pre-trained target medical baseline model, spinal images acquired at the treatment baseline monitoring time and the initial treatment monitoring time are respectively input into the encoder of the target medical baseline model. The encoder outputs the image feature representations corresponding to each spinal image. Subsequently, spatial and temporal encodings are introduced into the image feature representations. That is, spatial location encoding is added to inject the structural context within the image into the feature representation, and temporal encoding is superimposed to inject the dynamic relationship between different monitoring times into the feature representation, thereby obtaining a spatiotemporal fusion representation that simultaneously contains spatial structural information and temporal dynamic information. Since the spinal morphology gradually changes during brace treatment, the introduction of spatial and temporal encodings helps the model distinguish structural information at different locations and state differences at different times within the same feature space. Finally, the spatiotemporal fusion representations are pooled and aggregated into fixed-length vectors to obtain baseline image features and initial image features, respectively.
[0024] In one optional implementation, based on a pre-trained target medical baseline model, image feature representations of each spinal image are extracted, including: obtaining global pooling feature vectors and local feature vectors of each spinal image based on the target medical baseline model; and concatenating the global pooling feature vectors and local feature vectors according to their sequence dimensions to obtain image feature representations of each spinal image.
[0025] In this context, the global pooling feature vector refers to a vector that reflects the global semantic information of an image, obtained by aggregating the overall response of image features; the local feature vector refers to the feature representation corresponding to a local region or block of the image, which preserves the details and local structural information of the image in the spatial dimension. Sequence dimension concatenation refers to the operation of connecting the global pooling feature vector and the local feature vector along the sequence dimension to form a complete feature sequence containing both global and local information.
[0026] Specifically, when obtaining global pooling feature vectors and local feature vectors for each spinal image based on the target medical baseline model, the target medical baseline model, during the extraction of image feature representation, performs pooling on the entire image response to obtain a global pooling feature vector that summarizes the overall image information. Simultaneously, it retains the local feature vectors corresponding to each local region or image block. Since the determination of scoliosis depends on both the overall curvature and the local vertebral morphology, concatenating the global pooling feature vector and the local feature vector along the sequence dimension allows the image feature representation to simultaneously carry both overall semantic and local structural information, thus more completely depicting the content of spinal images.
[0027] In an optional implementation, before extracting image feature representations of each spinal image based on a pre-trained target medical baseline model, the method further includes: freezing the encoder parameters of the target medical baseline model and pre-training the target medical baseline model; introducing spatial and temporal coding into the image feature representations to obtain spatiotemporal fusion representations of each spinal image, including: adding spatial location coding to the image feature representations to obtain spatial coding representations of each spinal image; performing domain adaptation processing on the spatial coding representations based on an adapter module to obtain semantic image representations; and superimposing temporal coding onto the semantic image representations to obtain spatiotemporal fusion representations of each spinal image.
[0028] Encoder parameters refer to the learnable parameters such as weights and biases of the encoder part in the target medical baseline model. The adapter module is a lightweight, adjustable module added to the pre-trained model to adapt the model to specific downstream tasks or data distributions without significantly changing the original parameters of the pre-trained encoder. Spatial location encoding refers to the encoded vector that identifies the spatial location of features in an image; spatial encoding representation refers to the feature representation after adding spatial location encoding. Domain adaptation processing refers to the process of adapting the feature representation learned by the model in the source domain to the data distribution of the target domain. Semantic image representation refers to the feature representation that is more closely aligned with the semantics of the current image data after domain adaptation processing.
[0029] Specifically, before extracting image feature representations of each spinal image based on the pre-trained target medical baseline model, the target medical baseline model is pre-trained, and preferably its encoder parameters are frozen during training. Freezing the encoder parameters can avoid the degradation of the general representation ability learned in pre-training or overfitting due to insufficient data when fine-tuning on private or small-scale data, thus preserving the structural priors learned by the target medical baseline model from large-scale medical images.
[0030] Furthermore, when introducing spatial and temporal coding into the image feature representation, spatial location coding is first added to the image feature representation, enabling the features to carry the structural context corresponding to each location, resulting in a spatially coded representation. Subsequently, the spatially coded representation is domain-adapted through an adapter module, mapping the general features output by the pre-trained encoder to the semantic space of the current spinal image data, thus obtaining a semantic image representation. Finally, the semantic image representation is superimposed with temporal coding, allowing spinal images acquired at different times to reflect the temporal sequence and state differences of the treatment process at the feature level, thereby obtaining a spatiotemporal fusion representation of each spinal image.
[0031] In an optional implementation, before extracting features from the spinal images of the target patient acquired at the baseline monitoring time and the initial monitoring time of treatment to obtain baseline image features and initial image features, the method further includes: performing edge detection on the spinal images, identifying the spinal region images and the patient's personal features, and removing the patient's personal features from the spinal images; converting the spinal images into grayscale images, and performing scaling and filling processing while maintaining the aspect ratio to obtain a spinal image of a preset size.
[0032] Edge detection refers to the operation of using edge detection algorithms to extract boundaries where grayscale or texture changes abruptly in an image, thereby locating the contour of the target region. Spinal region image refers to the portion of the image that belongs to the spinal structure. Patient personal characteristics refer to individual identifying information that may reveal the patient's identity or is unrelated to scoliosis diagnosis and treatment; these include, but are not limited to, name annotations, body surface markings, and institutional watermarks. Preset size refers to a pre-defined, uniform image size used by subsequent processing networks.
[0033] Specifically, before feature extraction from spinal images, preprocessing can be performed. Edge detection algorithms are used to locate the boundaries of the spinal region, thus identifying the spinal region from the background and simultaneously identifying any patient-specific features within the image. These identified patient-specific features are then removed from the spinal images to reduce the risk of privacy breaches and minimize interference from irrelevant information in subsequent feature extraction. Furthermore, the spinal images are converted to grayscale images to eliminate color differences caused by different acquisition devices. The grayscale images are then scaled while maintaining aspect ratio, and padding is applied after scaling to ensure all spinal images reach a uniform preset size. This guarantees that the images input for feature extraction have consistent scale and format, improving the stability of subsequent processing.
[0034] Step 120: Encode the lateral bending angle data of the target patient at the baseline monitoring time, the initial monitoring time, and the mid-term monitoring time to obtain the baseline angle characteristics, the initial angle characteristics, and the mid-term angle characteristics.
[0035] The mid-treatment monitoring time refers to the intermediate observation point during the brace treatment process, located after the initial treatment monitoring time and before the target period. Preferably, it is six months after brace wearing, used to obtain scoliosis status data during the mid-treatment stage. Scoliosis angle data refers to numerical data obtained by quantifying the degree of scoliosis using angle measurement methods, including but not limited to the curvature angle represented by the Cobb angle. Encoding refers to the operation of mapping angle data into feature vectors using an encoder. Baseline angle features refer to the feature representation obtained by encoding scoliosis angle data based on the baseline monitoring time; initial angle features refer to the feature representation obtained by encoding scoliosis angle data based on the initial treatment monitoring time; and mid-treatment angle features refer to the feature representation obtained by encoding scoliosis angle data based on the mid-treatment monitoring time.
[0036] Specifically, when encoding the lateral bending angle data corresponding to the baseline monitoring time, the initial monitoring time, and the mid-term monitoring time, the lateral bending angle values corresponding to each monitoring time are used as inputs for the encoding operation. The encoder maps the angle values into fixed-dimensional feature vectors, thereby obtaining the baseline angle features, the initial angle features, and the mid-term angle features, respectively.
[0037] In an optional implementation, when scoliosis angle data or spinal imaging data corresponding to a certain monitoring time for the target patient is missing, a placeholder value is used for labeling. Here, missing data refers to angle data or imaging data that was not collected or recorded for the target patient at a certain monitoring time. The placeholder value is a predetermined constant used to label missing data and replace the true observation value; optionally, a placeholder value of -1 can be used. The placeholder value enables the model to distinguish between "missing" and "true zero" inputs and to characterize the missing pattern by learning the corresponding embedding. Specifically, when scoliosis angle data or spinal imaging data corresponding to a certain monitoring time for the target patient is missing, using a placeholder value of -1 to replace the missing item in subsequent encoding or feature extraction operations can improve the robustness of the method.
[0038] Step 130: Fuse the baseline image features with the baseline angle features, and fuse the initial image features with the initial angle features to obtain the baseline fused features and the initial fused features, respectively.
[0039] Fusion refers to the operation of combining feature representations from different modalities or sources to form a comprehensive representation. Fusion methods include, but are not limited to, adding corresponding elements, splicing, and weighted combination. Baseline fusion features refer to the comprehensive feature representation obtained by fusing baseline image features and baseline angle features, which simultaneously contains image and angle information. Initial fusion features refer to the comprehensive feature representation obtained by fusing initial image features and initial angle features, which simultaneously contains image and angle information.
[0040] Specifically, when fusing baseline image features with baseline angle features and initial image features with initial angle features, the image features and angle features at the same monitoring time are combined respectively. Since image features and angle data characterize the patient's condition from two complementary dimensions, including images reflecting the morphological structure of the spine and angles reflecting the quantitative degree of scoliosis, fusing the two allows the feature representations corresponding to each monitoring time to simultaneously carry morphological and quantitative information, providing a consistent, cross-modal aligned feature basis for subsequent longitudinal fusion, thereby obtaining baseline fusion features and initial fusion features respectively.
[0041] Step 140: Using the mid-term angle feature as the query, the baseline fusion feature and the initial fusion feature are used as keys and values respectively for attention-based vertical fusion to obtain the vertical fusion feature.
[0042] Among them, attention-based vertical fusion refers to a fusion method that uses attention mechanisms to weighted aggregate features corresponding to different monitoring times along the longitudinal dimension of time or monitoring process. Vertically fused features are feature representations that integrate information from various monitoring times after attention-based vertical fusion.
[0043] Specifically, when using mid-term angle features as the query and baseline and initial fusion features as keys and values respectively for longitudinal attention fusion, the mid-term angle features can be used as the retrieval benchmark. Matching relationships are calculated within the key-value set formed by the baseline and initial fusion features, and the values are aggregated based on the weights obtained from the matches. This allows for the weighted combination of feature information accumulated during the baseline and initial treatment monitoring periods, according to their relevance to the mid-term angle features, to obtain the longitudinal fusion features. Since the efficacy of brace treatment is closely related to the state evolution at different monitoring times, using longitudinal attention fusion guided by mid-term angle features can highlight time-stage features that are more indicative of the prediction target, suppress irrelevant or interfering information, thereby improving the expressive power of the fusion features for long-term efficacy.
[0044] In an optional implementation, attention is used to perform vertical fusion of mid-term angle features as the query and baseline fusion features and initial fusion features as keys and values, respectively, to obtain vertical fusion features. This includes: determining mid-term angle features as the query vector, and determining baseline fusion features and initial fusion features as key vectors and value vectors, respectively; calculating the dot product of the query vector and each key vector, scaling it by dividing by the square root of the key vector dimension, and then processing it through a normalization function to obtain attention weights; and performing weighted summation of the value vectors according to the attention weights to obtain vertical fusion features.
[0045] In this process, the mid-term angular features are defined as the query vector, and the baseline fusion features and initial fusion features are defined as the key vector and value vector, respectively. The dot product of the query vector and each key vector measures the relevance between the query and each key. This dot product is then scaled by dividing by the square root of the key vector dimension to keep the numerical distribution within an appropriate range. The scaled score is input into a normalization function to obtain the attention weight corresponding to each key vector. The value vectors are then weighted and summed according to these attention weights, ensuring that the baseline fusion features or initial fusion features, which are more relevant to the mid-term angular features, occupy a larger proportion of the longitudinal fusion features, thus obtaining the fused longitudinal fusion features. This process does not require explicit definition of the weights for each time stage; instead, it adaptively determines the contribution of each monitoring time feature to the prediction target through data-driven relevance calculation.
[0046] Step 150: Perform regression prediction based on longitudinal fusion features to obtain the efficacy prediction results for the target patient when the target period of brace treatment is reached.
[0047] Regression prediction refers to the operation of mapping input features to a continuous numerical space using a regression model to output quantitative predicted values. The target period refers to the long-term follow-up time of interest in brace treatment, located after each monitoring time, preferably 1-2 years after treatment, to assess the long-term effects of the treatment. The efficacy prediction result refers to the quantitative predicted value output by the model, reflecting the degree of scoliosis in the target patient within the target period.
[0048] Specifically, by inputting longitudinal fusion features into a regression prediction model, which then outputs quantitative predictions corresponding to the target duration, the efficacy prediction results for the target patient when brace treatment reaches the target duration can be obtained. Since the longitudinal fusion features integrate the spatiotemporal evolution information contained in the treatment baseline, initial treatment imaging and angles, and mid-treatment angles, regression prediction based on these features can output continuous quantitative angles, rather than just providing classification judgments. This enables a quantitative estimate of the long-term effects of brace treatment, providing a basis for optimizing personalized brace prescriptions and imaging monitoring strategies.
[0049] In an optional implementation, regression prediction is performed based on longitudinal fusion features to obtain the efficacy prediction results for the target patient when the target duration of brace treatment is reached. This includes: inputting the longitudinal fusion features into a first regression head and a second regression head respectively, to obtain the T-type Cobb angle prediction value of the target patient at the target duration based on the first regression head, and to obtain the TL / L-type Cobb angle prediction value of the target patient at the target duration based on the second regression head; restoring the T-type Cobb angle prediction value and the TL / L-type Cobb angle prediction value to angle space through inverse transformation; truncating the prediction values less than 0° in the restored T-type Cobb angle prediction value and the TL / L-type Cobb angle prediction value to 0°, and then determining the T-type Cobb angle prediction value and the TL / L-type Cobb angle prediction value as the efficacy prediction results.
[0050] The first regression head refers to the regression subnetwork or regression branch used to predict the Cobb angle of the thoracic (T) curve; the second regression head refers to the regression subnetwork or regression branch used to predict the Cobb angle of the thoracolumbar or lumbar (TL / L) curves. The T-type Cobb angle prediction value refers to the Cobb angle prediction value output by the first regression head corresponding to the thoracic curve; the TL / L-type Cobb angle prediction value refers to the Cobb angle prediction value output by the second regression head corresponding to the thoracolumbar or lumbar curve.
[0051] Specifically, when the longitudinal fusion features are input into the first and second regression heads respectively, each head corresponds to a type of spinal curvature and outputs the corresponding Cobb angle prediction values in parallel: the T-type Cobb angle prediction value and the TL / L-type Cobb angle prediction value. Since the model often performs z-score and other standardization processing on angle labels during training or inference, the predicted values are initially located on a standardized scale. Therefore, the T-type and TL / L-type Cobb angle prediction values need to be inversely transformed back to an angle space in degrees to restore their actual physical meaning. Considering that the clinical definition of scoliosis requires a Cobb angle greater than 0°, and logically negative curvature angles should not occur, predicted values less than 0° after restoration are truncated to 0° to eliminate unreasonable negative values introduced by the inverse transformation. Finally, the T-type and TL / L-type Cobb angle prediction values are jointly determined as the efficacy prediction results, thus providing target patients with a categorized, quantitative long-term efficacy estimate.
[0052] In an optional implementation, the target medical baseline model and components such as the angle encoder and regression head can be obtained based on joint supervised training. For example, supervised training is performed using the mean squared error loss function; the AdamW optimizer is used with an initial learning rate of 1×10⁻⁶. -4 The weight decays to 1×10 -4 The learning rate is adjusted using a cosine annealing strategy, such as a minimum learning rate of 1×10⁻⁶.-6 The training batch size was 64, the training lasted for 100 epochs, and dropout with a ratio of 0.3 was used to alleviate overfitting.
[0053] The technical solution of this embodiment extracts features from spinal images collected from the target patient at the baseline monitoring time and the initial monitoring time of treatment to obtain baseline image features and initial image features. It also encodes the scoliosis angle data corresponding to the baseline monitoring time, the initial monitoring time, and the mid-term monitoring time of treatment to obtain baseline angle features, initial angle features, and mid-term angle features. Furthermore, it fuses the baseline image features with the baseline angle features and the initial image features with the initial angle features to obtain baseline fusion features and initial fusion features, respectively. Using the mid-term angle features as a query, and the baseline fusion features and the initial fusion features as keys and values, it performs attentional longitudinal fusion to obtain longitudinal fusion features. Based on these longitudinal fusion features, it performs regression prediction to obtain the efficacy prediction results for the target patient when the target period of brace treatment is reached. This solves the problem that existing technologies cannot quantitatively predict the long-term effects of brace treatment, enabling quantitative prediction of the long-term effects of brace treatment for scoliosis patients. It provides continuous and individualized efficacy estimates, providing a basis for individualized decision-making regarding brace prescription and imaging monitoring.
[0054] Example 2 Figure 2 This is a schematic diagram of the structure of a brace treatment effect prediction device provided in Embodiment 2 of this application, as shown below. Figure 2 As shown, the brace treatment effect prediction device includes: an image feature module 210, an angle feature module 220, a feature fusion module 230, a longitudinal fusion module 240, and a result prediction module 250, wherein... The image feature module 210 is used to extract features from the spinal images of the target patient acquired at the baseline monitoring time and the initial monitoring time of treatment, respectively, to obtain baseline image features and initial image features. Angle feature module 220 is used to encode the lateral bending angle data of the target patient at the baseline monitoring time, the initial monitoring time of treatment, and the mid-term monitoring time of treatment, respectively, to obtain baseline angle features, initial angle features, and mid-term angle features. The feature fusion module 230 is used to fuse the baseline image features with the baseline angle features and to fuse the initial image features with the initial angle features, so as to obtain baseline fusion features and initial fusion features respectively. The vertical fusion module 240 is used to perform attention-based vertical fusion with the intermediate angle feature as the query and the baseline fusion feature and the initial fusion feature as the key and value, respectively, to obtain the vertical fusion feature. The result prediction module 250 is used to perform regression prediction based on the longitudinal fusion features to obtain the efficacy prediction results of the target patient when the target period of brace treatment is reached.
[0055] The technical solution of this embodiment extracts features from spinal images collected from the target patient at the baseline monitoring time and the initial monitoring time of treatment to obtain baseline image features and initial image features. It also encodes the scoliosis angle data corresponding to the baseline monitoring time, the initial monitoring time, and the mid-term monitoring time of treatment to obtain baseline angle features, initial angle features, and mid-term angle features. Furthermore, it fuses the baseline image features with the baseline angle features and the initial image features with the initial angle features to obtain baseline fusion features and initial fusion features, respectively. Using the mid-term angle features as a query, and the baseline fusion features and the initial fusion features as keys and values, it performs attentional longitudinal fusion to obtain longitudinal fusion features. Based on these longitudinal fusion features, it performs regression prediction to obtain the efficacy prediction results for the target patient when the target period of brace treatment is reached. This solves the problem that existing technologies cannot quantitatively predict the long-term effects of brace treatment, enabling quantitative prediction of the long-term effects of brace treatment for scoliosis patients. It provides continuous and individualized efficacy estimates, providing a basis for individualized decision-making regarding brace prescription and imaging monitoring.
[0056] Optionally, the image feature module 210 includes: a feature extraction unit, used to extract image feature representations of each of the spinal images based on a pre-trained target medical basic model; a spatiotemporal introduction unit, used to perform spatial encoding introduction and temporal encoding introduction on the image feature representations to obtain spatiotemporal fusion representations of each of the spinal images; and a pooling processing unit, used to perform pooling processing on the spatiotemporal fusion representations to obtain the baseline image features and the initial image features, respectively.
[0057] Optionally, the feature extraction unit is specifically configured as follows: obtaining global pooling feature vectors and local feature vectors of each of the spinal images based on the target medical basic model; and concatenating the global pooling feature vectors and the local feature vectors according to their sequence dimensions to obtain the image feature representation of each of the spinal images.
[0058] Optionally, the image feature module 210 further includes: a model pre-training unit, used to freeze the encoder parameters of the target medical basic model and perform pre-training on the target medical basic model; and a spatiotemporal introduction unit, specifically configured to: add spatial location encoding to the image feature representation to obtain spatial encoding representations of each of the spinal images; perform domain adaptation processing on the spatial encoding representations based on the adapter module to obtain semantic image representations; and superimpose temporal encoding on the semantic image representations to obtain the spatiotemporal fusion representations of each of the spinal images.
[0059] Optionally, the vertical fusion module 240 is specifically configured as follows: determining the intermediate angle feature as a query vector, and determining the baseline fusion feature and the initial fusion feature as a key vector and a value vector, respectively; calculating the dot product of the query vector and each of the key vectors, and scaling it by dividing by the square root of the dimension of the key vector, and then processing it through a normalization function to obtain attention weights; performing weighted summation on the value vectors according to the attention weights to obtain the vertical fusion feature.
[0060] Optionally, the brace treatment effect prediction device further includes: an image preprocessing module, used to perform edge detection on the spinal image, identify the spinal region image and the patient's personal features, and remove the patient's personal features from the spinal image; convert the spinal image into a grayscale image, and perform scaling and filling processing while maintaining the aspect ratio to obtain the spinal image of a preset size.
[0061] Optionally, the result prediction module 250 is specifically configured as follows: inputting the longitudinal fusion features into the first regression head and the second regression head respectively, to obtain the T-type Cobb angle prediction value of the target patient under the target period based on the first regression head, and to obtain the TL / L-type Cobb angle prediction value of the target patient under the target period based on the second regression head; restoring the T-type Cobb angle prediction value and the TL / L-type Cobb angle prediction value to angle space through inverse transformation; truncating the prediction values less than 0° in the restored T-type Cobb angle prediction value and the TL / L-type Cobb angle prediction value to 0°, and determining the T-type Cobb angle prediction value and the TL / L-type Cobb angle prediction value as the efficacy prediction result.
[0062] The brace treatment effect prediction device provided in this application embodiment can execute the brace treatment effect prediction method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects of executing the method.
[0063] Example 3 Figure 3 This is a schematic diagram of the structure of a brace treatment effect prediction device provided in Embodiment 3 of this application, as shown below. Figure 3 As shown, the brace treatment effect prediction device includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of processors 510 in the brace treatment effect prediction device can be one or more. Figure 3 Taking a processor 510 as an example; the processor 510, memory 520, input device 530, and output device 540 in the brace treatment effect prediction device can be connected via a bus or other means. Figure 3 Taking the example of a connection between China and Israel via a bus.
[0064] The memory 520, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the brace treatment effect prediction method in the embodiments of this application (e.g., the image feature module 210, angle feature module 220, feature fusion module 230, longitudinal fusion module 240, and result prediction module 250 in the brace treatment effect prediction device). The processor 510 executes various functional applications and data processing of the brace treatment effect prediction device by running the software programs, instructions, and modules stored in the memory 520, thereby realizing the above-mentioned brace treatment effect prediction method.
[0065] The memory 520 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function; the data storage area may store data created based on terminal usage. Furthermore, the memory 520 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 520 may further include memory remotely configured relative to the processor 510, which can be connected to the brace treatment effect prediction device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0066] The input device 530 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the brace treatment effect prediction device. The output device 540 may include a display device such as a display screen.
[0067] Example 4 Embodiment 4 of this application also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a method for predicting the therapeutic effect of a brace, including: Feature extraction was performed on the spinal images of the target patients at the baseline monitoring time and the initial monitoring time of treatment to obtain baseline image features and initial image features; The lateral bending angle data of the target patient at the baseline monitoring time, the initial monitoring time, and the mid-term monitoring time are encoded to obtain baseline angle features, initial angle features, and mid-term angle features. The baseline image features are fused with the baseline angle features, and the initial image features are fused with the initial angle features to obtain baseline fusion features and initial fusion features, respectively. Using the intermediate angle feature as the query, and the baseline fusion feature and the initial fusion feature as the key and value respectively, attention vertical fusion is performed to obtain the vertical fusion feature; Regression prediction is performed based on the longitudinal fusion features to obtain the efficacy prediction results for the target patient when the target period of brace treatment is reached.
[0068] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the method operations described above, but can also perform related operations in the brace treatment effect prediction method provided in any embodiment of this application.
[0069] Based on the above description of the implementation methods, those skilled in the art can clearly understand that this application can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0070] It is worth noting that in the embodiments of the above-mentioned brace treatment effect prediction device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of this application.
[0071] Although this application has been described in detail above with general descriptions, specific embodiments, and experiments, some modifications or improvements can be made to it, which will be obvious to those skilled in the art. Therefore, all such modifications or improvements made without departing from the spirit of this application fall within the scope of protection claimed in this application.
Claims
1. A method for predicting the therapeutic effect of braces, characterized in that, include: Feature extraction was performed on the spinal images of the target patients at the baseline monitoring time and the initial monitoring time of treatment to obtain baseline image features and initial image features; The lateral bending angle data of the target patient at the baseline monitoring time, the initial monitoring time, and the mid-term monitoring time are encoded to obtain baseline angle features, initial angle features, and mid-term angle features. The baseline image features are fused with the baseline angle features, and the initial image features are fused with the initial angle features to obtain baseline fusion features and initial fusion features, respectively. Using the intermediate angle feature as the query, and the baseline fusion feature and the initial fusion feature as the key and value respectively, attention vertical fusion is performed to obtain the vertical fusion feature; Regression prediction is performed based on the longitudinal fusion features to obtain the efficacy prediction results for the target patient when the target period of brace treatment is reached.
2. The method according to claim 1, characterized in that, The spinal images of the target patient acquired at the baseline monitoring time and the initial monitoring time of treatment are subjected to feature extraction to obtain baseline image features and initial image features, including: Based on a pre-trained target medical basic model, image feature representations of each spinal image are extracted. Spatial and temporal coding are introduced into the image feature representation to obtain the spatiotemporal fusion representation of each spinal image; The spatiotemporal fusion representation is subjected to pooling processing to obtain the baseline image features and the initial image features, respectively.
3. The method according to claim 2, characterized in that, The pre-trained target medical basic model extracts image feature representations of each of the spinal images, including: Based on the target medical basic model, the global pooling feature vector and local feature vector of each spinal image are obtained; The global pooling feature vector and the local feature vector are concatenated sequentially to obtain the image feature representation of each spinal image.
4. The method according to claim 2, characterized in that, Before extracting image feature representations of each spinal image based on the pre-trained target medical baseline model, the process includes: Freeze the encoder parameters of the target medical basic model and perform the pre-training on the target medical basic model; The process of introducing spatial and temporal coding into the image feature representation to obtain the spatiotemporal fusion representation of each spinal image includes: Spatial location coding is added to the image feature representation to obtain the spatial coding representation of each of the spinal images; Based on the adapter module, the spatial coding representation is subjected to domain adaptation processing to obtain the semantic image representation; The semantic image representation is superimposed with time encoding to obtain the spatiotemporal fusion representation of each of the spinal images.
5. The method according to claim 1, characterized in that, The process of using the intermediate angle feature as a query, and performing attention-based vertical fusion with the baseline fusion feature and the initial fusion feature as keys and values respectively, to obtain the vertical fusion feature includes: The intermediate angle feature is determined as the query vector, and the baseline fusion feature and the initial fusion feature are determined as the key vector and value vector, respectively. Calculate the dot product of the query vector and each of the key vectors, divide by the square root of the dimension of the key vector for scaling, and then process by a normalization function to obtain the attention weights; The value vector is weighted and summed according to the attention weights to obtain the vertical fusion feature.
6. The method according to claim 1, characterized in that, Before extracting features from the spinal images of the target patient acquired at the baseline monitoring time and the initial monitoring time of treatment to obtain the baseline image features and the initial image features, the procedure also includes: Edge detection is performed on the spinal images to identify the spinal region images and the patient's personal features, and the patient's personal features are removed from the spinal images; The spinal image is converted into a grayscale image, and then scaled and filled while maintaining the aspect ratio to obtain the spinal image of a preset size.
7. The method according to claim 1, characterized in that, The regression prediction based on the longitudinal fusion features yields the efficacy prediction results for the target patient when the target duration of brace treatment is achieved, including: The longitudinal fusion features are respectively input into the first regression head and the second regression head to obtain the predicted T-type Cobb angle of the target patient under the target period based on the first regression head, and the predicted TL / L-type Cobb angle of the target patient under the target period based on the second regression head; The T-type Cobb angle prediction value and the TL / L-type Cobb angle prediction value are inversely transformed back to the angle space; After truncating the predicted values of the T-type Cobb angle and the TL / L-type Cobb angle that are less than 0° to 0°, the predicted values of the T-type Cobb angle and the TL / L-type Cobb angle are determined as the efficacy prediction results.
8. A device for predicting the therapeutic effect of a brace, characterized in that, include: The image feature module is used to extract features from the spinal images of the target patient acquired at the baseline monitoring time and the initial monitoring time of treatment, respectively, to obtain baseline image features and initial image features. An angle feature module is used to encode the lateral bending angle data of the target patient at the baseline monitoring time, the initial monitoring time, and the mid-term monitoring time of the treatment, respectively, to obtain baseline angle features, initial angle features, and mid-term angle features. The feature fusion module is used to fuse the baseline image features with the baseline angle features and to fuse the initial image features with the initial angle features, so as to obtain baseline fused features and initial fused features respectively. The vertical fusion module is used to perform attention-based vertical fusion with the intermediate angle feature as the query and the baseline fusion feature and the initial fusion feature as the key and value, respectively, to obtain the vertical fusion feature. The outcome prediction module is used to perform regression prediction based on the longitudinal fusion features to obtain the efficacy prediction results of the target patient when the target period of brace treatment is reached.
9. A device for predicting the therapeutic effect of braces, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the brace treatment effect prediction method as described in any one of claims 1-7.
10. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the brace treatment effect prediction method as described in any one of claims 1-7.
