Method, device and storage medium for determining motion displacement of lung fissure plane

By acquiring and processing the fissure lines of lung lobe segmentation images, calculating the distance between lung fissure planes, and determining the motion displacement of the lung fissure planes, the problem of complex and difficult to analyze lung lobe movement is solved, and a quantitative description of lung lobe motion is achieved.

CN111311541BActive Publication Date: 2024-08-27WEBANK (CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Calculating the movement of the lung lobes is complex and difficult to achieve, and quantitative analysis cannot be performed. In particular, the movement displacement of the lung fissure plane is difficult to determine.

Method used

By acquiring the first lung lobe segmentation image and the second lung lobe segmentation image of the lung during inhalation and/or exhalation, the fissure line is extracted, the corresponding distance is calculated, and the movement displacement of the lung fissure plane is determined. Specific steps include acquiring lung images, segmenting lung lobes, extracting fissure lines, calculating distances, and determining motion displacements based on these distances.

Benefits of technology

It achieves the accurate determination of the motion displacement of the lung fissure plane, solves the problem of complex calculation of lung lobe movement and inability to perform quantitative analysis, and provides a systematic method to describe the relative motion between lung lobes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111311541B
    Figure CN111311541B
Patent Text Reader

Abstract

The present invention discloses a method, device and storage medium for determining the motion displacement of a lung fissure plane, and relates to the field of financial technology. The method comprises: obtaining a first lobe segmentation image and a second lobe segmentation image of the lung during inhalation and / or exhalation; extracting the fissure lines of the first lobe segmentation image and the second lobe segmentation image respectively to obtain a plurality of first fissure lines and a plurality of second fissure lines; calculating the distances between the corresponding plurality of first fissure lines and the plurality of second fissure lines respectively to obtain a plurality of distances; determining the motion displacement of the lung fissure plane according to the plurality of distances; wherein the corresponding plurality of first fissure lines and the plurality of second fissure lines are fissure lines used to segment the same two adjacent lobes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial technology (Fintech), and in particular to a method, device and storage medium for determining the motion displacement of a lung fissure plane. Background Art

[0002] The pulmonary fissure plane is the gap between adjacent pulmonary lobes and is also the basis for pulmonary lobe segmentation. Since the pulmonary lobes are irregular organs, it is complicated and difficult to calculate the movement of the pulmonary lobes, and it is difficult to perform quantitative analysis. The pulmonary fissure plane reflects the relative movement of the pulmonary lobes and, in a certain sense, reflects the state of the pulmonary lobes during the respiratory process. Therefore, studying how to determine the movement displacement of the pulmonary fissure plane is an urgent problem to be solved.

[0003] 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

[0004] In view of this, the present invention provides a method, device and storage medium for determining the motion displacement of a lung fissure plane to solve the problem that the current calculation of lung lobe movement is relatively complex and difficult to implement, and quantitative analysis cannot be performed.

[0005] In a first aspect, the present invention provides a method for determining the motion displacement of a lung fissure plane, comprising:

[0006] Acquire a first lung lobe segmentation image and a second lung lobe segmentation image during the process of inspiration and / or exhalation;

[0007] Extracting the fissure lines of the first lung lobe segmentation image and the second lung lobe segmentation image respectively to obtain a plurality of first fissure lines and a plurality of second fissure lines;

[0008] respectively calculating the distances between the corresponding first crack lines and the corresponding second crack lines to obtain a number of distances;

[0009] Determine the motion displacement of the plane of the pulmonary fissure based on several distances;

[0010] The corresponding first fissure lines and the corresponding second fissure lines are fissure lines used to divide the same two adjacent lung lobes.

[0011] Optionally, before acquiring the first lung lobe segmentation image and the second lung lobe segmentation image of the lung during inhalation and / or exhalation, the method further includes:

[0012] Acquiring a first lung image and a second lung image during inspiration and / or expiration;

[0013] Lung lobe segmentation is performed on the first lung image and the second lung image respectively to obtain a first lung lobe segmentation image and a second lung lobe segmentation image.

[0014] Optionally, the method of performing pulmonary lobe segmentation on the first lung image to obtain the first pulmonary lobe segmentation image is the same as the method of performing pulmonary lobe segmentation on the second lung image to obtain the second pulmonary lobe segmentation image, and performing pulmonary lobe segmentation on the first lung image and the second lung image respectively to obtain the first pulmonary lobe segmentation image and the second pulmonary lobe segmentation image includes:

[0015] 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;

[0016] The fissure features of any two pulmonary lobes in the sagittal plane, coronal plane and transverse plane are used to correct the fissure features of the third pulmonary lobe;

[0017] The first lung image and the second lung image are segmented using the corrected lobe fissure features to obtain a first lobe segmentation image and a second lobe segmentation image.

[0018] Optionally, the respectively calculating the distances between the corresponding first crack lines and the corresponding second crack lines to obtain the distances comprises: respectively taking the first crack lines and the second crack lines at the same number of layers;

[0019] A number of first crack points are selected on the first crack line, and a number of distances from the first crack points to the second crack lines are calculated respectively. The average of the distances is taken to obtain the distance between the first crack line and the second crack line at the same number of layers.

[0020] Optionally, respectively calculating a number of distances from a number of first crack points to a number of second crack lines comprises:

[0021] Take a number of second crack points on the second crack line;

[0022] Calculate the distance from one of the first crack points to the second crack points to obtain the distances between the points;

[0023] Take the minimum value of the distances between several points to get the distance from the corresponding point to the second crack line;

[0024] The distance to the second crack line is calculated for each point in the plurality of first crack points to obtain a plurality of distances.

[0025] Optionally, the first lung lobe segmentation image is represented in the form of a first mask image, the second lung lobe segmentation image is represented in the form of a second mask image, and the extracting of the fissure lines of the first lung lobe segmentation image and the second lung lobe segmentation image respectively to obtain a plurality of first fissure lines and a plurality of second fissure lines comprises:

[0026] Determine whether mask values ​​of adjacent pixels of the first mask image are the same, and form a plurality of first pixel groups based on two pixels with different mask values; determine crack points corresponding to the pixel groups based on position information of each pixel in each first pixel group; and form a plurality of first crack lines based on each crack point in the first mask image;

[0027] Determine whether the mask values ​​of adjacent pixels of the second mask image are the same, and form several second pixel groups based on two pixels with different mask values; determine the crack points corresponding to the pixel groups based on the position information of each pixel in each second pixel group; and form several second crack lines based on each crack point in the second mask image.

[0028] Optionally, determining the motion displacement of the lung fissure plane according to a number of distances comprises:

[0029] If the first lung lobe segmentation image and / or the first lung lobe segmentation image includes lung lobe segmentation results corresponding to multiple layers of sub-images, the motion displacement of the lung fissure plane is determined using the distance between the fissure lines corresponding to the sub-images with the same number of layers.

[0030] In a second aspect, the present invention provides a device for determining the motion displacement of a lung fissure plane, comprising:

[0031] An acquisition unit is used to acquire a first lung lobe segmentation image and a second lung lobe segmentation image during the inhalation and / or exhalation process of the lung

[0032] An extraction unit, used to extract the fissure lines of the first lung lobe segmentation image and the second lung lobe segmentation image respectively, to obtain a plurality of first fissure lines and a plurality of second fissure lines;

[0033] A calculation unit, used for respectively calculating the distances between the corresponding first crack lines and the corresponding second crack lines to obtain a plurality of distances;

[0034] a determination unit, for determining a motion displacement of a lung fissure plane according to a number of distances;

[0035] The corresponding first fissure lines and the corresponding second fissure lines are fissure lines used to divide the same two adjacent lung lobes.

[0036] Optionally, the determining device further includes:

[0037] The segmentation unit is used to obtain a first lung image and a second lung image during inhalation and / or exhalation, and perform lung lobe segmentation on the first lung image and the second lung image respectively to obtain a first lung lobe segmentation image and a second lung lobe segmentation image.

[0038] Optionally, the segmentation unit is specifically used to 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; wherein the lung image is the first lung image or the second lung image.

[0039] Optionally, the calculation unit is specifically used to take the first crack line and the second crack line on the same number of layers respectively; take a number of first crack points on the first crack line, calculate a number of distances from the first crack points to a number of second crack lines respectively, and take the average of the several distances to obtain the distance between the first crack line and the second crack line at the same number of layers.

[0040] Optionally, the calculation unit is specifically used to select several second crack points on the second crack line; calculate the distance from one point among the several first crack points to the several second crack points to obtain several point-to-point distances; take the minimum value of the several point-to-point distances to obtain the distance from the corresponding point to the second crack line; and perform calculation of the distance to the second crack line for each point among the several first crack points to obtain several distances.

[0041] Optionally, the first lung lobe segmentation image is represented in the form of a first mask image, and the second lung lobe segmentation image is represented in the form of a second mask image, and the calculation unit is specifically used to determine whether the mask values ​​of adjacent pixels of the first mask image are the same, and form a plurality of first pixel groups based on two pixels with different mask values; determine the crack points corresponding to the pixel groups based on the position information of each pixel in each first pixel group; and form a plurality of first crack lines based on each crack point in the first mask image;

[0042] Determine whether the mask values ​​of adjacent pixels of the second mask image are the same, and form several second pixel groups based on two pixels with different mask values; determine the crack points corresponding to the pixel groups based on the position information of each pixel in each second pixel group; and form several second crack lines based on each crack point in the second mask image.

[0043] Optionally, the determination unit is specifically used to determine the motion displacement of the lung fissure plane by using the distance between the fissure lines corresponding to the sub-images with the same number of layers if the first lung lobe segmentation image and / or the first lung lobe segmentation image includes lung lobe segmentation results corresponding to multiple layers of sub-images.

[0044] To achieve the above-mentioned purpose, the present invention also provides a terminal device, wherein the longitudinal 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, when executed by the processor, implements the steps of the method for determining the motion displacement of the lung fissure plane as described above.

[0045] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a program is stored, and when the program is executed by a processor, the steps of the method for determining the motion displacement of the lung fissure plane as described above are implemented.

[0046] The present invention provides a method, device and storage medium for determining the motion displacement of a lung fissure plane, which can obtain a first lung lobe segmentation image and a second lung lobe segmentation image of a lung during inhalation and / or exhalation; respectively extract the fissure lines of the first lung lobe segmentation image and the second lung lobe segmentation image to obtain a plurality of first fissure lines and a plurality of second fissure lines; respectively calculate the distances between the corresponding plurality of first fissure lines and the plurality of second fissure lines to obtain a plurality of distances; and can determine the motion displacement of the lung fissure plane according to the plurality of distances; wherein the corresponding plurality of first fissure lines and the plurality of second fissure lines are fissure lines for segmenting the same two adjacent lung lobes, thereby solving the problem that the calculation of the movement of the lung lobes is relatively complex and difficult to achieve, and quantitative analysis cannot be performed, through the motion displacement of the lung fissure plane. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] 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:

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

