Neoadjuvant chemoradiotherapy curative effect prediction method and system based on multi-modal medical image
By combining the multi-modal fusion model of MRI and endoscopic images, extracting and encoding feature vectors to predict the response of rectal cancer patients to neoadjuvant chemotherapy and radiotherapy, the problem of low prediction accuracy in the existing technology is solved, and the treatment effect and life are improved. quality.
Patent Information
- Application Number
- CN202410887382.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology has low accuracy in predicting the response of patients with rectal cancer to neoadjuvant chemotherapy and radiotherapy, and is not widely used in clinical practice, affecting the treatment effect and quality of life.
A neoadjuvant chemoradiotherapy efficacy prediction method based on multi-modal medical imaging is adopted. By combining MRI and endoscopic images, a deep residual network model is used to extract primary feature vectors, and an MRI-endoscopic multi-modal fusion model is used for feature splicing and Deep coding to predict the efficacy of neoadjuvant chemoradiotherapy.
It improves the accuracy and efficiency of predicting the efficacy of neoadjuvant therapy, enables a more refined understanding of complex medical imaging patterns, and provides personalized treatment plans.
Smart Images

Figure CN118735893A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical image processing, and in particular to a method and system for predicting the efficacy of new adjuvant chemoradiotherapy based on multimodal medical images. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] Colorectal cancer is a disease that seriously threatens human health. Locally advanced rectal cancer, i.e., rectal cancer classified as cT3-4 or any cT with cN1-2, requires careful consideration and elaborate treatment strategies to effectively deal with its proneness to recurrence and metastasis.
[0004] In recent years, neoadjuvant chemoradiotherapy followed by radical resection has become a common practice for patients with locally advanced rectal cancer, and its clinical value has been confirmed by numerous high-level randomized clinical trials, with approximately 50% of patients achieving good results, such as tumor shrinkage. However, not all patients respond well to neoadjuvant chemoradiotherapy and experience severe side effects that affect their quality of life, such as difficulty defecating, severe urinary incontinence, and sexual dysfunction. Therefore, a model that identifies patients with high sensitivity to neoadjuvant chemoradiotherapy at the time of tumor diagnosis would help individualize treatment.
[0005] In actual clinical diagnosis, doctors often need to rely on their rich experience and comprehensively analyze multiple factors to decide whether to implement neoadjuvant chemoradiotherapy for patients with rectal cancer; these factors include the tumor morphology and location shown in MRI, the spread of the mesangial area observed under endoscopy, and the patient's baseline examination indicators.
[0006] With the widespread application of deep learning, non-invasive quantitative analysis of medical images has become a hot topic in the medical field. Endoscopy is a key diagnostic tool for rectal cancer examination, and its images contain optical features that reflect tumor heterogeneity. Magnetic resonance imaging (MRI) plays a key role in the diagnosis and invasion depth assessment of rectal cancer, providing rich mineable data that can be analyzed to reveal tumor heterogeneity. Various factors reflecting tumor heterogeneity, such as clinicopathological characteristics, serum biomarkers, and gene expression profiles, have been studied for their effects on the response to neoadjuvant chemoradiotherapy. However, these factors are not widely used in clinical practice due to their low accuracy in predicting efficacy response. Summary of the invention
[0007] In order to solve the above problems, the present invention proposes a method and system for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging, which can simultaneously learn the radiological and optical characteristics of the tumor, and effectively and efficiently predict the response of the tumor to neoadjuvant chemoradiotherapy.
[0008] In some embodiments, the following technical solutions are adopted:
[0009] A method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging, comprising:
[0010] Obtain the colorectal MRI and endoscopic images of the patients before receiving neoadjuvant chemoradiotherapy;
[0011] The MRI images and endoscopic images are cropped respectively, and the primary feature vectors of the MRI images and endoscopic images are extracted respectively through the trained deep residual network model;
[0012] The primary feature vectors of the extracted MRI images and endoscopic images are input into the trained MRI-endoscopic multimodal fusion model to obtain the prediction results of the patient's pathological response to neoadjuvant chemoradiotherapy;
[0013] Among them, the MRI-endoscopy multimodal fusion model is divided into two paths, one of which is input as the primary feature vector of the MRI image, and the other is input as the primary feature vector of the endoscopic image. The primary feature vectors of the two input paths are spliced, and the spliced feature vectors are positionally embedded. Then, a sequence composed of multiple Transformer encoders is input, and the normalized feature representation is output to enter the multi-layer perceptron classification head to obtain the final prediction result.
[0014] As an optional solution, the MRI image is cropped as follows:
[0015] Professionals mark the tumor and surrounding mesentery in the MRI images, outline the region of interest (ROI), and form a binary mask image. The ROI area of each two-dimensional slice in the MRI sequence is calculated by counting the number of pixels in the mask. The slice with the largest area is selected to characterize the tumor, and the smallest rectangular area that can surround the largest slice ROI is cropped out. With the symmetry center of the smallest rectangular area as the origin, the boundary of the smallest rectangle is expanded outward to a set range to obtain the cropped image.
[0016] As an optional solution, the endoscopic image is cropped as follows:
[0017] The original endoscopic image contains text information and a black background. The text is painted black and the non-black foreground image is cropped using the minimum rectangle algorithm.
[0018] As an optional solution, primary feature vectors of MRI images and endoscopic images are extracted, specifically:
[0019] Taking the cropped MRI image or endoscopic image as input, using the trained deep residual network model, output the primary feature vector of the MRI image or endoscopic image;
[0020] The deep residual network model removes the last fully connected layer, and uses the output of the average pooling layer after the last stage of the deep residual network model as the primary feature vector of the MRI image or the endoscopic image.
[0021] As an optional solution, the primary feature vector of the MRI image is represented by a one-dimensional primary feature vector with a length of 512; the primary feature vector of the endoscopic image is represented by 8 one-dimensional vectors with a length of 512.
[0022] As an optional solution, the processing process of the MRI-endoscopy multimodal fusion model is specifically as follows:
[0023] Concatenate the primary feature vectors of the two inputs to get the input feature matrix x mul ∈R 16×9×512 ;
[0024] Use a zero matrix to initialize a classification feature class for stacking into the serialized image features token ∈R 16×1×512 ;
[0025] calss token With x mul Concatenate in the second dimension to get x cat ∈R 16×10×512 ;
[0026] Initialize x with zero matrices respectively mul and class token Position embedding:
[0027] x pe ∈R 1×9×512 ;
[0028] ct pe ∈R 1×1×512 ;
[0029] ct pe With x pe Splice in the second dimension to get pos embed ∈R 1×10×512 ;
[0030] x cat With pos embed After addition, the input features are obtained, and the input features are input into a sequence composed of multiple Transformer encoders for multiple processing and feature extraction of the input features, so as to realize deep encoding and abstract representation of image features. The obtained feature representation is normalized, and the normalized feature representation is input into the multi-layer perceptron classification head to obtain the final neoadjuvant chemoradiotherapy efficacy prediction results.
[0031] As an optional solution, it also includes: randomly discarding some elements of the input features to prevent overfitting.
[0032] In other embodiments, the following technical solutions are adopted:
[0033] A new adjuvant chemoradiotherapy efficacy prediction system based on multimodal medical imaging, comprising:
[0034] An image acquisition module, used to respectively acquire colorectal MRI images and endoscopic images of patients before receiving neoadjuvant chemoradiotherapy;
[0035] The image processing module is used to crop the MRI image and the endoscopic image respectively, and extract the primary feature vectors of the MRI image and the endoscopic image respectively through the trained deep residual network model;
[0036] The result prediction module is used to input the extracted primary feature vector into the trained MRI-endoscopy multimodal fusion model to obtain the prediction result of the patient's pathological response to neoadjuvant chemoradiotherapy;
[0037] Among them, the MRI-endoscopy multimodal fusion model is divided into two paths, one of which is input as the primary feature vector of the MRI image, and the other is input as the primary feature vector of the endoscopic image. The primary feature vectors of the two input paths are spliced, and the spliced feature vectors are positionally embedded. Then, a sequence composed of multiple Transformer encoders is input, and the normalized feature representation is output to enter the multi-layer perceptron classification head to obtain the final prediction result.
[0038] In other embodiments, the following technical solutions are adopted:
[0039] A terminal device comprises a processor and a memory, wherein the processor is used to implement instructions; and the memory is used to store a plurality of instructions, wherein the instructions are suitable for being loaded by the processor and executing the above-mentioned method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging.
[0040] In other embodiments, the following technical solutions are adopted:
[0041] A computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor of a terminal device for the above-mentioned method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging.
[0042] Compared with the prior art, the present invention has the following beneficial effects:
[0043] (1) The method of the present invention integrates the information brought by MRI images and endoscopic images, extracts the initial feature vectors of the two images respectively, and then uses the initial feature vectors as input to perform feature vector splicing and deep feature extraction, and finally obtains the prediction results of the efficacy of neoadjuvant chemoradiotherapy, thereby improving the accuracy of predicting the efficacy of neoadjuvant treatment.
[0044] (2) The present invention uses the ResNet34 deep residual network model to extract primary feature vectors, cancels the fully connected layer of the ResNet34 deep residual network model, and uses the output of the average pooling layer after the 4th stage as the primary feature vector of the image. The ResNet34 deep residual network model learns common feature representations such as edges, textures, shapes, etc. on a large amount of data through pre-training; the present invention can fully extract useful information from the image as a primary feature vector through the ResNet34 deep residual network model; then the primary feature vector is used to predict the efficacy of neoadjuvant chemoradiotherapy, which can improve the accuracy of the prediction results and improve the prediction efficiency.
[0045] (3) The present invention uses an MRI-endoscopic multimodal fusion model to predict the efficacy of neoadjuvant chemoradiotherapy. The model first concatenates and positionally embeds the primary feature vectors extracted from two different types of images, and then uses a sequence composed of multiple Transformer encoders to continuously perform deep encoding and abstract representation of image features. Each layer of transformer encoders transforms and extracts input features through a self-attention mechanism and a feedforward neural network; by stacking multiple encoders, the model can extract more abstract and high-level features layer by layer, thereby better understanding the complex patterns of the input data. Each layer of encoders processes and transforms the input features. By stacking multiple layers of encoders, the model can gradually aggregate and refine the information of the input data, and ultimately obtain a more refined and accurate feature representation.
[0046] Other features and advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 This is a flow chart of a method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging in an embodiment of the present invention;
[0048] Figure 2 This is a schematic diagram of the structure of the MRI-endoscopy multimodal fusion model in an embodiment of the present invention;
[0049] Figure 3 Schematic diagram of the deep residual network model structure in an embodiment of the present invention. DETAILED DESCRIPTION
[0050] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.
[0051] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0052] Embodiment 1
[0053] In one or more embodiments, a method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging is disclosed. Figure 1 , specifically including the following process:
[0054] S101: Obtain the colorectal MRI and endoscopic images of the patient before receiving neoadjuvant chemoradiotherapy;
[0055] Among them, MRI images are obtained by a magnetic resonance imaging device, and endoscopic images are obtained by an endoscopic camera.
[0056] S102: cropping the MRI image and the endoscopic image respectively, and extracting primary feature vectors of the MRI image and the endoscopic image;
[0057] Among them, the MRI image is cropped, specifically:
[0058] Professionals mark the tumor and surrounding mesentery in the MRI images, outline the region of interest (ROI), and form a binary mask image. The ROI area of each two-dimensional slice in the MRI sequence is calculated by counting the number of pixels in the mask. The slice with the largest area is selected to characterize the tumor, and the smallest rectangular area that can surround the largest slice ROI is cropped out. With the symmetry center of the smallest rectangular area as the origin, the boundary of the smallest rectangle is expanded outward to a set range to obtain the cropped image.
[0059] The endoscopic image is cropped as follows:
[0060] The original endoscopic image contains text information and a black background. The text is painted black and the non-black foreground image is cropped using the minimum rectangle algorithm.
[0061] Taking the cropped MRI image or endoscopic image as input, using the trained deep residual network model, output the primary feature vector of the MRI image or endoscopic image;
[0062] The deep residual network model removes the last fully connected layer, and uses the output of the average pooling layer after the last stage of the deep residual network model as the primary feature vector of the MRI image or the endoscopic image.
[0063] S103: Input the extracted primary feature vector into the trained MRI-endoscopy multimodal fusion model to obtain the prediction result of the patient's pathological response to neoadjuvant chemoradiotherapy.
[0064] Among them, the MRI-endoscopy multimodal fusion model is divided into two paths, one of which is the primary feature vector of the MRI image, and the other is the primary feature vector of the endoscopic image. The primary feature vectors of the two input paths are spliced, the spliced feature vectors are positionally embedded, and then a sequence composed of multiple Transformer encoders is input. The normalized feature representation is output and enters the multi-layer perceptron classification head to obtain the final prediction result.
[0065] As a specific implementation method, firstly, a training data set is constructed to train the MRI-endoscopy multimodal fusion model; the specific process is as follows:
[0066] (1) Based on the colorectal pathology examination of patients with locally advanced colorectal cancer after neoadjuvant chemoradiotherapy as the "gold standard", patients were divided into pathological complete response (good response, GR) and no response to neoadjuvant therapy (non-good response, non-GR). Then, doctors from the Department of Radiology and the Endoscopy Department collected historical MRI and endoscopic images of patients before receiving neoadjuvant chemoradiotherapy. The data set was divided into a training set and a test set in a ratio of 7:3, and the doctors annotated the labels according to the patients' pathological outcomes.
[0067] The original MRI three-dimensional grayscale image of a patient is recorded as Among them, 1 is the number of MRI image channels, H mr ×W mr is the image resolution, D is the image sequence depth; the original endoscopic image of the same patient is recorded as Where 3 is the number of endoscopic image channels, H en ×W en is the endoscopic image resolution, N is the number of endoscopic images, and in this embodiment, N=8 is uniformly set.
[0068] (2) Cropping and image enhancement processing of MRI images are performed. The specific process is as follows:
[0069] Experienced radiologists annotate the tumor and surrounding mesentery in the MRI images and outline the region of interest (ROI); specifically, a radiologist can use ITK-snap software to annotate the ROI for each MRI image to form a binary mask image, and another radiologist can review the annotation quality.
[0070] The ROI area of each two-dimensional slice in the MRI sequence is calculated by counting the number of pixels in the mask, and the slice with the largest area (referred to as the "largest slice") is selected to characterize the tumor; the minimum enclosing rectangle algorithm is used to crop the minimum rectangular area that can enclose the largest slice ROI, and the boundary of the minimum rectangle is expanded outward by 10% with the symmetric center of the rectangle as the origin to include richer edge features and background information.
[0071] Then, the cropped image is normalized, resampled, and subjected to random contrast changes for data enhancement. Specifically, the SetOutputSpacing function of the SimpleITK package can be used to set a uniform pixel spacing of [0.35mm, 0.35mm], and the sitkLinear method of the SetInterpolator function can be used for linear interpolation to obtain the target image. The convertScaleAbs function is used to implement random brightness changes. The ToTensor function in the transforms method of the torchvision package is used to convert the matrix after the above operation into a tensor form, and the Normalize function is used for normalization. The resize function is used to scale the tensor size to 224×224.
[0072] Image enhancement can increase the robustness of the model on the one hand, and on the other hand, it can achieve data augmentation and balance the proportion of sample categories in the training set.
[0073] (3) The endoscopic image is cropped and enhanced. The specific process is as follows:
[0074] The original image taken directly by the gastrointestinal surgeon using a laparoscope contained text information and a black background. After the text was painted black using Photoshop, the minimum enclosing rectangle algorithm was used to crop the non-black foreground image. The getRotationMatrix2D function and flip function of the cv2 package were used to implement random rotation and random horizontal / vertical flipping, and the convertScaleAbs function was used to implement random brightness changes. The ToTensor function in torchvision.transforms was used to convert the image after the above operations into a tensor form, normalized using the Normalize function, and scaled to 256×256 using the resize function.
[0075] In this embodiment, the specific process of the minimum bounding rectangle algorithm is as follows:
[0076] First, read the maximum slice and mask image to obtain a two-dimensional array:
[0077] I r×c
[0078] M r×c
[0079] Where I is the original image array, M is the mask image array, and r×c is the shape of the array;
[0080] Use the where function in the Python numpy library to calculate the range of rows r and columns c of non-zero elements in M:
[0081] [r min ,r max ];
[0082] [c min ,c max ];
[0083] The rows and columns are expanded outward by 10% respectively, and the resulting row and column ranges can be expressed as:
[0084] r′ min =max(0,r min -int((r max -r min )×0.1));
[0085] r′ max =min(r,r max +int((r max -r min )×0.1));
[0086] c′ min =max(0,c min -int((c max -c min )×0.1));
[0087] c′ max =min(c,c max +int((c max -c min )×0.1));
[0088] Among them, int(*) represents an integer not greater than *, max(a,b) and min(m,n) are used to calculate the maximum and minimum values to prevent the extended area from exceeding the original image range.
[0089] According to the above clipping range, the clipped array is obtained from I, which can be expressed as:
[0090]
[0091] (4) Based on the idea of transfer learning, load the pre-trained deep residual network model; the deep residual network model of this embodiment selects the ResNet34 model and removes the last fully connected layer; the image preprocessed by (2) and (3) is input into the model, and the output of the average pooling layer after the 4th stage of ResNet34 is used as the primary feature vector of the image.
[0092] The ResNet34 model has been trained on large datasets (such as ImageNet) and has learned rich feature representations. These pre-trained weights can serve as a good initialization, greatly reducing the time required to train the model on the dataset. The ResNet34 model has learned common feature representations such as edges, textures, shapes, etc. on a large amount of data, so using a pre-trained ResNet34 model can extract useful features and improve prediction performance. By using resnet34, you can effectively utilize the learned features and achieve good performance on small datasets, avoiding the problem of overfitting due to the small size of training data.
[0093] Specifically, import the ResNet34 model from torchvision.models and set its weights parameter to models.ResNet34_Weights.IMAGENET1K_V1; get all the sublayers of the model through the model.children() function and convert them into a list, then get all elements except the last element through the slice operation [:-1], that is, all layers except the last fully connected layer, and finally, use the torch.nn.Sequential function to pack these layers into a new neural network backbone.
[0094] In order to realize the primary encoding of images, this embodiment provides two data set classes: MRIDataset and EndoscopeDataset, which are used to return the number, image and label of each patient; for each image, feature extraction is performed through the backbone network of the neural network, and a one-dimensional primary feature vector with a length of 512 is obtained by using the average pooling layer; specifically, for MRI features, each patient is represented by a one-dimensional vector with a length of 512; for endoscopic image features, each patient is represented by 8 one-dimensional vectors with a length of 512. This is the encoding process of the image. For MRI images, the one-dimensional primary feature vector is recorded as: x mf∈R 1×512 ; For endoscopic images, the one-dimensional primary feature vector is denoted as: x ef ∈R 8×512 ; Among them, 1×512 means that each patient has 1 vector to express the MRI features, and 8×512 means that each patient has 8 vectors to express the endoscopic image features.
[0095] Save the above patient number, feature vector, and label into the feature.csv file.
[0096] (5) Construct an MRI-endoscopy multimodal fusion model and train it.
[0097] This embodiment provides a medical image dataset class MedicalImageDataset, which includes:
[0098] Initialization method: The medical image dataset class is set up through the initialization method, which includes MRI data frames and endoscopy data frames.
[0099] Data length acquisition method: The medical image dataset class uses the data length acquisition method to calculate the length of the dataset in order to determine the size of the dataset during training and testing.
[0100] Data acquisition method: The medical image dataset class uses the data acquisition method to acquire a single data sample. In this method, the patient ID is first obtained according to the index, and the corresponding feature data is extracted from the MRI data frame and the endoscopy data frame. Then, the MRI feature data is converted into a two-dimensional tensor and concatenated with the endoscopy feature data to form a combined feature. The torch.cat function is used to stack the feature vectors in the first dimension, denoted as: x f ∈R 9×512 ; Finally, label information is extracted from the MRI data frame to indicate the category of the sample.
[0101] Data sample return: The medical image dataset class provides access to the dataset by returning data samples. Each data sample consists of a combination of features and labels. The combined features include feature information from MRI data and endoscopic data, while the label indicates the category of the sample.
[0102] Use DataLoader to build a data loader, disrupt the order of data, and define a multimodal image as follows:
[0103] x mul ∈R 16×9×512 ;
[0104] Among them, 16 is the batch size, and 9×512 is the shape of the feature matrix after concatenation.
[0105] Specifically, this embodiment builds an MRI and Endoscopy fusion model (MEF model). The MEF model is based on the infrastructure of Vision Transformer and removes the patch embedding operation. The MEF model has a dual-branch structure, one of which is inputted by x mf , the input of the other branch is x ef , after vector concatenation, the input feature matrix is x mul ;
[0106] Initialize a categorical feature with a zero matrix for stacking into the serialized image features:
[0107] class token ∈R 16×1×512 ;
[0108] Use the torch.cat function to convert the class token With x mul Concatenating in the second dimension, we get:
[0109] x cat ∈R 16×10×512 ;
[0110] Initialize x with zero matrices respectively mul and class token Position embedding:
[0111] x pe ∈R 1×9×512 ;
[0112] ct pe ∈R 1×1×512 ;
[0113] Use the torch.cat function to convert ct pe With x pe Concatenating in the second dimension, we get:
[0114] POS embed ∈R 1×10×512 ;
[0115] x cat With pos embedAfter adding, we get the input features. We use the nn.Dropout function to randomly discard some elements of the input features to prevent overfitting. According to the number of depths, we build a sequence of 12 Transformer encoders, called "block sequences". These "block sequences" will be used as part of the entire neural network to process and extract input features multiple times, thereby achieving deep encoding and abstract representation of image features. After the block sequence operation, we use nn.LayerNorm to perform layer normalization on the feature representation. The feature representation enters the Multilayer Perceptron (MLP) classification head to output the final prediction result.
[0116] The specific structure of the MEF model in this embodiment is as follows Figure 2 As shown in the figure, the MEF model was trained and developed on the training data, and after the model was built, the test set was used to verify the model's predictive ability for the efficacy of neoadjuvant therapy.
[0117] As a specific example, take a sample as an example to obtain the fusion feature sequence of its MRI and endoscopic images:
[0118]
[0119] Among them, 9 is the number of eigenvectors and 512 is the dimension of each eigenvector;
[0120] Initialize learnable global features:
[0121] x class =[0,0…,0],x class ∈R 1×512 ;
[0122] For the sequence x f and x class To do position embedding:
[0123]
[0124]
[0125] Where E pos is the learnable position embedding vector, x class is a [class] token;
[0126] The Transformer Encoder Block consists of alternating multi-head self-attention layers (MSA) and MLP blocks. The MLP block contains two GELU nonlinear layers, LayerNorm (LN, layer normalization) is applied between each block, and residual connections are applied after each block:
[0127] z′ l =MSA(LN(z l-1 ))+z l-1 ,z′ l ∈R (9+1)×512 l = 1…L;
[0128] z l =MLP(LN(z′ l ))+z′ l ,z l ∈R (9+1)×512 l = 1…L;
[0129] Wherein, L is the number of layers of the Transformer Encoder Block, and the present invention provides L=8;
[0130] As the output of the Transformer Encoder Block, it is normalized and then enters the MLP classification head (a fully connected layer) for prediction:
[0131]
[0132] The above process realizes the training of the MEF model. After the training is completed, the colorectal MRI images and endoscopic images of the patient to be predicted before receiving neoadjuvant chemoradiotherapy are obtained. The MRI images and endoscopic images are cropped and the primary feature vectors of the images are extracted according to the above process, and then the extracted primary feature vectors of the images are input into the trained MEF model to obtain the prediction result of the patient's neoadjuvant chemoradiotherapy efficacy.
[0133] Each layer of transformer encoder transforms and extracts input features through self-attention mechanism and feedforward neural network. By stacking multiple encoders, the model can extract more abstract and high-level features layer by layer, so as to better understand the complex patterns of input data.
[0134] Each layer of encoder will process and transform the input features. By stacking multiple layers of encoders, the model can gradually aggregate and refine the information of the input data, and ultimately obtain a more refined and accurate feature representation.
[0135] The MRI-endoscopic multimodal fusion model of this embodiment is designed based on the structural characteristics of the Vision transformer. In clinical practice, doctors need to comprehensively analyze the tumor growth location provided by the endoscopic image, the degree of invasion of the surrounding mesangial area, and the tumor size provided by the MRI image to decide whether to perform neoadjuvant chemoradiotherapy on the patient. The MRI-endoscopic multimodal fusion model realizes the feature fusion of endoscopic images and MRI images through a dual-branch input structure, simulating the doctor's information integration process of two different modal medical images.
[0136] Embodiment 2
[0137] In one or more embodiments, a system for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging is disclosed, specifically comprising:
[0138] An image acquisition module, used to respectively acquire colorectal MRI images and endoscopic images of patients before receiving neoadjuvant chemoradiotherapy;
[0139] The image processing module is used to crop the MRI image and the endoscopic image respectively, and extract the primary feature vectors of the MRI image and the endoscopic image respectively through the trained deep residual network model;
[0140] The result prediction module is used to input the extracted primary feature vector into the trained MRI-endoscopy multimodal fusion model to obtain the prediction result of the patient's pathological response to neoadjuvant chemoradiotherapy;
[0141] Among them, the MRI-endoscopy multimodal fusion model is divided into two paths, one of which is input as the primary feature vector of the MRI image, and the other is input as the primary feature vector of the endoscopic image. The primary feature vectors of the two input paths are spliced, and the spliced feature vectors are positionally embedded. Then, a sequence composed of multiple Transformer encoders is input, and the normalized feature representation is output to enter the multi-layer perceptron classification head to obtain the final prediction result.
[0142] The specific implementation of the above modules is the same as that in Example 1 and will not be described in detail.
[0143] Embodiment 3
[0144] In one or more embodiments, a terminal device is disclosed, including a server, the server including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging in Example 1 when executing the program. For the sake of brevity, it will not be described in detail here.
[0145] It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0146] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.
[0147] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software.
[0148] Embodiment 4
[0149] In one or more embodiments, a computer-readable storage medium is disclosed, in which a plurality of instructions are stored, wherein the instructions are suitable for being loaded by a processor of a terminal device and executing the method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging described in Example 1.
[0150] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. A method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging, characterized in that: include: Obtain the colorectal MRI and endoscopic images of the patients before receiving neoadjuvant chemoradiotherapy; The MRI images and endoscopic images are cropped respectively, and the primary feature vectors of the MRI images and endoscopic images are extracted respectively through the trained deep residual network model; The primary feature vectors of the extracted MRI images and endoscopic images are input into the trained MRI-endoscopic multimodal fusion model to obtain the prediction results of the patient's pathological response to neoadjuvant chemoradiotherapy; Among them, the MRI-endoscopy multimodal fusion model is divided into two paths, one of which is input as the primary feature vector of the MRI image, and the other is input as the primary feature vector of the endoscopic image. The primary feature vectors of the two input paths are spliced, and the spliced feature vectors are positionally embedded. Then, a sequence composed of multiple Transformer encoders is input, and the normalized feature representation is output to enter the multi-layer perceptron classification head to obtain the final prediction result.
2. The method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging according to claim 1, characterized in that: Crop the MRI image, specifically: Professionals mark the tumor and surrounding mesentery in the MRI images, outline the region of interest (ROI), and form a binary mask image. The ROI area of each two-dimensional slice in the MRI sequence is calculated by counting the number of pixels in the mask. The slice with the largest area is selected to characterize the tumor, and the smallest rectangular area that can surround the largest slice ROI is cropped out. With the symmetry center of the smallest rectangular area as the origin, the boundary of the smallest rectangle is expanded outward to a set range to obtain the cropped image.
3. The method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging according to claim 1, characterized in that: The endoscopic image is cropped as follows: The original endoscopic image contains text information and a black background. The text is painted black and the non-black foreground image is cropped using the minimum rectangle algorithm.
4. The method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging according to claim 1, characterized in that: Extract the primary feature vectors of MRI images and endoscopic images, specifically: Taking the cropped MRI image or endoscopic image as input, using the trained deep residual network model, output the primary feature vector of the MRI image or endoscopic image; The deep residual network model removes the last fully connected layer, and uses the output of the average pooling layer after the last stage of the deep residual network model as the primary feature vector of the MRI image or the endoscopic image.
5. A method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging according to claim 1 or 4, characterized in that: The primary feature vector of the MRI image is represented by a one-dimensional primary feature vector with a length of 512; the primary feature vector of the endoscopic image is represented by 8 one-dimensional vectors with a length of 512.
6. The method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging according to claim 1, characterized in that: The processing process of the MRI-endoscopy multimodal fusion model is specifically as follows: Concatenate the primary feature vectors of the two inputs to get the input feature matrix x mul ∈R 16×9×512 ; Initialize a categorical feature with a zero matrix for stacking into the serialized image features class token ∈R 16×1×512 ; Class token With x mul Concatenate in the second dimension to get x cat ∈R 16×10×512 ; Initialize x with zero matrices respectively mul and class token Position embedding: x pe ∈R 1×9×512 ; ct pe ∈R 1×1×512 ; ct pe With x pe Splice in the second dimension to get pos embed ∈R 1×10×512 ; x cat With pos embed After addition, the input features are obtained, and the input features are input into a sequence composed of multiple Transformer encoders for multiple processing and feature extraction of the input features, so as to realize deep encoding and abstract representation of image features. The obtained feature representation is normalized, and the normalized feature representation is input into the multi-layer perceptron classification head to obtain the final neoadjuvant chemoradiotherapy efficacy prediction results.
7. The method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical imaging according to claim 6, characterized in that: Also includes: Randomly discard some elements of the input features to prevent overfitting.
8. A new adjuvant chemoradiotherapy efficacy prediction system based on multimodal medical imaging, characterized in that: include: An image acquisition module, used to respectively acquire colorectal MRI images and endoscopic images of patients before receiving neoadjuvant chemoradiotherapy; The image processing module is used to crop the MRI image and the endoscopic image respectively, and extract the primary feature vectors of the MRI image and the endoscopic image respectively through the trained deep residual network model; The result prediction module is used to input the extracted primary feature vector into the trained MRI-endoscopy multimodal fusion model to obtain the prediction result of the patient's pathological response to neoadjuvant chemoradiotherapy; Among them, the MRI-endoscopy multimodal fusion model is divided into two paths, one of which is input as the primary feature vector of the MRI image, and the other is input as the primary feature vector of the endoscopic image. The primary feature vectors of the two input paths are spliced, and the spliced feature vectors are positionally embedded. Then, a sequence composed of multiple Transformer encoders is input, and the normalized feature representation is output to enter the multi-layer perceptron classification head to obtain the final prediction result.
9. A terminal device, comprising a processor and a memory, wherein the processor is used to implement instructions; and the memory is used to store multiple instructions, characterized in that: The instructions are suitable for being loaded by a processor and executing the method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical images as described in any one of claims 1-7.
10. A computer-readable storage medium storing a plurality of instructions, characterized in that: The instructions are suitable for being loaded by a processor of a terminal device and executing the method for predicting the efficacy of neoadjuvant chemoradiotherapy based on multimodal medical images as described in any one of claims 1 to 7.
