Diabetic retinopathy segmentation method based on Poisson fusion data enhancement
Through Poisson fusion data enhancement and improvement of U-Net++ network structure, the problem of inaccurate information extraction by convolutional neural network in diabetic retinopathy image segmentation is solved, achieving higher segmentation accuracy and efficiency.
Patent Information
- Application Number
- CN202410827232.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-25
AI Technical Summary
It is difficult for existing convolutional neural networks to accurately extract effective information in diabetic retinopathy image segmentation, resulting in errors in the output results and redundant information being extracted.
Using a method based on Poisson fusion data enhancement, the lesion image is expanded through the Poisson fusion algorithm of mean coordinates, and a segmentation network structure based on the U-Net++ network is constructed, replacing the standard convolution module with a residual module and depth-adjustable Separate convolution, add lightweight channel attention mechanism and improved ASPP module.
Effectively suppress redundant information, improve model performance, improve segmentation accuracy and efficiency, enhance the receptive field of the feature extraction network, and significantly reduce the number of parameters and computational costs.
Smart Images

Figure CN118799336A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical image segmentation, and in particular to a diabetic retinopathy segmentation method based on Poisson fusion data enhancement. Background Art
[0002] Diabetic retinopathy (DR) is a complication of diabetes, which poses a considerable risk to the vision of the working-age population worldwide. According to the latest data released by the International Diabetes Federation (IDF), one in three diabetic patients suffers from DR, and one in three DR patients faces the risk of blindness. Early diagnosis can effectively prevent the progression of DR. However, DR brings a huge economic burden to society every year, and DR screening brings a huge burden to ophthalmologists. Therefore, computer-assisted doctors in diagnosing the disease is a huge challenge and is crucial.
[0003] Convolutional neural networks are often used in the prior art to extract image features in the image segmentation process. However, since convolutional neural networks usually set the number of feature map channels to be very large, the encoder may fail to accurately extract effective information and extract useless information, resulting in errors in the output results. Therefore, we propose a diabetic retinopathy segmentation method based on Poisson fusion data enhancement. Summary of the invention
[0004] The purpose of the present invention is to provide a diabetic retinopathy segmentation method based on Poisson fusion data enhancement, which can enhance effective information, suppress redundant information, and solve the problem that effective information cannot be accurately extracted.
[0005] According to a first aspect of the present invention, in order to achieve the above-mentioned purpose, the present invention provides the following technical solution: a diabetic retinopathy segmentation method based on Poisson fusion data enhancement, comprising the following steps:
[0006] Receive the lesion image, expand the lesion image using a Poisson fusion algorithm based on mean coordinates, pre-process the lesion image, and then divide the data set into a training set and a test set;
[0007] Construct a segmentation network structure based on the U-Net++ network. The segmentation network structure includes an encoder and a decoder. In the encoder, the standard convolution module is replaced by a residual module, and a lightweight channel attention mechanism is added after each residual module.
[0008] Add a lightweight ASPP module to the bottom layer of the segmentation network structure, and replace the original standard convolution in the segmentation network structure with a depth-separable convolution;
[0009] The segmentation network structure is trained using the training set to obtain a trained segmentation network model;
[0010] The test set images are input into the above segmentation network model to obtain the prediction result graph, and the prediction results are evaluated.
[0011] Furthermore, the lesion image is downloaded through the e-ophtha dataset.
[0012] Furthermore, the Poisson fusion algorithm based on mean coordinates is used to expand the lesion image, as follows:
[0013] (1) Determine the target image and background image;
[0014] (2) Set the background area where the target image needs to be fused;
[0015] (3) Fill in the A matrix to solve the Poisson problem;
[0016] (4) Calculate and solve Poisson's B matrix;
[0017] a. The Laplace operator directly calculates the divergence of the target image and obtains the initial B matrix;
[0018] b. Fill the boundary pixels of the B matrix according to the boundary conditions;
[0019] (5) Use the least squares method to solve Ax=B. Since A and B are known, we can directly obtain x, which is the fused image.
[0020] Furthermore, the lesion image is preprocessed, specifically including cropping the image into the same pixel size, and flipping, rotating and affine-transforming the image.
[0021] Furthermore, the feature extractor of the encoder includes 5 stages, each stage consists of a residual module and a lightweight channel attention mechanism, each residual module includes a depth-separable convolution layer, a normalization layer and an activation function layer, and a maximum pooling layer is used between each stage to reduce the feature map to increase the receptive field of the convolution.
[0022] Furthermore, the decoder uses the decoding part of UNet++ to reconstruct the high-resolution feature map, which includes 5 stages, each stage consists of two depth-wise separable convolution modules, each module includes a depth-wise separable convolution layer, a normalization layer and an activation function layer, and an upsampling method is used between each stage to increase the feature map and gradually restore the resolution of the image.
[0023] Furthermore, the lightweight ASPP module is based on the traditional ASPP and has the following improvements:
[0024] (1) The original global pooling branch is removed, and the original four convolution branches are reduced to three. The dilation rates of these three dilated convolution branches are selected as 1, 3, and 5 respectively.
[0025] (2) The original direct merging branches are improved into skip connections to enable the network to capture rich contextual semantic information.
[0026] Furthermore, the depth-wise separable convolution is expressed as follows:
[0027]
[0028] In the formula, K′ represents the filter of the depthwise convolution, G′ represents the output feature map of the depthwise convolution, M represents the input image, i represents the step size in the horizontal direction, j represents the step size in the vertical direction, k represents the number of convolution kernels or the number of channels, m represents the height of the output feature map, and l represents the depth of the input feature map.
[0029] According to a second aspect of the present invention, the present invention provides a diabetic retinopathy segmentation system based on Poisson fusion data enhancement, comprising:
[0030] A preprocessing unit, used for receiving the lesion image, expanding the lesion image by using a Poisson fusion algorithm based on mean coordinates, preprocessing the lesion image, and then dividing the data set into a training set and a test set;
[0031] The module building unit is used to build a segmentation network structure based on the U-Net++ network. The segmentation network structure includes an encoder and a decoder. In the encoder, the standard convolution module is replaced by a residual module, and a lightweight channel attention mechanism is added after each residual module.
[0032] Convolutional pooling unit, which is used to add a lightweight ASPP module to the bottom layer of the segmentation network structure and replace the original standard convolution in the segmentation network structure with a depth-wise separable convolution;
[0033] A training unit, used to train the segmentation network structure using a training set to obtain a trained segmentation network model;
[0034] The prediction unit is used to input the test set image into the above segmentation network model, obtain the prediction result map, and evaluate the prediction result.
[0035] According to a third aspect of the present invention, the present invention provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the memory stores a computer program capable of running on the processor, and when the processor loads and executes the computer program, the above-mentioned diabetic retinopathy segmentation method based on Poisson fusion data enhancement is adopted.
[0036] The present invention has at least the following beneficial effects:
[0037] 1. The present invention adds a residual module and a lightweight channel attention mechanism between the encoder and the decoder, which not only helps to retain the original input information and maintain the flow of information when the network depth increases, but also enables the model to better focus on the important part of the input data and avoid the problem of information loss, and also effectively improves the performance of the model;
[0038] 2. The present invention enhances the receptive field of the feature extraction network by adding a lightweight ASPP module, so that the segmentation network can more fully utilize the feature information of different levels of the image context to be effectively integrated, which helps the segmentation network to show higher accuracy in complex tasks;
[0039] 3. The present invention uses a deep separable convolutional model to significantly reduce the number of parameters and computational costs while maintaining model performance, thereby improving segmentation accuracy and efficiency.
[0040] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a structural schematic diagram of the segmentation network structure in the present invention;
[0042] Figure 2 It is a schematic diagram of the structure of the residual module and the lightweight channel attention mechanism in the present invention;
[0043] Figure 3 It is a schematic diagram of the structure of the traditional ASPP module and the lightweight ASPP module in the present invention;
[0044] Figure 4 It is a schematic diagram of the structure of the depthwise separable convolution in the present invention;
[0045] Figure 5 3 is a schematic diagram for comparing the visualized segmentation results of the ablation experiment in the present invention. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0047] Embodiment 1:
[0048] See also Figure 1-5 The present invention provides a technical solution: a diabetic retinopathy segmentation method based on Poisson fusion data enhancement, comprising the following steps:
[0049] S1. Receive the lesion image, use the Poisson fusion algorithm based on the mean coordinate to expand the lesion image, pre-process it, and then divide the data set into a training set and a test set;
[0050] It should be noted that the data in this embodiment comes from a color fundus image library specifically for diabetic retinopathy (DR) research, specifically the e-ophtha dataset;
[0051] Furthermore, the Poisson fusion algorithm based on mean coordinates is used to expand the lesion image, as follows:
[0052] (1) Determine the target image and background image;
[0053] (2) Set the background area where the target image needs to be fused;
[0054] (3) Fill in the A matrix to solve the Poisson problem;
[0055] (4) Calculate and solve Poisson's B matrix;
[0056] a. The Laplace operator directly calculates the divergence of the target image and obtains the initial B matrix;
[0057] b. Fill the boundary pixels of the B matrix according to the boundary conditions;
[0058] (5) Use the least squares method to solve Ax = B. Since A and B are known, we can directly get x, which is the fused image.
[0059] Further, the lesion image is preprocessed, specifically including cropping the image into the same pixel size, and flipping, rotating and affine-ing the image;
[0060] According to the technical solution of this embodiment, the EX lesion subset includes 82 images, which are divided into 47 images with EX lesions and 35 normal images. The resolutions of these images vary from 1504×1000 pixels to 2544×1696 pixels. This embodiment selects 47 images containing EX lesions from the e-ophtha dataset, and divides these images into a training set and a test set, of which 32 images are used for training and the remaining 15 images are used for testing. In order to facilitate training and reduce memory consumption, these images are cropped and adjusted to a uniform size of 1024×1024 pixels. In addition, the present invention also performs flipping, affine, rotation and other transformations that do not affect the authenticity of the data on the images. Through these means, the generalization ability of the learning model is significantly enhanced, the scale of the training dataset is expanded, and the complexity and variability of the data are improved.
[0061] S2. Construct a segmentation network structure based on the U-Net++ network. The segmentation network structure includes an encoder and a decoder. In the encoder, the standard convolution module is replaced by a residual module, and a lightweight channel attention mechanism is added after each residual module.
[0062] Specifically, the encoder’s feature extractor consists of five stages, each of which consists of a residual module and a lightweight channel attention mechanism. Each residual module contains a depthwise separable convolution layer, a normalization layer, and an activation function layer. A maximum pooling layer is used between each stage to reduce the feature map to increase the receptive field of the convolution.
[0063] The decoder uses the decoding part of UNet++ to reconstruct the high-resolution feature map. It consists of 5 stages. Each stage consists of two depth-wise separable convolution modules. Each module contains a depth-wise separable convolution layer, a normalization layer, and an activation function layer. The upsampling method is used between each stage to increase the feature map and gradually restore the image resolution.
[0064] like Figure 2 The figure shows the DRC module, which consists of DSR-Part and LWCAM. DSR-Part is a residual module, each of which contains a depth-separable convolution layer, a normalization layer, and an activation function layer; LWCAM is a lightweight channel attention mechanism, which is added to the last part of each DRC-Part;
[0065] The LWCAM proposed in this embodiment performs an Add operation after global maximum pooling and global average pooling, and then processes the result through MLP to reduce and increase the dimension to obtain a weight matrix;
[0066] The residual module and lightweight channel attention mechanism are used to maintain the flow of information. Since the number of feature map channels in convolutional neural networks is usually set to be large, the encoder may not be able to extract effective information well, and the extraction of useless information may mislead the output of the network. Therefore, this part can enhance effective information, suppress redundant information, help the model better focus on the important parts of the input data, avoid information loss, and effectively improve the performance of the model.
[0067] S3. Add a lightweight ASPP module to the bottom layer of the segmentation network structure, and replace the original standard convolution in the segmentation network structure with a depth-wise separable convolution;
[0068] Specifically, the lightweight ASPP module is used to enhance the receptive field of the segmentation network, so that the segmentation network can make more full use of the feature information of different levels of the image context to be effectively integrated, which helps the segmentation network to show higher accuracy in complex tasks;
[0069] For the technical solution of this embodiment, Figure 3 As shown in the figure, the lightweight ASPP module is used to extract the fusion of contextual semantic information. The module mainly makes the following improvements based on the traditional ASPP:
[0070] (1) The original global pooling branch was removed, and the original four convolution branches were reduced to three. The dilation rates of these three dilated convolution branches were selected as 1, 3, and 5, respectively, to capture contextual information of different scales while maintaining computational efficiency. Through such improvements, the optimized ASPP module reduces the consumption of computing resources and improves processing speed while maintaining performance;
[0071] (2) The original direct merging branches are improved to skip connections. This improvement enables the network to capture richer contextual semantic information, thereby further improving the network's performance. Through skip connections, feature information at different levels can be effectively integrated, which helps the network to perform more accurately in complex tasks.
[0072] Furthermore, if Figure 4 As shown in the figure, the depthwise separable convolution replaces the original standard convolution module; the standard convolution operation involves a large number of parameters and has a high computational cost, which is particularly prominent in resource-constrained scenarios. To solve this problem, this embodiment uses depthwise separable convolution to reduce the number of parameters and computational cost while maintaining performance;
[0073] like Figure 4 As shown, a set of dimensions D M ×D M ×M feature map M as input, a set of size D G ×DG ×N feature map G is used as output, D M is the width and height of the input feature map, M is the number of input image channels, N is the number of output image channels, and D K ×D K is the convolution kernel size of standard convolution and depthwise convolution, the convolution kernel size of point-by-point convolution is 1×1, the step size is 1, and the standard convolution process with edge addition operation is shown in formula (1):
[0074]
[0075] In the formula, K' represents the filter of the depth convolution, G' represents the output feature map of the depth convolution, M represents the input image, i represents the step size in the horizontal direction, j represents the step size in the vertical direction, k represents the number of convolution kernels or channels, m represents the height of the output feature map, n represents the width of the output feature map, and l represents the depth of the input feature map. The computational complexity of the standard convolution is D M 2 ×M×N×D k 2 ;
[0076] The depthwise convolution operation with one filter per input channel is shown in equation (2):
[0077]
[0078] In the formula, K′ represents the filter of the depthwise convolution, G′ represents the output feature map of the depthwise convolution, M represents the input image, i represents the step size in the horizontal direction, j represents the step size in the vertical direction, k represents the number of convolution kernels or the number of channels, m represents the height of the output feature map, and l represents the depth of the input feature map.
[0079] The mth filter in K′ is applied to the mth feature map in M to generate the mth feature map in G′. The computational complexity of the depthwise convolution is D M 2 ×M×1×D k 2 , the computational cost of point-by-point convolution operation is D M 2 ×1×1×M×N, so the computational complexity of the depthwise separable convolution is D M 2 ×M×D k 2 +1×1×M×N×D M 2 , the ratio of the computational effort between standard convolution and depth-wise separable convolution is shown in formula (3):
[0080]
[0081] The rule revealed by formula (3) is that as the number of output feature maps N increases, the depthwise separable convolution not only reduces the number of required parameters, but also reduces the computational complexity, which means that during model training and inference, the number of kernel movements is also reduced accordingly. This feature enables the depthwise separable convolution to effectively improve the performance and efficiency of the model.
[0082] S4. Use the training set to train the above segmentation network structure to obtain a trained segmentation network model;
[0083] S5. Input the test set image into the above segmentation network model, obtain the prediction result map, and evaluate the prediction result.
[0084] Specifically, in order to quantitatively evaluate the performance of the method proposed in the present invention, the following four evaluation indicators commonly used in medical image segmentation are used as the measure of the experimental results: Dice coefficient (DSC), recall, precision and intersection over union (IOU).
[0085] DSC is a function that evaluates the similarity between the prediction results and the manual annotations. It is obtained by using the ratio of the intersection and union of the prediction results and the manual annotations, and is defined as:
[0086]
[0087] Among them, TP (True Positive) is the number of true positive pixels, FP (False Positive) is the number of false positive pixels, and FN (False Negative) is the number of false negative pixels.
[0088] The recall rate indicates the ratio of correctly identified pixels to all manually annotated pixels, the precision indicates the ratio of correctly identified pixels to all predicted pixels, and the IOU coefficient is used to evaluate the overlap between the lesion area predicted by the model and the actual lesion area. The recall rate, precision and intersection-over-union ratio are calculated as follows:
[0089]
[0090] The precision-recall rate curve (PR curve) and the corresponding average precision-recall rate (AUPR) play an important role in the evaluation of diabetic retinopathy (DR) lesion segmentation performance. This embodiment generates an AUPR curve by applying threshold processing to 33 equally spaced instance results. This method ensures that the evaluation method of the present invention can more accurately measure the performance of the model in the DR lesion segmentation task.
[0091] The method proposed in this embodiment is compared with U-Net, U-Net++, U-Net3+, Deeplab-v3+ and DSR-U-Net++. The corresponding quantitative segmentation results and ablation experiment results are shown in Table 1. AS is the baseline model DSR-U-Net++, and the last three lines are ablation experiments. The results show that the three modules proposed in this embodiment are effective.
[0092] AS+DRC+LWASPP+DSConv represents the method of this embodiment, which adds the residual module with the lightweight attention mechanism, the lightweight ASPP module, and the deep separable convolution to DSR-U-Net++. Among these methods, the AUPR of U-Net++, U-Net3+ and DSR-U-Net++ is better than that of U-Net; compared with other methods, the performance of Deeplab-v3+ is generally lower, which shows that in the lesion segmentation task, the U-shaped structure model has more advantages. Compared with these five baseline models, the method proposed in this embodiment shows excellent performance in the detection of EX lesions. It can be seen from the segmentation results that in terms of EX lesion segmentation, this embodiment shows the best performance in retaining the integrity of large lesions and detecting small lesions.
[0093] Table 1 Quantitative segmentation results and ablation experiment results of different methods
[0094]
[0095]
[0096] Embodiment 2:
[0097] The present invention provides a diabetic retinopathy segmentation system based on Poisson fusion data enhancement, which is characterized by comprising:
[0098] A preprocessing unit, used for receiving the lesion image, expanding the lesion image by using a Poisson fusion algorithm based on mean coordinates, preprocessing the lesion image, and then dividing the data set into a training set and a test set;
[0099] The module building unit is used to build a segmentation network structure based on the U-Net++ network. The segmentation network structure includes an encoder and a decoder. In the encoder, the standard convolution module is replaced by a residual module, and a lightweight channel attention mechanism is added after each residual module.
[0100] Convolutional pooling unit, which is used to add a lightweight ASPP module to the bottom layer of the segmentation network structure and replace the original standard convolution in the segmentation network structure with a depth-wise separable convolution;
[0101] A training unit, used to train the segmentation network structure using a training set to obtain a trained segmentation network model;
[0102] The prediction unit is used to input the test set image into the above segmentation network model, obtain the prediction result map, and evaluate the prediction result.
[0103] Specifically, the above-mentioned preprocessing unit, module construction unit, convolution pooling unit, training unit and prediction unit can be embedded in a computer processing system. The computer calls the above-mentioned units to complete the task of equivalent modeling based on the above-mentioned diabetic retinopathy segmentation method based on Poisson fusion data enhancement; the above-mentioned preprocessing unit, module construction unit, convolution pooling unit, training unit and prediction unit can perform operations according to the specific steps given in the diabetic retinopathy segmentation method based on Poisson fusion data enhancement.
[0104] It should be noted that it should be understood that the division of the various units of the above system is only the division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated, and these units can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some units can also be implemented in the form of software calling through processing elements, and some units can be implemented in the form of hardware. For example, the receiving unit can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and a processing element of the above device calls and executes the functions of the above signal processing unit. The implementation of other units is similar. In addition, these units can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above units can be completed by the hardware integrated logic circuit in the processor element or the instructions in the form of software.
[0105] For example, the above units may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a certain unit above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0106] Embodiment three:
[0107] The present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. The memory stores a computer program capable of running on the processor, and when the processor loads and executes the computer program, the above-mentioned diabetic retinopathy segmentation method based on Poisson fusion data enhancement is adopted.
[0108] It should be noted that the terminal device can be a computer device such as a desktop computer, a laptop computer or a cloud server, and the terminal device includes but is not limited to a processor and a memory. For example, the terminal device can also include input and output devices, network access devices and buses.
[0109] Furthermore, the processor may adopt a central processing unit (CPU). Of course, according to actual usage, other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. may also be adopted. The general-purpose processor may adopt a microprocessor or any conventional processor, etc., and the present application does not impose any restrictions on this.
[0110] 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.
[0111] For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances. When an element is referred to as being "assembled on", "installed on", "fixed on" or "set on" another element, it can be directly on the other element or there can also be a centered element. When an element is considered to be "connected" to another element, it can be directly connected to the other element or there may be a centered element at the same time. The terms "vertical", "horizontal", "up", "down", "left", "right" and similar expressions used herein are only for illustrative purposes and are not intended to be the only implementation method.
[0112] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
[0113] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
Claims
1. A diabetic retinopathy segmentation method based on Poisson fusion data enhancement, characterized in that: The following steps are involved: Receive the lesion image, expand the lesion image using a Poisson fusion algorithm based on mean coordinates, pre-process the lesion image, and then divide the data set into a training set and a test set; Construct a segmentation network structure based on the U-Net++ network. The segmentation network structure includes an encoder and a decoder. In the encoder, the standard convolution module is replaced by a residual module, and a lightweight channel attention mechanism is added after each residual module. Add a lightweight ASPP module to the bottom layer of the segmentation network structure, and replace the original standard convolution in the segmentation network structure with a depth-separable convolution; The segmentation network structure is trained using the training set to obtain a trained segmentation network model; The test set images are input into the above segmentation network model to obtain the prediction result graph, and the prediction results are evaluated.
2. The diabetic retinopathy segmentation method based on Poisson fusion data enhancement according to claim 1, characterized in that: The lesion images are downloaded from the e-ophtha dataset.
3. The diabetic retinopathy segmentation method based on Poisson fusion data enhancement according to claim 2, characterized in that: The lesion image is expanded using the Poisson fusion algorithm based on mean coordinates, as follows: (1) Determine the target image and background image; (2) Set the background area where the target image needs to be fused; (3) Fill in the A matrix to solve the Poisson problem; (4) Calculate and solve Poisson's B matrix; a. The Laplace operator directly calculates the divergence of the target image and obtains the initial B matrix; b. Fill the boundary pixels of the B matrix according to the boundary conditions; (5) Use the least squares method to solve Ax=B. Since A and B are known, we can directly obtain x, which is the fused image.
4. The diabetic retinopathy segmentation method based on Poisson fusion data enhancement according to claim 2, characterized in that: The lesion images are preprocessed, including cropping the images to the same pixel size, and flipping, rotating and affine transforming the images.
5. The diabetic retinopathy segmentation method based on Poisson fusion data enhancement according to claim 4 is characterized in that: The feature extractor of the encoder consists of 5 stages, each of which consists of a residual module and a lightweight channel attention mechanism. Each residual module contains a depth-separable convolution layer, a normalization layer, and an activation function layer. A maximum pooling layer is used between each stage to reduce the feature map to increase the receptive field of the convolution.
6. The diabetic retinopathy segmentation method based on Poisson fusion data enhancement according to claim 5, characterized in that: The decoder uses the decoding part of UNet++ to reconstruct the high-resolution feature map, which includes 5 stages, each of which consists of two depth-wise separable convolution modules, each module including a depth-wise separable convolution layer, a normalization layer and an activation function layer. The upsampling method is used between each stage to increase the feature map and gradually restore the resolution of the image.
7. The diabetic retinopathy segmentation method based on Poisson fusion data enhancement according to claim 1, characterized in that: The lightweight ASPP module is based on the traditional ASPP with the following improvements: (1) The original global pooling branch is removed, and the original four convolution branches are reduced to three. The dilation rates of these three dilated convolution branches are selected as 1, 3, and 5 respectively. (2) The original direct merging branches are improved into skip connections to enable the network to capture rich contextual semantic information.
8. The diabetic retinopathy segmentation method based on Poisson fusion data enhancement according to claim 7, characterized in that: The depth-wise separable convolution is expressed as follows: In the formula, K′ represents the filter of the depthwise convolution, G′ represents the output feature map of the depthwise convolution, M represents the input image, i represents the step size in the horizontal direction, j represents the step size in the vertical direction, k represents the number of convolution kernels or the number of channels, m represents the height of the output feature map, and l represents the depth of the input feature map.
9. A diabetic retinopathy segmentation system based on Poisson fusion data enhancement, characterized in that: include: A preprocessing unit, used for receiving the lesion image, expanding the lesion image by using a Poisson fusion algorithm based on mean coordinates, preprocessing the lesion image, and then dividing the data set into a training set and a test set; The module building unit is used to build a segmentation network structure based on the U-Net++ network. The segmentation network structure includes an encoder and a decoder. In the encoder, the standard convolution module is replaced by a residual module, and a lightweight channel attention mechanism is added after each residual module. Convolutional pooling unit, which is used to add a lightweight ASPP module to the bottom layer of the segmentation network structure and replace the original standard convolution in the segmentation network structure with a depth-wise separable convolution; A training unit, used to train the segmentation network structure using a training set to obtain a trained segmentation network model; The prediction unit is used to input the test set image into the above segmentation network model, obtain the prediction result map, and evaluate the prediction result.
10. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: The memory stores a computer program that can be run on the processor. When the processor loads and executes the computer program, the diabetic retinopathy segmentation method based on Poisson fusion data enhancement according to any one of claims 1 to 8 is adopted.
Citation Information
Patent Citations
Improved U-Net brain tumor segmentation method based on attention mechanism and multi-scale feature fusion
CN115424103A
Eye fundus image blood vessel segmentation method based on improved U-Net model
CN116740080A
Paravascular anomaly segmentation method based on double decoders and local feature enhancement network
CN118172369A
Medical image segmentation method based on u-net
US20220309674A1
Cited By
Bridge disease detection method and system, electronic equipment and storage medium
CN120544047A
Method and system for predicting postoperative recurrence risk of embedded attention-enhancing PELD
CN121709272A
Method and system for predicting the risk of recurrence after inlay attention-enhancing pledget procedure
CN121709272B
