Wound surface segmentation system based on image adaptive enhancement and dynamic filtering

By introducing image adaptive enhancement and dynamic filtering technology into the wound segmentation system, the problem of poor performance of existing technologies in processing low-quality wound images is solved, and high-accuracy and efficient wound segmentation is achieved, which is suitable for clinical applications. and assist in medical decision-making.

CN118823461APending Publication Date: 2024-10-22HUADONG HOSPITAL

Patent Information

Application Number
CN202410875806.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing wound segmentation technology has poor performance when processing wound images with poor imaging quality, dim or blurred images, and large-scale neural networks cannot be deployed on resource-constrained platforms, making it difficult to achieve high-performance segmentation tasks.

Method used

A wound segmentation system based on image adaptive enhancement and dynamic filtering is proposed, including a visual encoder, a dynamic filter controller, an image adaptive enhancement module and a segmentation network. It realizes wound detection through end-to-end training and uses the dynamic filter controller to generate Adaptive image enhancement parameters improve the robustness and generalization ability of the segmentation network.

Benefits of technology

It significantly improves the generalization ability of the wound segmentation algorithm, reduces the risk of over-fitting, and achieves highly accurate and efficient wound segmentation in different shooting environments. It is suitable for clinical applications and assists in guiding medical decision-making.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823461A_ABST
    Figure CN118823461A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of medical image processing, and particularly relates to a wound segmentation system based on adaptive image enhancement and dynamic filtering. According to the method, a visual encoder is adopted to deeply extract image features, a full convolutional network DeepLabV2 [1] is used to carry out accurate wound boundary segmentation, and the expression of wound features is enhanced through automatic image processing so as to optimize a segmentation result. And the influence of each image processing operation is meticulously adjusted through a gating mechanism, so that high-quality reconstruction and analysis of the wound image are realized. According to the method, the generalization ability of the algorithm is improved through a self-adaptive strategy, the over-fitting risk possibly caused by single data set training is effectively reduced, and the practicability and flexibility of the algorithm in clinical application are enhanced. A test result shows that when the method is used for processing wound images with various qualities, particularly images shot in a dark or fuzzy environment, a high-performance segmentation task can be realized, and the application potential of the method in the field of medical image processing is shown.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of medical image processing, and in particular relates to a wound surface segmentation system. Background Art

[0002] Wounds not only cause severe physical pain to patients, such as the pain caused by the wound itself and the surgical pain caused by clinical intervention, but also introduce a certain degree of psychological burden, which may lead to depression in severe cases. In addition, since chronic wounds take a long time to heal, patients must receive continuous care to prevent infection, and continuous wound diagnosis and treatment impose a heavy economic burden on individuals and society. Therefore, a low-cost, fast, and accurate wound image processing technology is needed to assist wound diagnosis, prognosis, care, and other related tasks.

[0003] With the rapid development of artificial intelligence and Internet technology, medical image processing technology has become an indispensable part of the field of modern medical diagnosis. Wound images can provide valuable information for experts to accurately diagnose wounds. Accurate measurement of wound area is essential for the evaluation and management of chronic wounds to monitor wound healing trajectory and determine future interventions. However, manual measurement is time-consuming and often inaccurate, which may have a negative impact on patients. Segmenting wounds from images is a popular solution to these problems. It not only automatically measures wound area, but also effectively enters data into electronic medical records to enhance patient care.

[0004] Research on wound segmentation can be roughly divided into two categories: traditional computer vision methods and deep learning-based methods. The first type of method focuses on combining computer vision technology with traditional machine learning methods. The limitations of this type of method include: hand-crafted features are affected by skin pigmentation, lighting, and image resolution; they rely on manually adjusted parameters and hand-crafted features based on experience, which cannot guarantee the best results; they have poor performance for severe and rare cases and are not suitable for clinical applications.

[0005] In recent years, the application of deep learning in the field of computer vision has stimulated people's interest in using deep convolutional neural networks (CNN) for semantic segmentation. The use of methods based on fully convolutional neural networks (FCN) to solve the problem of wound segmentation has made breakthrough progress and breakthroughs in academia, greatly improving the accuracy and efficiency of wound segmentation, providing a standardized method for chronic wound assessment, and greatly reducing the workload of clinicians.

