Digital image analysis method and device for evaluating prognosis of labial gland biopsy pathological tissue of sicca syndrome patient
Through data preprocessing and multi-instance attention learning, combined with the EfficientNet-B5 model, the problem of tedious and subjective feature extraction in pathological tissue analysis of labial gland biopsies in patients with Sjögren's syndrome is solved, achieving high accuracy and efficient complications. Risk assessment to provide patients with more effective prevention and treatment measures.
Patent Information
- Application Number
- CN202410913883.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-09
AI Technical Summary
The existing technology has problems in the analysis of labial gland biopsy pathological tissue in patients with Sjogren's syndrome, such as tedious manual feature extraction, strong subjectivity, low efficiency and difficulty in interpretation, and processing based on local images cannot fully mine the overall features.
It adopts data preprocessing, patch-based transfer learning and WSI-based multi-instance attention learning, extracts features through the EfficientNet-B5 model, conducts end-to-end training combined with the attention mechanism, generates complication risk predictions, and provides WSI panorama and Interpretability analysis.
It improves diagnostic accuracy, reduces the risk of misdiagnosis and missed diagnosis, helps doctors assess the risk of complications, provides patients with more effective preventive and therapeutic measures, improves patients' quality of life, and has significant technological progress and clinical value.
Smart Images

