Method and system for determining the properties of a keratin surface and method and system for treating said keratin surface

Processing hair images through machine learning models solves the problem of insufficient accuracy in hair color and density diagnosis in the existing technology, achieves accurate assessment of hair characteristics, and improves the relevance and reliability of personalized product recommendations.

CN112740266BActive Publication Date: 2024-09-13LOREAL SA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980061174.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-09-20
Filing Date
2019-07-15
Publication Date
2024-09-13
Estimated Expiration
2039-07-15

AI Technical Summary

Technical Problem

Existing technology makes it difficult to accurately and reliably diagnose and measure hair color and density, especially for thin, gray and blonde hair, resulting in a lack of relevance and reliability in personalized hair product recommendations.

Method used

A machine learning model is used to preprocess and segment hair images, combined with a colorimetric model and a convolutional neural network, to extract the physical and chemical properties of hair and provide quantitative property scores.

Benefits of technology

It achieves accurate assessment of characteristics such as hair color and density, improves the relevance and reliability of personalized product recommendations, reduces human subjectivity, and improves the objectivity and efficiency of diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112740266B_ABST
    Figure CN112740266B_ABST
Patent Text Reader

Abstract

The present application relates to a method and system for determining at least one physical and / or chemical property of a user's keratin surface, the method comprising the following steps: - receiving data corresponding to at least one image of the keratin surface, - processing the image by applying at least one machine learning model to the image, - returning at least one numerical value corresponding to a score level of the property to be determined of the keratin surface.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present invention relates to a method and a system for determining at least one property of a keratin surface and to a method and a system for treating said keratin surface.

[0002] The method particularly relates to the evaluation and treatment of human hair and more specifically to a method and system for bleaching or dyeing hair, such as disclosed in documents WO 2004002300 A2 and US 9316580 B2, for example.

[0003] The health and beauty industry uses technological advances to improve the consumer experience of its products and services. There is a deep trend towards offering products that are tailored to the needs of the user and fit their specific characteristics. This trend is often referred to as “personalization.”

[0004] "Personalization" may relate to any body part, but particular attention is paid to exposed body parts such as the face (make-up products or care products, especially foundation) and scalp / hair (eg care products or coloring products).

[0005] It is known to provide and recommend foundation makeup products (such as "Le Teint Particulier" ). It is also known to provide and recommend hair products based on certain properties of the hair.

[0006] "Personalization" is not just about offering a more or less wide range of products, each corresponding to a specific category of users; the challenge is usually to be able to recommend the most appropriate product to the user in question based on his or her personal characteristics.

[0007] Typically, "personalization" comprises a first diagnostic step aimed at obtaining data specific to said user, which is then used to determine appropriate subsequent treatment(s) and / or products to be applied to the relevant body part of the user.

[0008] Until recently, some or all of these steps were often performed manually or visually by an expert, such as a hairdresser or beauty consultant. For example, it is known to send a specific questionnaire to the user, the answers to which are used to determine the so-called most suitable product (e.g., US-A1-2014 / 0216492). Of course, this approach is subject to great variability and subjectivity, and it is often desirable to simultaneously improve the relevance and reliability of the product recommendations.

[0009] To improve the relevance and reliability of product recommendations, tools and devices can be used to perform some or all of these steps, which can even be automated.

[0010] For example, data can be obtained from the relevant body parts of the user by measuring using an appropriate measuring device (called a "reader") to obtain one or more specific characteristics, which are looked at to determine the appropriate treatment or product. An example of such a device is the CAPSURE reader sold by X-RITE, and the reader is capable of returning a color data code of the user's skin.

[0011] The collected data (possibly along with other additional data) can then be fed to a computing unit which will help determine the most appropriate product based on various rule sets.

[0012] The subsequent treatment or product determined based on the collected data can be a ready-made product selected from a catalog or database (such as in documents US 5478238 or US 9519927 which disclose a method for finding a matching foundation product) or a personalized product, the composition of which has been determined based on previously obtained data.

[0013] The user can then purchase or order the recommended product. In the case of a personalized product (or custom product), the personalized product can then be manufactured on site, directly in the store or in a beauty / hair salon by a device capable of mixing the components according to the personalized composition and dispensing the composition. The user can also order the personalized product for later delivery.

[0014] As a complete example of such a system, the above-mentioned document US 9316580 B2 discloses a method for performing a customized treatment of keratin fibers, comprising a diagnostic step using an optical reader configured to acquire a spectrum of the hair, said spectrum being used to calculate a subsequent hair treatment composition, and then making and dispensing an appropriate composition by a corresponding device. Reference may also be made to document WO 2011024160 A1.

