CN118351110B - Chloasma severity objectively evaluating method based on multitask learning - Google Patents
Chloasma severity objectively evaluating method based on multitask learning Download PDFInfo
- Publication number
- CN118351110B CN118351110B CN202410757826.6A CN202410757826A CN118351110B CN 118351110 B CN118351110 B CN 118351110B CN 202410757826 A CN202410757826 A CN 202410757826A CN 118351110 B CN118351110 B CN 118351110B
- Authority
- CN
- China
- Prior art keywords
- chloasma
- area
- melasma
- image
- model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0012—Biomedical image inspection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/084—Backpropagation, e.g. using gradient descent
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/62—Analysis of geometric attributes of area, perimeter, diameter or volume
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/66—Analysis of geometric attributes of image moments or centre of gravity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/46—Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
- G06V10/469—Contour-based spatial representations, e.g. vector-coding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/82—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/168—Feature extraction; Face representation
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H30/00—ICT specially adapted for the handling or processing of medical images
- G16H30/40—ICT specially adapted for the handling or processing of medical images for processing medical images, e.g. editing
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H50/00—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
- G16H50/20—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for computer-aided diagnosis, e.g. based on medical expert systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30004—Biomedical image processing
- G06T2207/30088—Skin; Dermal
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
- G06T2207/30201—Face
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Biomedical Technology (AREA)
- Multimedia (AREA)
- Public Health (AREA)
- Evolutionary Computation (AREA)
- Software Systems (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Geometry (AREA)
- Artificial Intelligence (AREA)
- Radiology & Medical Imaging (AREA)
- Data Mining & Analysis (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Databases & Information Systems (AREA)
- Computing Systems (AREA)
- Epidemiology (AREA)
- Primary Health Care (AREA)
- Mathematical Physics (AREA)
- General Engineering & Computer Science (AREA)
- Pathology (AREA)
- Molecular Biology (AREA)
- Computational Linguistics (AREA)
- Biophysics (AREA)
- Human Computer Interaction (AREA)
- Life Sciences & Earth Sciences (AREA)
- Quality & Reliability (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
- Image Analysis (AREA)
Abstract
本发明公开了一种基于多任务学习的黄褐斑严重程度客观化评估方法,涉及图形图像处理技术应用于皮肤病学诊断领域,包括:S1、通过图像采集模块对患者面部进行多角度图像采集;S2、基于人脸和黄褐斑区域分割模型对S1采集的图像进行分割处理;S3、基于多任务学习模型对分割后图像中黄褐斑的均匀性分布、色度值、皮损面积进行同时计算;S4、对皮损面积、均匀性分布和色度值进行整合,并采用MASI评价规则对黄褐斑严重程度进行全面评估。本发明提供一种基于多任务学习的黄褐斑严重程度客观化评估方法,通过在黄褐斑评价中引入了均匀性评估和色度值评价,该方法不仅能够提高计算速度、减少计算量,还能够更加准确全面的评估黄褐斑严重程度。
The present invention discloses an objective evaluation method for the severity of chloasma based on multi-task learning, which relates to the application of graphic image processing technology in the field of dermatological diagnosis, including: S1, multi-angle image acquisition of the patient's face through an image acquisition module; S2, segmentation processing of the image acquired by S1 based on a face and chloasma region segmentation model; S3, simultaneous calculation of the uniformity distribution, chromaticity value, and skin lesion area of chloasma in the segmented image based on a multi-task learning model; S4, integration of skin lesion area, uniformity distribution, and chromaticity value, and comprehensive evaluation of the severity of chloasma using MASI evaluation rules. The present invention provides an objective evaluation method for the severity of chloasma based on multi-task learning, which introduces uniformity evaluation and chromaticity value evaluation in chloasma evaluation, and the method can not only improve the calculation speed and reduce the amount of calculation, but also more accurately and comprehensively evaluate the severity of chloasma.
Description
技术领域Technical Field
本发明涉及图形图像处理技术应用于皮肤病学诊断领域。更具体地说,本发明涉及一种利用计算机视觉和深度学习技术,实现黄褐斑病情严重程度客观化、自动化评估的基于多任务学习的黄褐斑严重程度客观化评估方法。The present invention relates to the application of graphic image processing technology in the field of dermatological diagnosis. More specifically, the present invention relates to a method for objectively evaluating the severity of melasma based on multi-task learning, which utilizes computer vision and deep learning technology to achieve objective and automated evaluation of the severity of melasma.
背景技术Background Art
黄褐斑(melasma)是一种常见的皮肤疾病,主要表现为面部对称性分布的黄褐色斑片,更多见于女性,尤其是在孕期和口服避孕药的女性中。黄褐斑的形成与多种因素有关,包括遗传因素、紫外线暴露、激素变化以及皮肤类型等。当前,黄褐斑的严重程度评估主要依赖皮肤科医生的临床经验和视觉观察。虽然目前的现有技术在客观化评估黄褐斑的严重程度中做出了尝试,但其仅关注于黄褐斑的面积和颜色深度检测,缺少对黄褐斑的均匀性进行评估,这使得其评估的准确性受到限制,即现有技术不能准确的客观化评估,带来的问题包括:Melasma is a common skin disease characterized by symmetrically distributed yellow-brown patches on the face. It is more common in women, especially during pregnancy and in women taking oral contraceptives. The formation of melasma is related to many factors, including genetic factors, ultraviolet exposure, hormonal changes, and skin type. Currently, the severity assessment of melasma mainly relies on the clinical experience and visual observation of dermatologists. Although the current existing technology has made attempts to objectively assess the severity of melasma, it only focuses on the area and color depth detection of melasma, and lacks an assessment of the uniformity of melasma, which limits the accuracy of its assessment. That is, the existing technology cannot accurately and objectively assess the severity of melasma, resulting in the following problems:
治疗选择的盲目性:缺乏准确的严重程度评估,医生可能无法为患者选择最合适的治疗方案,导致治疗效果不佳,无法帮助患者快速痊愈。Blindness in treatment selection: Due to the lack of accurate severity assessment, doctors may not be able to choose the most appropriate treatment plan for patients, resulting in poor treatment effects and failure to help patients recover quickly.
疗效监控困难:无法精确监测治疗效果的变化,难以及时调整治疗计划,可能导致时间延长,增加患者经济和心理负担。Difficulty in monitoring therapeutic efficacy: It is impossible to accurately monitor changes in treatment effects and it is difficult to adjust the treatment plan in a timely manner, which may result in prolonged treatment time and increase the financial and psychological burden on patients.
临床研究受限:缺乏客观、标准化的评估数据,限制了临床研究的深入进行和治疗方法的创新。Clinical research is limited: The lack of objective and standardized evaluation data restricts the in-depth progress of clinical research and the innovation of treatment methods.
因此,发展和使用准确的客观化评估对于提高黄褐斑治疗的科学性和有效性至关重要。Therefore, the development and use of accurate objective assessments are essential to improving the scientificity and effectiveness of melasma treatment.
发明内容Summary of the invention
本发明的一个目的是解决至少上述问题和/或缺陷,并提供至少后面将说明的优点。An object of the present invention is to solve at least the above-mentioned problems and/or disadvantages and to provide at least the advantages which will be described hereinafter.
为了实现本发明的这些目的和其它优点,提供了一种基于多任务学习的黄褐斑严重程度客观化评估方法,其特征在于,包括:In order to achieve these purposes and other advantages of the present invention, a method for objectively evaluating the severity of melasma based on multi-task learning is provided, which is characterized by comprising:
S1、通过图像采集模块对患者面部进行多角度图像采集;S1, collecting multi-angle images of the patient's face through an image acquisition module;
S2、基于人脸和黄褐斑区域分割模型对S1采集的图像进行分割处理;S2, segmenting the image collected by S1 based on the face and chloasma area segmentation model;
S3、基于多任务学习模型对分割后图像中黄褐斑的均匀性分布、色度值、皮损面积进行同时计算;S3, based on the multi-task learning model, the uniformity distribution, chromaticity value and skin lesion area of chloasma in the segmented image are simultaneously calculated;
S4、对皮损面积、均匀性分布和色度值进行整合,并采用MASI评价规则对黄褐斑严重程度进行全面评估。S4. The lesion area, uniform distribution and chromaticity value were integrated, and the severity of melasma was comprehensively evaluated using the MASI evaluation rule.
优选的是,所述多任务学习模型包括黄褐斑皮损面积计算模型和共享像素点提取模型;Preferably, the multi-task learning model includes a chloasma lesion area calculation model and a shared pixel extraction model;
其中,所述黄褐斑皮损面积计算模型对分割出来的黄褐斑区域进行黄褐斑面积计算;Wherein, the chloasma skin lesion area calculation model calculates the chloasma area of the segmented chloasma area;
所述共享像素点提取模型对分割出来的黄褐斑区域进行色度值计算和均匀性检测。The shared pixel extraction model performs chromaticity value calculation and uniformity detection on the segmented chloasma area.
优选的是,在S2中,所述人脸和黄褐斑区域分割模型采用面部轮廓自动识别算法和区域分割算法对S1采集的图像进行分割处理,以得到对应的训练集和测试集,所述分割处理的流程包括:Preferably, in S2, the face and chloasma region segmentation model uses a facial contour automatic recognition algorithm and a region segmentation algorithm to segment the image collected in S1 to obtain a corresponding training set and a test set, and the segmentation process includes:
S210、基于人体关键点自动识别和分割以得到人脸中的前额、下颌、左面颊、右面颊所对应的区域;S210, automatically identifying and segmenting the key points of the human body to obtain the areas corresponding to the forehead, the mandible, the left cheek, and the right cheek in the human face;
S211、采用Labelme软件对各个区域里的黄褐斑进行标注,以得到一个JSON文件;S211, using Labelme software to label the melasma in each area to obtain a JSON file;
S212、将JSON文件转换为灰度图像,得到人脸分割mask图像、黄褐斑分割mask图像;S212, converting the JSON file into a grayscale image to obtain a face segmentation mask image and a chloasma segmentation mask image;
S213、将人脸分割mask图像、黄褐斑分割mask图像和原始图像进行划分得到对应的训练集和测试集。S213, dividing the face segmentation mask image, the chloasma segmentation mask image and the original image to obtain corresponding training sets and test sets.
优选的是,在S2中,将深度学习网络模型作为人脸和黄褐斑区域分割模型的共享网络,将训练集加载至共享网络中进行分割训练,进而得到人脸和黄褐斑区域分割模型;Preferably, in S2, the deep learning network model is used as a shared network of the face and chloasma region segmentation model, and the training set is loaded into the shared network for segmentation training, thereby obtaining the face and chloasma region segmentation model;
其中,在人脸和黄褐斑区域分割模型中将图像按类别分为背景、前额、下颌、左面颊、右面颊和黄褐斑6个区域,在训练时选择图像输入的大小和同时输入图像数据的数量,并采用下式中的交叉熵损失函数L(X,Y)完成参数设置:In the face and chloasma region segmentation model, the image is divided into six regions according to categories: background, forehead, mandible, left cheek, right cheek and chloasma. During training, the size of the image input and the number of image data input simultaneously are selected, and the cross entropy loss function L ( X, Y ) in the following formula is used to complete the parameter setting:
其中,X为模型的输入图像集,Y为X对应的真实标签或真实数据,C 为类别的总数,为第n个实例对应真实标签的one-hot 编码向量,为softmax 函数之前的第n个实例对应模型的原始输出;为第n个实例对应类的预测概率分布。Among them, X is the input image set of the model, Y is the true label or real data corresponding to X , C is the total number of categories, is the one-hot encoding vector corresponding to the true label of the nth instance, is the original output of the model corresponding to the nth instance before the softmax function; is the predicted probability distribution of the class corresponding to the nth instance.
优选的是,当类别不平衡时,则通过为不同的类别分配不同的权重对交叉熵损失函数L(X,Y)进行优化,优化后的交叉熵损失函数L(X,Y)如下所示:Preferably, when the categories are unbalanced, the cross entropy loss function L ( X,Y ) is optimized by assigning different weights to different categories. The optimized cross entropy loss function L ( X,Y ) is as follows:
上式中,W c 为分配给类别c的权重。In the above formula, Wc is the weight assigned to category c .
优选的是,在S3中,所述共享像素点提取模型进行色度值计算的流程包括:Preferably, in S3, the process of calculating the chromaticity value by the shared pixel extraction model includes:
S310、读取原始图像和分割出的黄褐斑RGB掩膜图像,将原始图像对应的像素映射到黄褐斑RGB掩膜图像中,以使其还原成与原始图像对应的像素;S310, reading the original image and the segmented chloasma RGB mask image, mapping the pixels corresponding to the original image to the chloasma RGB mask image, so as to restore the pixels corresponding to the original image;
S311、对黄褐斑区域像素平均值和正常皮肤区域像素平均值进行取差操作,以得到对应的差值;S311, performing a difference operation on the average pixel value of the chloasma area and the average pixel value of the normal skin area to obtain a corresponding difference value;
S312、将差值输入到CIEDE2000色差计算公式中,以得到对应的黄褐斑区域色度评价分值。S312, inputting the difference into the CIEDE2000 color difference calculation formula to obtain the corresponding chloasma area chromaticity evaluation score.
优选的是,在S3中,所述共享像素点提取模型中设置有均匀性检测算法,所述均匀性检测算法的处理方式包括:Preferably, in S3, a uniformity detection algorithm is provided in the shared pixel extraction model, and the processing method of the uniformity detection algorithm includes:
S20、基于每个黄褐斑的质心得到所有黄褐斑分布的实际平均距离AAD;S20, obtaining the actual average distance AAD of all melasma distributions based on the centroid of each melasma;
S21、通过下式计算质心分布的密度Density:S21. Calculate the density of the centroid distribution using the following formula:
上式中,face area表示前额、下颌、左面颊、右面颊所对应面部的面积,centroidnumbers表示黄褐班的质心数量;In the above formula, face area represents the area of the face corresponding to the forehead, mandible, left cheek, and right cheek, and centroid numbers represents the number of centroids of the tan spots;
S22、基于S21计算得到的密度Density,采用下式换算出质心的理论平均距离TUAD:S22, based on the density calculated by S21, the theoretical average distance TUAD of the center of mass is calculated using the following formula:
S23、基于S22计算得到的理论平均距离TUAD,计算实际平均距离AAD占理论平均距离TUAD的比值R;S23, based on the theoretical average distance TUAD calculated in S22, calculating the ratio R of the actual average distance AAD to the theoretical average distance TUAD;
若R值接近1,则表示为均匀分布,若 R值小于1,则表示为聚集分布,否则表示为偏向分布。If the R value is close to 1, it indicates a uniform distribution. If the R value is less than 1, it indicates a clustered distribution. Otherwise, it indicates a skewed distribution.
优选的是,在S4中,对黄褐斑严重程度进行全面评估的MASI判断值通过下式的计算结果得到:Preferably, in S4, the MASI judgment value for comprehensively evaluating the severity of melasma is obtained by the calculation result of the following formula:
上式中,A指黄褐斑皮损面积占比,D指色度评分,H是均匀性评分,AET表示前额区域黄褐斑皮损面积占比,DET表示前额区域黄褐斑颜色深度,HET表示前额区域黄褐斑均匀性,AMR表示右侧面颊区域黄褐斑皮损面积占比,DMR表示右侧面颊区域黄褐斑颜色深度,HMR表示右侧面颊区域黄褐斑均匀性,AML表示左侧面颊区域黄褐斑皮损面积占比,DML表示左侧面颊区域黄褐斑颜色深度,HML表示左侧面颊区域黄褐斑均匀性,AXH表示下颌区域黄褐斑皮损面积占比,DXH表示下颌区域黄褐斑颜色深度,HXH表示下颌区域黄褐斑均匀性。In the above formula, A refers to the proportion of melasma lesion area, D refers to the chroma score, H is the uniformity score, A ET indicates the proportion of melasma lesion area in the forehead area, D ET indicates the color depth of melasma in the forehead area, H ET indicates the uniformity of melasma in the forehead area, A MR indicates the proportion of melasma lesion area in the right cheek area, D MR indicates the color depth of melasma in the right cheek area, H MR indicates the uniformity of melasma in the right cheek area, A ML indicates the proportion of melasma lesion area in the left cheek area, D ML indicates the color depth of melasma in the left cheek area, H ML indicates the uniformity of melasma in the left cheek area, A XH indicates the proportion of melasma lesion area in the mandibular area, D XH indicates the color depth of melasma in the mandibular area, and H XH indicates the uniformity of melasma in the mandibular area.
本发明至少包括以下有益效果:相对于现有技术基于单任务评估,本申请提供的黄褐斑严重程度评估方法,构建了一种包括黄褐斑皮损面积计算模型和共享像素点提取模型的黄褐斑多任务学习模型,在黄褐斑评价中引入了均匀性评估和色度值评价,该方法不仅能够提高计算速度、减少计算量,还能够更加准确全面的评估黄褐斑严重程度,为临床制定个性化治疗措施和效果监测等提供理论依据,具体来说,本发明基于面部轮廓自动识别和黄褐斑区域分割算法,通过黄褐斑皮损面积计算模型和共享像素点提取模型,同时计算黄褐斑均匀性分布、黄褐斑色度值和黄褐斑皮损面积,最后整合皮损面积、均匀性分布和色度值,准确全面评估黄褐斑严重程度。The present invention includes at least the following beneficial effects: Compared with the prior art based on single-task evaluation, the chloasma severity assessment method provided by the present application constructs a chloasma multi-task learning model including a chloasma lesion area calculation model and a shared pixel extraction model, and introduces uniformity assessment and chromaticity value evaluation in the chloasma evaluation. This method can not only improve the calculation speed and reduce the amount of calculation, but also more accurately and comprehensively assess the severity of chloasma, and provide a theoretical basis for the clinical formulation of personalized treatment measures and effect monitoring. Specifically, the present invention is based on automatic facial contour recognition and chloasma area segmentation algorithm, through the chloasma lesion area calculation model and the shared pixel extraction model, to simultaneously calculate the chloasma uniformity distribution, chloasma chromaticity value and chloasma lesion area, and finally integrates the lesion area, uniformity distribution and chromaticity value to accurately and comprehensively assess the severity of chloasma.
本发明的其它优点、目标和特征将部分通过下面的说明体现,部分还将通过对本发明的研究和实践而为本领域的技术人员所理解。Other advantages, objectives and features of the present invention will be embodied in part through the following description, and in part will be understood by those skilled in the art through study and practice of the present invention.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明中进行黄褐斑严重程度评价的流程图;FIG1 is a flow chart of the evaluation of the severity of chloasma in the present invention;
图2为本发明特征提取网络结构示意图;FIG2 is a schematic diagram of a feature extraction network structure of the present invention;
图3为本发明黄褐斑区域的标注流程示意图(需要说明的是,图中(a)为原始图像,(b)为标注图像,(c)为黄褐斑掩膜图像);FIG3 is a schematic diagram of the labeling process of the chloasma area of the present invention (it should be noted that (a) is the original image, (b) is the labeled image, and (c) is the chloasma mask image);
图4为本发明黄褐斑区域分割结果示意图(需要说明的是,图中(a)为原始图像,(b)为黄褐斑掩膜图像);FIG4 is a schematic diagram of the chloasma region segmentation result of the present invention (it should be noted that (a) is the original image, and (b) is the chloasma mask image);
图5为本发明黄褐斑区域色度值计算示意图(需要说明的是,图中(a)为黄褐斑掩膜图像,(b)为黄褐斑和正常皮肤映射映射后的图像,(c)为色度值计算后的图像);FIG5 is a schematic diagram of calculating the chromaticity value of a chloasma region according to the present invention (it should be noted that (a) is a chloasma mask image, (b) is an image after mapping chloasma and normal skin, and (c) is an image after chromaticity value calculation);
图6为本发明黄褐斑均匀性计算示意图(需要说明的是,图中(a)为黄褐斑掩膜图像,(b)为黄褐斑质心计算后的图像,图(b)中的黑点表示黄褐斑的质心)。FIG6 is a schematic diagram of chloasma uniformity calculation according to the present invention (it should be noted that (a) is a chloasma mask image, (b) is an image after the chloasma centroid is calculated, and the black dot in (b) represents the centroid of the chloasma).
具体实施方式DETAILED DESCRIPTION
下面结合附图对本发明做进一步的详细说明,以令本领域技术人员参照说明书文字能够据以实施。The present invention is further described in detail below in conjunction with the accompanying drawings so that those skilled in the art can implement the invention with reference to the description.
本方案的研究不仅对黄褐斑的发病区域和颜色进行评估,也对黄褐斑的均匀性进行了深入的评估。这是本方案研究的核心竞争优势所在。通过对均匀性的评估,本方案能够提供更为精确和全面的黄褐斑诊断,有助于医生制定最佳和全面的治疗方案。如果仅从面积和颜色两个方面考虑,可能导致医生低估了黄褐斑的严重程度,这可能影响治疗方案的选择,延误患者痊愈的时间,甚至加重病情。然而,如果本方案在现有的评估方式基础上,加入了均匀性的评估,则本方案便可以进行更全面的评分。更全面的评分可以反映出黄褐斑的真实严重程度,从而使医生开出的处方和药物建议更加精确,极大地提升了患者的治疗效果及患者满意度。The study of this program not only evaluates the area and color of melasma, but also conducts an in-depth evaluation of the uniformity of melasma. This is the core competitive advantage of this program's research. Through the evaluation of uniformity, this program can provide a more accurate and comprehensive diagnosis of melasma, which helps doctors to formulate the best and comprehensive treatment plan. If only the area and color are considered, doctors may underestimate the severity of melasma, which may affect the choice of treatment, delay the patient's recovery time, and even aggravate the condition. However, if this program adds a uniformity assessment on the basis of the existing evaluation method, this program can perform a more comprehensive scoring. A more comprehensive scoring can reflect the true severity of melasma, so that the prescriptions and drug recommendations issued by doctors are more accurate, greatly improving the treatment effect and patient satisfaction of patients.
所以,准确全面的黄褐斑严重程度评估客观化对医疗实践的助力主要体现在以下几个方面:Therefore, accurate and comprehensive assessment of the severity of melasma can help medical practice in the following aspects:
精准的治疗计划:准确全面的客观化评估可以帮助医生更精确地判断黄褐斑的严重程度,从而制定更为个性化和针对性的治疗方案。这有助于提高治疗的有效性,减少不必要的医疗干预。Accurate treatment plan: Accurate and comprehensive objective assessment can help doctors more accurately determine the severity of melasma, thereby formulating a more personalized and targeted treatment plan. This helps to improve the effectiveness of treatment and reduce unnecessary medical interventions.
治疗效果的监测:通过准确全面的客观化评估,医生可以更准确地跟踪治疗进展,及时调整治疗策略。这有助于实现最佳治疗效果,避免长期治疗无效的情况。Monitoring of treatment effects: Through accurate and comprehensive objective evaluation, doctors can more accurately track treatment progress and adjust treatment strategies in a timely manner. This helps achieve the best treatment effect and avoid long-term treatment failure.
研究和比较:准确全面的客观化评估提供了一个标准化的数据基础,便于在临床研究中比较不同治疗方法的效果,推动黄褐斑治疗方法的发展和优化。Research and comparison: Accurate and comprehensive objective evaluation provides a standardized data basis to facilitate comparison of the effects of different treatments in clinical studies and promote the development and optimization of melasma treatment methods.
患者沟通:准确全面的客观化评估可以帮助医生与患者更有效地沟通病情和治疗效果,增强患者对治疗过程的信心和参与度。Patient communication: Accurate, comprehensive and objective assessments can help doctors and patients communicate more effectively about their condition and treatment outcomes, and enhance patients’ confidence and participation in the treatment process.
本发明提供一种基于多任务学习的黄褐斑严重程度客观化评估方法。该方法利用计算机视觉和深度学习技术,结合黄褐斑区域分割、色度分析以及均匀性检测等多任务学习模型,实现黄褐斑的自动分割及严重程度评估。The present invention provides an objective assessment method for the severity of melasma based on multi-task learning. The method uses computer vision and deep learning technology, combined with multi-task learning models such as melasma region segmentation, chromaticity analysis, and uniformity detection, to achieve automatic segmentation and severity assessment of melasma.
为实现上述目的,本发明采用了一种结合多任务学习(MTL)算法和深度学习技术的方法,以提高黄褐斑严重程度评估的准确性和效率。具体来说,本发明的方法包括:To achieve the above objectives, the present invention adopts a method combining a multi-task learning (MTL) algorithm and deep learning technology to improve the accuracy and efficiency of chloasma severity assessment. Specifically, the method of the present invention comprises:
对患者面部进行高清图像采集,在光照充足条件下捕捉多角度图像,包括正面(前额和下颌)、左侧面颊(简称左面颊)和右侧面颊(简称右面颊),然后对这些图像进行处理,包括:The patient's face is imaged in high definition, with multiple angles including the frontal face (forehead and jaw), left cheek (referred to as left cheek) and right cheek (referred to as right cheek) captured under sufficient lighting conditions. These images are then processed, including:
首先提出一种面部轮廓自动识别算法,以准确识别出前额、下颌、左侧和右侧面颊。然后基于识别出的面部轮廓,通过深度学习网络准确分割出面部轮廓和黄褐斑区域。Firstly, an automatic facial contour recognition algorithm is proposed to accurately identify the forehead, mandible, left and right cheeks. Then, based on the recognized facial contour, the facial contour and melasma area are accurately segmented through a deep learning network.
基于分割的面部轮廓和黄褐斑区域,同时执行多个子任务,包括任务一(黄褐斑均匀性检测模型)、任务二(黄褐斑色度计算模型)和任务三(黄褐斑皮损面积计算模型)。Based on the segmented facial contour and melasma area, multiple subtasks are performed simultaneously, including task one (melasma uniformity detection model), task two (melasma chromaticity calculation model) and task three (melasma lesion area calculation model).
黄褐斑均匀性检测模型,基于所述面部轮廓和黄褐斑分割,提出一种检测黄褐斑均匀性分布的算法。A chloasma uniformity detection model is provided, based on the facial contour and chloasma segmentation, to propose an algorithm for detecting the uniformity distribution of chloasma.
黄褐斑色度计算模型,基于所述面部轮廓和黄褐斑分割,提出像素映射算法以计算黄褐斑颜色深度。A chloasma chromaticity calculation model is proposed based on the facial contour and chloasma segmentation, and a pixel mapping algorithm is proposed to calculate the color depth of chloasma.
黄褐斑皮损面积计算模型,基于所述人脸区域和黄褐斑分割网络,计算黄褐斑面积占人脸区域总面积的百分比。The chloasma skin lesion area calculation model calculates the percentage of the chloasma area to the total area of the face region based on the face region and the chloasma segmentation network.
综合黄褐斑均匀性检测、色度计算和面积计算,基于黄褐斑MASI严重程度评分,计算黄褐斑的严重程度。The severity of melasma was calculated based on the MASI severity score of melasma, which was combined with the detection of melasma uniformity, chromaticity calculation and area calculation.
实施例:Example:
本实施例公开了一种基于深度学习的黄褐斑严重程度评估系统。该系统主要由图像采集和图像处理模块组成。图像采集,主要使用VISIA和皮肤镜获取人脸左侧、人脸右侧以及人脸正面,然后将这些信息发送到图像处理模块,用于人脸区域识别和黄褐斑区域分割、面积计算、色度值计算和均匀性计算,最终生成黄褐斑严重程度评估结果,如图1所示,其中,需要说明的是,图1中W表示宽(英文Width);H表示高(英文Height);×为乘号;W × H表示图像尺寸;W/4表示宽为原图像的四分之一;H/4表示高为原图像的四分之一;W/8表示宽为原图像的八分之一;H/8表示高为原图像的八分之一;W/16表示宽为原图像的十六分之一;H/16表示高为原图像的十六分之一;W/32表示宽为原图像的三十二分之一;H/32表示高为原图像的三十二分之一。This embodiment discloses a chloasma severity assessment system based on deep learning. The system is mainly composed of image acquisition and image processing modules. Image acquisition mainly uses VISIA and dermatoscope to obtain the left side, right side and front side of the face, and then sends this information to the image processing module for face area recognition and chloasma area segmentation, area calculation, chromaticity value calculation and uniformity calculation, and finally generates a chloasma severity assessment result, as shown in Figure 1, where it should be noted that in Figure 1, W represents width (English Width); H represents height (English Height); × is a multiplication sign; W × H represents image size; W/4 represents a quarter of the width of the original image; H/4 represents a quarter of the height of the original image; W/8 represents an eighth of the width of the original image; H/8 represents an eighth of the height of the original image; W/16 represents a sixteenth of the width of the original image; H/16 represents a sixteenth of the height of the original image; W/32 represents a thirty-second of the width of the original image; H/32 represents a thirty-second of the height of the original image.
图像处理模块主要包括面部轮廓自动识别算法、人脸和黄褐斑区域分割模型、黄褐斑皮损面积计算模型、黄褐斑色度计算模型和黄褐斑均匀性检测模型。人脸区域自动识别主要用于划分人脸左侧面颊、右侧面颊、前额和下颌;黄褐斑区域分割任务主要用于在人脸区域中检测并分割黄褐斑区域,两种任务共享同一个模型,模型架构如图2所示,其中,需要说明的是,图2中W表示宽(英文Width);H表示高(英文Height);×为乘号;W × H表示图像尺寸;W/4表示宽为原图像的四分之一;H/4表示高为原图像的四分之一;W/8表示宽为原图像的八分之一;H/8表示高为原图像的八分之一;W/16表示宽为原图像的十六分之一;H/16表示高为原图像的十六分之一;W/32表示宽为原图像的三十二分之一;H/32表示高为原图像的三十二分之一。The image processing module mainly includes facial contour automatic recognition algorithm, face and chloasma area segmentation model, chloasma lesion area calculation model, chloasma chromaticity calculation model and chloasma uniformity detection model. Automatic face region recognition is mainly used to divide the left cheek, right cheek, forehead and mandible of the face; the chloasma region segmentation task is mainly used to detect and segment the chloasma region in the face region. The two tasks share the same model. The model architecture is shown in Figure 2, where it should be noted that in Figure 2, W represents width; H represents height; × represents the multiplication sign; W × H represents the image size; W/4 represents the width is one-fourth of the original image; H/4 represents the height is one-fourth of the original image; W/8 represents the width is one-eighth of the original image; H/8 represents the height is one-eighth of the original image; W/16 represents the width is one-sixteenth of the original image; H/16 represents the height is one-sixteenth of the original image; W/32 represents the width is one-thirty-second of the original image; H/32 represents the height is one-thirty-second of the original image.
黄褐斑色度计算主要用于计算黄褐斑区域颜色深度和正常皮肤颜色深度的差值,以得到黄褐斑区域颜色的相对颜色深度;黄褐斑均匀性检测主要用于计算黄褐斑在人脸区域分布的均匀性,两种任务共享同一个模型;黄褐斑皮损面积计算主要用于计算黄褐斑占对应人脸区域面积的百分比,具体来说:Chloasma chromaticity calculation is mainly used to calculate the difference between the color depth of the chloasma area and the color depth of normal skin, so as to obtain the relative color depth of the chloasma area; Chloasma uniformity detection is mainly used to calculate the uniformity of the distribution of chloasma in the face area, and the two tasks share the same model; Chloasma lesion area calculation is mainly used to calculate the percentage of chloasma in the corresponding face area, specifically:
首先本发明提出了一种面部轮廓自动识别算法,该技术可以基于人体关键点自动识别和分割人脸各个区域,例如前额、下颌和左右面颊等,再基于此,使用Labelme标注软件对人脸区域和对应区域里的黄褐斑进行标注,需沿着黄褐斑边缘进行标注,以得到一个JSON文件。之后,利用算法将JSON文件转换为灰度图像,得到一个人脸分割mask图像和黄褐斑分割mask图像。将人脸和黄褐斑mask图像和原始图像划分为训练集和测试集,使用UNet+深度学习网络模型作为人脸和黄褐斑区域分割模型的共享网络,将训练集加载至该模型进行分割训练,得到训练结果。具体分割过程和效果如图3和图4所示。First, the present invention proposes an automatic facial contour recognition algorithm, which can automatically identify and segment various areas of the face based on key points of the human body, such as the forehead, mandible, and left and right cheeks, and then based on this, use Labelme annotation software to annotate the face area and the chloasma in the corresponding area, and annotate along the edge of the chloasma to obtain a JSON file. Afterwards, the JSON file is converted into a grayscale image using an algorithm to obtain a face segmentation mask image and a chloasma segmentation mask image. The face and chloasma mask images and the original image are divided into a training set and a test set, and the UNet+ deep learning network model is used as a shared network of the face and chloasma area segmentation model, and the training set is loaded into the model for segmentation training to obtain the training results. The specific segmentation process and effect are shown in Figures 3 and 4.
其次,人脸和黄褐斑区域分割模型进行训练时,根据模型需求设置参数。在该模型中,模型分割的类别为六,分为背景、前额、下颌、左面颊、右面颊和黄褐斑区域。根据模型要求选择图像输入的大小和同时输入的数据数量。本实例中选择输入的图像大小为512*512的像素尺寸大小,同时一次加载的图像为3张,其中正面图像包括前额和下颌部分。在参数设置中,本方案提出了一种新的交叉熵损失函数以完成多类分割任务:Secondly, when training the face and chloasma area segmentation model, set the parameters according to the model requirements. In this model, the model segmentation categories are six, divided into background, forehead, jaw, left cheek, right cheek and chloasma area. Select the image input size and the number of data input at the same time according to the model requirements. In this example, the input image size is selected to be 512*512 pixels, and 3 images are loaded at a time, of which the frontal image includes the forehead and jaw. In parameter setting, this scheme proposes a new cross entropy loss function to complete multi-class segmentation tasks:
其中,X为模型的输入图像集,Y为X对应的真实标签或真实数据,C 是类别的总数(在本发明中为6);为第n个实例对应真实标签的one-hot 编码向量,为softmax函数之前的第n个实例对应模型的原始输出;为第n个实例对应类的预测概率分布。Wherein, X is the input image set of the model, Y is the real label or real data corresponding to X , and C is the total number of categories (6 in the present invention); is the one-hot encoding vector corresponding to the true label of the nth instance, is the original output of the model corresponding to the nth instance before the softmax function; is the predicted probability distribution of the class corresponding to the nth instance.
此外,如果类别不平衡(比如背景像素明显多于黄褐斑像素),将为不同的类别分配不同的权重以抵消这种不平衡,每个类别的权重可以合并到损失函数中,如下所示:In addition, if the classes are unbalanced (for example, there are significantly more background pixels than melasma pixels), different weights will be assigned to different classes to offset this imbalance. The weight of each class can be incorporated into the loss function as follows:
其中,W c 是分配给类别c的权重。基于此,就可以为像素少的类别分配更大的权重,以使其类别相对平衡,提高模型的分割结果。Among them, W c is the weight assigned to category c. Based on this, a larger weight can be assigned to categories with fewer pixels to make their categories relatively balanced and improve the segmentation results of the model.
另外,本方案选择RMSprop作为优化器。RMSprop 是一种用于训练神经网络的优化算法。它旨在根据每个参数最近梯度的平均值来调整该参数的学习率。这有助于防止学习率过高或过低,特别是在处理非平稳目标时。In addition, this solution selects RMSprop as the optimizer. RMSprop is an optimization algorithm for training neural networks. It aims to adjust the learning rate of each parameter based on the average of the most recent gradients of that parameter. This helps prevent the learning rate from being too high or too low, especially when dealing with non-stationary targets.
在训练结果评估中,本方案选择IOU值以及mIOU值作为结果评估指标。IOU值为模型训练时自我验证的预测区域和实际标注黄褐斑区域的重合度,mIOU为模型训练过程中IOU值的平均值。In the evaluation of training results, this scheme selects IOU value and mIOU value as the result evaluation indicators. IOU value is the overlap between the self-verified predicted area and the actual marked melasma area during model training, and mIOU is the average value of IOU value during model training.
即: Right now:
其中,“预测区域”和“标注区域”分别表示两个矩形框,∩表示两个矩形框的交集,∪表示两个矩形框的并集。Among them, “prediction area” and “annotation area” represent two rectangular boxes respectively, ∩ represents the intersection of the two rectangular boxes, and ∪ represents the union of the two rectangular boxes.
在进行黄褐斑分割训练时,将512*512大小的图像加载至分割模型,分割模型首先对图像数据进行四层的下采样,最终得到64*64大小的特征图,再进行特征值的提取。然后将特征值再进行四层的上采样计算,生成512*512大小的黄褐斑分割结果图。When training for chloasma segmentation, a 512*512 image is loaded into the segmentation model. The segmentation model first performs four-layer downsampling on the image data to obtain a 64*64 feature map, and then extracts the eigenvalues. The eigenvalues are then upsampled four layers to generate a 512*512 chloasma segmentation result map.
此外,使用训练好的模型对测试集数据进行分割测试,若模型分割结果和测试数据标注结果的mIOU大于85%,视为该分割模型符合要求。In addition, the trained model is used to perform a segmentation test on the test set data. If the mIOU of the model segmentation result and the test data annotation result is greater than 85%, the segmentation model is considered to meet the requirements.
再次,使用黄褐斑皮损面积计算模型对黄褐斑区域分割模型分割出来的黄褐斑区域进行黄褐斑面积计算。以左侧面颊为例,首先通过计算机读取分割出的黄褐斑RGB掩膜图像,然后将图像从PIL图像格式转换为NumPy数组格式,计算所有黄褐斑像素的数量以及正常区域像素的数量。最后计算黄褐斑像素占黄褐斑和正常像素总数的百分比。Again, the melasma area calculation model was used to calculate the melasma area segmented by the melasma area segmentation model. Taking the left cheek as an example, the segmented melasma RGB mask image was first read by computer, and then the image was converted from PIL image format to NumPy array format to calculate the number of all melasma pixels and the number of normal area pixels. Finally, the percentage of melasma pixels in the total number of melasma and normal pixels was calculated.
进一步地,使用共享像素点提取模型对黄褐斑区域分割模型分割出来的黄褐斑区域进行色度值计算。首先通过计算机读取原始图像和分割出的黄褐斑RGB掩膜图像,然后将原始图像对应的像素映射到人脸和黄褐斑的掩膜图像中,使其还原成与原始图像对应的像素。之后计算黄褐斑区域像素平均值和正常皮肤区域像素平均值,(取两者之差)然后将该平均值差值输入CIEDE2000色差计算公式中,得出的结果即为黄褐斑区域色度评价分值(如图5所示)。分值越大,说明黄褐斑与正常皮肤的颜色差距越大,也就说明黄褐斑越严重。Furthermore, the shared pixel extraction model is used to calculate the chromaticity value of the melasma area segmented by the melasma area segmentation model. First, the original image and the segmented melasma RGB mask image are read by a computer, and then the pixels corresponding to the original image are mapped to the mask images of the face and melasma to restore them to the pixels corresponding to the original image. Then the average pixel value of the melasma area and the average pixel value of the normal skin area are calculated (the difference between the two is taken), and then the average difference is input into the CIEDE2000 color difference calculation formula, and the result is the chromaticity evaluation score of the melasma area (as shown in Figure 5). The larger the score, the greater the color difference between melasma and normal skin, which means that the melasma is more serious.
更进一步地,使用共享像素点提取模型对黄褐斑区域分割模型分割出来的黄褐斑区域进行均匀性检测。首先通过计算机读取分割出的黄褐斑RGB掩膜图像,对于人脸区域中有多个黄褐斑斑块(比如左侧面颊有五个黄褐斑斑块),基于提出的均匀性检测算法,首先找出每个黄褐斑的质心(如图6所示),然后计算相邻质心之间的距离,最后计算所有黄褐斑分布的实际平均距离。再将这个实际平均距离和黄褐斑理论均匀分布在人脸区域中的平均距离作比较,进而计算黄褐斑均匀性分布。对于人脸区域中仅有一块的黄褐斑斑块,则采用面积占比计算其均匀性分布。Furthermore, the shared pixel extraction model is used to perform uniformity detection on the melasma area segmented by the melasma area segmentation model. First, the segmented melasma RGB mask image is read by a computer. For multiple melasma patches in the face area (for example, there are five melasma patches on the left cheek), based on the proposed uniformity detection algorithm, the centroid of each melasma is first found (as shown in Figure 6), and then the distance between adjacent centroids is calculated, and finally the actual average distance of all melasma distributions is calculated. This actual average distance is then compared with the average distance of the theoretical uniform distribution of melasma in the face area, and then the uniform distribution of melasma is calculated. For only one melasma patch in the face area, the uniform distribution is calculated using the area ratio.
根据提出的均匀性检测算法,先计算质心分布的密度Density:According to the proposed uniformity detection algorithm, the density of the centroid distribution Density is first calculated:
face area表示对应面部的面积(比如前额、下颌和左右面颊),centroid numbers表示黄褐斑的质心数量,Face area refers to the area of the corresponding face (such as forehead, jaw and left and right cheeks), and centroid numbers refers to the number of centroids of melasma.
假设这些质心在图像中均匀分布,理论上,每个点周围的距离应该相同。根据密度,可以计算出质心理论上的平均距离(Theoretical Uniform Average Distance,TUAD):Assuming that these centroids are evenly distributed in the image, theoretically, the distance around each point should be the same. Based on the density, the theoretical uniform average distance (TUAD) of the centroids can be calculated:
最后计算实际平均距离(Actual Average Distance,AAD)占理论均匀平均距离的比值R:Finally, calculate the ratio R of the actual average distance (Actual Average Distance, AAD) to the theoretical uniform average distance:
若R值接近1,这表示观察到的实际平均距离与理论上均匀分布的平均距离大致相等,暗示着分布是比较均匀的。如果 R值小于1,这表明观察到的实际平均距离小于理论上均匀分布的平均距离,意味着点更倾向于彼此靠近,表现为聚集分布。如果 R值大于1,则表示观察到的实际平均距离大于理论上均匀分布的平均距离,说明点之间的距离通常比均匀分布下预期的更远,表现为偏向分布(即分布更为分散)。If the R value is close to 1, it means that the actual average distance observed is roughly equal to the average distance of the theoretical uniform distribution, suggesting that the distribution is relatively uniform. If the R value is less than 1, it means that the actual average distance observed is less than the average distance of the theoretical uniform distribution, which means that the points tend to be closer to each other, showing a clustered distribution. If the R value is greater than 1, it means that the actual average distance observed is greater than the average distance of the theoretical uniform distribution, indicating that the distance between points is usually farther than expected under a uniform distribution, showing a biased distribution (i.e., a more dispersed distribution).
基于黄褐斑面积及严重程度评分MASI(Melasma Area Severity Index)对均匀性分布进行评分。MASI评分是根据分区评分,然后根据各区域所占比例求和。将面部分为四个区域,ET表示前额区域,MR表示右侧面颊区域,ML表示左侧面颊区域,XH表示下颌区域。黄褐斑评价计算公式为:The uniform distribution is scored based on the Melasma Area Severity Index (MASI). The MASI score is based on the partition score and then summed according to the proportion of each area. The face is divided into four areas: ET represents the forehead area, MR represents the right cheek area, ML represents the left cheek area, and XH represents the mandibular area. The formula for evaluating melasma is:
表1为黄褐斑面积及严重程度评分表:Table 1 is a scoring table for the area and severity of melasma:
表1Table 1
其中,A指黄褐斑皮损面积占比,D指色度评分,H是均匀性评分,黄褐斑皮损颜色和均匀性按五级分为无、轻微、中度、明显和最大限度,每个变量的下标表示区域。上述公式中,AET表示前额区域黄褐斑皮损面积占比,DET表示前额区域黄褐斑颜色深度,HET表示前额区域黄褐斑均匀性,AMR表示右侧面颊区域黄褐斑皮损面积占比,DMR表示右侧面颊区域黄褐斑颜色深度,HMR表示右侧面颊区域黄褐斑均匀性,AML表示左侧面颊区域黄褐斑皮损面积占比,DML表示左侧面颊区域黄褐斑颜色深度,HML表示左侧面颊区域黄褐斑均匀性,AXH表示下颌区域黄褐斑皮损面积占比,DXH表示下颌区域黄褐斑颜色深度,HXH表示下颌区域黄褐斑均匀性。此外,根据MASI评分,最小值为0分,表示没有黄褐斑,最大值为48分,表示重度黄褐斑。其中,1-48分被分为4等份,分别表示轻微,轻度,中度,重度。即:轻微:1-12分;轻度:13-24分;中度:25-36分;37-48分。具体示例如下:Among them, A refers to the proportion of chloasma lesions, D refers to the chromaticity score, H is the uniformity score, and the color and uniformity of chloasma lesions are divided into five levels: none, mild, moderate, obvious and maximum. The subscript of each variable represents the area. In the above formula, A ET represents the proportion of chloasma lesions in the forehead area, D ET represents the depth of chloasma color in the forehead area, H ET represents the uniformity of chloasma in the forehead area, A MR represents the proportion of chloasma lesions in the right cheek area, D MR represents the depth of chloasma color in the right cheek area, H MR represents the uniformity of chloasma in the right cheek area, A ML represents the proportion of chloasma lesions in the left cheek area, D ML represents the depth of chloasma color in the left cheek area, H ML represents the uniformity of chloasma in the left cheek area, A XH represents the proportion of chloasma lesions in the mandibular area, D XH represents the depth of chloasma color in the mandibular area, and H XH represents the uniformity of chloasma in the mandibular area. In addition, according to the MASI score, the minimum score is 0, indicating no melasma, and the maximum score is 48, indicating severe melasma. Among them, 1-48 points are divided into 4 equal parts, indicating mild, mild, moderate, and severe. That is: mild: 1-12 points; mild: 13-24 points; moderate: 25-36 points; 37-48 points. Specific examples are as follows:
例如,当前额区域黄褐斑面积占比在30%-49%区间时,评分为3分;当前额区域黄褐斑颜色深度为中度时,评分2分,前额区域黄褐斑均匀性为轻微时,评分1分;当右侧面颊区域黄褐斑面积占比在10%-29%区间时,评分为2分;当右侧面颊区域黄褐斑颜色深度为明显时,评分3分,右侧面颊区域黄褐斑均匀性为中度时,评分2分;当左侧面颊区域黄褐斑面积占比在10%-29%区间时,评分为2分;当左侧面颊区域黄褐斑颜色深度为中度时,评分2分,左侧面颊区域黄褐斑均匀性为明显时,评分3分;当下颌区域黄褐斑面积占比在<10区间时,评分为1分;当下颌区域黄褐斑颜色深度为轻微时,评分1分,下颌区域黄褐斑均匀性为轻微时,评分1分。对各个目标子评分进行累加,得到黄褐斑评估结果为8.9分,即表示该患者的黄褐斑严重程度为轻微。For example, when the proportion of chloasma area in the forehead area is between 30% and 49%, the score is 3 points; when the color depth of chloasma in the forehead area is moderate, the score is 2 points, and when the uniformity of chloasma in the forehead area is mild, the score is 1 point; when the area of chloasma in the right cheek area is between 10% and 29%, the score is 2 points; when the color depth of chloasma in the right cheek area is obvious, the score is 3 points, and when the uniformity of chloasma in the right cheek area is moderate, the score is 2 points; when the area of chloasma in the left cheek area is between 10% and 29%, the score is 2 points; when the color depth of chloasma in the left cheek area is moderate, the score is 2 points, and when the uniformity of chloasma in the left cheek area is obvious, the score is 3 points; when the area of chloasma in the mandibular area is between <10, the score is 1 point; when the color depth of chloasma in the mandibular area is mild, the score is 1 point, and when the uniformity of chloasma in the mandibular area is mild, the score is 1 point. The sum of each target sub-score resulted in a chloasma assessment result of 8.9 points, indicating that the severity of the patient's chloasma was mild.
本实例的效果包括:The effects of this example include:
(1) 本方案提出了一种面部轮廓自动识别算法,它能够基于人体关键点自动识别和分割人脸各个部分,如利用眼角、眉毛和鼻子等作为界定标准将面颊、下巴与额头区域区分开来。此技术相较现有方法避免了不同摄影角度所造成的图片重叠问题,从而提升了数据品质,并显著增强了模型的效能。(1) This solution proposes an automatic facial contour recognition algorithm that can automatically recognize and segment different parts of the face based on key points of the human body, such as using the corners of the eyes, eyebrows, and nose as the defining criteria to distinguish the cheek, chin, and forehead areas. Compared with existing methods, this technology avoids the problem of image overlap caused by different shooting angles, thereby improving data quality and significantly enhancing the performance of the model.
(2)本发明在现有技术基础上提出了一种均匀性检测的独特算法,为黄褐斑的严重程度提供了更加精确、综合和个性化的评估效果。此外,该算法进一步增强了黄褐斑诊断以及用药管理的全面和准确性。(2) Based on the existing technology, the present invention proposes a unique algorithm for uniformity detection, which provides a more accurate, comprehensive and personalized evaluation effect for the severity of melasma. In addition, the algorithm further enhances the comprehensiveness and accuracy of melasma diagnosis and medication management.
(3)本发明提供了一种色度映射评分法:先通过计算机读取原始图像及黄褐斑RGB掩膜图像,进而将原始图像对应的像素映射至掩膜图,恢复其对应的像素点。随后计算黄褐斑区域与正常肤色区的像素平均值差异,并将差值应用于CIEDE2000色彩差异公式,从而获得黄褐斑区域色度评估的数值。该数值越高,意味着黄褐斑与正常肌肤的颜色差异越大,病变程度越严重。(3) The present invention provides a chromaticity mapping scoring method: first, the original image and the chloasma RGB mask image are read by a computer, and then the pixels corresponding to the original image are mapped to the mask image to restore the corresponding pixel points. Then, the difference in the average pixel value between the chloasma area and the normal skin color area is calculated, and the difference is applied to the CIEDE2000 color difference formula to obtain the numerical value of the chromaticity evaluation of the chloasma area. The higher the value, the greater the color difference between the chloasma and normal skin, and the more serious the degree of the lesion.
色度映射评分法为黄褐斑的评估提供了以下几个方面的帮助:The color mapping scoring method provides the following assistance for the assessment of melasma:
①量化分析:这种方法提供了一个量化的方式来判定黄褐斑与正常肌肤之间的颜色差异,从而为病变程度的严重性提供了一个客观的评估标准。① Quantitative analysis: This method provides a quantitative way to determine the color difference between melasma and normal skin, thereby providing an objective assessment standard for the severity of the lesion.
②重现性与一致性:此方法可以在不同时间、不同设备上重复应用,并得到一致的评分结果,这对于临床上的长期监控和疗效评估至关重要。② Reproducibility and consistency: This method can be repeatedly applied at different times and on different devices to obtain consistent scoring results, which is crucial for long-term clinical monitoring and efficacy evaluation.
③客观性:采用CIEDE2000色差计算公式,确保了评估结果的客观性和科学性,避免了纯视觉对比可能产生的误差。③Objectivity: The CIEDE2000 color difference calculation formula is used to ensure the objectivity and scientificity of the evaluation results and avoid the errors that may be caused by pure visual comparison.
(4)本发明具有多图像同时处理能力,即能够同时处理患者正面及侧面的三张照片,对这三张图片进行自动的面部区域和黄褐斑分割,并对结果进行严重程度评估。医生可以根据此评估结果,为患者提供个性化的治疗建议。(4) The present invention has the capability of processing multiple images simultaneously, that is, it can process three photos of the patient from the front and side at the same time, automatically segment the facial area and chloasma in these three photos, and evaluate the severity of the results. Doctors can provide personalized treatment recommendations for patients based on the evaluation results.
通过这些技术的综合应用,本方案的方法提高了诊断程序的客观性与精度,且为临床治疗决策提供了强大的数据支持,最终实现了对黄褐斑治疗方法评价的精准化和个性化。Through the comprehensive application of these technologies, the method of this program improves the objectivity and accuracy of the diagnostic procedure, and provides strong data support for clinical treatment decisions, ultimately achieving precise and personalized evaluation of melasma treatment methods.
以上方案只是一种较佳实例的说明,但并不局限于此。在实施本发明时,可以根据使用者需求进行适当的替换和/或修改。The above solution is only an illustration of a preferred embodiment, but is not limited thereto. When implementing the present invention, appropriate replacement and/or modification can be performed according to user needs.
尽管本发明的实施方案已公开如上,但其并不仅仅限于说明书和实施方式中所列运用。它完全可以被适用于各种适合本发明的领域。对于熟悉本领域的人员而言,可容易地实现另外的修改。因此在不背离权利要求及等同范围所限定的一般概念下,本发明并不限于特定的细节和这里示出与描述的图例。Although the embodiments of the present invention have been disclosed above, they are not limited to the applications listed in the specification and the embodiments. It can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily realized. Therefore, without departing from the general concept defined by the claims and equivalent scope, the present invention is not limited to the specific details and the illustrations shown and described here.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410757826.6A CN118351110B (en) | 2024-06-13 | 2024-06-13 | Chloasma severity objectively evaluating method based on multitask learning |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410757826.6A CN118351110B (en) | 2024-06-13 | 2024-06-13 | Chloasma severity objectively evaluating method based on multitask learning |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118351110A CN118351110A (en) | 2024-07-16 |
CN118351110B true CN118351110B (en) | 2024-09-06 |
Family
ID=91814229
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410757826.6A Active CN118351110B (en) | 2024-06-13 | 2024-06-13 | Chloasma severity objectively evaluating method based on multitask learning |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118351110B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119069087A (en) * | 2024-08-15 | 2024-12-03 | 广州医科大学附属中医医院(广州市中医中药研究所、广州市中医医院、广州中医药大学附属广州中医医院、广州市针灸医院) | A system and method for evaluating the severity of psoriasis |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112967285A (en) * | 2021-05-18 | 2021-06-15 | 中国医学科学院皮肤病医院(中国医学科学院皮肤病研究所) | Chloasma image recognition method, system and device based on deep learning |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008074849A1 (en) * | 2006-12-19 | 2008-06-26 | Galderma S.A. | Method of using fluocinolone acetonide, tretinoin and hydroquinone cream in melasma maintenance therapy |
JP5834602B2 (en) * | 2010-08-10 | 2015-12-24 | 旭硝子株式会社 | Diffractive optical element and measuring device |
CN115481896A (en) * | 2022-09-20 | 2022-12-16 | 中国地质大学(武汉) | Multi-scale distance-driven town extension simulation method |
CN115984550A (en) * | 2022-12-28 | 2023-04-18 | 沈阳化工大学 | A Method for Automatic Segmentation of Eye Iris Pigment Spot Texture |
-
2024
- 2024-06-13 CN CN202410757826.6A patent/CN118351110B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112967285A (en) * | 2021-05-18 | 2021-06-15 | 中国医学科学院皮肤病医院(中国医学科学院皮肤病研究所) | Chloasma image recognition method, system and device based on deep learning |
Non-Patent Citations (1)
Title |
---|
Topical Retinoic Acid(Tretinoin) for Melasma in Black Patients. A Vehicle-Controlled Clinical Trial;Candance K. Kimbrough-Green 等;《Arch Dermatol》;19940630;第130卷(第06期);727-733:第728页 * |
Also Published As
Publication number | Publication date |
---|---|
CN118351110A (en) | 2024-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109190540A (en) | Biopsy regions prediction technique, image-recognizing method, device and storage medium | |
CN105513077B (en) | A kind of system for diabetic retinopathy screening | |
Cristoforoni et al. | Computerized colposcopy: Results of a pilot study and analysis of its clinical relevance | |
CN109117890A (en) | A kind of image classification method, device and storage medium | |
CN118351110B (en) | Chloasma severity objectively evaluating method based on multitask learning | |
CN114694236B (en) | A Segmentation and Localization Method for Eye Movement Based on Recurrent Residual Convolutional Neural Network | |
CN114937502A (en) | Method and system for evaluating osteoporotic vertebral compression fracture based on deep learning | |
CN113469987A (en) | Dental X-ray image lesion area positioning system based on deep learning | |
Hu et al. | ACCV: automatic classification algorithm of cataract video based on deep learning | |
CN116682564B (en) | Near-sighted traction maculopathy risk prediction method and device based on machine learning | |
Jiang et al. | GlanceSeg: Real-time microaneurysm lesion segmentation with gaze-map-guided foundation model for early detection of diabetic retinopathy | |
Chen et al. | Detection of various dental conditions on dental panoramic radiography using faster R-CNN | |
Chen et al. | Automatic and visualized grading of dental caries using deep learning on panoramic radiographs | |
Guo et al. | Rapid detection of non-normal teeth on dental X-ray images using improved Mask R-CNN with attention mechanism | |
CN113688942A (en) | Method and device for automatically evaluating cephalic and lateral adenoid body images based on deep learning | |
CN119026474A (en) | A facial morphology intelligent prediction method and system based on a dual-discriminant generative adversarial network model | |
CN118039125A (en) | Pathological picture auxiliary diagnosis method and system based on artificial intelligence | |
CN113408533B (en) | Construction method of chromosome abnormality prediction model based on fetal ultrasound image characteristic omics and diagnosis equipment | |
Jiang et al. | Evaluation of automated detection of head position on lateral cephalometric radiographs based on deep learning techniques | |
CN115713800A (en) | Image classification method and device | |
CN115909470A (en) | Automatic appearance prediction system and method for eyelid diseases based on deep learning | |
CN115719329A (en) | Method and system for fusing RA ultrasonic modal synovial membrane scores based on deep learning | |
CN114549558A (en) | Breast mass segmentation method based on multimodal feature fusion Vnet | |
CN115240014B (en) | Medical Image Classification System Based on Residual Neural Network | |
Ho et al. | Quantification of facial symmetry in orthognathic surgery: A novel approach integrating 3D contour maps and hyper-dimensional computing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |