Lumbar vertebra segmentation method, device, electronic device and computer-readable storage medium
Through the feature extraction and attention mechanism of the multi-task FADNet network model, the accuracy and efficiency problems of traditional lumbar segmentation methods are solved, and more efficient and accurate lumbar segmentation is achieved.
Patent Information
- Application Number
- CN202310275163.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-03-21
AI Technical Summary
Traditional lumbar segmentation methods have poor segmentation accuracy, cumbersome and time-consuming operations, and are difficult to segment lumbar spine quickly and accurately.
A lumbar vertebra segmentation method based on the multi-task FADNet network model is adopted, using multi-layer convolutional networks, down-sampling networks and up-sampling networks to extract features, and in the up-sampling process, feature sharing mechanisms and attention mechanism networks are used to enhance the detection of boundary features. Segmentation accuracy.
It improves the accuracy and efficiency of lumbar spine segmentation, can output segmentation results of multiple parts at the same time, shortens segmentation time, and has better segmentation accuracy than traditional methods.
Smart Images

Figure CN116563314B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of deep learning intelligent recognition technology, and in particular, relates to a lumbar vertebra segmentation method, device, electronic device and computer-readable storage medium based on a multi-task FADNet network model. Background Art
[0002] Traditional lumbar segmentation methods are based on threshold segmentation, edge detection or region growing. This method has poor segmentation accuracy, roughly segments the target area, and cannot accurately segment the target area boundary. Moreover, this method is cumbersome and time-consuming.
[0003] Therefore, how to perform lumbar segmentation quickly and accurately is a technical problem that technical personnel in this field need to solve urgently. Summary of the invention
[0004] The embodiments of the present application provide a lumbar vertebra segmentation method, device, electronic device and computer-readable storage medium based on a multi-task FADNet network model, which can perform lumbar vertebra segmentation quickly and accurately.
[0005] In a first aspect, an embodiment of the present application provides a lumbar vertebra segmentation method based on a multi-task FADNet network model, comprising:
[0006] Acquire a lumbar vertebra image to be segmented;
[0007] Input the lumbar vertebra image into the preset multi-task FADNet network model and output the lumbar vertebra segmentation result;
[0008] The lumbar segmentation result includes segmentation results of multiple parts of the lumbar spine;
[0009] The multi-task FADNet network model is obtained through model training based on the multi-task FADNet network. The multi-task FADNet network adopts a multi-layer convolutional network, a downsampling network and an upsampling network structure to extract features; at the same time, a feature sharing mechanism is adopted in the upsampling process to share the upsampled features of the two network branches to improve the segmentation accuracy; and an attention mechanism network is added to the jump connection between each pair of adjacent decoder branches and encoder branches in each layer to enhance the segmentation of boundary features.
[0010] Optionally, the feature sharing mechanism is: for each scale, the upsampling result of the first network branch is fused with the upsampling result of the second network branch at the same scale, the fusion result is fused with the attention features of each network branch at the same scale, and the fusion result is input into the next upsampling convolution.
[0011] Optionally, before inputting the lumbar spine image into a preset multi-task FADNet network model, the method further includes:
[0012] Obtain a lumbar spine image dataset;
[0013] Annotate the lumbar region of the lumbar image in the lumbar image data set, and determine the lumbar region as a segmentation mask; wherein each segmentation mask corresponds to the lumbar image one by one;
[0014] Convert each lumbar vertebra image and its corresponding segmentation mask into PNG format;
[0015] All lumbar images converted to PNG format and their corresponding segmentation masks are divided into training set, validation set and test set according to the preset ratio.
[0016] Optionally, after all lumbar vertebrae images converted into PNG format and their corresponding segmentation masks are divided into a training set, a validation set, and a test set according to a preset ratio, the method further includes:
[0017] The multi-task FADNet network model is trained using the training set, and the validation set and test set are used for verification and testing to obtain the multi-task FADNet network model.
[0018] Optionally, the multi-task FADNet network model is trained using the training set, and the validation set and the test set are used for validation and testing to obtain the multi-task FADNet network model, including:
[0019] During model training, set the batch_size of training to 64;
[0020] Set the initial learning rate to 1e-4, and add a learning rate decay strategy. Every 5000 iterations, the learning rate decays to 0.9 of the previous learning rate.
[0021] Set the optimizer to Adam optimizer;
[0022] Set the loss function to DICE loss;
[0023] The training set and validation set are verified once every 1000 iterations. The early stopping method is used to determine the stopping time of network training, and the multi-task FADNet network model is obtained.
[0024] Optionally, the attention mechanism network includes a position attention mechanism network and a channel attention mechanism network;
[0025] Among them, the position attention mechanism network is used to selectively aggregate the features of each position through the weighted sum of the features at all positions;
[0026] A channel attention mechanism network is used to selectively emphasize interdependent channel maps by integrating relevant features between all channel maps.
[0027] Optional, positional attention network for selectively aggregating features at each position via a weighted sum of features at all positions, including:
[0028] Initialize and generate a position attention matrix to model the relationship between any two points;
[0029] Perform matrix multiplication on the position attention matrix and the feature matrix to obtain the multiplication result;
[0030] The multiplication result and the feature matrix are added element by element to obtain a final result that has a certain representation ability for the global semantics.
[0031] In a second aspect, an embodiment of the present application provides a lumbar vertebra segmentation device based on a multi-task FADNet network model, comprising:
[0032] An image acquisition module, used for acquiring the lumbar vertebrae image to be segmented;
[0033] The lumbar vertebra segmentation result acquisition module is used to input the lumbar vertebra image into the preset multi-task FADNet network model and output the lumbar vertebra segmentation result;
[0034] The lumbar segmentation result includes segmentation results of multiple parts of the lumbar spine;
[0035] The multi-task FADNet network model is obtained through model training based on the multi-task FADNet network. The multi-task FADNet network adopts a multi-layer convolutional network, a downsampling network and an upsampling network structure to extract features; at the same time, a feature sharing mechanism is adopted in the upsampling process to share the upsampled features of the two network branches to improve the segmentation accuracy; and an attention mechanism network is added to the jump connection between each pair of adjacent decoder branches and encoder branches in each layer to enhance the segmentation of boundary features.
[0036] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;
[0037] When the processor executes the computer program instructions, it implements the lumbar vertebra segmentation method based on the multi-task FADNet network model as shown in the first aspect.
[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the lumbar vertebra segmentation method based on the multi-task FADNet network model as shown in the first aspect is implemented.
[0039] The lumbar vertebra segmentation method based on the multi-task FADNet network model includes: obtaining a lumbar vertebra image to be segmented; inputting the lumbar vertebra image into a preset multi-task FADNet network model, and outputting a lumbar vertebra segmentation result; wherein the lumbar vertebra segmentation result includes segmentation results of multiple parts of the lumbar vertebra; the multi-task FADNet network model is obtained through model training based on the multi-task FADNet network, and the multi-task FADNet network adopts a multi-layer convolutional network, a downsampling network and an upsampling network structure for feature extraction; at the same time, a feature sharing mechanism is adopted in the upsampling process to share the upsampling features of two network branches to improve the segmentation accuracy; and an attention mechanism network is added in the jump connection between each pair of adjacent decoder branches and encoder branches in each layer to enhance the segmentation of boundary features.
[0040] It can be seen that, on the one hand, the multi-task FADNet network of this method adopts a multi-layer convolutional network, a downsampling network and an upsampling network structure to extract features; at the same time, a feature sharing mechanism is adopted in the upsampling process to share the upsampling features of the two network branches to improve the segmentation accuracy; and an attention mechanism network is added to the jump connection between each pair of adjacent decoder branches and encoder branches in each layer to enhance the segmentation of boundary features, which can improve the accuracy of lumbar vertebra segmentation; on the other hand, this method can simultaneously output the segmentation results of multiple parts of the lumbar vertebra, which can improve the efficiency of lumbar vertebra segmentation. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 It is a flowchart of a lumbar vertebra segmentation method based on a multi-task FADNet network model provided by an embodiment of the present application;
[0043] Figure 2 This is a schematic diagram of a multi-task FADNet network structure provided by an embodiment of the present application;
[0044] Figure 3 This is a schematic diagram of the attention mechanism network structure provided by an embodiment of the present application;
[0045] Figure 4 This is a schematic diagram of a deep aggregation pyramid network structure provided by an embodiment of the present application;
[0046] Figure 5 is a schematic diagram of three-dimensional reconstruction of DICOM data provided by an embodiment of the present application;
[0047] Figure 6 It is a structural schematic diagram of a lumbar vertebra segmentation device based on a multi-task FADNet network model provided by an embodiment of the present application;
[0048] Figure 7 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0049] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0050] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0051] Traditional lumbar segmentation methods are based on threshold segmentation, edge detection or region growing. This method has poor segmentation accuracy, roughly segments the target area, and cannot accurately segment the target area boundary. Moreover, this method is cumbersome and time-consuming.
[0052] In order to solve the problems of the prior art, the embodiments of the present application provide a lumbar vertebra segmentation method, device, apparatus and computer-readable storage medium based on a multi-task FADNet network model. The lumbar vertebra segmentation method based on a multi-task FADNet network model provided by the embodiments of the present application is first introduced below.
[0053] Figure 1FIG. 1 is a flow chart of a lumbar vertebra segmentation method based on a multi-task FADNet network model provided by an embodiment of the present application. Figure 1 As shown, the lumbar segmentation method based on the multi-task FADNet network model includes:
[0054] S101, obtaining a lumbar vertebra image to be segmented;
[0055] S102, inputting the lumbar vertebra image into a preset multi-task FADNet network model, and outputting a lumbar vertebra segmentation result;
[0056] The lumbar segmentation result includes segmentation results of multiple parts of the lumbar spine;
[0057] The multi-task FADNet network model is obtained through model training based on the multi-task FADNet network. The multi-task FADNet network adopts a multi-layer convolutional network, a downsampling network and an upsampling network structure to extract features; at the same time, a feature sharing mechanism is adopted in the upsampling process to share the upsampled features of the two network branches to improve the segmentation accuracy; and an attention mechanism network is added to the jump connection between each pair of adjacent decoder branches and encoder branches in each layer to enhance the segmentation of boundary features.
[0058] In one embodiment, the feature sharing mechanism is as follows: for each scale, the upsampling result of the first network branch is fused with the upsampling result of the second network branch at the same scale, the fusion result is fused with the attention features of each network branch at the same scale, and the fusion result is input into the next upsampling convolution.
[0059] Specifically, Figure 2 is a schematic diagram of a multi-task FADNet network structure provided by an embodiment of the present application, Figure 2 The multi-task FADNet network structure shown in the figure integrates multi-scale and multi-level feature information, which can complement and enhance shallow local details with deep abstract features to achieve better segmentation results. The multi-task FADNet network outputs multiple segmentation results, which are used to extract features of different vertebral parts of the lumbar spine. Single-task segmentation only outputs one result, that is, it can only segment one part. Multi-task can segment multiple parts at the same time, greatly shortening the segmentation time.
[0060] The multi-task FADNet network uses a multi-layer convolution, downsampling and upsampling architecture to extract features. At the same time, a feature sharing mechanism is used in the upsampling process to share the upsampling features of the two branch networks to improve segmentation accuracy. The upsampling result of the first network branch is fused with the upsampling result of the second network branch at the same scale, and the fusion result is fused with the attention features of each branch at the same scale, and the fusion result is input into the next upsampling convolution. In the next upsampling process, the upper and lower branch features are also fused, and the fusion result is fused with the attention features of each branch at the same scale, and the fusion result is input into the next upsampling convolution. The final output result of the network stacks the results of the first network branch and the second network branch.
[0061] There is a jump connection between each pair of adjacent decoder branches and encoder branches in each layer. Here, an attention mechanism is added to the jump connection to enhance the segmentation of boundary features. The convolution layer uses residual convolution, that is, a residual unit composed of 1x1, 3x3 and 1x1 convolution kernels, in order to reduce feature loss. Due to the existence of jump connections and residual convolutions, as well as more information flow paths in the U-shaped network, the segmentation accuracy can be improved in the end.
[0062] It can be seen that, on the one hand, the multi-task FADNet network of this method adopts a multi-layer convolutional network, a downsampling network and an upsampling network structure to extract features; at the same time, a feature sharing mechanism is adopted in the upsampling process to share the upsampling features of the two network branches to improve the segmentation accuracy; and an attention mechanism network is added to the jump connection between each pair of adjacent decoder branches and encoder branches in each layer to enhance the segmentation of boundary features, which can improve the accuracy of lumbar vertebra segmentation; on the other hand, this method can simultaneously output the segmentation results of multiple parts of the lumbar vertebra, which can improve the efficiency of lumbar vertebra segmentation.
[0063] In one embodiment, before inputting the lumbar vertebra image into the preset multi-task FADNet network model, the method further includes:
[0064] Obtain a lumbar spine image dataset;
[0065] Annotate the lumbar region of the lumbar image in the lumbar image data set, and determine the lumbar region as a segmentation mask; wherein each segmentation mask corresponds to the lumbar image one by one;
[0066] Convert each lumbar vertebra image and its corresponding segmentation mask into PNG format;
[0067] All lumbar images converted to PNG format and their corresponding segmentation masks are divided into training set, validation set and test set according to the preset ratio.
[0068] Specifically, we obtain a lumbar spine medical image dataset, manually annotate the lumbar spine area, and finally extract only the labels containing the lumbar spine as our segmentation mask. We convert the two-dimensional cross-sectional DICOM data into PNG format images, and convert the annotated segmentation mask into PNG format images. After shuffling the order, we divide them into training set, validation set, and test set in a ratio of 6:2:2.
[0069] In one embodiment, after all lumbar vertebrae images converted into PNG format and their corresponding segmentation masks are divided into a training set, a validation set, and a test set according to a preset ratio, the method further includes:
[0070] The multi-task FADNet network model is trained using the training set, and the validation set and test set are used for verification and testing to obtain the multi-task FADNet network model.
[0071] In one embodiment, a multi-task FADNet network is trained using a training set, and a verification set and a test set are used for verification and testing to obtain a multi-task FADNet network model, including:
[0072] During model training, set the batch_size of training to 64;
[0073] Set the initial learning rate to 1e-4, and add a learning rate decay strategy. Every 5000 iterations, the learning rate decays to 0.9 of the previous learning rate.
[0074] Set the optimizer to Adam optimizer;
[0075] Set the loss function to DICE loss;
[0076] The training set and validation set are verified once every 1000 iterations. The early stopping method is used to determine the stopping time of network training, and the multi-task FADNet network model is obtained.
[0077] In one embodiment, the loss function Loss calculation formula used is:
[0078] CELoss=-[y log y′+(1-y)log(1-y′)]
[0079]
[0080] Loss=α·CELoss+(1-α)·DiceLoss
[0081] Among them, CELoss is the cross entropy loss function, DiceLoss is the Dice loss function, y is the label value, y′ is the predicted value, and α is the loss weight coefficient.
[0082] In one embodiment, the attention mechanism network includes a position attention mechanism network and a channel attention mechanism network;
[0083] Among them, the position attention mechanism network is used to selectively aggregate the features of each position through the weighted sum of the features at all positions;
[0084] A channel attention mechanism network is used to selectively emphasize interdependent channel maps by integrating relevant features between all channel maps.
[0085] In one embodiment, a position attention mechanism network is used to selectively aggregate features at each position by weighted sum of features at all positions, including:
[0086] Initialize and generate a position attention matrix to model the relationship between any two points;
[0087] Perform matrix multiplication on the position attention matrix and the feature matrix to obtain the multiplication result;
[0088] The multiplication result and the feature matrix are added element by element to obtain a final result that has a certain representation ability for the global semantics.
[0089] Specifically, Figure 3 The attention mechanism network structure shown in the figure consists of a position attention module and a channel attention module. In the position attention module, a position attention matrix is first initialized to model the relationship between any two points. Then, the attention matrix is multiplied with the feature matrix. Then, the multiplication result and the original feature matrix are added element by element to obtain a result with a certain representation ability for the global semantics. The operation of the channel attention module is similar, except that the multiplication is calculated in the channel dimension. Finally, the results of the two modules are aggregated to obtain a better representation result and output the attention feature.
[0090] In one embodiment, Figure 4 This is a schematic diagram of a deep aggregation pyramid network structure provided by an embodiment of the present application. The network structure includes four branches, each of which uses a 1x1 or 3x3 convolution kernel to extract features. The input feature map passes through the four branches in parallel to obtain four outputs, and then the results of the four branches are fused and output through a 1x1 convolution kernel.
[0091] DICOM data is reconstructed in three dimensions. The reconstruction effect is as follows: Figure 5 shown.
[0092] Based on the FADNet network, this paper introduces an attention optimization mechanism and a multi-scale feature fusion module to fuse the shallow detail features with the deep abstract features obtained by the multi-scale feature fusion module to obtain enhanced content features and improve the accuracy of lumbar vertebrae segmentation.
[0093] The FADNet network is designed as a multi-task mechanism, which can segment multiple parts of the lumbar spine at the same time. Compared with the single-task mechanism, it can reduce the segmentation time. At the same time, the feature sharing mechanism is adopted in the upsampling process to share the upsampled features of the two branch networks to improve the segmentation accuracy.
[0094] Dual attention optimization mechanism: used to calculate global feature dependencies in spatial and channel dimensions, use the position attention module to learn the spatial interdependence of features, and design the channel attention module to simulate channel interdependence, which helps to achieve more accurate segmentation results.
[0095] The method provided in this application can accurately segment the lumbar vertebrae with better segmentation accuracy than the currently available neural networks, and can more accurately assist doctors in surgical planning and improve the success rate of surgery.
[0096] Figure 6 FIG. 1 is a schematic diagram of a lumbar segmentation device based on a multi-task FADNet network model provided by an embodiment of the present application. Figure 6 As shown, the lumbar segmentation device based on the multi-task FADNet network model includes:
[0097] An image acquisition module 601 is used to acquire a lumbar vertebra image to be segmented;
[0098] The lumbar vertebra segmentation result acquisition module 602 is used to input the lumbar vertebra image into a preset multi-task FADNet network model and output the lumbar vertebra segmentation result;
[0099] The lumbar segmentation result includes segmentation results of multiple parts of the lumbar spine;
[0100] The multi-task FADNet network model is obtained through model training based on the multi-task FADNet network. The multi-task FADNet network adopts a multi-layer convolutional network, a downsampling network and an upsampling network structure to extract features; at the same time, a feature sharing mechanism is adopted in the upsampling process to share the upsampled features of the two network branches to improve the segmentation accuracy; and an attention mechanism network is added to the jump connection between each pair of adjacent decoder branches and encoder branches in each layer to enhance the segmentation of boundary features.
[0101] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown.
[0102] The electronic device may include a processor 701 and a memory 702 storing computer program instructions.
[0103] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0104] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 702 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 702 may be inside or outside the electronic device. In a particular embodiment, the memory 702 may be a non-volatile solid-state memory.
[0105] In one embodiment, the memory 702 may be a read-only memory (ROM). In one embodiment, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0106] The processor 701 reads and executes the computer program instructions stored in the memory 702 to implement any one of the lumbar vertebra segmentation methods based on the multi-task FADNet network model in the above embodiments.
[0107] In one example, the electronic device may further include a communication interface 703 and a bus 710. Figure 7 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 710 and communicate with each other.
[0108] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0109] Bus 710 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 710 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0110] In addition, in combination with the lumbar vertebra segmentation method based on the multi-task FADNet network model in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the lumbar vertebra segmentation methods based on the multi-task FADNet network model in the above embodiment is implemented.
[0111] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0112] The functional modules shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable media" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0113] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0114] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0115] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A lumbar vertebra segmentation method based on a multi-task FADNet network model, characterized in that: include: Acquire a lumbar vertebra image to be segmented; Inputting the lumbar vertebra image into a preset multi-task FADNet network model, and outputting a lumbar vertebra segmentation result; Wherein, the lumbar vertebra segmentation result includes segmentation results of multiple parts of the lumbar vertebra; The multi-task FADNet network model is obtained through model training based on the multi-task FADNet network. The multi-task FADNet network adopts a multi-layer convolutional network, a downsampling network and an upsampling network structure to extract features; at the same time, a feature sharing mechanism is adopted in the upsampling process to share the upsampling features of the two network branches to improve the segmentation accuracy; and an attention mechanism network is added to the jump connection between each pair of adjacent decoder branches and encoder branches in each layer to enhance the segmentation of boundary features; The feature sharing mechanism is: for each scale, the upsampling result of the first network branch is fused with the upsampling result of the second network branch at the same scale, the fusion result is fused with the attention features of each network branch at the same scale, and the fusion result is input into the next upsampling convolution.
2. The lumbar vertebra segmentation method based on the multi-task FADNet network model according to claim 1 is characterized in that: Before inputting the lumbar vertebra image into a preset multi-task FADNet network model, the method further includes: Obtain a lumbar spine image dataset; Annotating the lumbar region of the lumbar image in the lumbar image data set, and determining the lumbar region as a segmentation mask; wherein each segmentation mask corresponds to the lumbar image one by one; Convert each lumbar vertebra image and its corresponding segmentation mask into a PNG format; All lumbar images converted to PNG format and their corresponding segmentation masks are divided into training set, validation set and test set according to the preset ratio.
3. The lumbar vertebra segmentation method based on the multi-task FADNet network model according to claim 2 is characterized in that: After all lumbar vertebrae images converted into PNG format and their corresponding segmentation masks are divided into a training set, a validation set and a test set according to a preset ratio, the method further includes: The multi-task FADNet network is trained by using the training set, and is verified and tested by using the verification set and the test set to obtain the multi-task FADNet network model.
4. The lumbar vertebra segmentation method based on the multi-task FADNet network model according to claim 3 is characterized in that: The multi-task FADNet network model is trained by using the training set, and the verification set and the test set are used for verification and testing to obtain the multi-task FADNet network model, including: During model training, set the batch_size of training to 64; Set the initial learning rate to 1e-4, and add a learning rate decay strategy. Every 5000 iterations, the learning rate decays to 0.9 of the previous learning rate. Set the optimizer to Adam optimizer; Set the loss function to DICEloss; The training set and the validation set are validated once every 1000 iterations, and the network training stop time is determined by the early stopping method to obtain the multi-task FADNet network model.
5. The lumbar vertebra segmentation method based on the multi-task FADNet network model according to claim 1 is characterized in that: The attention mechanism network includes a position attention mechanism network and a channel attention mechanism network; The position attention mechanism network is used to selectively aggregate the features of each position by weighted sum of the features at all positions; The channel attention mechanism network is used to selectively emphasize interdependent channel mappings by integrating relevant features between all channel mappings.
6. The lumbar vertebra segmentation method based on the multi-task FADNet network model according to claim 5 is characterized in that: The position attention mechanism network is used to selectively aggregate the features of each position through the weighted sum of the features at all positions, including: Initialize and generate a position attention matrix to model the relationship between any two points; Performing matrix multiplication on the position attention matrix and the feature matrix to obtain a multiplication result; The multiplication result and the feature matrix are added element by element to obtain a final result having a certain representation capability for the global semantics.
7. A lumbar vertebra segmentation device based on a multi-task FADNet network model, characterized in that: include: An image acquisition module, used for acquiring the lumbar vertebrae image to be segmented; A lumbar vertebra segmentation result acquisition module is used to input the lumbar vertebra image into a preset multi-task FADNet network model and output a lumbar vertebra segmentation result; Wherein, the lumbar vertebra segmentation result includes segmentation results of multiple parts of the lumbar vertebra; The multi-task FADNet network model is obtained through model training based on the multi-task FADNet network. The multi-task FADNet network adopts a multi-layer convolutional network, a downsampling network and an upsampling network structure to extract features; at the same time, a feature sharing mechanism is adopted in the upsampling process to share the upsampling features of the two network branches to improve the segmentation accuracy; and an attention mechanism network is added to the jump connection between each pair of adjacent decoder branches and encoder branches in each layer to enhance the segmentation of boundary features; The feature sharing mechanism is: for each scale, the upsampling result of the first network branch is fused with the upsampling result of the second network branch at the same scale, the fusion result is fused with the attention features of each network branch at the same scale, and the fusion result is input into the next upsampling convolution.
8. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the lumbar vertebra segmentation method based on the multi-task FADNet network model as described in any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the lumbar vertebra segmentation method based on the multi-task FADNet network model according to any one of claims 1 to 6 is implemented.
