An Intelligent Model for Facial Skin Colour Detection

-ere is little research on the facial colour; for example, choice of cosmetics usually was focused on fashion or impulse purchasing. People never try to make right decision with facial colour. Meanwhile, facial colour can be also a method for health or disease prevention. -is research puts forward one set of intelligent skin colour collection method based on human facial identification. Firstly, it adopts colour photos on the facial part and then implements facial position setting of the face in the image through FACE as the human facial identification result. Also, it finds out the human face collection skin colour point through facial features of the human face.-e author created an SCE program to collect facial colour by each photo, and established a hypothesis that uses minima captured points assumption to calculate efficiently. Secondly, it implements assumption demonstration through the Taguchi method of quality improvement, which optimized six point skin acquisition point and uses average to calculate the representative skin colour on the facial part. It is completed through the Gaussian distribution standard difference and CIE 2000 colour difference formula and uses this related theory to construct the optimized program FaceRGB.-is study can be popularized to cosmetics purchasing and expand to analysis of the facial group after big data are applied.-e intelligent model can quickly and efficiently to capture skin colour; it will be the basic work for the future fashion application with big data.


Introduction
Many studies on skin colour focus on face recognition or try to determine the typology of people [1]. However, the cosmetic market may need to assist people in finding the right make-up colours for different conditions. However, determining a person's skin colour is also a large issue in cosmetic research. e main purpose of this study is to use females as an example to determine colour modes using an innovative method to extract features.

Skin Color Collection.
ere are many relevant software of screen collecting color, such as Just Color Picker, Col-orPic, and ColorSPY to expert mapping software Photoshop; all have functions of collecting image and screen website color, merits of software such as Just Color Picker and ColorPic except to support color codes such as HTML, RGB, HEX, HSB/HSV, HSL, HSL(255), and HSL(240), even it provides simple palette tools, which can make us manually make the desired colors. Photoshop uses graphic expression to convey dye absorption and makes function of color filling, which indicates digitalized collected color and makes more users quickly get their desired referential color; although it is quick and convenient, it does not represent that the used software can precisely collect color; this is related to the used software in market which usually makes collection by pixel, which indicates that the chosen image area is not large-scale visual color seen by people, so choosing color does not mean the representative color of this image. Hsiao et al. put forward fuzzy relation matrix calculation program of the fuzzy method to implement; the aim lies in reducing color and converting image into color and chooses representative color of this area, which uses related concept of absorbing image color [1][2][3].
Soriano et al. put forward that skin color indicates different colors under different environments; scholars record skin color trace by using a digital camera and present color range of skin color by skin color space, establishment of skin color point will be affected by distance of human eyes seeing image skin color by establishing image skin color point, which indicates perception of human eyes is color of even skin color [4].

Outline of is Study.
e purpose of this research mainly focuses on the facial skin colour; this is the extensive research based on human face identification, suppose image human face detection can use the minimum colour point as representative skin colour symbol, and through calculation of skin colour model and Taguchi method, it can minimize the colour point to 6 point and has representativeness. is application can make accumulation and calculation of plenty of data in the future, and it can be the base of big data analysis and expert system establishment for human skin colour. Figure 1 describes research structure and process.

RGB and CIELAB Conversions.
Since RGB colour models are device-dependent, there is no simple formula for conversion between RGB values and L * a * b * .
e RGB values must be transformed via a specific absolute colour space.
is adjustment will be device-dependent, but the values resulting from the transform will be device-independent. After a device-dependent RGB colour space is characterized, it becomes device-independent. In the calculation of sRGB from CIE, XYZ is a linear transformation, which may be performed by a matrix multiplication. Referring to equations (1) and (2), it presents that these linear RGB values are not the final result as they have not been adjusted for the gamma correction. sRGB was designed to reflect a typical real-world monitor with a gamma of 2.2, and the following formula transforms the linear RGB values into sRGB. Let C linear be R linear , G linear , or B linear , and C srgb be R srgb , G srgb, or B srgb . e sRGB component values R srgb , G srgb , and B srgb are in the range 0 to 1 (a range of 0 to 255 can simply be divided by 255.0).
where a � 0.055 and C is R, G, or B. It is followed by a matrix multiplication of the linear values to get XYZ: ese gamma-corrected values are in the range 0 to 1. If values in the range 0 to 255 are required, the values are usually clipped to the 0 to 1 range. is clipping can be done before or after this gamma calculation [5].

