Open Access Paper
24 May 2022 Automatic detection and evaluation of nail psoriasis based on deep learning: a preliminary application and exploration
Bin Ji, Yiyi Wang, Dongqi Zuo
Author Affiliations +
Proceedings Volume 12260, International Conference on Computer Application and Information Security (ICCAIS 2021); 1226017 (2022) https://doi.org/10.1117/12.2637629
Event: International Conference on Computer Application and Information Security (ICCAIS 2021), 2021, Wuhan, China
Abstract
Psoriasis is a chronic disease, which has affected over 125 million patients around the world. While the nail psoriasis is more common in psoriasis, it is time-consuming and subjective accurately assess the severity of psoriasis. With the development of deep learning and machine learning, more and more automated methods are proposed for the assessment of lesional psoriasis. However, there are few automated methods for accessing nail psoriasis. This paper proposes an automatic evaluation system for nail psoriasis based on deep learning. The system consists of a cascaded neural network, including nail detection model, nail lesion detection model and quadrant classification model, and combined with the scoring algorithm to obtain the nail psoriasis severity index (NAPSI) automatically. On the dataset we built, the mAP of the nail detection model is 0.909, and the accuracy of the quadrant classification model is 0.765. Through the detection of nail lesions with two models, it can be concluded that the mAP of the best model is 0.24. The models and algorithm have been applied and verified in the application of intelligent assessment.

1.

INTRODUCTION

According to surveys, skin health affects 30-70%1 of people in the world, and constitutes a heavy burden on global health. Psoriasis is a chronic inflammatory skin disease that occurs throughout the body in various forms and is associated with diseases such as heart disease, diabetes, and depression2. According to statistics, more than 125 million patients with psoriasis have been recorded worldwide, with a prevalence rate of 1-3%3. The disease has affected the physical and mental health of more than 6.5 million patients in China, causing a serious social and economic burden.

Clinically, the evaluation criteria for the severity of psoriasis include Body Surface Area (BSA)4, Psoriasis Area and Severity Index (PASI)5 and Dermatology Life Quality Index (DLQI)6. The traditional evaluation method is a combination of observation and experience. It is complex, subjective and time-consuming.

Nail psoriasis is a type of psoriasis, and its severity is assessed by the Nail Psoriasis Severity Index (NAPSI)7 and Target NAPSI. In NAPSI and Target NAPSI, nails are divided into 4 quadrants. If a designated nail lesion is found in each quadrant, 1 point is awarded. Nail lesions specified in NAPSI are nail bed psoriasis and nail matrix psoriasis. Nail bed psoriasis includes onycholysis, splinter hemorrhages, hyperkeratosis, and oil-drop dyschromia, while nail matrix psoriasis includes pitting, leukonychia, crumbling and red spots in the lunula8. There are 8 types of nail lesions specified in NAPSI, including onycholysis, splinter hemorrhages, hyperkeratosis, oil-drop dyschromia, pitting, leukonychia, crumbling, and red spots on the lunula. If fingers and toes are included, the potential total score of NAPSI is 160, while Target NAPSI’s is 640. The higher score, the worse nail disease. However, in practice, this evaluation process may also take a long time for a well-trained clinician.

In recent years, the computer-aided diagnosis (CADs) of psoriasis has received more and more researchers’ attention, and there are more and more related researches and applications. Some traditional image processing and machine learning9-13 are used to assess severity of psoriasis. Lu et al.10 developed a support vector machine (SVM) to achieve scaling and segmentation. Shrivastava et al.12 designed of a segmentation system by Bayesian and developed a psoriasis risk assessment system. Shakir et al.13 used k-means clustering to segment regions of interest.

Due to the shortcomings of traditional machine learning methods that are unreliable and poorly robust, deep learning methods are becoming more and more popular in psoriasis CADs, including classification14, lesion segmentation15 and multitasking2, 16. Peng et al.14 constructed a psoriasis classification diagnosis model based on ResNet-34. Raj et al.17 designed a customized and compact U-Net architecture for segmentation of psoriasis lesions. Dash et al.16 and Moon et al.2 respectively constructed two models to do segmentation and classification tasks. Zhao et al.18 designed a two-stage deep neural network to identify psoriasis.

