A method for automatic segmentation of burn wound area based on neural network

Through neural network-based methods, the ResNet-101 and UPerNet models are improved, combined with data enhancement and improved loss functions, to solve the problems of low accuracy and long time-consuming burn wound area segmentation, and achieve more efficient automatic segmentation of burn wound areas, which is suitable for Accurate diagnosis of burn wound images.

CN112634291BActive Publication Date: 2024-10-15HANGZHOU DIANZI UNIV
View PDF -1 Cites 0 Cited by

Patent Information

Application Number
CN202011644754.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2024-10-15
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

In the existing technology, burn wound area segmentation accuracy is low and time-consuming, and traditional diagnostic methods suffer from subjectivity and high detection costs.

Method used

Using a neural network-based method, the burn image is preprocessed and data enhanced through the improved ResNet-101 encoder model and UPerNet decoder model, and the improved Dice Loss function and RMSProp optimizer are used to achieve automatic segmentation of the burn wound area. .

Benefits of technology

It improves the accuracy and speed of burn wound area segmentation, reduces detection costs, and is suitable for burn wound images with smaller data sets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112634291B_ABST
    Figure CN112634291B_ABST
Patent Text Reader

Abstract

The invention discloses a method for automatic segmentation of burn wound area based on neural network: S1 uses a camera to collect and acquire burn images; S2 preprocesses the collected burn images, including effective image screening, image effective area shearing, image marking and image numerical normalization, and image data enhancement through random image rotation, random flipping, random translation and random scaling operations; S3 inputs the preprocessed and data-enhanced burn images into a neural network model for training, and further, the neural network model is composed of two models, an encoder and a decoder, the encoder model is responsible for extracting image feature maps, and the decoder model is responsible for converting the feature maps into burn wound area prediction maps; S4 uses the trained model to segment the burn wound area in the burn image. The method for automatic segmentation of burn wound area in the burn image of the invention can provide pixel-level burn image segmentation results, and can accurately segment the burn wound area of ​​the patient's burn image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of burn medical image processing, and in particular relates to a method for automatically segmenting a burn wound area based on a neural network. Background Art

[0002] Burns are a common traumatic disease, usually caused by physical or chemical factors such as heat, chemicals, electric current and radiation. Small-area burns can cause damage to the skin, mucosal tissue or corresponding deep tissues. Large-area burns can cause varying degrees of functional, metabolic and morphological changes in various systems of the body, causing severe pathological reactions and visceral damage throughout the patient's body, resulting in complications such as shock, sepsis and multiple organ failure, with a high mortality rate. At the same time, the healing and treatment process of burn wounds is complex and time-consuming. After the wound heals, sequelae such as scar contracture and functional impairment may remain. Therefore, burns, especially large-area burns, are a complex and serious traumatic disease.

[0003] The diagnosis of the burn wound area is an important part of the burn injury assessment, and a reliable and effective burn wound severity assessment is the basis for clinical decision-making. For patients who need early resection and transplantation treatment, the assessment of the burn area can determine the doctor's subsequent surgical treatment and nursing methods, greatly reducing the patient's medical expenses, hospitalization time, and physical and mental burden. Clinical assessment is currently a common and popular method of judgment. However, this subjective judgment is affected by many factors, and the diagnostic level varies, resulting in large differences in the judgment of the burn area. Existing tissue puncture biopsy technology, vital staining detection technology, thermal imaging technology, etc. are expensive on the one hand, and require complex detection environments and equipment on the other hand, so they are not widely used in clinical practice.

[0004] With the development of computers and deep learning, the combination of computer technology and medical image detection has opened up new ideas for intelligent medical diagnosis. Introducing deep learning technology into burn image regional diagnosis can achieve semi-automatic burn wound regional diagnosis process, reduce the impact of human errors, and improve the accuracy of burn diagnosis. At the same time, deep learning detection methods can reduce the cost of detection and reduce the time spent on burn area detection. Summary of the invention

[0005] In view of the above-mentioned problems existing in the prior art, the present invention provides a method for automatic segmentation of burn wound areas based on a neural network. The method uses a neural network model to automatically identify and segment the burn wound area images of burn patients, thereby solving the technical problems of low accuracy and long time consumption of traditional wound area segmentation.