[0006] Nevertheless, the performance and application of FCN-based segmentation algorithms are limited due to the small amount of labeled training data available for wound segmentation tasks and the size of the neural network. In addition, large-scale networks are usually too complex to be deployed on resource-constrained platforms such as mobile devices. In addition, due to the limited number of datasets available for training and the single imaging quality, current technologies have difficulty processing wound images with large differences in imaging quality, especially wound images with dim or blurred imaging environments, making it difficult to perform high-performance segmentation tasks.

[0007] In 2023, Yang Sheng et al. (CN117745734) proposed a wound image segmentation method based on self-supervised learning. By introducing a self-supervised contrastive learning method, the wound is optimized in a targeted manner, effectively improving the segmentation effect when the wound image annotation data is scarce; a clustering algorithm is used to automatically classify chronic wound images to solve the problem of a wide variety of wounds and unbalanced training samples; the uncertainty algorithm is optimized for the wound edge, and the threshold adaptive method is combined to improve the model segmentation accuracy. In 2021, Zhao Kui et al. (CN 115713477) used deep transfer learning to solve the problem of lack of large data sets in the field of wound image segmentation, and used a deep residual network to solve the degradation problem of deep neural networks during training. On the other hand, the Danet network was used to introduce spatial and channel attention mechanisms to improve the accuracy. In 2021, Shi Fei et al. (CN113947574) performed edge enhancement and spatial enhancement processing on wound images based on spatial attention mechanisms and channel attention mechanisms, and channel-joined the feature maps after edge feature enhancement and spatial feature enhancement to obtain segmented images. Summary of the invention

[0008] The purpose of the present invention is to propose a wound surface segmentation system based on image adaptive enhancement and dynamic filtering with high segmentation accuracy and efficiency, so as to improve the segmentation effect of wound surface images with different imaging qualities under different shooting environments, realize continuous monitoring of the patient's wound surface, and guide the diagnosis and treatment plan.

[0009] The wound surface segmentation system based on image adaptive enhancement and dynamic filtering proposed in the present invention includes four parts: a visual encoder, a dynamic filtering controller, an image adaptive enhancement module and a segmentation network. Figure 1 ; The visual encoder is used to extract features from the input image and project it into a 1024-dimensional latent space; the dynamic filter controller obtains a 1024-dimensional image feature map from the visual encoder, aggregates image features through a global average pooling (GAP), obtains parameters and weights of an image adaptive enhancement module through the dynamic filter controller, obtains an enhanced image using the adaptive image enhancement module, uses the enhanced image as input to a segmentation network, trains the network using the segmentation loss of the segmentation network, and performs end-to-end wound detection.

[0010] The visual encoder has a network structure as follows Figure 2 , consists of five convolutional layers, each with a kernel size of 3 and a stride of 1. The number of channels in each layer is twice that of the previous layer, ranging from 64 in the first layer to 1024 in the last layer. Each convolution operation is followed by an average pooling layer (kernel size 3, stride 2).

[0011] The dynamic filter controller has a network structure as follows: Figure 3 , used to generate dynamic image enhancement parameters: For traditional convolutional layers, the learned parameters are fixed after training and shared by all test sets. Therefore, the network trained on the training set may not be optimal in other datasets. In order to overcome this bottleneck and improve the robustness and generalization ability of the segmentation network, the present invention introduces a dynamic filter controller to adaptively and dynamically generate image enhancement parameters based on the input test image. Specifically, a single convolutional layer is used as a task-specific controller φ(·), which aggregates image features through global average pooling (GAP) as Input, output dynamic parameter ω:

[0012] ω=φ(GAP(f E );θ φ )

[0013] θ φ are the parameters of this controller.

[0014] The adaptive image enhancement module, such as Figure 1 , consists of multiple gated image processing submodules (called IPs) that enhance the image individually and then combine them through weights. Each submodule contains a linear layer, a differentiable image processing operation, a gate (a shifted tanh function that returns a value between 0 and 1), and a normalization operation. The parameter scalar value used as input to the differentiable IP block is calculated through the linear layer. The individual linear layers of each submodule are passed a dynamic parameter ω as input, which is obtained from the dynamic filter controller. The output of the IP operation is multiplied by the scalar output of the gate. Finally, the weighted outputs of the individual blocks are aggregated together to obtain the enhanced image.

