Localizing Adverts in Outdoor Scenes

Soumyabrata Dev, Murhaf Hossari, Matthew Nicholson, Killian McCabe, Atul Nautiyal, Clare Conran, Jian Tang, Wei Xu, François Pitié · DOI

Abstract

Online videos have witnessed an unprecedented growth over the last decade, owing to wide range of content creation. This provides the advertisement and marketing agencies plethora of opportunities for targeted advertisements. Such techniques involve replacing an existing advertisement in a video frame, with a new advertisement. However, such post-processing of online videos is mostly done manually by video editors. This is cumbersome and time-consuming. In this paper, we propose DeepAds - a deep neural network, based on the simple encoder-decoder architecture, that can accurately localize the position of an advert in a video frame. Our approach of localizing billboards in outdoor scenes using neural nets, is the first of its kind, and achieves the best performance. We benchmark our proposed method with other semantic segmentation algorithms, on a public dataset of outdoor scenes with manually annotated billboard binary maps.

Introduction

As global online video consumption continues to rise, advertisers are increasingly seeking ways to serve targeted content. A significant challenge in this process is the localization of existing advertisements, such as billboards, within video frames to allow for digital replacement. Currently, video editors must manually identify and mask these areas frame-by-frame, a process that is both expensive and time-consuming.

We introduce DeepAds, a lightweight neural network designed to automate this "masking" step. By framing billboard detection as a semantic segmentation task, DeepAds provides a robust method for localizing general advertisements within complex outdoor environments, significantly reducing the manual labor required for regional content targeting.

Methodology

DeepAds is built upon a streamlined encoder-decoder architecture. The encoder extracts high-level features by gradually reducing the spatial dimensions of the input image, while the decoder recovers this spatial information to produce a pixel-wise probabilistic mask.

The DeepAds encoder-decoder architecture.

The model utilizes standard $3 \times 3$ convolutional filters with a stride of unity. To convert the resulting probability map into a sharp binary mask (billboard vs. background), we apply a threshold. Empirical testing determined that a threshold value of 0.5 yields the highest mean accuracy.

Dataset and Training

The model was trained and evaluated using a large-scale dataset of 9,315 outdoor scene images sourced from Mapillary. Every image in the dataset includes manually annotated ground truth binary maps. For training purposes, images were resized to $200 \times 200$ pixels, though the original source imagery maintains a minimum resolution of $800 \times 600$.

Results and Discussion

DeepAds was benchmarked against three prominent semantic segmentation models: Fully Convolutional Networks (FCN), U-Net, and Pyramid Scene Parsing Network (PSPNet). Quantitative results show that DeepAds outperforms these models across key metrics, particularly in Mean Intersection Over Union (mIOU), the standard benchmark for segmentation quality.

Metric DeepAds FCN U-Net PSPNet
Pixel Accuracy (PA) 0.971 0.962 0.721 0.554
Mean IOU (mIOU) 0.722 0.638 0.432 0.304
Freq. Weighted IOU 0.950 0.937 0.689 0.521

Qualitative analysis highlights the precision of DeepAds. While U-Net achieved high Mean Accuracy, it suffered from a high rate of false positives. In contrast, DeepAds produced cleaner, more reliable outlines of the target advertisements.

Qualitative comparison of DeepAds against FCN, PSPNet, and U-Net.

An interesting finding was the underperformance of more complex models like PSPNet. Despite its success in general scene parsing, PSPNet struggled to converge on this specific task, likely due to the high memory overhead requiring smaller batch sizes during training.

Conclusion

DeepAds demonstrates that a lightweight, task-specific encoder-decoder architecture can achieve state-of-the-art results in advertisement localization. Future research will focus on improving robustness in extremely cluttered scenes and extending the model to identify "empty" spaces suitable for new digital ad placement. Additionally, we aim to incorporate temporal consistency to ensure stable, flicker-free masking across video sequences.

Summary updated

BibTeX
@misc{dev2019localizing,
  author = {Soumyabrata Dev and Murhaf Hossari and Matthew Nicholson and Killian McCabe and Atul Nautiyal and Clare Conran and Jian Tang and Wei Xu and François Pitié},
  title = {{Localizing Adverts in Outdoor Scenes}},
  year = {2019},
  eprint = {1905.02106},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.02106},
}
Figure