[0006] To solve the above problems, the technical solution of the present invention is a method for automatic segmentation of burn wound area based on a neural network, the method comprising the following steps:

[0007] S1: Acquire burn images of burn patients;

[0008] S2: preprocessing and data enhancement operations on burn images;

[0009] S3: inputting the preprocessed and data-enhanced burn image into the neural network model for model training. Further, the neural network model is divided into an encoder model and a decoder model;

[0010] S4: Use the trained model burn image to predict the burn wound area and obtain the segmentation result map of the burn wound area.

[0011] Specifically, the step S2 further includes:

[0012] S21: performing preprocessing operations on the burn image;

[0013] S22: Perform data enhancement operation on the burn image.

[0014] Specifically, the step S3 further includes:

[0015] S31: inputting the preprocessed and data-enhanced burn image into the encoder model to extract a feature map of the burn image;

[0016] S32: inputting the feature map extracted by the encoder model into the decoder model, performing feature fusion of the burn image, and outputting a segmentation prediction map of the burn wound area;

[0017] S33: Calculate the Loss value of the model output and train the model using the RMSProp optimizer.

[0018] Furthermore, the step S1 uses a camera or other equipment to collect burn image data of the burn patient.

[0019] Furthermore, the step S21 performs a preprocessing operation on the burn image, and the preprocessing includes: 1) screening the collected burn images to select clear burn images; 2) cutting out invalid background areas and areas involving patient privacy in the burn images; 3) marking the burn wound area in the image, and generating a mask image with the same size as the original burn image as a label for model training; 4) normalizing the RGB three channel values ​​of the burn image to the interval [0,1] to obtain a standardized burn image.

[0020] Further, the step S22 performs data enhancement operation on the burn image, specifically including: 1) performing random rotation between 0 and 360 degrees on the burn image and the corresponding mask image at the same time, and the rotation angles of the burn image and the mask image are kept consistent; 2) performing random flipping on the burn image and the corresponding mask image at the same time, and the flipping methods include horizontal flipping and mirror flipping, and a pseudo-random number generator randomly selects a method to flip the burn image and the mask image; 3) performing random translation on the burn image and the corresponding mask image at the same time, and the translation methods include horizontal translation and vertical translation, and the translation range is between 0% and 10% of the image width and image height, and the pseudo-random number generator randomly translates the burn image and the mask image; 4) performing random scaling on the burn image and the corresponding mask image at the same time, and the scaling method is to enlarge or reduce the image from the center of the image, and the scaling range is between 0% and 10%, and the pseudo-random number generator randomly scales the burn image and the mask image.

[0021] Furthermore, the step S31 inputs the burn image processed in step S2 into an encoder model to extract a feature map of the burn image. The encoder model is an improved ResNet-101 model. Compared with the original ResNet-101 model, the output of the last fully connected layer of the original ResNet-101 model is deleted in the improved ResNet-101 model, and the ordinary convolution layers (Convolution Layers) in the original ResNet-101 model are replaced with dilated convolution layers (DilatedConvolution Layers).

[0022] Furthermore, the step S32 inputs the feature map extracted by the encoder model into the decoder model, and the decoder model is an improved UPerNet model. Compared with the original UPerNet model, the improved UPerNet model improves the PPM (Pyramid Pooling Module) in the original structure from 4 layers to 3 layers, reducing the number of parameters of the model, while reducing the amount of calculation when the model is running, and accelerating the running speed of the model. After that, the feature maps output by each layer of the PPM are fused, and finally a burn area prediction map with the same size as the original burn image is output. The output activation function of the decoder model is Sigmoid.

[0023] The expression of the Sigmoid function is:

[0024]

[0025] Where S is the predicted output value of a single pixel, ranging from [0, 1]. When the value of S is less than 0.5, the pixel is determined to be a non-burn wound area, and when the value of S is greater than or equal to 0.5, the pixel is determined to be a burn wound area.