Taguchi Method.
e Taguchi method is used to make the designed product to have stable quality and small fluctuation and makes the production process insensitive to every kind of noise. In the product design process, it uses relations of quality, cost, and profit to develop high-quality product under condition of low cost. e Taguchi method thinks the profit of product development can use internal profit of enterprise and social loss to measure, enterprise internal profit indicates low cost under condition with the same functions, and social profit uses effect on human after product entering consumption field as the measurement index. is research uses the Taguchi method, and its main aim is to find out the optimization of skin colour point because point distribution has many probabilities, and it can find out the optimal point model through calculation of the Taguchi method.
Taguchi's designs aimed to allow greater understanding of variation than a lot of the traditional designs from the analysis of variance. Taguchi contended that conventional sampling is inadequate here as there is no way of obtaining a random sample of future conditions. In Fisher's design of experiments and analysis of variance, experiments aim to reduce the influence of nuisance factors to allow comparisons of the mean treatment effects [6]. Variation becomes even more central in Taguchi's thinking. e Taguchi approach provides more complete interaction information than typical fractional factorial designs that its adherents claim. Followers of Taguchi argue that the designs offer rapid results and that interactions can be eliminated by proper choice of quality characteristics. However, a "confirmation experiment" offers protection against any residual interactions. If the quality characteristic represents the energy transformation of the system, then the "likelihood" of control factor-by-control factor interactions is greatly reduced, since "energy" is "additive" [7].

Ellipsolid Skin-Colour Model.
Zeng and Luo conducted the studies in human skin colour luminance dependence cluster shape discussed in the Lab colour space. e cluster of skin colours may be approximated using an elliptical shape [8]. Let X1, . . ., Xn be distinctive colours (a vector with two or three coordinates) of a skin colour training data set and f(X_i) � f_i(i � 1, . . ., n) be the occurrence counts of a colour, Xi. An elliptical boundary model where Ψ and Λ are given by where N � (1/n) n i�1 f i is the total number of occurrences in a training data set and μ � (1/n) n i�1 f i X i is the mean of colour vectors. To consider the lightness dependency of the shape of skin cluster, the cluster of skin colours in a lightness-chrominance colour space may be modeled with 2 International Journal of Optics an ellipsoid. In a three-dimensional (3D) colour space, X is expressed as and Λ − 1 is represented in a matrix form Φ(x) in equation (3) can be reorganized as According to equation (5), Comparing equations (8) and (9), λ 01 � λ 10 and λ 21 � λ 12 e ellipsoid function (12) can be written as where u 0 � λ 00 , u 1 � λ 01 + λ 10 , u 2 � λ 11 , u 3 � λ 02 + λ 20 , u 4 � λ 12 + λ 21 , and u 5 � λ 22 .

Implementation Method
FOn the basis of human face identification, it uses characteristic point to make setting of the relative position, applies skin colour ellipse model and CNN of human face identification, and uses Java program to compile skin colour extractor, and its short form is SCE. Figure 2 is the operation instruction of SCE, click (1) to open file, insert file, will see (2) (7) Generate Result, which is indicted by Figure 3, which indicates (8) red collection point of input value, skin colour ellipse will display this (9) ellipse and input (10) L illumination to observe its changes, and stores some skin colour RGB and Office Excel file of Lab. Radian direction is, respectively, represented by −1, 0, and 1. For example, the minimum pull-up position of the right mouth corner and left mouth corner will reach the chin of mouth and shadows, this radian direction cannot construct area block which conforms to skin colour, so it need not be listed into calculation. Apply the Taguchi method to get the optimization from the distribution possibility for input in SCE. Figure 5 shows the study divides face into 4 blocks; they are, respectively, the forehead, left cheek, right cheek, and chin. It chooses proper factor as the design level. One block, respectively, has factors (radian and point number), it totally has 8 factors, 3 grades, so it chooses the L 18 orthogonal table.

