Hostname: page-component-6766d58669-mzsfj Total loading time: 0 Render date: 2026-05-23T14:50:30.446Z Has data issue: false hasContentIssue false

Revolutionising food advertising monitoring: a machine learning-based method for automated classification of food videos

Published online by Cambridge University Press:  10 November 2023

Michele Bittencourt Rodrigues*
Affiliation:
Nutrition Department, Federal University of Minas Gerais. Av. Alfredo Balena 190, 30130-100. Escola de Enfermagem, 3º andar, sala 312, Belo Horizonte, Minas Gerais, Brazil
Victória Pedrazzoli Ferreira
Affiliation:
Institute of Computing, University of Campinas, Campinas, SP, Brazil
Rafael Moreira Claro
Affiliation:
Nutrition Department, Federal University of Minas Gerais. Av. Alfredo Balena 190, 30130-100. Escola de Enfermagem, 3º andar, sala 312, Belo Horizonte, Minas Gerais, Brazil
Ana Paula Bortoletto Martins
Affiliation:
Department of Nutrition, School of Public Health, University of São Paulo, Av. Dr. Arnaldo, 715 - Cerqueira César, São Paulo, SP, 01246-904, Brazil Center for Epidemiological Research in Nutrition and Health, Department of Nutrition, School of Public Health, University of São Paulo, Av. Dr. Arnaldo, 715 - Cerqueira César, São Paulo, SP, 01246-904, Brazil
Sandra Avila
Affiliation:
Institute of Computing, University of Campinas, Campinas, SP, Brazil
Paula Martins Horta
Affiliation:
Nutrition Department, Federal University of Minas Gerais. Av. Alfredo Balena 190, 30130-100. Escola de Enfermagem, 3º andar, sala 312, Belo Horizonte, Minas Gerais, Brazil
*
*Corresponding author: Email michele.rodrigues@gmail.com
Rights & Permissions [Opens in a new window]

Abstract

Objective:

Food advertising is an important determinant of unhealthy eating. However, analysing a large number of advertisements (ads) to distinguish between food and non-food content is a challenging task. This study aims to develop a machine learning-based method to automatically identify and classify food and non-food ad videos.

Design:

Methodological study to develop an algorithm model that prioritises both accuracy and efficiency in monitoring and classifying advertising videos.

Setting:

From a collection of Brazilian television (TV) ads data, we created a database and split it into three sub-databases (i.e. training, validation and test) by extracting frames from ads. Subsequently, the training database was classified using the EfficientNet neural network. The best models and data-balancing strategies were investigated using the validation database. Finally, the test database was used to apply the best model and strategy, and results were verified with field experts.

Participants:

The study used 2124 recorded Brazilian TV programming hours from 2018 to 2020. It included 703 food ads and over 20 000 non-food ads, following the protocol developed by the INFORMAS network for monitoring food marketing on TV.

Results:

The results showed that the EfficientNet neural network associated with the balanced batches strategy achieved an overall accuracy of 90·5 % on the test database, which represents a reduction of 99·9 % of the time spent on identifying and classifying ads.

Conclusions:

The method studied represents a promising approach for differentiating food and non-food-related video within monitoring food marketing, which has significant practical implications for researchers, public health policymakers, and regulatory bodies.

Information

Type
Research Paper
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2023. Published by Cambridge University Press on behalf of The Nutrition Society
Figure 0

Fig. 1 Synthesis of the methodology that comprises the database preprocessing and split stage

Figure 1

Fig. 2 Examples of data augmentation transformations performed in the food advertising frame

Figure 2

Table 1 Classification confusion matrix for each class in the training database using EfficientNet-B7 for classification of more than one frame per video associated with the balanced batches technique with merging weight 2

Figure 3

Table 2 Classification confusion matrix for each class in the validating database using EfficientNet-B7 for classification of more than one frame per video associated with the balanced batches technique with merging weight 2

Figure 4

Table 3 Classification confusion matrix for each class in the testing database using EfficientNet-B7 for classification of more than one frame per video associated with the balanced batches technique with merging weight 2