| Literature DB >> 35055742 |
Tejaswini Oduru1, Alexis Jordan1, Albert Park1.
Abstract
Obesity is a modern public health problem. Social media images can capture eating behavior and the potential implications to health, but research for identifying the healthiness level of the food image is relatively under-explored. This study presents a deep learning architecture that transfers features from a 152 residual layer network (ResNet) for predicting the level of healthiness of food images that were built using images from the Google images search engine gathered in 2020. Features learned from the ResNet 152 were transferred to a second network to train on the dataset. The trained SoftMax layer was stacked on top of the layers transferred from ResNet 152 to build our deep learning model. We then evaluate the performance of the model using Twitter images in order to better understand the generalizability of the methods. The results show that the model is able to predict the images into their respective classes, including Definitively Healthy, Healthy, Unhealthy and Definitively Unhealthy at an F1-score of 78.8%. This finding shows promising results for classifying social media images by healthiness, which could contribute to maintaining a balanced diet at the individual level and also understanding general food consumption trends of the public.Entities:
Keywords: food image; image classification; obesity; social media; twitter
Mesh:
Year: 2022 PMID: 35055742 PMCID: PMC8775411 DOI: 10.3390/ijerph19020923
Source DB: PubMed Journal: Int J Environ Res Public Health ISSN: 1660-4601 Impact factor: 3.390
Figure 1Example image of food from Twitter [5].
Figure 2Overview of image processing step.
Figure 3Example images that were predicted in each of the four classes.
Figure 4Example Twitter images that were predicted in the different classes.
Performance of the image classifier on Twitter datasets.
| Class | TP | FN | TN | FP | Precision | Recall | Accuracy | F1 Score |
|---|---|---|---|---|---|---|---|---|
| Healthy | 44 | 6 | 33 | 17 | 72.13 | 88.00 | 77.00 | 79.27 |
| Unhealthy | 39 | 11 | 32 | 18 | 68.42 | 78.00 | 71.00 | 72.90 |
| Definitively Healthy | 44 | 6 | 38 | 12 | 78.57 | 88.00 | 82.00 | 83.01 |
| Definitively Unhealthy | 42 | 8 | 37 | 13 | 76.36 | 84.00 | 79.00 | 79.99 |
| Overall | 169 | 31 | 140 | 60 | 73.79 | 84.50 | 77.25 | 78.78 |
Error analysis using Twitter datasets.
| Class | Predicted Healthy | Predicted Unhealthy | Predicted Definitively Unhealthy | Predicted Definitively Healthy | ||||
|---|---|---|---|---|---|---|---|---|
| FN | FP | FN | FP | FN | FP | FN | FP | |
| Healthy | – | – | – | 4 | 2 | 4 | 4 | 9 |
| Unhealthy | 3 | 4 | – | – | 7 | 8 | 1 | 6 |
| Definitely Healthy | 4 | 6 | 1 | 3 | 1 | 3 | – | – |
| Definitely Unhealthy | 2 | 3 | 4 | 7 | – | – | 1 | 3 |
False positives and false negatives for the cake and baking.
| Food Items | Predicted as Definitively Unhealthy | Predicted as Healthy |
|---|---|---|
| Cake (Definitely | 7 | 6 |
| Baking (Healthy) | 5 | 7 |