[0015] Specifically, the adaptive image enhancement module contains six gated image processing submodules: feature preservation, white balance (WB), gamma, contrast, hue and sharpening. The corresponding transformation functions and corresponding parameters are shown in Table 1, and the expressions are as follows:

[0016]

[0017] Where x is the input image, z is the enhanced image, and f i(x) represents the i-th IP operation, whose respective scalar gate outputs w i ∈[0,1], N is the min-max normalization operation. Normalization ensures that the pixel intensity range of the output of all image processing operations is the same.

[0018] Table 1

[0019] .

[0020] In Table 1, the parameters in the second column need to be predicted through neural network back propagation, so these parameters are all differentiable in the functions in the third column. The I on the right side of the equation in the third column is the input image pixel value tensor, and the left side of the equation is the output image pixel value tensor.

[0021] In the feature preserving operation, the output is the original input image;

[0022] In the white balance operation, the right side of the expression is the three white balance parameters W r , W g , W b Respectively with the RGB components r of each pixel in the input image I i ,g i ,b i Multiply values;

[0023] In the gamma operation, γ is the power transformation parameter;

[0024] In the contrast operation, the right side of the expression is the linear interpolation of the original image I and the enhanced image En(I), α is the interpolation weight, and the expression of En(I) is Where Lum(p)=0.27p r +0.67p g +0.06p b , p I is any pixel value in I, p r 、p g 、p b They are p I Components in the three RGB channels;

[0025] In hue operations, such as Figure 5 As shown, a monotone piecewise linear function is used as the tone mapping filter, and the filter parameter is t i ∈*t0,t1,…,t L-1 +, Figure 5 The coordinates of the points marked in the figure are expressed as (k / L,T k / T L ), where L represents the number of segments, L=4, and the sequence number k∈*1,2,3,4+, T L =Tk (k=L), the tone mapping function is composed of differentiable parameters t i represents, where:

[0026]

[0027]

[0028]

[0029] clip means to clip the tensor (L·b i -j) is limited to between 0 and 1, r i ,g i ,b i Represents the RGB components of each pixel in the input image I;

[0030] In the sharpening operation, Gaussian (I) represents Gaussian filtering of the input image, and λ is the scale parameter.

[0031] The segmentation network, DeepLabV2[1], is used to segment images: During the training process of DeepLabV2, random crops of size 512×512 are used in the range of 0.5 to 1.0, and random horizontal flips are applied to expand the training dataset. A momentum of 0.9 and a weight decay of 5×10 are used. -4 The model is trained using the stochastic gradient descent (SGD) optimizer. The initial learning rate is set to 2.5×10 -4 , Poly learning rate strategy is used to reduce it by a power of 0.9. The batch size is set to 4.

[0032] The test was conducted using data sets from different sources: The dynamic adaptive image enhancement strategy can significantly improve the generalization ability of the wound segmentation algorithm, effectively reduce the risk of overfitting that may be caused by training a single data set, and improve the clinical application ability of the wound segmentation algorithm. It can effectively monitor the progression of the disease and assist in guiding further medical decisions. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 This is a diagram of the neural network structure proposed in the present invention.

[0034] Figure 2 This is a structural diagram of the visual encoder proposed in the present invention.

[0035] Figure 3 This is a structural diagram of the dynamic filtering controller proposed in the present invention.

[0036] Figure 4 This is the wound surface segmentation result.

[0037] Figure 5is the tone mapping filter function. DETAILED DESCRIPTION

[0038] The present invention will be further described below in conjunction with the accompanying drawings.

[0039] The present invention uses convolutional neural network (CNN) and image enhancement technology to segment wound images through end-to-end training. The specific steps are as follows:

[0040] 1. Visual encoder extracts input wound image features

[0041] The wound image is input into a visual encoder consisting of five convolutional layers. Through five convolutional layers (convolution kernel size is 3, stride is 1) and average pooling layers (kernel size is 3, stride is 2), each convolutional layer will double the number of channels, and finally increase the number of channels from 1 to 1024. At the same time, the spatial resolution is reduced through the average pooling layer, and different output channels represent different features of the input wound image.

