Lung lobe extraction method, apparatus and storage medium

Through lung lobe segmentation and mask processing technology, individual lung lobes are extracted and reconstructed, which solves the problem of low efficiency in quantitative analysis of the entire lung image, and achieves rapid quantitative analysis of lung lobes and improved diagnostic efficiency.

CN111275673BActive Publication Date: 2024-10-29WEBANK (CHINA)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010044260.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-15
Publication Date
2024-10-29
Estimated Expiration
2040-01-15

AI Technical Summary

Technical Problem

Quantitative analysis of entire lung images in the existing technology is inefficient, resulting in slow calculation speed and inability to quickly locate and assess the severity of chronic obstructive pulmonary disease (COPD), especially emphysema.

Method used

By obtaining the lung lobe segmentation image of the lung image, determine the lung lobe to be extracted, mark it, and use the marked lung lobe and lung image for mask processing to obtain the target lung lobe, thereby achieving individual lung lobe extraction and three-dimensional reconstruction. Improve analysis efficiency.

Benefits of technology

It achieves rapid quantitative analysis of a single lung lobe, overcomes the problems of large data volume and slow calculation speed when quantitatively analyzing the entire lung, and improves diagnostic efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111275673B_ABST
    Figure CN111275673B_ABST
Patent Text Reader

Abstract

The present invention discloses a lung lobe extraction method, device and storage medium, which relates to the field of financial technology. The method comprises: obtaining a lung lobe segmentation image of a lung image; determining a lung lobe to be extracted; marking the lung lobe to be extracted; and obtaining a target lung lobe according to the marked lung lobe to be extracted and the lung image. The present invention can solve the technical problem of low efficiency in quantitative analysis of the entire lung.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of financial technology (Fintech), and in particular to a lung lobe extraction method, device and storage medium. Background Art

[0002] In the field of medical image processing, it is often necessary to reconstruct the original data and then analyze the original data to obtain the desired or interested area. In the field of small airway lesions or emphysema in lung diseases, it is often necessary to perform quantitative analysis on the most serious lung lobe.

[0003] For example, chronic obstructive pulmonary disease (COPD), also known as COPD for short. Emphysema is characterized by incomplete reversibility of airflow limitation, and emphysema often shows a trend of progressive worsening. According to the 2018 GOLD Global Strategy Interpretation for the Diagnosis, Treatment and Prevention of Chronic Obstructive Pulmonary Disease, COPD patients are divided into four levels: GOLD1, GOLD2, GOLD3 and GOLD4. The spatial distribution characteristics of emphysema reflect the severity of airflow limitation in different lobes. Domestic and foreign researchers have conducted correlation studies on the effects of emphysema in different lobes on lung function. The lower lobes of both lungs are more correlated with pulmonary airflow limitation. The possible reason is that due to the effect of gravity, the airways of the lower lobes of both lungs close earlier during exhalation, which in turn causes airflow limitation; at the same time, most of the exhaled gas is gas from the lower lobes of both lungs. Therefore, the diffusion function is mainly caused by the upper lobes of both lungs. Furthermore, COPD first occurs in the right upper lobe. At the same time, as the severity of lung function worsens, COPD gradually develops to the lower lobes of both lungs. For example, we first quickly locate and evaluate the obstructive pulmonary disease in the right upper lobe. If no signs of emphysema are found in the right upper lobe, we can preliminarily diagnose that there is no emphysema in the lungs; if signs of emphysema are found in the right upper lobe, we can further judge the lower lobes of both lungs.

[0004] Currently, quantitative analysis of the entire lung is required to achieve rapid localization and assessment of chronic obstructive pulmonary disease. However, quantitative analysis of the entire lung image will result in a huge amount of data and slow calculation speed, resulting in low efficiency of quantitative analysis of the entire lung.

[0005] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] In view of this, the present invention provides a lung lobe extraction method, device and storage medium to solve the current problem of low efficiency in quantitative analysis of the entire lung image.

[0007] In a first aspect, the present invention provides a lung lobe extraction method, comprising:

[0008] Acquire a lung lobe segmentation image of a lung image;

[0009] Determine the lung lobe to be extracted;

[0010] Mark the lung lobes to be extracted;

[0011] The target lung lobe is obtained according to the marked lung lobe to be extracted and the lung image.

[0012] Optionally, obtaining the target lung lobe according to the marked lung lobe to be extracted and the lung segmentation image includes:

[0013] Obtaining a mask image according to the lung lobe segmentation image, and obtaining a marked mask image according to the mask image and the marked lung lobe to be extracted;

[0014] The target lung lobe is obtained by multiplying the marked mask image by the lung image.

[0015] Optionally, obtaining a mask image according to the lung lobe segmentation image, and obtaining a marked mask image according to the mask image and the marked lung lobe to be extracted, comprises:

[0016] The lung lobe segmentation image is subjected to mask processing to obtain mask images of each lung lobe, and the marked mask image is obtained according to preset mask values ​​of the mask images of each lung lobe and the marks of the lung lobes to be extracted after the marking.

[0017] Optionally, the step of multiplying the marked mask image by the lung image to obtain the target lung lobe comprises:

[0018] The marked mask images at the same layer are multiplied by the lung image in sequence to obtain a layer of lung lobes to be extracted, and several layers of lung lobes to be extracted are three-dimensionally reconstructed to obtain a three-dimensional target lung lobe.

[0019] Optionally, before obtaining the lung lobe to be extracted by multiplying the marked mask image by the lung image, the method further includes:

[0020] respectively determining the number of layers of the lung image and the number of layers of the marked mask image;

[0021] Determining whether the number of layers of the lung image is equal to the number of layers of the marked mask image;

[0022] The method of sequentially multiplying the marked mask images of the same layer by the lung image to obtain a layer of lung lobes to be extracted, and performing three-dimensional reconstruction on several layers of lung lobes to be extracted to obtain a three-dimensional target lung lobe includes:

[0023] If they are equal, the mask image of the marker at the same layer is multiplied by the lung image in sequence to obtain a layer of lung lobes to be extracted, and the lung lobes to be extracted at several layers are three-dimensionally reconstructed to obtain a three-dimensional target lung lobe;

[0024] If they are not equal, the marked mask image or the lung image is interpolated to obtain a mask image with the same number of layers as the lung image, and then the marked mask image with the same number of layers is multiplied by the lung image in sequence to obtain a layer of lung lobe to be extracted, and several layers of lung lobes to be extracted are three-dimensionally reconstructed to obtain a three-dimensional target lung lobe.

[0025] Optionally, before obtaining the lung lobe to be extracted by multiplying the marked mask image by the lung image, the method further includes:

[0026] Determining whether the mark of the lung lobe to be extracted after the marking is within a preset mask value range;

[0027] The step of multiplying the marked mask image by the lung image to obtain the lung lobe to be extracted includes:

[0028] If it is within the range of the preset mask value, it is determined that the mark of the lung lobe to be extracted after the mark is the same as the preset mask value;

[0029] If they are the same, the marked mask image is multiplied by the lung image to obtain the lung lobe to be extracted.

[0030] Optionally, before acquiring the lung lobe segmentation image of the lung image, the method further includes:

[0031] acquiring the lung image;

[0032] Acquire the lobar fissure features of the lung image in the sagittal plane, the lobar fissure features in the coronal plane, and the lobar fissure features in the transverse plane;

[0033] Correcting the third lobe fissure feature by using any two lobe fissure features in the sagittal plane, the coronal plane and the transverse plane;

[0034] The lung image is segmented using the corrected lung lobe fissure features to obtain the lung lobe segmentation image.

[0035] In a second aspect, the present invention provides a lung lobe extraction device, comprising:

[0036] An acquisition unit, used for acquiring a lung lobe segmentation image of a lung image;

[0037] A determination unit, used for determining the lung lobe to be extracted;

[0038] A marking unit, used for marking the lung lobe to be extracted;

[0039] The extraction unit is used to obtain the target lung lobe according to the marked lung lobe to be extracted and the lung image.

[0040] Optionally, the extraction unit comprises:

[0041] A determination module, configured to obtain a mask image according to the lung lobe segmentation image, and obtain a marked mask image according to the mask image and the marked lung lobe to be extracted;

