# Measurement of Body Surface Area for Psoriasis Using U-net Models

Authors: Yih-Lon Lin; Adam Huang; Chung-Yi Yang; Wen-Yu Chang
Journal: Computational and Mathematical Methods in Medicine
 (2022)

---

## Abstract

During the evaluation of body surface area (BSA), precise measurement of psoriasis is crucial for assessing disease severity and modulating treatment strategies. Physicians usually evaluate patients subjectively through direct visual evaluation. However, judgment based on the naked eye is not reliable. This study is aimed at evaluating the use of machine learning methods, specifically U-net models, and developing an artificial neural network prediction model for automated psoriasis lesion segmentation and BSA measurement. The segmentation of psoriasis lesions using deep learning is adopted to measure the BSA of psoriasis so that the severity can be evaluated automatically in patients. An automated psoriasis lesion segmentation method based on the U-net architecture was used with a focus on high-resolution images and estimation of the BSA. The proposed method trained the model with the same patch size of512×512 and predicted testing images with different patch sizes. We collected 255 high-resolution psoriasis images representing large anatomical sites, such as the trunk and extremities. The average residual of the ground truth image and the predicted image was approximately 0.033. The interclass correlation coefficient between the U-net and dermatologist’s segmentations measured in the ratio of affected psoriasis over the body area in the test dataset was 0.966 (95% CI: 0.981–0.937), indicating strong agreement. Herein, the proposed U-net model achieved dermatologist-level performance in estimating the involved BSA for psoriasis.


---

## Body

## 1. Introduction

Psoriasis is a chronic immune-mediated skin disease with a global prevalence rate of approximately 2% [1]. It is a life-long, metabolic, immunological disorder characterized by raised areas of abnormal skin that wax and wane in the long-term course. The body surface area (BSA) of involvement is an important indicator during the evaluation of psoriasis severity. There are several treatment modalities, including topical medications, systemic immunomodulators, and phototherapies. Precise measurement of the affected BSA is important for clinicians to evaluate the treatment response when switching or combining these treatment options. It is also important for the clinical-trial investigators to monitor psoriasis severity when developing new therapeutic strategies [2]. Physicians usually evaluate the patient subjectively through direct visual evaluation, specifically the most widely used psoriasis area and severity index (PASI), and a recent tool, a product of the physician global assessment and BSA (PGA×BSA), which has the advantages of being more intuitive and easier to use than PASI. BSA is a crucial factor in the calculation of both methods when evaluating disease severity [3, 4]. Previous studies reported a high degree of variability during evaluation, and multiple interventional educational programs need to be conducted before starting the evaluation to achieve better accuracy and reliability [5, 6]. The increase of affected BSA also revealed the increasing burdens of overall medical and specific comorbid diseases, including cardiovascular, cerebrovascular, and diabetes risks [7, 8]. However, despite being such an important indicator, the affected BSA judgments are primarily based on the naked eye and previous physician impressions, which are both subjective and time-consuming.There are different automatic segmentation methods for psoriasis lesions in the literature [9–16]. These include neuro-fuzzy classifiers [9, 10], K-means [11, 12], Gaussian mixture models [13], geometric active contours [14], support vector machines [15], and traditional shallow neural networks [16]. More recently, deeper neural network structures such as U-net have also been proposed to automate the segmentation of skin lesions in psoriasis images [17]. U-net was originally developed for biomedical image segmentation [18]. It is a relatively new technology based on a fully convolutional network [19] that can classify each pixel in an image into a specific label. Since its publication in 2015, it has quickly become one of the most popular tools for image segmentation with more than 24000 citations. Its success can be attributed primarily to its multiresolution structure encoder-decoder design, which can capture both large- and small-scale features for generating optimal segmentation results even with small training datasets [18]. Recently, researchers examined the U-net architecture and various developments and provided observations on recent trends [20].In these studies, the authors chose the training and testing sets based on the same patch sizes with limited small fields [21–23]. However, test images from each patient are usually captured using various scales for clinical applications. In this study, the U-net model is adopted to develop an efficient way to estimate the psoriasis-to-total skin ratio by estimating the relevant BSA using the proposed methods.


## 2. Materials and Methods

### 2.1. Patient Collection