Their researches performed well in skin lesions classification and segmentation tasks. However, there are almost no nail psoriasis research projects based on machine learning and deep learning. In practice, it takes a long time to accurately assess severity of nail psoriasis, and the accuracy is affected by doctors’ experience. Therefore, it is necessary to use computer technology to make a smart assessment of nail psoriasis.

We have designed a fully automated psoriasis assessment program and system. First, we construct a lesion detection data set for nail psoriasis disease. Then a cascaded target detection network was designed to detect nail psoriasis. The two detection models are nail detection and nail lesion detection. Finally, the final scores are obtained by using the quadrant classification model combined with the scoring algorithm psoriasis assessment program.

The structure of the paper is as follows. Section 2 introduces the details of the algorithms in the nail psoriasis smart system. Section 3 systematically describes the nail psoriasis datasets, experimental results and smart system. Finally, section 4 gives the main contributions of our work and future research directions.

2.

METHOD

2.1.

Overview

The research flowchart detailed in this paper is shown in Figure 1. The main tasks included nail detection, nail lesion detection, quadrant division and scoring. We use the constructed data set to train models of nail detection, lesion detection and quadrant classification. We use the nail detection model to locate the nail and cut the nail image and use the lesion detection model to obtain the location and type of the lesion. NAPSI and Target NAPSI scores are obtained by combining the results of quadrant division and scoring rules.

Figure 1.

A flowchart of the nail psoriasis smart system.

00210_psisdg12260_1226017_page_2_1.jpg

2.2.

Nail detection

The severity of nail psoriasis is mainly evaluated by the patients’ nail disease. Therefore, the model focuses on the nail area. The actual shooting photos take only a small part of the images of the hands and feet. The nails are so small, and the nail lesions are smaller. If the original image is directly trained by the neural network model. After multiple down sampling, lesion information may be lost, and it is difficult for the model to learn features. Therefore, we designed a nail detection and localization model.

The flowchart of nail detection is shown in Figure 2. We use Faster-RCNN19 as the nail detection model. In this model, the pre-trained ResNet-50 network is used to extract features and generate feature maps. The feature map is input into Region Proposal Network (RPN) to predict the regional proposals. The proposals and feature maps are input into the ROI-Pooling to obtain the proposal feature map. Finally, the proposal feature map is used to calculate the proposal category, and the final exact position of the detection box is obtained through rebound box regression.

Figure 2.

The flowchart of nail detection.

00210_psisdg12260_1226017_page_3_1.jpg

2.3.

Nail lesion detection

After the nails are detected, the nail images are cut according to bounding box. And then use the nail images to detect lesion. For lesion detection, we trained two models and compared Faster-RCNN and YOLO v5. YOLO v5 has the advantages of good performance of small target detection and fast inference. The YOLO v5 model is composed consist of Head, Backbone, Neck and Prediction using the mosaic mode in data augmentation. The four images were flipped, zoomed and color gamut changed, and spliced together after random clipping20. It enhanced the robustness of the model and improved the efficiency of model training.

2.4.

Quarters division and scoring algorithm

In NAPSI and target NAPSI, each nail is divided into four quadrants. Therefore, after the nails and lesions are detected, the nails need to be divided into four quarters. Due to the different shooting postures, the nails will have various angles. We divide one quarter of the nail into 8 categories. According to nail angle, the nails are divided into 8 categories. Each category corresponds to a vertical line at a specified angle, from 0 to 180 degrees, and one category is 22.5°. The cropped nail images are divided into 8 classes, and the ratio of the training set to the rest set is 7: 3. This dataset is used to train the classification network. ResNet-5021 is used as the classification model.

According to the previous neural network model, we got nail lesion and the quadrant division. NAPSI and target NAPSI can be calculated using geometric methods according to the corresponding rules. The algorithm is as follows:

  • (1) Calculate the horizontal longitudinal axis and center point of the quadrant.

  • (2) Calculate the horizontal and vertical axis and center point of the quadrant. Find the lesion bounding box contained the center point and the horizontal and vertical axis. If a lesion box containing a center point is found, 4 points are awarded. If the horizontal-vertical axis is founded, 2 points will be awarded.

  • (3) According to the quadrant of the center, the remained nail lesions got 1 point.

  • (4) Add up all the points and then get the total score.