[0042] The extraction module is used to obtain the target lung lobe by multiplying the marked mask image by the lung image.

[0043] Optionally, the determination module is specifically used to perform mask processing on the lung lobe segmentation image to obtain mask images of each lung lobe, and obtain the marked mask image according to the preset mask values ​​of the mask images of each lung lobe and the marks of the lung lobes to be extracted after marking.

[0044] Optionally, the extraction module is specifically used to sequentially multiply the marked mask image at the same layer by the lung image to obtain a layer of lung lobes to be extracted, and perform three-dimensional reconstruction on several layers of lung lobes to be extracted to obtain a three-dimensional target lung lobe.

[0045] Optionally, the extraction unit further includes: a judgment module,

[0046] The determination module is further used to respectively determine the number of layers of the lung image and the number of layers of the marked mask image;

[0047] A judgment module, used for judging whether the number of layers of the lung image is equal to the number of layers of the marked mask image;

[0048] The extraction module is specifically used to, if they are equal, sequentially use the mask image of the mark at the same layer to multiply the lung image to obtain a layer of lung lobes to be extracted, and perform three-dimensional reconstruction on the lung lobes to be extracted in several layers to obtain a three-dimensional target lung lobe;

[0049] If they are not equal, the marked mask image or the lung image is interpolated to obtain a mask image with the same number of layers as the lung image, and then the marked mask image with the same number of layers is multiplied by the lung image in sequence to obtain a layer of lung lobe to be extracted, and several layers of lung lobes to be extracted are three-dimensionally reconstructed to obtain a three-dimensional target lung lobe.

[0050] Optionally, the determination unit is further used to determine whether the mark of the lung lobe to be extracted after the marking is within a preset mask value range;

[0051] The extraction unit is specifically configured to determine whether the mark of the lung lobe to be extracted after the marking is the same as the preset mask value if the mark of the lung lobe to be extracted after the marking is within the range of the preset mask value;

[0052] If the mark of the lung lobe to be extracted after the marking is the same as the preset mask value, the lung image is multiplied by the marked mask image to obtain the lung lobe to be extracted.

[0053] Optionally, the device further comprises:

[0054] A segmentation unit is used to obtain the lung image; obtain the lobe fissure features of the lung image in the sagittal plane, the lobe fissure features in the coronal plane, and the lobe fissure features in the transverse plane; use any two of the lobe fissure features in the sagittal plane, the coronal plane, and the transverse plane to correct the third lobe fissure feature; use the corrected lobe fissure features to segment the lung image to obtain the lobe segmentation image.

[0055] In a third aspect, the present invention also provides a terminal device, wherein the vertical federated learning system optimization device comprises: a memory, a processor, and a program stored on the memory and executable on the processor, wherein the program implements the steps of the lobe extraction method as described above when executed by the processor.

[0056] In a fourth aspect, the present invention further proposes a storage medium having a program stored thereon, and the program, when executed by a processor, implements the steps of the lung lobe extraction method as described above.

[0057] The present invention provides a lung lobe extraction method, device and storage medium, which obtains a lung lobe segmentation image of a lung image; determines the lung lobe to be extracted; and marks the lung lobe to be extracted; and can obtain the target lung lobe based on the marked lung lobe to be extracted and the lung segmentation image, so as to perform quantitative analysis on a determined or separate single lung lobe. Therefore, by realizing the extraction of a single lung lobe, the problem of huge data volume and slow calculation speed caused by quantitative analysis of the entire lung can be overcome. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:

[0059] Figure 1 It is a schematic diagram of the structure of a terminal device in a hardware operating environment involved in an embodiment of the present invention;

[0060] Figure 2 is a schematic flow chart of a lung lobe extraction method in an embodiment of the present invention;

[0061] Figure 3 is a schematic diagram of a process of a lung lobe extraction device in an embodiment of the present invention;

[0062] Figure 4 The original CT image extracted by a lung lobe extraction method or / and device with CT values ​​in an embodiment of the present invention;

[0063] Figure 5 is a mask image extracted by a lung lobe extraction method or / and device with CT values ​​in an embodiment of the present invention;

[0064] Figure 6 It is a schematic diagram of extracting the upper lobe of the right lung extracted by a method or / and device for extracting the lobe with CT value in an embodiment of the present invention;

[0065] Figure 7 is a schematic diagram of a flowchart of a lung lobe segmentation method based on multiple perspectives according to an embodiment of the present invention;

[0066] Figure 8 It is a schematic diagram of the network structure of a lung lobe segmentation method and / or device based on multiple perspectives according to an embodiment of the present invention. DETAILED DESCRIPTION

[0067] The present invention is described below based on embodiment, but it is worth noting that the present invention is not limited to these embodiments. In the detailed description of the present invention below, some specific details are described in detail. However, for the part not described in detail, those skilled in the art can also fully understand the present invention.

[0068] In addition, those skilled in the art should understand that the drawings are only provided to illustrate the purpose, features and advantages of the present invention, and the drawings are not actually drawn to scale.

[0069] At the same time, unless the context clearly requires otherwise, the words "include", "comprises" and similar words throughout the specification and claims should be interpreted as inclusive rather than exclusive or exhaustive; that is, the meaning is "including but not limited to".

[0070] like Figure 1 As shown, Figure 1 It is a schematic diagram of the structure of a terminal device in a hardware operating environment involved in an embodiment of the present invention.

[0071] The terminal device of the embodiment of the present invention may be a PC, a central server of a distributed service system, etc. Figure 1As shown, the terminal device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0072] Optionally, the terminal device may further include a camera, a RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. Among them, the sensor may be a light sensor, a motion sensor, or other sensors.

[0073] Those skilled in the art will understand that Figure 1 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0074] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a terminal program.

[0075] exist Figure 1 In the terminal device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the terminal program stored in the memory 1005.

[0076] In this embodiment, the terminal device includes: a memory 1005, a processor 1001, and a terminal program stored in the memory 1005 and executable on the processor 1001, wherein the processor 1001 calls the terminal program stored in the memory 1005 and executes the operations in the following terminal method.

[0077] The embodiment of the present invention aims to propose a target lung lobe after segmentation, wherein the lung includes a left lung and a right lung, wherein the right lung includes a right upper lobe, a right middle lobe and a right lower lobe, and the left lung includes a left upper lobe and a left lower lobe. The target lung lobe of the present invention is one or more of the right upper lobe, the right middle lobe, the right lower lobe, the left upper lobe and the left lower lobe.

[0078] Figure 2 This is a schematic diagram of the process of extracting lung lobes. Figure 2 As shown, a lung lobe extraction method includes: step S101 to obtain a lung lobe segmentation image of a lung image; step S102 to determine the lung lobe to be extracted; step S103 to mark the lung lobe to be extracted; step S104 to obtain the target lung lobe according to the marked lung lobe to be extracted and the lung image. This is to solve the problem that the current need to perform quantitative analysis on the entire lung results in a huge amount of data, slow calculation speed, and cannot use a determined or separate single lung lobe for quantitative analysis. Specifically, the embodiment of the present invention can be applied to the extraction of lung lobes with electronic computed tomography (CT) values. At the same time, the present invention extracts the target lung lobe, and the three-dimensional reconstruction of a single lung lobe is faster afterwards, which is beneficial for doctors to further observe each lung lobe separately, and there will be no lung lobe obstruction. It is worth noting that the target lung lobe in the embodiment of the present invention is the lung lobe to be extracted or to be extracted.

[0079] Step S101: Acquire a lung lobe segmentation image of a lung image.

[0080] In the embodiment of the present invention, a lung image is first acquired, where the lung image is an original lung image, that is, thin-layer scanning data obtained from an imaging device such as a CT machine.

[0081] Step S102: Determine the lung lobe to be extracted.

[0082] Specifically, the lung is divided into a right lung and a left lung, with a total of 5 lobes. The right lung includes 3 lobes, namely the right upper lobe, the right middle lobe, and the right lower lobe. The left lung includes 2 lobes, namely the left upper lobe and the left lower lobe. The present invention can realize the extraction of any one or more of the 5 lobes.

[0083] Step S103: marking the lung lobes to be extracted.

[0084] The purpose of marking the lung lobe to be extracted is to determine the lung lobe to be extracted. Multiple lung lobes can be marked, or only one lung lobe can be marked.