Adult patients over 20 years of age were recruited in this study, with a definite diagnosis of moderate-to-severe plaque-type psoriasis for over six months, and were candidates for phototherapy or systemic psoriasis treatment. The images were collected during follow-up schedules of psoriasis treatments according to the medical guidelines of the National Health Insurance of Taiwan. Photographs were obtained using a 22-megapixel digital single-lens reflex camera (5D Mark II, Canon Corporation, Tokyo, Japan) with 100 mm F2.8L microlens (Canon Corporation, Tokyo, Japan).The ambient light was provided by two studio floodlights, D-Lite RX 4/4 softbox to go (Elinchrom SA, Renens, Switzerland) diffused by soft boxes positioned on both camera sides at 45° angles to the patient, and lights were positioned 1 m in front of the patient with a voltage of 5.5 V. A fixed distance of 2 m between the patient and the camera ensured standard reproduction ratios for whole-body imaging to monitor psoriasis treatment outcomes.All patients provided written consent for image use, under privacy considerations. We separated facial images from others and excluded all facial images in this study. A dermatologist (W-Y C, with 16 years of experience) carefully reviewed the images and marked the psoriasis lesion border as the gold standard.


### 2.2. U-net Architecture

The U-net architecture for the segmentation of psoriasis skin lesions is illustrated in Figure1. Based on the original U-net topology, it consists of the contraction path (or encoding path) and expansion path (or decoding path). The proposed architecture uses 24 convolutional layers, four max-pooling operations, four upsampling operations, and four concatenations. The contraction path uses eight convolution layers in conjunction with batch normalization and the ReLU activation function, followed by max-pooling. The max-pooling operation is performed after every two convolution operations. In the expansion path, upsampling is followed by 3×3 padded convolution, batch normalization, and activation layers, implemented sequentially to achieve better segmentation outcomes. A detailed explanation of each layer is provided in Table 1. The number of trainable weights in the proposed U-net is 31,035,971. Notably, “Cat-1” concatenates Conv-11 and Conv-8, “Cat-2” concatenates Conv-14 and Conv-6, “Cat-3” concatenates Conv-17 and Conv-4, and “Cat-4” concatenates Conv-20 and Conv-2.Figure 1
U-net architecture.Table 1
Architectural details of the U-net.
# of layerLayers in encoding pathFilter sizeOutput shapeContraction pathL1Input512×512×3L2Conv-13×3512×512×64L3Conv-23×3512×512×64L4Maxpool-12×2256×256×64L5Conv-33×3256×256×128L6Conv-43×3256×256×128L7Maxpool-22×2128×128×128L8Conv-53×3128×128×256L9Conv-63×3128×128×256L10Maxpool-32×264×64×256L11Conv-73×364×64×512L12Conv-83×364×64×512L13Maxpool-42×232×32×512Expansion pathL14Conv-93×332×32×1024L15Conv-103×332×32×1024L16Upsampling-13×364×64×1024L17Conv-113×364×64×512L18Cat-164×64×1024L19Conv-123×364×64×512L20Conv-133×364×64×512L21Upsampling-23×3128×128×512L22Conv-143×3128×128×256L23Cat-2128×128×512L24Conv-153×3128×128×256L25Conv-163×3128×128×256L26Upsampling-33×3256×256×256L27Conv-173×3256×256×128L28Cat-3256×256×256L29Conv-183×3256×256×128L30Conv-193×3256×256×128L31Upsampling-43×3512×512×128L32Conv-203×3512×512×64L33Cat-43×3512×512×128L34Conv-213×3512×512×64L35Conv-223×3512×512×64L36Conv-233×3512×512×32L37Output1×1512×512×3Conv = convolution; Maxpool = max-pooling; Upsampling = upsampling; Cat = concatenation.Notably, in the U-net architecture, the convolution operation from the encoder and the deconvolution operation from the decoder are independent of both the input and output image sizes. In the testing process, the test image does not have to be resized to the size of the training image. Therefore, the model can be trained using one patch size and predict testing images of different sizes.The performance of the proposed method was evaluated using five different indices, that is, accuracy (ACC), Dice coefficient (DSC), Jaccard index (JI), sensitivity (SE), and specificity (SP), in comparison with the ground truth. The overall pixel accuracy was measured for the skin, psoriasis, and background regions. The formulas for the performance indices are as follows:(1)ACC=TP+TNTP+TN+FP+FN,(2)DSC=2TP2TP+FN+FP,(3)JI=TPTP+FP+FN,(4)SE=TPTP+FN,(5)SP=TPTN+FP,where TP denotes the true positives, FN denotes the false negatives, FP denotes the false positives, and TN denotes the true negatives.In the experiments, we used 255 images of psoriasis lesions collected from 16 psoriasis patients, nine for training and seven for testing, by a dermatologist for various scales and working distances. Each image represents an anatomical site, and the final dataset includes 170 images of the extremities and 85 images of the truncal area (Table2). The largest and smallest image sizes are 3744×5616 and 2017×1913, respectively. In our experiments, we first partitioned the dataset into training, validation, and testing datasets. The testing dataset consisted of newly collected data.Table 2
Description of the dataset.
Number of images by anatomical regionsTrainingValidationTestingTotalExtremities1062638170Trunk59151185Number of total images1654149255In our experiments, all training and validation images consisted of nonoverlapping patches of size512×512. In other words, the size and stride of all extracted patches were 512×512 and 512, respectively. In these patches, there was an unequal distribution of skin, psoriasis, and background. To avoid the imbalance problem, we removed more background-only patches (i.e., the background patches containing no skin and psoriasis regions) using manual visualization from 9456 training and 2912 validation patches. The remaining 7809 training patches were used to train the model that included images of different body parts and quality, while the remaining 2048 validating images were used to validate the trained model. We wish to point out that we retained 49 testing images in their original sizes. The details are presented in Table 3.Table 3
Partition of dataset.
Training datasetTraining patchesValidation patchesTesting imagesNumber of patches78092048×Number of images××49