[0049] Figure 2 It is a schematic flow chart of a method for determining motion displacement of a lung fissure plane according to an embodiment of the present invention;

[0050] Figure 3 is a flowchart of a lung lobe segmentation method based on multiple perspectives according to an embodiment of the present invention;

[0051] Figure 4 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

[0052] 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.

[0053] 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.

[0054] 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".

[0055] 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.

[0056] The terminal device of the embodiment of the present invention may be a PC, a central server of a distributed service system, etc. Figure 1 As 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.

[0057] 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.

[0058] 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.

[0059] 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.

[0060] exist Figure 1In 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.

[0061] 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.

[0062] Figure 2 FIG. 1 is a flow chart of a method for determining the motion displacement of a lung fissure plane according to an embodiment of the present invention. Figure 2 As shown, a method for determining the motion displacement of a lung fissure plane comprises:

[0063] Step S1001: Acquire a first lung lobe segmentation image and a second lung lobe segmentation image of the lung during inhalation and / or exhalation.

[0064] In some possible implementations, the first lung lobe segmentation image may be the lung lobe segmentation result of the first lung image, and the second lung lobe segmentation image may be the lung lobe segmentation result of the second lung image. The first lung image and the second lung image may be two images of the lungs during inspiration and / or exhalation, respectively. For example, the first lung image and the second lung image may be two (groups) of images during inspiration, or the first lung image and the second lung image may be two (groups) of images during exhalation, or the first lung image and the second lung image may be one (group) of images during inspiration and one (group) of images during exhalation, respectively. Correspondingly, the first lung lobe segmentation image and the second lung lobe segmentation image may respectively represent the regional division results of each lung in the corresponding lung image.