[0085] Step S104: obtaining the target lung lobe according to the marked lung lobe to be extracted and the lung segmentation image.

[0086] The target lung lobe is the final lung lobe result of the lung lobe to be extracted (to be extracted). If the lung lobe to be extracted (to be extracted) has been determined and marked, the lung lobe can be extracted based on the lung image before segmentation. For details, please refer to the detailed description below.

[0087] For example, if the right upper lobe of the right lung needs to be extracted, the following operations are performed: first, a lung image is acquired, and the lung image is segmented to obtain a lung lobe segmentation image. Then, the lung lobe segmentation image of the lung image is acquired, and it is determined that the lung lobe to be extracted is the right upper lobe of the right lung, and the lobe of the right upper lobe of the right lung is marked, and the right upper lobe of the right lung to be extracted is obtained according to the marked lobe of the right upper lobe of the right lung and the lung image.

[0088] In the embodiment of the present invention, the specific method of obtaining the target lung lobe according to the marked lung lobe to be extracted and the lung segmentation image in step S104 is:

[0089] A mask image is obtained according to the lung lobe segmentation image, and a marked mask image is obtained according to the mask image and the marked lung lobe to be extracted; and the marked mask image is multiplied by the lung image to obtain the target lung lobe. The mask image, the marked mask image, and the lung image have the same scale.

[0090] That is to say, after obtaining the lobe segmentation image of the lung image, a mask operation is performed on each lobe of the completed lobe segmentation image. The mask operation in computer science and digital logic refers to a string of binary numbers, which is masked by bitwise operation with the target number to achieve the requirement.

[0091] The method of obtaining a mask image according to the lung lobe segmentation image, and obtaining a marked mask image according to the mask image and the mark of the lung lobe to be extracted is: masking the lung lobe segmentation image to obtain a mask image of each lung lobe, and obtaining the marked mask image according to the preset mask value of the mask image of each lung lobe and the mark of the lung lobe to be extracted; and setting the pixels in the marked mask image to 1, and setting the pixels in the area of ​​the lung lobe segmentation image outside the marked mask image to 0. The marked mask image is multiplied by the lung image to obtain the lung lobe to be extracted, that is, the mask image, the marked mask image and the lung image are of the same size.

[0092] Among them, the lung lobe segmentation image is masked to obtain a mask image of each lung lobe, that is, the lung lobe segmentation image for acquiring the lung image is masked to obtain mask images of each lung lobe in the lung image, and then the specific operation of obtaining the mask image of the marker according to the preset mask value of the mask image of each lung lobe and the marker of the lung lobe to be extracted is: determining the lung lobe to be extracted according to the preset mask value of the mask image of the lung lobe to be extracted and the marker to obtain the mask image of the marker.

[0093] Specifically, the lung lobes to be extracted are marked, and the lung lobes to be extracted are determined according to the preset mask value 1, preset mask value 2, preset mask value 3, preset mask value 4 and preset mask value 5 of the right upper lobe, right middle lobe, right lower lobe, left upper lobe and left lower lobe to obtain the marked mask image, and the marking value for marking the lung lobes to be extracted can only be one or more of 1-5.

[0094] More specifically, a mask operation is performed on each lung lobe of the lung lobe segmentation image that has been segmented to distinguish the five lung lobes of the right upper lobe, right middle lobe, right lower lobe, left upper lobe and left lower lobe. The lung lobes of the right upper lobe, right middle lobe, right lower lobe, left upper lobe and left lower lobe can be defined as preset mask value 1, preset mask value 2, preset mask value 3, preset mask value 4 and preset mask value 5 respectively. Among them, marking the lung lobe to be extracted is to select one or more of the preset mask value 1, preset mask value 2, preset mask value 3, preset mask value 4 and preset mask value 5. For example, if the mark is 1, it is the same as the preset mask value 1, indicating that the mark of the lung lobe to be extracted is the right upper lobe, that is, the mask map of the mark is obtained.

[0095] It is worth noting that before obtaining the target lung lobe according to the lung lobe to be extracted after marking and the lung image, it is also necessary to determine whether the mark is within the range of the preset mask value. If it is within the range of the preset mask value, the target lung lobe is obtained according to the lung lobe to be extracted after marking and the lung image. If not, a prompt is given. If the mark is 6, the mark is not within the range of the preset mask value, and a prompt is given, such as a prompt error.

[0096] Specifically, if the preset mask value is within the range, it is further determined whether the preset mask value is the same as the mark of the lung lobe to be extracted. If they are the same, it is not necessary to set the pixels in the mask image of the mark to 1, and then obtain the target lung lobe according to the lung lobe to be extracted after the mark and the lung image; otherwise (if they are not the same), set the pixels in the right upper lobe of the right lung to 1, and then obtain the target lung lobe according to the lung lobe to be extracted after the mark and the lung image. The preset mask value is a pixel or a pixel value.

[0097] For example, it is determined that the lung lobe to be extracted is the right upper lobe of the right lung, and the right upper lobe of the right lung is the preset mask value 1. The mark 1 indicates that the right upper lobe of the right lung with the preset mask value 1 is extracted. Since the preset mask value 1 is the same as the pixel value 1, there is no need to set the internal pixels in the mask image of the right upper lobe of the right lung to 1 at this time. The pixels in the area of ​​the lobe segmentation image outside the mark are set to 0 to obtain the marked mask image, and the marked mask image is multiplied by the lung image to obtain the lung lobe to be extracted.

[0098] In an embodiment of the present invention, a mask image is obtained based on the lung lobe segmentation image, and a marked mask image is obtained based on the mask image and the mark of the lung lobe to be extracted, and the marked mask image is multiplied by the lung image to obtain the lung lobe to be extracted. The specific method is: sequentially multiplying the marked mask image of the same layer by the lung image to obtain a layer of the lung lobe to be extracted, and performing three-dimensional reconstruction on several layers of the lung lobe to be extracted to obtain a three-dimensional lung lobe to be extracted.

[0099] In an embodiment of the present invention, a marked mask image is constructed, and before the mask image is multiplied by the lung image to obtain the lung lobe to be extracted, the number of layers of the lung image and the number of layers of the mask image are determined respectively; it is judged whether the number of layers of the lung image and the number of layers of the mask image are equal; if they are equal, the marked mask image at the same layer is multiplied by the lung image in sequence to obtain a layer of the lung lobe to be extracted, and several layers of the lung lobe to be extracted are three-dimensionally reconstructed to obtain three-dimensional lung lobe to be extracted; if they are not equal, the mask image is interpolated to obtain a mask image with the same number of layers as the lung image, and then the marked mask image at the same layer is multiplied by the lung image in sequence to obtain a layer of the lung lobe to be extracted, and several layers of the lung lobe to be extracted are three-dimensionally reconstructed to obtain three-dimensional lung lobe to be extracted.

[0100] For example, the lung image is an original image acquired from an imaging device, the number of layers of the lung image is 400, the number of layers of the mask image is also 400, and each layer of the lung image corresponds to the mask image. The lobe segmentation image is masked to obtain a mask image of each lobe, and the mask image of the marker is obtained according to the preset mask value of the mask image of each lobe and the marker of the lobe to be extracted; and the pixels in the marker mask image are set to 1, and the pixels in the area of ​​the lobe segmentation image outside the marker mask image are set to 0. The first layer of the lung image is multiplied by the marker mask image to obtain the first layer of data of the lobe to be extracted, and so on, and finally the data of the 400th layer of the lobe to be extracted is obtained, and then the first layer of data of the lobe to be extracted to the 400th layer of the lobe to be extracted is three-dimensionally reconstructed to obtain the three-dimensional lobe to be extracted. The method of three-dimensional reconstruction (3D Reconstruction) in this field is a prior art, and those skilled in the art can freely choose according to their needs.

[0101] Before obtaining the pulmonary lobe segmentation image of the lung image, the method further includes: obtaining the lung image; performing pulmonary lobe segmentation on the lung image to obtain the pulmonary lobe segmentation image; and / or performing pulmonary lobe segmentation on the lung image. There are multiple methods for obtaining the pulmonary lobe segmentation image, including methods based on traditional pulmonary lobe methods and methods based on deep learning, such as using a U-net segmentation network or a V-net segmentation network to perform pulmonary lobe segmentation, and also based on the PDV network proposed in the paper Automatic segmentation of pulmonary lobes using a progressive dense v-network to perform pulmonary lobe segmentation.