[0015] As mentioned above, obtaining reliable, objective and relevant data from the user can be particularly challenging. This is especially challenging for the hair or scalp due to its specific texture and environment.

[0016] Depending on the desired information being sought, different techniques can be used:

[0017] Document KR-A1-101456942 discloses a hair and scalp condition diagnosis device, which includes a sensor unit for objectively diagnosing the user's hair or scalp condition by comparing previously stored hair samples or scalp samples based on a diagnostic signal diagnosed by the hair or scalp condition. In particular, the device may include an image sensor for acquiring an image of the scalp area. The acquired image may then be processed by an image analysis module using, for example, light intensity recognition, color recognition, or contrast analysis to determine certain characteristics of the hair, such as the number of hairs, diameter, etc. Although the document states that the contrast between hair and scalp is strong and therefore they can be clearly distinguished from each other in the image, this is usually not the case in practice because hair is at least partially translucent, depending on the level of melanin contained in the hair. This is particularly true for thin hair, white hair, and blonde hair, which are the most difficult to identify and count.

[0018] Document WO 2017207455 filed in the name of the present applicant also proposes a method for analyzing the condition of the scalp and / or hair, the method comprising the following steps: taking pictures under different lighting conditions (white light and UV-blue light) in order to improve the detection of hair and better show light and white hair. The images are then processed in a complementary manner by comparative analysis.

[0019] Document US 2012253203 discloses a method for imaging a skin surface presenting hair (such as a scalp area) to determine skin and hair growth conditions. The method includes taking pictures of the relevant surface at different viewing angles and then potentially processing the pictures by computer analysis to determine various characteristics, such as the number of hairs protruding from the skin surface, the thickness of the hair, the diameter or cross-sectional shape of the hair, and the length of the hair protruding from the surface.

[0020] Document US 2009036800 relates to a hair densitometer. The densitometer works by magnifying a picture of the scalp area. The hairs visible in the image can be counted and measured by a technician or any suitable automated system.

[0021] Depending on the specific features to be determined, a specific algorithm must be developed to process the image. Since such an algorithm is specialized for processing a specific feature, it may require high computing power and lack generality. In the specific field of hair property measurement, the very nature of hair makes it particularly difficult to design an algorithm.