The main differences between NAPSI and Target NAPSI are the types and number of lesions. There are 2 types of NAPSI lesions, and 8 types of Target NAPSI. The potential total score of NAPSI is 160, while the Target NAPSl’s is 640.

3.

EXPERIMENT AND RESULTS

3.1.

Datasets

The nail psoriasis dataset is made up of real patient images. These images are collected from the Dermatology Clinic, West China Hospital of Sichuan University. All images are taken in a specific way under the specific background. All photos were taken on smartphones or tablet with a high-resolution camera. The image resolution is not less than 2K * 3K. The nail shooting method is shown in Figure 3. Bend your fingers toward your palm, so that most of the nails face the camera and are focused. The background is blue to reduce the impact of the background. All collected images are annotated by professional dermatologists. Nail annotations and lesion annotations are annotated with bounding box on the collected images. The eight types of lesions are annotated, including onycholysis, splinter hemorrhages, hyperkeratosis, oil-drop dyschromia, pitting, leukonychia, crumbling, and red spots in the lunula. The labelling of lesion will be marked, reviewed and modified by different doctors to ensure the accuracy of labelling. Finally, we obtained and labelled 705 images.

Figure 3.

Shooting method of hands and feet.

00210_psisdg12260_1226017_page_4_1.jpg

We collected photos of hands and feet from normal people and annotated nails. Images of normal subjects and psoriasis patients constituted the nail localization dataset. The collected 875 images including 170 from normal people and 705 from psoriasis patients. As we all know, deep learning networks require large amounts of data for training. Our original images are not enough for model training. Therefore, through cutting, translating, rotating, adding noise, mirroring and cropping for enhancement, we finally got 7000 images. We cut out part of nail images from psoriasis patients’ images to form a lesion detection dataset. The nail images without lesions were deleted from the data set, and 3061 images were obtained. We divide the data set into training set, validation set and test set according to 6:2:2 for model training and testing.

3.2.

Metrics

Use two detection models and one classification model, and use the corresponding metrics to evaluate their performance. The accuracy (AC) is used to evaluate classification models, while the mean Average Precision (mAP) is used to analyze detection models. The metrics are calculated as follows:

00210_psisdg12260_1226017_page_4_2.jpg
00210_psisdg12260_1226017_page_4_3.jpg
00210_psisdg12260_1226017_page_4_4.jpg
00210_psisdg12260_1226017_page_4_5.jpg

In equations (1)-(4), TP is the number of true positives, TN is the number of true negatives, FP is the number of false positives, and FN is the number of false negatives. The larger metrics will indicate the better performance.

3.3.

Experiments and results

Train and test the nail detection model, lesion detection model and quadrant classification model on the China Mobile Jiutian artificial intelligence platform. It provides Intel(R) Xeon(R) Gold 5118 2.30GHz CPU, TeslaV100 GPU and 500GB SDD. The primary software packages were Python 3.7, CUDA 10.1, pytorch 1.3.1, torchvision 0.4.2.

The input size of the training models for nail detection and quarters classifications are 800*600 and 224*224. For nail lesion detection, 512*512 is used.

The model results on the test set are shown in Table 1. Among them, the mAP of nails detection reached 0.909, the quadrant classification accuracy is 0.765. For nail lesion detection, YOLO v5 mAP is 0.24, while the Faster-RCNN is 0.206.

Table 1.

The results of the models on test sets.

TaskModelMetricResult
Nail detectionFaster-RCNNmAP0.909
Quadrant classificationResNet-50AC0.765
Nail lesion detectionFaster-RCNNmAP0.206
YOLO v5mAP0.240

3.4.

Intelligent assessment application use process

Based on the above algorithm, we have developed an intelligent assessment system for nail psoriasis. The intelligent assessment system is an application of H5. As shown in Figure 4a, the user should first enter name and medical card number. Then take photos of the left hand, right hand, left foot and right foot according to the instructions, shown in Figure 4b. Click to start evaluation, the system will upload images and call the nail detection model, the lesion detection model and the nail evaluation algorithm. Finally, return and display the results. The displayed information includes a scoring interface and a visual interface of detection results. The interface between NAPSI and Target NAPSI is shown in Figure 4c. Detection results visualization are shown in Figure 4d.

Figure 4.

The user interaction with the intelligent assessment application of nail psoriasis (in Chinese).

