scieee AI-readable full text Open interactive document viewer

Anomaly detection in fleet service vehicles: improving object segmentation

Morais, Joel Tomás

Abstract

The present dissertation is inserted in a BOSCH project in which the global focus is au tonomous driving. The project is divided in multiple phases, being the main focus of this dissertation object detection and segmentation inside fleet service vehicles. The objective is to detect/segment objects and dirt left inside a vehicle, warning the commuter if they forgot an object inside or the administrators if the vehicles need to be cleaned. To train the models, BOSCH provided an initial dataset containing a small set of annotated images. This dataset contains pictures of a vehicles cockpit with many diverse objects and dirt. One of the goals for BOSCH is to increment this dataset with more images. Hence, in this project several state of the art segmentation methods were thoroughly studied and analysed, with two of them being selected for further exploration: DeepExtremeCut and FgSegNet v2. The main objective is to see to what extent can these methods be used in a semi automatic process to segment more images, thereby increasing the initial dataset. DeepExtremeCut works by using a framework in which, after the model is trained, it allows us to click on four extreme points in the desired object, producing the segmentation. This method produced reliable segmentations, however it requires human intervention both for the initial segmentation and verification of the output. Hence, it was not regarded as a good solution for a future augmentation of the BOSCH dataset. Regarding FgSegNet v2, this later method does not require any initial annotation of the input images. Under this approach only a final verification and possible rectification is required. Therefore, this method meets the requirements defined by BOSCH for a dataset expansion solution. An ablation study is also presented for FgSegNet v2, analysing its three stages: (i) Encoder, (ii) Feature Pooling Module and (iii) Decoder. The result of this study is a proposal of a variation of the aforementioned method called Mod FgSegNet. It was also compared with state of the art methods in public datasets. Three datasets are used for testing: CDNet2014, SBI2015 and CityScapes. In CDNet2014 we got an overall improvement when compared to the state of the art, particularly in the LowFrameRate subset. Regarding SBI2015 the overall results are lower in comparison with the top state of art, while in CityScapes some promising results are presented.

Full text