[0102] In the present invention, the lung image is segmented into lobes. The method for obtaining the segmented lung lobe image can select a lung lobe segmentation method or device based on multiple perspectives to solve the problem of not fully utilizing the information from other perspectives to segment the lung lobes, resulting in information loss and inability to accurately segment the lung lobes.

[0103] Specifically, a method or device for segmenting pulmonary lobes based on multiple perspectives includes: obtaining the pulmonary lobes fissure features in the sagittal plane, the pulmonary lobes fissure features in the coronal plane, and the pulmonary lobes fissure features in the transverse section of the lung image; and correcting the third pulmonary lobes fissure feature using any two of the pulmonary lobes fissure features in the sagittal plane, the coronal plane, and the transverse section. Figure 6 and Figure 7 Detailed instructions in.

[0104] At the same time, the present invention also proposes a lung lobe extraction device, such as Figure 3 As shown, it includes: an acquisition unit 201, which is used to acquire a lung lobe segmentation image of a lung image; a determination unit 202, which is used to determine the lung lobe to be extracted; a marking unit 203, which is used to mark the lung lobe to be extracted; an extraction unit 204, which is used to obtain a target lung lobe according to the marked lung lobe to be extracted and the lung image; wherein the acquisition unit 201 is connected to the determination unit 202 and the extraction unit 204 respectively, the determination unit 202 is also connected to the marking unit 203, and the marking unit 203 is also connected to the extraction unit 204. To solve the problem that the current need to perform quantitative analysis on the entire lung causes a huge amount of data, a slow calculation speed, and cannot use a determined or separate single lung lobe CT value for quantitative analysis. At the same time, the present invention extracts the target lung lobe, and the three-dimensional reconstruction of a single lung lobe is faster afterwards, which is conducive to the doctor's further observation of each lung lobe separately, and there will be no lung lobe obstruction. It is worth noting that the target lung lobe in the present invention is the lung lobe to be extracted. For details, please refer to the description in a lung lobe extraction method.

[0105] exist Figure 3In the embodiment of the present invention, a lung lobe extraction device is proposed, which also includes: a segmentation unit; the segmentation unit is connected to the acquisition unit 201, and is used to acquire a lung image, perform lung lobe segmentation on the lung image, and obtain a lung lobe segmentation image. And / or the segmentation unit performs the following operations: acquire the lung lobe fissure features of the lung image in the sagittal plane, the lung lobe fissure features in the coronal plane, and the lung lobe fissure features in the cross section; use any two of the lung lobe fissure features in the sagittal plane, the coronal plane, and the cross section to correct the third lung lobe fissure feature; use the corrected lung lobe fissure features to segment the lung image. That is to say, before acquiring the lung lobe segmentation image of the lung image, it also includes: acquiring the lung image; performing lung lobe segmentation on the lung image to obtain the lung lobe segmentation image.

[0106] There are many methods for performing pulmonary lobe segmentation on the lung image to obtain the pulmonary lobe segmentation image, including methods based on traditional pulmonary lobe methods and methods based on deep learning, such as using a U-net segmentation network or a V-net segmentation network to perform pulmonary lobe segmentation, and also based on the PDV network proposed in the paper Automatic segmentation of pulmonary lobes using a progressive dense v-network to perform pulmonary lobe segmentation.

[0107] In the present invention, the lung image is segmented into lobes. The method for obtaining the segmented lung lobe image can select a lung lobe segmentation method and device based on multiple perspectives to solve the problem of not fully utilizing the information from other perspectives to segment the lung lobes, resulting in information loss and inability to accurately segment the lung lobes.

[0108] Specifically, the embodiment of the present invention provides a method and device for segmenting pulmonary lobes based on multiple perspectives, including: obtaining the pulmonary lobes fissure features in the sagittal plane, the pulmonary lobes fissure features in the coronal plane, and the pulmonary lobes fissure features in the cross section of the lung image; and correcting the third pulmonary lobes fissure feature using any two of the pulmonary lobes fissure features in the sagittal plane, the coronal plane, and the cross section. Figure 6 and Figure 7 Detailed instructions in.

[0109] exist Figure 3In the embodiment of the present invention, the extraction unit 204 of a lung lobe extraction device includes: a determination module and an extraction module; the determination module is respectively connected to the acquisition unit 201, the marking unit 203 and the extraction module, and is used to obtain a mask image according to the lung lobe segmentation image, and obtain a marked mask image according to the mask image and the mark of the lung lobe to be extracted; the extraction module is used to multiply the marked mask image by the lung image to obtain the target lung lobe. The mask image, the marked mask image and the lung image have the same scale, that is, the mask image, the marked mask image and the lung image have the same size.

[0110] exist Figure 3 In the method, the determination module obtains a mask image according to the lung lobe segmentation image, and obtains a marked mask image according to the mask image and the mark of the lung lobe to be extracted, and multiplies the marked mask image by the lung image to obtain the lung lobe to be extracted; performs the following operations: performs mask processing on the lung lobe segmentation image to obtain a mask image of each lung lobe, and obtains the marked mask image according to a preset mask value of the mask image of each lung lobe and the mark of the lung lobe to be extracted; and sets the pixels in the marked mask image to 1, and sets the pixels in the area of ​​the lung lobe segmentation image outside the marked mask image to 0, and multiplies the marked mask image by the lung image to obtain the lung lobe to be extracted.

[0111] The determination module is specifically used to perform mask processing on the lung lobe segmentation image to obtain mask images of each lung lobe, and obtain the marked mask image based on the preset mask values ​​of the mask images of each lung lobe and the marks of the lung lobes to be extracted after marking.

[0112] The extraction module is specifically used to sequentially multiply the marked mask image at the same layer by the lung image to obtain a layer of lung lobes to be extracted, and perform three-dimensional reconstruction on several layers of lung lobes to be extracted to obtain a three-dimensional target lung lobe.

[0113] The extraction unit also includes: a judgment module. The determination module is also used to determine the number of layers of the lung image and the number of layers of the marked mask image respectively; the judgment module is used to judge whether the number of layers of the lung image and the number of layers of the marked mask image are equal; the extraction module is specifically used to, if they are equal, sequentially use the marked mask image of the same number of layers to multiply the lung image to obtain a layer of lung lobe to be extracted, and perform three-dimensional reconstruction on several layers of lung lobes to obtain a three-dimensional target lung lobe; if they are not equal, interpolate the marked mask image or the lung image to obtain a mask image of the same number of layers as the lung image, and then sequentially use the marked mask image of the same number of layers to multiply the lung image to obtain a layer of lung lobe to be extracted, and perform three-dimensional reconstruction on several layers of lung lobes to obtain a three-dimensional target lung lobe.

[0114] In addition, the determination unit is also used to determine whether the mark of the lung lobe to be extracted after the marking is within the range of a preset mask value; the extraction unit is specifically used to determine whether the mark of the lung lobe to be extracted after the marking is the same as the preset mask value if the mark of the lung lobe to be extracted after the marking is within the range of a preset mask value; if the mark of the lung lobe is the same as the preset mask value, the mask image of the mark is multiplied by the lung image to obtain the lung lobe to be extracted.

[0115] In an embodiment of the present invention, the operation performed to obtain the mask image based on the lobe segmentation image is: masking the lobe segmentation image of the acquired lung image to obtain a mask image of each lobe. That is to say, after acquiring the lobe segmentation image of the lung image, a mask operation is performed on each lobe of the lung that has completed the lobe segmentation image. In computer science and digital logic, a mask operation refers to a string of binary digits, which is achieved by bitwise operation with the target digit to mask the specified bit and meet the requirements.

