Automatic lung tumor segmentation method and system, computing device and storage medium
Deep learning technology is used to preprocess and feature encode lung CT images to generate lung tumor areas, which solves the complexity of early diagnosis of lung cancer, improves diagnostic accuracy and efficiency, and provides reliable treatment basis.
Patent Information
- Application Number
- CN202410888715.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-10
AI Technical Summary
The early diagnosis of lung cancer is complicated. CT scanning technology has led to an explosion of imaging data. It is difficult for doctors to accurately judge lung tumors with the naked eye, and there is a risk of misdiagnosis or missed diagnosis.
Using artificial intelligence image processing technology based on deep learning, the original lung CT image is subjected to Gaussian filter preprocessing, feature encoding and decoding to generate lung tumor areas to assist doctors in making judgments.
It improves the accuracy of automatic segmentation of lung tumors, reduces missed detections and misdetections, provides reliable basis for diagnosis and treatment, and reduces the workload of doctors.
Smart Images

Figure CN118628749A
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical image processing, and more specifically, to a method, system, computing device and storage medium for automatic segmentation of lung tumors. Background Art
[0002] In recent years, lung cancer has posed a huge threat to the lives and health of Chinese residents and is currently one of the cancers with the highest incidence and mortality rates. Studies have shown that early detection and early treatment can increase the 5-year survival rate of lung cancer from 14% to 49%. Most lung cancer lesions are small in size, variable in shape, and adherent to the pleural lining. With the promotion and application of CT scanning technology, lung imaging data has exploded, which poses a great challenge to radiologists who can only rely on naked eye observation of CT images to make judgments.
[0003] Therefore, an automatic lung tumor segmentation scheme is needed. Summary of the invention
[0004] In order to solve the above technical problems, this application is proposed. This application provides a lung tumor automatic segmentation method, system, computing device and storage medium, which adopts artificial intelligence image processing technology based on deep learning, and processes the original lung CT image to obtain the lung tumor area to assist doctors in making judgments. In this way, the situation of lung tumors can be reflected, thereby providing a reliable basis for subsequent diagnosis and treatment.
[0005] According to one aspect of the present application, a method for automatic segmentation of a lung tumor is provided, comprising:
[0006] Obtain original lung CT images;
[0007] Preliminarily processing the original lung CT image to obtain a preprocessed lung CT image;
[0008] Performing feature encoding on the preprocessed lung CT image to obtain a lung tumor feature map;
[0009] Based on the lung tumor feature map, a lung tumor region is generated by decoding.
[0010] According to another aspect of the present application, a lung tumor automatic segmentation system is provided, comprising:
[0011] A lung image data acquisition module, used to obtain original lung CT images;
[0012] A lung image preprocessing module, used for performing preliminary processing on the original lung CT image to obtain a preprocessed lung CT image;
[0013] A lung image feature encoding module, used for performing feature encoding on the preprocessed lung CT image to obtain a lung tumor feature map;
[0014] The lung tumor result generation module is used to decode and generate a lung tumor area based on the lung tumor feature map.
[0015] According to another aspect of the present application, a computing device is provided, including a memory and a processor coupled to the memory, wherein the processor is configured to execute the automatic lung tumor segmentation method as described above based on instructions stored in the memory.
[0016] According to another aspect of the present application, a storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the automatic lung tumor segmentation method as described above is implemented.
[0017] This application has significant technical effects due to the adoption of the above technical solutions:
[0018] The automatic segmentation method, system, computing device and storage medium of lung tumor provided by the present application adopts artificial intelligence image processing technology based on deep learning, and processes the original lung CT image to obtain the lung tumor area to assist doctors in making judgments. In this way, the situation of lung tumor can be reflected, thereby providing a reliable basis for subsequent diagnosis and treatment. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0020] Figure 1 Flow chart of a method for automatic segmentation of lung tumors according to an embodiment of the present application.
[0021] Figure 2 Schematic diagram of the automatic segmentation method of lung tumors according to an embodiment of the present application.
[0022] Figure 3 This is a flowchart of performing feature encoding on the pre-processed lung CT image to obtain a lung tumor feature map in the lung tumor automatic segmentation method according to an embodiment of the present application.
[0023] Figure 4 This is a flowchart of decoding and generating a lung tumor region based on the lung tumor feature map in the automatic lung tumor segmentation method according to an embodiment of the present application.
[0024] Figure 5 The present invention is a flowchart of performing backward bias correction based on a weight distribution domain on the lung tumor feature vector in the lung tumor automatic segmentation method according to an embodiment of the present application to obtain an optimized lung tumor feature vector.
[0025] Figure 6 4 is a system block diagram of a lung tumor automatic segmentation system according to an embodiment of the present application.
[0026] Figure 7 A block diagram of a computing device according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0028] In recent years, lung cancer has become a major hidden danger to the life and health of Chinese residents. Its morbidity and mortality rates remain high, making it one of the main cancers threatening national health. This malignant disease, with its strong invasiveness and rapid spread, poses a great threat to people's lives. Statistics show that the five-year survival rate of lung cancer is only 14% without early detection and treatment, which is a shocking figure. However, it is worth noting that early detection and timely treatment play a vital role in improving the survival rate of lung cancer. Studies have shown that through effective early diagnosis and intervention, the five-year survival rate of lung cancer patients can be significantly improved to 49%. This change in numbers undoubtedly brings more hope of survival to lung cancer patients. However, the characteristics of lung cancer lesions make its diagnosis extremely complicated. Lung cancer lesions are often small in size and varied in shape. Some lesions are even closely adhered to the pleural lining, making it difficult for radiologists to make accurate judgments during the diagnosis process. In addition, with the continuous advancement of medical technology, CT scanning technology has been widely used in the diagnosis of lung cancer. However, this has also led to an explosive growth in lung imaging data, which has greatly increased the amount of image data that doctors need to process.
[0029] Faced with this challenge, it is becoming increasingly difficult for radiologists to make diagnoses by simply observing CT images with the naked eye. Staring at the screen for a long time to find tiny lesions is a great test for doctors' vision and energy. In addition, due to the variable morphology of lung cancer lesions, doctors often need rich experience and professional knowledge when making judgments, and the slightest carelessness may lead to misdiagnosis or missed diagnosis. Therefore, an automatic lung tumor segmentation solution is expected.
[0030] In recent years, deep learning and neural networks have been widely used in computer vision, natural language processing, text signal processing and other fields. In addition, deep learning and neural networks have also demonstrated a level close to or even beyond that of humans in image classification, object detection, semantic segmentation, text translation and other fields. The development of deep learning and neural networks provides new solutions and solutions for automatic segmentation of lung tumors.
[0031] Figure 1 Flow chart of a method for automatic segmentation of lung tumors according to an embodiment of the present application. Figure 2 FIG. 4 is a schematic diagram of an automatic lung tumor segmentation method according to an embodiment of the present application. Figure 1 and Figure 2 As shown, the automatic segmentation method of lung tumors according to the embodiment of the present application includes: S110, acquiring an original lung CT image; S120, performing preliminary processing on the original lung CT image to obtain a preprocessed lung CT image; S130, performing feature encoding on the preprocessed lung CT image to obtain a lung tumor feature map; S140, decoding and generating a lung tumor area based on the lung tumor feature map.
[0032] Specifically, in the technical solution of the present application, first, the original lung CT image is obtained. It should be well understood that obtaining the lung CT image mainly uses computer technology and image processing algorithms to perform detailed image analysis of the lungs, and then identify and segment the lung tumor area. CT (computed tomography) technology can generate high-resolution images of the lungs, which provide doctors with detailed information on the internal structure of the lungs, help to find lung tumors, judge their location, size, morphology and relationship with surrounding tissues. Specifically, there is a close relationship between lung CT images and lung tumors. Lung tumors are usually manifested as abnormal density or morphological changes in CT images, such as masses, nodules or infiltrative lesions, etc. These abnormal manifestations help doctors find tumors and judge their properties. In general, the role of obtaining the original lung CT image is the basis for subsequent image processing, feature extraction and tumor segmentation. The original lung CT image can be obtained from the hospital's database.
[0033] During the acquisition process, the lung CT image may be affected by a variety of factors, such as equipment noise, patient movement, respiratory movement, etc., which may cause noise, artifacts or blurring in the image. These noises and artifacts will interfere with subsequent image processing and analysis, reducing the accuracy of tumor segmentation. Therefore, before image segmentation, the original lung CT image needs to be preprocessed to eliminate or reduce these unfavorable factors. In this application, the original lung CT image is preprocessed by Gaussian filtering to obtain a preprocessed lung CT image. Gaussian filtering is a commonly used image processing technique, which smoothes the image by applying a Gaussian function, thereby effectively reducing noise and sharpening of details. The core idea of Gaussian filtering is to perform a weighted average of each pixel in the image and its neighborhood, where the weight is determined by a Gaussian function. This can suppress the noise in the image while retaining the main structural information of the image. The image preprocessed by Gaussian filtering can effectively eliminate the random noise and artifacts in the original lung CT image, making the image clearer and smoother. While smoothing the image, it can better protect the edge information of the image, which is crucial for subsequent data analysis, because the edge of the tumor is often an important basis for judging its position and morphology. At the same time, by preprocessing the original lung CT image with Gaussian filtering, the overall quality of the image can be improved, making the contrast between the tumor area and the surrounding tissue more obvious. This helps to improve the accuracy of tumor segmentation and reduce missed detection and false detection.
[0034] In an embodiment of the present application, a possible implementation method of performing Gaussian filtering preprocessing on the original lung CT image to obtain a preprocessed lung CT image may be: a. using an appropriate image reading library (such as SimplE TK or PIL library in Python) to read the original lung CT image; b. defining a Gaussian filter, the parameters of the Gaussian filter mainly include the filter size (i.e., the kernel size) and the standard deviation (which determines the smoothness of the filter), and the selection of these parameters should be determined according to the noise level and structural details of the lung CT image. Generally, the filter size can be selected as an odd size of 3x3, 5x5 or a larger size, and the standard deviation can be determined based on experience or experiments; c. applying the defined Gaussian filter to the original lung CT image, which can be achieved by using the convolution function in the image processing library, which convolves the Gaussian filter with each pixel of the image to obtain a smoothed pixel value. This step traverses all pixels in the image and performs weighted average on the pixel values according to the weight of the filter; d. saving the lung CT image preprocessed by Gaussian filtering.
[0035] Figure 3 The present invention is a flowchart of performing feature encoding on the pre-processed lung CT image to obtain a lung tumor feature map in the lung tumor automatic segmentation method according to an embodiment of the present application. Figure 3 As shown, the feature encoding of the preprocessed lung CT image to obtain a lung tumor feature map includes: S131, passing the preprocessed lung CT image through a lung region of interest network to obtain a lung region of interest image; S132, passing the lung region of interest image through a tumor feature encoder including a residual dual attention mechanism to obtain the lung tumor feature map.
[0036] The lung CT image contains not only lung tissue, but also other structures such as ribs, mediastinum, and chest wall. If the tumor segmentation is performed directly on the entire image, it may be disturbed by these irrelevant information, resulting in inaccurate segmentation results. Therefore, the pre-processed lung CT image is passed through the lung region of interest network to obtain a lung region of interest image. Through the lung region of interest network, the lung area can be quickly located and extracted and processed from the entire image, providing more accurate input data for subsequent data processing. The structure of the lung region of interest network in this application is a convolutional neural network model based on an anchor-free window. The design of the anchor-free window avoids the process of generating candidate regions with a large number of anchor frames in the traditional target detection algorithm, thereby reducing the amount of calculation and improving the processing speed. This enables the model to process a large amount of lung CT image data more quickly and realize real-time lung region of interest extraction. At the same time, the convolutional neural network model without anchor windows predicts the position and size of the target by directly learning the features in the image, avoiding the size and position deviation problems caused by the anchor frame. This makes the model more accurate in extracting the lung region of interest and can better adapt to lung structures of different shapes and sizes.
[0037] Those skilled in the art should know that the difference between anchor-free and anchor-based methods mainly lies in whether the target detection relies on preset anchor boxes. In this anchor-based method, the model slides a series of predefined anchor boxes on the input image, and classifies and regresses the boundaries of these anchor boxes to determine whether they contain the target and the specific boundaries of the target. The advantage of this method is that it can generate dense candidate regions and improve the target recall rate, especially for small target detection. However, the disadvantage is that it requires setting multiple hyperparameters, such as the scale and aspect ratio of the anchor box. The setting of these parameters has a great impact on the detection performance, and will generate a large number of redundant boxes, increasing the amount of calculation and memory consumption. The anchor-free method does not rely on any preset anchor box, but directly predicts the center point and scale of the target on the feature map, or predicts the existence and boundaries of the target by other means. The advantage of this method is that it reduces the setting of hyperparameters and avoids the problem of missed detection or repeated detection caused by unreasonable anchor box setting. The disadvantage is that it may not be able to handle overlapping or occluded targets as effectively as the anchor window method, and may require a special loss function or network structure to improve accuracy and stability.
[0038] Several common examples of anchor-free convolutional neural network models include: a. CenterNet: It uses the idea of key point detection to predict the center point and scale of the target, independent of the anchor box; b. CornerNet: It determines the position and size of the target by predicting the two diagonal points of the target, also independent of the anchor box; c. TLL (Top-Left-Bottom-Right): Similar to CornerNet, but uses the top left and bottom right corners of the target for prediction; d. CSP (Center and Scale Prediction): It focuses on predicting the center point and scale of the target, simplifies the target detection process, and reduces the adjustment of hyperparameters. These models achieve anchor-free target detection through different mechanisms, and they have shown promising performance and advantages in specific scenarios.
[0039] In order to extract tumor-related feature information from the lung region of interest image, in the present application, the lung region of interest image is passed through a tumor feature encoder including a residual dual attention mechanism to obtain a lung tumor feature map. The tumor feature encoder including a residual dual attention mechanism in the present application is a convolutional neural network model including a residual module, a spatial attention mechanism, and a channel attention mechanism. The residual module solves the gradient vanishing and representation bottleneck problems in deep neural network training by introducing an identity mapping, so that the network can extract feature information more deeply. The spatial attention mechanism focuses on the information at different positions in the image, and by calculating the importance weight of each position, it enhances the information expression of the key area and suppresses the influence of irrelevant areas. The channel attention mechanism focuses on the information of different channels (i.e., different features) in the image, and by assigning different weights to each channel, the network can focus on the features that contribute most to tumor segmentation.
[0040] Specifically, the performance of deep learning models is often proportional to their depth, but as the number of network layers increases, the gradient vanishing and representation bottleneck problems become more serious. The residual module effectively solves these problems by introducing an identity mapping, which enables the network to maintain smooth information transmission while deepening. This enables the tumor feature encoder to extract feature information in lung images more deeply, including subtle features that are closely related to tumors. In addition, tumors in lung CT images often have subtle differences in morphology, density, etc. from surrounding tissues. The spatial attention mechanism can pay attention to these differences and improve the recognition of tumor features by enhancing the information expression in key areas. The channel attention mechanism can screen out the features that contribute most to tumor segmentation and further improve the quality of the feature map. Combining these two attention mechanisms can achieve comprehensive and accurate extraction of lung tumor features.
[0041] In an embodiment of the present application, a possible implementation method of passing the lung region of interest image through a tumor feature encoder including a residual double attention mechanism to obtain a lung tumor feature map may be: passing the lung region of interest image through a spatial attention module of the tumor feature encoder including a residual double attention mechanism to obtain a lung tumor spatial attention map; passing the lung region of interest image through a channel attention module of the tumor feature encoder including a residual double attention mechanism to obtain a lung tumor channel attention map; fusing the lung tumor spatial attention map and the lung tumor channel attention map to obtain a lung tumor weighted feature map; fusing the lung region of interest image and the lung tumor weighted feature map to obtain the lung tumor feature map.
[0042] Figure 4 FIG. 1 is a flowchart of decoding and generating a lung tumor region based on the lung tumor feature map in the lung tumor automatic segmentation method according to an embodiment of the present application. Figure 4 As shown, the decoding and generating of the lung tumor region based on the lung tumor feature map includes: S141, expanding the lung tumor feature map to obtain a lung tumor feature vector; S142, performing backward bias correction on the lung tumor feature vector based on the weight distribution domain to obtain an optimized lung tumor feature vector; S143, passing the optimized lung tumor feature vector through a tumor feature decoder based on a deconvolution layer to obtain a decoding result, and the decoding result is a lung tumor region.
[0043] The lung tumor feature map has a high dimension, which will cause the subsequent steps to have a high computational complexity problem during the entire model operation process. In order to improve the model processing speed performance, the lung tumor feature map is expanded in this application to obtain a lung tumor feature vector. By expanding the three-dimensional data into one-dimensional data, the data dimension is reduced, which is conducive to improving the efficiency of the operation. In addition, during the feature map expansion process, important feature information is not lost, which means that it will not affect the subsequent decoding and generation of the lung tumor area.
[0044] In particular, in the technical solution of the present application, considering that the morphology, size and location of lung tumors may vary greatly among different patients, the distribution of feature vectors in the feature space may be very dispersed. The original CT image may contain noise and other non-tumor-related structures, which may be incorrectly encoded into the lung tumor feature vector during the feature extraction process, affecting its consistency. The lung region of interest network may fail to fully capture all tumor-related features, resulting in deficiencies in the lung tumor feature vector in expressing tumor characteristics. That is, the manifold geometry consistency of the overall feature distribution of the lung tumor feature vector is poor, which will cause a remote distribution regression deviation across the decoder when it is decoded by the decoder, affecting the accuracy of the decoding result. Therefore, in the technical solution of the present application, the lung tumor feature vector is subjected to a backward bias correction based on the weight distribution domain to obtain an optimized lung tumor feature vector.
[0045] Specifically, Figure 5 The present invention is a flowchart of performing backward bias correction based on the weight distribution domain on the lung tumor feature vector in the lung tumor automatic segmentation method according to the embodiment of the present application to obtain an optimized lung tumor feature vector. Figure 5As shown, the backward bias correction based on the weight distribution domain of the lung tumor feature vector to obtain the optimized lung tumor feature vector includes: S1421, multiplying the lung tumor feature vector with the decoding weight matrix of the tumor feature decoder to obtain a first intermediate lung tumor feature vector; S1422, using the concat function to process the lung tumor feature vector and the first intermediate lung tumor feature vector to obtain a second intermediate lung tumor feature vector; S1423, adding the lung tumor feature vector and the first intermediate lung tumor feature vector by position to obtain a third intermediate lung tumor feature vector; S1424, multiplying the first weight matrix by the second intermediate lung tumor feature vector and adding the first bias vector and then passing the sigmo id function to obtain a first activation value; S1425, multiplying the second weight matrix by the third intermediate lung tumor feature vector and adding the second bias vector and then passing the sigmo id function to obtain a second activation value; S1426, calculating the mean of the first activation value and the second activation value to obtain an activation mean; S1427, calculating a difference minus the activation mean, and using the difference as a first weighting coefficient and the activation mean as a second weighting coefficient, weighting the second intermediate lung tumor feature vector and the lung tumor feature vector by position to obtain a fourth intermediate lung tumor feature vector; S1428, performing an exponential operation with a natural constant as the base on each eigenvalue of the backward anchored reference vector to obtain a fifth intermediate lung tumor feature vector; S1429, subtracting the fifth intermediate lung tumor feature vector by position from the fourth intermediate lung tumor feature vector and passing the result through a ReLU function to obtain the optimized lung tumor feature vector.
[0046] In an embodiment of the present application, another expression of performing backward bias correction based on the weight distribution domain on the lung tumor feature vector to obtain an optimized lung tumor feature vector is: performing backward bias correction based on the weight distribution domain on the lung tumor feature vector using the following formula, wherein the formula is:
[0047]
[0048]
[0049] Among them, v c represents the lung tumor feature vector, M represents the decoding weight matrix of the tumor feature decoder, represents matrix multiplication, concat represents the cascade function, V ris the backward anchor reference vector, W1 represents the first weight matrix, b1 represents the first bias vector, t1 represents the first activation value, W2 represents the second weight matrix, b2 represents the second bias vector, t2 represents the second activation value, sigmoid represents the logistic function, represents positional subtraction, ReLU represents the linear rectification function, exp represents the natural exponential function, V ′ Represents the optimized lung tumor feature vector.
[0050] That is, in the technical solution of the present application, the manifold geometric consistency of the overall feature distribution of the lung tumor feature vector is poor, resulting in a remote distribution regression deviation across the tumor feature decoder when it is decoded through the tumor feature decoder, affecting the accuracy of the decoding result. Therefore, in the technical solution of the present application, the lung tumor feature vector is corrected for backward bias based on the weight distribution domain, and the decoding weight matrix of the tumor feature decoder is used to perform an auxiliary description of the attribute distribution of the lung tumor feature vector to support the improved lung tumor feature vector for the different distance feature descriptions of the decoding weight matrix of the tumor feature decoder for the descriptiveness of the preset decoding category probability, wherein the backward anchor reference vector is used as an offset and activated by an activation operation to maintain the reinforcement of the distribution description dependency with a positive effect, so that the manifold geometric consistency of the overall attribute distribution of the lung tumor feature vector can be significantly improved, thereby reducing the class probability distribution regression deviation of the lung tumor feature vector when passing through the tumor feature decoder, so as to improve the accuracy of the decoding result.
[0051] Finally, the optimized lung tumor feature vector is passed through a tumor feature decoder based on a deconvolution layer to obtain a decoding result, which is a lung tumor region. It should be well understood that this step is mainly to restore the encoded feature vector back to the same spatial resolution as the original image size, so that the lung tumor region can be accurately located and segmented.
[0052] In detail, the tumor feature decoder based on the deconvolution layer adopts the deconvolution operation, which is the inverse process of the convolution operation. In the encoding stage, the convolution operation forms a feature vector by extracting local features and reducing the spatial resolution. The decoder uses the deconvolution operation to gradually restore the information that matches the original image size by gradually increasing the spatial resolution of the feature vector. In the decoding process, in addition to the deconvolution layer, upsampling operations, jump connections, etc. may also be included to further refine the spatial information of the feature vector. These operations help to retain the detail information lost in the encoding stage and improve the accuracy of the decoding results. When the optimized lung tumor feature vector is processed by the decoder, a decoding result with the same size as the original lung CT image is obtained. This decoding result is the predicted image of the lung tumor area, which contains information such as the location, shape and size of the tumor. By setting a suitable threshold or applying a post-processing algorithm, the precise tumor area boundary can be further extracted from the decoding result. The realization of this step is crucial to the accuracy of automatic segmentation of lung tumors. By reasonably designing the decoder structure and combining an effective training strategy, it can be ensured that the decoding result can accurately reflect the actual situation of lung tumors, thereby providing a reliable basis for subsequent diagnosis and treatment.
[0053] In summary, the automatic segmentation method of lung tumors based on the embodiment of the present application is explained, which uses artificial intelligence image processing technology based on deep learning to process the original lung CT image to obtain the lung tumor area to assist doctors in making judgments. In this way, the situation of lung tumors can be reflected, thereby providing a reliable basis for subsequent diagnosis and treatment.
[0054] Figure 6 FIG. 4 is a system block diagram of a lung tumor automatic segmentation system according to an embodiment of the present application. Figure 6 As shown, the automatic segmentation system 100 for lung tumors according to an embodiment of the present application includes: a lung image data acquisition module 110, used to acquire an original lung CT image; a lung image preprocessing module 120, used to perform preliminary processing on the original lung CT image to obtain a preprocessed lung CT image; a lung image feature encoding module 130, used to perform feature encoding on the preprocessed lung CT image to obtain a lung tumor feature map; and a lung tumor result generation module 140, used to decode and generate a lung tumor region based on the lung tumor feature map.
[0055] Here, those skilled in the art will appreciate that the specific functions and operations of the various units and modules in the above-mentioned lung tumor automatic segmentation system 100 have been described in detail above. Figures 1 to 5 The description of the automatic segmentation method of lung tumors has been described in detail, and therefore, its repeated description will be omitted.
[0056] In summary, the automatic segmentation system 100 for lung tumors according to the embodiment of the present application is described, which uses artificial intelligence image processing technology based on deep learning to process the original lung CT image to obtain the lung tumor area to assist doctors in making judgments. In this way, the situation of lung tumors can be reflected, thereby providing a reliable basis for subsequent diagnosis and treatment.
[0057] As described above, the automatic segmentation system 100 for lung tumors according to the embodiment of the present application can be implemented in various wireless terminals, such as a server for automatic segmentation of lung tumors. In one example, the automatic segmentation system 100 for lung tumors according to the embodiment of the present application can be integrated into the wireless terminal as a software module and / or a hardware module. For example, the automatic segmentation system 100 for lung tumors can be a software module in the operating system of the wireless terminal, or can be an application developed for the wireless terminal; of course, the automatic segmentation system 100 for lung tumors can also be one of the many hardware modules of the wireless terminal.
[0058] Alternatively, in another example, the automatic lung tumor segmentation system 100 and the wireless terminal may also be separate devices, and the automatic lung tumor segmentation system 100 may be connected to the wireless terminal via a wired and / or wireless network and transmit interactive information in an agreed data format.
[0059] Below, reference Figure 7 To describe a computing device according to an embodiment of the present application. Figure 7 1 is a block diagram of a computing device 10 according to an embodiment of the present application. For example, the computing device 10 may be provided as a server or a terminal device. Figure 7 The computing device 10 includes a processor 11, which further includes one or more processors, and a memory resource represented by a memory 12 for storing instructions executable by the processor 11, such as an application. The application stored in the memory 12 may include one or more modules, each corresponding to a set of instructions. In addition, the processor 11 is configured to execute instructions to perform the above method.
[0060] The computing device 10 may also include a power supply component 13 configured to perform power management of the computing device 10, a wired or wireless network interface 14 configured to connect the computing device 10 to a network, and an input / output (I / O) interface 15. The computing device 10 may operate based on an operating system stored in the memory 12, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™, or the like.
[0061] In an embodiment of the present application, a storage medium is also provided, such as a memory 12 including computer program instructions. The computer program instructions can be executed by a processor 11 of a computing device 10 to complete the above method.
[0062] The present application may be a system, a method and / or a computer program product. The computer program product may include a storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present application.
[0063] A storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. The storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples of storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the above. The storage medium used herein is not to be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0064] The computer-readable program instructions described herein can be downloaded from a storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the storage medium in each computing / processing device.
[0065] The computer program instructions for performing the operation of the present application may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, by utilizing the state information of computer-readable program instructions to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit can execute the computer-readable program instructions to implement various aspects of the present application.
[0066] Various aspects of the present application are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0067] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0068] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0069] In the several embodiments provided in this application, it should be understood that the disclosed methods, systems or electronic devices, etc., can be implemented in other ways. For example, the system embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0070] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0071] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0072] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or essential features of the present application.
[0073] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present application is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present application. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0074] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.
[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit of the technical solution of the present application.
Claims
1. A method for automatic segmentation of lung tumors, characterized in that: include: Obtain original lung CT images; Preliminarily processing the original lung CT image to obtain a preprocessed lung CT image; Performing feature encoding on the preprocessed lung CT image to obtain a lung tumor feature map; Based on the lung tumor feature map, a lung tumor region is generated by decoding.
2. The automatic segmentation method for lung tumors according to claim 1, characterized in that: The original lung CT image is preliminarily processed to obtain a preprocessed lung CT image, including: performing Gaussian filtering preprocessing on the original lung CT image to obtain the preprocessed lung CT image.
3. The automatic lung tumor segmentation method according to claim 2, characterized in that: Performing feature encoding on the preprocessed lung CT image to obtain a lung tumor feature map, comprising: Passing the preprocessed lung CT image through a lung region of interest network to obtain a lung region of interest image; The lung region of interest image is passed through a tumor feature encoder including a residual double attention mechanism to obtain the lung tumor feature map.
4. The automatic lung tumor segmentation method according to claim 3, characterized in that: The lung region of interest network is a first convolutional neural network model based on an anchor-free window, and the tumor feature encoder including a residual dual attention mechanism is a second convolutional neural network model including a residual module, a spatial attention mechanism and a channel attention mechanism.
5. The automatic lung tumor segmentation method according to claim 4, characterized in that: Based on the lung tumor feature map, decoding and generating a lung tumor region includes: Expanding the lung tumor feature map to obtain a lung tumor feature vector; Performing backward bias correction based on a weight distribution domain on the lung tumor feature vector to obtain an optimized lung tumor feature vector; The optimized lung tumor feature vector is passed through a tumor feature decoder based on a deconvolution layer to obtain a decoding result, and the decoding result is a lung tumor region.
6. The automatic lung tumor segmentation method according to claim 5, characterized in that: The lung tumor feature vector is subjected to backward bias correction based on a weight distribution domain to obtain an optimized lung tumor feature vector, comprising: Multiplying the lung tumor feature vector by a decoding weight matrix of the tumor feature decoder to obtain a first intermediate lung tumor feature vector; Using a concat function to process the lung tumor feature vector and the first intermediate lung tumor feature vector to obtain a second intermediate lung tumor feature vector; Adding the lung tumor feature vector and the first intermediate lung tumor feature vector by position to obtain a third intermediate lung tumor feature vector; The first weight matrix is multiplied by the second intermediate lung tumor feature vector and the first bias vector, and then the result is passed through a sigmoid function to obtain a first activation value; The second weight matrix is multiplied by the third intermediate lung tumor feature vector plus the second bias vector and then passed through a sigmoid function to obtain a second activation value; Calculating a mean of the first activation value and the second activation value to obtain an activation mean; Calculating a difference value minus the activation mean, and using the difference value as a first weighting coefficient and the activation mean as a second weighting coefficient, weighting the second intermediate lung tumor feature vector and the lung tumor feature vector by position to obtain a fourth intermediate lung tumor feature vector; Performing an exponential operation with a natural constant as the base on each eigenvalue of the backward anchor reference vector to obtain a fifth intermediate lung tumor eigenvector; The optimized lung tumor feature vector is obtained by subtracting the fifth intermediate lung tumor feature vector from the fourth intermediate lung tumor feature vector according to position and then passing the result through a ReLU function.
7. A lung tumor automatic segmentation system, characterized in that: include: A lung image data acquisition module, used to obtain original lung CT images; A lung image preprocessing module, used for performing preliminary processing on the original lung CT image to obtain a preprocessed lung CT image; A lung image feature encoding module, used for performing feature encoding on the preprocessed lung CT image to obtain a lung tumor feature map; The lung tumor result generation module is used to decode and generate a lung tumor area based on the lung tumor feature map.
8. The automatic lung tumor segmentation system according to claim 7, characterized in that: The lung tumor result generating module comprises: A feature map dimension reduction unit, used for expanding the lung tumor feature map to obtain a lung tumor feature vector; A lung tumor feature vector optimization unit, used for performing backward bias correction on the lung tumor feature vector based on a weight distribution domain to obtain an optimized lung tumor feature vector; The feature vector decoding unit is used to pass the optimized lung tumor feature vector through a tumor feature decoder based on a deconvolution layer to obtain a decoding result, wherein the decoding result is a lung tumor area.
9. A computing device comprising a memory and a processor coupled to the memory, characterized in that: The processor is configured to execute the automatic lung tumor segmentation method according to any one of claims 1 to 6 based on the instructions stored in the memory.
10. A storage medium, characterized in that: Computer program instructions are stored thereon, and when the computer program instructions are executed by a processor, the method for automatic segmentation of a lung tumor as claimed in any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Full-automatic filling and tail sealing machine and method thereof
CN118735892A
