TLS segmentation processing method and system based on ResNet34-Unet network
Through the TLS segmentation processing method based on the ResNet34-Unet network, the problem of data robustness and low accuracy of the TLS segmentation model in breast cancer is solved, and a high-precision and robust TLS segmentation effect is achieved.
Patent Information
- Application Number
- CN202410665260.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology lacks an effective model for TLS segmentation in breast cancer, and the existing segmentation models have poor data robustness and low segmentation accuracy.
The TLS segmentation processing method based on the ResNet34-Unet network is used to obtain and preprocess triple-negative breast cancer tissue specimen image data, build a segmentation processing model, and combine residual connections to handle gradient defects to generate robust and high-precision image segmentation data.
It achieves high accuracy and data robustness for TLS segmentation in breast cancer, improves the overall accuracy and coverage of the segmentation model, and ensures robust performance on other data sets.
Smart Images

Figure CN118736209A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data segmentation processing, and specifically relates to a TLS segmentation processing method and system based on a ResNet34-Unet network. Background Art
[0002] Indicators of tertiary lymphoid structure (TLS) abundance, particularly measurements of area and number, showed significant correlation with disease-free survival.
[0003] Currently, there are relatively few models for TLS segmentation in tumors, including the HookNet model for TLS segmentation in lung cancer, the improved HookNet-TLS model for TLS segmentation in bladder cancer, renal clear cell carcinoma, and lung cancer, and the HoVer-Net-based weakly supervised TLS segmentation model for pancreatic cancer. Due to the heterogeneity of TLS across different cancer types, there is currently no effective model for TLS segmentation in breast cancer. Furthermore, existing segmentation models suffer from poor robustness of the segmented data and low image segmentation accuracy.
[0004] Therefore, in view of the above technical problems and defects such as the lack of an effective model for TLS segmentation in breast cancer, poor robustness of the segmented data processed by the existing segmentation model, and low image segmentation accuracy, it is urgent to design and develop a TLS segmentation processing method and system based on the ResNet34-Unet network. Summary of the Invention
[0005] In order to overcome the shortcomings and difficulties of the above-mentioned prior art, the purpose of the present invention is to provide a TLS segmentation processing method, system and platform based on the ResNet34-Unet network, which can make the segmented data more robust and the image segmentation accuracy higher.
[0006] The first object of the present invention is to provide a TLS segmentation processing method based on the ResNet34-Unet network; the second object of the present invention is to provide a TLS segmentation processing system based on the ResNet34-Unet network; the third object of the present invention is to provide a TLS segmentation processing platform based on the ResNet34-Unet network.
[0007] The first object of the present invention is achieved in that the method comprises the steps of:
[0008] Acquire image data corresponding to TLS and preprocess the image data; wherein the image data is triple-negative breast cancer tissue specimen image data;
[0009] Based on the image data and in combination with the ResNet34-Unet network architecture, a segmentation processing model corresponding to TLS is constructed in real time;
[0010] The image data is segmented and processed by the segmentation processing model, and corresponding and robust image segmentation data is generated.
[0011] Furthermore, the acquiring of image data corresponding to TLS and pre-processing of the image data in real time further includes:
[0012] Delineating and annotating the area to be studied corresponding to the image data, and generating corresponding annotation data in geojson format;
[0013] The electronic pathology sections corresponding to the annotated data are cut into pieces, and the image block data corresponding to the cut-piece image is normalized in image color.
[0014] Furthermore, the real-time construction of a segmentation processing model corresponding to TLS based on the image data and in combination with the ResNet34-Unet network architecture also includes:
[0015] Capturing local image data or global image data corresponding to the image data; and integrating and processing the data into corresponding low-resolution image data or high-resolution image data;
[0016] Obtain image block data after image color standardization and randomly divide it into at least three data sets in proportion; wherein the data sets include a training set, a validation set, and a test set;
[0017] The mask image data corresponding to the image block data is acquired in real time, and the mask image data is processed by ROI marking.
[0018] Furthermore, the step of obtaining the image block data after image color normalization and randomly dividing the data into at least three data sets in proportion further includes:
[0019] The image block data after image color normalization is obtained and randomly divided into corresponding training set, validation set and test set in a ratio of 8:1:1.
[0020] Furthermore, the real-time construction of a segmentation processing model corresponding to TLS based on the image data and in combination with the ResNet34-Unet network architecture also includes:
[0021] Combined with residual connections, gradient defects that occur in the segmentation processing model are processed in real time; wherein the gradient defects include gradient vanishing defects and gradient exploding defects.
[0022] Furthermore, the segmentation processing of the image data by the segmentation processing model and generating corresponding and robust image segmentation data further includes:
[0023] Based on the image segmentation data, the segmentation processing model is verified and estimated in real time, and corresponding segmentation model performance data is generated; wherein the segmentation model performance data includes: model overall accuracy data, segmentation result overlap data and segmentation result coverage data.
[0024] The second object of the present invention is achieved as follows: the system is applied to a TLS segmentation processing method based on a ResNet34-Unet network, and the system includes:
[0025] A data preprocessing unit, configured to acquire image data corresponding to the TLS and preprocess the image data; wherein the image data is triple-negative breast cancer tissue specimen image data;
[0026] A model building unit, configured to build a segmentation processing model corresponding to TLS in real time based on the image data and in combination with a ResNet34-Unet network architecture;
[0027] The data generating unit is used to segment and process the image data through the segmentation processing model, and generate corresponding and robust image segmentation data.
[0028] Furthermore, the data preprocessing unit further includes:
[0029] A delineation and annotation processing module is used to delineate and annotate the area to be studied corresponding to the image data, and generate corresponding annotation data in the geojson format;
[0030] A color standardization processing module is used to perform block processing on the electronic pathology slices corresponding to the annotated data, and to perform image color standardization on the corresponding image block data after the block processing;
[0031] The model building unit further includes:
[0032] a data integration processing module, configured to capture local image data or global image data corresponding to the image data, and integrate and process the data into corresponding low-resolution image data or high-resolution image data;
[0033] A first data set division module is used to obtain image block data after image color normalization processing and randomly divide it into at least three data sets in proportion; wherein the data sets include a training set, a validation set and a test set;
[0034] An image annotation processing module is used to obtain mask image data corresponding to the image block data in real time and perform ROI marking processing on the mask image data;
[0035] The data generating unit further includes:
[0036] A model data estimation module is used to verify and estimate the segmentation processing model in real time based on the image segmentation data, and generate corresponding segmentation model effectiveness data; wherein the segmentation model effectiveness data includes: model overall accuracy data, segmentation result overlap data and segmentation result coverage data.
[0037] Furthermore, the first data set division module further includes:
[0038] The second data set partitioning module is used to obtain the image block data after image color normalization processing and randomly divide it into corresponding training set, validation set and test set in a ratio of 8:1:1;
[0039] The model building unit further includes:
[0040] The gradient defect processing module is used to combine residual connections to process gradient defects that occur in the segmentation processing model in real time; wherein, the gradient defects include gradient vanishing defects and gradient exploding defects.
[0041] The third object of the present invention is achieved as follows: it includes a processor, a memory and a TLS segmentation processing platform control program based on the ResNet34-Unet network; wherein the TLS segmentation processing platform control program based on the ResNet34-Unet network is executed by the processor, the TLS segmentation processing platform control program based on the ResNet34-Unet network is stored in the memory, and the TLS segmentation processing platform control program based on the ResNet34-Unet network implements the TLS segmentation processing method based on the ResNet34-Unet network.
[0042] The solution of the present invention obtains image data corresponding to TLS and preprocesses the image data; wherein the image data is triple-negative breast cancer tissue specimen image data; based on the image data and in combination with the ResNet34-Unet network architecture, a segmentation processing model corresponding to TLS is constructed in real time; the image data is segmented and processed by the segmentation processing model, and corresponding and robust image segmentation data is generated; and a system and platform corresponding to the method can make the segmented data robust and the image segmentation accuracy high.
[0043] In other words, this solution is a TLS segmentation processing method based on the ResNet34-Unet network. The constructed segmentation model has high segmentation accuracy and good segmentation effect; and the segmentation performance is also robust on data sets from other sources. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 This is a flow chart of a TLS segmentation processing method based on the ResNet34-Unet network of the present invention;
[0046] Figure 2 This is a schematic diagram of the workflow of an embodiment of a TLS segmentation processing method based on a ResNet34-Unet network of the present invention;
[0047] Figure 3 This is a schematic diagram of a successful example of a TLS segmentation model in a test set of an embodiment of a TLS segmentation processing method based on a ResNet34-Unet network of the present invention;
[0048] A is a schematic diagram of a segmentation example in an image block at the junction of the TLS area and the background area; B is a schematic diagram of a segmentation example in an image block at the junction of the TLS area and the background area;
[0049] Figure 4 This is a schematic diagram of an example of TLS segmentation model failure in a test set of an embodiment of a TLS segmentation processing method based on a ResNet34-Unet network of the present invention;
[0050] Among them, A is a schematic diagram of prediction failure caused by insufficient mask delineation; B is a schematic diagram of prediction failure caused by model prediction error;
[0051] Figure 5 This is a schematic diagram of a successful example of a TLS segmentation model in an external validation set of an embodiment of a TLS segmentation processing method based on a ResNet34-Unet network of the present invention;
[0052] A is a schematic diagram of a segmentation example in an image block at the junction of the TLS area and the background area; B is a schematic diagram of a segmentation example in an image block that is almost entirely a TLS area or almost entirely a background area;
[0053] Figure 6This is a schematic diagram of the architecture of a TLS segmentation processing system based on the ResNet34-Unet network of the present invention;
[0054] Figure 7 This is a schematic diagram of the architecture of a TLS segmentation processing platform based on the ResNet34-Unet network of the present invention;
[0055] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0056] In order to better understand the purpose, technical solutions and advantages of the present invention, the present invention is further described below with reference to the accompanying drawings and specific embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification.
[0057] The present invention may also be implemented or applied through other different specific examples, and the details in this specification may also be modified and changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.
[0058] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the various components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indications will also change accordingly.
[0059] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of such features. Secondly, the technical solutions between the various embodiments can be combined with each other, but this must be based on the fact that ordinary technicians in this field can implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0060] Preferably, the present invention provides a TLS segmentation processing method based on a ResNet34-Unet network, which is applied to one or more terminals or servers. The terminal is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc.
[0061] The terminal can be a computing device such as a desktop computer, notebook, PDA, cloud server, etc. The terminal can interact with the client through a keyboard, mouse, remote control, touchpad, or voice control device.
[0062] The present invention provides a TLS segmentation processing method, system and platform based on the ResNet34-Unet network.
[0063] like Figure 1 , which is a flowchart of a TLS segmentation processing method based on a ResNet34-Unet network provided by an embodiment of the present invention.
[0064] In this embodiment, the TLS segmentation processing method based on the ResNet34-Unet network can be applied to a terminal with a display function or a fixed terminal. The terminal is not limited to a personal computer, a smart phone, a tablet computer, a desktop computer or an all-in-one computer equipped with a camera, etc.
[0065] The TLS splitting processing method based on the ResNet34-Unet network can also be applied to a hardware environment consisting of a terminal and a server connected to the terminal via a network. The network includes, but is not limited to, a wide area network, a metropolitan area network, or a local area network. The TLS splitting processing method based on the ResNet34-Unet network of the embodiments of the present invention can be executed by the server, by the terminal, or by both the server and the terminal.
[0066] For example, for a terminal that needs to perform TLS segmentation processing based on the ResNet34-Unet network, the TLS segmentation processing function based on the ResNet34-Unet network provided by the method of the present invention can be directly integrated on the terminal, or a client for implementing the method of the present invention can be installed. For another example, the method provided by the present invention can also be run on a server or other device in the form of a software development kit (SDK), and an interface for the TLS segmentation processing function based on the ResNet34-Unet network is provided in the form of an SDK. The terminal or other device can implement the TLS segmentation processing function based on the ResNet34-Unet network through the provided interface. The present invention is further elaborated below in conjunction with the accompanying drawings.
[0067] like Figure 1-Figure 5 As shown, the present invention provides a TLS segmentation processing method based on the ResNet34-Unet network, and the method comprises the following steps:
[0068] S01. Acquire image data corresponding to TLS and pre-process the image data; wherein the image data is triple-negative breast cancer tissue specimen image data;
[0069] S02. Based on the image data and in combination with the ResNet34-Unet network architecture, a segmentation processing model corresponding to TLS is constructed in real time;
[0070] S03. Segment and process the image data using the segmentation processing model, and generate corresponding and robust image segmentation data.
[0071] The acquiring of image data corresponding to TLS and pre-processing of the image data in real time further includes:
[0072] S011, outlining and labeling the area to be studied corresponding to the image data, and generating corresponding labeling data in geojson format;
[0073] S012: Slice the electronic pathology sections corresponding to the annotated data, and perform image color standardization on the corresponding sliced image block data.
[0074] The method of constructing a segmentation processing model corresponding to TLS in real time based on the image data and in combination with the ResNet34-Unet network architecture also includes:
[0075] S021. Capturing local image data or global image data corresponding to the image data; and integrating and processing the data into corresponding low-resolution image data or high-resolution image data;
[0076] S022. Obtain image block data after image color standardization processing, and randomly divide it into at least three data sets in proportion; wherein the data sets include a training set, a validation set, and a test set;
[0077] S023 . Acquire mask image data corresponding to the image block data in real time, and perform ROI marking processing on the mask image data.
[0078] The step of obtaining the image block data after the image color standardization process and randomly dividing the data into at least three data sets in proportion further includes:
[0079] S0221. Obtain image block data after image color standardization, and randomly divide it into corresponding training set, validation set and test set in a ratio of 8:1:1.
[0080] The method of constructing a segmentation processing model corresponding to TLS in real time based on the image data and in combination with the ResNet34-Unet network architecture also includes:
[0081] S024. Combine residual connections to process gradient defects that occur in the segmentation processing model in real time; wherein the gradient defects include gradient vanishing defects and gradient exploding defects.
[0082] The segmentation processing model is used to segment the image data and generate corresponding and robust image segmentation data, further comprising:
[0083] S031. Based on the image segmentation data, the segmentation processing model is verified and estimated in real time, and corresponding segmentation model performance data is generated; wherein the segmentation model performance data includes: overall model accuracy data, segmentation result overlap data, and segmentation result coverage data.
[0084] Specifically, in this embodiment of the present invention, a total of 177 TLS(+) digital pathology slides were included in the SYSU cohort. Twenty high-quality slides with high TLS abundance were selected from the paraffin-embedded digital pathology slide files of the TLS(+) group in the TCGA cohort as an external validation set for the model. The specific requirements for high-quality slides were: no wrinkles, no breaks, no strokes, no knife marks, and no impurities.
[0085] The training set consisted of breast cancer tissue specimens from the SYSU cohort. H&E-stained sections of patients who met the inclusion criteria were scanned using a digital scanner (model KF-PRO-040-HI). Whole Slide Imaging (WSI) was stored as KFB format files and converted to SVS format pathology image data using format conversion software. The validation set consisted of paraffin-embedded WSI files downloaded from the TCGA official website.
[0086] The experimental environment is based on the Ubuntu system and is completed under the Pytroch deep learning framework. The environment configuration is shown in Table 1:
[0087] Table 1 Environment configuration description
[0088] name Configuration parameters operating system Ubuntu 18.04 CPU Intel Xeon(R) E5-2678 GPU NVIDIA RTX3090 Python 3.8.8 Pytorch 1.12.1 OpenCV 4.5.1
[0089] For image preprocessing, regions of interest (ROIs) were delineated for tertiary lymphoid structures (TLS) in electronic pathology slides using the publicly available downloadable Qupath software (version 0.3.2). TLS in the SYSU cohort were verified by Ki67 immunohistochemical staining. All TLS regions were delineated and annotated using Qupath software, and the annotated data was saved in geojson format. Onekey AI software was used to assist in pathology image processing, deep learning modeling, and data analysis.
[0090] Image Slicing: The "OKT-crop WSI2Patch.exe" component in the Onekey AI Toolbox was used to slice all electronic pathology slides with geojson-formatted annotated data. Image patches of 512 x 512 pixels were cut at a 20x magnification. Because the model only learns from the ROI during training, areas outside the ROI are excluded from the learning process. Therefore, patches containing the ROI were selected for training. A total of 25,957 image patches were generated from the SYSU cohort, and 5,493 image patches were generated from the 20 WSIs selected from the TGCA cohort.
[0091] Image color normalization: Image color normalization is a critical process. Its core goal is to eliminate color variations between images due to various factors, such as differences in the staining process, storage fading, and microscope configuration. This ensures greater consistency and comparability of images during subsequent processing and analysis. Commonly used image normalization methods include the Reinhard method, the Macenko method, and the Vahadane method. These methods differ primarily in their processing methods and effectiveness. The Reinhard method is the most basic color normalization method and requires relatively minimal computing resources. The Macenko method is more effective for images with uneven color distribution and has moderate computer requirements. The Vahadane method, based on the principle of sparse feature decomposition, allows for fine-tuning of image color distribution but requires the most computing resources. Therefore, the Macenko method was selected for color normalization in this solution. Normalization is performed using the "OKT-Patchnormalize.exe" component in the Onekey AI toolbox.
[0092] Segmentation Model Based on the ResNet34-UNet Architecture: The U-Net architecture is a commonly used model in the field of deep convolutional neural networks, particularly in the context of medical image segmentation. The U-Net architecture consists of two key U-shaped components: the encoder and the decoder. After each encoder layer in the neural network architecture completes, it must retain key information related to the intricate details required for future recovery. This key information is then transmitted and relayed to the decoder module using skip connections. Through its encoder-decoder structure and skip connection design, the U-Net network successfully preserves complex image details, ensuring accurate and reliable image segmentation. Considering that TLS are aggregates of lymphocytes, the distribution of the segmentation targets in images—the lymphocytes—is relatively regular, and the semantics associated with these images are simple and easy to understand. Low-resolution information can serve as the basis for accurately identifying different classes within them. However, since TLS lack clear boundaries and the associated images have complex gradients, it is necessary to integrate high-resolution information for precise and accurate segmentation. The U-Net network effectively captures both local and global information within an image, integrating low-resolution and high-resolution information, making it well-suited for TLS segmentation.
[0093] However, there are problems such as insufficient training depth in Unet neural network, and as the depth of traditional convolutional neural network increases, problems such as gradient vanishing and gradient explosion may occur, which aggravates training errors and thus hinders the overall performance of the network. ResNet neural network solves the gradient vanishing and gradient explosion problems in the deep neural network training process by introducing residual connection, which can train deep networks more effectively. Therefore, the present invention scheme uses ResNet model ResNet34 with 34 layers of depth to replace the encoder structure of traditional Unet network, retains the original decoder structure of Unet, builds ResNet34-UNet network architecture, and is applied to the segmentation task of the three-level lymphatic structure of breast cancer pathology image, with the aim of further improving its segmentation accuracy and efficiency while retaining the original advantages of U-Net.
[0094] Model Training: Color-normalized image patches from the SYSU cohort were randomly divided into a training set, a validation set, and a test set in an 8:1:1 ratio. The training set consisted of 20,764 image patches, the validation set consisted of 2,597 image patches, and the test set consisted of 2,596 image patches. Normalized image patches from the TCGA cohort served as an external validation set, totaling 5,493 image patches. The model input data consisted of 512x512 pixel image patches and mask images converted from ROI markers. The training set was used to train the model, iteratively updating the neural network model parameters. The internal validation set was used to adjust the model's hyperparameters. The test set was used to evaluate the model's performance on unseen data and served as the final evaluation criterion. The external validation set, similar to the test set, was used to assess the model's generalization ability, but the data in the external validation set was sourced from a different source, providing a more comprehensive verification of the model's generalizability.
[0095] Segmentation model evaluation metrics: Accuracy (ACC), Dice Coefficient (DICE), and Intersection over Union (IoU) are used to evaluate the similarity between the segmentation result (Predict) and the true mark (Mask), thereby evaluating the effectiveness of the segmentation model.
[0096] In the study, true positive (TP) represents the number of pixels in the TLS area segmented by the model prediction that are actually the pixels in the TLS area segmented by the manual marking; true negative (TN) represents the total number of pixels in the background area segmented by the model prediction that are actually the pixels in the non-TLS background area segmented by the manual marking; false negative (FN) represents the number of pixels in the negative area where the model prediction incorrectly segments the pixels in the manually marked TLS area into the non-TLS background area; false positive (FP) represents the number of pixels in the positive area where the model prediction incorrectly segments the pixels in the non-TLS background area segmented into the TLS area (Table 2).
[0097] Table 2 Confusion matrix diagram
[0098] PredictTLS Predict non-TLS MaskTLS TP FN Masknon-TLS FP TN
[0099] All pixels in each image patch in the test set and external validation set can be classified into one of the TP, TN, FP, and FN categories, and the total number of TP, TN, FP, and FN pixels can be obtained. Based on the TP, TN, FP, and FN values of the test set and external validation set, the average ACC, DICE, and IoU of the test set and external validation set can be calculated.
[0100] ACC is defined as the ratio of correctly classified pixels to the total number of pixels, and is often used to measure the overall accuracy of the model. The calculation formula is as follows:
[0101]
[0102] DICE is an indicator used to compare the similarity between the predicted result set and the true label set, and is often used to evaluate the degree of overlap of segmentation results. The calculation formula is as follows:
[0103]
[0104] IoU refers to the ratio of the intersection of the predicted result and the true label to their union, and is often used to evaluate the coverage of the segmentation result. If the IoU value is closer to 1, it means that the image segmentation accuracy is higher. The calculation formula is as follows:
[0105]
[0106] Results and Analysis: The accuracy of the three-level lymphatic structure segmentation model based on ResNet34-UNet was evaluated. Using 2596 pathological image patches from the TCGA cohort as a test set, the segmentation network constructed based on ResNet34-UNet achieved an ACC of 0.841, a DICE coefficient of 0.856, and an IoU of 0.748 (Table 3). This demonstrates that the segmentation model has high segmentation accuracy and good segmentation results.
[0107] To further evaluate the model's generalization ability and verify its robustness, 5493 pathological image patches from the TCGA cohort were used as an external validation set. The model achieved an accuracy score of 0.812, a Distance-of-Intersection (DICE) coefficient of 0.837, and an Intersection over Union (IoU) score of 0.720 (Table 3). This demonstrates the robustness of the model's segmentation performance on datasets from other sources.
[0108] Table 3 Segmentation model accuracy evaluation indicators
[0109] ACC DICE IoU Test set (SYSU queue) N = 2596 0.841 0.856 0.748 External validation set (TCGA cohort) N = 5493 0.812 0.837 0.720
[0110] Analysis of correct and incorrect examples of three-level lymphatic structure segmentation: In the image patch at the junction of the TLS area and the background area, black is the background area, green (in the test set) or red (in the external validation set) is the area outlining the ROI, and white is the TLS area predicted by the segmentation model of this scheme.
[0111] The segmentation model of this scheme can accurately identify the boundaries of lymphocyte aggregates and fibers, muscles, stroma, fat, etc. The predicted boundaries and the marked mask boundaries are roughly consistent ( Figure 3 A. Figure 5 A). In image blocks that are almost entirely TLS or entirely background, i.e., image blocks that are entirely muscle fiber tissue, image blocks that are almost entirely fat tissue, and image blocks that are entirely lymphocytes, the model of this scheme can also achieve relatively accurate recognition ( Figure 3 B. Figure 5 A).
[0112] Extract the image blocks with low segmentation accuracy and analyze the reasons for the error. One of the important reasons for the abnormal accuracy index is that the ROI division is not fine enough. The model of this solution can achieve cell-level segmentation, but when formulating the ROI outline plan, it is only accurate to the tissue level. The inaccurate ROI area outline leads to a rough mask area, especially some normal breast acinar and small cancer cell clusters. The lymphocytes are not included in the ROI area. Figure 4A). However, the segmentation model of this solution can successfully identify these neglected lymphocyte clusters, which helps to more accurately locate the boundaries of TLS.
[0113] The model of this scheme has poor recognition results for some normal breast ducts ( Figure 4 B) This is because some TLS may be close to or attached to the mammary lobules. When outlining the ROI as training data, the mammary ducts in the mammary lobules are not specifically outlined outside the mask area. Therefore, the model of this solution may mistakenly identify some mammary ducts as TLS areas.
[0114] Figure 3 As shown in the figure, Patch is the image block included in the model calculation after color standardization by the Macenko method; Mask is the mask image generated after marking the ROI, green is the TLS area, and black is the non-TLS background area; Predict is the image predicted by the model segmentation, white is the predicted TLS area, and black is the predicted non-TLS area. Figure 3 A is a segmentation example in the image block at the junction of the TLS area and the background area; Figure 3 B is an example of segmentation in an image block that is almost entirely TLS area or almost entirely background area.
[0115] Figure 4 As shown in the figure, Patch is the image block included in the model calculation after color standardization by the Macenko method; Mask is the mask image generated after marking the ROI, green is the TLS area, and black is the non-TLS background area; Predict is the image predicted by the model segmentation, white is the predicted TLS area, and black is the predicted non-TLS area. Figure 4 A is the prediction failure caused by insufficiently drawn mask; Figure 4 B is the prediction failure caused by the model prediction (Predict) error.
[0116] Figure 5 As shown in the figure, Patch is the image block included in the model calculation after color standardization by the Macenko method; Mask is the mask image generated after marking the ROI, red is the TLS area, and black is the non-TLS background area; Predict is the image predicted by the model segmentation, white is the predicted TLS area, and black is the predicted non-TLS area. Figure 5 A shows an example of segmentation in an image block at the junction of the TLS area and the background area; Figure 5 B shows an example of segmentation in an image patch that is almost entirely TLS or almost entirely background.
[0117] The proposed method collected digital pathology slides (WSIs) stained with H&E and Ki67 immunohistochemistry from 235 patients with triple-negative breast cancer (TNBC) in the SYSU cohort. TLS on the H&E-stained slides were delineated with reference to the Ki67 staining and sliced into 25,957 215x215 pixel blocks. After color normalization, the images were randomly divided into training, internal validation, and test sets in an 8:1:1 ratio. A segmentation model was trained using the ResNet34-UNet network. Twenty digital pathology slides with high TLS abundance were selected from the TCGA cohort and subjected to the same preprocessing to obtain 5,493 normalized image blocks. The model achieved accuracy evaluations of 0.841, 0.856, and 0.748 in the test set, and 0.812, 0.837, and 0.720 in the external validation set.
[0118] Currently, most TLS segmentation models retrieved from PubMed are trained only on small sample cohorts. For example, the HookNet model for segmenting TLS in lung cancer uses data from 27 H&E-stained digital slides from the Cancer Genome Atlas Lung Squamous Cell Carcinoma (TCGA-LUSC) dataset. The HoVer-Net-based weakly supervised TLS segmentation model for pancreatic cancer uses data from 96 H&E-stained digital slides from 53 pancreatic cancer patients in its own cohort. The improved HookNet-TLS model for segmenting TLS in various types of solid tumors uses data from 1,019 digital pathology slides from the TCGA bladder cancer database (BLCA), the renal clear cell carcinoma database (KIRC), and the lung squamous cell carcinoma database (LUSC), as well as 15 slides from its own cohort. It is worth noting that although the HookNet-TLS model was trained on a large sample dataset from TCGA, the lack of immunohistochemical validation of TLS annotations in this dataset may affect the accuracy of TLS annotations and, therefore, the performance of the segmentation model. The triple-negative breast cancer SYSU cohort of this protocol has 235 H&E-stained digital slides, and all TLS annotations have been verified by Ki67 immunohistochemistry.
[0119] In addition, H&E-stained sections from the TGCA cohort were used as external validation to test the robustness of the proposed model. Therefore, the trained segmentation model can be better applied to subsequent large-scale TLS annotation.
[0120] The segmentation model of this solution was constructed using a large number of samples and the ResNet34-UNET network, achieving good segmentation performance (ACC = 0.841, DICE = 0.856, IoU = 0.748). When tested on an external validation set, it also demonstrated robust segmentation results (ACC = 0.812, DICE = 0.837, IoU = 0.720). This segmentation model has been shown to be useful in rapidly identifying TLS in clinical applications.
[0121] To achieve the above object, the present invention also provides a TLS segmentation processing system based on the ResNet34-Unet network, and the system is applied to the TLS segmentation processing method based on the ResNet34-Unet network, such as Figure 6 As shown, the system includes:
[0122] A data preprocessing unit, configured to acquire image data corresponding to the TLS and preprocess the image data; wherein the image data is triple-negative breast cancer tissue specimen image data;
[0123] A model building unit, configured to build a segmentation processing model corresponding to TLS in real time based on the image data and in combination with a ResNet34-Unet network architecture;
[0124] The data generating unit is used to segment and process the image data through the segmentation processing model, and generate corresponding and robust image segmentation data.
[0125] Furthermore, the data preprocessing unit further includes:
[0126] A delineation and annotation processing module is used to delineate and annotate the area to be studied corresponding to the image data, and generate corresponding annotation data in the geojson format;
[0127] A color standardization processing module is used to perform block processing on the electronic pathology slices corresponding to the annotated data, and to perform image color standardization on the corresponding image block data after the block processing;
[0128] The model building unit further includes:
[0129] a data integration processing module, configured to capture local image data or global image data corresponding to the image data, and integrate and process the data into corresponding low-resolution image data or high-resolution image data;
[0130] A first data set division module is used to obtain image block data after image color normalization processing and randomly divide it into at least three data sets in proportion; wherein the data sets include a training set, a validation set and a test set;
[0131] An image annotation processing module is used to obtain mask image data corresponding to the image block data in real time and perform ROI marking processing on the mask image data;
[0132] The data generating unit further includes:
[0133] A model data estimation module is used to verify and estimate the segmentation processing model in real time based on the image segmentation data, and generate corresponding segmentation model effectiveness data; wherein the segmentation model effectiveness data includes: model overall accuracy data, segmentation result overlap data and segmentation result coverage data.
[0134] Furthermore, the first data set division module further includes:
[0135] The second data set partitioning module is used to obtain the image block data after image color normalization processing and randomly divide it into corresponding training set, validation set and test set in a ratio of 8:1:1;
[0136] The model building unit further includes:
[0137] The gradient defect processing module is used to combine residual connections to process gradient defects that occur in the segmentation processing model in real time; wherein, the gradient defects include gradient vanishing defects and gradient exploding defects.
[0138] In the system solution embodiment of the present invention, the method steps involved in the TLS segmentation processing based on the ResNet34-Unet network have been described above in detail. That is to say, the functional modules in the system are used to implement the steps or sub-steps in the above method embodiment, which will not be repeated here.
[0139] To achieve the above objectives, the present invention also provides a TLS segmentation processing platform based on ResNet34-Unet network, such as Figure 7 As shown, it includes a processor, a memory, and a TLS segmentation processing platform control program based on the ResNet34-Unet network; wherein, the processor executes the TLS segmentation processing platform control program based on the ResNet34-Unet network, the TLS segmentation processing platform control program based on the ResNet34-Unet network is stored in the memory, and the TLS segmentation processing platform control program based on the ResNet34-Unet network implements the steps of the TLS segmentation processing method based on the ResNet34-Unet network. For example:
[0140] S01. Acquire image data corresponding to TLS and pre-process the image data; wherein the image data is triple-negative breast cancer tissue specimen image data;
[0141] S02. Based on the image data and in combination with the ResNet34-Unet network architecture, a segmentation processing model corresponding to TLS is constructed in real time;
[0142] S03. Segment and process the image data using the segmentation processing model, and generate corresponding and robust image segmentation data.
[0143] The specific details of the steps have been explained above and will not be repeated here.
[0144] In an embodiment of the present invention, the built-in processor of the TLS segmentation processing platform based on the ResNet34-Unet network can be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips. The processor uses various interfaces and lines to connect various components, and executes or executes programs or units stored in the memory, as well as calls data stored in the memory, to perform various functions and process data of the TLS segmentation processing based on the ResNet34-Unet network.
[0145] The memory is used to store program codes and various data. It is installed in the TLS segmentation processing platform based on the ResNet34-Unet network and enables high-speed and automatic access to programs or data during operation.
[0146] The memory includes read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electronically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0147] The solution of the present invention obtains image data corresponding to TLS and preprocesses the image data; wherein the image data is triple-negative breast cancer tissue specimen image data; based on the image data and in combination with the ResNet34-Unet network architecture, a segmentation processing model corresponding to TLS is constructed in real time; the image data is segmented and processed by the segmentation processing model, and corresponding and robust image segmentation data is generated; and a system and platform corresponding to the method can make the segmented data robust and the image segmentation accuracy high.
[0148] In other words, this solution is a TLS segmentation processing method based on the ResNet34-Unet network. The constructed segmentation model has high segmentation accuracy and good segmentation effect; and the segmentation performance is also robust on data sets from other sources.
[0149] The above-described embodiments merely illustrate several implementations of the present invention, and while their descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art would be able to make numerous variations and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.
Claims
1. A TLS segmentation processing method based on ResNet34-Unet network, It is characterized in that The method comprises the steps of: Acquire image data corresponding to TLS, and pre-process the image data; wherein the image data is triple-negative breast cancer tissue specimen image data; Based on the image data and in combination with the ResNet34-Unet network architecture, a segmentation processing model corresponding to TLS is constructed in real time; The image data is segmented and processed by the segmentation processing model, and corresponding and robust image segmentation data is generated.
2. According to claim 1, a TLS segmentation processing method based on a ResNet34-Unet network, It is characterized in that The step of acquiring image data corresponding to TLS and preprocessing the image data in real time further includes: Delineating and annotating the area to be studied corresponding to the image data, and generating corresponding annotation data in geojson format; The electronic pathological sections corresponding to the annotated data are cut into pieces, and the image block data corresponding to the cut-piece image is normalized for image color.
3. According to a TLS segmentation processing method based on ResNet34-Unet network according to claim 1, It is characterized in that The method of constructing a segmentation processing model corresponding to TLS in real time based on the image data and in combination with the ResNet34-Unet network architecture also includes: Capturing local image data or global image data corresponding to the image data; and integrating and processing into corresponding low-resolution image data or high-resolution image data; Obtain image block data after image color standardization processing, and randomly divide it into at least three data sets in proportion; wherein the data sets include a training set, a validation set, and a test set; The mask image data corresponding to the image block data is acquired in real time, and the mask image data is processed by ROI marking.
4. According to claim 3, a TLS segmentation processing method based on a ResNet34-Unet network, It is characterized in that The step of obtaining the image block data after the image color standardization processing and randomly dividing the data into at least three data sets in proportion also includes: The image block data after image color standardization is obtained and randomly divided into corresponding training set, validation set and test set in a ratio of 8:1:
1.
5. According to a TLS segmentation processing method based on ResNet34-Unet network according to claim 1 or 3, It is characterized in that The method of constructing a segmentation processing model corresponding to TLS in real time based on the image data and in combination with the ResNet34-Unet network architecture also includes: Combined with residual connections, gradient defects occurring in the segmentation processing model are processed in real time; wherein the gradient defects include gradient vanishing defects and gradient exploding defects.
6. According to claim 1, a TLS segmentation processing method based on a ResNet34-Unet network, It is characterized in that The segmentation processing model is used to segment the image data and generate corresponding and robust image segmentation data, and further includes: According to the image segmentation data, the segmentation processing model is verified and estimated in real time, and corresponding segmentation model performance data is generated; wherein the segmentation model performance data includes: model overall accuracy data, segmentation result overlap degree data and segmentation result coverage data.
7. A TLS segmentation processing system based on ResNet34-Unet network, It is characterized in that The system is applied to the segmentation processing method according to any one of claims 1 to 6, and the system comprises: A data preprocessing unit, used to obtain image data corresponding to TLS and preprocess the image data; wherein the image data is triple-negative breast cancer tissue specimen image data; A model building unit, used to build a segmentation processing model corresponding to TLS in real time according to the image data and in combination with a ResNet34-Unet network architecture; The data generating unit is used to segment and process the image data through the segmentation processing model, and generate corresponding and robust image segmentation data.
8. According to claim 7, a TLS segmentation processing system based on a ResNet34-Unet network, It is characterized in that The data preprocessing unit further includes: A delineation and annotation processing module is used to delineate and annotate the area to be studied corresponding to the image data, and generate corresponding annotation data in geojson format; A color standardization processing module, used for slicing the electronic pathology slices corresponding to the annotated data, and performing image color standardization on the corresponding image block data after slicing; The model building unit further includes: A data integration processing module, used to capture local image data or global image data corresponding to the image data; and integrate and process the data into corresponding low-resolution image data or high-resolution image data; A first data set division module is used to obtain image block data after image color standardization processing, and randomly divide it into at least three data sets in proportion; wherein the data sets include a training set, a validation set and a test set; An image annotation processing module is used to acquire mask image data corresponding to the image block data in real time, and perform ROI marking processing on the mask image data; The data generating unit further includes: The model data estimation module is used to verify and estimate the segmentation processing model in real time based on the image segmentation data, and generate corresponding segmentation model performance data; wherein the segmentation model performance data includes: model overall accuracy data, segmentation result overlap data and segmentation result coverage data.
9. A TLS segmentation processing system based on a ResNet34-Unet network according to claim 8, It is characterized in that The first data set division module further includes: The second data set division module is used to obtain the image block data after the image color standardization processing, and randomly divide it into corresponding training set, verification set and test set in a ratio of 8:1:1; The model building unit further includes: The gradient defect processing module is used to combine the residual connection to process the gradient defects appearing in the segmentation processing model in real time; wherein the gradient defects include gradient vanishing defects and gradient exploding defects.
10. A TLS segmentation processing platform based on ResNet34-Unet network, It is characterized in that It includes a processor, a memory and a TLS segmentation processing platform control program based on the ResNet34-Unet network; wherein, the TLS segmentation processing platform control program based on the ResNet34-Unet network is executed on the processor, the TLS segmentation processing platform control program based on the ResNet34-Unet network is stored in the memory, and the TLS segmentation processing platform control program based on the ResNet34-Unet network implements the TLS segmentation processing method based on the ResNet34-Unet network as described in any one of claims 1 to 6.