[0116] In an embodiment of the present invention, specifically, a mask processing is performed on the lung lobe segmentation image of the acquired lung image to obtain mask images of the five lung lobes in the lung image, respectively, and the mask image of the marker is obtained according to the preset mask value of the mask image and the marker of the lung lobe to be extracted. Among them, the mask operation is performed on each lung lobe of the lung lobe segmentation image to complete the regional positioning of the five lung lobes, namely, the right upper lobe, the right middle lobe, the right lower lobe, the left upper lobe and the left lower lobe. The regions of the right upper lobe, the right middle lobe, the right lower lobe, the left upper lobe and the left lower lobe can be defined as preset mask value 1, preset mask value 2, preset mask value 3, preset mask value 4 and preset mask value 5, respectively. Among them, marking the lung lobe to be extracted is to select one or more of the preset mask value 1, the preset mask value 2, the preset mask value 3, the preset mask value 4 and the preset mask value 5.

[0117] In an embodiment of the present invention, the lung lobe to be extracted is determined according to the preset mask value of the mask image of the lung lobe to be extracted to obtain the marked mask image. Specifically, the lung lobe to be extracted is marked to obtain the mark of the lung lobe to be extracted. The preset mask value 1, preset mask value 2, preset mask value 3, preset mask value 4 and preset mask value 5 of the right upper lobe, right middle lobe, right lower lobe, left upper lobe and left lower lobe and the mark of the lung lobe to be extracted are used to determine the marked mask image. The mark value for marking the lung lobe to be extracted can only be one or more of 1-5.

[0118] Among them, there is a one-to-one correspondence between the preset mask value and the mark of the lung lobe to be extracted. For example, the preset mask value 1 represents the upper right lobe. At this time, if the lung lobe to be extracted is the upper right lobe, the mark of the lung lobe to be extracted is 1.

[0119] It is worth noting that before obtaining the target lung lobe according to the lung lobe to be extracted after marking and the lung image, it is also necessary to determine whether the mark is within the range of the preset mask value. If it is within the range of the preset mask value, the target lung lobe is obtained according to the lung lobe to be extracted after marking and the lung image. If not, a prompt is given. If the mark is 6, the mark is not within the range of the preset mask value, and a prompt is given, such as a prompt error.

[0120] Specifically, if it is within the range of the preset mask value, it is further determined whether the preset mask value is the same as the mark of the lung lobe to be extracted. If they are the same, it is not necessary to set the pixels in the mask image of the mark to 1, and then obtain the target lung lobe based on the marked lung lobe and the lung image; otherwise (if they are not the same), set the pixels in the right upper lobe of the right lung to 1, and then obtain the target lung lobe based on the marked lung lobe and the lung image.

[0121] For example, it is determined that the lobe to be extracted is the right upper lobe of the right lung, and the right upper lobe of the right lung is the preset mask value 1. The mark 1 indicates that the right upper lobe of the right lung with the preset mask value 1 is extracted. Since the preset mask value 1 is the same as the pixel value 1, it is not necessary to set the internal pixels in the mask image of the right upper lobe of the right lung to 1. The pixels in the area of ​​the lobe segmentation image outside the mark are set to 0 to obtain the marked mask image, and the marked mask image is multiplied by the lung image to obtain the lobe to be extracted. The preset mask value is a pixel or a pixel value.

[0122] If the lung lobes to be extracted are the right middle lobe, the right lower lobe, the left upper lobe and the left lower lobe, the pixels in the marked mask image are set to 1, and the pixels in the area of ​​the lung lobe segmentation image outside the marked mask image are set to 0. The lung image is multiplied by the marked mask image to obtain the lung lobes to be extracted.

[0123] exist Figure 3 In the embodiment of the present invention, the extraction unit 204 of a lung lobe extraction device proposed in a lung lobe extraction device further includes: a judgment unit; the judgment unit is respectively connected to the mask image construction unit and the extraction module, and is used to judge whether the number of layers of the lung image and the number of layers of the mask image are equal; if they are equal, the mask image of the marker at the same layer is multiplied by the lung image in sequence to obtain a layer of the lung lobe to be extracted, and several layers of the lung lobe to be extracted are three-dimensionally reconstructed to obtain three-dimensional lung lobe to be extracted; if they are not equal, the mask image is interpolated to obtain a mask image with the same number of layers as the lung image, and then the mask image of the marker at the same layer is multiplied by the lung image in sequence to obtain a layer of the lung lobe to be extracted, and several layers of the lung lobe to be extracted are three-dimensionally reconstructed to obtain three-dimensional lung lobe to be extracted.

[0124] In addition, an embodiment of the present invention further proposes a storage medium, comprising: a memory and a processor and a computer program stored in the memory and executable on the processor, wherein the computer program is a lung lobe extraction method as described above, and the processor implements the following steps when executing the program: obtaining a lung lobe segmentation image of a lung image; determining the lung lobe to be extracted; marking the lung lobe to be extracted; and obtaining the target lung lobe based on the marked lung lobe to be extracted and the lung image.

[0125] Figure 4 The original CT image extracted by a lung lobe extraction method or / and device with CT values ​​in an embodiment of the present invention; Figure 5 is a mask image extracted by a lung lobe extraction method or / and device with CT values ​​in an embodiment of the present invention; Figure 6 It is a schematic diagram of extracting the upper lobe of the right lung by a method or / and device for extracting a lobe with CT value in an embodiment of the present invention.

[0126] Figure 7 It is a flowchart diagram of a lung lobe segmentation method based on multiple perspectives according to an embodiment of the present invention. Figure 8 FIG. 1 is a schematic diagram of a network structure of a lung lobe segmentation method and / or device based on multiple perspectives according to an embodiment of the present invention. Figure 7 and 8As shown, the execution subject of the lung lobe segmentation method based on multiple perspectives provided in an embodiment of the present invention can be any image processing device. For example, the lung lobe segmentation method based on multiple perspectives can be executed by a terminal device or a server, wherein the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. The server can be a local server or a cloud server. In some possible implementations, the lung lobe segmentation method based on multiple perspectives can be implemented by a processor calling a computer-readable instruction stored in a memory.

[0127] Figure 7 FIG. 1 is a flowchart diagram of a lung lobe segmentation method based on multiple perspectives according to an embodiment of the present invention. Figure 7 As shown, the lung lobe segmentation method based on multiple perspectives in an embodiment of the present invention includes:

[0128] Step 101: Acquire the lobar fissure features of the lung image in the sagittal plane, the lobar fissure features in the coronal plane, and the lobar fissure features in the transverse plane.

[0129] In some possible implementations, the lobar fissure features of the lung images at different viewing angles may be extracted by feature extraction processing. The lobar fissure features are features used to perform segmentation processing of each lobar region in the lung image.

[0130] The embodiment of the present invention can perform feature extraction processing on the lung images in the sagittal plane, coronal plane and cross-sectional perspectives respectively, and obtain the fissure features of the lung images in the corresponding perspectives, that is, the lobe fissure features of the lung images in the sagittal plane, the lobe fissure features in the coronal plane and the lobe fissure features in the cross-section can be obtained respectively. In the embodiment of the present invention, the lobe fissure features in each perspective can be expressed in the form of a matrix or a vector, and the lobe fissure features can represent the characteristic values ​​of the lung images at each pixel point in the corresponding perspective.

[0131] In some possible implementations, the embodiments of the present invention can obtain lung images at different viewing angles by shooting CT (Computed Tomography). Correspondingly, multiple tomographic images, i.e., lung images, can be obtained at each viewing angle, and the multiple lung images at the same viewing angle can be constructed to form a three-dimensional lung image. For example, the multiple lung images at the same viewing angle can be stacked to obtain a three-dimensional lung image, or linear fitting or surface fitting can be performed to obtain a three-dimensional lung image.

[0132] In some possible implementations, the feature extraction process can be performed by a feature extraction neural network. For example, the neural network can be trained to achieve accurate extraction of the lobe fissure features of the lung image by the neural network, and lobe segmentation can be performed using the obtained features. When the accuracy of lobe segmentation exceeds the accuracy threshold, it means that the accuracy of the lobe fissure features obtained by the neural network meets the requirements. At this time, the network layer that performs segmentation in the neural network can be removed, and the retained network portion can be used as the feature extraction neural network of an embodiment of the present invention. Among them, the feature extraction neural network can be a convolutional neural network, such as a residual network, a pyramid feature network, or a U network. The above is only an exemplary description and is not a specific limitation of the present invention.

[0133] Step 102: Correct the third lobe fissure feature using any two lobe fissure features in the sagittal plane, the coronal plane, and the transverse plane.

