Domain Adaptation for Traffic Density Estimation
Luca Ciampi, Carlos Santiago, Joao Paulo Costeira, Claudio Gennaro, Giuseppe Amato

Abstract

Convolutional Neural Networks have produced state-of-the-art results for a multitude of computer vision tasks under supervised learning. However, the crux of these methods is the need for a massive amount of labeled data to guarantee that they generalize well to diverse testing scenarios. In many real-world applications, there is indeed a large domain shift between the distributions of the train (source) and test (target) domains, leading to a significant drop in performance at inference time. Unsupervised Domain Adaptation (UDA) is a class of techniques that aims to mitigate this drawback without the need for labeled data in the target domain. This makes it particularly useful for the tasks in which acquiring new labeled data is very expensive, such as for semantic and instance segmentation. In this work, we propose an end-to-end CNN-based UDA algorithm for traffic density estimation and counting, based on adversarial learning in the output space. The density estimation is one of those tasks requiring per-pixel annotated labels and, therefore, needs a lot of human effort. We conduct experiments considering different types of domain shifts, and we make publicly available two new datasets for the vehicle counting task that were also used for our tests. One of them, the Grand Traffic Auto dataset, is a synthetic collection of images, obtained using the graphical engine of the Grand Theft Auto video game, automatically annotated with precise per-pixel labels. Experiments show a significant improvement using our UDA algorithm compared to the model's performance without domain adaptation.

Papers

Code and Datasets

We introduce two datasets:

The code for training and evaluating our algorithm is available in our GitHub Repository.

Cite our work

If you find this work or code useful for your research, please cite the following:

@conference{visapp21,
author={Luca Ciampi. and Carlos Santiago. and Joao Paulo Costeira. and Claudio Gennaro. and Giuseppe Amato.},
title={Domain Adaptation for Traffic Density Estimation},
booktitle={Proceedings of the 16th International Joint Conference on Computer Vision, Imaging and Computer Graphics Theory and Applications - Volume 5: VISAPP,},
year={2021},
pages={185-195},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0010303401850195},
isbn={978-989-758-488-6},
}

@CONFERENCE{Ciampi202082,
    author={Ciampi, L. and Santiago, C. and Costeira, J.P. and Gennaro, C. and Amato, G.},
    title={Unsupervised vehicle counting via multiple camera domain adaptation},
    journal={CEUR Workshop Proceedings},
    year={2020},
    volume={2659},
    pages={82-85},
    url={https://www.scopus.com/inward/record.uri?eid=2-s2.0-85090888609&partnerID=40&md5=f5c629327700b6daa6586d7c313519f1},
    document_type={Conference Paper},
    source={Scopus},
}

This work was partially supported by LARSyS-FCT Plurianual funding 2020-2023, by H2020 project AI4EU under GA 825619 and by H2020 project AI4media under GA 951911.