00210_psisdg12260_1226017_page_5_1.jpg

4.

CONCLUSION

In this study, we attempted to use deep learning methods to assess the severity of nail psoriasis. We built a cascaded neural network model system for NAPSI and target NAPSI scores, including two detection models and a classification model. The nail psoriasis image datasets were used for nail detection, nail lesion detection and nail quadrant classification. At last, the mAPs of nail detection lesions were 0.909 and 0.24 and the quadrant classification accuracy was 0.765. After uploading nail psoriasis images, the system can automatically generate scores of NAPSI and Target NAPSI. This is an attempt and exploration of deep learning in intelligent evaluation of nail psoriasis. In the future, we will continue to optimize our detection and classification models to improve accuracy. At the same time, we will continue to collect and annotate nail psoriasis images to build a larger dataset.

ACKNOWLEDGMENTS

This work was supported by Sichuan Provincial Science and Technology Project (2021YFG0306). The authors would like to thank the clinicians and technicians of the Department of Dermatology and Venereology, West China Hospital, Sichuan University for their assistance in data collection and experimentation, and also would like to thank Lei Yuqing from the School of Foreign Languages, Southwest Petroleum University for her comments and suggestions on language proofreading.

REFERENCES

[1] 

Hay, R. J., Johns, N. E., Williams, H. C., et al, “The global burden of skin disease in 2010: An analysis of the prevalence and impact of skin conditions,” Journal of Investigative Dermatology, 134 (6), 1527 –1534 (2014). https://doi.org/10.1038/jid.2013.446 Google Scholar

[2] 

Moon, C. I., Lee, J., Yoo, H., Baek, Y. and Lee, O., “Optimization of psoriasis assessment system based on patch images,” Scientific Reports, 11 (1), 1 –13 (2021). https://doi.org/10.1038/s41598-021-97211-9 Google Scholar

[3] 

Langan, S. M., Seminara, N. M., Shin, D. B., et al, “Prevalence of metabolic syndrome in patients with psoriasis: A population-based study in the United Kingdom,” Journal of Investigative Dermatology, 132 (3), 556 –562 (2012). https://doi.org/10.1038/jid.2011.365 Google Scholar

[4] 

Gehan, E. A. and George, S. L., “Estimation of human body surface area from height and weight,” Cancer Chemother. Rep, 54 225 –235 (1970). Google Scholar

[5] 

Schmitt, J. and Wozel, G., “The psoriasis area and severity index is the adequate criterion to define severity in chronic plaque-type psoriasis,” Dermatology, 210 (3), 194 –199 (2005). https://doi.org/10.1159/000083509 Google Scholar

[6] 

Finlay, A. Y. and Khan, G., “Dermatology Life Quality Index (DLQI)—A simple practical measure for routine clinical use,” Clinical and Experimental Dermatology, 19 (3), 210 –216 (1994). https://doi.org/10.1111/ced.1994.19.issue-3 Google Scholar

[7] 

Rich, P. and Scher, R. K., “Nail psoriasis severity index: A useful tool for evaluation of nail psoriasis,” Journal of the American Academy of Dermatology, 49 (2), 206 –212 (2003). https://doi.org/10.1067/S0190-9622(03)00910-1 Google Scholar

[8] 

Mease, P. J., “Measures of psoriatic arthritis: Tender and swollen joint assessment, psoriasis area and severity index (PASI), nail psoriasis severity index (NAPSI), modified nail psoriasis severity index (mNAPSI), Mander/Newcastle enthesitis index (MEI), leeds enthesitis index (LEI), spondyloarthritis research consortium of Canada (SPARCC), Maastricht ankylosing spondylitis enthesis score (MASES), Leeds dactylitis index (LDI), patient global for psoriatic arthritis, dermatology life quality index (DLQI), psoriatic arthritis quality of life (PsAQOL), functional assessment of chronic illness therapy-fatigue (FACIT-F), psoriatic arthritis response criteria (PsARC), psoriatic arthritis joint activity index (PsAJAI), disease activity in psoriatic arthritis (DAPSA), and composite psoriatic disease activity index (CPDAI),” Arthritis Care & Research, 63 (S11), S64 –S85 (2011). https://doi.org/10.1002/acr.v63.11s Google Scholar

[9] 