[0042] 2. Dynamic filter controller calculates filter kernel parameters and weights

[0043] The feature map output by the visual encoder is input into the dynamic filter controller. The feature map is mapped to a 1x1x1024-dimensional feature space through global average pooling (GAP) to obtain aggregated image features. The convolution layer with a convolution kernel of 1x1 is used as the controller φ(·) for a specific task. The aggregated image features are used as the input of φ(·). The dynamic parameters ω of the specific task are output, including the parameters required by the filter kernel and the weights corresponding to the filter kernel. The parameters θ of the controller can be obtained through end-to-end training. φ , when testing the input image, the required dynamic parameter ω can be adaptively obtained through the weight for subsequent image enhancement.

[0044] 3. Image adaptive enhancement module obtains enhanced image

[0045] The input wound image and the dynamic parameter ω of the specific task are input into the image adaptive enhancement module. The module is divided into six gated image processing sub-modules (feature preservation, white balance (WB), gamma, contrast, hue and sharpening) according to the different filter kernels, which can achieve different image enhancement effects respectively. The enhanced image is obtained by multiplying the normalized filter kernel output by the weight parameter. The role of normalization is to ensure that the pixel intensity range of the output of all image processing operations is the same.

[0046] 4. Segmentation network for wound image segmentation

[0047] The adaptive enhanced image is input into the segmentation network, and the network architecture uses DeepLabV2 to perform pixel-level segmentation on the image. The network uses a deep convolutional neural network (DCNN) to solve the semantic segmentation problem, expands the receptive field through dilated convolution, and further improves the segmentation performance through multi-scale information fusion, high-resolution classifier and conditional random field (CRF) post-processing. Finally, a segmented image with high segmentation accuracy is obtained, which has strong generalization ability, that is, it can achieve ideal segmentation effects for wound image data sets in different shooting environments and different light, and improves the clinical application ability of the wound segmentation algorithm. Medical staff can use the trained network to segment their own wound images without re-training, thereby effectively monitoring the progression of the disease and assisting in guiding further medical decisions.

[0048] Test results:

[0049] First, we use the proposed neural network to segment wound images. The wound images come from the open source dataset FUSeg[2], which collected 1,200 wound images from hundreds of patients over a two-year period. 1,000 of these images are used as a training set to train the above neural network, and the remaining 200 images are used as a test set to input the trained neural network for inference. The wound images that have passed the segmentation network are binarized, and the adaptive enhancement images obtained in the intermediate process and the final output segmentation images are shown in Figure 2. Figure 4 As shown in Figure 2, it can be seen that the above neural network can achieve accurate wound segmentation for irregular images.

[0050] The test results show that the average segmentation accuracy of wound image data is 78.05% (the accuracy is defined as the ratio of the intersection and union of the white area segmented by the above neural network and the wound area in the original data set label. The higher the accuracy, the more accurate the wound segmentation, and the more the contour can reflect the actual wound situation). Compared with the traditional wound segmentation algorithm, the above neural network algorithm has achieved a higher segmentation accuracy and has better generalization ability, so it can be applied to a wider range of wound images.

[0051] References

[0052] [1].Chen,L.C.,Papandreou,G.,Kokkinos,I.,Murphy,K.,&Yuille,A.L.(2017).Deeplab:Semantic image segmentation with deep convolutional nets,atrousconvolution,and fully connected crfs.IEEE transactions on pattern analysisand machine intelligence,40(4),834-848.

[0053] [2].Wang,C.,Anisuzzaman,D.M.,Williamson,V.,Dhar,M.K.,Rostami,B.,Niezgoda,J.,...&Yu,Z.(2020).Fully automatic wound segmentation with deepconvolutional neural networks.Scientific reports,10(1),21897。

Claims

1. A wound surface segmentation system based on image adaptive enhancement and dynamic filtering, characterized in that: The system comprises four parts: a visual encoder, a dynamic filter controller, an image adaptive enhancement module and a segmentation network; the visual encoder is used to extract features from the input image and project it into a 1024-dimensional latent space; The dynamic filter controller obtains a 1024-dimensional image feature map from a visual encoder, aggregates image features through a global average pooling (GAP), obtains parameters and weights of an image adaptive enhancement module through the dynamic filter controller, obtains an enhanced image using the adaptive image enhancement module, uses the enhanced image as input to a segmentation network, trains the network using the segmentation loss of the segmentation network, and performs end-to-end wound detection.