Figure CN118762823A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image analysis, and in particular to a digital image analysis method and device for labial gland biopsy pathological tissue for evaluating the prognosis of Sjögren's syndrome patients. Background Art
[0002] Sjögren's syndrome (SS) is an autoimmune disease that can lead to a variety of complications, including lung disease, kidney disease, and lymphoma. Lip gland biopsy is an important means of diagnosing SS, but pathological image analysis has problems such as strong subjectivity and low efficiency. In recent years, artificial intelligence technology has been increasingly used in the medical field, and has gradually been applied to the analysis of pathological tissue of lip gland biopsies in SS patients. At present, researchers have used artificial intelligence technology to establish an AI model of lip gland biopsy pathological tissue in SS patients, and have achieved certain results.
[0003] In the existing technical solutions, the main method used is a model based on manual features. This method first extracts manual features from the pathological tissue image of the lip gland biopsy, such as lymphocyte infiltration, alveolar destruction, fibrosis, etc., and then uses a machine learning algorithm to train the AI model. The disadvantages of this method are: (1) The manual feature extraction process is cumbersome and highly subjective, which affects the accuracy of the model; (2) The manual feature extraction process is cumbersome, resulting in low efficiency in model training and application; (3) The AI model based on manual features is difficult to explain, which makes it difficult to promote and apply the model in clinical practice. There is also a processing method based on a part of the image of the pathological tissue in the technical solution, but this method has the problem of "the local cannot replace the whole", and lacks sufficient mining and extraction of the features of the entire tissue. Summary of the invention
[0004] In order to overcome the deficiencies of the prior art, one of the objectives of the present invention is to provide a digital image analysis method of labial gland biopsy pathological tissue for evaluating the prognosis of patients with Sjögren's syndrome, thereby solving the above-mentioned traditional technical problems.
[0005] A second object of the present invention is to provide a digital image analysis device for labial gland biopsy pathological tissue for evaluating the prognosis of Sjögren's syndrome patients.
[0006] One of the purposes of the present invention is achieved by the following technical solution:
[0007] A digital image analysis method of labial gland biopsy pathological tissue for evaluating the prognosis of patients with Sjögren's syndrome, comprising:
[0008] S1: Data preprocessing
[0009] Collect lip gland biopsy samples, and pre-process them by tissue fixation and embedding, HE staining, whole-slice digital scanning, and OpenSlide library sampling processing to form a dataset of patches for reconstructing WSI. The dataset is divided into a training set and a test set. The training set is used to train the deep learning model, and the test set is used to evaluate the model performance.
[0010] S2: Patch-based transfer learning
[0011] The EfficientNet-B5 architecture is selected as the basic model, and the parameters of the EfficientNet-B5 model fully trained on the Imagenet dataset are directly migrated to the pre-trained model for fast parameter initialization. The last fully connected classification layer is removed, and the convolution layer and pooling layer are retained for feature extraction. For each patch, forward propagation is performed through the cropped model to extract the corresponding feature vector. The binary classification labels of complications are copied to each patch in WSI as the target label for supervised learning. End-to-end classifier training is performed on the training set for 100 training cycles and the parameters with the best performance are saved to obtain the EfficientNet-B5 model pre-trained on the patch.
[0012] S3: Multi-instance attention learning based on WSI
[0013] Each WSI is regarded as a "bag" containing n slice instances, and the label of the whole WSI with or without complications is the bag label; the EfficientNet-B5 model pre-trained on the patch is used to extract features from each patch instance one by one, and then the features are flattened into one-dimensional vectors and concatenated to form a matrix composed of n rows of instance features to represent each "bag" as the input of the VIT multi-instance model; the attention mechanism is used to allow the model to automatically learn to identify the key instances that contribute the most to the final classification, and a multi-head attention mechanism is built based on VIT to capture the long-range dependencies between instances. The feature vector weighted by attention is input into the final binary classification fully connected layer for complication prediction, so that the model can simultaneously obtain patch-based features and WSI-level features between patch instances, and obtain the prediction results of the multi-instance model;
[0014] S4: Model predicts the probability of complications
[0015] The prediction results of the multi-instance model are used as the risk prediction value CRS for the patient's eventual complications. The value range of CRS is from 0 to 1. The closer the value is to 0, the smaller the possibility of complications is considered by the model. Conversely, if the value is closer to 1, the higher the risk of complications is.
[0016] Furthermore, in step S1, the specific steps of preprocessing include the following steps:
[0017] (1) Use sterile principles to collect labial gland biopsy samples;
[0018] (2) Tissue fixation and embedding: The collected tissue sample of the labial gland biopsy is fixed to maintain its structure, and then embedded to obtain a tissue sample after tissue fixation and embedding;
[0019] (3) HE staining: HE staining is performed on tissue samples after tissue fixation and embedding to prepare tissue sections;
[0020] (4) Whole-slice digital scanning: Use a high-quality whole-slice digital scanner to scan the stained tissue slices to obtain WSI;
[0021] (5) Using the OpenSlide library for sampling processing: Using the OpenSlide library, at the maximum scanning resolution, the WSI is sampled without overlap according to the sliding window size of the same specification to generate a series of patch small images. At the same time, the original position coordinates of each patch on the WSI are saved, and unqualified patches are deleted to form a patch data set.
[0022] Furthermore, in step (4) of full-slice digital scanning, the image resolution of a high-quality full-slice digital scanner is x40 times the objective lens.
[0023] Furthermore, in step (5) of performing sampling processing using the OpenSlide library, the sliding window is a sliding window of 512*512 pixels.
[0024] Furthermore, in step (5) of performing sampling processing using the OpenSlide library, deleting unqualified patches includes the following: deleting patches in background areas that do not contain any tissue cells, and / or patches that are blurred and unclear due to out-of-focus or stains.
[0025] Furthermore, in step S1, the ratio of the training set to the test set is 4:1.
[0026] Furthermore, in step S2, the optimizer is selected as Adam during training, and the loss function is set to binarycrossentropy.
[0027] Furthermore, in step S3, when training on the training set, the optimizer selects Adam, the learning rate is set to 0.01, the loss function is set to binary crossentropy, the training cycle is 3000 times and the model with the best performance is saved.
[0028] Furthermore, the digital image analysis method further comprises:
[0029] S5: WSI Panorama and Interpretability
[0030] An attention weight score is calculated for each slice instance, and the key slice area that has the greatest impact on the prediction result is analyzed. The weight score is normalized to the (0,1) interval and visualized with different color bars to form a WSI panorama and interpretability analysis diagram.
[0031] Further,
[0032] The second object of the present invention is achieved by adopting the following technical solution:
[0033] A digital image analysis device for labial gland biopsy pathological tissue for evaluating the prognosis of patients with Sjögren's syndrome, comprising:
[0034] The data preprocessing module is used to collect labial gland biopsy samples, and preprocess the labial gland biopsy samples through tissue fixation and embedding, HE staining, whole-slice digital scanning, and OpenSlide library sampling processing to form a dataset of patches for reconstructing WSI. The dataset is divided into a training set and a test set. The training set is used to train the deep learning model, and the test set is used to evaluate the model performance.
[0035] The patch-based transfer learning module is used to select the EfficientNet-B5 architecture as the base model, and directly migrate the parameters of the EfficientNet-B5 model fully trained on the Imagenet dataset to the pre-trained model for fast parameter initialization, and remove the last fully connected classification layer, retaining the convolution layer and pooling layer for feature extraction. For each patch, forward propagation is performed through the cropped model to extract the corresponding feature vector, and the binary classification labels of complications are used to copy them to each patch in WSI as the target label for supervised learning. On the training set, end-to-end classifier training is performed for 100 training cycles and the parameters with the best performance are saved to obtain the EfficientNet-B5 model pre-trained on the patch.
[0036] The multi-instance attention learning module based on WSI is used to treat each WSI as a "bag" containing n slice instances, and the label of the whole WSI with or without complications is the bag label; the EfficientNet-B5 model pre-trained on the patch is used to extract features from each patch instance one by one, and then the features are flattened into one-dimensional vectors and concatenated to form a matrix composed of n rows of instance features to represent each "bag" as the input of the VIT multi-instance model; the attention mechanism is used to allow the model to automatically learn to identify the key instances that contribute the most to the final classification, and a multi-head attention mechanism is constructed based on VIT to capture the long-range dependencies between instances. The attention-weighted feature vector is input into the final binary classification fully connected layer for complication prediction, so that the model can simultaneously obtain patch-based features and WSI-level features between patch instances, and obtain the prediction results of the multi-instance model;
[0037] The model predicts the probability of complications, which is used to use the prediction results of the multi-instance model as the risk prediction value CRS of the patient's final complications. The value range of CRS is from 0 to 1. The closer the value is to 0, the smaller the possibility of complications is considered by the model. On the contrary, if the value is closer to 1, the risk of complications is higher.
[0038] The WSI panorama and interpretability module is used to calculate an attention weight score for each slice instance, analyze the key slice area that has the greatest impact on the prediction result, normalize the weight score to the (0,1) interval, and visualize it with different color bars to form the WSI panorama and interpretability analysis diagram.
[0039] Compared with the prior art, the present invention has the following beneficial effects:
[0040] The digital image analysis method of the present invention improves the diagnostic accuracy of patients with Sjögren's syndrome and reduces the risks of misdiagnosis and missed diagnosis through steps such as data preprocessing, patch-based transfer learning, WSI-based multi-instance attention learning, and model prediction of the probability of complication occurrence. It helps doctors better assess the risk of complications in patients with Sjögren's syndrome, provides patients with more effective prevention and treatment measures, improves the prognosis of patients with Sjögren's syndrome, and improves the quality of life of patients. It also has significant technological advancement and clinical value, and can provide new ideas and methods for the diagnosis and treatment of patients with Sjögren's syndrome. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a schematic flow chart of a digital image analysis method of labial gland biopsy pathological tissue for evaluating the prognosis of Sjögren's syndrome patients according to the present invention;
[0042] Figure 2A digital image analysis flow chart of the present invention for inputting a WSI data in an example model;
[0043] Figure 3 The present invention is a structural block diagram of a digital image analysis device for labial gland biopsy pathological tissue for evaluating the prognosis of Sjögren's syndrome patients. DETAILED DESCRIPTION
[0044] The present invention is further described below in conjunction with specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.
[0045] Example 1
[0046] like Figure 1 and Figure 2 As shown, a digital image analysis method of the present invention is used to evaluate the prognosis of lip gland biopsy pathological tissue of patients with Sjögren's syndrome. The AI model based on the fusion of multiple algorithms is used to analyze the digital images of lip gland biopsy pathological tissue of patients with Sjögren's syndrome, and can be installed in electronic devices such as computers, mobile phones, tablets, etc.
[0047] Specifically, the digital image analysis method includes:
[0048] S1: Data preprocessing
[0049] Labial gland biopsy samples were collected and preprocessed by tissue fixation and embedding, HE staining, whole-slice digital scanning, and OpenSlide library sampling processing to form a Patch dataset for reconstructing WSI. The dataset was divided into a training set and a test set. The training set was used to train the deep learning model, and the test set was used to evaluate the model performance.
[0050] In this step, the ratio of the training set to the test set is 4:1, for example, 80% of the samples are randomly selected from the dataset as the training dataset for training the model, and the remaining 20% of the samples are used as the internal test dataset.
[0051] The specific steps of preprocessing include the following steps:
[0052] (1) Use sterile principles to collect labial gland biopsy samples
[0053] When collecting labial gland tissue samples, aseptic operation principles must be followed to prevent sample contamination.
[0054] (2) Tissue fixation and embedding
[0055] The collected tissue sample of the labial gland biopsy is fixed to maintain its structure, and then embedded to obtain a tissue sample after tissue fixation and embedding.
[0056] This step is a prelude to the subsequent preparation of tissue sections, which facilitates subsequent analysis and utilization.
[0057] (3) HE staining
[0058] The tissue samples after tissue fixation and embedding were stained with HE and tissue sections were prepared.
[0059] HE staining is a commonly used staining method, including hematoxylin and eosin, which is used to distinguish different structures of cells.
[0060] (4) Full slide digital scanning
[0061] The stained tissue sections were scanned using a high-quality whole-slice digital scanner to obtain digital whole-slice pathology images (WSIs).
[0062] The image resolution of the high-quality whole-slide digital scanner was set to a ×40 objective lens, so that the resolution of the scanned WSI was equivalent to the observation effect under a 40x objective lens.
[0063] (5) Use OpenSlide library for sampling processing
[0064] Using the OpenSlide library, at the maximum scanning resolution, the WSI is sampled without overlap according to the sliding window size of the same specification (such as a sliding window size of 512*512 pixels) to generate a series of patch small images. At the same time, the original position coordinates of each patch on the WSI are saved, and unqualified patches are deleted to form a patch dataset.
[0065] In this step, OpenSlide is an open source library used to read and process WSI images, sample according to the same sliding window size, generate patches, and do not overlap the sliding windows during sampling to ensure that every part of the WSI is covered. The position of each patch on the WSI is recorded for reconstructing the WSI, which helps with subsequent image reconstruction or analysis.
[0066] Deleting unqualified patches includes the following: deleting patches in background areas that do not contain any tissue cells, and / or patches that are blurred and unclear due to out-of-focus, stains, etc.
[0067] S2: Patch-based transfer learning
[0068] The EfficientNet-B5 architecture is selected as the basic model, and the parameters of the EfficientNet-B5 model fully trained on the Imagenet dataset are directly migrated to the pre-trained model for fast parameter initialization. The last fully connected classification layer is removed, and the convolutional layer and pooling layer are retained for feature extraction. For each patch, forward propagation is performed through the cropped model to extract the corresponding feature vector, and the binary classification labels with or without complications are copied to each patch in WSI as the target label for supervised learning. On the training set, end-to-end classifier training is performed for 100 training cycles and the parameters with the best performance are saved to obtain the EfficientNet-B5 model pre-trained on the patch.
[0069] In this step, EfficientNet is a set of deep convolutional neural networks that optimize efficiency and accuracy by systematically scaling the depth, width, and resolution of the network. B5 is a variant in the EfficientNet series, with parameters and computational complexity suitable for medium-sized tasks. Imagenet is a large-scale image database containing more than 14 million images and 20,000 categories, which is often used to train and evaluate visual recognition models. Models trained on Imagenet have learned rich feature representations, which can be transferred to other visual recognition tasks. Transfer learning can accelerate the training process of the model and reduce the need for the model to learn all features from scratch. Models trained on large-scale datasets can be used to quickly adapt to new tasks that may have smaller data volumes, thereby improving the performance and efficiency of the model. Among them, the EfficientNet-B5 architecture is selected as the basic model for the study, and the corresponding parameters that have been fully trained on the Imagenet dataset are directly transferred to the model for fast parameter initialization. This is a common practice in the field of deep learning, called transfer learning. The parameters transferred include the weights of network layers such as convolutional layers, pooling layers, and fully connected classification layers. The last fully connected classification layer of the pre-trained model is removed, and only the previous convolutional layer and pooling layer are retained for feature extraction, which provides a better starting point for the initialization stage of the new task. For each patch, forward propagation is performed through the "pruned" model to extract the corresponding feature vector representation. Since the label of the entire WSI is a binary classification label of complications or not, this label is directly copied to each patch contained in the WSI as the target label for supervised learning. End-to-end classifier training is performed on the training set. During training, the optimizer selects Adam, the loss function is set to binary crossentropy, the training cycle is 100 times, and the parameters with the best performance are saved.
[0070] S3: Multi-instance attention learning based on WSI
[0071] Each WSI is regarded as a "bag" containing n slice instances, and the label of the whole WSI with or without complications is the bag label; the EfficientNet-B5 model pre-trained on the patch is used to extract features from each patch instance one by one, and then the features are flattened into one-dimensional vectors and concatenated to form a matrix composed of n rows of instance features to represent each bag, which serves as the input of the VIT (Vision Transformer) multi-instance model; the attention mechanism is used to allow the model to automatically learn to identify the key instances that contribute the most to the final classification, and a multi-head attention mechanism is constructed based on VIT to capture the long-range dependencies between instances. The attention-weighted feature vector is input into the final binary classification fully connected layer for complication prediction, so that the model can simultaneously obtain patch-based features and WSI-level features between patch instances, and obtain the prediction results of the multi-instance model.
[0072] In this step, deep learning, transfer learning, multi-instance learning, and attention mechanism are combined to improve the accuracy of pathological image analysis while providing an intuitive explanation of the model prediction results. This is of great significance for clinical diagnosis and risk assessment. When training on the training set, the optimizer is Adam, the learning rate is set to 0.01, the loss function is set to binary crossentropy, the training cycle is 3000 times, and the best performance model is saved.
[0073] S4: Model predicts the probability of complications
[0074] The prediction results of the multi-instance model are used as the risk prediction value CRS for the patient's eventual complications. The value range of CRS is from 0 to 1. The closer the value is to 0, the smaller the possibility of complications is considered by the model. Conversely, if the value is closer to 1, the higher the risk of complications is.
[0075] S5: WSI Panorama and Interpretability
[0076] An attention weight score is calculated for each slice instance, and the key slice area with the greatest impact on the prediction result is analyzed. The weight score is normalized to the (0,1) interval and visualized with different color bars to form a WSI panoramic view and interpretability analysis diagram to help doctors better understand the prediction results of the model and improve the interpretability and reliability of the model.
[0077] In this step, after modeling using multi-instance learning, not only can the classification prediction results of the entire WSI (presence or absence of complications) be obtained, but also the contribution of each slice instance (patch) to the final prediction result can be obtained, thereby identifying the pathological slice area that is most critical to the classification task.
[0078] When the model is inferring, a WSI data is input, and the model calculates an attention weight score for each slice instance in it, so as to analyze the key slice area that has the greatest impact on the prediction result.
[0079] The weight scores are normalized to the (0,1) interval and visualized using different color bars. These areas are likely to contain important pathological features, providing intuitive and valuable explanations for clinical diagnosis and complication risk assessment.
[0080] In other embodiments, the present invention adopts sliding window sampling and multiple instance learning, but other data processing methods may also be used, such as data enhancement, feature dimension reduction, etc. The present invention adopts WSI panorama and interpretability analysis, but other explanatory methods may also be used, such as LIME, SHAP, etc. The above alternatives can achieve the purpose of the present invention to a certain extent, but each has its own advantages and disadvantages. The use of other feature extraction methods may reduce the accuracy of the model. The use of other data processing methods may reduce the interpretability of the model.
[0081] Compared with the existing technical solutions, the technical solution of the present invention has the following advantages:
[0082] 1. High accuracy
[0083] The model of the present invention integrates multiple algorithms for feature extraction, can integrate information from different scales, and can more comprehensively characterize the characteristics of labial gland biopsy pathological tissue, thereby improving the accuracy of the model.
[0084] 2. High efficiency
[0085] The present invention adopts sliding window sampling and multi-instance learning to implement automatic feature extraction technology without human intervention, which can effectively reduce the amount of data and computational complexity and improve the training and application efficiency of the model.
[0086] 3. Small data requirements
[0087] The present invention adopts transfer learning, multi-instance learning and multi-modal fusion technology, which can effectively utilize limited training data and reduce the training cost of the model.
[0088] 4. Complete features
[0089] The model of the present invention performs complete analysis and modeling on the digital image (WSI) of the entire pathological tissue, thus avoiding the limitation of traditional methods that only analyze local images.
[0090] 5. Good explanation
[0091] The present invention can provide a WSI panorama and interpretability analysis to help doctors better understand the prediction results of the model and improve the interpretability and reliability of the model.
[0092] 6. High clinical value
[0093] The present invention can be applied to the diagnosis and prognosis evaluation of patients with Sjögren's syndrome, helping doctors make more accurate diagnosis and treatment decisions, and has important clinical value.
[0094] Example 2
[0095] like Figure 3 As shown, the present invention also provides a digital image analysis device for labial gland biopsy pathological tissue for evaluating the prognosis of Sjögren's syndrome patients, comprising:
[0096] The data preprocessing module is used to collect labial gland biopsy samples, and preprocess the labial gland biopsy samples through tissue fixation and embedding, HE staining, whole-slice digital scanning, and OpenSlide library sampling processing to form a dataset of patches for reconstructing WSI. The dataset is divided into a training set and a test set. The training set is used to train the deep learning model, and the test set is used to evaluate the model performance.
[0097] The patch-based transfer learning module is used to select the EfficientNet-B5 architecture as the base model, and directly migrate the parameters of the EfficientNet-B5 model fully trained on the Imagenet dataset to the pre-trained model for fast parameter initialization, and remove the last fully connected classification layer, retaining the convolution layer and pooling layer for feature extraction. For each patch, forward propagation is performed through the cropped model to extract the corresponding feature vector, and the binary classification labels of complications are used to copy them to each patch in WSI as the target label for supervised learning. On the training set, end-to-end classifier training is performed for 100 training cycles and the parameters with the best performance are saved to obtain the EfficientNet-B5 model pre-trained on the patch.
[0098] The multi-instance attention learning module based on WSI is used to treat each WSI as a "bag" containing n slice instances, and the label of the whole WSI with or without complications is the bag label; the EfficientNet-B5 model pre-trained on the patch is used to extract features from each patch instance one by one, and then the features are flattened into one-dimensional vectors and concatenated to form a matrix composed of n rows of instance features to represent each "bag" as the input of the VIT multi-instance model; the attention mechanism is used to allow the model to automatically learn to identify the key instances that contribute the most to the final classification, and a multi-head attention mechanism is constructed based on VIT to capture the long-range dependencies between instances. The attention-weighted feature vector is input into the final binary classification fully connected layer for complication prediction, so that the model can simultaneously obtain patch-based features and WSI-level features between patch instances, and obtain the prediction results of the multi-instance model;
[0099] The model predicts the probability of complications, which is used to use the prediction results of the multi-instance model as the risk prediction value CRS of the patient's final complications. The value range of CRS is from 0 to 1. The closer the value is to 0, the smaller the possibility of complications is considered by the model. On the contrary, if the value is closer to 1, the risk of complications is higher.
[0100] The WSI panorama and interpretability module is used to calculate an attention weight score for each slice instance, analyze the key slice area that has the greatest impact on the prediction result, normalize the weight score to the (0,1) interval, and visualize it with different color bars to form the WSI panorama and interpretability analysis diagram.
[0101] For a detailed description of the functions of the digital image analysis device for labial gland biopsy pathological tissue for evaluating the prognosis of Sjögren's syndrome patients provided in an embodiment of the present invention, please refer to the description of the digital image analysis method for labial gland biopsy pathological tissue for evaluating the prognosis of Sjögren's syndrome patients in the above embodiment.
[0102] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0103] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0104] The above-mentioned embodiments are only preferred embodiments of the present invention and cannot be used to limit the scope of protection of the present invention. Any non-substantial changes and substitutions made by technicians in this field on the basis of the present invention shall fall within the scope of protection required by the present invention.
Claims
1. A digital image analysis method for labial gland biopsy pathological tissue for evaluating the prognosis of patients with Sjögren's syndrome. It is characterized in that include: S1: Data preprocessing Collect lip gland biopsy samples, and pre-process them by tissue fixation and embedding, HE staining, whole-slice digital scanning, and OpenSlide library sampling processing to form a dataset of patches for reconstructing WSI. The dataset is divided into a training set and a test set. The training set is used to train the deep learning model, and the test set is used to evaluate the model performance. S2: Patch-based transfer learning The EfficientNet-B5 architecture is selected as the basic model, and the parameters of the EfficientNet-B5 model fully trained on the Imagenet dataset are directly migrated to the pre-trained model for fast parameter initialization. The last fully connected classification layer is removed, and the convolution layer and pooling layer are retained for feature extraction. For each patch, forward propagation is performed through the cropped model to extract the corresponding feature vector. The binary classification labels of complications are copied to each patch in WSI as the target label for supervised learning. End-to-end classifier training is performed on the training set for 100 training cycles and the parameters with the best performance are saved to obtain the EfficientNet-B5 model pre-trained on the patch. S3: Multi-instance attention learning based on WSI Each WSI is regarded as a "bag" containing n slice instances, and the label of the whole WSI with or without complications is the bag label; the EfficientNet-B5 model pre-trained on the patch is used to extract features from each patch instance one by one, and then the features are flattened into one-dimensional vectors and concatenated to form a matrix composed of n rows of instance features to represent each "bag" as the input of the VIT multi-instance model; the attention mechanism is used to allow the model to automatically learn to identify the key instances that contribute the most to the final classification, and a multi-head attention mechanism is built based on VIT to capture the long-range dependencies between instances. The feature vector weighted by attention is input into the final binary classification fully connected layer for complication prediction, so that the model can simultaneously obtain patch-based features and WSI-level features between patch instances, and obtain the prediction results of the multi-instance model; S4: Model predicts the probability of complications The prediction results of the multi-instance model are used as the risk prediction value CRS for the patient's eventual complications. The value range of CRS is from 0 to 1. The closer the value is to 0, the smaller the possibility of complications is considered by the model. Conversely, if the value is closer to 1, the higher the risk of complications is.
2. The digital image analysis method of labial gland biopsy pathological tissue for evaluating the prognosis of patients with Sjögren's syndrome according to claim 1, It is characterized in that In step S1, the specific steps of preprocessing include the following steps: (1) Use sterile principles to collect labial gland biopsy samples; (2) Tissue fixation and embedding: The collected tissue sample of the labial gland biopsy is fixed to maintain its structure, and then embedded to obtain a tissue sample after tissue fixation and embedding; (3) HE staining: HE staining is performed on tissue samples after tissue fixation and embedding to prepare tissue sections; (4) Whole-slice digital scanning: Use a high-quality whole-slice digital scanner to scan the stained tissue slices to obtain WSI; (5) Using the OpenSlide library for sampling processing: Using the OpenSlide library, at the maximum scanning resolution, the WSI is sampled without overlap according to the sliding window size of the same specification to generate a series of patch small images. At the same time, the original position coordinates of each patch on the WSI are saved, and unqualified patches are deleted to form a patch data set.
3. The digital image analysis method of labial gland biopsy pathological tissue for evaluating the prognosis of patients with Sjögren's syndrome according to claim 2, It is characterized in that In step (4) of full-slice digital scanning, the image resolution of a high-quality full-slice digital scanner is x40 objective lens.
4. The digital image analysis method of labial gland biopsy pathological tissue for evaluating the prognosis of patients with Sjögren's syndrome according to claim 2, It is characterized in that In step (5) of sampling using the OpenSlide library, the sliding window is a sliding window of 512*512 pixels.
5. The digital image analysis method of labial gland biopsy pathological tissue for evaluating the prognosis of patients with Sjögren's syndrome according to claim 1, It is characterized in that In step (5) of using the OpenSlide library for sampling processing, deleting unqualified patches includes the following: deleting patches in the background area that do not contain any tissue cells, and / or patches that are blurred and unclear due to out-of-focus or stains.
6. The digital image analysis method of labial gland biopsy pathological tissue for evaluating the prognosis of patients with Sjögren's syndrome according to claim 1, It is characterized in that In step S1, the ratio of the training set to the test set is 4:
1.
7. The digital image analysis method of labial gland biopsy pathological tissue for evaluating the prognosis of Sjögren's syndrome patients according to claim 1, It is characterized in that In step S2, the optimizer is Adam during training, and the loss function is set to binarycrossentropy.
8. The digital image analysis method of labial gland biopsy pathological tissue for evaluating the prognosis of patients with Sjögren's syndrome according to claim 1, It is characterized in that In step S3, when training on the training set, the optimizer selects Adam, the learning rate is set to 0.01, the loss function is set to binary crossentropy, the training cycle is 3000 times and the model with the best performance is saved.
9. The digital image analysis method of labial gland biopsy pathological tissue for evaluating the prognosis of Sjögren's syndrome patients according to claim 1, It is characterized in that The digital image analysis method also includes: S5: WSI Panorama and Interpretability An attention weight score is calculated for each slice instance, and the key slice area that has the greatest impact on the prediction result is analyzed. The weight score is normalized to the (0,1) interval and visualized with different color bars to form a WSI panorama and interpretability analysis diagram.
10. A digital image analysis device for labial gland biopsy pathological tissue for evaluating the prognosis of patients with Sjögren's syndrome, It is characterized in that include: The data preprocessing module is used to collect labial gland biopsy samples, and preprocess the labial gland biopsy samples through tissue fixation and embedding, HE staining, whole-slice digital scanning, and OpenSlide library sampling processing to form a dataset of patches for reconstructing WSI. The dataset is divided into a training set and a test set. The training set is used to train the deep learning model, and the test set is used to evaluate the model performance. The patch-based transfer learning module is used to select the EfficientNet-B5 architecture as the base model, and directly migrate the parameters of the EfficientNet-B5 model fully trained on the Imagenet dataset to the pre-trained model for fast parameter initialization, and remove the last fully connected classification layer, retaining the convolution layer and pooling layer for feature extraction. For each patch, forward propagation is performed through the cropped model to extract the corresponding feature vector, and the binary classification labels of complications are used to copy them to each patch in WSI as the target label for supervised learning. On the training set, end-to-end classifier training is performed for 100 training cycles and the parameters with the best performance are saved to obtain the EfficientNet-B5 model pre-trained on the patch. The multi-instance attention learning module based on WSI is used to treat each WSI as a "bag" containing n slice instances, and the label of the whole WSI with or without complications is the bag label; the EfficientNet-B5 model pre-trained on the patch is used to extract features from each patch instance one by one, and then the features are flattened into one-dimensional vectors and concatenated to form a matrix composed of n rows of instance features to represent each "bag" as the input of the VIT multi-instance model; the attention mechanism is used to allow the model to automatically learn to identify the key instances that contribute the most to the final classification, and a multi-head attention mechanism is constructed based on VIT to capture the long-range dependencies between instances. The attention-weighted feature vector is input into the final binary classification fully connected layer for complication prediction, so that the model can simultaneously obtain patch-based features and WSI-level features between patch instances, and obtain the prediction results of the multi-instance model; The model predicts the probability of complications, which is used to use the prediction results of the multi-instance model as the risk prediction value CRS of the patient's final complications. The value range of CRS is from 0 to 1. The closer the value is to 0, the smaller the possibility of complications is considered by the model. On the contrary, if the value is closer to 1, the risk of complications is higher. The WSI panorama and interpretability module is used to calculate an attention weight score for each slice instance, analyze the key slice area that has the greatest impact on the prediction result, normalize the weight score to the (0,1) interval, and visualize it with different color bars to form the WSI panorama and interpretability analysis diagram.
Citation Information
Patent Citations
Machine learning for predicting cancer genotype and treatment response using digital histopathology images
CA3232770A1
Diagnosis evaluation method after nursing treatment of endometrial cancer based on pathological deep learning
CN116705295A
Data based cancer research and treatment systems and methods
US20210090694A1
Method and system for automated generation of text captions from medical images
WO2022006621A1
