Acne AI Classification System
Last update: 11 June 2024
Context
- Typically a pimple will last from 3-6 weeks, depending how severe it gets.
- Here are the different stages of an acne lesion (not mandatory to go through all the stages)
- During this period, the severity will increase until it reaches the top, and then decrease until the lesion disappears (or becomes a scar)

- So, the curve of acne severity of a pimple over time looks like this:
- The type (papule, comedo, etc) of acne depends on the stage of the pimple
- Visually, it can be hard to know in which stage of the pimple we are, because the severity may be the same, but can be either in the ascent (= getting worse) , or in the descent (= getting better) of the curve.

Classification and acne types
- Based on the prediction of the AI model [severity score, pus info, scar info] and the size of the lesion, we classify each pimple to one of the following types:

Classification based on score and size of the lesion

Classification and acne types
- The API will output all these types, but depending on the usecase, one can choose to group /remove some acne types. It is to the dev team (according to the sales/business team opinions) to define how to show the results
- For example:
- We may not want to show the “early papule/pustule” to the users of belleSkin.
- Some clients do not count “resolving papule/pustule” in the active lesions.
- Some other clients prefer to group “early papules pustules” and “papules”.
- etc
- FYI : No more separation between “blackheads” & “whiteheads”, it goes all to “comedo” (bMirror)
Configuration files
- New classification function aims to be adjustable for each use case (clients, apps)
- In order to do that, we now use configuration files (config_
.yml) to define the values of each threshold (+ some other hyper-parameters) - This configuration file is important because it impacts directly the AI prediction pipeline. Don’t hesitate to contact the AI team (PIC : Léa Gazeau) for more information or for expertise for choosing the best parameters.
- We can consider to ask the clients their own configuration / thresholds to fit best their needs (radius and score)

- img_quality: this parameter is important depending on the source of
images we will receive. The quality and size of the image from the user
plays an important role in the quality of the prediction.
- 2K: we re-scale the image so that the face corresponds to 2000px for the acne segmentation step (medium resolution)
- 4K: we re-scale the image so that the face corresponds to 4000px for the acne segmentation step (high resolution)
- 1K: we re-scale the image so that the face corresponds to 1000px for the acne segmentation step (lower resolution)
- adaptive: we can re-scale to different resolutions depending on the input image (combine 1K and 2K resolution)
For this base configuration (to be used in belleSkin/Pro and the demo website), if one image is very low quality, then the predictions will be limited in term of detected acne because we keep the low resolution for the acne segmentation step resulting in less lesions detected (especially small lesions as micro-comedo).

- check_skintone: (Boolean) if True, then we check the output of skin tone prediction and normalize it for acne classification step (if it’s skin tone 5or6). if False, we don’t check the skin tone.
- seg_threshold: should be a float between 0 and 1 (we recommend between 0.25 and 0.5) corresponds to the threshold of the AI output for the acne segmentation model.
- pus_threshold: should be a float between 0 and 1. if the pus information is below this value, then we consider there is no pus in this lesion, otherwise we consider there is pus.
- scar_threshold: should be a float between 0 and 1. if the pus information is below this value, then we consider that the lesion is a scar and belongs to the ‘no acne’ class, otherwise, we classify it in one of the other acne types.
- XX_radius: should be a float and corresponds to the limit radius of a lesion in mm.
- XX_score: should be a float between 0 and 5 corresponding to the limit severity score of a lesion.
Impact of image quality on prediction

Impact of acne seg_threshold on prediction

You can download the detailed slides here
Questions or Feedback?
❓
Belle.AI is still in active development.
Have a question or feedback? Feel free to open an issue!