[0065] The lung image (first lung image or second lung image) in the embodiment of the present invention may include: a right lung and a left lung, the right lung includes three lobes, namely, the right upper lobe, the right middle lobe and the right lower lobe, and the left lung includes two lobes, namely, the left upper lobe and the left lower lobe, for a total of five lobe regions. In addition, the lung image in the embodiment of the present invention may be a multi-layer sub-image, which may be a multi-layer lung image obtained when an image acquisition device such as CT is used to acquire images of the lungs. Accordingly, the segmented image (first lobe segmented image or second lobe segmented image) obtained by performing segmentation processing on the lung image may also include the lobe segmentation results of each layer of sub-images in the lung image. Since each layer of the lung image sub-image may include multiple lung lobes, a fissure line (dividing line) may be formed between adjacent lung lobes. Correspondingly, the fissure lines formed between the same lung lobes in each layer of the sub-image may constitute a fissure plane. For example, a right horizontal fissure plane (RHFP) may be formed according to the fissure line between the right upper lobe and the right middle lobe in each layer of the sub-image, a right oblique fissure plane (ROFP) may be formed according to the fissure line between the right middle lobe and the right lower lobe in each layer of the sub-image, and a left oblique fissure plane (LOFP) may be formed according to the fissure line between the left upper lobe and the left lower lobe in each layer of the sub-image.

[0066] It should be noted that if a lobe is missing, such as if a lobe is removed, the fissure lobe or fissure plane between the lobe and the other lobes will disappear. For example, if the left upper lobe is removed, the left oblique fissure plane will disappear.

[0067] In some possible implementations, the lung lobe segmentation processing performed on the first lung image and the second lung image can be implemented using a neural network that can implement lung lobe segmentation. The neural network is trained to accurately segment each lung lobe region from the lung image to obtain a lung lobe segmentation image (a first lung lobe segmentation image and a second lung lobe segmentation image) representing the segmentation result. For example, the lung lobe segmentation image in an embodiment of the present invention can be a mask image, which includes multiple mask values, each lung lobe region corresponds to a mask value, and the same mask value constitutes a lung lobe region in the lung lobe segmentation image. For example, an embodiment of the present invention can assign unique corresponding mask values ​​to the above five lung lobe regions (right upper lobe, right middle lobe, right lower lobe, left upper lobe and left lower lobe), such as 1, 2, 3, 4 and 5, respectively, and the area formed by each mask value is the location area where the corresponding lung lobe is located. The above mask values ​​are only exemplary, and other mask values ​​can also be configured in other embodiments.

[0068] Step S1002: extracting the fissure lines of the first lung lobe segmentation image and the second lung lobe segmentation image respectively to obtain a plurality of first fissure lines and a plurality of second fissure lines;

[0069] In some possible implementations, when a lobe segmentation image is obtained, the fissures between different lobes can also be extracted from the lobe segmentation image. As described in the above embodiment, the lobe segmentation image may include lobe segmentation results corresponding to multiple layers of sub-images (hereinafter referred to as sub-lobe segmentation results), and correspondingly, the fissure lines between the lobes can be extracted from the sub-lobe segmentation results corresponding to each layer of sub-images. Among them, the fissure lines extracted from the multiple sub-lobe segmentation images of the first lobe segmentation image are called first fissure lines, and the fissure lines extracted from the multiple lobe segmentation images of the second lobe segmentation image are called second fissure lines. In addition, the first fissure line and the second fissure line in the embodiment of the present invention may be fissure lines corresponding to the same at least two lobes, for example, may include at least one of the fissure lines between the right upper lobe and the right middle lobe, the fissure line between the right middle lobe and the right lower lobe, and the fissure line between the left upper lobe and the left lower lobe.

[0070] As described in the above embodiment, the obtained lung lobe segmentation image can be represented as a mask image, and different mask values ​​can correspond to different lung lobe regions. The embodiment of the present invention can determine the crack line in each layer of the lung lobe segmentation image according to the mask value in each layer of the lung lobe segmentation image in the lung lobe segmentation image (the first lung lobe segmentation image or the second lung lobe segmentation image).

[0071] Among them, for each layer of sub-lobe segmentation image, if the mask values ​​corresponding to two adjacent pixels (such as adjacent up and down or adjacent left and right) are different, such adjacent pixels can be called a pixel group. The embodiment of the present invention can determine the mean position between the positions of each pixel in each pixel group as the crack point corresponding to the pixel group, and a crack line can be formed by the crack point corresponding to each pixel group. In the above manner, a plurality of first crack lines corresponding to the first lobe segmentation image can be obtained, and a plurality of second crack lines corresponding to the second lobe segmentation image can be obtained. The number of first crack lines and second crack lines is the same as the number of sub-segmentation images in the first lobe segmentation image and the second lobe segmentation image, that is, the same as the number of layers of sub-lung images of the lung image.

[0072] Step S1003: respectively calculating the distances between the corresponding first fissure lines and the corresponding second fissure lines to obtain a number of distances, wherein the corresponding first fissure lines and the corresponding second fissure lines are fissure lines for segmenting the same two adjacent lung lobes;

