This invention relates to a hair treatment device comprising a light-based detector for detecting a hair near a skin surface, the light-based detector comprising a light source for emitting optical radiation of at least a first wavelength and with an incident polarization towards the skin surface, a light sensor for detecting light reflected at the skin surface, the light sensor being capable of separately detecting the reflected light with the incident polarization and with a different polarization, and for providing a PP value representing the detected light with the incident polarization and a CP value representing the detected light with the different polarization, and a processor, coupled to the light sensor and being operative to discriminate between the skin surface and the hair based on the CP and PP value.
This invention further relates to a method for detecting a hair near a skin surface, and to a computer program product for detecting a hair near a skin surface.
A light-based detector as used in the hair treatment device mentioned in the opening paragraph is, e.g., known from the international patent application published as WO 2010/106480 A1. This patent application describes a shaving device with an optical hair detection unit. The hair detection unit makes use of two light sources for emitting light of two different wavelengths and one incident polarization. The light is focused on a position on the user's skin. An imaging unit detects the light that is scattered or reflected at the user's skin. When light is not reflected by skin cells but by a hair constituting a birefringent object, the polarization is changed. The amount of polarization change induced by the hair is wavelength dependent. The imaging unit separately detects reflected light with different polarization states and different wavelengths. The differences in polarization change in different wavelength channels are used to discriminate between hair and skin surface.
The main performance parameters of the hair detection unit are sensitivity and specificity. Sensitivity is a measure for the chance that a hair is actually detected. Specificity is important to discriminate between hairs and other structures, in particular skin. In order to further improve the known hair detection unit, a light-based detector with a higher sensitivity and specificity is desired. Additionally, due to the use of multiple wavelengths, the known hair detection unit is a rather complex device with a lot of optical elements that have to be perfectly aligned in order to obtain a well working detection unit.
It is an object of the invention to provide a hair treatment device of the kind mentioned in the opening paragraph with a light-based detector for detecting a hair near a skin surface, wherein the light-based detector has an improved sensitivity and specificity.
According to a first aspect of the invention, this object is achieved by a hair treatment device of the kind mentioned in the opening paragraph, wherein the light-based detector comprises a processor which is coupled to the light sensor and which is operative to, based on a calibration procedure, scale the CP value and the PP value to respective dynamic ranges in order to obtain a scaled CP value and a scaled PP value respectively, to determine a Minimum Intensity Projection (MIP) value by selecting the lowest value of the scaled CP value and the scaled PP value, and to discriminate between the skin surface and the hair based on the MIP value.
Due to an improved detection algorithm, hairs constituting birefringent structures can be detected with a high sensitivity and specificity. Non-birefringent materials preserve the original incident polarization state of the light. The light or measures a high PP (parallel polarized) value and a low CP (cross polarized) value. When the light is reflected by a hair constituting a birefringent object, the polarization changes and the light-based detector will measure a relatively low PP value (light with the unchanged incident polarization state) and a relatively high CP value (light with the changed and thus different polarization state).
If the CP and PP values are properly scaled, taking the minimum of both values returns a high value for the hairs and low value for the skin surface areas. Mostly, this is the case already for the CP value alone, however, in some instances when non-hair structures are involved, the CP value can be high and the PP value low. Therefore, the MIP approach renders a more robust discrimination between skin and hair.
Experiments have shown that the use of the MIP value is a very sensitive and highly specific measure for detecting hairs constituting birefringent objects. Other options such as determining the difference or absolute difference between the CP value and the PP value, or dividing the absolute difference by the sum of both values have shown to be less successful in discriminating between hair and skin. The improved detection algorithm has even proved to be so successful that the use of light with only one wavelength is sufficient. Although using an additional light source emitting light of a second wavelength might still improve the effectiveness of the light-based detector, it is not necessary. As a result the improved algorithm allows for a less complex, cheaper and more robust light-based detector.
The dynamic ranges of the CP and PP signals are dependent on various circumstances. For example, the dynamic ranges may vary depending on skin and hair type or on the closeness and angle of the light-based detector to the tested skin surface. The dynamic ranges also differ from device to device. Therefore, the CP and PP values are preferably scaled to respective predefined ranges before the ratio is calculated. The respective dynamic ranges are preferably determined based upon a calibration procedure involving a background measurement and a diffuse standard. The background measurement may, e.g., be done by focusing the light at a predetermined depth in water or at a part of skin of which it is known that it does not comprise birefringent material. The diffuse standard may, e.g., be a hair at a controlled depth and position or a strongly scattering diffuse media with known optical properties.
When the light-based detector is used for hair detection, it was shown to be advantageous to use a predefined dynamic range for the PP value that is approximately three times as wide as the predefined dynamic range for the CP value. For example all PP values are scaled to [0,300] and all CP values are scaled to [0,100]. With these dynamic ranges the CP and PP values for the diffuse standard are similar. For other light-based detectors, the optimal dynamic ranges may be different.
In another embodiment of the hair treatment device according to the invention, the processor is further operative to calculate a ratio of the scaled CP value and the scaled PP value and to discriminate between the skin surface and the hair further based on the calculated ratio. When the light is reflected by non-birefringent skin material, the original incident polarization state of the light is preserved. The light sensor measures a high PP (parallel polarized) value and a low CP (cross polarized) value. The resulting CP/PP ratio thus is very small. When the light is reflected by a hair constituting a birefringent object, the polarization changes and the light-based detector will measure a relatively low PP value (light with the unchanged incident polarization state) and a relatively high CP value (light with the changed and thus different polarization state). When the light is reflected by the hair, the CP/PP ratio is significantly increased. Experiments have shown that the use of CP/PP ratio is a very sensitive and highly specific measure for detecting hairs constituting birefringent objects.
In the example where all PP values are scaled to [0,300] and all CP values are scaled to [0,100], the CP/PP ratio was close to zero for skin and around 1 for hairs. As a result, the CP/PP ratio could be used as some sort of probability value.
The CP/PP ratio (either obtained after scaling the CP and PP value or not) is preferably processed using a discriminating function. The discriminating function preferably is an S-shaped function with a steep slope. The result of applying the discriminating function is that a sharper transition from birefringent to non-birefringent is obtained. Consequently, the contrast between non-birefringent skin surfaces and birefringent hairs will be enhanced. For example, a hyperbolic tangent of the CP/PP ratio or of a linear function of the CP/PP ratio may be used for the discriminating function.
In a preferred embodiment, the light-based detector further comprises a control unit for controlling the light source to emit the optical radiation at multiple positions near the skin surface and at each position detecting the reflected light using the light sensor, the processor further being operative to provide a MIP map indicating for each position the corresponding MIP value. The multiple positions may form a one-dimensional scan line. Multiple one-dimensional scan lines may together form a two-dimensional scan surface. It is to be noted that the MIP map is not necessarily a 2D graphical representation of the surface area with elevated MIP values at some locations. The MIP map preferably is a list or array with MIP values for the multiple positions.
In a preferred embodiment of the hair treatment device according to the invention, the processor is further operative to calculate a ratio map by determining for each position a ratio of the corresponding CP value to the PP value, to apply a gradient filter to the ratio map in order to obtain an edge probability map indicating for each position a probability of the presence of an edge of the hair, and to combine the edge probability map and the MIP map to generate a binary map indicating where hairs are expected. The gradient filter may, e.g., be a first order Gaussian derivative filter. Applying a suitable gradient filter to the ratio map leads to low values in areas with stable CP/PP ratios. The CP/PP ratio is, e.g., relatively stable at skin parts without any nearby hairs. At and close to transitions between birefringent hairs and non-birefringent skin surfaces, the gradient filter produces higher values. The result of applying the gradient filter to the ratio map thus is a new map indicating the positions with a higher probability of comprising an edge of a birefringent hair.
While the MIP map provides a reliable probability map indicating where to expect birefringent hairs and where not, the edge probability map shows where the edges of the birefringent hairs are found. The combination of the edge probability map results in an even more reliable distinction between birefringent hairs and non-birefringent skin material. Furthermore, the edge probability information may be used for determining the shape of a detected birefringent hair. This makes it possible to make a reliable distinction between different kinds of birefringent objects. When using the light-based detector according to the invention for detecting hairs, the proposed detection algorithm may be used to discriminate between hairs and air bubbles that may also be birefringent.
In a further embodiment of a hair treatment device according to the invention, the light source is arranged to further emit optical radiation of a second wavelength, the light sensor is arranged for providing separate CP and PP values for the first and the second wavelength, and the processor is further operative to combine the CP and PP values for the first and the second wavelength and to determine the MIP value based on the combined CP and PP values for the first and second wavelength. The combined CP and PP values may, e.g., be obtained by taking a difference between or a ratio of the respective values for the different wavelengths. Alternatively, the combined CP and PP values may be a ratio of the difference between and the sum of the respective values for the different wavelengths.
A further embodiment of a hair treatment device according to the invention further comprises a hair-cutting laser source and a further processor which is coupled to the light-based detector, wherein the further processor is arranged to activate the hair-cutting laser source in a position near the skin surface in which the light-based detector has detected the presence of a hair. In this embodiment, the hair treatment device is a so-called laser-based shaving device. Other hair-treatment devices are also within the scope of the invention, for example light-based epilation devices wherein light energy is used to permanently or temporarily damage hair roots in order to obtain permanent or temporary hair removal, or hair coloring devices. Generally, the invention covers any hair treatment wherein a light-based detector for detecting the presence of hairs near the skin surface is or could be used.
The invention further relates to a method for detecting a hair near a skin surface, the method comprising the steps of emitting optical radiation of at least a first wavelength and with an incident polarization towards the skin surface, detecting light reflected at the skin surface and having the incident polarization and providing a PP value representing the detected light with the incident polarization, detecting light reflected at the skin surface and having a different polarization and providing a CP value representing the detected light with the different polarization, based on a calibration procedure, scale the CP value and the PP value to respective dynamic ranges in order to obtain a scaled CP value and a scaled PP value respectively, determine a Minimum Intensity Projection (MIP) value by selecting the lowest value of the scaled CP value and the scaled PP value, and discriminate between the skin surface and the hair based on the MIP value.
The invention further relates to a computer program product for detecting a hair near a skin surface, which program is operative to cause a processor to perform the method for detecting a hair near a skin surface according to the present invention.
In the drawings:
The light-based detector 10 of
When the light is reflected at the skin surface 12, the reflected light preserves its original incident polarization state. Light interaction with birefringent hairs changes the polarization state of the light. As a result, the light reflected at a skin/hair sample may be partly parallel polarized (PP) with the incident beam and partly cross polarized (CP). The CP component of the reflected light is a measure for the probability that the light has hit upon a birefringent hair. In the light-based detector 10 of
A processor 15 is coupled to the light sensors 14a, 14b to receive the CP and PP signals and to use those signals for discriminating between hair and skin. The processor 15 may also be coupled to the laser source 13 and the control unit 16 for controlling the incident laser beam and scanning the skin surface 12.
Optionally (see
When the emitted light reaches the skin 12, it is partially reflected back into the light-based detector 10. The optical elements 18 lead the reflected light towards the polarization splitter 17 where it is split into a PP and a CP signal. In PP detection step 22, the first light sensor 14a detects the light with the unchanged (PP) polarization and provides a PP value representing the detected light with the incident polarization. In CP detection step 23 the second light sensor 14b detects the light with the changed (CP) polarization and provides a CP value representing the detected light with the different polarization.
The light sensors 14a and 14b are coupled to the processor 15, which processes the obtained PP and CP values in order to detect birefringent hairs. The processing of the PP and CP values at least comprises selecting the lowest value of the CP and PP values as a Minimum Intensity Projection (MIP) value in MIP step 24. Additionally, a ratio of the CP value to the PP value may be calculated. Experiments have shown that the use of CP/PP ratio is a very sensitive and highly specific measure for detecting birefringent hairs 11. Other options such as determining the difference or absolute difference between the CP value and the PP value, or dividing the absolute difference by the sum of both values have shown to be less successful in discriminating between hair 11 and skin 12.
In a discriminating step 25 the processor 15 decides whether the light beam was reflected at a birefringent hair or not. The decision may be a binary yes/no decision or may result in a probability (typically a value between 0 and 1) of finding a birefringent hair at the tested position. If the light-based detector 10 only makes a measurement at one skin 12 position, the decision may be based upon the MIP value of the tested position only, e.g. by comparing the MIP value to a threshold value. In practice, the light-based detector 10 will scan an area of skin 12. The processor 15 preferably also takes the MIP values of nearby positions into account when determining the probability of finding a birefringent hair at the tested position.
In addition, the CP/PP ratio may be used as the output value for the probability of finding a birefringent hair at the tested position. A threshold value may be used to make a binary yes/no decision for discriminating between hair 11 and skin 12. In a more advanced version of the discriminating algorithm, also other data processing operations are performed on the obtained CP and PP signals. Examples of such further data processing operations are illustrated by the images in
In
The dynamic range of the signals from the light sensors 14a, 14b can vary depending on skin and hair type and e.g. the closeness and angle of the blade with respect to the skin and hairs. Furthermore the sensor signals can be polluted with sensor noise. In order to be able to cope with a large dynamic range the signal is digitized and preconditioned to a predefined dynamic range. This may be done by controlling amplifiers that are between the light sensors 14a, 14b and the processor 15 or by the processor 15 itself. The scaling may be based on, e.g., the running average, recent minimum and/or recent maximum of the detected values. In the following examples, the CP values are scaled to a range [0,100] Skin shows low intensity signals (e.g. 42) and hair high intensity signals (e.g. 99). The PP values are scaled to a range of [0,300]. Skin is characterized by high intensities (e.g. 175) and hair by lower intensities (e.g. 95). Other predefined ranges may be more useful in other situations, for example when looking for other types of birefringent objects.
In the CP image 51 several birefringent areas are encircled. Three of those areas (encircled by solid lines) comprise a hair. Two areas comprise an air bubble (encircled by dotted lines). Two other areas (also encircled by dotted lines) comprise other non-hair structures. In the PP image 52 only one of the hairs is clearly visible, while the other two are not. Also the bubbles are clearly visible. According to the invention, the CP values 51 and the PP values 52 are used to calculate CP/PP ratios for all tested points in the scanned area. An advantage of using the above described exemplary ranges for scaling the CP and PP values is that for hair, the CP value and the PP value do not differ too much and the CP/PP ratio for hair is close to 1. For skin areas, the CP value is low and the PP value is high, resulting in a very low CP/PP ratio. The high contrast between skin and hair that is obtained in this way improves the sensitivity of the light-based detector.
In the CP/PP image 53 in
In
50(1+tanh(3 r−2)), for 0<r<0.8
50(1+tanh(3 r−0.4)), for 0.8<r<3
0, for 0>3
where r is the ratio value CP/PP.
An effect of using such a discriminating function with a steep slope is that a sharper transition from birefringent to non-birefringent material is obtained. Consequently, the contrast between non-birefringent skin surfaces and birefringent hairs will be enhanced. The second image 62 shows the result of applying the discriminating function to the CP/PP ratio values 53.
After applying the discriminating function, a gradient filter may be applied to the processed CP/PP data 62. A gradient filter determines a change of the CP/PP ratio with respect to position. For each tested position, a gradient filter provides an output that depends on the rate of change of the CP/PP ratio compared to the CP/PP ratio of nearby positions. At the edges of birefringent hairs, the rate of change is high. Further away from the edges, the rate of change is low.
The output values of an exemplary gradient filter are used for obtaining the date shown in the third image 63 of
A further filtering step, e.g. using a finite impulse response (FIR) filter, may be performed for ensuring high intensity continuity at the edges and to remove non-hair outliers such as very narrow elongated structures (e.g. vellus hairs). To obtain the edge probability map 63 of
It is to be noted that, although the gradient filter in this example is applied to the processed CP/PP data 62 of the second image in
In a preferred implementation of the algorithms according to the invention, the MIP data 71 and the edge probability map 63 are combined to make a final decision about where the hairs are found in the scanned skin/hair sample. As discussed above the CP/PP ratio approach resulting in the edge probability map is very effective in discriminating between hairs and air bubbles, while the MIP approach effectively discriminates between hairs and other non-hair structures. Combining both approaches may result in a hair detection algorithm with superior sensitivity and specificity. An algorithm for combining both approaches should look for points with a high probability of comprising a hair (=high value in MIP data 71) and with a high probability of finding hair edges at nearby positions (=high values in edge probability map 63 for nearby points). An exemplary algorithm for making such a combination is:
h(n)=1, if 0.7 max(pg[n−20, . . . , n])+0.3 pm[n]>dr, and
h(n)=0, else,
wherein pg[n] refers to the edge probability value, pm[n] to the MIP value and h(n)=1 to a detected hair at location n. dr is an experimentally determined threshold value. This algorithm searches for hair positions with a first hair edge somewhere in the previous 20 points (80 μm, if each scanning step takes 4 μm). The algorithm may be adapted for also taking into account the second hair edge:
h(n)=1, if 0.3 max(pg[n−20, . . . , n])+0.5 pm[n]−0.2 min(pg[n, . . . , n+20])>de
h(n)=0, else,
wherein pg[n] refers to the edge probability value, pm[n] to the MIP value and h(n)=1 to a detected hair at location n. dr is an experimentally determined threshold value. The binary image 73 on the right side of
The hair-cutting device 80 may not only use the laser source 13 for detecting the hair 11, but also for cutting it. When the laser source 13 is used for cutting, the laser source 13 may operate at a different power level than when detecting hairs. Alternatively, a separate laser source (not shown) may be used for the cutting of the hairs 11.
The control over the hair-detection and cutting process may be performed by the processor 15 or by a further processor (not shown) which is coupled to the light-based detector and to the hair-cutting laser source. The processor 15 or the further processor is arranged to activate the hair-cutting laser in positions near the skin surface in which the light-based detector detects or has detected the presence of a hair. For this purpose the detection and hair-cutting laser beams may be scanned over the skin surface. The skilled person will be able to construct suitable scanning means for this purpose, which are for example known from WO 00/062700, WO 2005/099607, or WO 2010/143108.
It will be appreciated that the invention also extends to computer programs, particularly computer programs on or in a carrier, adapted for putting the invention into practice. The program may be in the form of source code, object code, a code intermediate source and object code such as partially compiled form, or in any other form suitable for use in the implementation of the method according to the invention. It will also be appreciated that such a program may have many different architectural designs. For example, a program code implementing the functionality of the method or system according to the invention may be subdivided into one or more subroutines. Many different ways to distribute the functionality among these subroutines will be apparent to the skilled person. The subroutines may be stored together in one executable file to form a self-contained program. Such an executable file may comprise computer executable instructions, for example processor instructions and/or interpreter instructions (e.g. Java interpreter instructions). Alternatively, one or more or all of the subroutines may be stored in at least one external library file and linked with a main program either statically or dynamically, e.g. at run-time. The main program contains at least one call to at least one of the subroutines. Also, the subroutines may comprise function calls to each other. An embodiment relating to a computer program product comprises computer executable instructions corresponding to each of the processing steps of at least one of the methods set forth. These instructions may be subdivided into subroutines and/or be stored in one or more files that may be linked statically or dynamically. Another embodiment relating to a computer program product comprises computer executable instructions corresponding to each of the means of at least one of the systems and/or products set forth. These instructions may be subdivided into subroutines and/or be stored in one or more files that may be linked statically or dynamically.
The carrier of a computer program may be any entity or device capable of carrying the program. For example, the carrier may include a storage medium, such as a ROM, for example a CD ROM or a semiconductor ROM, or a magnetic recording medium, for example a floppy disc or hard disk. Further the carrier may be a transmissible carrier such as an electrical or optical signal, which may be conveyed via electrical or optical cable or by radio or other means. When the program is embodied in such a signal, the carrier may be constituted by such cable or other device or means. Alternatively, the carrier may be an integrated circuit in which the program is embedded, the integrated circuit being adapted for performing, or for use in the performance of, the relevant method.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. Use of the verb “comprise” and its conjugations does not exclude the presence of elements or steps other than those stated in a claim. The article “a” or “an” preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the device claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
Number | Date | Country | Kind |
---|---|---|---|
11168115.1 | May 2011 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/IB2012/052573 | 5/23/2012 | WO | 00 | 11/14/2013 |