[0134] In some possible implementations, when the lobe fissure features at three perspectives are obtained, the lobe fissure features at two perspectives can be used to correct the lobe fissure features at the third perspective to improve the accuracy of the lobe fissure features at the third perspective.

[0135] In one example, an embodiment of the present invention can use the lobe fissure features in the coronal and cross-sectional perspectives to correct the lobe fissure features in the sagittal perspective. In other embodiments, another lobe fissure feature can also be corrected by any two of the lobe fissure features in the three perspectives. For the convenience of description, the correction of the third lobe fissure feature by the first lobe fissure feature and the second lobe fissure feature is described in the following embodiment. The first lobe fissure feature, the second lobe fissure feature and the third lobe fissure feature correspond to the lobe fissure features in the three perspectives of the embodiment of the present invention, respectively.

[0136] In some possible implementations, the first lobe fissure feature and the second lobe fissure feature can be converted to the perspective of the third lobe fissure feature by mapping, and the two lobe fissure features obtained by mapping can be used to perform feature fusion with the third lobe fissure feature to obtain a corrected lobe fissure feature.

[0137] Step 103: Segment the lung image using the corrected lobe fissure features.

[0138] In some possible implementations, lobe segmentation can be performed directly through the corrected lobe fissure feature to obtain the segmentation result of the lobe fissure. Alternatively, in other implementations, the corrected lobe fissure feature and the third lobe fissure feature can also be subjected to feature fusion processing, and lobe segmentation is performed based on the fusion result to obtain the segmentation result of the lobe fissure. Among them, the segmentation result may include the position information corresponding to each partition in the identified lung image. For example, the lung image may include five lobe regions, namely the right upper lobe, the right middle lobe, the right lower lobe, the left upper lobe and the left lower lobe, and the segmentation result may include the position information of the above five lobes in the lung image. The embodiment of the present invention may represent the segmentation result in the form of a mask feature, that is, the segmentation result obtained by the embodiment of the present invention may be a feature represented in the form of a mask. For example, the embodiment of the present invention may assign unique corresponding mask values ​​(set mask values) to the above five lobe regions, such as 1, 2, 3, 4 and 5, and the area formed by each mask value is the location area where the corresponding lobe is located. The above mask values ​​are only exemplary, and other mask values ​​may also be configured in other embodiments.

[0139] Based on the above embodiments, the features of the lung lobe fissures under three perspectives can be fully integrated to improve the information content and accuracy of the corrected fissure features, thereby improving the accuracy of the lung lobe segmentation results.

[0140] In order to explain the embodiment of the present invention in detail, each process of the embodiment of the present invention is described below respectively.

[0141] In the embodiment of the present invention, the method for obtaining the lobar fissure features of the lung image in the sagittal plane, the lobar fissure features in the coronal plane, and the lobar fissure features in the cross section is:

[0142] A multi-sequence lung image in the sagittal plane, the coronal plane and the cross-section is obtained; and lobe fissure features are extracted from the multi-sequence lung images in the sagittal plane, the coronal plane and the cross-section, respectively, to obtain lobe fissure features in the sagittal plane, lobe fissure features in the coronal plane and lobe fissure features in the cross-section.

[0143] The embodiment of the present invention can first obtain multi-sequence lung images under three viewing angles. As described in the above embodiment, multi-layer lung images (multi-sequence images) of the lung images under different viewing angles can be collected by CT imaging, and a three-dimensional lung image can be obtained through the multi-layer lung images under each viewing angle.

[0144] When a multi-sequence lung image under three viewing angles is obtained, feature extraction processing can be performed on each lung image, for example, the lung image under each viewing angle is subjected to feature extraction processing by the feature extraction neural network, and the lobe fissure features of each image under the three viewing angles are obtained, such as the lobe fissure features under the sagittal plane, the lobe fissure features under the coronal plane, and the lobe fissure features under the cross section. Among them, since each viewing angle may include multiple lung images, the embodiment of the present invention can perform feature extraction processing of the multiple lung images in parallel through multiple feature extraction neural networks, thereby improving feature extraction efficiency.

[0145] Figure 7 FIG. 1 is a schematic diagram of a network structure of a lung lobe segmentation method and / or device based on multiple perspectives according to an embodiment of the present invention. Figure 7 As shown, the network that performs feature extraction processing in the embodiment of the present invention can be a U network (U-net) or other convolutional neural networks that can perform feature extraction.

[0146] When the lobe fissure features of the lung images at various viewing angles are obtained, the third lobe fissure feature can be corrected using any two lobe fissure features in the sagittal plane, coronal plane and transverse plane. The process may include: mapping the any two lobe fissure features to the viewing angle where the third lobe fissure feature is located; and correcting the third lobe fissure feature using the mapped any two lobe fissure features.

[0147] For the convenience of description, the correction of the third lobe fissure feature by the first lobe fissure feature and the second lobe fissure feature is taken as an example to illustrate below.

[0148] Since the extracted lobe fissure features are different under different viewing angles, an embodiment of the present invention can convert the lobe fissure feature maps under three viewing angles to one viewing angle. Among them, the method of mapping any two lobe fissure features to the viewing angle where the third lobe fissure feature is located is: mapping the lobe fissure features of any two multi-sequence lung images of the sagittal plane, coronal plane and cross-section to the viewing angle where the third lobe fissure feature is located. In other words, the first lobe fissure feature and the second lobe fissure feature can be converted to the viewing angle where the third lobe fissure feature is located. Among them, through the mapping conversion of the viewing angle, the feature information of the viewing angle before mapping can be integrated into the lobe fissure feature obtained after mapping.

[0149] As described in the above embodiment, the embodiment of the present invention can obtain multiple lung images at each viewing angle, and the multiple lung images correspond to multiple pulmonary lobe fissure features. Each feature value in the pulmonary lobe fissure feature corresponds one-to-one to each pixel point of the corresponding lung image.

[0150] The embodiment of the present invention can determine the position mapping relationship between each pixel point in the lung image when the perspective is converted to another perspective based on the three-dimensional lung image formed by multiple lung images at one perspective, such as when a certain pixel point switches from the first position of the first perspective to the second position of the second perspective, at this time, the feature value corresponding to the first position at the first perspective is mapped to the second position. Through the above embodiment, the mapping conversion between the lung lobe fissure features of each lung image at different perspectives can be achieved.

[0151] In some possible implementations, when the lobe fissure features of three perspectives are mapped to the same perspective, the two mapped lobe fissure features can be used to perform correction processing on the third lobe fissure feature to improve the information content and accuracy of the third lobe fissure feature.

[0152] In the embodiment of the present invention, the method for correcting the third lobe fissure feature by using any two of the mapped lobe fissure features is:

[0153] The spatial attention feature fusion is performed using the mapped features of any two pulmonary lobe fissures and the third pulmonary lobe fissure feature to obtain a first fusion feature and a second fusion feature; and the corrected third pulmonary lobe fissure feature is obtained based on the first fusion feature and the second fusion feature.

[0154] In the embodiment of the present invention, the feature after the first lobe fissure feature is mapped may be referred to as the first mapping feature, and the feature after the second lobe fissure feature is mapped may be referred to as the second mapping feature. When the first mapping feature and the second mapping feature are obtained, a spatial attention feature fusion between the first mapping feature and the third lobe fissure feature may be performed to obtain a first fused feature, and a spatial attention feature fusion between the second mapping feature and the third lobe fissure feature may be performed to obtain a second fused feature.

[0155] The method of fusing the spatial attention features by respectively using the mapped features of any two pulmonary lobe fissures and the third pulmonary lobe fissure to obtain the first fused feature and the second fused feature is:

[0156] Respectively connect any two of the lobe fissure features with the third lobe fissure feature to obtain a first connection feature and a second connection feature; perform a first convolution operation on the first connection feature to obtain a first convolution feature, and perform a first convolution operation on the second connection feature to obtain a second convolution feature; perform a second convolution operation on the first convolution feature to obtain a first attention coefficient, and perform a second convolution operation on the second convolution feature to obtain a second attention coefficient; use the first convolution feature and the first attention coefficient to obtain the first fusion feature, and use the second convolution feature and the second attention coefficient to obtain the second fusion feature.

