A skin spot recognition method based on deep learning

By optimizing the neural network parameters using deep learning methods combined with global and local perspectives, the problem of insufficient accuracy in identifying skin spots has been solved, and a multi-part and multi-category database has been established to significantly improve the identification accuracy.

CN115131822BActive Publication Date: 2024-10-29SHANGHAI SIMPLETOUCH ROBOT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210787432.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-06
Publication Date
2024-10-29
Estimated Expiration
2042-07-06

AI Technical Summary

Technical Problem

The existing technology has insufficient accuracy in identifying skin spots, making it difficult to accurately determine the category from clinical manifestations, and the amount of data is insufficient, resulting in inaccurate identification.

Method used

A method based on deep learning is used, combining global and local perspectives, to optimize neural network parameters and improve recognition accuracy through skin image collection and preprocessing, part division, stain segmentation, data set establishment and transfer learning.

Benefits of technology

By considering the location and category characteristics of spots, a multi-site, multi-category, and multi-sample database is established to improve the generalization ability of the neural network and significantly improve the accuracy of skin spot identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115131822B_ABST
    Figure CN115131822B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of medical images and image pattern recognition, and specifically to a skin spot recognition method based on deep learning, comprising the following steps: 1) acquisition and preprocessing of skin images, including all-round human skin images; 2) human body part division of skin images, including six global part information of face, arms, hands, torso, legs and feet; 3) spot segmentation based on part information, extracting local areas in the image that may be spots; 4) establishing a skin image data set, including data preprocessing, data undersampling and data set division; 5) transfer learning, using a pre-trained network structure and its parameters to learn local areas of spots based on global part information to optimize neural network parameters; compared with the prior art, the present invention can effectively improve the accuracy of skin spot recognition and solve the problem that spot recognition in the prior art is not accurate enough.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the technical field of medical images and image pattern recognition, and in particular to a skin spot recognition method based on deep learning. [Background Technology]

[0002] Human skin is often exposed to ultraviolet light and is affected by environmental, food, and genetic factors, which may cause skin pigmentation. Medical data statistics show that there are currently about 420 million people in the world with skin pigmentation. Among them, about 150 million people in China have skin pigmentation, and the number continues to increase year by year, showing a trend of younger people. Skin pigmentation usually has the characteristics of multiple occurrence, wide range, many types, and long treatment time. Due to the relative shortage of medical resources, the use of artificial intelligence recognition technology can assist doctors in identifying pigmentation and alleviate the pressure on medical resources.

[0003] Accurately identifying skin spots has always been one of the key medical projects studied by scholars at home and abroad. For example, Andre E, Brett K, Novoa RA, et al. Dermatologist-level classification of skin cancer with deep neural networks [J]. Nature, Vol. 542, No. 7639: pp. 115-118 (2019) used neural networks to classify spots in clinical skin images. Smaoui N, Derbel N. Melanoma Skin Cancer Detection based on Image Processing [J]. Current Medical Imaging Reviews, 14 (1) (2018) used traditional image processing technology to extract four feature parameters: asymmetry, edge irregularity, color, and diameter, and added their weights to obtain the total value to identify spots in the database. Tschandl P, Rosendahl C, Akay BN, et al. Expert-Level Diagnosis of Nonpigmented Skin Cancer by Combined Convolutional Neural Networks[J]. JAMA Dermatology, 155(1)(2018) used InceptionV3, ResNet50 and the neural network integrated by XGBoost to classify non-pigmented skin spots, and the accuracy rates on the test set were 0.711-0.725, 0.668-0.683 and 0.729-0.755 respectively.

[0004] In summary, the difficulty of skin spot recognition is the lack of clinical research data and the difficulty in accurately judging the category based on the local manifestation of the spots. In terms of clinical manifestation, the type and location of the spots are correlated to a certain extent. Therefore, it will be of great significance to establish a database that is conducive to improving the fitting ability of skin spot data, improve the generalization ability of neural networks, and thus improve the accuracy of skin spot recognition, from both a global and local perspective, and comprehensively consider two important features such as the location and category of the spots. [Summary of the invention]

[0005] The purpose of the present invention is to solve the above-mentioned shortcomings and provide a skin spot recognition method based on deep learning, which can effectively improve the accuracy of skin spot recognition and solve the problem of inaccurate spot recognition in the prior art.