[0073] In some possible implementations, when a plurality of first fissure lines and a second fissure line corresponding to the first lung segmentation image and the second lung lobe segmentation image are obtained, respectively, the distance between the first fissure line and the second fissure line corresponding to the sub-segmented image located at the same number of layers can be further obtained. For example, the i-th layer sub-image in the first lung image is subjected to lung lobe segmentation processing to obtain a sub-segmented image of the i-th layer sub-image, and the first fissure line corresponding to the i-th layer sub-image can be obtained by using the sub-segmented image, thereby obtaining a plurality of first fissure lines corresponding to the multi-layer sub-image, wherein i is an integer greater than or equal to 1 and less than N, and N is the number of layers of the sub-image in the first lung image. Similarly, the j-th layer sub-image in the second lung image is subjected to lung lobe segmentation processing to obtain a sub-segmented image of the j-th layer sub-image, and the second fissure line corresponding to the j-th layer sub-image can be obtained by using the sub-segmented image, thereby obtaining a plurality of second fissure lines corresponding to the multi-layer sub-image, wherein j is an integer greater than or equal to 1 and less than M, and M is the number of layers of the sub-image in the second lung image. In the embodiment of the present invention, M and N can be equal.

[0074] When the fissure lines in each layer of sub-image are obtained, the distance between the first fissure line corresponding to the i-th layer of sub-image in the first lung image and the second fissure line corresponding to the i-th layer of sub-image in the second lung image can be further obtained, and then the distance between the fissure lines in each layer of sub-image can be obtained. The corresponding first fissure line and the second fissure line correspond to the same layer number.

[0075] It should be noted that, as described in the above embodiment, the lung image may include 5 lung lobe regions, and the corresponding first fissure line and the second fissure line may be at least one of the above three fissure lines, such as the right horizontal fissure line a between the right upper lobe and the right middle lobe, the right oblique fissure line b between the right middle lobe and the right lower lobe, and the left oblique fissure line c between the left upper lobe and the left lower lobe. Correspondingly, the distance between the sub-fissure lines between the same and adjacent lung lobes can be further determined, such as the distance between the fissure lines a under the same number of layers, the distance between the fissure lines b, and the distance between the fissure lines c. Among them, which fissure line is the first fissure line and the second fissure line can be configured according to needs, and the present invention does not specifically limit this.

[0076] In some possible implementations, several first crack points can be selected in the first crack line, and the distance between each first crack point and the corresponding second crack line can be calculated. The distance between the corresponding first crack line and the second crack line can be obtained by taking the average value of the distance between each first crack point and the second crack line.

[0077] Step S1004: Determine the motion displacement of the lung fissure plane according to a number of distances.

[0078] In some possible implementations, the motion displacement of the lung fissure plane can be determined by using the distance between the fissure lines corresponding to the sub-images of the same number of layers. The fissure plane can be formed by the same fissure line corresponding to each layer of sub-images in the lung image (the first lung image or the second lung image). For example, the right horizontal fissure plane can be obtained by the sub-fissure line a between the right upper lobe and the right middle lobe of each layer of sub-images in the multi-layer sub-images, the right oblique fissure plane can be obtained by the sub-fissure line b between the right middle lobe and the right lower lobe in each layer of sub-images, and the left oblique fissure plane can be obtained according to the sub-fissure line c between the left upper lobe and the left lower lobe in each layer of sub-images.

[0079] Based on the above embodiment, the distance between the lung fissure planes corresponding to different lung images can be determined according to the distance between the first fissure line and the second fissure line in the same lung fissure plane in different lung images. That is to say, the relative displacement (motion displacement) between the right horizontal fissure planes can be determined by using the distance between each first fissure line in the right horizontal fissure plane corresponding to the first lung image and each second fissure line in the right horizontal fissure plane corresponding to the second lung image, the relative displacement (motion displacement) between the right oblique fissure planes can be determined by using the distance between each first fissure line in the right oblique fissure plane corresponding to the first lung image and each second fissure line in the right oblique fissure plane corresponding to the second lung image, and the relative displacement (motion displacement) between the left oblique fissure planes can be determined by using the distance between each first fissure line in the left oblique fissure plane corresponding to the first lung image and each second fissure line in the left oblique fissure plane corresponding to the second lung image. It should be noted here that the distance between each first fissure line and the corresponding second fissure line in the embodiment of the present invention is a vector distance, which includes both the distance value and the direction of relative motion, so that the relative motion displacement between the corresponding lung fissure planes can be conveniently determined.

[0080] In the embodiment of the present invention, the distance between the first fissure line and the second fissure line at the same number of layers can be used to form a matrix representing the distance between the fissure lines at each layer, and the matrix can be used to represent the motion displacement between the corresponding lung fissure surfaces. The dimension of the matrix can be expressed as H×W, where H represents the length of the matrix, and W represents the width of the matrix, where the value of H is the same as the number of layers of the lung image, and W represents the number of the first fissure line or the second fissure line at each layer. And the element x in the matrix ij represents the distance between the i-th first fissure line and the second fissure line in the j-th layer of lung image, where i is an integer greater than or equal to 1 and less than 3.

[0081] In some other possible implementations, obtaining the distance between the lung fissure planes may also include determining the average value of the distance between the corresponding first fissure line and the second fissure line to obtain the average motion displacement between the lung fissure planes.

[0082] Based on the above configuration, the embodiment of the present invention can realize the movement changes between the fissure lines in the lung images at different times or in different states, and then obtain the relative movement between each lung fissure plane, so as to solve the problem that the calculation of the movement of the lung lobes is relatively complex and difficult to achieve, and quantitative analysis cannot be performed.

[0083] The various processes of the embodiments of the present invention are described in detail below.

[0084] As described in the above embodiment, the embodiment of the present invention can first obtain the lung lobe segmentation results of two lung images (the first lung lobe image and the second lung lobe image). That is, before obtaining the first lung lobe segmentation image and the second lung lobe segmentation image of the lung during inspiration and / or exhalation, the first lung image and the second lung image during inspiration and / or exhalation can be obtained, and the first lung image and the second lung image are respectively segmented to obtain the first lung lobe segmentation image and the second lung lobe segmentation image.

[0085] Figure 3 is a flowchart of a lung lobe segmentation method based on multiple perspectives according to an embodiment of the present invention; Figure 3 As shown, the method of performing lung lobe segmentation on a lung image (a first lung image or a second lung image) to obtain a lung lobe segmentation image (a first lung lobe segmentation image or a second lung lobe segmentation image) is:

[0086] S101: Acquire the features of the pulmonary lobe fissures in the sagittal plane, the features of the pulmonary lobe fissures in the coronal plane, and the features of the pulmonary lobe fissures in the transverse plane of the lung image.

[0087] 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.

[0088] 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.

[0089] In some possible implementations, the embodiments of the present invention can obtain lung images at different viewing angles by taking CT (Computed Tomography). Correspondingly, multiple tomographic images can be obtained at each viewing angle, and the multiple tomographic images constitute the lung image at that viewing angle.

[0090] 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.

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

[0092] 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.

[0093] 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.

[0094] 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.

[0095] S103: Segment the lung image using the corrected lobe fissure features.

[0096] In some possible implementations, lobe segmentation can be performed directly by using 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, so that the first lobe segmentation image or the second lobe segmentation image can be obtained. 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 by means of mask features, 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, such as 1, 2, 3, 4 and 5, to the above five lobe regions, 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.

[0097] 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.

[0098] 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.

[0099] 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:

[0100] 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.

[0101] The embodiment of the present invention can first acquire a multi-sequence lung image at three viewing angles. As described in the above embodiment, multi-layer lung images (multi-sequence images) at different viewing angles can be acquired by CT imaging.

[0102] When the lung images under three viewing angles are obtained, feature extraction processing can be performed on each lung image, for example, by performing feature extraction processing on the lung images under each viewing angle through the above-mentioned feature extraction neural network, and obtaining the lobe fissure features of each lung image under the three viewing angles, 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 layers of images, the embodiment of the present invention can perform feature extraction processing of the multiple layers of images in parallel through multiple feature extraction neural networks, thereby improving feature extraction efficiency. Figure 3 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 3 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.

[0103] When the pulmonary lobe fissure features of the lung images under various viewing angles are obtained, the third pulmonary lobe fissure feature can be corrected using any two pulmonary lobe fissure features under the sagittal plane, the coronal plane, and the transverse plane. The process may include:

[0104] The any two pulmonary lobe fissure features are mapped to the viewing angle of the third pulmonary lobe fissure feature; and the third pulmonary lobe fissure feature is corrected using the mapped any two pulmonary lobe fissure features.

[0105] 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.

[0106] 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.

[0107] 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.

[0108] 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.

[0109] 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.

[0110] 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:

[0111] 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.

[0112] 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.

[0113] 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:

[0114] 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.

[0115] In some possible implementations, such as Figure 3 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.

[0116] 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).

[0117] 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.

[0118] 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.

[0119] like Figure 4As 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].

[0120] 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.

[0121] 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.

[0122] 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.

[0123] 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.

[0124] 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.

[0125] 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 2 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.

[0126] 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 3 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 2 As shown, each lung lobe area in the lung image is distinguished by light and dark filling colors.

[0127] 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.

[0128] As described in the above embodiments, the embodiments of the present invention can be implemented by a neural network, such as Figure 3 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).

[0129] 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.

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

[0131] 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.

[0132] 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.

[0133] 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.

[0134] 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.

[0135] 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.

[0136] 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.

[0137] 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 respectively input into the three branch networks, and finally the final lung image segmentation result, i.e., the lung lobe segmentation image, can be obtained through this neural network.

[0138] Based on the above configuration, the multi-perspective lung lobe segmentation method and device provided in the embodiments of the present invention 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.

[0139] Through the above embodiment, a first lung lobe segmentation image of the first lung image and a second lung lobe segmentation image of the second lung image can be obtained. Then, the first crack line in the first segmentation image and the second crack line in the second segmentation image can be extracted. Since the first segmentation image and the second segmentation image can be represented in the form of a mask image, the process of extracting the crack line (the first crack line or the second crack line) from the lung lobe segmentation image (the first lung lobe segmentation image or the second lung lobe segmentation image) in the embodiment of the present invention may include:

[0140] Determine whether the mask values ​​of adjacent pixels in the mask image are the same, and form a pixel group based on two pixels with different mask values; determine the crack point corresponding to the pixel group based on the position information of each pixel in each pixel group; and form a crack line based on all the crack points in the mask image.

[0141] Wherein, as described in the above embodiment, the above operation can be performed on the lung lobe segmentation image obtained by each layer of the image. For each layer of the lung lobe segmentation image, if the mask values ​​corresponding to two adjacent pixels (such as adjacent up and down, adjacent left and right) are different, such adjacent pixels can be called a pixel group. The embodiment of the present invention can determine the mean position between the positions of each pixel in each pixel group as the crack point corresponding to the pixel group, and a crack line can be formed by the crack point corresponding to each pixel group. Wherein, the position of the pixel point can be in the form of (x, y), that is, it represents the coordinate value in the lung lobe segmentation image. Then, the position of the corresponding crack line can be determined based on the average position between the two pixels in the pixel group. In the above manner, multiple first crack lines corresponding to the first lung lobe segmentation image can be obtained, and multiple second crack lines corresponding to the second lung lobe segmentation image can be obtained. Wherein the number of first crack lines and second crack lines is the same as the number of sub-segmented images in the first lung lobe segmentation image and the second lung lobe segmentation image, that is, the same as the number of layers of the sub-lung image of the lung image.

[0142] Further, when the first crack line and the second crack line corresponding to each layer of the image are obtained, the distance between the first crack line and the second crack line in the same layer can be obtained. In the embodiment of the present invention, the distances between the corresponding first crack lines and the corresponding second crack lines are respectively calculated, and the specific method for obtaining the distances is:

[0143] Take the first crack line and the second crack line at the same number of layers respectively; take a number of first crack points on the first crack line, calculate a number of distances from the first crack points to the second crack lines respectively, and take the average of the distances to obtain the distance between the first crack line and the second crack line at the same number of layers.

[0144] First, the first crack line and the second crack line with the same number of layers can be obtained, and then multiple first crack points can be selected on the first crack line. In the embodiment of the present invention, multiple first crack points can be randomly selected, or multiple first crack points can be selected according to a preset distance interval. The number of first crack points can be pre-configured, and the present invention does not specifically limit this.