[0026] Furthermore, the step S33 calculates the Loss value between the output prediction image of the decoder model and the marked mask image, and the Loss is calculated using an improved Dice Loss calculation method. Then, the RMSPro optimizer is used to perform back propagation to update the model parameters and train the model.

[0027] The expression of Dice coefficient is:

[0028]

[0029] Where |A∩B| represents the common elements between set A and set B, |A| represents the number of elements in set A, and |B| represents the number of elements in set B.

[0030] The improved Dice Loss calculation method proposed in this patent is expressed as:

[0031]

[0032] Where β is the improved adaptive coefficient, m is the number of pixels in the width of the burn image, N is the number of pixels in the height of the burn image, and y is the number of pixels in the height of the burn image. ij Represents the predicted value of a single pixel. Represents the label value of a single pixel.

[0033] The expression of RMSPro optimizer is:

[0034]

[0035] Among them, W t represents the parameters of the iterative model at time t, g t represents the gradient of the Loss function with respect to W after t iterations, E[g 2 ] t represents the mean of the squared gradients of the previous t times. α represents momentum and is set to 0.9. η0 represents the global initial learning rate. ∈ is a very small number, usually 1e-8, to avoid the denominator being 0.

[0036] Furthermore, the step S4 uses the trained encoder and decoder models to predict the burn wound area of ​​the unlabeled burn image to obtain a segmentation result map of the burn wound area. Furthermore, the burn wound area prediction map output by the neural network model is superimposed and displayed with the original image through visualization technology.

[0037] The invention proposes a method for automatically segmenting a burn wound area based on a neural network. Compared with a traditional neural network model, the method proposed by the invention has the following differences: 1) compared with the classic ResNet-101, the improved ResNet-101 encoder model proposed by the invention replaces the ordinary convolution layer in the classic ResNet-101 model with a hole convolution layer, deletes the output of the last fully connected layer of the original ResNet-101 model, and the last layer output of the improved ResNet-101 encoder model is a feature map extracted by the model from a burn image; 2) the improved decoder UPerNet model proposed by the invention improves the PPM (Pyramid Pooling Module) structure in the original UPerNet model from 4 layers to 3 layers, reduces the number of parameters of the model, reduces the amount of calculation when the model is running, and accelerates the running speed of the model; 3) the improved Dice Loss function proposed by the invention increases an adaptive coefficient β, and in the process of model training, the value of β is adjusted according to the Loss value of the previous round of training, so as to train the model more effectively. The present invention proposes a method for automatic segmentation of burn wound area based on neural network, which is more accurate and faster than traditional methods in segmenting burn wound. At the same time, the burn image dataset is expanded by using data enhancement method, which is suitable for burn wound images with smaller datasets. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a schematic flow chart of a method for automatic segmentation of burn wound area based on neural network of the present invention;

[0039] Figure 2 It is a schematic diagram of the burn image preprocessing and data enhancement process of the present invention;

[0040] Figure 3 It is a schematic diagram of the neural network model training process of the present invention;

[0041] Figure 4 This is a schematic diagram of the improved PPM structure of the present invention;

[0042] Figure 5 Schematic diagram of the original PPM structure. DETAILED DESCRIPTION

[0043] The present invention proposes a method for automatic segmentation of burn wound surface area based on neural network, which is to input the burn image into the improved ResNet-101 encoder model after image preprocessing and data enhancement operations, extract the features of the encoder model, and then input the extracted feature map into the improved UPerNet decoder model, use the decoder model to fuse the feature map, and finally obtain the burn wound surface segmentation prediction map. Through visualization technology, the burn wound surface area prediction map output by the neural network model is superimposed and displayed with the original image.

[0044] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0045] like Figure 1 As shown, the method for automatic segmentation of burn wound area based on neural network of the present invention comprises the following steps:

[0046] S1: Acquire burn images of burn patients; S2: Perform preprocessing and data enhancement operations on the burn images; S3: Input the preprocessed and data enhanced burn images into the neural network model for model training. Furthermore, the neural network model is divided into an encoder model and a decoder model; S4: Use the trained model burn image to predict the burn wound area and obtain a segmentation result map of the burn wound area.

