Disclosure of Invention
The invention aims to overcome the problems in the prior art and provides a skin complexion measuring device and method for intense pulse light dry eye treatment.
In order to achieve the technical purpose and achieve the technical effect, the invention is realized by the following technical scheme:
the utility model provides a skin complexion measuring device for intense pulsed light xerophthalmia treatment, includes handle grip module, the top of handle grip module is provided with the shell, the front side of shell is provided with the external component of surveying, the rear side of shell is provided with the display touch screen module, the inside of shell be provided with the external component matched with modular component of surveying.
Preferably, a top cover is arranged at the top of the shell, and the top cover is connected with the shell through a tenon structure.
Based on the technical characteristics, the shell is convenient to detach, and the detailed construction and maintenance in the shell are checked.
Preferably, survey the subassembly outward and include annular LED light filling lamp subassembly module, incident aperture module, power indicator module and operation pilot lamp module, the incident aperture module is located the inboard of annular LED light filling lamp subassembly module, power indicator module and operation pilot lamp module are located the below of annular LED light filling lamp subassembly module, and power indicator module is located the left side of operation pilot lamp module.
Based on the technical characteristics, the power indicator light module and the operation indicator light module are mainly used for prompting whether the operation is normal or not.
Preferably, the LED fill light module adopts 16 white light LED lamps.
Based on the technical characteristics, the annular LED light supplementing lamp component module is used for supplementing light to the skin.
Preferably, the module assembly comprises a power module, an MCU control module, a multispectral digital sensor module and an LED lamp panel module.
Based on above-mentioned technical characteristics, LED lamp plate module mainly plays the effect of shining for shine people's eye skin, carry out the light filling for skin.
Preferably, the bottom of the handle grip module is provided with a 5-core aviation socket, and the interfaces of the five-core aviation socket are a power supply 12V interface, a power supply GND interface, a protection grounding interface, an I2C SCL interface and an I2C SDA interface respectively.
Based on the above technical features, the I2C SCL interface and the I2C SDA interface are used to transmit data to and exchange data with the device.
A skin complexion measuring method for intense pulse light dry eye treatment comprises the following specific steps:
after the device is started and powered on, the display touch screen module firstly controls the annular LED light supplementing lamp assembly module to emit light to irradiate the skin to be detected through the MCU control module;
detecting the light after emitting the skin through a multi-spectral digital sensor module scintillation channel, and then acquiring multi-spectral data through a multi-channel sensor;
step three, after the multispectral data is collected, storing the transmission data into an RAM memory;
step four, transmitting the data processing of the step three to an MCU control module through a transmission protocol;
and fifthly, performing principal component analysis and preprocessing on the data, inputting the data into a trained convolutional neural network recognition model configured in the MCU control module to perform skin color feature extraction, finally obtaining a skin color recognition result by using multi-classification SVM classification, and displaying the transmitted data and the spectrum data recognition skin color result on the display touch screen module.
Preferably, before identifying the skin color, performing principal component analysis and dimension reduction processing on the collected multispectral data; performing dimensionality reduction on the acquired spectral data, wherein the specific calculation steps are as follows:
step 1: firstly, standardizing multispectral original data, unifying scalar quantities to a fixed range value, facilitating convergence training and calculation of a model, and ensuring that each collected spectral data can be extracted equivalently; the calculation formula is as follows:
step 2: and (3) calculating a covariance matrix of the spectral data, wherein the calculation formula is as follows:
wherein x isi,xjRepresenting skin color spectrum data corresponding to the ith class and the jth class, wherein A is a covariance matrix;
and step 3: parameters for calculating the covariance of the spectral data: eigenvectors and eigenvalues; the calculation formula is as follows:
A=QλQ-1
wherein A is a covariance matrix, Q is a characteristic vector, and lambda is a characteristic value;
and 4, step 4: selecting principal component eigenvectors according to the sequence of the eigenvalues from big to small to form a new matrix;
and 5: carrying out mapping projection on the spectrum data, mapping the spectrum sample data onto the characteristic vector, namely finding a new set of orthogonal bases { u }1,u2,...,ukAnd after the spectral data are projected on a plane formed by orthogonal bases, the distance and the variance J between the datajThe maximum is reached, namely:
wherein m is the number of spectrum samples, and the orthogonal base is u
jData point at x
iA projected distance on the substrate of
Preferably, the measuring method is mainly embodied in the aspect of a convolutional neural network model, for a lightweight convolutional neural network, a deformable convolutional neural network is added behind a convolutional layer to enhance the extraction of the characteristic quantity, and in the aspect of classification, a multi-classification SVM classifier pairwise classification method is adopted to classify skin color results.
Preferably, the multi-classification SVM classifier classified in pairs identifies and classifies by constructing a binary SVM between every two skin color spectrum data classes; then, for classifying the ith and jth spectrum data, a binary SVM is trained, i.e. the quadratic programming problem needs to be solved:
in the formula, phi represents the nonlinear mapping of input and feature space, subscript t represents the union sample serial number of the ith class and the jth class, and i and j represent the parameters of the ith class and the jth class respectively; the decision function between class i and class j is therefore:
and classifying the multispectral new data by adopting a voting mechanism: each binary SVM processes the new data X according to its decision functionnewThere is a prediction if X is pairednewThe prediction of (1) is class i, and the number of tickets belonging to class i is increased by 1; otherwise, increasing the number of the j tickets by 1, and finally, obtaining the class with the most tickets, namely XnewThe result of the recognition of (1).
Compared with the prior art, the invention has the following beneficial effects:
the invention has reasonable structural design, and in the aspect of the device: the design structure is light, small, simple and portable; in terms of recognition accuracy: the skin color identification result obtained by combining skin color spectral characteristic data obtained by adopting the multispectral digital sensor module and the back of the deep learning model is more accurate.
Of course, it is not necessary for any product in which the invention is practiced to achieve all of the above-described advantages at the same time.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
A skin complexion measuring device for intense pulsed light xerophthalmia treatment comprises a handle grip module 6, which is a device convenient for a user to operate and use, wherein the top of the handle grip module 6 is provided with a shell, the top of the shell is provided with a top cover 1, and the top cover 1 is connected with the shell by adopting a tenon structure, so that the device is convenient to disassemble, and the detailed construction and maintenance in the shell are checked;
an external measurement component is arranged on the front side of the shell and comprises an annular LED light supplement lamp component module 2, an incident aperture module 3, a power indicator lamp module 4 and an operation indicator lamp module 5, the incident aperture module 3 is positioned on the inner side of the annular LED light supplement lamp component module 2, the power indicator lamp module 4 and the operation indicator lamp module 5 are positioned below the annular LED light supplement lamp component module 2, the power indicator light module 4 is positioned on the left side of the operation indicator light module 5, the annular LED light supplement light module 2 is used for performing light supplement operation on skin, the incident aperture module 3 is mainly used for receiving detected radiation and detecting light reflected by human skin, and the power indicator light module 4 and the operation indicator light module 5 are mainly used for prompting whether the operation is normal or not (see figure 1 in the attached drawing of the specification);
the inside of the shell is provided with a module component matched with the external measurement component, the rear side of the shell is provided with a display touch screen module 7, the module component comprises a power supply module 13, an MCU control module 14, a multispectral digital sensor module 15 and an LED lamp panel module 16, the power supply module 13 is used for supplying power to the LED lamp panel module 16, the multispectral digital sensor module 15 and the MCU control module 14 to ensure the stability of the power consumption of the device, the multispectral digital sensor module 15 collects light reflected by skin through the multispectral digital sensor, the light enters the spectrum sensor after being divided into different sensors to obtain spectrum data of different wave bands, further the collection and extraction of the multispectral data reflected by the skin are realized, the purpose of collecting skin color data is achieved, the skin color characteristic quantity of the skin color is more various and effective, a trained convolutional neural network identification model is configured in the MCU control module 14, the method mainly comprises the steps of identifying and detecting collected multispectral data, obtaining a display result on a display touch screen module 7, further performing overall skin color detection control through the display touch screen module 7, enabling an LED lamp panel module 16 to play a role of irradiation and be used for irradiating human skin and supplementing light for the skin, enabling the size of a screen of the display touch screen module 7 to be 5.5 inches, enabling a user to complete control of a supplementary lighting lamp, collection of multispectral data and identification of skin color through operation of the display touch screen module 7 in a key-pressing mode, controlling skin color detection through the display touch screen, and finally displaying the skin color type result identified and detected on the touch display screen (see an upper graph of a figure 2 and a figure 4 in an instruction book attached diagram);
the bottom of the handle grip module 6 is provided with a 5-core aviation socket, the interfaces of the five-core aviation socket are a power supply 12V interface 8, a power supply GND interface 9, a protection grounding interface 10, an I2C SCL interface 11 and an I2C SDA interface 12 respectively, the power supply 12V interface 8 and the power supply GND interface 9 are used for connecting and supplying power to the device, and the I2C SCL interface 11 and the I2C SDA interface 12 are used for transmitting data to the device and exchanging the data (refer to fig. 3 in the attached drawings of the specification).
A skin complexion measuring method for intense pulse light dry eye treatment (as shown in a measuring flow chart of figure 5) comprises the following specific steps:
firstly, after the device is started and powered on, the display touch screen module 7 controls the annular LED supplementary lighting lamp assembly module 2 to emit light to irradiate the skin to be detected through the MCU control module 14;
secondly, the light after emitting the skin is detected through a scintillation channel of the multi-spectral digital sensor module 15, and then multi-spectral data is collected through a multi-channel sensor;
step three, after the multispectral data is collected, storing the transmission data into an RAM memory;
step four, transmitting the data processing of the step three to the MCU control module 14 through a transmission protocol;
and step five, as shown in the data identification processing flow of fig. 6, preprocessing the data by Principal Component Analysis (PCA), inputting the preprocessed data into a trained convolutional neural network identification model configured in the MCU control module 14 to extract skin color features, classifying the skin color features by using a multi-classification Support Vector Machine (SVM), and displaying the skin color results of the data and the spectrum data transmitted on the display touch screen module 7.
Specifically, before identifying skin color, performing Principal Component Analysis (PCA) dimensionality reduction processing on the collected multispectral data; the collected spectral data is subjected to dimensionality reduction treatment, and the specific calculation steps (shown in a flow chart in fig. 7) are as follows:
step 1: firstly, standardizing multispectral original data, unifying scalar quantities to a fixed range value, facilitating convergence training and calculation of a model, and ensuring that each collected spectral data can be extracted equivalently; the calculation formula is as follows:
step 2: and (3) calculating a covariance matrix of the spectral data, wherein the calculation formula is as follows:
wherein x isi,xjIndicates that the ith class corresponds to the jth classThe skin color spectrum data A is a covariance matrix;
and step 3: parameters for calculating the covariance of the spectral data: eigenvectors and eigenvalues; the calculation formula is as follows:
A=QλQ-1
wherein A is a covariance matrix, Q is a characteristic vector, and lambda is a characteristic value;
and 4, step 4: selecting principal component eigenvectors according to the sequence of the eigenvalues from big to small to form a new matrix;
and 5: carrying out mapping projection on the spectrum data, mapping the spectrum sample data onto the characteristic vector, namely finding a new set of orthogonal bases { u }1,u2,...,ukAnd after the spectral data are projected on a plane formed by orthogonal bases, the distance and the variance J between the datajThe maximum is reached, namely:
wherein m is the number of spectrum samples, and the orthogonal base is u
jData point at x
iA projected distance on the substrate of
In the technical scheme, the measuring method is mainly embodied in the aspect of a convolutional neural network model, a deformable convolutional neural network is added behind a convolutional layer for a lightweight convolutional neural network to enhance the extraction of the characteristic quantity, and in the aspect of classification, a multi-classification SVM classifier is adopted for classifying skin color results in a pairwise classification method.
In the technical scheme, the multi-classification SVM classifier classified in pairs identifies and classifies by respectively constructing a dichotomous SVM between every two skin color spectrum data classes; then, for classifying the ith and jth spectrum data, a binary SVM is trained, i.e. the quadratic programming problem needs to be solved:
in the formula, phi represents the nonlinear mapping of input and feature space, subscript t represents the union sample serial number of the ith class and the jth class, and i and j represent the parameters of the ith class and the jth class respectively; the decision function between class i and class j is therefore:
and classifying the multispectral new data by adopting a voting mechanism: each binary SVM processes the new data X according to its decision functionnewThere is a prediction (vote) if X is pairednewThe prediction of (1) is class i, and the number of tickets belonging to class i is increased by 1; otherwise, increasing the number of the j tickets by 1, and finally, obtaining the class with the most tickets, namely XnewThe result of the recognition of (1).
Example 2
Based on embodiment 1, the present invention provides another technical solution: AS shown in a detection principle framework diagram of a skin color measuring device in fig. 8, the data acquisition module comprises an MCU control module, an LED lamp panel module and a multispectral filter sensor module. The MCU control module firstly controls the LDE lamp panel to emit light to irradiate the surface of human skin color, then the light emitted by the human skin color is detected and received by the multispectral digital sensor, and spectral data of different wave bands are formed by sensors of different wave bands, wherein the MCU control module comprises 10 data acquisition channels: f1(405-425nm), F2(435-455nm), F3(470-490nm), F4(505-525nm), F5(545-565nm), F6(580-600nm), F7(620-640nm), F8(670-690nm), NIR (850-1050nm) and no filter channel.
The skin complexion measuring device for intense pulse light dry eye treatment of the embodiment collects spectral data of 10 channels through the multispectral digital sensor module AS7341 when collecting images of skin, samples the data of the skin, and stores and transmits the sampled skin data through data storage. The multispectral digital sensor module for collecting data is not limited to this, and may also include other multi-channel spectral digital sensors.
Example 3
Based on embodiment 1, the present invention provides another technical solution: the invention discloses a skin complexion measuring device and method for intense pulse light dry eye treatment, which are used for identifying the skin complexion of dry eye skin of people. On the basis of the existing lightweight MobileNet V3, a deformable convolution structure and a pair-classified SVM classifier are combined to train the model. Skin classification adopts Fitzpatrick model skin classification, totally classified into type I-type VI, the embodiment mainly collects yellow skin color, namely type IV-type V skin color corresponding to Fitzpatrick, classifies the yellow skin color into 6 types according to the characteristics of the yellow skin color, collects thousands of skin spectrum data by using a skin color measuring device, then preprocesses the data, carries the data into a model for training, extracts the shallow layer characteristic and the deep layer characteristic of the skin color, gradually optimizes the model parameters, and finally obtains higher skin color identification accuracy.
For skin color grading selection, the classification of the skin of yellow race selected by the embodiment into 6 classes is limited to the embodiment, and other skin color classes can be further classified.
As shown in the processing flow of fig. 9, for the detected skin color data, the collected multispectral data is subjected to Principal Component Analysis (PCA) dimensionality reduction; performing dimensionality reduction on the acquired spectral data, wherein the specific calculation steps are as follows:
step 1: firstly, standardizing multispectral original data, unifying scalar quantities to a fixed range value, facilitating convergence training and calculation of a model, and ensuring that each collected spectral data can be extracted equivalently; the calculation formula is as follows:
for each spectral data, the original value is subtracted first by the average of the data
Then, the standard deviation σ is divided to obtain normalized data.
Step 2: and (3) calculating a covariance matrix of the spectral data, wherein the calculation formula is as follows:
wherein x isi,xjThe skin color spectrum data corresponding to the ith class and the jth class are shown, and A is a covariance matrix.
And step 3: parameters for calculating data covariance: eigenvectors and eigenvalues. The calculation formula is as follows:
A=QλQ-1
wherein A is a covariance matrix, Q is an eigenvector, and lambda is an eigenvalue.
And 4, step 4: and selecting principal component eigenvectors according to the sequence of the eigenvalues from big to small to form a new matrix.
And 5: performing mapping projection of data, and mapping the sample data toOn the feature vector, a new set of orthogonal bases u is found1,u2,...,ukAnd after the spectral data are projected on a plane formed by orthogonal bases, the distance and the variance J between the datajThe maximum is reached, namely:
wherein m is the number of spectrum samples, and the orthogonal base is u
jData point at x
iA projected distance on the substrate of
After the principal component analysis and pretreatment is finished, the data is brought into a trained lightweight convolution neural network model for prediction, and finally an output skin color recognition result is obtained.
In the skin color model, a model formed by adding a Deformable Convolution (DCN) combination on the basis of MobileNet V3 is adopted to train and predict a skin color result, and finally a Support Vector Machine (SVM) classifier classified in pairs is used for classification, wherein the MobileNet V3 structure adopts a large parameter structure and comprises a convolution layer, an inverted residual block, an average pooling layer, a full-link layer, a flattening layer, a classifier and the like, and is specifically shown in FIG. 10.
In the lightweight MobileNet V3 recognition model, as shown in fig. 11, based on the existing MobileNet V3, a deformable convolutional network structure is combined, a deformable convolutional network framework is added behind the convolutional layer of the first layer, and a deformable convolutional neural network is added in the inverted residual error block.
And finally classifying the skin color model, and identifying the skin color by adopting a SVM classifier method of paired classification. The specific algorithm process is as follows:
the SVM classifier based on paired classification is used for identifying and classifying by respectively constructing a dichotomous SVM between every two skin color spectrum data classes. Then, for classifying the ith and jth spectrum data, a binary SVM is trained, i.e. the quadratic programming problem needs to be solved:
in the formula, phi represents the nonlinear mapping of the input and the feature space, the subscript t represents the union sample number of the ith class and the jth class, and i and j represent the parameters of the ith class and the jth class respectively. The decision function between class i and class j is therefore:
and classifying the multispectral new data by adopting a voting mechanism: each binary SVM processes the new data X according to its decision functionnewThere is a prediction (vote) if X is pairednewThe prediction of (1) is class i, and the number of tickets belonging to class i is increased by 1; otherwise, increasing the number of the j tickets by 1, and finally, obtaining the class with the most tickets, namely XnewThe result of the classification is shown in fig. 12.
All the descriptions presented above are of the basic principles, principal features and advantages of the invention. The invention is not limited by the above embodiments, and the embodiments described in the above description are only preferred embodiments of the invention, so that the specific contents of the invention can be clearly illustrated and presented, and the invention is not limited by them. Without departing from the spirit and scope of the present invention, there may be some variations and modifications which may follow, and these are intended to be included within the scope of the present invention. The scope of the invention herein claimed is defined by the appended claims and equivalents thereof.