Systems and methods for determining number of hairs on person
Patent Information
- Application Number
- PCT/CN2023/082165
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2024-09-26
Smart Images

Figure CN2023082165_26092024_PF_FP
Abstract
Description
A SYSTEM AND METHOD FOR DETERMINING THE NUMBER OF HAIRS ON A PERSONTECHNICAL FIELD
[0001] The present invention relates to a system and method for determining the number of hairs on a person. Preferably the present invention relates to a system and method for determining the number of hairs on a person’s scalp.BACKGROUND
[0002] Hair loss can often be quite a major concern when it comes to appearance for both men and women. Many people suffering from hair loss can often suffer from low self-esteem, lack of self-confidence and embarrassment due to hair loss. Hair loss can also adversely affect a person’s social life and relationships in many instances. Often hair loss can reduce the quality of life of many sufferers.
[0003] Hair loss i.e., balding can be stopped or slowed down if discovered at an early stage. In some cases, hair loss can be reversed if it is detected early enough and appropriate treatment is started. According to the American Academy of Dermatology hair loss is caused by a lack of certain key nutrients such as for example iron, protein, and zinc. There are a greater number of hair loss prevention approaches or methods available in an early stage. Some examples include changing diet or increasing nutrient supplements etc. Most people do not realise the severity of the problem until it is visible, which is often quite late, and the hair loss can be significant.
[0004] Healthiness of scalp and follicles are related to the density of hair. In healthy scalps, every follicle contains at least 2 to 3 hairs. Hair follicle miniaturisation can occur if the number of hairs per follicle is reduced. This can further increase the rate of hair loss.
[0005] There are currently not many tools that allow automated monitoring the amount of hair and / or scalp health. Often people suffering from hair loss are required to visit specialist doctors or facilities which can become expensive and time consuming.SUMMARY OF THE INVENTION
[0006] The present invention relates to a system and method for determining the number of hairs on a person. Preferably the present invention relates to a system and method for determining the number of hairs on a person’s scalp. The number of hairs on a person’s scalp can be indicative of scalp health. The system and method described herein may determine the number of hairs per follicle on a person’s scalp. The system and method as described may determine the number of hairs of different colours. The system and method as described herein may further determine the number of hairs on another part of a person’s body e.g., arms, legs or back.
[0007] In accordance with a first aspect of the present invention, there is provided a system for determining the number of hairs on a person’s head, the system comprising: an image capture device configured to capture one or more images of a person’s head, a computing apparatus in communication with the image capture device, the computing apparatus comprising a processing unit, a memory unit, and a user interface the computing apparatus configured to: receive one or more images of a person’s head from the image capture device, identify one or more hairs in the one or more images, determine the number of hairs on a person’s head based on the identified hairs in the one or more images.
[0008] In an embodiment of the first aspect, the computing apparatus is configured to present the number of hairs on a person’s head on the user interface.
[0009] In an embodiment of the first aspect, the image capture device is configured to capture at least a trichoscopic image.
[0010] In an embodiment of the first aspect, the computing apparatus is configured to: assess if the received image is a trichoscopic image based on if the person’s scalp and hair are clearly visible in the image, filter images that are not a trichoscopic images.
[0011] In an embodiment of the first aspect, the computing apparatus is configured to detect and identify one or more follicles within each captured image.
[0012] In an embodiment of the first aspect, the computing apparatus is configured to process each received trichoscopic image by applying a follicle detection model to the image to identify each follicle visible within the image.
[0013] In an embodiment of the first aspect, the computing apparatus is configured to crop each received trichoscopic image into one or more sub images based on each of the follicles identified by the follicle detection model.
[0014] In an embodiment of the first aspect, the computing apparatus is configured to crop each received trichoscopic image into multiple sub images such that each sub image includes only a single follicle within it.
[0015] In an embodiment of the first aspect, the computing apparatus is configured to sum the number of sub images and the number of sub images corresponds to the number of follicles identified by the follicle detection model.
[0016] In an embodiment of the first aspect, the computing apparatus is configured to: apply a hair segmentation model to each of the one or more sub images, identify each hair within each of the one or more sub images.
[0017] In an embodiment of the first aspect, the computing apparatus is configured to label each of the identified hair within each of the sub images.
[0018] In an embodiment of the first aspect, the computing apparatus is configured to classify each identified hair into different colours.
[0019] In an embodiment of the first aspect, the computing apparatus is configured to: determine the number of hairs in each sub image based on the identified hair, and; determine a total number of hairs on a person’s head by summing the number of hairs in each sub image.
[0020] In an embodiment of the first aspect, the computing apparatus is configured to determine the frequency of hairs per follicle based on summing the number of hairs present in each sub image.
[0021] In an embodiment of the first aspect, the computing apparatus is configured to: determine the number of hairs of different colours in each sub image, and; determine a total number of hairs of different colours on a person’s head by summing the number of hairs of different colour.
[0022] In an embodiment of the first aspect, the computing apparatus is configured to determine the distribution of follicles with different number of hairs based on the identified number of follicles and the identified number of different hairs.
[0023] In an embodiment of the first aspect, the computing apparatus is configured to present the number of hairs of different colours and / or the distribution of follicles with different number of hairs on the display.
[0024] In an embodiment of the first aspect, the computing apparatus is configured to: determine a quantitative parameter or a qualitative parameter representative of a person’s scalp health based on any one or more of: the total number of hairs on a person’s head, the number of hairs of different colours, the frequency of hairs per follicle and the distribution of follicles with different number of hairs, and present the quantitative or qualitative parameter representative of a person’s health on the user interface and / or transmit the quantitative or qualitative parameter to a remote device.
[0025] In an embodiment of the first aspect, the computing apparatus is configured to identify one or more treatments based on the person’s scalp health and present the identified one or more treatments to the person on the user interface.
[0026] In an embodiment of the first aspect, the follicle detection model comprises a DenseNet model or CSPNet model or a combination of both.
[0027] In an embodiment of the first aspect, the follicle detection model comprises at least three parts: the model backbone, model neck, and model head, wherein the model backbone comprises the DenseNet model and the CSPNet model, the model neck is configured to apply feature pyramids to identify follicles in different positions in the one or more captured images, the model head is configured to generate bounding boxes about each follicle identified in the one or more received images.
[0028] In an embodiment of the first aspect, the computing apparatus is configured to determine the difference between a follicle and scalp on a person based on the difference of shape and / or colour of the follicle as compared to the scalp.
[0029] In an embodiment of the first aspect, the hair segmentation model is configured to process each pixel of each sub image and only pixels that include a hair are labelled.
[0030] In accordance with a second aspect of the present invention, there is provided a method of for determining the number of hairs on a person’s head, the method comprising the steps of: receiving one or more images of a person’s head processing the received one or more images by applying a follicle detection model to the received images to identify one or more follicles within the received images, cropping each received image and generating one or more sub images based on the detected follicles, wherein each sub image comprises a single identified follicle, processing each sub image by applying a hair segmentation model to identify one or more hairs within each sub image labelling each identified hair within each sub image, determining the number of hairs on a person’s head based on the number of labelled hair in all the sub images.
[0031] In an embodiment of the second aspect, the number of hairs on a person’s head are calculated by summing the number of hairs in each sub image.
[0032] In an embodiment of the second aspect, the method further comprises the additional step of processing each received trichoscopic image by applying a follicle detection model to the image to identify each follicle visible within the image.
[0033] In an embodiment of the second aspect, the method further comprises the additional step of cropping each received trichoscopic image into one or more sub images based on each of the follicles identified by the follicle detection model.
[0034] In an embodiment of the second aspect, the method further comprises cropping each received trichoscopic image into multiple sub images such that each sub image includes only a single follicle within it.
[0035] In an embodiment of the second aspect, the method further comprises the additional steps of: applying a hair segmentation model to each of the one or more sub images, identifying each hair within each of the one or more sub images.
[0036] In an embodiment of the second aspect, the method further comprises the step of labelling each of the identified hair within each of the sub images.
[0037] In an embodiment of the second aspect, the method further comprises the step of classifying each identified hair into different colours.
[0038] In an embodiment of the second aspect, the method comprises the steps of: determining the number of hairs in each sub image based on the identified hair, and; determining a total number of hairs on a person’s head by summing the number of hairs in each sub image.
[0039] In an embodiment of the second aspect, the method comprises the step of determining the frequency of hairs per follicle based on summing the number of hairs present in each sub image.
[0040] In an embodiment of the second aspect, the method comprises the steps of: determining the number of hairs of different colours in each sub image, and; determining a total number of hairs of different colours on a person’s head by summing the number of hairs of different colour.
[0041] In an embodiment of the second aspect, the method comprises the step of determining the distribution of follicles with different number of hairs based on the identified number of follicles and the identified number of different hairs.
[0042] The method comprising the steps of: determining a quantitative parameter or a qualitative parameter representative of a person’s scalp health based on any one or more of: the total number of hairs on a person’s head, the number of hairs of different colours, the frequency of hairs per follicle and the distribution of follicles with different number of hairs, and presenting, on user interface, the quantitative or qualitative parameter representative of a person’s health on the user interface and / or transmitting the quantitative or qualitative parameter to a remote device.
[0043] The system and method described herein is advantageous because it can be used to automatically count the number of hairs on a person’s head. The system and method allow for quick and efficient counting of the number of hairs on a person’s head. The system described herein is a non-invasive system to determine the number of hairs on a person’s head by analysing one or more images of a person’s head. The system is advantageous because it does not require complex and expensive machines to determine the number of hairs on a person’s head. The system described herein further provides a simple to use, non-invasive instrument to determine the number of hairs of different colours on a person’s scalp.
[0044] The system provides a tool for monitoring a person’s scalp health in an automated manner by determining the number of hairs on a person’s scalp and / or the number of hairs of different colours. The system allows for an easy to use and requires minimal human intervention making the system simple and easy to use.
[0045] The term “comprising” (and its grammatical variations) as used herein are used in the inclusive sense of “having” or “including” and not in the sense of “consisting only of” .BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Embodiments of the system and method for determining the number of hairs will now be described, by way of example, with reference to the accompanying drawings in which:
[0047] Figure 1 illustrates an example system for determining the number of hairs on a person’s head;
[0048] Figure 2 is a high-level block diagram of a computing apparatus of the system of Figure 1;
[0049] Figure 3 illustrates a high-level block diagram of a method for determining the number of hairs on a person’s head;
[0050] Figure 4 illustrates another example method for determining the number of hairs on a person’s head;
[0051] Figure 5 illustrates an example trichoscopic image;
[0052] Figure 6 illustrates an example of a sub image with a single hair follicle;
[0053] Figure 7 illustrates an example sub image, as per Figure 6, with a labelled hair.
[0054] Figure 8 illustrates a method of determining scalp health using the number of hairs.
[0055] Figure 9 illustrates a method for training a follicle detection model;
[0056] Figure 10 illustrates a illustrates an example of a labelled image used to train the follicle detection model;
[0057] Figure 11 illustrates a method of training the hair segmentation model;
[0058] Figure 12 illustrates an example table of the different hair colours that may be displayed on the user interface;
[0059] Figure 13 illustrates an example graph of a proportion of follicles with different number of hairs.
[0060] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0061] The present invention relates to a system and method for determining the number of hairs. One measure of scalp health is the number of hairs (i.e. quantity of hairs) on the scalp and / or colour of the hairs on a person’s scalp. Further scalp health may further include determining the number of hairs in each follicle and / or the colour of hairs in each follicle.
[0062] Referring to Figure 1, an example of the present invention is illustrated. This embodiment is arranged to provide a system 100 for determining the number of hairs on a person’s head. The system 100 comprising: an image capture device 110 configured to capture one or more images of a person’s head, a computing apparatus 200 in communication with the image capture device. The computing apparatus 100 comprising a processing unit, a memory unit, and a user interface the computing apparatus is configured to: receive one or more images of a person’s head from the image capture device, identify one or more hairs in the one or more images, determine the number of hairs on a person’s head based on the identified hairs in the one or more images. The computing apparatus is configured to present the number of hairs on a person’s head on the user interface.
[0063] Referring to Figure 1, the image capture device 110 may be a suitable camera. The camera may be a high-definition camera. The camera may be a single lens camera or may be a stereo camera. The system 100 may comprise a single device that includes an integrated camera 110 and computing apparatus 200. The image capture device 110 may preferably be a trichoscope i.e., a camera with sufficient zoom and resolution to capture trichoscopic images. Optionally, the trichoscope may be a removable attachment that can be coupled to the image capture device 110 to allow the image capture device 110 (e.g., camera) to capture trichoscopic images.
[0064] A trichoscopic image is an image i.e., a photo in which the scalp and hair can be clearly seen. Trichoscopic images are used to diagnose hair and scalp diseases. The trichoscopic images captured by the image capture device 110 are processed by the computing apparatus 200 to determine the number of hairs on a person’s head.
[0065] The system 100 performs trichoscopy and is used to diagnose scalp health. In particular, the system 100 is used to perform trichoscopy and determine the number of hairs on a person’s head. The computing apparatus 200 is configured to determine one or more of: the number of hairs on a person’s head, the number of hairs of different colours, the frequency of hairs per follicle and the distribution of follicles with different number of hairs. The computing apparatus is further configured to determine a quantitative parameter, or a qualitative parameter representative of a person’s scalp health based on any one or more of: the number of hairs on a person’s head, the number of hairs of different colours, the frequency of hairs per follicle and the distribution of follicles with different number of hairs. Optionally the computing apparatus may be configured to present the quantitative or qualitative parameter representative of a person’s scalp health or hair health on the user interface and / or transmit the quantitative or qualitative parameter to a remote device.
[0066] In this example embodiment, the system 100 may comprise a smartphone and tablet. The smartphone or tablet 100 may comprise an integrated computing apparatus 200 and camera 110. As shown in Figure 2, the system 100 comprises a smartphone that includes an integrated image capture device 110 (i.e., a camera) and computing apparatus 200. The camera 110 and computing apparatus 200 may be integrated into a single casing 114 and may form a single device.
[0067] Alternatively, the computing apparatus 200 (i.e., computer or computing device or computing system or computer server) may be separate from the camera 110 (i.e., image capture device) . The computer apparatus 200 may be implemented by any computing architecture, including portable computers, tablet computers, stand-alone Personal Computers (PCs) , smart devices, Internet of Things (IOT) devices, edge computing devices, client / server architecture, “dumb” terminal / mainframe architecture, cloud-computing based architecture, or any other appropriate architecture. The computing apparatus 200 is preferably in communication with the image capture device 110 and is configured to receive images from the image capture device 110. The computing apparatus 200 may be appropriately programmed to perform a method of for determining the number of hairs on a person’s head.
[0068] In this embodiment, the system and method are arranged to help a clinician assess scalp health and / or diagnose hair or scalp diseases. The system 100 and method are used to determine the number of hairs on a person’s head or determine the number of hairs of different colours or determine other number parameters, that can be used to assess scalp health or hair health. These number measures may also be useful in determining the presence of hair or scalp diseases.
[0069] Figure 2 illustrates a high-level block diagram of a computing apparatus 200 which is arranged to be implemented as part of a system 100 for determining the number of hairs on a person’s head. In the illustrated form of Figure 2, the computing apparatus 200 is part of a smartphone and may be integrated into a single casing 114. The smartphone may define the entire system 100. Alternatively, the computing apparatus 200 may be a separate device from the image capture device 110.
[0070] In the illustrated example, the computing apparatus 200 includes suitable components necessary to receive, store and execute appropriate computer instructions. The components may include a processing unit 202, including one or more of a Central Processing Unit (CPU) , a Math Co-Processing Unit (Math Processor) , a Graphic Processing Unit (GPUs) or a Tensor processing unit (TPUs) for tensor or multi-dimensional array calculations or manipulation operations. The computing apparatus 200 may comprise multiple processing units 202 to provide additional processing capacity or faster processing.
[0071] The computing apparatus comprises at least memory unit to store information and store executable instructions that the processing unit 202 can execute. In the illustrated example, the computing apparatus 200 comprises a read-only memory (ROM) 204, random access memory (RAM) 206, and input / output devices such as disk drives 208, input devices 210 such as an Ethernet port, a USB port, etc.
[0072] The computing apparatus may further comprise a user interface 212 to present information to a user and / or receive inputs from the user. In the illustrated example the user interface 212 includes a display 212 such as a liquid crystal display, a light emitting display or any other suitable display. The display 212 may comprise a touchscreen interface to allow a user (i.e., person) to input information.
[0073] The server 200 (i.e., computing apparatus 200) may include instructions that may be included in ROM 204, RAM 206 or disk drives 208 and may be executed by the processing unit 202. There may be provided a plurality of communication links 214 (i.e., communication modules 214) which may variously connect to one or more remote devices or computing devices such as a server, personal computers, terminals, wireless or handheld computing devices, Internet of Things (IoT) devices, smart devices, edge computing devices. At least one of a plurality of communications link may be connected to an external computing network through a telephone line or other type of communications link. For example, the computing apparatus 200 may include a cellular module, a Bluetooth module and a Wi-Fi module to allow the computing apparatus 200 to communicate with remote devices using a suitable communication protocol and communication network e.g., 4G, 5G, RAZR, Bluetooth, Wi-Fi etc.
[0074] The computing apparatus 200 may include storage devices such as a disk drive 208 which may encompass solid state drives, hard disk drives, optical drives, magnetic tape drives or remote or cloud-based storage devices. The computing apparatus 200 may use a single disk drive or multiple disk drives, or a remote storage service. The computing apparatus 200 may also have a suitable operating system which resides on the disk drive or in the ROM of the computing apparatus 200.
[0075] The computing apparatus 200 may also provide the necessary computational capabilities to operate or to interface with a machine learning model or a machine learning networks, such as a neural networks or deep learning networks or support vector machines, to provide various functions and outputs. The neural network may be implemented locally, or it may also be accessible or partially accessible via a server or cloud-based service. The machine learning network may also be untrained, partially trained or fully trained, and / or may also be retrained, adapted or updated over time.
[0076] In the illustrated example the computing apparatus 200 is programmed to use one or more deep neural networks. The computing apparatus 200 may implement a follicle detection model and a hair segmentation model (i.e., hair detection model) . The follicle detection model and a hair segmentation model are deep learning models i.e., deep learning networks. In one example the follicle detection model and hair segmentation model may comprise a DenseNet model or CSPNet model or a combination of both.
[0077] As shown in Figure 1, the system 100 may comprise an optional remote device 112. The system may comprise multiple remote devices 112, each remote device may be configured for a different purpose. For example, the system 100 may optionally comprise remote servers 112. Each server 112 may be programmed to execute a machine learning model to process the images. The processing of the images to identify hairs on a person’s head may be performed at remote servers 112 and transmitted back to the computing apparatus 200 and presented to the user. In one form, the computing apparatus 200 may comprise the remote servers 112, arranged remotely and in communication with the processor 202 via the communication link 214.
[0078] Optionally, the computing apparatus 200 may further comprise one or more databases to store various types of data. For example, the computing apparatus may comprise an images database 220 that is configured to store multiple captured trichoscopic images of a person’s head.
[0079] The computing apparatus 200 may further comprise a user database 222. The user database 222 may store information of a user i.e., a person that uses the system 100. Some example information can include name, date of birth, age, gender, ethnicity, medical history. Additionally, the user database 222 may also store relationships between the user and trichoscopic images that relate to a particular user. Optionally the databases may be stored at a remote server 112.
[0080] The computing apparatus 200 may also optionally include one or more training datasets stored in one or more datasets. The training datasets can be used to train the one or more machine learning models. The training datasets may be updated regularly or may be expanded to include additional data. In one example, the images of each new user may also be included in the training datasets. New training datasets can also be added and stored in appropriate databases. All the databases may be stored locally on a memory unit of the computing apparatus or may be stored in a remote storage system e.g. a cloud storage system. In the case or remote storage, the computing apparatus can call on data as needed.
[0081] In this embodiment, the system 100 is arranged to perform the steps of a method for determining the number of hairs on a person’s head. The system 100 and its components are arranged to perform the various method steps. Figure 3 illustrates a high-level block diagram of a method for determining the number of hairs on a person’s head.
[0082] Referring to Figure 3, the method 300 for determining the number of hairs on a person’s head commences at step 300. Step 302 comprises capturing, by the image capture device 110, one or more trichoscopic images. Step 304 comprises identifying one or more hairs in the one or more images at the computing apparatus 200.
[0083] Step 306 comprises determining the number of hairs on a person’s head based on the identified hairs in the one or more images by the computing apparatus.
[0084] Step 308 comprises displaying the number of hairs on a person’s head on a display 212. The method may optionally comprise the step of determining scalp health or diagnosing a scalp disease or hair disease based on the number of identified hairs. Hairs may be identified by one or more machine learning models that are trained to for object recognition, more specifically detecting i.e., identifying hair in the images.
[0085] In one example multiple images of a person’s head may be captured and processed as per method 300 to determine the total number on a person’s head. Each captured image may be processed by at least steps 302 and 304 to identify hairs on a person’s head. Step 306 may sum the total number of hairs on a person’s head by summing the identified in each of the captured images. Step 308 may display the total number of hairs counted on a person’s head.
[0086] Alternatively, a single image of a person’s entire head may be captured. Method 300 may process this single image to identify hairs on a person’s head and determine the total number of hairs on a person’s head.. Step 308 may display the total number of hairs counted on a person’s head.
[0087] Figure 4 illustrates an example method 400 for determining the number of hairs on a person’s head. The method 400 may be implemented by the system 100. For example, the method may be executed by the smartphone 100. This allows a person to determine the number of hairs on their own head by using the system 100 (i.e., the smartphone) . The system 100 being implemented as a smartphone makes usability simpler for a person or a clinician due to the wide availability of smartphones and small form factor. The system 100 may comprise an app executing on the computing apparatus 200 defining instructions of method 400.
[0088] Referring to Figure 4, the method 400 commences by a user e.g., a person or clinician starting the camera. Step 402 comprises capturing one or more images. The images are preferably trichoscopic images captured by the image capture device 110. In one example implementation a user may capture multiple trichoscopic images of different parts of the person’s head.
[0089] Figure 5 illustrates an example trichoscopic image 500 (i.e., a trichoscopic photo) that is captured by the image capture device 110. The computing apparatus 200 is configured to receive one or more trichoscopic images 500 captured by the image capture device 110. The image capture device 110 may be configured to capture multiple trichoscopic images from different angles. The multiple images together define the person’s whole head. As can be seen in Figure 5, the person’s hair 504 and scalp 502 are clearly visible in the trichoscopic image 500 (i.e., trichoscopic photo) .
[0090] Step 404 comprises applying a follicle detection model to the one or more received trichoscopic images. The one or more trichoscopic images are fed into the follicle detection model and the model is programmed to identify each follicle visible within the image. The follicle detection model is trained to detect each visible follicle within each trichoscopic image. The processor unit 202 may be programmed to execute the follicle detection model. Appropriate libraries corresponding to the follicle detection model may be stored on a memory unit of the computing apparatus 200. The libraries can be accessed by the processing unit 202 when executing the follicle detection model.
[0091] The follicle detection model may be a machine learning model that is trained to detect one or more follicles from images that are fed into the model. In one example, the follicle detection model comprises a DenseNet model or CSPNet model or a combination of both.
[0092] In one example the follicle detection model comprises three parts: the model backbone, model neck, and model head. The model backbone comprises the DenseNet model and the CSPNet model. The model neck is configured to apply feature pyramids to identify follicles in different positions in the one or more captured images. The model head is configured to generate bounding boxes about each follicle identified in the one or more received images. The bounding boxes may be defined in a coordinate system by coordinates for each of the corners.
[0093] The computing apparatus 200 is configured to determine the difference between a follicle and scalp on a person based on the difference of shape and / or colour of the follicle as compared to the scalp. For example, the follicle detection model may be trained detect a follicle that is generally more yellowish than the scalp.
[0094] Step 406 comprises cropping each received trichoscopic image into multiple sub images such that each sub image includes only a single follicle within it. The follicle detection model is configured to output the cropped images. The follicle model is configured to crop each trichoscopic image into multiple sub images. Each sub image includes only a single follicle within it. The computing apparatus 200 is configured to utilise the follicle detection model to output cropped sub images. The sub images are cropped along the bounding boxes.
[0095] Figure 6 illustrates an example of a sub image 600. The sub image 600 includes a follicle 602. The sub image is cropped around the detected follicle 602. The computing apparatus 200 is configured to generate multiple sub images, each with only one follicle in it. The computing apparatus 200 may optionally perform step 408. In optional step 408, the computing apparatus may be configured to determine the number of follicles on a person’s head. The computing apparatus 200 may be configured to sum the number of sub images to determine the total number of follicles, since the number of sub images corresponds to the number of follicles identified by the follicle detection model. The computing apparatus may be configured to skip step 408 or may be configured to carry on with the method 400 or return to step 402 from step 408.
[0096] Referring to Figure 4, the method 400 comprises step 410 after step 406. Step 410 comprises applying a hair segmentation model to each of the one or more sub images 600. Step 412 comprises identifying each hair within each of the one or more sub images. Each sub image is fed into the hair segmentation model. The hair segmentation model is trained to identify one or more hairs within each sub image. Appropriate libraries related to the hair segmentation model may be stored in a memory unit of the computing apparatus. The libraries can be called and executed when the processing unit 202 executes the hair segmentation model.
[0097] At step 414 the computing apparatus is configured to label each of the identified hair within each of the sub images. The output of the hair segmentation model is sub images with each hair in the sub image being labelled by an appropriate indica. Figure 7 illustrates an example sub image 600 with a labelled hair. Each hair in the image may be labelled with a different colour or a unique symbol or code or other suitable indicia. As shown in Figure 7, the sub image the single hair 702 is labelled in a first colour.
[0098] The hair segmentation model is configured to process each pixel of each sub image and only pixels that include a hair are labelled. The hair segmentation may be a suitable machine learning model that is trained to detect one or more hairs in each sub image.
[0099] The method 400 can branch off to provide one or more outputs. The outputs may be the number of different coloured hair or the distribution of follicles with different number of hairs or the total number of hairs on a person’s head.
[0100] Step 416 comprises determining the number of hairs in each sub image. The number of hairs is determined by counting or summing the number of labelled hair. Step 418 comprises determining the total number of hairs on a person’s head. At step 418 the computing apparatus is configured to determine the total number of hairs on a person’s head by summing i.e., counting the numbers of hairs in all sub images.
[0101] At step 420 the computing apparatus 200 is configured to classify each identified hair into different colours. The computing apparatus 200 may be configured to classify each labelled hair in each sub image. For example, hairs may be classified as black hair, white hair and other colours. The computing apparatus 200 may be configured to classify the hairs in the sub image into multiple colour categories e.g. blonde, brown, red, grey, white, black etc. At step 422 the computing apparatus 200 is configured to determine the number of hairs of different colour in each sub image. At step 424 the computing apparatus is configured to determine a total number of hairs of different colours on a person’s head by summing the number of hairs of different colour across all the sub images.
[0102] Optionally the computing apparatus may perform step 426. At step 426 the computing apparatus is configured to determine the frequency of hairs per follicle based on counting or summing the number of hairs present in each sub image. Each sub image corresponds to a single follicle, and therefore the number of hairs in each sub image relates to the frequency of hairs per follicle.
[0103] At step 428 the computing apparatus is configured to determine the distribution of follicles with different number hairs. The computing apparatus 200 is configured to determine the distribution of follicles with different number of hairs based on the identified number of follicles and the identified number of different hairs. The computing apparatus 200 is configured to determine the different number of hairs in each sub image. The computing apparatus 200 is then configured to sum the number of sub images that one or more hairs. The number of sub images represents the distribution of follicles with different number of hairs since each sub image corresponds to a single follicle.
[0104] Steps 416 to 428 may be performed by a suitable machine learning model. In one example the model may be a counting model trained to count the classified hair. Alternatively, the computing apparatus may be configured to execute a counting program that takes the identified and classified hair as an input and determines one or more of: the total number of hairs on a person’s head or the frequency of hairs per follicle or distribution of follicles with different number hair or total number of different coloured hair on a person’s head.
[0105] In another example form the hair segmentation model may be configured to execute steps 416 to 428. In one example the hair segmentation model may also comprise a DenseNet model or a CSPNet model or a combination of both.
[0106] Step 430 comprises presenting on the display 212 a parameter related to hairs on a person’s head. For example, step 430 comprises presenting, on the display 212, one or more of: the number of hairs of different colours, the total number of hairs on a person’s head, the frequency of hairs per follicle or distribution of follicles with different number of hairs. The method steps may be repeated.
[0107] Figure 12 illustrates an example table of the different hair colours that may be displayed on the user interface 212. The information may be presented in any suitable format. As shown in Figure 12, the user interface 212 may display each sub image number and the specific number of coloured hair per sub image. Alternatively, the display 212 may present the total number of different coloured hair on the person’s scalp.
[0108] Figure 13 illustrates an example graph of a proportion of follicles with different number of hairs. This information of Figure 13 may be presented on the user interface 212. Additionally, or alternatively, the frequency of follicles with different number of hairs may be presented on the user interface 212. In the illustrated example a bar graph is presented. Other formats may also be utilised to display data.
[0109] Figure 8 illustrates a method of determining scalp health 800. The method 800 is executed by the system 100. Steps of method 800 may be executed by the computing apparatus 200. Step 802 comprises determining a quantitative parameter or a qualitative parameter representative of a person’s scalp health. The quantitative or qualitative parameter may comprise any one or more of: the number of hairs on a person’s head, the number of hairs of different colours, the frequency of hairs per follicle and the distribution of follicles with different number of hairs. Step 804 comprises presenting the quantitative or qualitative parameter representative of a person’s health on the user interface 212. Optionally, the method 800 may comprise step 806. Step 806 comprises transmitting the quantitative or qualitative parameter to a remote device, e.g. a remote server 112. Step 808 comprises identifying one or more treatments based on the person’s scalp health. Step 810 comprises presenting the identified one or more treatments to the person on the user interface 212.
[0110] The follicle detection model and the hair segmentation model are pretrained models. The models may be trained with labelled data and may be programmed for supervised learning. Alternatively, the two models may be programmed to learn in an unsupervised manner.
[0111] Figure 9 illustrates a method 900 for training a follicle detection model. The follicle detection model may be trained at regular intervals with additional data. For example, each new set of photos captured may be stored and used to train or update the model.
[0112] Referring to Figure 9, step 902 comprises receiving one or more trichoscopic images. Step 904 comprises preparing a training data set. The training data set comprises multiple labelled trichoscopic images. The received trichoscopic images are labelled. Each follicle is labelled. Optionally each hair may also be labelled. During labelling bounding boxes are created around each target object, i.e., a bounding box is created around each follicle. The bounding box closely surrounds a follicle. The coordinates and / or class of the bounding box will be saved. Labelled trichoscopic images are used as the training data set. The coordinates can be saved in the follicle detection i.e., object detection model.
[0113] Figure 10 illustrates an example of a labelled image 1000. The labelled image 1000 is a trichoscopic image with follicles 1002 and hair 1004. The labelled image 1000 includes bounding boxes 1006. The bounding boxes 1006 surround each follicle. Each bounding box 1006 is defined by four dots that define the four corners of the bounding box.
[0114] Step 906 comprises model fitting. Step 906 comprises fitting the trichoscopic photos as inputs and the labels as expected outputs into the follicle detection model (i.e., object detection model) . The model is fitted and trained for epochs and best weights are generated with minimal loss.
[0115] Step 908 comprises evaluation of the results. Step 908 may comprise evaluation of the outputs. The training results are evaluated with several indices, including but not limited to object loss and the mean average precision. The output of step 908 is the trained follicle detection model. The method 900 may be repeated until the follicle detection model can accurately detect follicles in new images.
[0116] The follicle detection model may be a deep neural network (DNN) . A deep neural network is used since a DNN can perform object detection fast and accurately. A DNN takes labelled images as inputs and performs training with adjustable hyperparameters. The network outputs the weights with the highest accuracy during training. The follicle detection model may comprise a multi-layer design. In one example form, the model comprises hidden layers between the input and output layer.
[0117] The model may be divided into three main parts: model backbone, model neck and model head. “Model Backbone” extracts the features from the image when the image is being transformed to different resolutions through the pooling layer in DNN (or a convolution neural network) . “Model Neck” gets the features extracted by model backbone and generalize the model to recognize in the images of different resolutions. “Model Head” predicts the positions and classes of the objects by the features extracted in model backbone.
[0118] The model backbone may include one or more networks, for example CSPNet and DenseNet. In one example the model backbone of the follicle detection model utilises a CSPNet and DenseNet networks. CSPNet is advantageous because it reduces the number of parameters in extracting features. This can make the model more efficient. Feature pyramids are used as the model neck to help generalising the model so that the model can identify ab object (e.g., a follicle) in different positions of the image. This again helps to improve performance and output of the follicle detection model. The model head is configured to generate the bounding boxes and position the bounding boxes around an object (e.g., a follicle) . The model head arrangement helps improve accuracy of the follicle detection model, and helps to improve the probability of having correctly identified object inside the box.
[0119] There are differences between follicles and scalp. Usually, follicles generally appear more yellowish than the scalp, and appear circular in shape. This difference is used to label follicles to prevent the follicle detection model from wrongly recognising the scalp as a follicle.
[0120] To improve mean average precision and avoid overfitting, hyperparameters are adjusted. Overfitting is not ideal. Overfitting means the model recognises the noise instead of the desirable objects (i.e., follicles) . Hyperparameters are variables that control the machine learning process. The learning rate and weight decay are adjusted after each training to obtain a smoother curve in loss. For example, after each time method 900 is performed, the learning rate and weight decay may be adjusted. Learning rate determines the size of the step after each epoch. A smaller learning rate means a smaller change to the weights through the loss function. Weight decay servers to prevent the weights from getting too large.
[0121] In training the follicle detection model, a function called hyperparameters evolution can be utilised to optimise the hyperparameters by trails. By trying different combinations of hyperparameters with self-defined epochs and iterations, hyperparameters with the best performance will be given. This again improves the training of the follicle detection model. By using hyperparameters evolution and trying different hyperparameters, overfitting can be stopped. Further a steadier increase in the mean average precision during the training can be attained. The follicle detection model may be trained as described earlier.
[0122] Figure 11 illustrates a method of training the hair segmentation model 1100. The hair segmentation model is used to identify hairs in each sub image. Referring to Figure 11, the training method 1100 commences at step 1102. Step 1102 comprises a data preparation step. At step 1102 cropped images (i.e., sub images) are labelled to identify follicles and hairs. In this stage only pixels that correlate to a hair are labelled. The training data consists of sub images i.e., cropped photos with only a single follicle per photo, similar to Figure 6.
[0123] Step 1104 comprises the step of fitting the model to the input data. In one example to fit the model the hair is identified and defined by a polygon.
[0124] Masks of the sub images are the expected outputs of the hair segmentation model. To create masks, the hairs of different colours are labelled by an indicia such as for example a polygon. The coordinates of the polygons are recorded. If the polygons belong to the same class they appear in the same colour in the mask, e.g. as shown in Figure 7. Backgrounds of the masks are given the same colour.
[0125] The hair segmentation model may comprise a three part model too. The hair segmentation model may use CSPNet and DenseNet. Preferably the model neck of the follicle detection model and the bottom layer of the feature pyramid network of the follicle detection model is used as the input for the hair segmentation model. Semantic segmentation is used to associate pixels in the image to the target class e.g., black hair and white hair, or other hair colours. The hair segmentation model reduces noise and false identification of hairs since it does not use large bounding boxes, that can often include noise. The model labels each hair with a polygon around the hair. The distance between the ground truth and the predicted box are considered in the loss function.
[0126] By fitting the follicle photos as inputs (i.e., using the sub images with a single follicle visible) as inputs and masks as outputs, the parameters of the hair segmentation model are optimised to reduce loss. The weights that perform the best are kept, while weights that generate noise or a sub-par result may be discarded.
[0127] Step 1106 comprises evaluating the model to determine the accuracy of the model. The evaluation step can be used to determine if the model is well trained. The results of training the hair segmentation model may be evaluated with the same standard as the follicle detection model.
[0128] The system 100 as described herein is advantageous because it allows a user e.g. a clinician or hair technician etc. to determine scalp health based on the number of hairs detected. The system is an easy to use automated and non-invasive system.
[0129] Hair strands are often densely located. Further the density of hair strands can vary from person to person. The image can be crowded with hair strands. Counting hairs in normal images can be time consuming and error prone. The system 100 provides a tool to count the number of hairs on a person’s head. To deal with overlapping hair strands, the system 100 only counts the hairs originating from follicles but not hairs that appeared in the image. As the hair strands grow from corresponding follicles, the number of hair strands are related to the number of follicles.
[0130] The system 100 reduces noise and provides a more accurate output since it does not count hair stands that begin from follicles outside the image. The system 100 described herein is advantageous because the computing apparatus first detects follicles which are distinguishable. Once the positions of follicles are obtained the hair stands growing out of each follicle can be counted. Counting hairs that start at a follicle reduces double counting and improves the results.
[0131] The system 100 as described herein also allows for a simple, cost effective, non-invasive and accurate tool for monitoring the amount of hair on a person’s head. The system also allows monitoring of scalp health and other parameters that can be indicative of scalp health. The system 100 allows users to self-diagnose and seek appropriate treatment for hair loss or other similar issues. The system 100 also allows a clinician or hair specialist a simple, non-invasive and cost-effective tool to assess scalp health or other hair related conditions that can be related to one or more of the outputs of the system 100, e.g., the total number of hairs on a person’s head, the number of hairs of different colours, the frequency of hairs per follicle and the distribution of follicles with different number of hairs.
[0132] The computing apparatus is configured to determine one or more of: total number of hairs on a person’s head, the number of hairs of different colours, the frequency of hairs per follicle and the distribution of follicles with different number of hairs. These parameters can be used in estimating hair growth or hair loss rate and the phase of hair growth e.g. Anagen, Catagen and Telegen. Further the computing apparatus 200 may be configured to determine the existence of flakes or pimples or dry patches. The trichoscopic images can be used to determine dry scalp patches, flakes, pimples etc. The computing apparatus 200 may be configured to determine the number of hair and other parameters of the scalp and classify these to determine health of the scalp and provide personalised treatments or personalised recommendations to reduce balding and / or improve scalp health.
[0133] The system 100 as described herein is advantageous because it makes it easy for a user and / or a clinician to self monitor. The system 100 allows for easy, regular monitoring of hair and scalp conditions and allow for early intervention to reduce balding. The system 100 is advantageous because it provides quantifiable data regarding the number of hairs. Further the system 100 allows for monitoring of hair growth, hair loss at various points in time. The system 100 provides an automated hair or scalp analysis tool that can be useful for doctors, dermatologists, trichologists and other clinicians.
[0134] Although not required, the embodiments described with reference to the Figures can be implemented as an application programming interface (API) or as a series of libraries for use by a developer or can be included within another software application, such as a terminal or personal computer operating system or a portable computing device operating system. Generally, as program modules include routines, programs, objects, components and data files assisting in the performance of particular functions, the skilled person will understand that the functionality of the software application may be distributed across a number of routines, objects or components to achieve the same functionality desired herein.
[0135] It will also be appreciated that where the methods and systems of the present invention are either wholly implemented by computing apparatus or partly implemented by computing apparatus then any appropriate computing apparatus architecture may be utilised. This will include stand alone computers, network computers and dedicated hardware devices. Where the terms “computing apparatus” and “computing device” are used, these terms are intended to cover any appropriate arrangement of computer hardware capable of implementing the function described.
[0136] In its various aspects, embodiments of the invention can be embodied in a computer-implemented process, a machine (such as an electronic device, or a general purpose computer or other device that provides a platform on which computer programs can be executed) , processes performed by these machines, or an article of manufacture.
[0137] It will be appreciated by persons skilled in the art that numerous variations and / or modifications may be made to the invention as shown in the specific embodiments without departing from the spirit or scope of the invention as broadly described. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive.
[0138] Any reference to prior art contained herein is not to be taken as an admission that the information is common general knowledge, unless otherwise indicated.
Claims
1.A system for determining the number of hairs on a person’s head, the system comprising:an image capture device configured to capture one or more images of a person’s head,a computing apparatus in communication with the image capture device, the computing apparatus comprising a processing unit, a memory unit, and a user interface the computing apparatus configured to:receive one or more images of a person’s head from the image capture device,identify one or more hairs in the one or more images,determine the number of hairs on a person’s head based on the identified hairs in the one or more images.2.The system in accordance with claim 1, wherein the computing apparatus is configured to present the number of hairs on a person’s head on the user interface.3.The system in accordance with claim 2, wherein the image capture device is configured to capture at least a trichoscopic image.4.The system in accordance with claim 3, wherein the computing apparatus is configured to:assess if the received image is a trichoscopic image based on if the person’s scalp and hair are clearly visible in the image,filter images that are not a trichoscopic images.5.The system in accordance with claim 4, wherein the computing apparatus is configured to detect and identify one or more follicles within each captured image.6.The system in accordance with claim 5, wherein the computing apparatus is configured to process each received trichoscopic image by applying a follicle detection model to the image to identify each follicle visible within the image.7.The system in accordance with claim 6, wherein the computing apparatus is configured to crop each received trichoscopic image into one or more sub images based on each of the follicles identified by the follicle detection model.8.The system in accordance with claim 7, wherein the computing apparatus is configured to crop each received trichoscopic image into multiple sub images such that each sub image includes only a single follicle within it.9.The system in accordance with claim 8, wherein the computing apparatus is configured to sum the number of sub images and the number of sub images corresponds to the number of follicles identified by the follicle detection model.10.The system in accordance with claim 9, wherein the computing apparatus is configured to:apply a hair segmentation model to each of the one or more sub images,identify each hair within each of the one or more sub images.11.The system in accordance with claim 10, wherein the computing apparatus is configured to label each of the identified hair within each of the sub images.12.The system in accordance with claim 11, wherein the computing apparatus is configured to classify each identified hair into different colours.13.The system in accordance with claim 11, wherein the computing apparatus is configured to:determine the number of hairs in each sub image based on the identified hair, and;determine a total number of hairs on a person’s head by summing the number of hairs in each sub image.14.The system in accordance with claim 10, wherein the computing apparatus is configured to determine the frequency of hairs per follicle based on summing the number of hairs present in each sub image.15.The system in accordance with claim 14, wherein the computing apparatus is configured to:determine the number of hairs of different colours in each sub image, and;determine a total number of hairs of different colours on a person’s head by summing the number of hairs of different colour.16.The system in accordance with claim 14, wherein the computing apparatus is configured to determine the distribution of follicles with different number of hairs based on the identified number of follicles and the identified number of different hairs.17.The system in accordance with claim 15, wherein the computing apparatus is configured to present the number of hairs of different colours and / or the distribution of follicles with different number of hairs on the display.18.The system in accordance with claim 16, wherein the computing apparatus is configured to:determine a quantitative parameter or a qualitative parameter representative of a person’s scalp health based on any one or more of: the total number of hairs on a person’s head, the number of hairs of different colours, the frequency of hairs per follicle and the distribution of follicles with different number of hairs, andpresent the quantitative or qualitative parameter representative of a person’s health on the user interface and / ortransmit the quantitative or qualitative parameter to a remote device.19.The system in accordance with claim 17, wherein the computing apparatus is configured to identify one or more treatments based on the person’s scalp health and present the identified one or more treatments to the person on the user interface.20.The system in accordance with claim 18, wherein the follicle detection model comprises a DenseNet model or CSPNet model or a combination of both.21.The system in accordance with claim 19, wherein the follicle detection model comprises at least three parts:the model backbone,model neck, andmodel head,wherein the model backbone comprises the DenseNet model and the CSPNet model,the model neck is configured to apply feature pyramids to identify follicles in different positions in the one or more captured images,the model head is configured to generate bounding boxes about each follicle identified in the one or more received images.22.The system in accordance with claim 20, wherein the computing apparatus is configured to determine the difference between a follicle and scalp on a person based on the difference of shape and / or colour of the follicle as compared to the scalp.23.The system in accordance with claim 21, wherein the hair segmentation model is configured to process each pixel of each sub image and only pixels that include a hair are labelled.24.A method for determining the number of hairs on a person’s head, the method comprising the steps of: receiving one or more images of a person’s headprocessing the received one or more images by applying a follicle detection model to the received images to identify one or more follicles within the received images,cropping each received image and generating one or more sub images based on the detected follicles, wherein each sub image comprises a single identified follicle,processing each sub image by applying a hair segmentation model to identify one or more hairs within each sub imagelabelling each identified hair within each sub image,determining the number of hairs on a person’s head based on the number of labelled hair in all the sub images.25.The method in accordance with claim 24, wherein the number of hairs on a person’s head are calculated by summing the number of hairs in each sub image.26.The method in accordance with claim 25, comprising the additional step of processing each received trichoscopic image by applying a follicle detection model to the image to identify each follicle visible within the image.27.The method in accordance with claim 26, comprising the additional step of cropping each received trichoscopic image into one or more sub images based on each of the follicles identified by the follicle detection model.28.The method in accordance with claim 27, wherein the method comprises cropping each received trichoscopic image into multiple sub images such that each sub image includes only a single follicle within it.29.The method in accordance with claim 28, comprising the additional steps of:applying a hair segmentation model to each of the one or more sub images,identifying each hair within each of the one or more sub images.30.The method in accordance with claim 29, comprising the step of labelling each of the identified hair within each of the sub images.
Citation Information
Patent Citations
Hair follicle detection method based on deep convolutional neural network
CN112308827A
Hair follicle identification and extraction method and system based on neural network model
CN113627425A
Systems and methods for hair analysis
US20190350514A1
Hair analysis methods and apparatuses
WO2020251938A1