Universidade do Minho Escola de Engenharia Departamento de Inform´ atica Joel Tom´ as Morais Anomaly detection in fleet service vehicles Improving object segmentation April 2021 Universidade do Minho Escola de Engenharia Departamento de Inform´ atica Joel Tom´ as Morais Anomaly detection in fleet service vehicles Improving object segmentation Master dissertation Master Degree in Integrated Master´s in Informatics Engineering Dissertation supervised by Ant´ onio Jos´ e Borba Ramires Fernandes Andr´ e Leite Ferreira April 2021 COPYRIGHT AND TERMS OF USE FOR THIRD PARTY WORK This dissertation reports on academic work that can be used by third parties as long as the internationally accepted standards and good practices are respected concerning copyright and related rights. This work can thereafter be used under the terms established in the license below. Readers needing authorization conditions not provided for in the indicated licensing should contact the author through the Reposit´ oriUM of the University of Minho. license granted to users of this work: CC BY https://creativecommons.org/licenses/by/4.0/ i ACKNOWLEDGEMENTS I will start by thanking Prof. Ant ´ onio Ramires, for providing invaluable guidance throughout the dissertation and for always showing availability and interest in my doubts and work, pushing me forward to achieve a better work. Therefore, a big thank you. Since this dissertation was developed during an internship at BOSCH, I would also like to extend these acknowledgements to every single person who supported me during my stay. A special thank you to Andr ´ e Ferreira and Bruno Faria, my supervisors, for helping me in every step of the dissertation. I would also like to thank my friends and girlfriend for helping me in the most important times, always being there for me when I needed a break from work. And last, the biggest gratitude goes to my mother, father and grandmother, for always supporting me in my ups and downs and inspiring me to always do better. ii STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. iii ABSTRACT The present dissertation is inserted in a BOSCH project in which the global focus is autonomous driving. The project is divided in multiple phases, being the main focus of this dissertation object detection and segmentation inside fleet service vehicles. The objective is to detect/segment objects and dirt left inside a vehicle, warning the commuter if they forgot an object inside or the administrators if the vehicles need to be cleaned. To train the models, BOSCH provided an initial dataset containing a small set of annotated images. This dataset contains pictures of a vehicles cockpit with many diverse objects and dirt. One of the goals for BOSCH is to increment this dataset with more images. Hence, in this project several state of the art segmentation methods were thoroughly studied and analysed, with two of them being selected for further exploration: DeepExtremeCut and FgSegNet v2 . The main objective is to see to what extent can these methods be used in a semi automatic process to segment more images, thereby increasing the initial dataset. DeepExtremeCut works by using a framework in which, after the model is trained, it allows us to click on four extreme points in the desired object, producing the segmentation. This method produced reliable segmentations, however it requires human intervention both for the initial segmentation and verification of the output. Hence, it was not regarded as a good solution for a future augmentation of the BOSCH dataset. Regarding FgSegNet v2 , this later method does not require any initial annotation of the input images. Under this approach only a final verification and possible rectification is required. Therefore, this method meets the requirements defined by BOSCH for a dataset expansion solution. An ablation study is also presented for FgSegNet v2 , analysing its three stages: (i) Encoder, (ii) Feature Pooling Module and (iii) Decoder. The result of this study is a proposal of a variation of the aforementioned method called Mod FgSegNet. It was also compared with state of the art methods in public datasets. Three datasets are used for testing: CDNet2014, SBI2015 and CityScapes. In CDNet2014 we got an overall improvement when compared to the state of the art, particularly in the LowFrameRate subset. Regarding SBI2015 the overall results are lower in comparison with the top state of art, while in CityScapes some promising results are presented. Keywords: Segmentation, Object detection, Bounding Box iv RESUMO A presente disserta c¸˜ ao est ´ a inserida num projeto da BOSCH, em que o foco global ´ e a condu c¸˜ ao aut ´ onoma. Este projeto foi dividido em m ´ ultiplas fases, sendo o foco principal desta disserta c¸˜ ao ´ e a detec c¸˜ ao e a segmenta c¸˜ ao de objetos. O objetivo ´ e detectar / segmentar objetos e lixo deixados no interior de um ve ´ ıculo, avisando o passageiro se ele se esqueceu de algum objeto no interior ou os administradores se os ve´ ıculos precisam de ser limpos. Para lidar com este t ´ opico, v ´ arios m ´ etodos de segmenta c¸˜ ao do estado da arte foram exaustivamente estudados e analisados, nos quais dois deles em particular foram explorados, ou seja, o DeepExtremeCut e o FgSegNet . Algumas melhorias foram feitas no desempenho deste ´ ultimo, permitindo um potencial aumento semiautom ´ atico no tamanho de um dataset fornecido pela BOSCH, uma vez que n˜ ao possu´ ıa imagens suficientes. Este dataset cont´ em fotos da cabine de um ve´ ıculo com diferentes objetos e lixo. O DeepExtremeCut funciona atrav ´ es do uso de uma framework no qual, ap ´ os o treino do modelo, permite clicar em quatro pontos extremos do objeto desejado, produzindo a segmenta c¸˜ ao. Este m ´ etodo produz segmenta c¸ ˜ oes confi ´ aveis, embora n ˜ ao corresponda a uma segmenta c¸˜ ao autom ´ atica, visto que existe a necessidade de selecionar todos os objetos, ainda pode ser ´ util quando a segmenta c¸˜ ao autom ´ atica de um m ´ etodo diferente n ˜ ao estiver a funcionar em casos particulares. Em rela c¸˜ ao ao FgSegNet v2 , ´ e apresentado um estudo de abla c¸˜ ao, sendo feita uma an ´ alise das suas tr ˆ es etapas: (i) Encoder, (ii) Feate Pooling Module e (iii) Decoder. O resultado deste estudo ´ e uma proposta de varia c¸˜ ao do referido m ´ etodo no dataset da BOSCH, de forma a utiliz ´ a-lo potencialmente em v ´ arios projetos dentro da empresa, chamado Mod FgSegNet. Tamb ´ em foi comparado com m ´ etodos do estado de arte em datasets p ´ ublicos. Os tr ˆ es datasets usados para teste s ˜ ao: CDNet2014, SBI2015 e CityScapes. No CDNet2014, obtivemos uma melhoria geral em compara c¸˜ ao com o estado da arte, principalmente no subconjunto LowFrameRate. Em rela c¸˜ ao ao SBI2015, os resultados gerais foram inferiores em compara c¸˜ ao com o estado da arte de ponta, enquanto que no CityScapes alguns resultados promissores foram apresentados. Palavras-Chave: Segmentation, Object detection, Bounding Box v CONTENTS 1 introduction 1 1.1Context and motivation 1 1.2Objectives 3 1.3Thesis organisation 3 2 state of the art 4 2.1Metrics 4 2.1.1Confusion matrix based metrics 5 2.1.2Accuracy 6 2.1.3Precision, Sensitivity (Recall) and Specificity 7 2.1.4F1-Score 8 2.1.5Matthews correlation coefficient 9 2.1.6ROC Curve and AUC 10 2.1.7Mean Intersection-Over-Union 12 2.1.8Summary 13 2.2Datasets 13 2.2.1ImageNet 13 2.2.2KITTI 14 2.2.3PASCAL Visual Object Classes Dataset 15 2.2.4Microsoft COCO: Common Objects in COntext 16 2.2.5CDNet2014 17 2.2.6SBI2015 17 2.2.7Cityscapes 18 2.2.8DAVIS: Densely Annotated VIdeo Segmentation Dataset 19 2.2.9KINS 20 2.2.10 Summary 21 2.3Bounding Box Object segmentation 22 2.3.1Region Based Convolutional Neural Networks 22 2.3.2Fast R-CNN 23 2.3.3Single Shot MultiBox Detector 24 2.3.4Faster R-CNN 26 2.3.5You Only Look Once: Unified, Real-Time Object Detection 27 2.4Pixel based object segmentation 31 2.4.1Interactive deep learning method for segmenting moving objects 31 vi contents vii 2.4.2 Instance-aware Semantic Segmentation via Multi-task Network Cascades 32 2.4.3 Image-to-Image Translation with Conditional Adversarial Networks 33 2.4.4Mask R-CNN 34 2.4.5 Foreground Segmentation Using a Triplet Convolutional Neural Network for Multiscale Feature Encoding 35 2.4.6Learning Multi Scale Features for Foreground Segmentation 36 2.4.7Amodal Instance Segmentation with KINS Dataset 38 2.5Alternative annotation methods - Excluding regular Bounding Boxes 39 2.5.1 GrabCut - Interactive Foreground Extraction using Iterated Graph Cuts 39 2.5.2Extreme Clicking for efficient object annotation 40 2.5.3Deep Extreme Cut: From Extreme Points to Object Segmentation 41 2.5.4Deep GrabCut for Object Selection 43 2.6Summary 44 2.6.1State of the art recapitulation 45 2.6.2Conceptual map 48 3 development 49 3.1The problem and its challenges 49 3.2Exploring solutions for dataset augmentation 50 3.2.1Initial dataset 50 3.2.2DeepExtremeCut testing 53 3.2.3FgSegNet v2Testing 54 3.3Exploring variations for FgSegNet v256 3.3.1Feature Pooling Module 58 3.3.2Decoder 63 3.3.3Encoder 65 3.3.4Mod FgSegNet Summary 66 4 public datasets results 70 4.1CDNet2014 70 4.1.1Metric evaluation 70 4.1.2Visual results 71 4.2SBI2015 76 4.2.1Metric evaluation 76 4.2.2Visual results 77 4.3CityScapes 80 4.3.1Metric evaluation 80 4.3.2Visual results 81 LIST OF ABBREVIATIONS AUC Area Under Curve. 10,11,13,54,59,64,68,76,80 CEDN Convolutional encoder-decoder network. 43 CLOC Camera-Lidar Object Candidates. 14 CNN Convolutional neural network. 22,23,30,31,35,42 DAVIS Densely-Annotated VIdeo Segmentation. 19 DEXTR DeepExtremeCut. 41,42 Fast R-CNN Fast Region-based Convolutional Network. 23,24,26,33 FLOPS Floating point operations. 29,30,31 FN False Negative. 5,6,9 FP False Positive. 5,6,9 FPM Feature Pooling Module. x,58,59,63,65,66,67 FPR False Positive Rate. 10,11,71 GAN Generative Adversarial Network. 33,34,46 GAP Global Average Pooling. 36,63,64 IoU Intersection over Union. xii,12,35,41,44 KINS KITTI INStance. 20 KITTI Karlsruhe Institute of Technology and Toyota Technological Institute. 14,20 mAP Minimum average precision. 26,29,33,41 MCC Mathews Correlation Coefficient. 9,10,13,54,59,64,65,80 mIoU Mean intersection over Union. 12,13,41,54,59,64,71,80 MLC Multi-Level Coding. 38 MNC Multitask Network Cascade. 32 MOTS Multi-object tracking and segmentation. 14 MS COCO Microsoft Common Objects in Context. 16,44 PWC Percentage of Wrong Classifications. 37,71 R-CNN Region Based Convolutional Neural Networks. 22,23,24,26,27,33 RGB Red-Green-Blue. 42,43 ROC Receiver operating characteristic. 10,11 xiv List of Abbreviations xv RoI Region of interest. 26,35 SSD Single-Shot Detector. ix,24,25,26,29 SVM Suport Vector Machine. 22,23 TN True Negative. 5,6,9 TP True Positive. 5,6,9 TPR True Positive Rate. 10,11 VOC Visual Object Classes. 15,24,26,33,41,44 YOLO You Only Look Once. 27,28,29,30,31 1 INTRODUCTION 1.1 context and motivation Fleet service vehicles have been used as a way to transport merchandise or people since 1600 BC, when the chariot was invented, this is when the idea of longer distance travel was possible by road, Kate (2018). Before that time, only animals were used for larger distances. Over the course of time, many improvements have been made in this sector, leading to public transportation. The first concept of a public transit system in a city started in the 1820s in France and London with the introduction of the omnibus, a horse-drawn car that held up to 10 people at a time, Kate (2018). Then, there was an immense growth in this sector, going from chariots and horses to streetcars, trams, trains, amongst many other evolved means of transportation. With an exponentially growing demand in this sector, more challenges derived from the improvement of these vehicles, such as security, ecological options, efficiency and self-driving cars. Besides these factors, there is also the human factor, in which we tend to easily forget our personal belongings or damage something in vehicles without even realising. Fleet Service Vehicles are available today as alternatives to commuting within and between cities, opening new challenges to fleet service operators, namely, monitoring how these vehicles are used, to ensure they are kept clean and pleasant for delivering commuting services, and no objects are left behind by commuters. BOSCH’s approach to deal with these challenges is to use object detection and segmentation. Throughout the years, a concept called Object detection has been used in various subjects, including transportation. This concept is related to Computer Vision, dealing with the detection of instances of semantic objects, either in images or videos. In order to detect these objects, an object classification needs to be made by obtaining information about any of a detected object categories ( for example, if an image contains a 1 1.1. Context and motivation 2 car or not ) and object localisation, giving the position of the car. This localisation is usually done by marking the object with a rectangle ( bounding box ), Zhao et al. (2019). One approach behind object detection is to use object detectors in images taken from the interior of the car. However, this approach is not free from its challenges as most object detectors have some form of training stage where example images from the interior of the car, with and without objects, are used to build a predictive model. Building such a dataset is a major bottleneck as one needs not only to acquire the images, but also to annotate them by hand, which is expensive in terms of time and money. Furthermore, all of the current state of the art object detectors include some form of deep learning strategy which tends to escalate the aforementioned problem since deep learning strategies require large annotated datasets. Besides, state of the art techniques fail to identify objects with irregular shapes, such as cables and dirty regions. This might be due to the fact that no previous dataset with these type of objects has been used for training. So, by improving current strategies, the problems mentioned above could be fixed. Hence, if the detection of objects is not enough and there is a need to analyse the images at a deeper level, image segmentation comes into play. With image segmentation, we can divide the given image into segments, in order to process only regions of interest in it, because some areas may not contain any relevant information. Through this method, we can group the pixels that have similar attributes in an image. Therefore, while object detection builds a bounding box corresponding to each class in the image, not giving us information about the shape of the object because it only provides the bounding boxes coordinates, image segmentation will create a pixel-wise mask for each object in the image, giving us more information of the object of interest, as seen in Fig. 1. Figure 1: Object detection and image segmentation respectively, from cs231n.stanford.edu Bounding boxes are traditionally drawn using human resources, i.e. by hand. This process involves too much time to complete, therefore very expensive. First, the user needs to draw a box enclosing the object, clicking on 4extreme corners. This is quite inefficient because these corners are usually not part of the object. After the first 4clicks, the user needs to 1.2. Objectives 3 adjust the x and y coordinates ( now in a visible rectangle ) in order to fully cover the object, leaving the maximum scenery possible outside the box. Last, the user clicks again to submit the annotation. As we can see, this process is not efficient at all. It consists in 3different steps ( clicking, dragging and adjusting ) and since this is an imagery process, the human error is consistently high. Diverse annotation tools exist in the current market, such as Hive, LabelBox,DataTurk and LabelImage. In the current dissertation, object detection and segmentation are the main themes. A thorough analysis of the dataset provided is going to be made. This dataset contains images inside a vehicle’s cockpit, with different objects and stains ( or other types of dirt ). With this, the commuters could be informed if they left an object inside the vehicle, or informing the administrators of the system if the vehicle requires to be clean/fixed. Besides the aforementioned work, tests will be made in public datasets, in order to recreate the results. These datasets contain different areas, such as surveillance cameras for detecting people, traffic signs detection, vehicles traffic in highways, amongst many others. 1.2 objectives Nonetheless, instead of only using human annotators one can develop smarter strategies for object segmentations. In the thesis, there will be an opportunity to: •Study current state of the art strategies for object segmentation •Test an algorithm’s variations for automated object segmentation •Benchmark performance with current public datasets 1.3 thesis organisation The document structure is divided in five chapters. In the present chapter, an introduction of the project is being presented. In Chap. 2, the State of the Art, showing the advancements made in this specific field throughout the years and an analysis of the datasets and metrics used, Chap. 3talks about the developed work, Chap. 4shows the developed work applied to public datasets and Chap. 5presents some conclusions and future work. 2 S TAT E O F T H E A RT This chapter discusses approaches regarding object detection and segmentation, the metrics, and the datasets used, in order to present the issues in the segmentation field. First, an explanation of the used metrics throughout the state of the art and the development phase, Sec.2.1, then, a brief description of the datasets used in the State of the art methods, Sec. 2.2, giving an overview of the dataset, followed by some statistics and example images. Finally, state of the art methods regarding image segmentation and object detection are presented. First, segmentation methods based on bounding boxes are covered in Sec. 2.3. Afterwards, pixel based segmentation is discussed in Sec. 2.4. Lastly, methods that use different annotations than traditional bounding boxes are reviewed in Sec. 2.5. A summary of these methods, containing the possible contributions and a conceptual map can be seen in Sec. 2.6. 2.1 metrics Research on available metrics to evaluate the methods presented in this chapter is a major requirement for the success of this project. This section is based on Tharwat (2018), Luque et al. (2019) and Jeni et al. (2013). When taking into account a model, in which most of them receive an image or a bounding as an input, the model will be responsible for generating another image or a box as an output when applied to segmentation and detection, respectively. By comparing this output with the ground-truth, these metrics allow the evaluation of the model. Throughout the current section, discussed metrics will include those based on confusion matrices and geometrical metric related to the area of the images. 4 2.1. Metrics 5 Even though the presented metrics have an example focused on classification, since it is easier to explain and compare the metrics applicability, they can still be applied to segmentation, which is the focus of this dissertation. When applied to segmentation, pixel classification is measured, and not object classification itself. 2.1.1Confusion matrix based metrics In order to use these metrics to evaluate the models, confusion matrices are introduced to provide a uniform presentation. These matrices can be used for classification problems, where the output can consist in two or more classes, usually positive (1) and negative (0) class, as seen in Fig. 2. Figure 2: Confusion matrix To exemplify the concepts introduced in Fig. 2, a test use case is going to be used, regarding patients tested for COVID-19 ( caused by the virus SARS-CoV-2) as Positive or Negative: True Positive (TP): When the positive value is predicted as positive, meaning it is true. A prediction that a patient is infected with Covid-19 and actually is. True Negative (TN): When the negative value is predicted as negative, meaning it is true. A prediction that a patient is not infected with Covid-19 and actually is not. False Positive (FP): When the negative value is predicted as positive, resulting in an error. A prediction that a patient is infected with Covid-19 and actually is not. False Negative (FN): When the positive value is predicted as negative, resulting in an error. 2.1. Metrics 6 A prediction that a patient is not infected with Covid-19 and she actually is. Throughout the next subsections, using the previous test case, a model that classified 100 patients tested for COVID-19 ( caused by the virus SARS-CoV-2) as Positive or Negative as seen in Fig. 3is being considered. The presented values are not part of a real case study, and were introduced only as a way to illustrate the differences between the metrics. Figure 3: Confusion matrix regarding Covid-19 analogy 2.1.2Accuracy Accuracy, Eq. 1, is one of the most commonly used metrics when evaluating classification models. It represents the ratio of number of correct predictions to the total number of input samples. Accuracy =TP+TN TP+TN+FP+FN (1) When calculating this metric regarding the Covid-19 analogy, the result can be seen in Eq. 2. Accuracy =TP+TN TP+TN+FP+FN =1+90 1+90+1+8=0.91 (2) An accuracy of 91% says that out of 100 examples, 91 were predicted correctly. When analysing the confusion matrix, out of 100 examples, 9are considered Positive (1TP and 8FN) and 91 Negative (90 TN and 1FP). Of these 91 cases, the model correctly identified 90 as Negative, however, of the 9Positive cases the model only identified correctly 1, which 2.1. Metrics 7 means that 8out of 9predictions are being misclassified, leading to a potential spread of the virus. Therefore, even though the classifier seems to be having a reasonable behaviour, due to 91% accuracy, that is not the case, since the cost of misclassifying someone Positive as Negative is much higher than misclassifying someone Negative as Positive, considering we are dealing with a potentially deadly disease, i.e., when the cost of a wrong classification is not the same for every class this metric should not be used. Besides, when dealing with unbalanced datasets, this metric can induce a false sense of security regarding the reliability of the method. 2.1.3Precision, Sensitivity (Recall) and Specificity When dealing with an imbalanced cost between the misclassifications, Recall,Precision and Specificity could be a suitable option. Precision, Eq. 3, is the ratio of number of correct predictions to the total number of predicted as positive. It represents the proportion of positive classifications that are actually correct. Precision =TP TP+FP (3) When calculating this metric regarding Covid-19 analogy, the result can be see in Eq. 4. Precision =TP TP+FP =1 1+1=0.5 (4) The current model has a precision of 0.5, which means that when predicting if a patient tested positive for Covid-19, it is correct 50% of the time. Sensitivity, Eq.5, measures the proportion of actual positives that are correctly identified as such. Sensitivity =TP TP+FN (5) 2.1. Metrics 8 When calculating this metric regarding the Covid-19 analogy, the result can be seen in Eq. 6. Sensitivity =TP TP+FN =1 1+8=0.11 (6) ASensitivity of 0.11 means that the current model correctly identifies 11% of all positive cases. Specificity, Eq.7, measures the proportion of actual negatives that are correctly identified as such. Speci f icity =TN TN+FN (7) When calculating this metric regarding the Covid-19 analogy, the result can be see in Eq. 8. Speci f icity =TN TN+FN =90 90+8=0.92 (8) This model has a Specificity of 0.92, meaning that it correctly identifies 92% of the negative cases. 2.1.4F1-Score When dealing with use cases such as the infection data for the SARS-CoV-2virus, analysing each one of the previous metrics individually may not provide the full picture. Therefore, to fully evaluate the effectiveness of a model, there is a need to examine these three metrics together. The F1-Score, Eq.9, groups the Precision and the Sensitivity. It is used when there is a need to balance these two metrics, penalising extreme cases, while also taking care of an uneven class distribution, i.e., unbalanced classes, by focusing on the False Negatives and False 2.2. Datasets 15 Figure 7: Example images for KITTI dataset 2.2.3PASCAL Visual Object Classes Dataset Visual Object Classes (VOC) dataset was created in 2012 for the VOC annual challenge, a classification and detection competition. The images were gathered from Flickr. In VOC 2007 the train/validation data has 10,103 images, 23,374 annotated objects, 4,203 segmentations and 20 classes. This dataset was used in methods such as and Extreme Clicking, Sec. 2.5.2. In VOC 2012 the train/validation data has 11,530 images, 27,450 annotated objects, 6,929 segmentations and 30 classes. This dataset was used in methods such as DeepGrabCut, Sec. 2.5.4and Extreme Clicking, Sec. 2.5.2. Examples of images used in VOC 2012 can be seen in Fig. 8. 2.2. Datasets 16 Figure 8: Example images for VOC dataset 2.2.4Microsoft COCO: Common Objects in COntext Microsoft Common Objects in Context (MS COCO) was designed in 2014 to address certain issues in scene understanding: detecting non-iconic views of objects, contextual reasoning between objects and the 2D location of the objects, Lin et al. (2014). The images were gathered from daily scenes. The dataset contains 91 object classes, with a total of 2.5million labelled instances in 330K images. This dataset was used in methods such as DeepGrabCut, Sec. 2.5.4, and DeepExtremeCut, Sec. 2.5.3. Examples of images used in MS COCO can be seen in Fig. 9. Figure 9: Images combined with their masks for MS COCO dataset 2.2. Datasets 17 2.2.5CDNet2014 CDNet2014 is a video dataset designed to allow the evaluation of motion detection approaches. It consists of 31 videos captured with fixed cameras, containing eleven categories: Baseline (images with good quality), Dynamic Background (background and foreground change), Camera Jitter (camera movements), Intermittent Object Motion (background objects moving away, abandoned objects and objects stopping for a short while and then moving away), Shadow (hard and soft shadow and intermittent shades), Thermal (shot by a thermal camera), Bad Weather (shot in bad weather), Low Frame-rate (images with low frame-rate), Night (shot during the night), PTZ (shot with pan–tilt–zoom camera) and Turbulence (shot with turbulence). The spatial resolution from the captured images ranges from 320x240 to 720x576. Examples of images used in CDNet2014 for each category can be seen in Fig. 10. This dataset was used in methods such as FgSegNet, Sec. 2.4.5,FgSegNet v2, Sec. 2.4.6and will be used to evaluate the methods explored in this work. Figure 10: Example images for CDNet2014 dataset 2.2.6SBI2015 SBI2015 dataset was assembled with the objective of evaluating and comparing the results of background initialisation algorithms. It contains frames from 14 video sequences with their 2.2. Datasets 18 corresponding ground-truths, Maddalena and Petrosino (2015). Examples of images used in SBI2015 can be seen in Fig. 11. This dataset was used in methods such as FgSegNet, Sec. 2.4.5,FgSegNet v2, Sec. 2.4.6and will be used to evaluate the methods explored in this work. Figure 11: Example images for SBI2015 dataset 2.2.7Cityscapes Cityscapes dataset captures images regarding outdoor street scenes, Ramos et al.. Every image was acquired with a camera in a moving vehicle across different months, providing not only different scenarios, as well as lighting conditions. It contains 20000 images with annotations. This dataset was used in methods such as EfficientPS,Mohan and Valada (2019), Hierarchical Multi-Scale Attention for Semantic Segmentation, Tao et al. (2020), and will be used to evaluate the methods explored in this work. Examples of images and their corresponding annotations used in CityScapes can be seen in Fig. 12. 2.2. Datasets 19 Figure 12: Raw images on the left and corresponding masks on the right for CityScapes datasets 2.2.8DAVIS: Densely Annotated VIdeo Segmentation Dataset Densely-Annotated VIdeo Segmentation (DAVIS) datasets were created in 2017 for the DAVIS Challenge on Video Object Segmentation, a competition designed for segmenting video objects. The dataset contains images regarding video sequences in various scenarios. Statistics regarding the datasets can be seen in Tab. 2. These datasets were used in methods such as DeepExtremeCut, Sec. 2.5.3and PReMVOS,Luiten et al. (2019). Table 2: DAVIS datasets statistics DAVIS 2016 DAVIS 2017 train val Total train val Total Number of sequences 30 20 50 60 30 80 Number of frames 2079 1376 3455 4219 2023 6242 Number of objects per sequence 1 1 12.30 1.97 2.14 Examples of images used in DAVIS can be seen in Fig. 13. 2.2. Datasets 20 Figure 13: Images combined with their masks for DAVIS datasets 2.2.9KINS KITTI INStance (KINS) dataset augments the KITTI dataset to include amodal instance masks, i.e, a dataset containing occluded objects. It was built in 2019. This dataset contains 14,991 annotated images. It was split into two parts where 7,474 images have been used for training and 7,517 used for testing. Annotations have been made in every image, including amodal instance masks, semantic labels and relative occlusion, from which in-modal instance masks can be easily inferred. It was used in Amodal Instance Segmentation, Sec. 2.4.7. Examples of images and their corresponding annotations used in KINS can be seen in Fig. 14. Figure 14: Images combined with their masks for KINS dataset 2.2. Datasets 21 2.2.10 Summary In Tab. 3we can see a summary of the datasets above. Table 3: Datasets summary comparison Dataset Context Statistics ImageNet Help academic community research >14 million images 21.831 classes 1.034.908 annotations KITTI Mobile robotic and autonomous driving 180 GB of video frames >10 videos 5classes VOC 2007 Measure the precision of recognition methods Train/val has 10.103 images 23.374 annotated objects 4.203 segmentations VOC 2012 Train/val has 11.530 images 27.450 annotated objects 6.929 segmentations MS COCO Scene understanding 91 object classes 330K images 2.5million labelled instances CDNet2014 Evaluate motion detection approaches 31 recorded videos 11 categories SBI2015 Background initialisation algorithms 14 video sequences CityScapes Outdoor street scenarios 20.000 annotations DAVIS 2016 Video Object Segmentation 50 sequences 3455 frames 1object per sequence DAVIS 2017 80 sequences 6242 frames 2.14 object per sequence KINS Amodal segmentation 14.991 annotated images 7.474 training images 7517 testing images 2.3. Bounding Box Object segmentation 22 2.3 bounding box object segmentation Throughout this section, different state of the art methods based on bounding boxes annotations will be presented. The bounding boxes are presented with rectangular drawing of lines from one corner to another of the object in the image as per its shape to make it fully recognisable. In order to train these methods, train/test image datasets with ground truth bounding boxes and assigned class labels are required. 2.3.1Region Based Convolutional Neural Networks Region Based Convolutional Neural Networks (R-CNN) derives from region proposals combined with convolutional neural networks. It applies high-capacity convolutional neural networks to bottom-up region proposals in order to localise and segment objects, with a supervised pre-training for auxiliary tasks, Girshick et al. (2014). R-CNN will take an image as an input, extracting about 2000 bottom-up region proposals. Afterwards, it computes features for each region proposal using a Convolutional neural network (CNN). Lastly, it will classify each of the regions using a Suport Vector Machine (SVM). This overview can be observed in Fig. 15. Figure 15: R-CNN system overview, from Girshick et al. (2014) There are 3modules regarding object detection in R-CNN. The first is responsible for generating category-independent regional proposals that define the set of candidate detectors available to the model’s detector. The second module is a large convolutional neural network responsible for extracting a fixed-length feature vector from each region. The third module consists of a class of support vector machines. This model uses selective search to generate regional categories. Selective search groups regions that are similar based on colour, texture, shape, and size. For feature extraction, 2.3. Bounding Box Object segmentation 23 the model uses a 4096-dimensional feature vector, extracted from the last dense layer, by applying the CNN implementation on each region proposal. Nevertheless, R-CNN has some drawbacks, which were addressed with Fast R-CNN, see Sec. 2.3.2: •Training is a multi-stage pipeline : Tuning a convolutional neural network on object proposals, fitting SVM’s to the Convolutional Network features, and finally learning bounding box regressors. •Training is expensive in time : Because some deep networks could lead to large amount of time to train. •Object detection is slow : Since it performs a Convolutional Network forward pass for each region proposal. 2.3.2Fast R-CNN Fast Region-based Convolutional Network (Fast R-CNN) is an object detection model that improves in its predecessor R-CNN in three different ways, solving the aforementioned drawbacks. Girshick (2015) combined CNN,SVM and Bounding Box Regressor into one single architecture, as seen in Fig. 16. Figure 16: Fast R-CNN architecture, from Girshick (2015) Regarding the architecture, Fast R-CNN: 1. Takes an image as input, processing it with a CNN, resulting in a Feature Map of the image; 2. For each region proposal extract the corresponding part from the feature map, i.e., region proposal feature map; 2.3. Bounding Box Object segmentation 24 3. The region proposal feature map is then flatten, resulting in a feature vector, always with the same size; 4. The feature vector is used as input to 2connected layers, each with its own output. The first output is a Softmax classification layer, deciding which object class was found. The second output is a Bounding Box Regressor, outputting the bounding box coordinates for each object class. Results Dataset: PASCAL VOC 2007 and 2012, Sec. 2.2.3 From the graphs represented in Fig. 17, the authors stated that Fast R-CNN is much faster in training and testing, when compared to R-CNN. Figure 17: Speed performance comparison, from Girshick (2015) Regarding the methods average precision, the authors made a comparison between Fast R-CNN and R-CNN, Sec.2.3.1. Results can be seen in Tab.4. Table 4: mAP results comparison in VOC 2007 and 2012 mAP VOC 2007 VOC 2012 R-CNN 66.0 62.4 Fast R-CNN 70.0 68.4 2.3.3Single Shot MultiBox Detector In Konishi et al. (2016), SSD is presented. It is an object detector algorithm, also serving as a classifier to these objects. 2.4. Pixel based object segmentation 31 Besides these new features, YOLO v4uses CSPDarkNet53 instead of DarkNet53 for the backbone improving the FLOPS and FPS according to the authors. YOLO v5 The last YOLO version is depicted in Bochkovskiy et al. (2020b). Regarding the advancements from YOLO v4to YOLO v5, the latter version uses a PyTorch implementation rather than a fork from the original Darknet, benefiting from the established PyTorch ecosystem: support is simpler, and deployment is easier. One of the major improvements is auto learning bounding box anchors,i.e., in order to make box predictions the YOLO network predicts bounding boxes as deviations from a list of anchor box dimensions, leading to an improved speed and accuracy, according to the authors. 2.4 pixel based object segmentation In this section, state of the art methods containing segmentations made pixel by pixel will be presented. Previous methods used bounding boxes as the annotation method in order to solve Object Detection challenges. As for the current section, it focus solely on segmentation challenges, outputting pixel based segmentation masks. 2.4.1Interactive deep learning method for segmenting moving objects Despite the fact that Cascade CNN, Wang et al. (2014), is outdated, it has historical relevance since some of the following methods were based on this approach, therefore, the present section will address this method and some general information about pixel to pixel segmentation. A method for segmenting foreground moving objects, applied to surveillance cameras, is presented in Cascade CNN, it is an end-to-end model based on Convolutional Neural networks (CNNs) with a cascaded architecture. This approach starts by manually selecting a sub-set of frames containing objects properly delimited, which are then used to train a model. After training, the model is tested to find the segmentation, and respective labels, in unlabelled frames from the test set. More details can be seen in Fig. 25. A basic CNN and a multi-scale CNN model were initially used, but since they process each pixel independently based on the information contained in their local patch, they often produce isolated false positives and false negatives. Taking this in consideration, a Cascaded 2.4. Pixel based object segmentation 32 Figure 25: Cascade CNN pipeline, from Wang et al. (2014) CNN was implemented, as seen in Fig. 26, in order to model the dependencies among adjacent pixels and thus enforce spatial coherence. Figure 26: Cascade CNN architecture, from Wang et al. (2014) 2.4.2Instance-aware Semantic Segmentation via Multi-task Network Cascades In Dai et al. (2016), a Multitask Network Cascade (MNC) for instance-aware semantic segmentation is presented. The entire MNC is being trained end-to-end with a unified loss function, where the input image has an arbitrary size, and the output is the segmentation result. There are 3stages regarding this solution, Dai et al. (2016): 1.Regression Box-Level Instances : The network proposes object instances in the form of class-agnostic bounding boxes. Its structure and loss function follow the work of Region Proposal Networks. 2.4. Pixel based object segmentation 33 2.Regression Mask-Level Instances : It takes stage-1boxes as input, outputting a pixellevel segmentation mask for each box. 3.Categorising Instances : It takes the boxes from stage-1and the masks from stage-2as input, outputting the category scores for each proposed instance. A visual illustration of Multi-task network cascades can be seen in Fig. 27. Figure 27: Multi-task Network Cascades, from Dai et al. (2016) Results Dataset: PASCAL VOC 2012, Sec. 2.2.3 As seen in Tab. 7,mAP results outperform Fast R-CNN, Sec. 2.3.2and R-CNN, Sec. 2.3.1. Table 7: mAP results comparison in MNC Training Data mAP (%) R-CNN VOC 12 62.4 Fast R-CNN VOC12 65.7 Fast R-CNN VOC07++12 68.4 Faster R-CNN VOC12 67.0 Faster R-CNN VOC07++12 70.4 MNC VOC12 73.5 MNC VOC07++12 75.9 2.4.3Image-to-Image Translation with Conditional Adversarial Networks In Isola et al. (2017), a Generative Adversarial Network (GAN) is presented, know as Pix2Pix, used mostly for image-to-image translation. It can also be used in different use cases, such 2.4. Pixel based object segmentation 34 as Deblurring an image, Reconstructing images based on human annotation, Turning sketches into real images, object Segmentation amongst many others. In short, Pix2Pix is an implementation of a generic image-to-image translation using conditional adversarial networks, when given a training set which contains pairs of related images (“A” and “B”), a Pix2Pix model learns how to convert an image of type “A” into an image of type “B”. For example, when containing a colour image ”A” and a black and white image ”B”, Pix2Pix could be trained on a training set of such corresponding pairs to learn how to make full-colour from black and white images, as seen in Fig. 28. If the input image ”A” and ground truth ”B” were related to segmentation, the output would be a segmentation mask instead of the colour image. Figure 28: Input image ”A”, Original colour photograph ”B” and output from Pix2Pix, respectively, from ml4a.github.io/guides/Pix2Pix/ Pix2Pix is based in a Conditional GAN, which provides control over the generated image, e.g., allowing to specify the class to influence the image generation. The generator model is given an image as input generating a translated version of the image. The discriminator model is also given an image as input and a real or generated paired image, determining whether the paired image is fake or real. Thus, the generator model is trained to both fool the discriminator model and to minimise the loss between the generated image and the expected target image. 2.4.4Mask R-CNN He et al. (2017) presents as an extension of the Faster R-CNN architecture presented in Sec. 2.3.4. In Mask-RCNN, objects are classified and localised using a bounding box and semantic segmentation, classifying each pixel into a set of categories. In comparison to Faster R-CNN, this model produces two outputs, a bounding box with a class label as well as the segmenta- 2.4. Pixel based object segmentation 35 tion mask. The authors selected ResNet101 for the backbone architecture for the feature extraction step, as opposed to ConvNet used in Faster R-CNN. These features act as an input for the next layer. The obtained feature maps are applied to a region proposal network, predicting if an object is present in that region or not, obtaining regions which the model predicts contain some object. The next steps are similar to Faster R-CNN, except for the segmentation mask generation. To achieve this, the RoI is computed, then for every region, IoU is computed with the ground truth boxes. If IoU is equal or greater than 0.5, then that region is considered of interest. Once every RoI has been calculated with the IoU values, a mask branch is added to the existing architecture, returning the segmentation mask for each region that contains an object, Fig.29. Figure 29: Mask R-CNN framework for instance segmentation, from He et al. (2017) 2.4.5 Foreground Segmentation Using a Triplet Convolutional Neural Network for Multiscale Feature Encoding Regarding the architecture, FgSegNet contains a CNN operating in 3different scales, in parallel, for the feature encoding, The CNN’s output a Feature Map, which after being concatenated are used as input to a Transposed CNN for the decoding. This Transposed CNN outputs the segmentation mask. More details can be seen in Fig.30. An encoder-decoder neural network is used in this approach. A VGG-16 pre-trained neural network is used under a triplet framework in the encoder part, to embed an image in multiple scales into the feature space. Multiple scales are being used to better understand the contextual relation of a local region with its surrounding. A transposed convolutional network is used in the decoder part to learn a mapping from feature space to image space. At 2.4. Pixel based object segmentation 36 Figure 30: FgSegNet Architecture, from Lim and Yalim Keles (2018) the end, a foreground segmentation probability map for the given image is being produced, Lim and Yalim Keles (2018). 2.4.6Learning Multi Scale Features for Foreground Segmentation In FgSegNet v2,Lim and Keles (2019), the aim is to improve segmentation on moving objects from the background in a robust way under various challenging scenarios. This is a variation method based on FgSegNet, Sec. 2.4.5, extending its feature pooling module by introducing a fusion of features inside this module, thus extracting multi-scale features within images, resulting in a sturdy feature pooling against camera motion, alleviating the need of multi-scale inputs to the network. As seen in Fig. 31, a VGG-16 is being used as an encoder for the network, receiving a raw image as input. The VGG-16 was altered by the authors, removing a pooling layer, obtaining higher-resolution feature maps, which will be used as input for the feature pooling module (M FPM), and consequently as input for the decoder, working with two Global Average Pooling (GAP) modules, returning the segmentation mask from the input image. Figure 31: FgSegNet v2Architecture, from Lim and Keles (2019) 2.4. Pixel based object segmentation 37 Regarding the M FPM, feature maps are obtained from the encoder, and given as input for the M FPM to every layer. These layers output features of their own, which will be concatenated with the decoder features and the next layer features each time, until every feature is concatenated, forming 5X64 depth features, followed by Instance Normalization and Spatial Dropout layers. A graphical representation of the M FPM module can be seen in Fig. 32. Figure 32: M FPM module, from Lim and Keles (2019) Results Dataset: CDNet2014, Sec. 2.2.5and SBI2015, Sec. 2.2.6 A comparison between FgSegNet v2, FgSegNet, Sec.2.4.5and CascadeCNN, Sec.2.4.1is presented using Precision, Recall and F-Measure, Tab.8. Table 8: Overall results in CDNet2014 dataset, by making a mean between every class and using every frame for training and testing Precision Recall F-Measure FgSegNet v2 0.9823 0.9891 0.9847 FgSegNet 0.9758 0.9836 0.9770 CascadeCNN 0.8997 0.9506 0.9209 As for SBI2015 dataset, a comparison between the same methods is presented in Tab.9, using F-Measure and Percentage of Wrong Classifications (PWC) as chosen metrics. As seen in Tab.8and Tab.9, the current method outperforms both FgSegNet and CascadeCNN. 2.4. Pixel based object segmentation 38 Table 9: Overall results in the SBI2015 dataset, by making a mean between every class and using every frame for training and testing PWC F-Measure FgSegNet v2 0.7148 0.9853 FgSegNet 0.9431 0.9794 CascadeCNN -0.8932 2.4.7Amodal Instance Segmentation with KINS Dataset Qi et al. (2019) aims to take instance segmentation into a new, unexplored path, called amodal segmentation, aiming to segment each of the objects instance involving its occluded parts, as seen in Fig. 33, imitating what a human annotator would do, when he visually imagines the full object. Figure 33: Amodal mask example, from Qi et al. (2019) Amodal perception is a common human task ability, allowing a person to gather information from an object, not only from its visible parts, but also from the hidden ones. This work aims to transmit this human behaviour to computer vision. The structure used was based in Mask R-CNN. The newly developed amodal segmentation network adds an additional occlusion classification branch and Multi-Level Coding (MLC). The latter is used in order to combine multi-branches features, guiding mask prediction by two modules, including extraction and combination, as seen in Fig. 34. Figure 34: Amodal instance segmentation model, from Qi et al. (2019) 2.5. Alternative annotation methods - Excluding regular Bounding Boxes 39 No results are going to be presented, since they do not show comparable results with the others, only providing a very low average precision. Nevertheless, this is still an interesting method to analyse and to possibly follow its development. 2.5 alternative annotation methods -excluding regular bounding boxes Drawing Bounding Boxes, in order to create a labelled dataset, is a time consuming process. Segmenting images is even more costly. Some authors tried to improve this process, by using other annotation methods which could help create the dataset and potentially improve the segmentation process. It should be noted that these are not automatic methods, and require human interaction. The most relevant of these class-agnostic methods will be presented throughout this section. 2.5.1GrabCut - Interactive Foreground Extraction using Iterated Graph Cuts Rother et al. (2004) addresses the problem of extracting a foreground object from the background when a trivial background subtraction is not effective. The user is requested to mark a single rectangle around the object of interest, defining the outer part of the rectangle as definite background, and the inner part of it as an unknown combination of the object (foreground) and some background. GrabCut uses the power of ”Graph Cut” algorithm, Lerm ´ e et al. (2010), which was designed to solve ”Min Cut/Max Flow” problem. The theoretic prologue of the algorithm starts with defining an optimisation problem (Energy cost function) which can be solved by creating a specific graph model (weighted edges) - and running the GraphCut algorithm over the graph. In order to solve this optimisation problem, the ”Graph Cut” method is being used. Creating a graph with weights as in Fig. 35, and then running the ”Min-Cut” algorithm yields 2groups of vertices (each vertex representing a pixel) with labelling that minimises the cost function. The creation of the graph is made by taking N vertices (N = number of image pixels) and linking neighbouring vertices (meaning vertices which represent neighbouring pixels) with edges whose weights are defined by the vertices pixels colour similarity. Next step is to add 2more vertices (representing foreground and background labels) to the graph, each of which linked to all of the N pixels with an edge whose weight is defined by the probability 2.5. Alternative annotation methods - Excluding regular Bounding Boxes 40 Figure 35: Graph produced by GrabCut, from Rother et al. (2004) of the pixel to match a colour distribution of the background/foreground. In order to get the Background/Foreground labelling weights, two k-Gaussian Mixture Models are generated - one according to Certain-Background pixels (outside the rectangle) colour distribution, and one according to Uncertain-might-be-Foreground pixels (inside of the rectangle). After applying the min-cut algorithm to this graph, we get a new label for each pixel - these labels are the starting point for the next iteration (with Certain-Background pixels now being the ones which are labelled as background), resulting in an iterative Expectation-Maximisation method, Rother et al. (2004). 2.5.2Extreme Clicking for efficient object annotation Papadopoulos et al. (2017) proposed a different annotation method, consisting in improving the bounding box annotations with extreme clicking. In extreme clicking, the user needs to select 4extreme points regarding the object, i.e. the top, bottom, left and right. With this process, the annotation process is faster when compared with bounding boxes, according to the author. An example of the comparison between bounding boxes (Left) and extreme clicks (Right) can be seen in Fig. 36, being the motorcycle the chosen instance. After the annotation has been made, it can be integrated in different segmentation methods. For each pair of consecutive extreme clicks, a path connecting them which is most likely to belong to the object boundary must be found. To perform this, an edge detector, Dollar and Zitnick (2013), is applied to obtain a boundary probability for every pixel of the image. 2.6. Summary 47 Alternative annotation methods - Excluding regular Bounding Boxes Table 16: Alternative annotation methods - Excluding regular Bounding Boxes Alternative annotation methods - Excluding regular Bounding Boxes Dataset Overview GrabCut - - Image segmentation method based on graph cuts; - Using a bounding box around the object, it estimates the color distribution using a Gaussian mixture model. Extreme Clicking PASCAL VOC 07 PASCAL VOC 12 - Change bounding box annotations to extreme points annotation; - Annotation is made by clicking in 4extreme points from the object(s) in the image DeepExtremeCut GrabCut - Annotation is ExtremeClicking; - A CNN is used, containing a Gaussian centered in each of the extreme points; - The CNN learns to transform this information, in order to build a segmentation of the object. DeepGrabCut PASCAL VOC 12 MS COCO - Improves bounding box annotations, allowing to use bounding boxes too tight or too loose; - Transforms the bounding boxes into an euclidean distance map, concatenating it with the input image for a convolutional encoder-decoder network; - The final prediction consists in the segmentation mask of the object. 2.6. Summary 48 2.6.2Conceptual map The following conceptual map contains the methods previously explained in the State of the art. Each one of them contains the name regarding the method, a representative colour and the publishing year. The colour red refers to Object segmentation with Bounding Box , Sec. 2.3; green refers to Object segmentation pixel by pixel , Sec. 2.4; yellow refers to Alternative annotation methods - Excluding regular Bounding Boxes, Sec. 2.5. Figure 40: SOTA Conceptual map 3 DEVELOPMENT In this chapter, the work developed to achieve object segmentation in specific use cases is presented. It will start discussing the problem and its challenges, Sec. 3.1, followed by the exploration of alternatives to define a semi automatic process for the dataset expansion, Sec. 3.2, testing FgSegNet v2and DeepExtremeCut. Afterwards, a variation of FgSegNet v2is proposed, Sec.3.3. Results and conclusions are presented for each step of the work. 3.1 the problem and its challenges Fleet service vehicles are being used throughout the world in multiple companies, including in BOSCH. One way to improve the commodity of the commuter in these vehicles is by warning them whenever they leave an object inside the cockpit. These objects could be coins, cellphones, cables, amongst many others. Besides that, whenever the commuter leaves any kind of dirt in the car, there is a need to warn the administration that the car should be serviced before being used by the next commuter. The aforementioned challenge is within the domain of object detection and segmentation. With a camera inside the vehicle cockpit, the objective is that whenever an object or dirt are left inside the car, the camera automatically detects them, triggering an alarm and sending the issue directly to the system administrators. The dataset used to achieve this task consists of images gathered from a fixed camera inside the vehicle cockpit. The detection of these objects can be achieved using segmentation algorithms as described in Chap. 2, in order to provide more information about the object(s) inside the car, helping in the detection process. Such a solution comes with the following challenges: 49 3.2. Exploring solutions for dataset augmentation 50 • The dataset needs to be as large as possible and many images are too blurry or poorly lit. • The model should be able to deal with a large variety of heterogeneous objects, e.g., coins, umbrellas, and objects with irregular shape, e.g., dirt scattered along the vehicles seat. The dataset will most likely not include all types of objects. Although many state of art techniques exist with the segmentation purpose, they could potentially fail due to the scarcity of annotated images and the diversity of the objects to be segmented. The goal of this work is not to augment the dataset, but instead to propose a method that allows such an augmentation to be performed with the minimal human intervention possible. Therefore, to solve this challenge, this dissertation is divided in two main parts: 1. Testing existing state of the art algorithms in the dataset; 2. Develop and propose a variant of a state of the art method. 3.2 exploring solutions for dataset augmentation Since the provided annotated dataset is too small, there is a need to gather more images to add to it. This will be done by analysing the existent dataset, testing the relevant state of the art methods on it, analysing these results, and evaluating if the method could be a possible solution to increase the dataset in a semi-automatic way. 3.2.1Initial dataset The images for this dataset were collected through the capture of images with a fixed camera inside vehicles cockpit. In Fig. 41 a clean cockpit of the vehicle is being shown. Many objects were put inside the vehicle in different conditions in order to recreate real life examples. This diversity will also help to train the network to deal with many different objects in various locations of the vehicle. Objects containing different sizes, as seen in Fig.42, a bottle on the left image and backpack / pillow / hanger on the right image. Besides containing different objects, either in terms of shape or dimensions, these will also be placed across diverse zones inside the cockpit. They could be in the seats, the hand console, the doors, the floor or in any other part of the vehicle. 3.2. Exploring solutions for dataset augmentation 51 Figure 41: Clean cockpit Figure 42: Objects with different sizes - bottle on the left image and backpack / pillow / hanger on the right image Apart from these objects, which could be left behind by the commuter, dirt is also something commonly found. See Fig. 43 for an example. Other relevant challenges are: •Time: When facing different hours, there is a variation in the lighting conditions; •Blurred images : The lens could be slightly dirty, fogged or jittering, producing blurry images. These could be a problem when it comes to segmenting the objects that these images contain. In Fig. 44 there is an image with good lighting, poor lighting conditions and with blurry conditions, resulting from condensation in the camera lens, respectively. 3.2. Exploring solutions for dataset augmentation 52 Figure 43: Dirt inside the cockpit Figure 44: Images in different conditions Some extra changes inside the cockpit may result in a problem, i.e., seats might be tilted down, the steering wheel may have been adjusted, the glove box, doors and windows could be open, amongst many other changes. Even though this dataset contains some images and their corresponding annotations, it still did not contain enough images, so one of the objectives is to study one or more methods which will allow the dataset to grow in a semi-automatic form. Therefore, the next step consists in testing two segmentation methods with this dataset, to analyse it’s behaviour. 3.2. Exploring solutions for dataset augmentation 53 3.2.2DeepExtremeCut testing The first segmentation method used is DeepExtremeCut, Sec.2.5.3. It contains a framework where it is possible to select the 4extreme points of the object(s) of interest, producing the resulting segmentation. After training the model with BOSCH’s dataset, Sec. 3.2.1, tests were conducted in it. As seen in Fig. 45 , it produces segmentations with adequate results by selecting the extreme points. Multiple objects can be selected in the same image, differentiating them by colour. Figure 45: DeepExtremeCut tests in BOSCH’s dataset Even though this method produces good segmentations on a first analysis, it is too time consuming, since there is a need to individually annotate every object in every image, evaluating these results one by one, therefore, a more automatic method will be used. 3.2. Exploring solutions for dataset augmentation 54 Nevertheless, when dealing with specific images containing objects with irregular shapes or some other issues, this method could still be used. 3.2.3FgSegNet v2Testing The other used method is FgSegNet v2, Sec.2.4.6, therefore, this section reports on the tests performed with it, trained with BOSCH’s dataset. The training was conducted in various phases, first with 100 images, followed by 700 images, and lastly with 1000 images. In Tab. 17 are the results with these 3training sets. Each column represents the test, number of images in training, number of images in validation, accuracy per pixel (%), and validation accuracy by pixel (%). Table 17: Training with FgSegNet #ImagesTrain #ImagesVal Acc Val acc Train #180 20 0.9879 0.9899 Train #2560 140 0.9992 0.9988 Train #3800 200 0.9993 0.9988 Accuracy, Sec.2.1.2,MCC, Sec.2.1.5,AUC, Sec.2.1.6and mIoU, Sec.2.1.7, are the metrics used throughout this project in order to fully comprehend the problem. AUC is going to be used in order to see how many true positives there are, allowing us to analyse if the current model detects the objects correctly. BOSCH’s dataset is very imbalanced, with a much bigger area of background when compared to the foreground. With MCC metric it is possible to analyse the segmentation success in the true positives. mIoU is going to be used in order to better understand if the amount of predicted values is intersecting correctly with the real values. As seen in Tab. 18, when increasing the number of training images, both metrics are also going to improve. Table 18: Metrics for different training AUC MCC (peak) mIOU Train #196.02 0.45 0.6425 Train #298.17 0.72 0.7809 Train #399.35 0.75 0.7981 3.2. Exploring solutions for dataset augmentation 55 Train with 100 images As seen in Fig. 46, there are still many problems on the segmentation. On the left, the image presents a heatmap producing low probability for the white object, and failing to identify the laptop. On the right, this model considers part of the hand console as an object and does not segment the small white object properly. Nevertheless, this is still a good starting point. Figure 46: FgSegNet v2test with 100 training images Train with 1000 images As seen in Fig. 47, some major improvements have been achieved. On the left, the white object is almost being fully segmented, the laptop has been partly identified and segmented, and the model even (correctly) detected a dark object under the drivers seat. On the right, hand console has no longer been classified as an object, and there were some improvements on the white object segmentation. Nevertheless, there are still a lot of issues to be solved. 3.3. Exploring variations for FgSegNet v2 56 Figure 47: FgSegNet v2test with 1000 training images Summary As expected, when increasing the number of training images, the number of true positives also improves, providing better segmentations. Nevertheless, as seen in Fig. 48, there are still some issues, mainly regarding the shadows, since some of them are being detected as objects, but also regarding objects ”camouflaged” with the background, such as cellphones and laptops, since these are being mostly considered as background. This is still not an optimal solution, since some images contain too many issues, therefore, an ablation study of FgSegNet v2will be made, to better understand how to improve this method. 3.3 exploring variations for fgsegnet v2 Using Lim and Keles (2019) as a starting point, some ablation tests on FgSegNet v2, Fig.49, were made using BOSCH’s dataset, in order to understand the importance of the different components in the architecture and if some could be improved. Besides using the 1000 images for training, as in the previous section, the total amount of images used for the 3.3. Exploring variations for FgSegNet v2 63 FPM Summary With this analysis, the final result of the FPM module is as follows: •Dilation rate layers: Add layer with dilation rate = 2; •Concatenations : Delete every concatenation from pooling layer and Only keep the final output with layer r=16 as input for SpatialDropout. Other FPM tests Some additional tests were made with the previous ones, i.e. changing some layers and the optimizer, resulting in many more results and leading to an extensive and possibly confusing previous section. Therefore, even though no numeric values are being presented, it is still important to mention these changes. •Optimizer : Adam, Kingma and Ba (2015), was the chosen one, as it provides better results amongst other tested optimizers, i.e., RMSProp, Gradient Descent, AdaGrad, Duchi et al. (2012) and AdaDelta, Zeiler (2012). •Normalization layer : BatchNormalization ensured better results than Instance Normalization. •Dropout : Dropout is used instead of Spatial Dropout. The latter promoted independence between the resultant feature maps by dropping them in their entirety, correlating the adjacent pixels. Since only one feature map is being produced, there is no need to fully drop it, dropping only individual neurons with probability 1-p. 3.3.2Decoder The decoder in Lim and Keles (2019) uses three Convolutional layers 3X3, followed by Instance Normalization, and multiplies the output of the first two layers with the output of the Encoder and GAP. The full architecture can be seen in Fig. 54. 3.3. Exploring variations for FgSegNet v2 64 Figure 54: FgSegNet original decoder, from Lim and Keles (2019) For the decoder it will be explored the relevance of GAP and the influence of the concatenations and multiplications. Global Average Pooling The first stage consists in analysing the importance of GAP, maintaining the output of the Encoder or removing it. The tests are (1) Remove the first GAP and its corresponding Encoder’s output, (2) Remove the second GAP and its corresponding Encoder’s output, (3) Remove both GAP and the Encoder’s output, (4) Remove first GAP but keep the corresponding Encoder’s output, (5) Remove second GAP but keep the corresponding Encoder’s output and (6) Remove both GAP but keep both Encoder’s output. As seen in Tab.21, (4) and (6) produce the worst results, decreasing the AUC,MCC and mIoU. As for the other configurations, they produce an overall increase in every metric. When removing both GAP modules and the Encoder’s outputs, option (3), the MCC and mIoU record the highest values, therefore the other configurations will be discarded. More details in Fig.55. Table 21: Overall results when changing the Global Average Pooling. (0) represents the best value in Sec.3.3.1 acc AUC mIoU MCC (0)0.9997 98.89 0.8160 0.7813 (1)0.9996 97.95 0.8070 0.7630 (2)0.9997 98.95 0.8194 0.7811 (3)0.9997 98.90 0.8290 0.8011 (4)0.9996 96.70 0.7666 0.6988 (5)0.9996 96.70 0.8097 0.7682 (6)0.9996 98.70 0.7900 0.7405 3.3. Exploring variations for FgSegNet v2 65 Figure 55: Remove both GAP and the Encoder’s output Concatenations and multiplications To evaluate the relevance of the multiplications between the output of the first two layers in the Decoder and the output of the Encoder additional tests were performed: (1) Remove first multiplication, (2) Remove second multiplication and (3) Remove both multiplications. As seen in Tab.22 overall the results decrease when compared to (0) from the previous stage, hence these configurations will be discarded. Table 22: Changes in the Decoder, by changing the multiplications between the GAP and the dense layers. (0) represents the best value in Sec.3.3.1 acc AUC mIoU MCC (0)0.9997 98.80 0.8290 0.8011 (1)0.9996 99.17 0.8116 0.7695 (2)0.9996 98.53 0.8072 0.7626 (3)0.9995 98.31 0.7792 0.7190 3.3.3Encoder Keeping the previous configurations of the FPM and the Decoder, three tests were made in the Encoder, changing the VGG-16 backbone to (1)Inception v3,Szegedy et al. (2016) (2) Xception,Chollet (2017) and (3)Inception ResNet v2,Szegedy et al. (2017). When comparing these three models with VGG-16, the latter produces better results in every metric,e.g., in the F-Measure and MCC as seen in Tab.23. Therefore no changes were made when compared to FgSegNet v2. 3.3. Exploring variations for FgSegNet v2 66 Table 23: Changes in the Encoder. (0) represents the best value in Sec.3.3.1 acc AUC mIoU MCC (0)0.9997 98.80 0.8290 0.8011 (1)0.9987 96.27 0.7281 0.7018 (2)0.9988 96.99 0.7517 0.7219 (3)0.9988 96.12 0.7696 0.7283 3.3.4Mod FgSegNet Summary With the previous tests completed, a final model of the Mod FgSegNet is now presented, Fig.56. Figure 56: Mod FgSegNet architecture The Encoder is as follows in Fig. 57, i.e., no changes have been made regarding the one used in FgSegNet v2. Figure 57: VGG-16 architecture The FPM module receives the features from the encoder in order to correlate them at different scales, making it easier for the decoder to reconstruct the input image. After numerous experiments and tests, an improvement to the original FPM configuration was made. A convolutional layer with dilation rate = 2is introduced, followed by the removal of the pooling layer. The output of the last layer, i.e., convolutional with dilation rate = 16, proceeds to Batch Normalization. 3.3. Exploring variations for FgSegNet v2 67 Figure 58: Modified FPM The Decoder receives the output Features from the FPM, followed by 3blocks, each containing a 3x3convolutional layer, followed by an Instance Normalization. The output of these 3blocks goes to a 1x1Convolutional layer, outputting the segmentation mask. More details in Fig. 59. Figure 59: Modified decoder Regarding the training details: •Input image =512 X512 •Batch Size =4 •Optimizer = Adam •Loss = Binary Cross Entropy 3.3. Exploring variations for FgSegNet v2 68 •Callbacks : EarlyStopping ( if the validation loss does not improve after 10 epochs, the train stops ) and ReduceLROnPlateau ( the learning rate starts at 1e-4, and is reduced after 5epochs by a factor of 0.1if it stagnates). When it comes to the best results in the metrics, Mod FgSegNet overcomes the FgSegNet v2 in almost every metric, except for the AUC, see Tab. 24. Table 24: Comparison between FgSegNet v2and our proposed method acc AUC mIoU MCC Mod FgSegNet 0.9997 98.73 0.8290 0.8011 FgSegNet v20.9993 99.35 0.7850 0.7500 Regarding the visual results, Mod FgSegNet also shows considerable improvements when compared to FgSegNet v2, as seen in Fig. 60. In the first and second rows there is an improvement regarding the shadows. FgSegNet v2solution is still detecting the shadow as an object with a high probability ( colour yellow ), while in our solution, there is almost no detected shadow or with low probability. As for the third row, it shows an improvement regarding white objects that could camouflage in the cockpit due to the outside light. FgSegNet v2did not even detect the objects, but our proposed solution makes an accurate segmentation for both of them. Forth row shows that dark objects, or in low lighting conditions, also produce an improvement when compared to FgSegNet v2, segmenting great part of the cellphone. 3.3. Exploring variations for FgSegNet v2 69 Figure 60: Visual results representing objects’ flaws. The columns show Mod FgSegNet,FgSegNet v2 and ground truth respectively 4 PUBLIC DATASETS RESULTS After defining the configuration of the adapted FgSegNet v2, the objective was to understand how much generalisation this method was able to support. Therefore, three datasets with different conditions will be used. The SBI2015 , Sec.2.2.6, CDNet2014 , Sec.2.2.5and CityScapes, Sec.2.2.7. 4.1 cdnet2014 CDNet2014 dataset, mentioned in Sec.2.2.5, contains 11 categories, each with their own sub-category. BadWeather,Baseline,CameraJitter,DynamicBackground,IntermittentObjectMotion, LowFramerate,NightVideos,PTZ,Shadow,Thermal and Turbulence. Besides containing different scenarios, the images from the dataset have different quality, such as lighting, blurriness, etc. making it a very complete dataset for segmentation. Mod FgSegNet works in a supervised environment, receiving as input a raw image with its corresponding ground-truth, i.e., a mask, as seen in Fig. 61. Figure 61: Two examples of the input that our proposed method receives, a raw image and its corresponding mask 4.1.1Metric evaluation The training set in CDNet2014 contains 200 frames per category. To test trained models, code available for testing in the changedetection competition ( changedetection.net ) was adapted. First, extracting the masks, then applying a different 70 4.1. CDNet2014 71 Table 25: Results comparison between (1) Mod FgSegNet and (2) FgSegnet v2using 200 frames for training across the 11 categories FPR FNR Recall Precision PWC F-Measure MCC mIoU Baseline (1)6e-42e-3 0.9979 0.9974 0.0129 0.9975 0.9973 0.9975 (2)4e-43.8e-3 0.9962 0.9985 0.0117 0.9936 0.9932 0.9933 Low Fr. (1)4.8e-3 4.1e-3 0.9956 0.9910 0.0569 0.9939 0.9931 0.9934 (2)8e-4 9.5e-2 0.9044 0.8782 0.0299 0.8897 0.8889 0.8893 Night V. (1)7.4e-41.5e-2 0.9848 0.9785 0.1245 0.9816 0.9811 0.9814 (2)2.2e-43.6e-2 0.9637 0.9861 0.0802 0.9747 0.9741 0.9745 PTZ (1)6e-4 2.3e-20.9888 0.9902 0.0471 0.9922 0.9918 0.9920 (2)4e-4 2.1e-20.9785 0.9834 0.0128 0.9809 0.9801 0.9803 Turbulence (1)3e-4 2.5e-20.9861 0.9826 0.0417 0.9878 0.9867 0.9870 (2)1.1e-4 2.2e-20.9779 0.9747 0.0232 0.9762 0.9722 0.9738 Bad Wea. (1)1.3e-4 1e-2 0.9913 0.9914 0.0379 0.9881 0.9878 0.9880 (2)9e-5 2.1e-2 0.9785 0.9911 0.0295 0.9848 0.9843 0.9845 Dyn.Back. (1)3e-5 7.4e-30.9958 0.9959 0.0067 0.9960 0.9957 0.9959 (2)1.5e-4 1e-20.9925 0.9840 0.0054 0.9881 0.9878 0.9880 Cam.Jitter (1)1.6e-42.5e-3 0.9974 0.9940 0.0275 0.9957 0.9952 0.9955 (2)1.2e-49.3e-3 0.9907 0.9965 0.0438 0.9936 0.9930 0.9933 Int.Obj.Mot. (1)2.3e-4 7.4e-30.9925 0.9972 0.0672 0.9948 0.9945 0.9946 (2)1.5e-4 1e-20.9896 0.9976 0.0707 0.9935 0.9932 0.9934 Shadow (1)4e-41.6e-20.9909 0.9942 0.0542 0.9938 0.9935 0.9936 (2)2.4e-48.9e-30.9911 0.9947 0.0575 0.9929 0.9919 0.9924 Thermal (1)2e-42.7e-3 0.9972 0.9954 0.0302 0.9963 0.9959 0.9962 (2)1e-45.6e-3 0.9944 0.9974 0.0290 0.9959 0.9951 0.9954 Mean (1)7.4e-41e-2 0.9926 0.9916 0.0459 0.9925 0.9920 0.9922 (2)2.5e-42.4e-2 0.9780 0.9802 0.0357 0.9785 0.9776 0.9780 threshold for each one and calculating the metrics for every threshold. In CDNet2014 the top state of the art method is FgSegNet v2, and we compared our results with theirs. As seen in Tab. 25, when using 200 frames for training, we overcome most metrics, except for FPR and PWC, easily observed in the mean, surpassing the top state of the art. The most significant result is in the LowFramerate category, with an increase in the mIoU from 0.8897 to 0.9939. 4.1.2Visual results To sustain the previous results and in order to observe the diversity of the dataset, Fig. 62, Fig. 63 and Fig. 64 serve as examples. The first column represents the raw image ( input ), the second column the ground-truth ( input ) and the last column the output mask produced by our proposed method. 4.1. CDNet2014 72 Figure 62: Results for the CDNet2014 dataset. First row has Baseline category with sub-category Office, second the Baseline category with sub-category Pedestrians, third the CameraJitter category with sub-category Boulevard, fourth the CameraJitter category with sub-category Sidewalk and fifth the BadWeather category with sub-category Skating When comparing the visual results with FgSegNet v2, the results look very similar, therefore no visual comparison has been made. Except for the LowFrameRate class, when comparing the difference between our method with the groundtruth and FgSegNet v2with the groundtruth, out method outperforms the latter, which can be seen in Fig. 65. 4.2. SBI2015 79 Figure 67: Results for the SBI2015 dataset. First row represents the Foliage category, second the HallAndMonitor category, third the Highway1category and fourth the Highway2category Figure 68: Results for the SBI2015 dataset. First row represents the HumanBody2category, second the ibmtest2category, third the PeopleAndFoliage category and fourth the Snellen category 4.3. CityScapes 80 4.3 cityscapes CityScapes dataset, mentioned in Sec.2.2.7, contains 30 classes, such as vehicles, citizens, traffic signs, road, amongst others. To make it more diverse, the background of the dataset is set in 50 different cities and in each season of the year. Regarding the training images, the ground truth is composed by an image with every class represented with a specific colour, e.g., the class Road corresponds to the RGB (128,64, 128), therefore the ground truth image needs to be treated, choosing the RGB corresponding to the class we want to segment , as seen in Fig. 69. Figure 69: Two examples of the input that our proposed method receives, a raw image and its corresponding mask 4.3.1Metric evaluation Regarding the metric evaluation on the CityScapes dataset, the classes we focused on are Road,Citizens and Traffic Signs due to their relevance in the dataset. Table 27: Results in the CityScapes dataset in the class Road,Citizens and Traffic Signs AUC MCC mIoU Road 99.61 0.9555 0.9564 Citizens 99.31 0.7552 0.8019 Traffic Signs 97.72 0.6618 0.7425 As seen in Tab. 27, the AUC produces good results, meaning that almost everything is being detected. In the MCC and mIoU, as a first approach, the results also produce high values, which means that the segmentation is being produced with a fairly high quality, except for the Traffic Signs class, producing lower results due to its complexity. There are no comparable results with other methods, since these metrics were not publicly available. Due to the lack of time and resources, only three classes have been tested in this dataset. Nevertheless, this was still important work to analyse the method’s generalisation capability. 4.3. CityScapes 81 4.3.2Visual results When it comes to the visuals, the method produces great results in the Citizens and Road class. When it comes to the Traffic Signs dataset, it still has some problems, not being able to segment them as good as the other two classes. This discrepancy could serve as an indicator for future work, to try to understand the reason behind it. More details can be seen in Fig. 70, Fig. 71 and Fig. 72. Figure 70: Mask produced in the Citizens class Figure 71: Mask produced in the Traffic Signs class Figure 72: Mask produced in the Road class 5 CONCLUSION A project related to autonomous driving started being developed at BOSCH, divided in many phases. The one present in this dissertation is object detection/segmentation of objects/dirt left inside a vehicle. The main objective was to increase a dataset’s size provided by BOSCH ( containing images inside a vehicles cockpit with many diverse objects/dirt ) in a semi-automatic way, by studying some state of the art methods regarding object detection/segmentation and testing variations in one or more of these methods. The first used method was DeepExtremeCut, and even though it provided good segmentation results, it required too much human effort, since every object needed a manual annotation, therefore the second method used was FgSegNet v2. With a successful ablation study performed in FgSegNet v2, the results allow for an increase of the dataset with a reduced intervention, since this is an automatic segmentation method with little human work, resulting in an improved method called Mod FgSegNet. By changing the Feature Pooling Module, i.e., deleting the pooling layer and only maintaining the output from the layer with dilation rate of 16, and the Decoder, i.e., removing the GAP modules, a more simplified and efficient approach is made, preserving the low number of needed training images feature while improving the overall results. When applying Mod FgSegNet to BOSCH’s dataset, it outperforms FgSegNet v2in almost every metric. Regarding the visual results, it also presents considerable improvements, mainly regarding shadows, camouflaged objects due to external lighting, dark objects and low lighting conditions. This developed method was partially validated in public datasets, proving it’s generalisation. These datasets were CDNET2014 , (2) SBI2015 , and (3) CityScapes . It outperforms every state of the art method in most metrics considering the ChangeDetection2014 challenge, in particular in the LowFrameRate images. Regarding the SBI2015 , the results decrease when compared with FgSegNet v2, this could be due to the tuning made specifically for BOSCH’s dataset. When applied to the CityScapes dataset, good results have been shown in the Road and Citizens class, not providing so great results in the Traffic Signs class. Nevertheless, the objective was still fulfilled, since more reliable masks can be produced to add to BOSCH’s dataset, maintaining a generalisation, since it can still be applied to other datasets. 82 83 As future work, we are going to focus on the CityScapes dataset, testing every other category and comparing them with public methods, trying to understand how to also improve the Traffic Signs class. A more thorough analysis of the SBI2015 is also going to be made, to try and understand why some of the results decreased. BIBLIOGRAPHY Alexey Bochkovskiy, Chien-Yao Wang, and Hong-Yuan Mark Liao. YOLOv4: Optimal Speed and Accuracy of Object Detection. 2020a. URL http://arxiv.org/abs/2004.10934. Alexey Bochkovskiy, Chien-Yao Wang, and Hong-Yuan Mark Liao. YOLOv4: Optimal Speed and Accuracy of Object Detection. 2020b. URL http://arxiv.org/abs/2004.10934. Fran c¸ ois Chollet. Xception: Deep learning with depthwise separable convolutions. Proceedings - 30th IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, 2017-January:1800–1807,2017. doi: 10.1109/CVPR.2017.195. Jifeng Dai, Kaiming He, and Jian Sun. Instance-Aware Semantic Segmentation via Multi-task Network Cascades. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition,2016-Decem:3150–3158,2016. ISSN 10636919. doi: 10.1109/CVPR. 2016.343. Piotr Dollar and C. Lawrence Zitnick. Structured forests for fast edge detection. Proceedings of the IEEE International Conference on Computer Vision, pages 1841–1848,2013. doi: 10.1109/ ICCV.2013.231. Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. pages 1–21,2020. URL http://arxiv.org/abs/2010.11929. John C. Duchi, Peter L. Bartlett, and Martin J. Wainwright. Randomized smoothing for (parallel) stochastic optimization. Proceedings of the IEEE Conference on Decision and Control, 12:5442–5444,2012. ISSN 01912216. doi: 10.1109/CDC.2012.6426698. Pierre Foret, Ariel Kleiner, Hossein Mobahi, and Behnam Neyshabur. Sharpness-Aware Minimization for Efficiently Improving Generalization. pages 1–22,2020. ISSN 23318422. URL http://arxiv.org/abs/2010.01412. A. Geiger, P. Lenz, C. Stiller, and R. Urtasun. Vision meets robotics: The KITTI dataset. International Journal of Robotics Research,32(11):1231–1237,2013. ISSN 02783649. doi: 10.1177/0278364913491297. 84 bibliography 85 Ross Girshick. Fast R-CNN. Proceedings of the IEEE International Conference on Computer Vision, 2015 International Conference on Computer Vision, ICCV 2015:1440–1448,2015. ISSN 15505499. doi: 10.1109/ICCV.2015.169. Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pages 580–587,2014. ISSN 10636919. doi: 10.1109/CVPR.2014.81. Bharath Hariharan, Pablo Arbel ´ aez, Ross Girshick, and Jitendra Malik. Hypercolumns for object segmentation and fine-grained localization. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition,07-12-June-2015:447–456,2015. ISSN 10636919. doi: 10.1109/CVPR.2015.7298642. Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask R-CNN. Proceedings of the IEEE International Conference on Computer Vision,2017-October:2980–2988,2017. ISSN 15505499. doi: 10.1109/ICCV.2017.322. Phillip Isola, Jun Yan Zhu, Tinghui Zhou, and Alexei A. Efros. Image-to-image translation with conditional adversarial networks. Proceedings - 30th IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017,2017-January:5967–5976,2017. doi: 10.1109/ CVPR.2017.632. L ´ aszl ´ o A. Jeni, Jeffrey F. Cohn, and Fernando De La Torre. Facing imbalanced data - Recommendations for the use of performance metrics. Proceedings - 2013 Humaine Association Conference on Affective Computing and Intelligent Interaction, ACII 2013, (September):245–251, 2013. doi: 10.1109/ACII.2013.47. Commuter Kate. History of public transports, 2018. URL https://moovit.com/blog/ history-public-transport/. Diederik P. Kingma and Jimmy Lei Ba. Adam: A method for stochastic optimization. 3rd International Conference on Learning Representations, ICLR 2015 - Conference Track Proceedings, pages 1–15,2015. Y Konishi, Y Hanzawa, M Kawade, and M Hashimoto. Fast 6D Pose Estimation Using Hierarchical Pose Trees. Eccv, (January 2017):398–413,2016. doi: 10.1007/978-3-319-46448-0. Victor Lempitsky, Pushmeet Kohli, Carsten Rother, and Toby Sharp. Image segmentation with a bounding box prior. Proceedings of the IEEE International Conference on Computer Vision, pages 277–284,2009. doi: 10.1109/ICCV.2009.5459262. bibliography 86 Nicolas Lerm ´ e, Fran c¸ ois Malgouyres, and Lucas L ´ etocart. Reducing graphs in graph cut segmentation. Proceedings - International Conference on Image Processing, ICIP, (October 2010):3045–3048,2010. ISSN 15224880. doi: 10.1109/ICIP.2010.5654046. Long Ang Lim and Hacer Yalim Keles. Learning multi-scale features for foreground segmentation. Pattern Analysis and Applications, (0123456789), 2019. ISSN 1433755X. doi: 10.1007/s10044-019-00845-9. URL https://doi.org/10.1007/s10044-019-00845-9. Long Ang Lim and Hacer Yalim Keles. Foreground segmentation using convolutional neural networks for multiscale feature encoding. Pattern Recognition Letters,112:256–262,2018. ISSN 01678655. doi: 10.1016/j.patrec.2018.08.002. Tsung Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Doll ´ ar, and C. Lawrence Zitnick. Microsoft COCO: Common objects in context. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics),8693 LNCS(PART 5):740–755,2014. ISSN 16113349. doi: 10.1007/978-3-319-10602-1 48. Jonathon Luiten, Paul Voigtlaender, and Bastian Leibe. PReMVOS: Proposal-Generation, Refinement and Merging for Video Object Segmentation. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 11364 LNCS:565–580,2019. ISSN 16113349. doi: 10.1007/978-3-030-20870-7 35. Amalia Luque, Alejandro Carrasco, Alejandro Mart ´ ın, and Ana de las Heras. The impact of class imbalance in classification performance metrics based on the binary confusion matrix. Pattern Recognition,91:216–231,2019. ISSN 00313203. doi: 10.1016/j.patcog.2019.02.023. URL https://doi.org/10.1016/j.patcog.2019.02.023. Lucia Maddalena and Alfredo Petrosino. Towards benchmarking scene background initialization. In Vittorio Murino, Enrico Puppo, Diego Sona, Marco Cristani, and Carlo Sansone, editors, New Trends in Image Analysis and Processing – ICIAP 2015 Workshops, pages 469–476, Cham, 2015. Springer International Publishing. ISBN 978-3-319-23222-5. K. K. Maninis, S. Caelles, J. Pont-Tuset, and L. Van Gool. Deep Extreme Cut: From Extreme Points to Object Segmentation. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pages 616–625,2018. ISSN 10636919. doi: 10.1109/CVPR.2018.00071. Rohit Mohan and Abhinav Valada. EfficientPS : Efficient Panoptic Segmentation. 2019. Su Pang, Daniel Morris, and Hayder Radha. CLOCs: Camera-LiDAR Object Candidates Fusion for 3D Object Detection. 2020. ISSN 23318422. URL http://arxiv.org/abs/2009. 00784. bibliography 87 Dim P. Papadopoulos, Jasper R.R. Uijlings, Frank Keller, and Vittorio Ferrari. Extreme Clicking for Efficient Object Annotation. Proceedings of the IEEE International Conference on Computer Vision,2017-Octob:4940–4949,2017. ISSN 15505499. doi: 10.1109/ICCV.2017.528. Lu Qi, Li Jiang, Shu Liu, Xiaoyong Shen, and Jiaya Jia. Amodal Instance Segmentation With KINS Dataset. Cvpr, pages 3014–3023,2019. URL http: //openaccess.thecvf.com/content{ }CVPR{ }2019/html/Qi{ }Amodal{ }Instance{ } Segmentation{ }With{ }KINS{ }Dataset{ }CVPR{ }2019{ }paper.html. Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, and Stefan Roth. The Cityscapes Dataset for Semantic Urban Scene Understanding. Joseph Redmon and Ali Farhadi. YOLO9000: Better, faster, stronger. Proceedings - 30th IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017,2017-January:6517–6525, 2017. doi: 10.1109/CVPR.2017.690. Joseph Redmon and Ali Farhadi. YOLOv3: An incremental improvement. arXiv,2018. Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition,2016-December:779–788,2016. ISSN 10636919. doi: 10.1109/CVPR.2016.91. Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Transactions on Pattern Analysis and Machine Intelligence,39(6):1137–1149,2017. ISSN 01628828. doi: 10.1109/TPAMI.2016. 2577031. Carsten Rother, Vladimir Kolmogorov, and Andrew Blake. GrabCut - Interactive foreground extraction using iterated graph cuts. ACM SIGGRAPH 2004 Papers, SIGGRAPH 2004, pages 309–314,2004. doi: 10.1145/1186562.1015720. Pulkit Sharma. Yolo framework, 2018. URL https://www.analyticsvidhya.com/blog/2018/ 12/practical-guide-object-detection-yolo-framewor-python/. Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the Inception Architecture for Computer Vision. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition,2016-December: 2818–2826,2016. ISSN 10636919. doi: 10.1109/CVPR.2016.308. Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A. Alemi. Inception-v4, inception-ResNet and the impact of residual connections on learning. 31st AAAI Conference on Artificial Intelligence, AAAI 2017, pages 4278–4284,2017. bibliography 88 Andrew Tao, Karan Sapra, and Bryan Catanzaro. Hierarchical multi-scale attention for semantic segmentation. arXiv, pages 1–11,2020. Alaa Tharwat. Classification assessment methods. Applied Computing and Informatics,2018. ISSN 22108327. doi: 10.1016/j.aci.2018.08.003. URL https://doi.org/10.1016/j.aci.2018.08. 003. Paul Voigtlaender, Michael Krause, Aljosa Osep, Jonathon Luiten, Berin Balachandar Gnana Sekar, Andreas Geiger, and Bastian Leibe. MOTS: Multi-Object Tracking and Segmentation. 2019. URL http://arxiv.org/abs/1902.03604. Yi Wang. Amazon mechanical turk, 2001. URL https://www.mturk.com/. Yi Wang, Pierre Marc Jodoin, Fatih Porikli, Janusz Konrad, Yannick Benezeth, and Prakash Ishwar. CDnet 2014: An expanded change detection benchmark dataset. IEEE Computer Society Conference on Computer Vision and Pattern Recognition Workshops, pages 393–400, 2014. ISSN 21607516. doi: 10.1109/CVPRW.2014.126. Ning Xu, Brian Price, Scott Cohen, Jimei Yang, and Thomas Huang. Deep GrabCut for Object Selection. 1:1–12,2019. doi: 10.5244/c.31.182. Matthew D. Zeiler. ADADELTA: An Adaptive Learning Rate Method. 2012. URL http: //arxiv.org/abs/1212.5701. Zhong Qiu Zhao, Peng Zheng, Shou Tao Xu, and Xindong Wu. Object Detection With Deep Learning: A Review. IEEE Transactions on Neural Networks and Learning Systems, pages 1–21,2019. ISSN 21622388. doi: 10.1109/TNNLS.2018.2876865.