[0145] In the case of obtaining multiple first crack points on the first crack line, the distance from each first crack to the second crack line can be calculated. Among them, the specific method of calculating the distances from the first crack points to the second crack lines in the embodiment of the present invention is: select the second crack points on the second crack line; step 1: calculate the distance from one point in the first crack points to all the second crack points to obtain the distances from the point to the point; step 2: take the minimum value of the distances from the point to the point to obtain the distance from the point to the second crack line; all the points in the first crack points perform the method of step 1 and step 2 to obtain the distances.

[0146] In some possible implementations, multiple second crack points may be selected on the second crack line, or multiple second crack points may be randomly selected, or multiple second crack points may be obtained at preset intervals. In addition, the number of second crack points may be the same as or different from the number of first crack points, and the present invention does not specifically limit this.

[0147] Furthermore, the first distance between each first fissure point and the second fissure point (the above-mentioned point-to-point distance) can be obtained, and for each first fissure point, the minimum distance of the first distance between the first fissure point and each second fissure point can be determined as the distance between the first fissure point and the second fissure line. In this way, the average value of the distance between each first fissure point and the second fissure line can be obtained to determine the distance between the first fissure line and the second fissure line, and then the distance between the first fissure line and the second fissure line obtained at the same number of layers in the first lobe segmentation image and the second segmentation image can be obtained.

[0148] In the case where the distance between the first fissure line and the second fissure line corresponding to each layer of the lung image is obtained, the motion displacement of the lung fissure plane can be determined according to the obtained distances. As described in the above embodiment, the motion displacement can be represented by a matrix consisting of the distances between the first fissure line and the second fissure line corresponding to each layer of the image. Alternatively, the average value of the distances between the first fissure line and the second fissure line in the same lung fissure plane corresponding to the first lung image and the second lung image can be determined as the motion displacement between the same lung fissure plane in the first lung image and the second lung image.

[0149] Based on the above, in an embodiment of the present invention, if the first lobe segmentation image and the second lobe segmentation image can be two segmentation images during exhalation, the embodiment of the present invention can determine the motion displacement between each lung fissure plane during exhalation. If the first lobe segmentation image and the second lobe segmentation image can be two segmentation images during inhalation, the embodiment of the present invention can determine the motion displacement between each lung fissure plane during inhalation. If the first lobe segmentation image and the second lobe segmentation image are respectively one segmentation image during inhalation and one segmentation image during exhalation, the embodiment of the present invention can determine the motion displacement between the lung fissure planes during inhalation and exhalation.

[0150] Specifically, the first lung lobe segmentation image is represented in the form of a first mask image, and the second lung lobe segmentation image is represented in the form of a second mask image. The calculation unit is specifically used to determine whether the mask values ​​of adjacent pixels of the first mask image are the same, and form a plurality of first pixel groups based on two pixels with different mask values; determine the crack points corresponding to the pixel groups based on the position information of each pixel in each first pixel group; and form a plurality of first crack lines based on each crack point in the first mask image;

[0151] Determine whether the mask values ​​of adjacent pixels of the second mask image are the same, and form several second pixel groups based on two pixels with different mask values; determine the crack points corresponding to the pixel groups based on the position information of each pixel in each second pixel group; and form several second crack lines based on each crack point in the second mask image.

[0152] The determination unit is specifically used to determine the motion displacement of the lung fissure plane by using the distance between the fissure lines corresponding to the sub-images with the same number of layers if the first lung lobe segmentation image and / or the first lung lobe segmentation image includes lung lobe segmentation results corresponding to multiple layers of sub-images.

[0153] In summary, the embodiments of the present invention can solve the problem that the calculation of the movement of the lung lobes is relatively complex and difficult to implement, and quantitative analysis cannot be performed.

[0154] It can be understood that the above-mentioned various method embodiments mentioned in the present invention can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present invention will not go into details.

[0155] In addition, an embodiment of the present invention further provides a device for determining the motion displacement of a lung fissure plane, wherein the device comprises: an acquisition unit, an extraction unit, a calculation unit, and a determination unit;

[0156] The acquisition unit is connected to the extraction unit, the extraction unit is further connected to the calculation unit, and the calculation unit is further connected to the determination unit;

[0157] An acquisition unit is used to acquire a segmented image of the first lung lobe and a segmented image of the second lung lobe during the inhalation and / or exhalation process of the lung

[0158] An extraction unit, used to extract the fissure lines of the first lung lobe segmentation image and the second lung lobe segmentation image respectively, to obtain a plurality of first fissure lines and a plurality of second fissure lines;

[0159] A calculation unit, used for respectively calculating the distances between the corresponding first crack lines and the corresponding second crack lines to obtain a plurality of distances;

[0160] a determination unit, for determining a motion displacement of a lung fissure plane according to a number of distances;

[0161] The corresponding first fissure lines and the corresponding second fissure lines are fissure lines used to divide the same two adjacent lung lobes.

[0162] Optionally, the device further comprises: a segmentation unit;

[0163] The segmentation unit is connected to the acquisition unit. Before the acquisition unit acquires the first lung lobe segmentation image and the second lung lobe segmentation image of the lung during inhalation and / or exhalation, the segmentation unit acquires the first lung image and the second lung image during inhalation and / or exhalation, and performs lung lobe segmentation on the first lung image and the second lung image respectively to obtain the first lung lobe segmentation image and the second lung lobe segmentation image.

[0164] Preferably, the method by which the segmentation unit performs lung lobe segmentation on the first lung image to obtain the first lung lobe segmentation image is the same as the method by which the segmentation unit performs lung lobe segmentation on the second lung image to obtain the second lung lobe segmentation image, namely:

[0165] 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;

[0166] The fissure features of any two pulmonary lobes in the sagittal plane, coronal plane and transverse plane are used to correct the fissure features of the third pulmonary lobe;

[0167] The first lung image and the second lung image are segmented using the corrected lobe fissure features to obtain a first lobe segmentation image and a second lobe segmentation image.

[0168] Optionally, the calculation unit calculates the distances between the first crack lines and the second crack lines at the corresponding positions respectively, and the specific method for obtaining the distances is:

[0169] Take the first crack line and the second crack line at the same layer number respectively;

[0170] A number of first crack points are selected on the first crack line, and a number of distances from the first crack points to the second crack lines are calculated respectively. The average of the distances is taken to obtain the distance between the first crack line and the second crack line at the same number of layers.

[0171] Optionally, a specific method for respectively calculating a number of distances from a number of first crack points to a number of second crack lines is:

[0172] Also select a number of second crack points on the second crack line;

[0173] Step 1: Calculate the distance from one of the first crack points to all the second crack points to obtain the distances between the points;

[0174] Step 2: Take the minimum value of the distances between several points to obtain the distance from the point to the second crack line;

[0175] The method of step 1 and step 2 is performed on all points among the first crack points to obtain a number of distances.

[0176] In addition, an embodiment of the present invention also provides a device for determining the motion displacement of a lung fissure plane, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any method for determining the motion displacement of a lung fissure plane provided by the present invention. The corresponding technical solutions and descriptions are referred to in the corresponding records of the method part and will not be repeated here.

[0177] In some embodiments, the functions or modules included in the device provided by the embodiments of the present invention can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0178] The above embodiments are only for expressing the implementation mode of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present invention, several modifications, equivalent substitutions, improvements, etc. can be made, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.

Claims

1. A method for determining the motion displacement of a lung fissure plane, characterized in that: include: Acquire a first lung lobe segmentation image and a second lung lobe segmentation image during the process of inspiration and / or exhalation; Extracting the fissure lines of the first lung lobe segmentation image and the second lung lobe segmentation image respectively to obtain a plurality of first fissure lines and a plurality of second fissure lines; respectively calculating the distances between the corresponding first crack lines and the corresponding second crack lines to obtain a number of distances; Determine the motion displacement of the plane of the pulmonary fissure based on several distances; The corresponding first fissure lines and the corresponding second fissure lines are fissure lines for segmenting two adjacent lobes of the same number of layers; the first lobe segmentation image and the second lobe segmentation image are lobe segmentation results corresponding to the multi-layer sub-images, each layer of the sub-image includes multiple lobes, a fissure line is formed between adjacent lobes, and the fissure lines formed between the same lobes in each layer of the sub-image constitute a lung fissure plane; Before acquiring the first lung lobe segmentation image and the second lung lobe segmentation image during the inhalation and / or exhalation process of the lung, the method further includes: Acquiring a first lung image and a second lung image during inspiration and / or expiration; Performing lung lobe segmentation on the first lung image and the second lung image respectively to obtain a first lung lobe segmentation image and a second lung lobe segmentation image; The method of performing pulmonary lobe segmentation on the first lung image to obtain the first pulmonary lobe segmentation image is the same as the method of performing pulmonary lobe segmentation on the second lung image to obtain the second pulmonary lobe segmentation image. The pulmonary lobe segmentation on the first lung image and the second lung image to obtain the first pulmonary lobe segmentation image and the second pulmonary lobe segmentation image comprises: 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; The fissure features of any two pulmonary lobes in the sagittal plane, coronal plane and transverse plane are used to correct the fissure features of the third pulmonary lobe; Segmenting the first lung image and the second lung image using the corrected lobe fissure features to obtain a first lobe segmentation image and a second lobe segmentation image; The method of correcting the third lobe fissure feature by using any two lobe fissure features in the sagittal plane, the coronal plane and the transverse plane includes: Mapping the two pulmonary lobe fissure features to the viewing angle of the third pulmonary lobe fissure feature; Correcting the third pulmonary lobe fissure feature by using the mapped features of any two pulmonary lobe fissures; Wherein, the method of correcting the third lobe fissure feature by using the mapped features of any two lobes of the lung comprises: Using the mapped features of any two pulmonary lobe fissures and the third pulmonary lobe fissure feature to perform spatial attention feature fusion to obtain a first fusion feature and a second fusion feature; Obtaining the corrected third lobe fissure feature according to the first fusion feature and the second fusion feature; The method of fusing the spatial attention features by 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 includes: Respectively connecting the any two lobe fissure features with the third lobe fissure feature to obtain a first connection feature and a second connection feature; Performing a first convolution operation on the first connection feature to obtain a first convolution feature, and performing a first convolution operation on the second connection feature to obtain a second convolution feature; Performing a second convolution operation on the first convolution feature to obtain a first attention coefficient, and performing a second convolution operation on the second convolution feature to obtain a second attention coefficient; Obtaining the first fused feature by using the first convolution feature and the first attention coefficient, and obtaining the second fused feature by using the second convolution feature and the second attention coefficient; The method of obtaining the first fused feature by using the first convolution feature and the first attention coefficient, and obtaining the second fused feature by using the second convolution feature and the second attention coefficient, includes: The first fusion feature is obtained by adding the feature obtained by multiplying the first convolution feature by the first attention coefficient to the first convolution feature; the second fusion feature is obtained by adding the feature obtained by multiplying the second convolution feature by the second attention coefficient to the second convolution feature; or The feature obtained by multiplying the first convolution feature by the first attention coefficient is added to the first convolution feature, and several convolution operations are performed on the added feature to obtain the first fused feature; the feature obtained by multiplying the second convolution feature by the second attention coefficient is added to the second convolution feature, and several convolution operations are performed on the added feature to obtain the second fused feature.

2. The determination method according to claim 1, characterized in that: The step of respectively calculating the distances between the corresponding first crack lines and the corresponding second crack lines to obtain the distances comprises: respectively taking the first crack lines and the second crack lines at the same number of layers; A number of first crack points are selected on the first crack line, and a number of distances from the first crack points to the second crack lines are calculated respectively. The average of the distances is taken to obtain the distance between the first crack line and the second crack line at the same number of layers.

3. The determination method according to claim 2, characterized in that: The calculating of the distances from the first crack points to the second crack lines comprises: Take a number of second crack points on the second crack line; Calculate the distance from one of the first crack points to the second crack points to obtain the distances between the points; Take the minimum value of the distances between several points to get the distance from the corresponding point to the second crack line; The distance to the second crack line is calculated for each point in the plurality of first crack points to obtain a plurality of distances.