## 2.1. Patient Collection

Adult patients over 20 years of age were recruited in this study, with a definite diagnosis of moderate-to-severe plaque-type psoriasis for over six months, and were candidates for phototherapy or systemic psoriasis treatment. The images were collected during follow-up schedules of psoriasis treatments according to the medical guidelines of the National Health Insurance of Taiwan. Photographs were obtained using a 22-megapixel digital single-lens reflex camera (5D Mark II, Canon Corporation, Tokyo, Japan) with 100 mm F2.8L microlens (Canon Corporation, Tokyo, Japan).The ambient light was provided by two studio floodlights, D-Lite RX 4/4 softbox to go (Elinchrom SA, Renens, Switzerland) diffused by soft boxes positioned on both camera sides at 45° angles to the patient, and lights were positioned 1 m in front of the patient with a voltage of 5.5 V. A fixed distance of 2 m between the patient and the camera ensured standard reproduction ratios for whole-body imaging to monitor psoriasis treatment outcomes.All patients provided written consent for image use, under privacy considerations. We separated facial images from others and excluded all facial images in this study. A dermatologist (W-Y C, with 16 years of experience) carefully reviewed the images and marked the psoriasis lesion border as the gold standard.


## 2.2. U-net Architecture

The U-net architecture for the segmentation of psoriasis skin lesions is illustrated in Figure1. Based on the original U-net topology, it consists of the contraction path (or encoding path) and expansion path (or decoding path). The proposed architecture uses 24 convolutional layers, four max-pooling operations, four upsampling operations, and four concatenations. The contraction path uses eight convolution layers in conjunction with batch normalization and the ReLU activation function, followed by max-pooling. The max-pooling operation is performed after every two convolution operations. In the expansion path, upsampling is followed by 3×3 padded convolution, batch normalization, and activation layers, implemented sequentially to achieve better segmentation outcomes. A detailed explanation of each layer is provided in Table 1. The number of trainable weights in the proposed U-net is 31,035,971. Notably, “Cat-1” concatenates Conv-11 and Conv-8, “Cat-2” concatenates Conv-14 and Conv-6, “Cat-3” concatenates Conv-17 and Conv-4, and “Cat-4” concatenates Conv-20 and Conv-2.Figure 1
U-net architecture.Table 1
Architectural details of the U-net.
# of layerLayers in encoding pathFilter sizeOutput shapeContraction pathL1Input512×512×3L2Conv-13×3512×512×64L3Conv-23×3512×512×64L4Maxpool-12×2256×256×64L5Conv-33×3256×256×128L6Conv-43×3256×256×128L7Maxpool-22×2128×128×128L8Conv-53×3128×128×256L9Conv-63×3128×128×256L10Maxpool-32×264×64×256L11Conv-73×364×64×512L12Conv-83×364×64×512L13Maxpool-42×232×32×512Expansion pathL14Conv-93×332×32×1024L15Conv-103×332×32×1024L16Upsampling-13×364×64×1024L17Conv-113×364×64×512L18Cat-164×64×1024L19Conv-123×364×64×512L20Conv-133×364×64×512L21Upsampling-23×3128×128×512L22Conv-143×3128×128×256L23Cat-2128×128×512L24Conv-153×3128×128×256L25Conv-163×3128×128×256L26Upsampling-33×3256×256×256L27Conv-173×3256×256×128L28Cat-3256×256×256L29Conv-183×3256×256×128L30Conv-193×3256×256×128L31Upsampling-43×3512×512×128L32Conv-203×3512×512×64L33Cat-43×3512×512×128L34Conv-213×3512×512×64L35Conv-223×3512×512×64L36Conv-233×3512×512×32L37Output1×1512×512×3Conv = convolution; Maxpool = max-pooling; Upsampling = upsampling; Cat = concatenation.Notably, in the U-net architecture, the convolution operation from the encoder and the deconvolution operation from the decoder are independent of both the input and output image sizes. In the testing process, the test image does not have to be resized to the size of the training image. Therefore, the model can be trained using one patch size and predict testing images of different sizes.The performance of the proposed method was evaluated using five different indices, that is, accuracy (ACC), Dice coefficient (DSC), Jaccard index (JI), sensitivity (SE), and specificity (SP), in comparison with the ground truth. The overall pixel accuracy was measured for the skin, psoriasis, and background regions. The formulas for the performance indices are as follows:(1)ACC=TP+TNTP+TN+FP+FN,(2)DSC=2TP2TP+FN+FP,(3)JI=TPTP+FP+FN,(4)SE=TPTP+FN,(5)SP=TPTN+FP,where TP denotes the true positives, FN denotes the false negatives, FP denotes the false positives, and TN denotes the true negatives.In the experiments, we used 255 images of psoriasis lesions collected from 16 psoriasis patients, nine for training and seven for testing, by a dermatologist for various scales and working distances. Each image represents an anatomical site, and the final dataset includes 170 images of the extremities and 85 images of the truncal area (Table2). The largest and smallest image sizes are 3744×5616 and 2017×1913, respectively. In our experiments, we first partitioned the dataset into training, validation, and testing datasets. The testing dataset consisted of newly collected data.Table 2
Description of the dataset.
Number of images by anatomical regionsTrainingValidationTestingTotalExtremities1062638170Trunk59151185Number of total images1654149255In our experiments, all training and validation images consisted of nonoverlapping patches of size512×512. In other words, the size and stride of all extracted patches were 512×512 and 512, respectively. In these patches, there was an unequal distribution of skin, psoriasis, and background. To avoid the imbalance problem, we removed more background-only patches (i.e., the background patches containing no skin and psoriasis regions) using manual visualization from 9456 training and 2912 validation patches. The remaining 7809 training patches were used to train the model that included images of different body parts and quality, while the remaining 2048 validating images were used to validate the trained model. We wish to point out that we retained 49 testing images in their original sizes. The details are presented in Table 3.Table 3
Partition of dataset.
Training datasetTraining patchesValidation patchesTesting imagesNumber of patches78092048×Number of images××49