[0022] Furthermore, in the specific field of hair dyeing or bleaching, a reliable and true diagnosis of the original hair color is crucial, since it will have a strong influence on the final color to be obtained. Usually, this is done visually by an expert (such as the user's hairdresser) based on his or her professional knowledge and with the help of a scale showing different hair tones and hair colors.

[0023] In early 2003, COLORIGHT, now part of the L'OREAL group, proposed a system for determining and preparing hair dye compositions based on the color of the user's hair. Color data is usually obtained by using a spectrophotometer, the spectrum of which is used to calculate the appropriate hair dye composition and predict the final dyeing result. For additional information on the application of COLORIGHT, reference may be made to the previously mentioned document WO 2004002300 and subsequent applications. Subsequently, the previously mentioned patent US 9316580 B2 is also particularly relevant to the description of the global system.

[0024] There is several references related to measuring the hair color of a user.

[0025] Reference may be made to document US 6067504, which discloses a method for correctly identifying hair color using a colorimeter. The method further uses the Hunter L, a, b values ​​of the hair and uses these values ​​to propose a suitable colorant from a predetermined database that can achieve the desired hair tone.

[0026] A particular problem with using a spectrophotometer to measure hair color is that it collects a spectrum of light over the entire measurement area, which includes the scalp skin and hair. Spectrophotometers are able to measure the color of an object with high accuracy, but they do so over the entire measurement area (usually 1cm 2 Therefore, the color actually obtained from the spectrum does not completely correspond to the real color of the user's hair and may need correction.

[0027] In the specific context of hair color measurement, root measurements cannot be taken with a spectrophotometer near the scalp because the spectrophotometer averages the entire area, thus mixing the hair values ​​and scalp values ​​together and is highly dependent on the exact area being measured.

[0028] Furthermore, a spectrophotometer or a colorimeter is dedicated to color measurement, and it is impossible to obtain additional relevant data (such as the density of hair, etc.), or additional sensors or additional dedicated equipment are required to obtain such data.

[0029] In order to improve the reliability of the measurement, document US 7508508 discloses the combined use of a spectral analysis unit and an image unit for displaying an image of the measured area, thereby allowing the operator to precisely control the measured area and perform a complementary visual assessment. This solution is still complex and not completely satisfactory.

[0030] Reference may also be made to document US 7151851, which describes a cosmetic color analysis system that analyzes the color of a three-dimensional object (such as hair) through acquisition by a camera sensor and determines the cosmetic color by relatively weighting multiple cosmetic colors. However, the system does not take into account the environment of the scalp and hair.

[0031] In another approach, document US Pat. No. 8,428,382 proposes a method and a device for displaying an image of a hair region in order to evaluate the hair style using image processing.

[0032] However, despite various trials, successfully converting functional devices for hair diagnostics remains a challenging subject.

[0033] There is a need to further develop the system and allow for versatile, reliable and objective collection of scalp data and hair data. Additionally, hair color and hair density are not the only relevant parameters and it may be desirable to collect other parameters specific to the user.

[0034] To this end, there is a need for an improved method for diagnosing the condition of the skin, scalp and / or hair in order to obtain reliable data specific to the user, which data can then be used in a personalized product recommendation system or in a personalized dispensing or composition manufacturing system.

[0035] The present application proposes a solution to at least some of the above limitations and relates to a method for determining at least one physical and / or chemical property of a keratin surface of a user, the method comprising the following steps:

[0036] - receiving data corresponding to at least one image of the keratin surface, (input image)

[0037] - processing the image by applying at least one machine learning model to the image,

[0038] - returning at least one numerical value corresponding to the grade of the characteristic to be determined of the keratin surface.

[0039] Indeed, it has been unexpectedly found that, after being trained with an appropriate training set, a machine learning model applied to images of a user's skin can provide good results in assessing and grading the physical and / or chemical properties of the keratin surface to be measured.

[0040] Since it is image-based (machine vision) and does not require specific sensors, it is easy to use and implement, while it has also been found that analyzing images using machine learning models can help assess characteristics that are difficult or impossible to assess with the naked eye (even the eyes of experts).

[0041] By returning or outputting a numerical value (different from the label predicted by the classification model), the proposed method allows the desired characteristics to be determined quantitatively. The quantitative value can then be used as input data in further calculations and transformations. This is not just for classification where a category or class is returned, even though the label for the class may use a number.

[0042] More specifically, the returned values ​​are continuous output variables, which are real values ​​such as integers or floating point values. These values ​​are usually quantities, such as numbers and sizes.

[0043] The machine learning model is a regression model. Alternatively, the machine learning model is a classification model (discretization model) in which labels have an ordered relationship, and the labels are ordered into a continuous range corresponding to the physical / chemical properties to be estimated.

[0044] It is important to note that while classification models can predict continuous values, these values ​​are in the form of probabilities of class labels. Regression models can predict discrete values, but these are in the form of integer quantities.

[0045] Preferably, the image is a high resolution image.

[0046] Preferably, the image is a low magnification image of the keratin surface. As is commonly understood, a low magnification image is an image taken at a magnification of 1:1 or higher. Preferably, the maximum size of each pixel is 10 μm, so that there are several pixels along the diameter of the hair strand.

[0047] The image data may be obtained by a known image sensor such as a CMOS or CCD image sensor. Additionally, the image is advantageously parallax-free.

[0048] Advantageously, the method comprises a pre-processing image segmentation step, i.e., applying a machine learning model to at least one of the identified segments. Image segmentation aims to extract important objects associated with the characteristics to be determined. Image segmentation is the process of dividing a digital image into multiple segments or sets of pixels to simplify and / or change the image representation into something more meaningful and easier to analyze. Image segmentation is often used to locate objects and boundaries (lines, curves, etc.) in an image. This pre-processing step will enhance the predictions made by the machine learning model by highlighting specific objects in the image data. For example, an image of a scalp can be segmented to identify pixels that are likely to be hair. The machine learning model can then be applied to these specific segments to make better predictions.

[0049] According to a first embodiment, the segmentation step is performed by contrastive analysis. According to a second embodiment, the segmentation step is performed by applying a machine learning model (ie a classification model) to the image.

[0050] Other pre-processing steps may be performed on the image data, such as color calibration and correction.

[0051] Preferably, the image is an RGB image. Alternatively, the image may be a CMYK image, or may be encoded in another color space. Alternatively, the image is a multispectral image comprising at least one spectral band selected from the visible band of 380nm to 700nm, the UV band of 300nm to 380nm (or even the near UV band of 200nm to 380nm), and the IR band of 700nm to 1500nm. The image may also be an infrared image.

[0052] In a particular embodiment, the method is repeated to determine a second property of the keratin surface, preferably using the same image data. In practice, the same image can be easily processed to obtain an estimate of another property by simply loading an appropriate model. Preferably, the method uses data from a single image, even when different machine learning models are applied (these models are applied to the same single image).

[0053] Advantageously, the method comprises the subsequent step of recommending a cosmetic product based on at least some of the real-valued properties.As is known, the product can be selected in a database according to its listed properties.

[0054] According to the present application, a "cosmetic product" or a "cosmetic composition" is understood to mean a product that is a cosmetic product as defined in Regulation (EC) No. 1223 / 2009 of the Council and of the Parliament of 30 November 2009.

[0055] In certain embodiments, the method includes the subsequent step of determining a recommended cosmetic product composition based on at least some of the real-valued properties.

[0056] Of course, additional parameters and characteristics obtained by different means (measurements, questionnaires, image analysis) can be taken into account when determining recommended products and compositions.

[0057] Advantageously, the method comprises the subsequent steps of making and dispensing a cosmetic product according to the proposed composition. In particular, the method comprises the step of mixing at least some of the components in a mixing unit. In the specific case of hair dyes, the method comprises the step of dispensing at least one hair dye colorant (preferably in solid form, such as beads or tablets) into a hair dye oxidation developer (preferably in the form of a liquid or cream).

[0058] Preferably, the keratin surface illustrated in the image is a skin area of ​​the user. In a first embodiment, the skin area illustrated in the image is a facial area of ​​the user, preferably an area of ​​the cheek and / or forehead of the user. Alternatively, the skin area illustrated in the image is a scalp area of ​​the user. In a most preferred embodiment, the skin area illustrated in the image includes hair.

[0059] Advantageously, the area illustrated in the image is the root area of ​​the user's hair. The roots of the hair (i.e. the first centimeters from the scalp) present us with clean hair fiber parts that have not undergone color changes due to hair dyeing or environmental conditions. Therefore, they are a measure of a person's basic hair properties.

[0060] According to the present application, the characteristics to be determined are selected from: hair tone, hair diameter, hair density, percentage of white hair, length color, root color, hair shine, scalp dryness, dandruff level, hair colorimetry, hair spectrum, eumelanin level, melanin level, artificial dye level, humidity, sulfauridine level, damage level, and erection level, and the machine learning model has been trained accordingly to evaluate the said characteristics.

[0061] Preferably, the machine learning model is a pre-trained convolutional neural network.

[0062] In a first specific embodiment, the method involves determining a user's natural hair tone, the method comprising the steps of:

[0063] - receiving data corresponding to an image of a user's scalp surface, the image comprising hair preferably parted along a median line of the image,

[0064] - segment the image to extract sets of pixels corresponding to possible hair,

[0065] -Convert the color space values ​​of the segmented hair pixels to the CIELAB color space,

[0066] -Returns a real-valued estimate of hair hue based on the median brightness of the segmented hair pixels.

[0067] In a second specific embodiment, the method involves determining a user's natural hair color, the method comprising the steps of:

[0068] - receiving data corresponding to an image of a user's scalp surface, the image comprising hair preferably parted along a median line of the image,

[0069] -Returns real-valued hair tone estimation results by applying a pre-trained convolutional neural network. Although possible, this method does not require a segmentation step, as it appears that a properly pre-trained CNN does not require segmentation to provide good results.

[0070] The present application also relates to one or more non-transitory computer storage media storing computer usable instructions that, when used by a computing device, cause the computing device to perform a method according to the present invention.

[0071] The present application also relates to a system for implementing the method according to the invention, and more precisely to a system for determining at least one physical and / or chemical property of a keratin surface of a user, the system comprising an image sensor configured to acquire an image of the keratin surface and to transmit the image data to a processor configured to process the image data according to the method according to the invention.

[0072] As mentioned above, the image sensor may be a sensor known in the art, such as a CCD sensor or a CMOS sensor. Depending on the desired image, the sensor may also be a multispectral sensor and / or use filters such as an infrared filter to obtain an infrared image.

[0073] Advantageously, the system is at least partially integrated into a portable camera device.

[0074] Preferably, the system comprises a camera device including an image sensor, the camera device being configured to wirelessly transmit image data to a remote processing device.

[0075] Alternatively, the camera device may also include a processing unit and directly output the returned characteristic values. In this way, the camera device forms an autonomous diagnostic unit that can be easily handheld and used as a standalone device.

[0076] The present application also relates to a system for making a personalized cosmetic product, in particular a hair care product or a hair coloring product, comprising a characteristic determination system according to the invention (preferably a unit, i.e. handheld) and a dispensing unit configured to deliver the cosmetic product according to the characteristics obtained from the characteristic determination system. Advantageously, the characteristic determination system can wirelessly transmit real-valued data to the dispensing unit. More precisely, the characteristic determination unit will forward the real-valued characteristics as input to a calculation unit (recommendation), which will determine a suitable output product or composition. The recommendation unit can then send input instructions to the mixing and delivery unit in order to provide the user with a recommended product or composition.

[0077] The subject matter of the present application will be better understood from the following detailed description taken in conjunction with the accompanying drawings, in which:

[0078] Figure 1 Generally, various sequential steps for determining a user's natural hair tone in accordance with the present invention are presented.

[0079] Figure 2 Provides an overview of the training process involved in obtaining a machine learning model to be applied.

[0080] Figure 3 A pipeline of steps using a colorimetric model is shown.

[0081] Figure 4 The various layers applied to the acquired scalp images are shown.

[0082] Although the present application is particularly relevant to scalp and hair diagnostics and hair property measurement, the application is not limited to such keratin surfaces and may find application in more general skin surface characterization and measurement.

[0083] As mentioned above, hair care and hair coloring are industries that face many challenges in this digital age. Due to the complexity of hair and the process of hair coloring, accurate hair diagnosis is essential to provide customers with personalized hair care products and hair coloring products.

[0084] Obtaining hair-related properties in a reliable manner is the most challenging and the following description is illustrated by hair measurements. However, as mentioned above, the method is not limited to hair measurements and other skin applications can be performed.

[0085] Currently, in a hair salon, the first necessary step before applying any hair coloring products or suggesting a hair treatment is to perform a hair diagnosis. Important features that the hairdresser needs to estimate include hair tone, percentage of gray hair, hair diameter and density.

[0086] The root of the hair is usually the only area of ​​the hair that we have access to that has not been altered by external factors (such as natural / artificial colorants). In this area, we can measure the natural hair color and percentage of gray hair as well as hair density.

[0087] The roots of the hair, i.e. the first centimetre from the scalp, present us with the clean parts of the hair fibre that have not undergone colour changes due to hair dyeing or environmental conditions. They are therefore a measure of a person's basic hair properties.

[0088] Images acquired in the root area show not only the hair, but also the scalp, which can vary greatly in color, oiliness and dandruff content. In addition, the hair fiber itself, especially in the root section, is translucent (causing the color to be dependent on the scalp background), and has a certain natural variability in both color and thickness. Currently, this diagnosis is performed manually by hairdressers, and despite their expertise and training, they are not always able to make an accurate estimate of all these features, especially under the non-standard lighting conditions of a hair salon.

[0089] Establishing accurate hair diagnostics at the root is a major challenge with huge implications for hair coloring, cosmetic personalization, and clinical assessment.

[0090] The method according to the present application will be described in detail for hair tone measurement, in particular natural hair tone measurement, but the method can be used more generally to determine other physical or chemical properties, depending on the properties the model is trained on.

[0091] Natural hair tone is a visual property of hair lightness / darkness and is related to hair melanin concentration. It is therefore constrained by the color space of hair colors that exist in nature. Traditionally, it is measured using a logarithmic scale, starting from 1 (for very dark hair) and going to 10 (for very light blonde).

[0092] Since the hair hues are classified into 10 categories, this problem can be solved as a classification problem. However, the accuracy of the color expert in making the hue assessment is 1 / 4 of the hair hue, so considering 1 to 10 categories will lose this accuracy in the category labels. Therefore, the problem has been solved as a regression problem, which assumes order and continuity between the hair hue values. Therefore, the method estimates and returns the real-valued hair hue.

[0093] Importantly with respect to the present method for assessing hair characteristics, the Hair Tone Scale is a perceptual linear scale representation that is suitable for use with the present method to return a numerical value (prediction) rather than the class itself (classification).

[0094] According to the present application, determining the natural hair color of a user comprises the following steps, the general order of which is as follows: Figure 1 shown.

[0095] First, an image I of the user's scalp 10 at the hair root 11 is captured using a camera device 20 forming a diagnostic unit. The camera device 20 is preferably handheld. The image I corresponds to an object (scalp) area of ​​about 12×17 mm. The image I is acquired by a 2000×1200 RGB CMOS sensor, but other kinds of high-resolution sensors may also be used.

[0096] Prior to acquisition, a line is drawn on the subject's head so that the view is not obstructed over the hair roots 11. The picture thus has an axis of symmetry about its middle and is generally oriented with the scalp 10 in the middle and more hair at the top and bottom.

[0097] This method is used to estimate an unbiased hair tone value h. However, this hair tone h cannot be directly read from the acquired images I, since these images present a mixture between the hair 11 and the scalp 10. Moreover, due to hair transparency, the color of the scalp affects the visible hair pixels.

[0098] Therefore, the image I data should be processed with the specific purpose of obtaining an accurate hair hue h. According to the present invention, the image data is processed by applying a machine learning model to the image before returning a numerical real-valued hair hue.

[0099] The machine learning model described below has been statistically trained using a training set of 11,175 images taken of 407 subjects. Each image was evaluated and labeled with the actual value of the desired attribute (the training process is generally similar to Figure 2 shown).

[0100] Hair tone estimation uses the following two methods, namely, colorimetric model and deep learning model based on convolutional neural network (CNN).

[0101] Colorimetric Model

[0102] The idea behind this method is to transform the imaging device into a colorimetric device that can provide standard color values ​​for hair and relate the standard color values ​​to the perceived properties of hair hue. The complete pipeline of this method is divided into Figure 3 The following three steps are shown.

[0103] First, the acquired image I is preprocessed by a segmentation step S. More precisely, the hair pixels of interest are segmented from the image. Then, the RGB values ​​of the segmented hair pixels are converted to the CIELAB color space and the fitted colorimetric model M estimates the hair hue based on the median L* value of the hair. Thus, this colorimetric method involves the use of two independent machine learning models applied sequentially to the image data: first, a machine learning model is applied for color space transformation, and then, a second machine learning model is applied for hair hue estimation based on the median hair L*.

[0104] Hair segmentation S is the first preprocessing step. The main purpose of this step is to convert the different RGB values ​​of the hair pixels into a single integer L*a*b* value. Therefore, instead of segmenting all the hair pixels in the image (which may introduce outliers), it is preferred to segment a sufficient number of hair pixels robustly to avoid specular reflections and other artifacts. The segmentation method is based on adaptive thresholding in order to segment the hair in the scalp area as much as possible. Before thresholding, a Gaussian filter is applied to reduce the noise in the image. Finally, the resulting hair regions are sorted by size using connected component analysis to eliminate detected smaller regions that may be specular reflections or other artifacts that were wrongly segmented as hair.

[0105] Then, the RGB values ​​are transformed into the CIELab color space by applying a machine learning model. More specifically, the camera device should be calibrated so that the device-dependent RGB values ​​are converted into a device-independent color space. The CIELAB color space is chosen for this conversion because it is relatively uniform in perception and is widely used in the industry.

[0106] There are various methods in the literature that provide L*a*b* measurements for hair. For the calibration process, the following model is recommended to estimate denoted as The L*a*b* value of each RGB pixel

[0107]

[0108] where φ(x) is a cubic polynomial of the RGB pixel value x (N=20), and C r are the corresponding coefficients, which are statistically learned by the machine learning model based on a set of K training pairs. These pairs are obtained by obtaining L*a*b* values ​​r with measurements. i For each block x acquired by the device i , we take the median RGB pixel to solve the regression problem:

[0109]

[0110] This is C r The closed form equation of ||·|| 2 Indicates L 2 Norm.

[0111] Once the hair pixels of interest are segmented, their RGB values ​​are converted to CIELAB space and the median L*a*b* value is kept. It has been noted that the perceived value that varies most significantly between different hair tones is lightness. To keep the model simple and avoid overfitting the data, the L* value is chosen as the value that is most correlated with hair tone. Using the training set, the L* value is selected as the value that is most correlated with hair tone. i and h i A one-dimensional cubic smoothing spline is obtained by fitting the L* of the hair tones. These L* and hair tone value pairs were calculated by averaging all corresponding images of a participant. We automatically chose the number of spline knots as the minimum number such that the following conditions were satisfied:

[0112]

[0113] The smoothing factor σ is set to 0.35 in order to ignore subtle variations along the hair tone range [1; 10].

[0114] In summary, hair color is predicted from a single input image I. We segment out a subset of robust hair pixels x in I. Then, using C r After φ(x) transforms each pixel x into L*a*b* space, we calculate the median L* value l(I) of these pixels. Finally, we apply the machine learning model to give the hair color:

[0115]

[0116] Convolutional Neural Networks

[0117] The idea behind this approach is to learn which patterns in the image are related to hair tone, without any prior assumptions about the patterns to be extracted. In contrast to previous colorimetric models designed to focus on the brightness of hair pixels, this second model has no prior knowledge specific to the problem. The optimization process is purely statistical and autonomously learns the patterns in image I to estimate the correct hair tone

[0118] The basic idea behind CNN is to apply consecutive linear operations (such as 3×3 convolutions) with nonlinear functions between them, and operations that reduce the spatial dimensionality of the image representation. This will produce a feature map of the image, which is a representation of the visual pattern. After stepwise regression, this representation is reduced to a single real-valued output, which will eventually be mapped to a label h during the training process. i .

[0119] All these operations are expressed as Figure 4 The successive layers of the network we propose for the present hair tinting application are shown. It has fewer convolutional layers than the prior art CNN models; this is because we are looking for simpler patterns (such as edges and thin fibers) and thus require fewer consecutive convolutions to be represented by the network.

[0120] The final dense layer also reduces since we have a 1D output Furthermore, residual connections were added to the architecture to facilitate optimization (direct links in backpropagation) and to expand the model representation with simpler patterns.

[0121] To do this, we add the output of some layers to the next layer, which is a lightweight operation that does not require additional weights. To increase speed, we use separable 2D convolutions as a lighter alternative to regular 2D convolutions. They have fewer parameters to learn and require less computation. The idea is to first apply 3×3 convolutions channel by channel (also called depthwise) (which is lighter than full convolutions), and then combine the resulting channels through 1×1 full convolutions. This variant of convolution will speed up the training process as well as embedded predictions on the device.

[0122] We now briefly explain the optimization process for this model to provide some intuition for how neural networks can learn relevant patterns for our problem. If we take a step back from the continuous operation, we see that our estimated hair hue can be written as

[0123]

[0124] Where g represents all the continuous operations of our neural network, and Θ is a vector that regroups all the variable parameters (i.e., convolution weights and dense layer weights). To find an appropriate value for Θ, we define the loss function This loss function is used to predict the value h far from the ground truth. In this case, we minimize the penalty for all images I in our dataset. i and hair tone i The mean square error

[0125]

[0126] Our strategy for solving this minimization problem is to iteratively update Θ using stochastic gradient descent:

[0127]

[0128] where ∈ is the learning rate, and is an approximation of the gradient over the entire dataset. In fact, for each update, the full gradient are too long to compute. Using backpropagation, the gradient can be computed efficiently for a minibatch of size m images. Θ is therefore updated in each minibatch by considering a moving average of the gradients

[0129]

[0130] where λ is the momentum and B is the set of indices i of the mini-batch -

[0131] Therefore, each mini-batch update of the weights is based on the history of gradients, not just the mini-batch gradients. Thus, a large variation can be introduced with small batches. In practice, we perform 800 passes over all samples of our dataset with a learning rate of ∈ = 10 -4 and used a momentum of λ=0:9. Finally, to further tune the parameter Θ, we performed 20 more passes on our dataset with the learning rate divided by 10. During each pass, each image Ii was randomly flipped horizontally and vertically in order to artificially augment our dataset. For our successive layers and optimization process, we used a Keras implementation based on the Tensorflow backend.

[0132] Although illustrated by two machine learning models (a colorimetric model and a convolutional neural network model), other machine learning techniques may also be used, the main aspect of this application is the use of statistical machine learning models instead of classical metrology, thereby using image analysis techniques to directly extract relevant parameters and actually perform measurements.

[0133] The returned real-valued features can then be used as arguments to further calculations or steps.

[0134] As a first possibility, real-valued characteristics may be used in the recommender, the method comprising the subsequent step of recommending cosmetic products based on said real-valued characteristics.

[0135] As a second possibility, instead of recommending an existing product, the real-valued property may be used to calculate or determine the composition of a cosmetic product based on a desired effect or result. More specifically, the method may include the step of calculating the proportions and / or amounts of components based on the ability of the real-valued property to vary so as to achieve the desired result. For example, if a user wishes to dye their hair to achieve a hair shade of 5 and their initial hair shade is 7, the method would include the step of calculating the amount of oxidant required to achieve that result.

[0136] The determined composition can then be manufactured on-site or off-site and distributed or delivered to the user accordingly.

[0137] It should be understood that aspects of the present invention may be embodied as a system, method or computer program product. Therefore, aspects of the present invention may take the form of a complete hardware embodiment, a complete software embodiment (including firmware, resident software, microcode, etc.) or an embodiment combining software and hardware. In addition, aspects of the present invention may also take the form of a computer program product embodied in one or more computer-readable media, and the one or more computer-readable media have a computer-readable program code embodied thereon.

[0138] Any combination of one or more computer-readable media can be utilized. Computer-readable media can be, for example, but not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer-readable storage media will include the following: electrical connections with one or more wires, portable computer disks, hard disks, solid-state hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, phase-change memory storage devices, or any suitable combination of the foregoing. In the context of this document, computer-readable storage media can be any tangible medium that can contain or store programs used by or in combination with instruction execution systems, devices, or equipment.

[0139] The computer program code for performing the operation for each aspect of the present invention can be written in any combination of one or more programming languages, such as object-oriented programming languages ​​(such as Java, Smalltalk, C++, etc.) or conventional program programming languages ​​(such as "C" programming languages ​​or similar programming languages). The program code can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the latter case, the remote computer can be connected to the user's computer by any type of network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider through the Internet). It should be understood that the ordinary technicians in the computer field can develop the software of the computer system of the embodiment of the present invention based on the functional description included in the specification and the flow chart shown in the accompanying drawings. Further, any reference to the software for performing various functions herein generally relates to a computer system or processor that performs those functions under software control.

[0140] The various functions of the computer system may be distributed in any manner among any number of software modules or units, processing systems or computer systems and / or circuit systems, which may be located locally or remotely from each other and communicate via any suitable communications medium (e.g., LAN, WAN, intranet, Internet, hardwire, modem connection, wireless, etc.).

[0141] More precisely, the method described in detail above is implemented into a system for determining at least one physical and / or chemical property of a keratin surface of a user, the system comprising an image sensor configured to acquire an image of a target keratin surface, the image data being transmitted to a processor configured to process the image data according to the method described above (i.e. by applying a machine learning model) and return a real-valued estimate of the property. Such a system forms a diagnostic unit.

[0142] The system is integrated into a portable camera device. In a first embodiment, the camera device comprises an image sensor and the image data is processed outside the camera device, in a remote processing unit. Advantageously, the image data is transmitted wirelessly. In an alternative embodiment, the system is fully integrated into the portable device, which means that the camera device also comprises the processing unit. In this way, the camera device can be used as an autonomous and / or real-time diagnostic unit directly outputting real-valued characteristics.

[0143] The system may include additional components, for example, in order to form a system for making personalized cosmetic products, in particular hair products, i.e. hair coloring products. To this end, the system comprises a diagnostic unit as described above and a dispensing unit configured to deliver the cosmetic product according to the characteristics obtained from the diagnostic unit. For a detailed description of the dispensing unit, reference may be made to the previously mentioned document US 9316580, the content of which is fully incorporated herein.

[0144] Thus, the system and method described in this application improves the overall automation of the personalization process. For hair treatments, and in particular hair coloring treatments, automation of the process is essential to facilitate the lives of hairdressers and equip them with tools that ensure precision, robustness and efficiency. Moreover, using such a device, we can go beyond human visual perception and provide an objective representation that does not vary from hairdresser to hairdresser and from one condition to another, in other words, a standardized representation.

[0145] The foregoing examples illustrate certain functions of embodiments of the present invention and are not intended to be limiting. In fact, after reading this disclosure, other functions and other possible use cases will be apparent to those skilled in the art.

Claims

1. A computer-implemented method for determining a user's hair color tone, the method comprising the steps of: - receiving data corresponding to at least one image of a keratin surface encoded in RGB or CMYK or another color space, said image illustrating a scalp area of ​​a user including hair, said image being an enlarged image taken at a magnification of 1:1 or higher, - applying a pre-processing segmentation step configured to identify at least one hair segment, - processing the image by applying a machine learning model to convert the color values ​​of at least one identified hair segment into the CIELAB color space, and then successively applying at least one second machine learning model trained accordingly to assess the hair shade from the median L* values ​​of the hair pixels - returning at least one numerical value corresponding to a rating of the property to be determined of the keratin surface.

2. The method according to claim 1, characterized in that The segmentation step is performed by comparative analysis.

3. The method according to claim 1, characterized in that The segmentation step is performed by applying a machine learning model to the image.

4. The method according to any one of claims 1 to 3, characterized in that The image is an RGB image.

5. The method according to any one of claims 1 to 4, characterized in that The method is repeated to determine a second property of the keratin surface, preferably using the same image data.

6. The method according to any one of claims 1 to 5, characterized in that The method includes the subsequent step of recommending a cosmetic product based on at least some of the real-valued characteristics.

7. The method according to any one of claims 1 to 5, characterized in that The method includes the subsequent step of determining a recommended cosmetic product composition based on at least some of the real-valued properties.

8. The method according to claim 7, characterized in that The method includes the subsequent steps of making and dispensing a cosmetic product according to the recommended composition.

9. The method according to any one of claims 1 to 8, characterized in that The area illustrated in the image is the root area of ​​the user's hair.

10. The method according to any one of claims 1 to 9, characterized in that The machine learning model is a pre-trained convolutional neural network.

11. A non-transitory computer storage medium storing computer usable instructions which, when used by a computing device, cause the computing device to perform the method of any one of claims 1 to 10.

12. A system for determining at least one physical and / or chemical property of a user's keratin surface, the system comprising an image sensor configured to acquire an image of the keratin surface and transmit the image data to a processor, the processor configured to process the image data according to the method described in any one of claims 1 to 11.

13. The system according to claim 12, characterized in that The system is at least partially integrated into a portable camera device.

14. The system according to claim 12, characterized in that The system includes a camera device including the image sensor, the camera device being configured to wirelessly transmit the image data to a remote processing device.

15. A system for making a personalized cosmetic product, the system comprising: A characteristic determination system according to any one of claims 12 to 14; and a dispensing unit configured to deliver a cosmetic product based on the characteristic obtained from the characteristic determination system.