[0006] To achieve the above purpose, a skin spot recognition method based on deep learning is designed, which includes the following steps: 1) skin image acquisition and preprocessing, including all-round human skin images; 2) human body part division of skin images, which is divided into six global part information: face, arms, hands, torso, legs, and feet; 3) spot segmentation based on part information, extracting local areas in the image that may be spots; 4) establishing a skin image dataset, including data preprocessing, data undersampling, and dataset division; 5) transfer learning, using the pre-trained network structure and its parameters, to learn the local areas of the spots based on the global part information to optimize the neural network parameters.

[0007] Furthermore, in step 1), the human body surface skin is photographed using cameras in different orientations to obtain multiple skin images within a 360° field of view, which are spliced ​​and pre-processed to form a multi-orientation panoramic skin image.

[0008] Further, step 2) includes the following steps:

[0009] 2.1) Preprocessing, including image scaling, fixed width, and step size determination; First, the image is scaled to an appropriate size according to the size of the imaging field of view; second, a fixed value is selected as the width according to the shooting angle, width and other parameters of the body camera, and the image size is proportionally changed. in ,Width in ]; Finally, according to the applicable stride of different models, the size of the model input image is defined as:

[0010]

[0011]

[0012] 2.2) Establish a neural network, using the residual network ResNet50; ResNet50 is divided into 5 stages, among which Stage0 is regarded as the preprocessing of the input vector input, and Stage1-4 consists of 3, 4, 6 and 3 Bottleneck respectively, with similar structures;

[0013] 2.3) Neural network prediction mainly uses neural networks to segment and extract various parts of the human body in skin images. Finally, according to the location attributes of skin spots, these parts are reintegrated into six parts: face, arms, hands, torso, legs, and feet.

[0014] Furthermore, in step 2.2), taking Stage 1 as an example, Bottleneck is composed of 1*1 and 3*3 convolutional layers, BN layers and RELU activation functions. The specific composition is shown in the following formula. The difference between Stage 2-4 is that there is one more convolutional layer on the right side of Bottleneck.

[0015]

[0016] Furthermore, in step 3), image processing techniques such as image enhancement and image segmentation are used to extract skin color patches, and feature analysis of the color patches is performed to provide a digital description, such as boundary features, geometric features, and color features.

[0017] Furthermore, in step 3), the skin data is first preprocessed to remove noise such as hair to obtain clean skin image data, and then the skin spot area is segmented on the preprocessed image; based on the difference between the spot location and the normal skin part image data, such as grayscale value, gradient value, RGB distribution information, the spot area is found, the location of the candidate spot area is determined, and the color information of the spot, as well as the shape, size, and edge information of the spot are obtained.

[0018] Furthermore, in step 4), a multi-site, multi-category, and multi-sample database is established based on global site information and stain types, and the data set is reasonably divided on this basis for training and testing in step 5).

[0019] Furthermore, step 4) includes the following steps: 4.1) Data preprocessing is data enhancement of the original data, that is, performing the following random operations on each image in the skin image database, including: image blurring; image flipping, including horizontal flipping and vertical flipping; image contrast adjustment; image rotation; image elastic transformation; changing the hue, saturation and brightness of the image; finally, scaling the image to a fixed size to meet the input requirements of the neural network; 4.2) Data undersampling is to solve the problem of unbalanced data sample size; 4.3) The establishment of the data set takes into account the size of the sample and divides the overall data into training set, validation set and test set according to a certain proportion.

[0020] Furthermore, in step 4.2), the four most common skin spots are selected as research objects, and the spots with the least number of samples are used as the standard. At the same time, the global location information of the spots is considered, so that the number of samples in each location of these four types of spots is similar.

[0021] Furthermore, in step 5), based on different models and their pre-trained weights, the neural network parameters are trained using the skin image dataset established in step 4), that is, based on the global part information, the characteristics of the local area information are learned through the neural network to further optimize the neural network parameters and improve the network's fitting and generalization capabilities.

[0022] Compared with the prior art, the present invention has the following advantages:

[0023] (1) The present invention proposes a color spot region segmentation method based on location information, which reduces the interference caused by different skin colors and skin qualities of different people and improves the accuracy of color spot region extraction;