## 3. Experimental Results

This section simulates and verifies the psoriasis estimation of the full-body surface using the proposed methods and the U-net model. Deep networks usually require a large amount of training data to achieve good performance. Data augmentation is a domain-specific technique that artificially creates new training data from preexisting training data. Our experiments used data augmentation with normalization, vertical and horizontal flips. The trajectories of the loss and accuracy for the training and validating data are shown in Figure2. To evaluate the performance of the trained model, we used five performance indices defined in Equations (1)–(5) in comparison with the ground truth. The accuracy was measured for the skin, psoriasis, and background regions, while the remaining four indices were concerned only with psoriasis. To explain the performance more clearly, the resulting experimental images in both large scale (zoom out) and small scale (zoom in) are shown.Figure 2
Performance for training and validation datasets.The summary statistics of the experimental results are listed in Table4. In our experiments, we used 49 test images. However, to avoid division by zero in the calculation of the JI and DSC indices, we included 47 testing images for analysis. The mean and standard deviation of accuracy was 0.976±0.046. The JI, DSC, SE, and SP of segmentation of psoriasis lesions were 0.536, 0.655, 0.657, and 0.988, respectively. The main reason for misclassification when segmenting the psoriasis area may be related to the small area of the diseased skin in general. By contrast, the high specificity could be attributed to the large areas of the skin and background.Table 4
Performance of testing datasets.
ACCPsoriasisJIDSCSESPCount4947474749Mean0.9760.5360.6550.6570.988Std0.0460.2670.2560.2270.033Min0.7290.0080.0160.1280.768Q10.9800.3470.5140.4980.987Q20.9920.5200.6840.6580.996Q30.9960.7820.8780.8730.999Max0.9990.9580.9790.9831.000Table5 shows the values of the different metrics for the image with the lowest residual percentage. The accuracies of the large and small scales were 0.997 and 0.969, respectively. The values of JI, DSC, SE, and SP are listed from the third to the sixth columns. The images with the smallest residual percentage at different scales are shown in Figure 3. Figure 3 depicts the predicted image of psoriasis segmentation on a large scale for the lowest residual percentage, with the image inside the blue bounding box representing the small-scale image.Table 5
Performance indices with the smallest residual percentage.
ACCJIDSCSESPLarge scale0.9970.8290.9070.8860.999Small scale0.9690.8690.930.9210.982Figure 3
Simulation results of the lowest residual percentage on different scales.Images with the three largest residual percentages are shown in Figure4. The figure clearly shows that the psoriasis area and severity are high. We could find severe psoriasis cases of patients in the testing image dataset but not in the training image dataset. Consequently, misclassifications can easily occur. Hence, it is advisable to collect more severe psoriasis data.Figure 4
Images with three largest residual percentages.The distribution of the residual percentage of the psoriasis area estimation is shown in Figure5. The five largest residual percentages are shown with green arrows, and the top three are shown with green dots. The lowest residual percentage is indicated in red. Statistics of the residual percentages for all the test images are listed in Table 6.Figure 5
Psoriasis area estimation for ground truth and test images.Table 6
Residual percentage with test images.
Residual percentageCount49Mean0.033Std0.076Min0.000Q10.002Q20.007Q30.016Max0.398The ICC (two-way mixed model for absolute agreement, single measurement) was performed to conduct correlation agreement analysis for the U-net model versus dermatologist’s manual segmentation for a test dataset of 49 images. Figure6 shows the resultant correlation scatterplots for U-net and dermatologist’s segmentations measured in the ratio of affected psoriasis over the body area. The ICC of the test dataset was 0.966 (95% CI: 0.981-0.937). The concordance between the two estimation methods showed an excellent agreement (>0.90). Figure 6 shows that when the psoriasis area extends over 40% of the body surface, most of the data points are above the line of agreement, demonstrating that the dermatologist segmented a larger psoriasis area at the high end of the scale than the U-net model.Figure 6
Correlation scatterplots for U-net and dermatologist’s segmentations.The magnitude of agreement between U-net and dermatologist’s measures was further quantified using Bland-Altman plots using all 49 test images. Figure7(a) shows that with all 49 test images, an average difference of -0.0266 (95% CI: 0.1283-0.1816, mean±1.96SD) indicates a noticeable estimated bias, and the large bounds of the 95% confidence interval are caused by the reduced agreement for large body surface measurements. As the percentage of BSA increased, more estimation data of the U-net model fell below the expected 95% lower bound of agreement. By excluding the images with high psoriasis surface ratio and using only the psoriasis surface ratio lower than 50% to construct Bland-Altman plots, the average difference was improved to -0.00084 (95% CI: 0.0198–0.0215) (Figure 7(b)).Figure 7
Bland-Altman plots.To provide a comparative analysis with the most recent approaches, apart from the proposed method, we used R2U-net [24], attention U-net [25], and attention R2U-net [26] for the problem under study. Table 7 shows the number of parameters and file sizes for each learning model. For a more reasonable comparison, the learning models were configured such that their numbers of adjustable filters were approximately the same. The performances of the testing datasets for the proposed U-net, R2U-net, attention U-net, and attention R2U-net models are listed in Tables 8 and 9. The proposed model performs slightly better than the other three learning models. From a practical application viewpoint, all four learning models listed in Table 7 perform equally well, but the number of parameters in our proposed model is the smallest, which is usually desirable for practical implementation of the learning model, particularly on edge computing devices.Table 7
Parameters and file size for the proposed U-net, R2U-net, attention U-net, and attention R2U-net models.
Proposed U-netR2U-netAttention U-netAttention R2U-netParameters of model31,035,97132,086,44031,902,75932,261,767Model file size355 Mbytes367 Mbytes365 Mbytes369 MbytesTable 8
Performances of testing datasets for the proposed U-net, R2U-net, attention U-net, and attention R2U-net models.
Proposed U-netR2U-netAttention U-netAttention R2U-netAccuracy0.976 (0.046)∗0.967 (0.082)0.960 (0.095)0.969 (0.073)JI0.536 (0.267)0.511 (0.244)0.471 (0.230)0.512 (0.258)DSC0.655 (0.256)0.640 (0.233)0.607 (0.223)0.636 (0.247)Sensitivity0.657 (0.227)0.550 (0.241)0.523 (0.238)0.599 (0.236)Specificity0.988 (0.033)0.998 (0.003)0.997 (0.004)0.995 (0.006)ms∗, m is the mean value, and s is the standard deviation.Table 9
Residual percentage with test images for the proposed U-net, R2U-net, attention U-net, and attention R2U-net models.
Proposed U-netR2U-netAttention U-netAttention R2U-netCount49494949Mean0.0330.0700.0940.067Std0.0760.1480.1870.152Min0.0000.0000.0000.000Q10.0020.0040.0040.003Q20.0070.0100.0080.009Q30.0160.0540.0790.029Max0.3980.7220.7990.658