[0157] In some possible implementations, such as Figure 7 As shown, the above-mentioned spatial attention feature fusion processing can be performed by the network module of the spatial attention mechanism. The embodiment of the present invention takes into account the different importance of lobe fissure features at different positions and adopts a spatial attention mechanism. Among them, the convolution processing based on the attention mechanism can be implemented through the spatial attention neural network (attention), and the important features are further highlighted in the obtained fusion features. In the training process of the spatial attention neural network, the importance of each position of the spatial feature can be adaptively learned to form an attention coefficient with the feature object at each position. For example, the coefficient can represent a coefficient value in the interval [0,1]. The larger the coefficient, the more important the feature at the corresponding position.

[0158] In the process of performing spatial attention fusion processing, the first mapping feature and the third lobe fissure feature can first be concatenated to obtain a first connection feature, and the second mapping feature and the third lobe fissure feature can be concatenated to obtain a second connection feature. The above connection processing can be concatenated in the channel direction. In an embodiment of the present invention, the scales of the first mapping feature, the second mapping feature, and the third lobe fissure feature can all be identified as (C / 2, H, W), where C represents the number of channels of each feature, H represents the height of the feature, and W represents the width of the feature. Correspondingly, the scales of the first connection feature and the second connection feature obtained by the connection processing can be expressed as (C, H, W).

[0159] When the first connection feature and the second connection feature are obtained, the first convolution operation can be performed on each of the first connection feature and the second connection feature, such as using the convolution layer A to perform the first convolution operation through a 3*3 convolution kernel, and then batch normalization (bn) and activation function (relu) processing can be performed to obtain the first convolution feature corresponding to the first connection feature and the second convolution feature corresponding to the second connection feature. The scale of the first convolution feature and the second convolution feature can be expressed as (C / 2, H, W). The first convolution operation can reduce the parameters in the feature map and reduce the subsequent calculation cost.

[0160] In some possible implementations, when the first convolution feature and the second convolution feature are obtained, the second convolution operation and the sigmoid function processing can be performed on the first convolution feature and the second convolution feature respectively to obtain the corresponding first attention coefficient and second attention coefficient respectively. The first attention coefficient can represent the importance of the features of each element of the first convolution feature, and the second attention coefficient can represent the importance of the features of the elements in the second convolution feature.

[0161] like Figure 7As shown, for the first convolution feature or the second convolution feature, two convolution layers B and C can be used to perform the second convolution operation, wherein the convolution layer B is processed by a 1*1 convolution kernel, and then batch normalization (bn) and activation function (relu) are performed to obtain the first intermediate feature. The scale of the first intermediate feature map can be expressed as (C / 8, H, W), and then the second convolution layer C is used to perform a convolution operation of a 1*1 convolution kernel on the first intermediate feature map to obtain a second intermediate feature map of (1, H, W). Further, the second intermediate feature map can be processed by an activation function using a sigmoid function to obtain the attention coefficient corresponding to the first convolution feature or the second performance feature, and the coefficient value of the attention coefficient can be a value in the range of [0,1].

[0162] Through the above-mentioned second convolution operation, the first connection feature and the second connection feature can be subjected to dimensionality reduction processing to obtain the attention coefficient of a single channel.

[0163] In some possible implementations, when a first attention coefficient corresponding to a first convolution feature and a second attention coefficient corresponding to a second convolution feature are obtained, a product process may be performed on the first convolution feature and the first attention coefficient, and the product result may be added to the first convolution feature to obtain a first fused feature. And a product process may be performed on the second convolution feature and the second attention coefficient matrix, and the product result may be added to the second convolution feature to obtain a second fused feature. Among them, the product process (mul) may be corresponding element multiplication, and the feature addition (add) may be corresponding element addition. In the above manner, effective fusion of features from three perspectives may be achieved.

[0164] Alternatively, in some other implementations, the feature obtained by multiplying the first convolution feature by the first attention coefficient may be added to the first convolution feature, and the added feature may be subjected to several convolution operations to obtain the first fused feature; and the feature obtained by multiplying the second convolution feature by the second attention coefficient may be added to the second convolution feature, and the added feature may be subjected to several convolution operations to obtain the second fused feature. In this way, the accuracy of the fused feature may be further improved, and the information content of the fusion may be improved.

[0165] When the first fusion feature and the second fusion feature are obtained, the first fusion feature and the second fusion feature may be used to obtain a corrected third lobe fissure feature.

[0166] In some possible implementations, since the first fused feature and the second fused feature respectively include feature information from three perspectives, the first fused feature and the second fused feature can be directly connected, and a third convolution operation can be performed on the connected features to obtain a corrected third lobe fissure feature. Alternatively, the first fused feature, the second fused feature, and the third lobe fissure feature can be connected, and a third convolution operation can be performed on the connected features to obtain a corrected third lobe fissure feature.

[0167] The third convolution operation may include group convolution processing. The third convolution operation may further achieve further fusion of feature information in each feature. Figure 7 As shown, the third convolution operation of the embodiment of the present invention may include grouped convolution D (depth wise conv), wherein the grouped convolution can speed up the convolution speed while improving the accuracy of the convolution features.

[0168] When the corrected third lobe fissure feature is obtained through the third convolution operation, the lung image can be segmented using the corrected lobe fissure feature. The embodiment of the present invention can obtain the segmentation result corresponding to the corrected lobe fissure feature by convolution. Figure 7 As shown, in the embodiment of the present invention, the corrected lobe fissure features can be input into the convolution layer E, and the standard convolution is performed through the 1*1 convolution kernel to obtain the segmentation result of the lung image. As described in the above embodiment, the segmentation result can represent the location areas where the five lobes in the lung image are located. Figure 7 As shown, each lung lobe area in the lung image is distinguished by light and dark filling colors.

[0169] Based on the above configuration, the lung lobe segmentation method based on multiple perspectives provided by the embodiment of the present invention can solve the technical problem of not fully utilizing the information from other perspectives to segment the lung lobes, resulting in information loss and inability to accurately segment the lung lobes.

[0170] As described in the above embodiments, the embodiments of the present invention can be implemented by a neural network, such as Figure 7 As shown, the neural network for executing the lung lobe segmentation method under multi-viewpoints in an embodiment of the present invention may include a feature extraction neural network, a spatial attention neural network, and a segmentation network (including convolutional layers D and E).

[0171] The embodiment of the present invention may include three feature extraction neural networks, which are respectively used to extract the features of the lung lobe fissures under different viewing angles. Among them, the three feature extraction networks can be referred to as the first branch network, the second branch network and the third branch network. Among them, the structures of the three branch networks of the embodiment of the present invention are exactly the same, and the input images of each branch network are different. For example, the sagittal lung image sample is input to the first branch network, the coronal lung image sample is input to the second branch network, and the transverse lung image sample is input to the third branch network, so as to respectively perform feature extraction processing of the lung image samples under each viewing angle.

[0172] Specifically, in the embodiment of the present invention, the process of training the feature extraction neural network includes:

[0173] Acquire training samples in the sagittal plane, the coronal plane and the transverse plane, wherein the training samples are lung image samples with marked lobe fissure features; use the first branch network to perform feature extraction on the lung image samples in the sagittal plane to obtain a first predicted lobe fissure feature; use the second branch network to perform feature extraction on the lung image samples in the coronal plane to obtain a second predicted lobe fissure feature; use the third branch network to perform feature extraction on the lung image samples in the transverse plane to obtain a third predicted lobe fissure feature; use the first predicted lobe fissure feature, the second predicted lobe fissure feature and the third predicted lobe fissure feature and the corresponding marked lobe fissure feature to obtain the network losses of the first branch network, the second branch network and the third branch network, and use the network losses to adjust the parameters of the first branch network, the second branch network and the third branch network.

[0174] As described in the above embodiment, the first branch network, the second branch network and the third branch network are respectively used to perform feature extraction processing of lung image samples in the sagittal plane, the coronal plane and the cross-sectional perspective, and then the corresponding predicted features, namely the first predicted lobe fissure feature, the second predicted lobe fissure feature and the third predicted lobe fissure feature, can be obtained.

