Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,54 @@
|
|
1 |
---
|
2 |
license: unknown
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: unknown
|
3 |
---
|
4 |
+
|
5 |
+
# Age estimation in supermarkets
|
6 |
+
The model analyzed in this card estimates someone's age. This project has been done for the master Applied Artificial Intelligence and is about estimating ages in supermarkets when a person wants to buy alcohol. This model's goal is to only estimate ages in an image. It will not cover ethnicities or gender.
|
7 |
+
|
8 |
+
## Model description
|
9 |
+
**Used dataset:** UTKFace images
|
10 |
+
- This dataset contains roughly 24K face images.
|
11 |
+
- The age of a person on the picture is labeled in the filename of that image.
|
12 |
+
- Since we do not have use for baby images, we decided to cut these out of the dataset, so there are 21K images left.
|
13 |
+
|
14 |
+
**Model input:** Facial images
|
15 |
+
|
16 |
+
**Model output:** For a face in a picture, the model will return the estimated age of that person. The model output also gives a confidence score for the estimation.
|
17 |
+
|
18 |
+
**Model architecture:** A Convolutional Neural Network. This CNN will perform a regression analysis to estimates the ages.
|
19 |
+
|
20 |
+
## Performance
|
21 |
+
|
22 |
+
To determine the performance of the model, the following metrics have been used:
|
23 |
+
- MSE, this metric measures how close the regression line is to the data points.
|
24 |
+
<br>   - *Our model's MSE:*
|
25 |
+
- RMSE, this metric measures the mean error that can be made.
|
26 |
+
<br>   - *Our model's RMSE:*
|
27 |
+
- MAE, this is a measure for model accuracy. The MAE is the average error that the model's predictions have in comparison with their corresponding actual targets.
|
28 |
+
<br>   - *Our model's MAE:*
|
29 |
+
|
30 |
+
Ideally, the RMSE and the MAE should be close to each other. When there is a big difference in these two numbers, it is an indication of variance in the individually errors.
|
31 |
+
|
32 |
+
Our results show that the prediction model can be ... years off of the actual age of a person.
|
33 |
+
|
34 |
+
## Limitations
|
35 |
+
- **Lighting**
|
36 |
+
<br> When the lighting is poor, the age estimation can be poor as well
|
37 |
+
- **Occlusion**
|
38 |
+
<br> Partially hidden or obstructed faces might not be detected. (e.g. face masks)
|
39 |
+
- **UTKFace**
|
40 |
+
<br> The ages in this dataset are in itself estimation from a previous model. Since we do not know the exact ages of the people in the images, our model will not be the most reliable.
|
41 |
+
|
42 |
+
|
43 |
+
## Training and evaluation data
|
44 |
+
|
45 |
+
Train data: 70%
|
46 |
+
Test data: 30%
|
47 |
+
|
48 |
+
Our model has been made by trial and error. The following architecture is the outcome:
|
49 |
+
- Hidden layers:
|
50 |
+
- Batch size
|
51 |
+
- Epochs:
|
52 |
+
- Optimizer:
|
53 |
+
- Activation:
|
54 |
+
|