## 4. Discussion

This study makes several main contributions to the literature. In previous studies, most training and testing images were cropped into many small-scale patches with a few papules or plaques [17, 21, 22]. In our research, all testing images were captured using a digital camera under the medical practice guidelines. The proposed U-net model was used to estimate large-scale images of anatomical regions rather than a few focal lesions. This contributes to the applicability of direct and massive use in future clinical studies.We selected the U-net model because of its popularity and easy accessibility. This study demonstrated that the JI and DSC of this model performed moderately. However, the U-net model-generated segmentation shows excellent agreement with the dermatologist-generated manual segmentation for estimating the BSA percentage, supporting the applicability of the tool for clinical use. We observed that the U-net model tends to underestimate 11 severe cases with psoriasis areas larger than 40%. The margins of psoriasis are not always clear owing to ongoing pathophysiological changes between the diseased and normal skin. This could be because of the nature of the inflammatory skin disease. In severe cases, psoriasis is often unstable and is composed of variable lesions, including borderline erythema, thin fine scaly skin-colored to erythematous papules, erythematous thick plaques, and thick plaques with silver-white scales. This may also be one of the main causes of discordance between dermatologists when evaluating the area of involvement. When evaluating a large image of a specific anatomical region, such as the trunk or extremities, these lesions all together in an individual image become truly complicated for machine learning. The excellent correlation of the estimated percentage of BSA involved between this U-net model and the dermatologist guides its promising use in clinical applications. We also proposed that, when developing a method for evaluating clinical applicability, the percentage of involvement, in addition to common parameters such as JI and DSC, be considered.


## 5. Conclusion

The area percentage of involvement is a crucial component of the calculation during systemic skin disease severity evaluation. Assessment is important during the treatment response evaluation. It is difficult for patients or physicians to accurately estimate the area of involvement by visual examination. Herein, the proposed methods with the U-net model are adopted to develop an efficient way to yield the result of the ratio of psoriasis-to-total skin as a percentage of involvement and to estimate the involved BSA, which shows a promising result.The developed U-net model achieved dermatologist-level performance in estimating the BSA ratio for psoriasis. More data collection and benefits with respect to clinical decision-making should be performed in future studies.



---

*Source: 7960151-2022-02-10.xml*