Taguchi Method Finds Optimization.
Based on the 4 areas defined, Table 1 shows the control factor table to clarify all parameters, and will follow the Taguchi method to do the test. It uses characteristics of orthogonal table to reduce test times from 4,374 times to 18 times, it greatly simplifies test times and calculates S/N proportion, standard difference, and average, it presents the result by inputting into the table, through conversion of the Taguchi method S/N proportion, which makes test data to conform to the additive model (addition characteristic), and calculates level effect of every factor, and gets factor reaction table of quality characteristic, which is indicated in Table 2.
From action table, we can clearly see the effect result of quality characteristic because S/N proportion belongs to projection characteristics, and it can easily find the optimized result of every group in the table. Firstly, in the part of Significant in Table 3, can see B D F H, it is yes, and representative has reaction and effect. ey are respectively: optimal combination of collection point is {BFHD}. It can also find factor significance sequence under quality characteristic, the optimized efficiency is B > F > H > D, referred factor characteristic result figure from Tables 2 and 3. Fraction of Rank, the first one is B, ranging from −4∼1.7, the range value of carry number is about 6, so the optimal collection point is 6 point.

Result and Discussion
From the analysis result, it is found that importance sequence will change according to the quality characteristic, and it is mainly because the Taguchi method belongs to the optimal method of single quality characteristic and then uses this to program correction base, which can make program of this research quickly calculate the optimized result of skin colour collection.

Verification for 6 Points to Detect Facial Color.
In the course of the study, it is assumed that the typical image processing software (eg., Photoshop and CorelDraw) is as shown in different steps in Figure 6. ere is a step-by-step procedure, Figure 6(a), which means that the file has been read. As for Figure 6(b), it shows that the background has been cut out and completely ensured the face shape. User could capture the skin colour manually. Most of the positions are decided relying on the intuition. So, Figure 6(c) presents the 6 point on the face, and the results of colour detected would be shown as the number by each in Figure 6(d). en, the average values of the 6 data could be calculated as shown in Figure 6(e). e flow chart is the foundation of the FaceRGB program.
Six points may have come from part of the hair or shadow, since they are in the range of identification colour values but with different variations of brightness. For debugging efficiently, beside the limited value, the Gaussian distribution concept and standard deviation of the outliers are also removed. Figure 7 describes how to define and find the outlier from six points. e procedure of the FaceRGB program is as follows.

FaceRGB Program.
e procedure of the FaceRGB program is as follows.
(2) When the file has been read, the image will appear in this picture window; it includes big data read or   ere is instant synchronization status presenting in the window.
(3) Spreadsheet progress strip windows, the situation will progress to the long schedule for a presentation to show they reached results. (4) For big data, create four computation channels in the program, and it will be dealing with huge data in the same time. Figure 8 shows the situation as it is working. (5) Option is designed to be read as a single image or input for only one time. (6) is is a single image processing result, including the colour, RGB values, and LAB values. Figure 9 presents the example.

Conclusion.
is research has created programs to detect the facial colour. ey can calculate huge amount of data and even complicated issues by the intelligent method.
is colour selecting method can be accumulated for calculating huge data. erefore, trend for skin colour can be derived from the obtained data. e purpose of this study is to propose a model and procedure for the investigation. Moreover, the process is more important than the result. In addition, the study anticipates that this expert system could be applied into big data type and IOT (internet of things) in the future.
Users will gain their skin colour and the colour location of the face region, which can assist them to select the right colour to match their skin. With it, it will be easier for females to find out their skin colour grouping. Furthermore,  International Journal of Optics after colour harmony and applied aesthetics, every result can be the fashion trend in cosmetics. e expert system can be implemented to develop colour cosmetics; besides, it can be made in the future. Finally, if this system can be applied in the make-up market, it will make a considerable contribution and value.
Data Availability e optimization data (through the Taguchi Method) used to support the findings of this study are included within the article.

Conflicts of Interest
e authors declare that they have no conflicts of interest.