Objective assessment method of melasma severity based on multi-task learning

Through multi-task learning technology, combined with chloasma skin lesion area calculation and uniformity detection, the severity of chloasma is evaluated, solving the problem of lack of uniformity assessment in the existing technology, and achieving a more accurate and comprehensive diagnosis of chloasma. Severity assessment to support personalized treatment and clinical research.

CN118351110BActive Publication Date: 2024-09-06CHENGDU UNIV OF TRADITIONAL CHINESE MEDICINE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410757826.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-06
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

The existing technology lacks uniformity assessment when assessing the severity of chloasma, resulting in insufficient assessment accuracy, affecting treatment selection and efficacy monitoring, and limiting in-depth clinical research.

Method used

Using a method based on multi-task learning, through image collection, face and chloasma area segmentation, chloasma skin lesion area calculation model and shared pixel extraction model, combined with MASI evaluation rules, the severity of chloasma is comprehensively evaluated. Including uniformity distribution, color value and skin lesion area.

Benefits of technology

It improves the accuracy and comprehensive assessment of melasma severity, helps doctors develop personalized treatment plans, monitors treatment effects, and provides standardized data to support clinical research.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118351110B
    Figure CN118351110B
Patent Text Reader

Abstract

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.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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

[0002] Melasma is a common skin disease characterized by symmetrically distributed 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:

[0003] 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.

[0004] 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 lead to prolonged treatment time and increase the financial and psychological burden on patients.

[0005] 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.

[0006] Therefore, the development and use of accurate objective assessments are essential to improving the scientificity and effectiveness of melasma treatment. Summary of the invention

[0007] An object of the present invention is to solve at least the above problems and / or disadvantages and to provide at least the advantages which will be described hereinafter.

[0008] 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:

[0009] S1, collecting multi-angle images of the patient's face through an image acquisition module;

[0010] S2, segmenting the image collected by S1 based on the face and chloasma area segmentation model;

[0011] 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;

[0012] S4. The lesion area, uniform distribution and chromaticity value were integrated, and the severity of melasma was comprehensively evaluated using the MASI evaluation rule.

[0013] Preferably, the multi-task learning model includes a chloasma lesion area calculation model and a shared pixel extraction model;

[0014] Wherein, the chloasma skin lesion area calculation model calculates the chloasma area of ​​the segmented chloasma area;

[0015] The shared pixel extraction model performs chromaticity value calculation and uniformity detection on the segmented chloasma area.

[0016] 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:

[0017] 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;

[0018] S211, using Labelme software to label the melasma in each area to obtain a JSON file;

[0019] S212, converting the JSON file into a grayscale image to obtain a face segmentation mask image and a chloasma segmentation mask image;

[0020] S213, dividing the face segmentation mask image, the chloasma segmentation mask image and the original image to obtain corresponding training sets and test sets.

[0021] 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;

[0022] Among them, in the face and chloasma area segmentation model, the image is divided into six areas 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 in the following formula is used: L ( X,Y ) Complete parameter settings:

[0023]

[0024] in, X is the input image set of the model, Y for X The corresponding true label or real data, 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.

[0025] Preferably, when the categories are unbalanced, the cross entropy loss function is adjusted by assigning different weights to different categories. L ( X,Y ) is optimized, and the optimized cross entropy loss function L ( X,Y ) is as follows:

[0026]

[0027] In the above formula, W c Assign to category c The weight of .

[0028] Preferably, in S3, the process of calculating the chromaticity value by the shared pixel extraction model includes:

[0029] 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;

[0030] 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;

[0031] S312, inputting the difference into the CIEDE2000 color difference calculation formula to obtain the corresponding chromaticity evaluation score of the chloasma area.

[0032] 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:

[0033] S20, obtaining the actual average distance AAD of all melasma distributions based on the centroid of each melasma;

[0034] S21. Calculate the density of the centroid distribution using the following formula:

[0035]

[0036] 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;

[0037] S22, based on the density calculated by S21, the theoretical average distance TUAD of the center of mass is calculated using the following formula:

[0038]

[0039] 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;

[0040] 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.

[0041] Preferably, in S4, the MASI judgment value for comprehensively evaluating the severity of melasma is obtained by the calculation result of the following formula:

[0042]

[0043] In the above formula, A refers to the percentage of chloasma lesion area, D refers to the chromaticity score, H is the uniformity score, and A ET represents the proportion of melasma lesions in the forehead area, D ET Indicates the color depth of chloasma in the forehead area, H ET Indicates the uniformity of melasma in the forehead area, A MR D represents the percentage of melasma lesions on the right cheek area. MR Indicates the color depth of melasma on the right cheek area, H MR Indicates the uniformity of melasma on the right cheek area, A ML represents the percentage of chloasma lesions on the left cheek, D ML Indicates the color depth of chloasma on the left cheek area, H ML Indicates the uniformity of melasma on the left cheek area, A XH represents the percentage of chloasma lesions in the mandibular area, D XH Indicates the color depth of chloasma in the jaw area, H XH Indicates the uniformity of melasma in the jaw area.

[0044] 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.

[0045] 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

[0046] Figure 1 This is a flow chart for evaluating the severity of melasma in the present invention;

[0047] Figure 2 This is a schematic diagram of the feature extraction network structure of the present invention;

[0048] Figure 3 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);

[0049] Figure 4 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);

[0050] Figure 5 Schematic diagram of calculating the chromaticity value of the chloasma area of ​​the present invention (it should be noted that (a) is the mask image of chloasma, (b) is the image after mapping chloasma and normal skin, and (c) is the image after the chromaticity value is calculated);

[0051] Figure 6 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

[0052] 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.

[0053] 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.

[0054] Therefore, accurate and comprehensive assessment of the severity of melasma can help medical practice in the following aspects:

[0055] 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.

[0056] Monitoring of treatment effects: Through accurate, comprehensive and 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.

[0057] 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.

[0058] 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.

[0059] 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.

[0060] 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 includes:

[0061] The patient's face is imaged in high definition and captured from multiple angles under adequate lighting conditions, including the frontal face (forehead and mandible), left cheek (referred to as left cheek), and right cheek (referred to as right cheek). These images are then processed, including:

[0062] 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.

[0063] 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).

[0064] A chloasma uniformity detection model is proposed, based on the facial contour and chloasma segmentation, to detect a chloasma uniformity distribution algorithm.

[0065] 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.

[0066] 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.

[0067] 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.

[0068] Example:

[0069] 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, such as Figure 1 As shown, it should be noted that Figure 1In the table, W stands for width; H stands for height; × is a multiplication sign; W × H stands for image size; W / 4 means the width is one-fourth of the original image; H / 4 means the height is one-fourth of the original image; W / 8 means the width is one-eighth of the original image; H / 8 means the height is one-eighth of the original image; W / 16 means the width is one-sixteenth of the original image; H / 16 means the height is one-sixteenth of the original image; W / 32 means the width is one-thirty-second of the original image; H / 32 means the height is one-thirty-second of the original image.

[0070] The image processing module mainly includes the facial contour automatic recognition algorithm, the face and chloasma area segmentation model, the chloasma lesion area calculation model, the chloasma chromaticity calculation model and the chloasma uniformity detection model. The facial area automatic recognition is mainly used to divide the left cheek, right cheek, forehead and mandible of the face; the chloasma area segmentation task is mainly used to detect and segment the chloasma area in the face area. The two tasks share the same model. The model architecture is as follows: Figure 2 As shown, it should be noted that Figure 2 In the table, W stands for width; H stands for height; × is a multiplication sign; W × H stands for image size; W / 4 means the width is one-fourth of the original image; H / 4 means the height is one-fourth of the original image; W / 8 means the width is one-eighth of the original image; H / 8 means the height is one-eighth of the original image; W / 16 means the width is one-sixteenth of the original image; H / 16 means the height is one-sixteenth of the original image; W / 32 means the width is one-thirty-second of the original image; H / 32 means the height is one-thirty-second of the original image.

[0071] 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:

[0072] First, the present invention proposes an automatic facial contour recognition algorithm, which can automatically identify and segment various facial areas based on human body key points, such as the forehead, mandible, and left and right cheeks, etc. Based on this, Labelme annotation software is used to annotate the facial area and the chloasma in the corresponding area. Annotation must be performed 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 images are divided into training sets and test sets. The UNet+ deep learning network model is used as the shared network of the face and chloasma area segmentation model, and the training set is loaded into the model for segmentation training to obtain training results. The specific segmentation process and effects are as follows. Figure 3 and Figure 4 shown.

[0073] 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:

[0074]

[0075] in, X is the input image set of the model, Y for X The corresponding true label or true data, C is the total number of categories (6 in this 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.

[0076] 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:

[0077]

[0078] in, W cis the weight assigned to category c. Based on this, we can assign a larger weight to categories with fewer pixels to make their categories relatively balanced and improve the segmentation results of the model.

[0079] 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.

[0080] 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.

[0081] Right now:

[0082] 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.

[0083] When training the 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.

[0084] 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.

[0085] 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.

[0086] 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 difference between the average values ​​is input into the CIEDE2000 color difference calculation formula, and the result is the chromaticity evaluation score of the melasma area (such as Figure 5 The larger the score, the greater the difference between the color of melasma and normal skin, which means the more serious the melasma.

[0087] 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 a human face area with multiple melasma patches (e.g., five melasma patches on the left cheek), based on the proposed uniformity detection algorithm, the centroid of each melasma is first found (e.g., Figure 6 ), then calculate the distance between adjacent centroids, and finally calculate the actual average distance of all melasma distributions. Then compare this actual average distance with the average distance of melasma theoretically evenly distributed in the face area, and then calculate the uniformity of melasma distribution. For melasma patches with only one patch in the face area, the uniformity of the distribution is calculated using the area percentage.

[0088] According to the proposed uniformity detection algorithm, the density of the centroid distribution Density is first calculated:

[0089]

[0090] 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.

[0091] 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:

[0092]

[0093] Finally, calculate the ratio R of the actual average distance (Actual Average Distance, AAD) to the theoretical uniform average distance:

[0094]

[0095] 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).

[0096] 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:

[0097]

[0098] Table 1 is a scoring table for the area and severity of melasma:

[0099] Table 1

[0100]

[0101] Among them, A refers to the area ratio of chloasma lesions, D refers to the chromaticity score, and H is the uniformity score. The color and uniformity of chloasma lesions are divided into five levels: none, slight, moderate, obvious and maximum. The subscript of each variable represents the area. ET represents the proportion of melasma lesions in the forehead area, D ET Indicates the color depth of chloasma in the forehead area, H ET Indicates the uniformity of melasma in the forehead area, A MR D represents the percentage of melasma lesions on the right cheek area. MR Indicates the color depth of melasma on the right cheek area, H MR Indicates the uniformity of melasma on the right cheek area, A ML represents the percentage of chloasma lesions on the left cheek, D ML Indicates the color depth of chloasma on the left cheek area, H ML Indicates the uniformity of melasma on the left cheek area, A XH represents the percentage of chloasma lesions in the mandibular area, D XH Indicates the color depth of chloasma in the jaw area, H XHIndicates the uniformity of chloasma in the jaw area. In addition, according to the MASI score, the minimum value is 0, indicating no chloasma, and the maximum value is 48, indicating severe chloasma. 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:

[0102] For example, when the chloasma area proportion in the forehead region is in the range of 30%-49%, the score is 3 points; when the color depth of chloasma in the forehead region is moderate, the score is 2 points, and when the uniformity of chloasma in the forehead region is mild, the score is 1 point; when the chloasma area proportion in the right cheek region is in the range of 10%-29%, the score is 2 points; when the color depth of chloasma in the right cheek region is obvious, the score is 3 points, and when the uniformity of chloasma in the right cheek region is moderate, the score is 2 points; when the chloasma area proportion in the left cheek region is in the range of 10%-29%, the score is 2 points; when the color depth of chloasma in the left cheek region is moderate, the score is 2 points, and when the uniformity of chloasma in the left cheek region is obvious, the score is 3 points; when the chloasma area proportion in the mandibular region is in the range of <10, the score is 1 point; when the color depth of chloasma in the mandibular region is mild, the score is 1 point, and when the uniformity of chloasma in the mandibular region 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.

[0103] The effects of this example include:

[0104] (1) This solution proposes an automatic facial contour recognition algorithm that can automatically recognize and segment the various 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.

[0105] (2) Based on the existing technology, the present invention proposes a unique algorithm for uniformity detection, which provides a more accurate, comprehensive and personalized assessment of the severity of melasma. In addition, the algorithm further enhances the comprehensiveness and accuracy of melasma diagnosis and medication management.

[0106] (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.

[0107] The color mapping scoring method provides the following assistance for the assessment of melasma:

[0108] ① 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.

[0109] ② 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.

[0110] ③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.

[0111] (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.

[0112] 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.

[0113] 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.

[0114] 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

1. An objective assessment method for the severity of melasma based on multi-task learning, characterized in that: include: S1, collecting multi-angle images of the patient's face through an image acquisition module; S2, segmenting the image collected by S1 based on the face and chloasma area segmentation model; 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. Integrate the lesion area, uniform distribution and chromaticity value, and use the MASI evaluation rule to comprehensively evaluate the severity of melasma; In S2, the deep learning network model is used as a shared network of the face and melasma region segmentation model, and the training set is loaded into the shared network for segmentation training, thereby obtaining the face and melasma region segmentation model; Among them, in the face and chloasma area segmentation model, the image is divided into six areas 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 in the following formula is used: L ( X,Y ) Complete parameter settings: in, X is the input image set of the model, Y for X The corresponding true label or real data, 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; When the categories are unbalanced, the cross entropy loss function is adjusted by assigning different weights to different categories. L ( X,Y ) is optimized, and the optimized cross entropy loss function L ( X,Y ) is as follows: In the above formula, W c Assign to category c The weight of 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 calculates the chromaticity value and performs uniformity detection on the segmented chloasma area; In S3, the process of calculating the chromaticity value using the shared pixel extraction model includes: 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, 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, inputting the difference into the CIEDE2000 color difference calculation formula to obtain the corresponding chloasma area chromaticity evaluation score; In S3, a uniformity detection algorithm is provided in the shared pixel extraction model, and the processing method of the uniformity detection algorithm includes: S320, obtaining the actual average distance AAD of all melasma distributions based on the centroid of each melasma; S321. Calculate the density of the centroid distribution using the following formula: 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 melasma; S322. Based on the density calculated in S321, the theoretical average distance TUAD of the center of mass is calculated using the following formula: S323, based on the theoretical average distance TUAD calculated in S322, calculating the ratio R of the actual average distance AAD to the theoretical average distance TUAD; 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.

2. The objective assessment method for the severity of melasma based on multi-task learning according to claim 1, characterized in that: 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. The segmentation process includes: S210, automatically identifying and segmenting the human body key points to obtain the areas corresponding to the forehead, the mandible, the left cheek, and the right cheek in the human face; S211, using Labelme software to label the melasma in each area to obtain a JSON file; S212, converting the JSON file into a grayscale image to obtain a face segmentation mask image and a chloasma segmentation mask image; S213, dividing the face segmentation mask image, the chloasma segmentation mask image and the original image to obtain corresponding training sets and test sets.

3. The objective assessment method for the severity of melasma based on multi-task learning according to claim 1, characterized in that: In S4, the MASI judgment value for comprehensive evaluation of the severity of melasma was obtained by the following calculation: In the above formula, A refers to the percentage of chloasma lesion area, D refers to the chromaticity score, H is the uniformity score, and A ET represents the proportion of melasma lesions in the forehead area, D ET Indicates the depth of the color of the forehead melasma, H ET Indicates the uniformity of melasma in the forehead area, A MR D represents the percentage of melasma lesions on the right cheek area. MR Indicates the color depth of melasma on the right cheek area, H MR Indicates the uniformity of melasma on the right cheek area, A ML represents the percentage of chloasma lesions on the left cheek, D ML Indicates the color depth of chloasma on the left cheek area, H ML Indicates the uniformity of melasma on the left cheek area, A XH represents the percentage of chloasma lesions in the mandibular area, D XH Indicates the color depth of chloasma in the jaw area, H XH Indicates the uniformity of melasma in the jaw area.