[0175] When each predicted lobe fissure feature is obtained, the first predicted lobe fissure feature, the second predicted lobe fissure feature, and the third predicted lobe fissure feature can be used together with the corresponding labeled lobe fissure feature to obtain the network losses of the first branch network, the second branch network, and the third branch network. For example, the loss function of the embodiment of the present invention can be a logarithmic loss function, and the network loss of the first branch network can be obtained by the first predicted lobe fissure feature and the labeled real lobe fissure feature, the network loss of the second branch network can be obtained by the second predicted lobe fissure feature and the labeled real lobe fissure feature, and the network loss of the third branch network can be obtained by the third predicted lobe fissure feature and the labeled real lobe fissure feature.

[0176] When the network loss of each branch network is obtained, the parameters of the first branch network, the second branch network and the third branch network can be adjusted according to the network loss of each network until the termination condition is met. Among them, the embodiment of the present invention can use the network loss of any branch of the first branch network, the second branch network and the third branch network to adjust the network parameters of the first branch network, the second branch network and the third branch network, such as convolution parameters, etc., respectively. Thereby, the network parameters under any perspective can be correlated with the features under the other two perspectives, the correlation between the extracted lobe fissure features and the lobe fissure features under the other two perspectives can be improved, and the preliminary fusion of the lobe fissure features under each perspective can be achieved.

[0177] In addition, the training termination condition of the feature extraction neural network is that the network loss of each branch network is less than the first loss threshold, which indicates that each branch network of the feature extraction neural network can accurately extract the lobe fissure features of the lung image under the corresponding viewing angle.

[0178] When the feature extraction neural network is trained, the feature extraction neural network, the spatial attention neural network and the segmentation network can be used for training at the same time, and the segmentation result output by the segmentation network and the corresponding marking result in the marked lobe fissure feature can be used to determine the network loss of the entire neural network. The network loss of the entire neural network is further used to feedback and adjust the network parameters of the feature extraction neural network, the spatial attention neural network and the segmentation network until the network loss of the entire neural network is less than the second loss threshold. In the embodiment of the present invention, the first loss threshold is greater than or equal to the second loss threshold, so that the network accuracy of the network can be improved.

[0179] When applying the neural network of the embodiment of the present invention to perform lung lobe segmentation based on multiple perspectives, the lung images of the same lung under different perspectives can be input into the three branch networks respectively, and finally the final lung image segmentation result can be obtained through this neural network.

[0180] In summary, the embodiment of the present invention provides a method and device for lung lobe segmentation based on multiple perspectives, which can fuse multi-perspective feature information and perform lung lobe segmentation of lung images, thereby solving the problem of not fully utilizing information from other perspectives to segment the lung lobes, resulting in information loss and inability to accurately segment the lung lobes.

[0181] In addition, an embodiment of the present invention also provides a lung lobe segmentation device or segmentation unit based on multiple perspectives, which includes: a processor; a memory for storing processor executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the lung lobe segmentation method based on multiple perspectives described in any one of the above embodiments.

[0182] In some embodiments, an embodiment of the present invention provides a lung lobe segmentation device or segmentation unit based on multiple perspectives, and the functions or modules included can be used to execute the method described in the above embodiment of lung lobe segmentation based on multiple perspectives. The specific implementation can refer to the description of the above method embodiment, and for the sake of brevity, it will not be repeated here.

[0183] The above-mentioned embodiments are only embodiments of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person skilled in the art, without departing from the concept of the present invention, several variations, equivalent substitutions, improvements, etc. can be made, which all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention patent shall be subject to the attached claims.

Claims

1. A lung lobe extraction method, characterized in that: include: Acquire a lung lobe segmentation image of a lung image; Determine the lung lobe to be extracted; Marking the lung lobe to be extracted; Obtaining a target lung lobe according to the marked lung lobe to be extracted and the lung segmentation image; The step of obtaining the target lung lobe according to the marked lung lobe to be extracted and the lung segmentation image comprises: Obtaining a mask image according to the lung lobe segmentation image, and obtaining a marked mask image according to the mask image and the lung lobe to be extracted after the marking, specifically comprising: performing mask processing on the lung lobe segmentation image to obtain mask images of each lung lobe, and obtaining the marked mask image according to preset mask values ​​of the mask images of each lung lobe and the marks of the lung lobe to be extracted after the marking; The target lung lobe is obtained by multiplying the marked mask image by the lung image, which specifically includes: sequentially multiplying the marked mask image at the same layer by the lung image to obtain a layer of lung lobe, and performing three-dimensional reconstruction on the lung lobes of several layers to obtain a three-dimensional target lung lobe.

2. The method according to claim 1, characterized in that Before obtaining the target lung lobe by multiplying the marked mask image by the lung image, the method further includes: respectively determining the number of layers of the lung image and the number of layers of the marked mask image; Determining whether the number of layers of the lung image is equal to the number of layers of the marked mask image; The method of sequentially multiplying the marked mask images of the same layer by the lung image to obtain a layer of lung lobes to be extracted, and performing three-dimensional reconstruction on several layers of lung lobes to be extracted to obtain a three-dimensional target lung lobe includes: If they are equal, the mask image of the marker at the same layer is multiplied by the lung image in sequence to obtain a layer of lung lobes to be extracted, and the lung lobes to be extracted at several layers are three-dimensionally reconstructed to obtain a three-dimensional target lung lobe; If they are not equal, the marked mask image or the lung image is interpolated to obtain a mask image with the same number of layers as the lung image, and then the marked mask image with the same number of layers is multiplied by the lung image in sequence to obtain a layer of lung lobe to be extracted, and several layers of lung lobes to be extracted are three-dimensionally reconstructed to obtain a three-dimensional target lung lobe.

3. The method according to claim 1, characterized in that: Before obtaining the target lung lobe by multiplying the marked mask image by the lung image, the method further includes: Determining whether the mark of the lung lobe to be extracted after the marking is within a preset mask value range; The step of multiplying the marked mask image by the lung image to obtain a target lung lobe comprises: If it is within the range of the preset mask value, determining whether the mark of the lung lobe to be extracted after the marking is the same as the preset mask value; If they are the same, the marked mask image is multiplied by the lung image to obtain the target lung lobe.

4. The method according to any one of claims 1 to 3, characterized in that: Before acquiring the lung lobe segmentation image of the lung image, the method further includes: acquiring the lung image; Acquire the lobar fissure features of the lung image in the sagittal plane, the lobar fissure features in the coronal plane, and the lobar fissure features in the transverse plane; Correcting the third lobe fissure feature by using any two lobe fissure features in the sagittal plane, the coronal plane and the transverse plane; The lung image is segmented using the corrected lung lobe fissure features to obtain the lung lobe segmentation image.

5. A lung lobe extraction device, characterized in that: include: An acquisition unit, used for acquiring a lung lobe segmentation image of a lung image; A determination unit, used for determining the lung lobe to be extracted; A marking unit, used for marking the lung lobe to be extracted; An extraction unit, used for obtaining a target lung lobe according to the marked lung lobe to be extracted and the lung segmentation image; The extraction unit includes: A determination module is used to obtain a mask image according to the lung lobe segmentation image, and obtain a marked mask image according to the mask image and the lung lobe to be extracted after the marking, specifically comprising: performing mask processing on the lung lobe segmentation image to obtain mask images of each lung lobe, and obtaining the marked mask image according to preset mask values ​​of the mask images of each lung lobe and the mark of the lung lobe to be extracted after the marking; The extraction module is used to multiply the marked mask image by the lung image to obtain the target lung lobe, specifically comprising: sequentially multiplying the marked mask image at the same layer by the lung image to obtain a layer of lung lobe, performing three-dimensional reconstruction on the lung lobes of several layers to obtain a three-dimensional target lung lobe.

6. A terminal device, characterized in that: The terminal device includes: a memory, a processor, and a program stored in the memory and executable on the processor. When the motion displacement determination program of the lung fissure plane is executed by the processor, the steps of lung lobe extraction as described in any one of claims 1 to 4 are implemented.

7. A storage medium, characterized in that: A terminal program is stored on the computer-readable storage medium, and when the terminal program is executed by the processor, the steps of the lung lobe extraction method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Automatic segmentation method for lung-area CT (Computed Tomography) sequence

    CN103400365A

  • Lung segmentation method

    CN105488796A