[0047] Specifically, step S1 specifically includes: using a camera or other equipment to collect burn image data of a burn patient; step S2 further includes: S21: preprocessing the burn image; S22: performing data enhancement on the burn image; step S3 further includes: S31: inputting the preprocessed and data enhanced burn image into the encoder model to extract the feature map of the burn image; S32: inputting the feature map extracted by the encoder model into the decoder model to perform feature fusion of the burn image and output the segmentation prediction map of the burn wound area; S33: calculating the Loss value output by the model and training the model through the RMSProp optimizer; step S4 specifically includes: using the trained encoder and decoder models to predict the burn wound area of ​​the unlabeled burn image to obtain the segmentation result map of the burn wound area. Furthermore, through visualization technology, the burn wound area prediction map output by the neural network model and the original image are superimposed and displayed.

[0048] like Figure 2 As shown, further, step S2 specifically includes the following steps:

[0049] S21: Preprocessing the burn image, including: 1) screening the collected burn images and selecting clear burn images; 2) cutting out invalid background areas and areas involving patient privacy in the burn image; 3) marking the burn wound area in the image, generating a mask image with the same size as the original burn image as a label for model training; 4) normalizing the RGB three channel values ​​of the burn image to the interval [0,1] to obtain a standardized burn image.

[0050] S22: performing data enhancement operations on the burn image, specifically including: 1) performing random rotations between 0 and 360 degrees on the burn image and the corresponding mask image at the same time, and the rotation angles of the burn image and the mask image are consistent; 2) performing random flipping on the burn image and the corresponding mask image at the same time, and the flipping methods include horizontal flipping and mirror flipping, and a pseudo-random number generator randomly selects a method to flip the burn image and the mask image; 3) performing random translation on the burn image and the corresponding mask image at the same time, and the translation methods include horizontal translation and vertical translation, and the translation range is between 0% and 10% of the image width and image height, and the pseudo-random number generator randomly translates the burn image and the mask image; 4) performing random scaling on the burn image and the corresponding mask image at the same time, and the scaling method is to enlarge or reduce the image from the center of the image, and the scaling range is between 0% and 10%, and the pseudo-random number generator randomly scales the burn image and the mask image.

[0051] like Figure 3 As shown, further, step S3 specifically includes the following steps:

[0052] S31: Input the burn image processed in step S2 into the encoder model to extract the feature map of the burn image. The encoder model is an improved ResNet-101 model. Compared with the original ResNet-101 model, the improved ResNet-101 model deletes the output of the last fully connected layer of the original ResNet-101 model and replaces the ordinary convolution layers (Convolution Layers) in the original ResNet-101 model with dilated convolution layers (Dilated Convolution Layers).

[0053] S32: Input the feature map extracted by the encoder model into the decoder model, and the decoder model is an improved UPerNet model. Compared with the original UPerNet model, the improved UPerNet model improves the PPM (PyramidPooling Module) in the original structure from 4 layers to 3 layers, reducing the number of model parameters and the amount of calculation during model operation, thereby accelerating the model's operation speed. The feature maps output by each layer of the PPM are then fused, and finally a burn area prediction map with the same size as the original burn image is output. The output activation function of the decoder model is Sigmoid. The expression of the Sigmoid function is:

[0054]

[0055] Where S is the predicted output value of a single pixel, ranging from [0,1]. When the value of S is less than 0.5, the pixel is determined to be a non-burn wound area, and when the value of S is greater than or equal to 0.5, the pixel is determined to be a burn wound area.

[0056] S33: Calculate the Loss value between the output prediction map of the decoder model and the marked mask map. The Loss is calculated using the improved Dice Loss calculation method. Then use the RMSPro optimizer to perform back propagation to update the model parameters and train the model.

[0057] The expression of Dice coefficient is:

[0058]

[0059] Where |A∩B| represents the common elements between set A and set B, |A| represents the number of elements in set A, and |B| represents the number of elements in set B.

[0060] The improved Dice Loss calculation method proposed in the present invention is expressed as:

[0061]

[0062] Where β is the improved adaptive coefficient, m is the number of pixels in the width of the burn image, N is the number of pixels in the height of the burn image, and y is the number of pixels in the height of the burn image. ij Represents the predicted value of a single pixel, Represents the label value of a single pixel.

[0063] The expression of RMSPro optimizer is:

[0064]

[0065] Among them, W trepresents the parameters of the iterative model at time t, g t represents the gradient of the Loss function with respect to W after t iterations, E[g 2 ] t represents the mean of the squared gradients of the previous t times. α represents momentum and is set to 0.9. η0 represents the global initial learning rate. ∈ is a very small number, usually 1e-8, to avoid the denominator being 0.

[0066] Figure 4 This is a schematic diagram of the improved PPM structure of the present invention. Figure 5 This is a schematic diagram of the original PPM structure. Figure 4 , the improved PPM structure is as follows:

[0067] Figure 4 The three layers on the left are the downsampling part of the PPM structure. There are three downsampling structures from bottom to top, and the corresponding output feature maps are 1 / 4, 1 / 8 and 1 / 16 of the original image size. Compared with the original PPM downsampling structure, the improved PPM downsampling structure deletes the output of 1 / 32 of the feature map, reduces the amount of downsampling calculations, and speeds up the model operation.

[0068] Figure 4 The three layers on the right are the upsampling part of the PPM structure. There are three upsampling structures from top to bottom, and the corresponding output feature maps are 1 / 16, 1 / 8 and 1 / 4 of the original image size. Compared with the original PPM upsampling structure, the improved PPM downsampling structure deletes 1 / 32 of the feature map input, reduces the amount of upsampling calculations, and speeds up the model.

[0069] Figure 4 The rightmost module is the feature fusion module, which fuses the three feature maps obtained by upsampling.

[0070] The invention proposes a method for automatically segmenting a burn wound area based on a neural network. Compared with a traditional neural network model, the method proposed by the invention has the following differences: 1) compared with the classic ResNet-101, the improved ResNet-101 encoder model proposed by the invention replaces the ordinary convolution layer in the classic ResNet-101 model with a hole convolution layer, deletes the output of the last fully connected layer of the original ResNet-101 model, and the last layer output of the improved ResNet-101 encoder model is a feature map extracted by the model from a burn image; 2) the improved decoder UPerNet model proposed by the invention improves the PPM (Pyramid Pooling Module) structure in the original UPerNet model from 4 layers to 3 layers, reduces the number of parameters of the model, reduces the amount of calculation when the model is running, and accelerates the running speed of the model; 3) the improved Dice Loss function proposed by the invention increases an adaptive coefficient β, and in the process of model training, the value of β is adjusted according to the Loss value of the previous round of training, so as to train the model more effectively. The present invention proposes a method for automatic segmentation of burn wound area based on neural network, which is more accurate and faster than the traditional method in segmenting the burn wound area. At the same time, the data enhancement method is used to expand the burn image data set, which is suitable for burn wound images with a smaller data set.

[0071] The above is a detailed description of the implementation of a method for automatic segmentation of burn wound area based on a neural network proposed by the present invention in conjunction with the accompanying drawings. However, the method proposed by the present invention is not limited to the above implementation. Even if various changes are made to the present invention, if these changes fall within the scope of the claims of the present invention and their equivalents, they are still within the protection scope of the present invention.

Claims

