Deep-Learning-Based Hair Damage Diagnosis Method Applying Scanning Electron Microscopy Images
산업용 섬유 · (8) HDPE 섬유(FORPE)
기본 정보
- 저자
- DOI
- 10.3390/diagnostics11101831
- 저널
- Diagnostics
- 발행년도
- 2021
- 발행기관
- Multidisciplinary Digital Publishing Institute
- 피인용수
- 7
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.3390/diagnostics11101831
- 토픽
- Textile materials and evaluations
- OpenAlex ID
- W3204478749
평가 내용
- 관련도
- 사업분야
- 산업용 섬유 · (8) HDPE 섬유(FORPE)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '산업용 섬유 > HDPE 섬유(FORPE)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 25,997자
본문 펼치기
섹션 본문 32문단 · 25,398자
Introduction
2Hair quality inspection and damage determination in beauty salons rely only on the judgment of professionals such as beauticians, which is mostly based on the tactile experience of beauticians and observations with the naked eye. However, in the absence of excessive professional experience, errors can occur when judging the quality of the hair. The current methods of judging hair damage are to determine the hair damage by detecting the moisture content, cystine content, coagulation, and/or relaxation; apply a dye absorption method, the alkali solubility, copper absorption method, or lithium bromide method [1]; or consider the absorbance and tensile strength. Ref. [2] Using these methods, we need to test the composition of many aspects in a chemical or physical experiment. Compared with our proposed method, this type of chemical and physical method for detecting hair is complicated and time-consuming. Therefore, we need a faster and simpler approach to determine the degree of hair damage. This method will be applied to portable devices in the future, and everyone can easily judge the degree of damage to one's hair anytime and anywhere, and then decide whether to receive a perm, dye, or other beauty services. To better observe cuticle layers in the hair, we used a scanning electron microscope (SEM) and observed it at ×800. Thus, according to the form of cuticle layers (Figure 1), damaged cuticle layers (the white part) accounts for the proportion of hair. We define a lifting up of the cuticle edge and an irregular overlay of cuticles without cracks or holes as weak damage; cracks or holes due to severe lifting up of cuticle layers as damage; exposure of cortical cells and complete disappearance of cuticles as high damage. Regarding the analysis of the SEM image, the segmentation method was developed using the watershed segmentation algorithm, the global-local threshold method, Laplacian of Gaussian filter, and non-maximum suppression in [3].
3damage in the hair images obtained through observations under a microscope. In this study, we combine deep learning image classification technology for recognition and classification.
4The main contributions of this study through the use of a lightweight Convolutional Neural Network (CNN) [4] are as follows:
5Decreases the number of free parameters. Achieves a high classification accuracy using small datasets. Reduces the training time required for convergence.
6Decreases the complexity of the network, thus, enabling mobile applications.
7 Establishes a future research direction that will extend the applicability of the method to digital microscopy devices (
Datasets of SEM Images (DHI Dataset)
8For deep learning, it is important to choose a dataset. To identify and judge the degree of hair damage, we need to identify and classify cuticle layers in the hair images. However, according to our investigation, there are very few datasets on microscopic images of hair that clearly show the cuticle layers. For this reason, we collected and produced a dataset directly, called the damage hair image (DHI) dataset, as shown ( Figure 2). The We, therefore, judged that the degree of hair damage directly seen in the hair images was too simple to understand. Thus, we need to recognize and judge the degree of hair damage in the hair images obtained through observations under a microscope. In this study, we combine deep learning image classification technology for recognition and classification.
9The main contributions of this study through the use of a lightweight Convolutional Neural Network (CNN) [4] However, according to our investigation, there are very few datasets on microscopic images of hair that clearly show the cuticle layers. For this reason, we collected and produced a dataset directly, called the damage hair image (DHI) dataset, as shown ( Figure 2). The DHI dataset was collected through our own observation using SEM. During the process of data collection, we collected various hair samples for observation and image collection. The dataset contains hair samples from young to old people, from 19 to 55 years old, as well as perm and non-perm processed hair samples. Using distance from the scalp less than 1 cm, from 3 to 5 cm, and over 5 cm, we sectioned the upper, middle, and lower parts of the hair to be hair image data sample (from the root to the tip), and then contrasted and observed them under SEM. After the observation, the cuticle layers in the sample were arranged in an orderly manner. A small amount of the middle part of the cuticle layers is generally missing, whereas the cuticle layers in the lower part is largely missing, and in some areas is completely gone. However, the perm hair samples were irregularly distributed, and cuticle layers were shown to be shedding from the center. After a long period of time, we collected images through SEM, and then analyzed and organized them. The final sample data images of minor, moderate, and severe injuries numbered 286 in total. However, this number of datasets is still too low for deep learning. Therefore, we applied data expansion technology [5] including rotation, blur, and a noise increase to expand the dataset to 2900 images. The original image resolution was 640 × 480, and to make the data training of the neural network faster and more convenient, the resolution was adjusted to 224 × 224.
10Diagnostics 2021, 11, x FOR PEER REVIEW 3 of 12 DHI dataset was collected through our own observation using SEM. During the process of data collection, we collected various hair samples for observation and image collection. The dataset contains hair samples from young to old people, from 19 to 55 years old, as well as perm and non-perm processed hair samples. Using distance from the scalp less than 1 cm, from 3 to 5 cm, and over 5 cm, we sectioned the upper, middle, and lower parts of the hair to be hair image data sample (from the root to the tip), and then contrasted and observed them under SEM. After the observation, the cuticle layers in the sample were arranged in an orderly manner. A small amount of the middle part of the cuticle layers is generally missing, whereas the cuticle layers in the lower part is largely missing, and in some areas is completely gone. However, the perm hair samples were irregularly distributed, and cuticle layers were shown to be shedding from the center. After a long period of time, we collected images through SEM, and then analyzed and organized them. The final sample data images of minor, moderate, and severe injuries numbered 286 in total. However, this number of datasets is still too low for deep learning. Therefore, we applied data expansion technology [5] including rotation, blur, and a noise increase to expand the dataset to 2900 images. The original image resolution was 640 × 480, and to make the data training of the neural network faster and more convenient, the resolution was adjusted to 224 × 224.
Convolutional Neural Networks
11A convolutional neural network (CNN) is a type of feedforward neural network that includes convolution calculations and has a deep structure and is a representative deep learning algorithm [6]. CNNs have representation learning capabilities and can classify input information according to their structure, and in recent years, recognition and classification networks in deep learning have become increasingly mature, including MobileNet, Googlenet, and VggNet. These networks have demonstrated a high accuracy in the recognition and classification of animals, plants, faces, and other fields. However, we need a small network for experimentation, which can be applied to mobile phones or portable devices in the future, and because our dataset is small, it is prone to a poor training and easy overfitting on large networks. We, therefore, need a smaller model than a VGG or ResNet. For greater accuracy in the classification and recognition results of hair damage, we propose a network suitable for hair classification, i.e., Hair-Diagnosis-Mobilenet (HDM-NET). In addition, we use HDM-NET to extract and select the features, and finally use an SVM [7] to classify hair damage images ( Figure 3). In this study, we used an SVM for a single experiment and HDM-NET combined with multilayer perceptron (MLP) [8], random forest (RF) [9], k-nearest neighbor (KNN) [10], and the original MobileNet model combined with the classification methods to conduct multi-group control experiments. Finally, we discuss the advantages and disadvantages of the proposed method.
12Diagnostics 2021, 11, x FOR PEER REVIEW 4 of 12
13A convolutional neural network (CNN) is a type of feedforward neural network that includes convolution calculations and has a deep structure and is a representative deep learning algorithm [6]. CNNs have representation learning capabilities and can classify input information according to their structure, and in recent years, recognition and classification networks in deep learning have become increasingly mature, including Mo-bileNet, Googlenet, and VggNet. These networks have demonstrated a high accuracy in the recognition and classification of animals, plants, faces, and other fields. However, we need a small network for experimentation, which can be applied to mobile phones or portable devices in the future, and because our dataset is small, it is prone to a poor training and easy overfitting on large networks. We, therefore, need a smaller model than a VGG or ResNet. For greater accuracy in the classification and recognition results of hair damage, we propose a network suitable for hair classification, i.e., Hair-Diagnosis-Mobilenet (HDM-NET). In addition, we use HDM-NET to extract and select the features, and finally use an SVM [7] to classify hair damage images ( Figure 3). In this study, we used an SVM for a single experiment and HDM-NET combined with multilayer perceptron (MLP) [8], random forest (RF) [9], k-nearest neighbor (KNN) [10], and the original MobileNet model combined with the classification methods to conduct multi-group control experiments. Finally, we discuss the advantages and disadvantages of the proposed method.
Select Features
14When the feature vector is generated from the image information, we choose the attributes. The significance of this choice is to eliminate unnecessary features when analyzing the image, and then reduce the computational complexity, thereby optimizing the prediction model, obtaining better results.According to [11], attribute selection technology is mainly used to identify basic information. Herein, we use the gain ratio [12] algorithm for selection. When calculating the information gain, entropy is used to measure the complexity and decision trees [13] to observe the vector attributes. In this way, the information gain is improved. It, therefore, provides a higher accuracy when spanning the tree. The dataset (D) consists of data samples with different categories (T). Equation (1) presents the classification calculation information for a given sample.
15When the feature vector is generated from the image information, we choose the attributes. The significance of this choice is to eliminate unnecessary features when analyzing the image, and then reduce the computational complexity, thereby optimizing the prediction model, obtaining better results.According to [11], attribute selection technology is mainly used to identify basic information. Herein, we use the gain ratio [12] algorithm for selection. When calculating the information gain, entropy is used to measure the complexity and decision trees [13] to observe the vector attributes. In this way, the information gain is improved. It, therefore, provides a higher accuracy when spanning the tree. The dataset (D) consists of data samples with different categories (T). Equation (1) presents the classification calculation information for a given sample. where p i is the probability of that the sample belongs to class C i . The entropy calculation of a given attribute At having ν values is shown in Equation (2),
16where D ij represents the number of samples belonging to class C i of subset D i . The attribute gain At is represented through Equation (3):
17Equation (4) presents the information value generated by dividing the dataset of D into ν partitions:
18Finally, the gain ratio is defined as the result of dividing the solution into Equation (3) by solving Equation (4). The attributes are ranked according to the values of their gain ratios, and n attributes with highest values are selected.
MobileNet
19We selected and improved MobileNet [14], which can be used in mobile devices and small microscopes or mobile cameras to obtain and diagnose hair images. MobileNet is based on depthwise separable convolutions, which consist of two core layers: depthwise [15] and pointwise [16] convolutions. A depthwise convolution is the step of filtering the input without creating new features. Thus, the process of generating new features, called a pointwise convolution, was also applied. Finally, the combination of the two layers is called a depthwise separable convolution. This model uses depthwise convolutions to apply a single filter for each channel of input, and then uses a 1 × 1 convolution (pointwise) to create a linear combination of output from the depthwise layer. Batch normalization (BN) [17,18] and a rectified linear unit (ReLU) [19,20] were used after each convolution. (Figure 4) shows the architecture of MobileNet, which consists of a convolution layer, a depthwise convolution layer followed by a BN layer and an ReLU layer, a pointwise convolution layer, a BN and ReLU layer, a global average pooling layer, a reshape layer, a dropout layer, a convolutional layer, a softmax layer, and a reshape layer. This model contains approximately four million parameters, which is a much smaller number than those of the other models. The structure of MobileNet (depthwise + pointwise convolutions). of a given attribute t having values is shown in Equation (2),
20where represents the number of samples belonging to class of subset . tribute gain t is represented through Equation (3):
21Equation (4) presents the information value generated by dividing the data into partitions:
22Finally, the gain ratio is defined as the result of dividing the solution into E (3) by solving Equation (4). The attributes are ranked according to the values of th ratios, and attributes with highest values are selected.
23We selected and improved MobileNet [14], which can be used in mobile dev small microscopes or mobile cameras to obtain and diagnose hair images. Mobi based on depthwise separable convolutions, which consist of two core layers: de [15] and pointwise [16] convolutions. A depthwise convolution is the step of filte input without creating new features. Thus, the process of generating new feature a pointwise convolution, was also applied. Finally, the combination of the two l called a depthwise separable convolution. This model uses depthwise convolution ply a single filter for each channel of input, and then uses a 1 × 1 convolution (po to create a linear combination of output from the depthwise layer. Batch norma (BN) [17,18] and a rectified linear unit (ReLU) [19,20] were used after each conv (Figure 4) shows the architecture of MobileNet, which consists of a convolution depthwise convolution layer followed by a BN layer and an ReLU layer, a pointw volution layer, a BN and ReLU layer, a global average pooling layer, a reshape dropout layer, a convolutional layer, a softmax layer, and a reshape layer. Thi contains approximately four million parameters, which is a much smaller numb those of the other models. The structure of MobileNet (depthwise + pointwise c tions).
Hair-Diagnosis Mobilenet (HDM-NET)
24Because our dataset is relatively small, when testing the original MobileNet model, the classification results were unsatisfactory. Therefore, we made some improvements based on the MobileNet model. We removed three layers from the five layers of depthwise convolution in MobileNet. The purpose here was to reduce the redundant parameters of the model with almost no effect on the results. We then changed the final average pooling to global pooling [21] and added batch normalization. Relu will cause some neurons to output a 0, resulting in a sparsity of the network, reducing the interdependence between parameters, and alleviating the occurrence of an overfitting. We, therefore, used Relu. Finally, the output [22,23] applies an SVM ( Figure 5). After such changes, this model achieved good results in our DHI dataset. Because there is no new structure, the number of parameter calculations of the improved model [24] is slightly lower than that of the original MobileNet model. A standard convolutional layer inputs the feature map F of D F × D F × M, and obtains an output feature map G of D G × D G × N, where DF represents the width and height of the input feature map, M is the number of input channels (input depth), DG is the width and height of the output feature map, N is the number of output channels (output depth), and K is the size of the depth convolution kernel. The table of parameters distributed in HDM-NET with classifier is ( Table 1). The expression is as follows:
Experiment Results
25In the classification process, the most commonly used classifiers are SVM, multilayer perceptron (MLP), random forest (RF), K-nearest neighbors (KNN), radial basis function network (RBFN) [25], and Naive Bayes (NB) [26]. During the experiment, we conducted multiple sets of controlled trials. The four groups of experiments were compared and verified using the HDM-NET and SVM, HDM-NET and MLP, HDM-NET and RF, HDM-NET and KNN, MobileNet and SVM, MobileNet and MLP, MobileNet and RF, and Mo-bileNet and KNN classification process. Compared to performance and accuracy of the Depthwise convolutional parameters,
26Pointwise convolutional parameters,
27Thus, all parameters are expressed as follows:
28In the classification process, the most commonly used classifiers are SVM, multilayer perceptron (MLP), random forest (RF), K-nearest neighbors (KNN), radial basis function network (RBFN) [25], and Naive Bayes (NB) [26]. During the experiment, we conducted multiple sets of controlled trials. The four groups of experiments were compared and verified using the HDM-NET and SVM, HDM-NET and MLP, HDM-NET and RF, HDM-NET and KNN, MobileNet and SVM, MobileNet and MLP, MobileNet and RF, and MobileNet and KNN classification process. Compared to performance and accuracy of the HDM-NET+SVM architecture.
29For training, we used the Adam optimizer with a batch size of eight images, and a learning rate of 0.001 [27]. Because the image sizes collected in the original dataset are all 640 × 480, the optimizer will be slow during training and often lack video memory. Thus, the image is uniformly reduced to a pixel resolution of 224 × 224 and filled with zeros to maintain the original aspect ratio. A minimal data enhancement process was applied in the form of sample image rotation and rescaling. Apart from the standard pixel normalization of between zero and 1, no further preprocessing steps were applied to the input image. For experimental implementation, we used the Keras API in the Python3.6 TensorFlow2.1 framework. The training was conducted on an NVIDIA GeForce GTX 1660ti GPU equipped with 1536 CUDA cores, 6 GB of RAM, and a base clock speed of 1455 MHz. The comparative classification performance results shown in (Figure 6) show that, after testing on the same dataset DHI, the accuracy of HDM-NET is increased by 2.1% compared with the traditional CNN network. In particular, using our HDM-NET for feature extraction, combined with SVM, RF, MLP, and other methods for hair feature extraction and classification, the accuracy of the combined classification methods, such as Mobilenetv1, is generally higher. In many of the experiments, with HDM-NET combined with SVM, the final classification accuracy rate was the highest, reaching up to 94.8%.
30Diagnostics 2021, 11, x FOR PEER REVIEW 8 of 12 cation, the accuracy of the combined classification methods, such as Mobilenetv1, is generally higher. In many of the experiments, with HDM-NET combined with SVM, the final classification accuracy rate was the highest, reaching up to 94.8%. Herein, we only used MobileNet and HDM-NET to complete the experiment. In addition, we did not use other CNN models for the experiments because such models (Table 2), such as VGG16 and GoogleNet, despite obtaining a high accuracy, have excessively large parameters for operation on mobile devices. Moreover, a small microscope was applied. The proposed model was improved and optimized on the basis of MobilenetV1, and, thus, we only conducted experiments for MobileNetV1 and HDM-NET. The proposed model has the least number of parameters, and its accuracy is slightly higher than that of the original MobileNet model. Because the MobileNet model has an ultra-small network framework, the classification accuracy is lower than that of the general CNN model. Our improved model based on MobileNet (HDM-NET) is far lower in accuracy than large-parameter models such as VGG16 (Table 3); however, compared with small networks such as MobileNet, our model has better classification results. Moreover, the parameters of the proposed model are small, and, thus, it is easier to directly complete the classification of hair damage images on a mobile microscope. We also used the HDM-NET and other models to complete the experiment (Table 4). We also tested and drew a conclusion of how long it took when one network was trained and when it had finished detecting certain images (Table 5). Herein, we only used MobileNet and HDM-NET to complete the experiment. In addition, we did not use other CNN models for the experiments because such models (Table 2), such as VGG16 and GoogleNet, despite obtaining a high accuracy, have excessively large parameters for operation on mobile devices. Moreover, a small microscope was applied. The proposed model was improved and optimized on the basis of MobilenetV1, and, thus, we only conducted experiments for MobileNetV1 and HDM-NET. The proposed model has the least number of parameters, and its accuracy is slightly higher than that of the original MobileNet model. Because the MobileNet model has an ultra-small network framework, the classification accuracy is lower than that of the general CNN model. Our improved model based on MobileNet (HDM-NET) is far lower in accuracy than large-parameter models such as VGG16 (Table 3); however, compared with small networks such as MobileNet, our model has better classification results. Moreover, the parameters of the proposed model are small, and, thus, it is easier to directly complete the classification of hair damage images on a mobile microscope. We also used the HDM-NET and other models to complete the experiment (Table 4). We also tested and drew a conclusion of how long it took when one network was trained and when it had finished detecting certain images (Table 5). In this study, the structures of HDM-NET and SVM were used to analyze and classify the hair images collected under SEM. The HDM-NET architecture is proposed and a new SEM image dataset on hair was constructed separately to solve the limitations of other models in diagnosing hair images, including the following:
311. General CNN model training requires a large number of datasets, and the datasets we can use now are extremely small. 2. Using a larger model with too many parameters leads to poor training effects. 3. Although the pre-trained model obtained on ImageNet [33,34] can be used for migration learning to alleviate the results of a poor training effect owing to the lack of a dataset, in our survey, the ImageNet contains few SEM images of hair, and, thus, the effect is poor. Therefore, we can only choose a CNN model that has smaller parameters for improvement.
Conclusions
32In this study, we proposed a fast and easy method for diagnosing the health of hair and proposed a lightweight deep learning framework. We completed the task of identifying and classifying our dataset extremely well. Although the final classification result is lower than that of the general CNN model, the accuracy is better than that of other lightweight CNN models when compared with models similar to our proposed lightweight CNN model (HDM-NET), e.g., SqueezeNet. In addition, the parameters are less than the original model. Owing to the compactness of the model, in the future, it can be easily transplanted to mobile phones or portable mobile devices [35] for conducting a hair diagnosis at any time. It will also promote other services such as hair care in the beauty industry. We have also proposed a new type of dataset on hair health, which we are still compiling. Deep learning provides convenience for fast hair health image diagnosis and classification tasks.
33In general, this method is faster and more convenient than traditional physical and chemical diagnostic methods for hair health. At the same time, the high accuracy of the deep learning method shows the significant potential of deep learning in the diagnosis of hair health, and it can also be applied to micro or digital microscopes [36] (for example: SVBONY SM401 Microscope Wireless Digital Microscope 50×-1000×) connected to mobile phones in the future. Our experiments also proved that the attribute selection step in the feature selection process is beneficial for improving the accuracy of recognition and classification of microscope images.
참고문헌 26건
- Analysis of function of rectified linear unit used in deep learning 2022 International Joint Conference on Neural Networks (IJCNN) · 2015 10.1109/ijcnn.2015.7280578
- What is a support vector machine? Nature Biotechnology · Nature Portfolio · 2006 10.1038/nbt1206-1565
- Artificial neural networks (the multilayer perceptron)—a review of applications in the atmospheric sciences Atmospheric Environment · Elsevier BV · 1998 10.1016/s1352-2310(97)00447-0
- High-fidelity reversible data hiding scheme based on pixel-value-ordering and prediction-error expansion Signal Processing · Elsevier BV · 2012 10.1016/j.sigpro.2012.07.025
- Binary segmentation of aggregate in SEM image analysis of concrete Cement and Concrete Research · Elsevier BV · 2001 10.1016/s0008-8846(00)00493-2
- A fuzzy K-nearest neighbor algorithm IEEE Transactions on Systems Man and Cybernetics · Institute of Electrical and Electronics Engineers · 1985 10.1109/tsmc.1985.6313426
- Radial basis function network configuration using genetic algorithms Neural Networks · Elsevier BV · 1995 10.1016/0893-6080(95)00029-y
- Iris liveness detection for mobile devices based on local descriptors Pattern Recognition Letters · Elsevier BV · 2014 10.1016/j.patrec.2014.10.018
- Radial Basis Function Network Configuration Using Mutual Information and the Orthogonal Least Squares Algorithm Neural Networks · Elsevier BV · 1996 10.1016/0893-6080(95)00139-5
- A Convolutional Neural Network for Modelling Sentences 2014 10.3115/v1/p14-1062
- Large-scale image classification: Fast feature extraction and SVM training 2011 10.1109/cvpr.2011.5995477
- Digital Microscopes: Enhancing Collaboration and Engagement in Science Classrooms with Information Technologies Contemporary issues in technology and teacher education · 2007
- Random forest classifier for remote sensing classification International Journal of Remote Sensing · Taylor & Francis · 2005 10.1080/01431160412331269698
- ImageNet Classification with Deep Convolutional Neural Networks Neural Information Processing Systems · 2012
- Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
- Xception: Deep Learning with Depthwise Separable Convolutions 2017 10.1109/cvpr.2017.195
- Pointwise Convolutional Neural Networks 2018 10.1109/cvpr.2018.00109
- Malicious Software Classification Using VGG16 Deep Neural Network’s Bottleneck Features Advances in intelligent systems and computing · Springer Nature · 2018 10.1007/978-3-319-77028-4_9
- Deep learning Nature · Nature Portfolio · 2015 10.1038/nature14539
- Cucumber leaf disease identification with global pooling dilated convolutional neural network Computers and Electronics in Agriculture · Elsevier BV · 2019 10.1016/j.compag.2019.03.012
- ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devices 2018 10.1109/cvpr.2018.00716
- Rethinking ImageNet Pre-Training 2019 10.1109/iccv.2019.00502
- Offline Signature Verification using Deep Learning Convolutional Neural Network (CNN) Architectures GoogLeNet Inception-v1 and Inception-v3 Procedia Computer Science · Elsevier BV · 2019 10.1016/j.procs.2019.11.147
- Heat current method-based modeling and optimization of the single effect lithium bromide absorption chiller Applied Thermal Engineering · Elsevier BV · 2020 10.1016/j.applthermaleng.2020.115345
- Feature Extraction Studies in fuzziness and soft computing · Springer Nature · 2006 10.1007/978-3-540-35488-8
- Induction of decision trees Machine Learning · Springer Science+Business Media · 1986 10.1007/bf00116251