[0024] (2) The present invention takes into account the weight of the location information of the spots for the first time, divides the skin image data set more scientifically, accurately and fully, and adds it to the training of the neural network, effectively improving the accuracy of skin spot recognition;

[0025] (3) The present invention takes both global and local perspectives into consideration, comprehensively considering important features such as the location and category of the spots, and establishes a database that is conducive to improving the data fitting capability of skin spots, which is used to improve the generalization ability of the neural network and thus improve the accuracy of skin spot recognition. [Drawings]

[0026] Figure 1 This is a flow chart of the skin spot recognition method based on deep learning of the present invention;

[0027] Figure 2 is a schematic diagram of the splicing result of the skin image of the present invention;

[0028] Figure 3It is a schematic diagram of the human body part segmentation result of the present invention;

[0029] Figure 4 It is a schematic diagram of a data set based on the part information (head, arm, leg, foot) and the type of color spots of the present invention;

[0030] Figure 5 It is a schematic diagram of the training and testing results of the present invention. [Specific implementation method]

[0031] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments:

[0032] The present invention provides a skin spot recognition method based on deep learning, which can effectively solve the problem of inaccurate spot recognition. The method mainly optimizes the neural network by combining the global part information and local area information of the target, thereby improving the generalization ability of the network, and mainly includes the following steps:

[0033] 1) Collection and preprocessing of skin images, including all-round human skin images;

[0034] 2) Human body part segmentation of skin images, which is divided into six global part information: face, arm, hand, torso, leg, and foot;

[0035] 3) Color spot segmentation based on location information to extract local areas in the image that may be color spots;

[0036] 4) Establish a skin image dataset, including data preprocessing, data undersampling, and dataset partitioning;

[0037] 5) Transfer learning: Using the pre-trained network structure and its parameters, the local area of ​​the color spot is learned based on the global part information to optimize the neural network parameters.

[0038] In step 1), the skin images captured by the camera are usually multi-directional and incomplete, and need to be spliced ​​and pre-processed to form a multi-directional skin panoramic image, which is conducive to improving the accuracy of body part segmentation in step 2) and local spot area extraction in step 3). In step 4), a multi-part, multi-type, and multi-sample database is established based on global part information and spot types, and the data set is reasonably divided on this basis for training and testing in step 5).

[0039] Figure 1 This is a flow chart of the skin spot recognition method based on deep learning provided in this embodiment. Figure 1 As shown in the figure, the data set is divided according to the location and category attributes of the spots, and the weight parameters of the neural network are optimized to improve the generalization ability of the network. The specific steps are as follows:

[0040] 1) Skin image acquisition and preprocessing

[0041] Use cameras in different directions to shoot the human skin surface and obtain multiple skin images within a 360° field of view. Since the skin images directly captured by the camera are usually local, in order to more accurately segment and identify spots, it is necessary to perform panoramic stitching on multiple skin images. The stitching effect is as follows: Figure 2 Finally, the same stitching operation is performed on the local images of the human body in all directions to obtain a full range of human skin panoramic images.

[0042] 2) Human body part segmentation of skin images

[0043] The segmentation of human body and its parts in skin images adopts the segmentation method based on neural network. It mainly includes the following steps:

[0044] 2.1) Preprocessing

[0045] Preprocessing includes image scaling, fixed width, step size determination, etc. First, the image is scaled to a suitable size according to the size of the imaging field of view; secondly, a fixed value is selected as the width according to the shooting angle, width and other parameters of the body camera, and the image size is proportionally changed. in ,Width in ]; Finally, the stride is applied according to different models. Here, stride is set to 16, and the size of the model input image is defined as:

[0046]

[0047]

[0048] 2.2) Building a Neural Network

[0049] Build a neural network, here we use the residual network ResNet50. ResNet50 can be divided into 5 stages, among which Stage0 has a relatively simple structure and can be regarded as a preprocessing of the input vector input. Stage1-4 is composed of 3, 4, 6 and 3 Bottlenecks respectively, and the structure is similar. Taking Stage1 as an example, Bottleneck is basically composed of 1*1 and 3*3 convolutional layers, BN layers and RELU activation functions. The specific composition is as follows. The difference is that Stage2-4 has an additional convolutional layer on the right side of Bottleneck.

[0050]

[0051] 2.3) Neural Network Prediction

[0052] Neural network prediction mainly uses neural networks to segment and extract human body parts in human body images. Finally, according to the location attributes of skin spots, these parts are reintegrated into six parts: face, arms, hands, torso, legs, and feet. Figure 3 shown.

[0053] The programming language used in this step is Python and TensorFlow framework.

[0054] 3) Color spot area segmentation based on location information

[0055] The method used is a color spot area segmentation method based on location information, which mainly uses image processing technologies such as image enhancement and image segmentation to extract skin color blocks, and analyze the characteristics of the color spots to give effective, objective, and high-precision data descriptions, such as boundary features, geometric features, color features, etc. The skin data is preprocessed to remove noise such as hair to obtain clean skin image data, and then the skin color spot area is segmented on the preprocessed image. According to the differences between the color spot location and the normal skin part image data, such as grayscale value, gradient value, RGB distribution information and other features, the color spot area is found, the location of the candidate color spot area is determined, and the color information, shape, size, edge and other information of the color spot are obtained.

[0056] 4) Establish a skin image dataset

[0057] Using the global site information and skin spot types obtained in step 2), a multi-site, multi-type, and multi-sample database is established. On the basis of the diversified database, data enhancement, data pooling, and training and test set division are performed. The main steps are as follows:

[0058] 4.1) Data preprocessing

[0059] Data preprocessing mainly involves data enhancement of the original data, that is, performing the following series of random operations on each local area image of the spot in the skin image database, with the random probability generally set to 0.5, including:

[0060] Blurred images;

[0061] Image flipping, including horizontal flipping and vertical flipping;

[0062] Image contrast adjustment;

[0063] Image rotation;

[0064] Image elastic transformation;

[0065] Change the hue, saturation, and brightness of an image.

[0066] Finally, in order to meet the input requirements of the neural network, the image is scaled to a fixed size. For example, according to the input requirements of the ResNet18 model structure, the image is scaled to 224*224.

[0067] 4.2) Data Undersampling

[0068] Data undersampling is mainly used to solve the problem of unbalanced data sample size. There are more than 600 types of skin spots, and the number of samples varies greatly. Here we select the four most common skin spots as the research objects. Figure 4 As shown in FIG. 1 , the color spot with the least number of samples is taken as the standard, and the global location information of the color spots is considered at the same time, so that the number of image samples in each location of the four types of color spots is as close as possible.

[0069] 4.3) Dataset Division

[0070] The establishment of the data set takes into account the size of the sample and divides the overall data into training set, validation set and test set according to a certain ratio. For example, the overall data is divided into training set, validation set and test set according to the ratio of 6:2:2.

[0071] 5) Transfer Learning

[0072] Based on different models and their pre-trained weights, the skin image dataset established in step 4) is used to train the neural network parameters, that is, based on the global part information, the neural network learns the characteristics of the local area information, further optimizes the neural network parameters, and improves the network's fitting and generalization capabilities. The models here can be resnet18, mobilenet_v2, and vgg11_bn.

[0073] In this embodiment, step 5) uses the ResNet18 neural network model. On the basis of the pre-trained weights, the neural network parameters are optimized using the training set and validation set in the skin image data set established in step 4) to improve the network's fitting ability and generalization ability.

[0074] The programming language used in this step is Python, the basic framework is Pytorch framework, the learning rate is set to 0.001, the learning rate decay parameter is 0.1, the optimization function uses stochastic gradient descent with momentum, the loss function is cross entropy, and the batch_size is set to 12. Figure 5The training and testing results of the ResNet18 network on the created data set, where the horizontal axis represents the number of training Epochs; the vertical axis represents the accuracy of the training model in the training set and the test set. It can be seen that the accuracy of the present invention in identifying these four types of common skin spots is as high as 90%. Therefore, the present invention has certain practical value in skin spot recognition and is worthy of further increasing the research scope and research intensity.

[0075] The present invention is not limited to the above-mentioned embodiments, and any other changes, modifications, substitutions, combinations, and simplifications made without departing from the spirit and principles of the present invention shall be equivalent replacement methods and shall be included in the protection scope of the present invention.

Claims