1. A method for automatic segmentation of burn wound area based on neural network, characterized in that: The method comprises the following steps: S1: Acquire burn images of burn patients; S2: preprocessing and data enhancement operations on burn images; S3: inputting the preprocessed and data-enhanced burn image into the neural network model for model training. Further, the neural network model is divided into an encoder model and a decoder model; S4: using the trained model burn image to predict the burn wound area, and obtaining a segmentation result map of the burn wound area; the step S3 further includes: S31: inputting the preprocessed and data-enhanced burn image into the encoder model to extract a feature map of the burn image; inputting the burn image processed in step S2 into the encoder model to extract a feature map of the burn image; The encoder model is an improved ResNet-101 model. Compared with the original ResNet-101 model, the improved ResNet-101 model deletes the output of the last fully connected layer in the original ResNet-101 model, and replaces the ordinary convolution layer in the original ResNet-101 model with a hole convolution layer; S32: The feature map extracted by the encoder model is input into the decoder model to perform feature fusion of the burn image and output a segmentation prediction map of the burn wound area; the decoder model is an improved UPerNet model; compared with the original UPerNet model, the improved UPerNet model improves the PPM in the original structure from 4 layers to 3 layers; then the feature maps output by each layer of the PPM are fused, and finally a burn area prediction map with the same size as the original burn image is output; the output activation function of the decoder model is Sigmoid; the expression of the Sigmoid function is: Where S is the predicted output value of a single pixel, ranging from [0,1]; when the value of S is less than 0.5, the pixel is determined to be a non-burn wound area, and when the value of S is greater than or equal to 0.5, the pixel is determined to be a burn wound area; S33: Calculate the Loss value of the model output and train the model through the RMSProp optimizer; calculate the Loss value between the output prediction map of the decoder model and the marked mask map, and the Loss calculation uses the improved Dice Loss calculation method; then use the RMSPro optimizer to perform back propagation to update the model parameters and train the model; The expression of Dice coefficient is: Where |A∩B| represents the common elements between set A and set B, |A| represents the number of elements in set A, and |B| represents the number of elements in set B; The improved Dice Loss calculation method is expressed as: Where β is the improved adaptive coefficient, m is the number of pixels in the width of the burn image, N is the number of pixels in the height of the burn image, and y is the number of pixels in the height of the burn image. ij Represents the predicted value of a single pixel, Represents the annotation value of a single pixel; The expression of RMSPro optimizer is: Among them, W t represents the parameters of the iterative model at time t, g t represents the gradient of the Loss function with respect to W after t iterations, E[g 2 ] t represents the mean of the squared gradients of the previous t times; α represents the momentum and is set to 0.9; η0 represents the global initial learning rate, ∈ is 1e-8 to avoid the denominator being 0.

2. The method for automatic segmentation of burn wound area based on neural network according to claim 1, characterized in that: The step S2 further comprises: S21: performing preprocessing operations on the burn image; S22: Perform data enhancement operation on the burn image.

3. The method for automatic segmentation of burn wound area based on neural network according to claim 1, characterized in that: The step S1 specifically includes: using a camera device to collect burn image data of a burn patient.

4. The method for automatic segmentation of burn wound area based on neural network according to claim 2, characterized in that: The step S21 specifically includes: performing a preprocessing operation on the burn image, the preprocessing includes: 1) screening the collected burn images to select clear burn images; 2) cutting and removing invalid background areas and areas involving patient privacy in the burn images; 3) marking the burn wound area in the image, generating a mask image with the same size as the original burn image as a label for model training; 4) normalizing the RGB three channel values ​​of the burn image to the interval [0,1] to obtain a standardized burn image.

5. The method for automatic segmentation of burn wound area based on neural network according to claim 2, characterized in that: The step S22 specifically includes: performing data enhancement operation on the burn image, specifically including: 1) performing random rotation between 0 and 360 degrees on the burn image and the corresponding mask image at the same time, and the rotation angles of the burn image and the mask image are consistent; 2) performing random flipping on the burn image and the corresponding mask image at the same time, and the flipping methods include horizontal flipping and mirror flipping, and a pseudo-random number generator randomly selects a method to flip the burn image and the mask image; 3) performing random translation on the burn image and the corresponding mask image at the same time, and the translation methods include horizontal translation and vertical translation, and the translation range is between 0% and 10% of the image width and image height, and the pseudo-random number generator randomly translates the burn image and the mask image; 4) performing random scaling on the burn image and the corresponding mask image at the same time, and the scaling method is to enlarge or reduce the image from the center of the image, and the scaling range is between 0% and 10%, and the pseudo-random number generator randomly scales the burn image and the mask image.

6. The method for automatic segmentation of burn wound area based on neural network according to claim 1, characterized in that: The step S4 specifically includes: using the trained encoder and decoder models to predict the burn wound area of ​​the unlabeled burn image to obtain a segmentation result map of the burn wound area; and using visualization technology to superimpose and display the burn wound area prediction map output by the neural network model and the original image.