2. The wound surface segmentation system according to claim 1, characterized in that: The visual encoder consists of five convolutional layers, each with a kernel size of 3 and a stride of 1; the number of channels in each layer is twice that of the previous layer, from 64 in the first layer to 1024 in the last layer; each convolution operation is followed by an average pooling layer, and the last layer is followed by a global average pooling layer with an output channel number of 1024; The dynamic filter controller adaptively generates image enhancement parameters dynamically according to the input test image. Specifically, a single convolutional layer is used as a task-specific controller φ(·), which aggregates image features as input of φ(·) through global average pooling (GAP) and outputs dynamic parameters ω: ω=φ(GAP(f E );i φ ) θ φ are the parameters of the controller; The adaptive image enhancement module is composed of multiple gated image processing submodules (called IPs), which enhance the image separately and then combine them through weights; each submodule contains a linear layer, a differentiable image processing operation, a gate, i.e., a shifted tanh function that returns a value between 0 and 1, and a normalization operation; the parameter scalar value used as the input of the differentiable IP block is calculated through the linear layer; each linear layer of each submodule passes a dynamic parameter ω as input, which is obtained from the dynamic filter controller; the output of the IP operation is multiplied by the scalar output of the gate; and finally the weighted outputs of the individual blocks are aggregated together to obtain an enhanced image; Specifically, the adaptive image enhancement module contains six gated image processing submodules: feature preservation, white balance, gamma, contrast, hue and sharpening. The corresponding transformation functions and corresponding parameters are shown in Table 1, and the expressions are as follows: Where x is the input image, z is the enhanced image, and f i (x) represents the i-th IP operation, whose respective scalar gate outputs w i ∈[0,1], N is the min-max normalization operation; normalization ensures that the pixel intensity range of the output of all image processing operations is the same; Table 1 ; In Table 1, the parameters in the second column need to be predicted by neural network back propagation. These parameters are all differentiable in the functions in the third column. The I on the right side of the equation in the third column is the input image pixel value tensor, and the left side of the equation is the output image pixel value tensor; In the feature preserving operation, the output is the original input image; In the white balance operation, the right side of the expression is the three white balance parameters W r , W g , W b Respectively with the RGB components r of each pixel in the input image I i ,g i ,b i Multiply values; In the gamma operation, γ is the power transformation parameter; In the contrast operation, the right side of the expression is the linear interpolation of the original image I and the enhanced image En(I), α is the interpolation weight, and the expression of En(I) is Where Lum(p)=0.27p r +0.67p g +0.06p b , p I is any pixel value in I, p r 、p g 、p b They are p I Components in the three RGB channels; In the tone operation, a monotone piecewise linear function is used as the tone mapping filter, and the filter parameter is t i ∈{t0,t1,…,t L-1 }, the point coordinates are expressed as (k / L,T k / T L ), where L represents the number of segments L = 4, and the sequence number k∈{1,2,3,4}, T L =T k (k=L), the tone mapping function is composed of differentiable parameters t i represents, where: clip means to clip the tensor (L·b i -j) is limited to between 0 and 1, r i ,g i ,b i Represents the RGB components of each pixel in the input image I; In the sharpening operation, Gaussian (I) represents Gaussian filtering of the input image, and λ is the scale parameter; The segmentation network uses DeepLabV2 to segment images: During the training process of DeepLabV2, random crops of size 512×512 are used in the range of 0.5 to 1.0, and random horizontal flips are applied to expand the training dataset; a momentum of 0.9 and a weight decay of 5×10 are used. -4 The model was trained using the stochastic gradient descent (SGD) optimizer; the initial learning rate was set to 2.5×10 -4 , the Poly learning rate strategy is used to reduce it by a power of 0.9; the batch size is set to 4.

Citation Information

Patent Citations

  • Wound image segmentation method based on deep transfer learning

    CN115713477A

  • Chronic wound image segmentation method based on self-supervised learning

    CN117745734A

Cited By

  • Training method, device and equipment for image segmentation model combined with image adaptive enhancement

    CN119477926A