1. A skin spot recognition method based on deep learning, characterized in that: The following steps are involved: 1) Collection and preprocessing of skin images, including all-round human skin images; 2) Human body part segmentation of skin images, which is divided into six global parts: face, arm, hand, torso, leg, and foot; 3) Color spot segmentation based on location information to extract local areas in the image that may be color spots; 4) Establish a skin image dataset, including data preprocessing, data undersampling, and dataset partitioning; 5) Transfer learning, using the pre-trained network structure and its parameters, to learn the local area of ​​the spots based on the global part information to optimize the neural network parameters; Step 2) includes the following steps: 2.1) Preprocessing, including image scaling, fixed width, and step size determination; First, the image is scaled to an appropriate size according to the size of the imaging field of view; second, according to the shooting angle and width parameters of the body camera, a fixed value is selected as the width, and the image size is proportionally changed. in ,Width in ]; Finally, according to the applicable stride of different models, the size of the model input image is defined as: 2.2) Establish a neural network, using the residual network ResNet50; ResNet50 is divided into 5 stages, among which Stage0 is regarded as the preprocessing of the input vector input, and Stage1-4 consists of 3, 4, 6 and 3 Bottleneck respectively, with similar structures; 2.3) Neural network prediction is to use neural network to segment and extract various parts of the human body in the skin image. Finally, according to the location attributes of skin spots, these parts are reintegrated into 6 parts: face, arms, hands, torso, legs, and feet.

2. The skin spot recognition method based on deep learning according to claim 1, characterized in that: In step 1), the human body surface skin is photographed using cameras in different orientations to obtain multiple skin images within a 360° field of view, which are then spliced ​​and pre-processed to form a multi-orientation panoramic skin image.

3. The skin spot recognition method based on deep learning according to claim 1, characterized in that: In step 2.2), taking Stage 1 as an example, Bottleneck is composed of 1*1 and 3*3 convolutional layers, BN layers and RELU activation functions. The specific composition is shown in the figure below. The difference between Stage 2-4 is that there is one more convolutional layer on the right side of Bottleneck.

4. The skin spot recognition method based on deep learning according to claim 1, characterized in that: In step 3), image enhancement, image segmentation and image processing techniques are used to extract skin color patches, and feature analysis of the color patches is performed to give a digital description, including boundary features, geometric features, and color features.

5. The skin spot recognition method based on deep learning as claimed in claim 4, characterized in that: In step 3), the skin data is first preprocessed to remove hair noise to obtain clean skin image data, and then the skin spot area is segmented on the preprocessed image; based on the difference between the spot location and the normal skin part image data, including grayscale value, gradient value, RGB distribution information, the spot area is found, the location of the candidate spot area is determined, and the color information of the spot, as well as the shape, size, and edge information of the spot are obtained.

6. The skin spot recognition method based on deep learning according to claim 1, characterized in that: In step 4), a multi-site, multi-category, and multi-sample database is established based on global site information and stain types, and the data set is reasonably divided on this basis for training and testing in step 5).

7. The skin spot recognition method based on deep learning according to claim 6, characterized in that: Step 4) includes the following steps: 4.1) Data preprocessing is to enhance the original data, that is, to perform the following random operations on each image in the skin image database, including: image blurring; image flipping, including horizontal flipping and vertical flipping; image contrast adjustment; image rotation; image elastic transformation; changing the hue, saturation and brightness of the image; finally, scaling the image to a fixed size to meet the input requirements of the neural network; 4.2) Data undersampling is to solve the problem of unbalanced data sample size; 4.3) The establishment of the data set takes into account the size of the sample and divides the overall data into training set, validation set and test set according to a certain proportion.

8. The skin spot recognition method based on deep learning according to claim 7, characterized in that: In step 4.2), the four most common skin spots are selected as the research objects, and the spots with the least number of samples are used as the standard. At the same time, the global location information of the spots is considered, so that the number of samples in each location of these four types of spots is similar.

9. The skin spot recognition method based on deep learning according to claim 1, characterized in that: In step 5), based on different models and their pre-trained weights, the neural network parameters are trained using the skin image dataset established in step 4), that is, based on the global part information, the characteristics of the local area information are learned through the neural network to further optimize the neural network parameters and improve the network's fitting and generalization capabilities.

Citation Information

Patent Citations

  • Image processing method and device, computer device and storage medium

    CN109325468A

  • Method for training color spot detection model and related device

    CN112614140A