4. The determination method according to claim 1, characterized in that: The first lung lobe segmentation image is represented in the form of a first mask image, the second lung lobe segmentation image is represented in the form of a second mask image, and the crack lines of the first lung lobe segmentation image and the second lung lobe segmentation image are respectively extracted to obtain a plurality of first crack lines and a plurality of second crack lines, including: Determine whether mask values ​​of adjacent pixels of the first mask image are the same, and form a plurality of first pixel groups based on two pixels with different mask values; determine crack points corresponding to the pixel groups based on position information of each pixel in each first pixel group; and form a plurality of first crack lines based on each crack point in the first mask image; Determine whether the mask values ​​of adjacent pixels of the second mask image are the same, and form several second pixel groups based on two pixels with different mask values; determine the crack points corresponding to the pixel groups based on the position information of each pixel in each second pixel group; and form several second crack lines based on each crack point in the second mask image.

5. The determination method according to claim 1, characterized in that: Determining the motion displacement of the lung fissure plane according to a number of distances comprises: If the first lung lobe segmentation image and / or the first lung lobe segmentation image includes lung lobe segmentation results corresponding to multiple layers of sub-images, the motion displacement of the lung fissure plane is determined using the distance between the fissure lines corresponding to the sub-images with the same number of layers.

6. A device for determining the motion displacement of a lung fissure plane, characterized in that: include: An acquisition unit, used for acquiring a first lung lobe segmentation image and a second lung lobe segmentation image during the process of inspiration and / or exhalation; An extraction unit, used to extract the fissure lines of the first lung lobe segmentation image and the second lung lobe segmentation image respectively, to obtain a plurality of first fissure lines and a plurality of second fissure lines; A calculation unit is used to respectively calculate the distances between the corresponding first fissure lines and the corresponding second fissure lines to obtain a number of distances, wherein the corresponding first fissure lines and the corresponding second fissure lines are fissure lines for segmenting two adjacent lobes of the same layer; the first lobe segmentation image and the second lobe segmentation image are lobe segmentation results corresponding to multi-layer sub-images, each layer of sub-image includes a plurality of lobes, a fissure line is formed between adjacent lobes, and the fissure lines formed between the same lobes in each layer of sub-image constitute a pulmonary fissure plane; a determination unit, for determining a motion displacement of a lung fissure plane according to a number of distances; The corresponding first fissure lines and the corresponding second fissure lines are fissure lines used to divide the same two adjacent lung lobes; The device further comprises: a segmentation unit; the segmentation unit is connected to the acquisition unit, and before the acquisition unit acquires the first lung lobe segmentation image and the second lung lobe segmentation image of the lung during the inhalation and / or exhalation process, the segmentation unit acquires the first lung image and the second lung image during the inhalation and / or exhalation process, and performs lung lobe segmentation on the first lung image and the second lung image respectively, to obtain the first lung lobe segmentation image and the second lung lobe segmentation image; The method by which the segmentation unit performs pulmonary lobe segmentation on the first lung image to obtain the first pulmonary lobe segmentation image is the same as the method by which the segmentation unit performs pulmonary lobe segmentation on the second lung image to obtain the second pulmonary lobe segmentation image, which is: obtaining the pulmonary lobe fissure features of the lung image in the sagittal plane, the pulmonary lobe fissure features in the coronal plane, and the pulmonary lobe fissure features in the transverse section; correcting the third pulmonary lobe fissure feature using any two pulmonary lobe fissure features in the sagittal plane, the coronal plane, and the transverse section; and segmenting the first lung image and the second lung image using the corrected pulmonary lobe fissure features to obtain the first pulmonary lobe segmentation image and the second pulmonary lobe segmentation image; The method of correcting the third lobe fissure feature by using any two lobe fissure features in the sagittal plane, the coronal plane and the transverse plane includes: Mapping the two pulmonary lobe fissure features to the viewing angle of the third pulmonary lobe fissure feature; Correcting the third pulmonary lobe fissure feature by using the mapped features of any two pulmonary lobe fissures; Wherein, the method of correcting the third lobe fissure feature by using the mapped features of any two lobes of the lung comprises: Using the mapped features of any two pulmonary lobe fissures and the third pulmonary lobe fissure feature to perform spatial attention feature fusion to obtain a first fusion feature and a second fusion feature; Obtaining the corrected third lobe fissure feature according to the first fusion feature and the second fusion feature; The method of fusing the spatial attention features by 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 includes: Respectively connecting the any two lobe fissure features with the third lobe fissure feature to obtain a first connection feature and a second connection feature; Performing a first convolution operation on the first connection feature to obtain a first convolution feature, and performing a first convolution operation on the second connection feature to obtain a second convolution feature; Performing a second convolution operation on the first convolution feature to obtain a first attention coefficient, and performing a second convolution operation on the second convolution feature to obtain a second attention coefficient; Obtaining the first fused feature by using the first convolution feature and the first attention coefficient, and obtaining the second fused feature by using the second convolution feature and the second attention coefficient; The method of obtaining the first fused feature by using the first convolution feature and the first attention coefficient, and obtaining the second fused feature by using the second convolution feature and the second attention coefficient, includes: The first fusion feature is obtained by adding the feature obtained by multiplying the first convolution feature by the first attention coefficient to the first convolution feature; the second fusion feature is obtained by adding the feature obtained by multiplying the second convolution feature by the second attention coefficient to the second convolution feature; or The feature obtained by multiplying the first convolution feature by the first attention coefficient is added to the first convolution feature, and several convolution operations are performed on the added feature to obtain the first fused feature; the feature obtained by multiplying the second convolution feature by the second attention coefficient is added to the second convolution feature, and several convolution operations are performed on the added feature to obtain the second fused feature.

7. 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 determining the motion displacement of the lung fissure plane as described in any one of claims 1 to 5 are implemented.

8. A storage medium, characterized in that: The computer-readable storage medium stores a terminal program, and when the terminal program is executed by a processor, the steps of the method for determining the motion displacement of the lung fissure plane according to any one of claims 1 to 5 are implemented.