Taur, J. S., “Neuro-fuzzy approach to the segmentation of psoriasis images,” Journal of VLSI Signal Processing Systems for Signal, Image and Video Technology, 35 (1), 19 –27 (2003). https://doi.org/10.1023/A:1023379719594 Google Scholar

[10] 

Lu, J., Kazmierczak, E., Manton, J. H. and Sinclair, R., “Automatic segmentation of scaling in 2-D psoriasis skin images,” IEEE Transactions on Medical Imaging, 32 (4), 719 –730 (2012). https://doi.org/10.1109/TMI.2012.2236349 Google Scholar

[11] 

Al Abbadi, N. K., Dahir, N. S., Al-Dhalimi, M. A. and Restom, H., “Psoriasis detection using skin color and texture features,” Journal of Computer Science, 6 (6), 648 –652 (2010). https://doi.org/10.3844/jcssp.2010.648.652 Google Scholar

[12] 

Shrivastava, V. K., Londhe, N. D., Sonawane, R. S. and Suri, J. S., “A novel and robust Bayesian approach for segmentation of psoriasis lesions and its risk stratification,” Computer Methods and Programs in Biomedicine, 150 9 –22 (2017). https://doi.org/10.1016/j.cmpb.2017.07.011 Google Scholar

[13] 

Shakir, T., et al, “A quantitative technique for systematic monitoring of the treatment efficiency psoriasis lesion,” London Journal of Research in Computer Science and Technology, , (2019). Google Scholar

[14] 

Li, P., Yi, N., Ding, C., Li, S. and Min, H., “Research on classification diagnosis model of psoriasis based on deep residual,” Digital Chinese Medicine, 4 (2), 92 –101 (2021). https://doi.org/10.1016/j.dcmed.2021.06.003 Google Scholar

[15] 

Fink, C., Fuchs, T., Enk, A. and Haenssle, H. A., “Design of an algorithm for automated, computer-guided PASI measurements by digital image analysis,” Journal of Medical Systems, 42 (12), 1 –8 (2018). https://doi.org/10.1007/s10916-018-1110-7 Google Scholar

[16] 

Dash, M., Londhe, N. D., Ghosh, S., Raj, R. and Sonawane, R. S., “A cascaded deep convolution neural network based CADx system for psoriasis lesion segmentation and severity assessment,” Applied Soft Computing, 91 106240 (2020). https://doi.org/10.1016/j.asoc.2020.106240 Google Scholar

[17] 

Raj, R., Londhe, N. D. and Sonawane, R. S., “Automatic psoriasis lesion segmentation from raw color images using deep learning,” in 2020 IEEE Inter. Conf. on Bioinformatics and Biomedicine (BIBM), 723 –728 (2020). Google Scholar

[18] 

Zhao, S., Xie, B., Li, Y., Zhao, X. and Chen, X., “Smart identification of psoriasis by images using convolutional neural networks: A case study in China,” Journal of the European Academy of Dermatology and Venereology, 34 (3), 518 –524 (2020). https://doi.org/10.1111/jdv.v34.3 Google Scholar

[19] 

Ren, S., He, K., Girshick, R. and Jian, S., “Faster R-CNN: Towards real-time object detection with region proposal networks,” Advances in neural Information Processing Systems, 28 91 –99 (2015). Google Scholar

[20] 

Yang, G. and Lei, Q., “The system of detecting safety helmets based on YOLOv5,” in 2021 Inter. Conf. on Electronic Information Engineering and Computer Science (EIECS), 750 –755 (2021). Google Scholar

[21] 

He, K., Zhang, X., Ren, S. and Sun, J., “Deep residual learning for image recognition,” in Proc. of the IEEE Conf. on Computer Vision and Pattern Recognition, 770 –778 (2016). Google Scholar
© (2022) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Bin Ji, Yiyi Wang, and Dongqi Zuo "Automatic detection and evaluation of nail psoriasis based on deep learning: a preliminary application and exploration", Proc. SPIE 12260, International Conference on Computer Application and Information Security (ICCAIS 2021), 1226017 (24 May 2022); https://doi.org/10.1117/12.2637629
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Data modeling

Detection and tracking algorithms

Neural networks

Image segmentation

Intelligence systems

Machine learning

Evolutionary algorithms

RELATED CONTENT


Back to Top