Full text
Filipe Pimenta Oliveira Monteiro Application of Semantic Segmentation through data acquired from sensors Dissertação de Mestrado Mestrado Integrado em Engenharia Informática Trabalho efetuado sob a orientação do(a) Paulo Jorge Novais Universidade do Minho Escola de Engenharia novembro de 2021
Direitos de Autor e Condições de Utilização do Trabalho por Terceiros Este é um trabalho académico que pode ser utilizado por terceiros desde que respeitadas as regras e boas práticas internacionalmente aceites, no que concerne aos direitos de autor e direitos conexos. Assim, o presente trabalho pode ser utilizado nos termos previstos na licença abaixo indicada. Caso o utilizador necessite de permissão para poder fazer um uso do trabalho em condições não previstas no licenciamento indicado, deverá contactar o autor, através do RepositóriUM da Universidade do Minho. Licença concedida aos utilizadores deste trabalho Atribuição CC BY https://creativecommons.org/licenses/by/4.0/ i
Acknowledgments I would like to express my deep gratitude to my supervisor, Professor Paulo Jorge Novais, for this opportunity in accepting me and the suggested topic, and for always supporting and providing every tool needed for the development of this work. To my whole family which was always supportive and comprehensive about my needs, providing me the best environment I could need for all these years of academic life. Their belief in me and my work kept me motivated from the day I entered this journey and will keep motivating me on the future ahead. I can not thank enough professor Filipe Gonçalves for the guidance and tutoring throughout the entire work which was fundamental in achieving this best version of me and this work. His words of courage and incitement kept me at bay, focused on the task at hand, but never forgetting and always caring me as a friend. Without a doubt, a person I look up to, where his experience will serve as counselling for the future. To Leonardo, for always pushing me to do better and achieve greater heights, for always being by my side and help me brainstorm difficult problems, both work related and personal. Without his guidance and his friendship I would not be as developed as today. Lastly, but certainly not the least, I am in great debt to all my friends which made me what I am today. Without their company and support, no special memories would I have from these times, from the Hackathons we shared, the after-exam nights to the pandemic crisis we lived in. From the bottom of my heart, friends of a lifetime. Filipe Monteiro 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
Resumo Aplicação de Segmentação semântica a partir de dados recolhidos por sensores Hoje a inteligência artificial é uma ferramenta com grande presença nas nossas vidas, muitas vezes sem a nossa perceção. De utilizações simples como assistentes pessoais - Alexa e Siri -, e personalização de publicidade baseada nos nossos gostos - apresentação de publicidade relevante baseada no nosso histórico de pesquisas -, para casos mais complexos como robôs e casas, veículos e cidades autónomas. A presença da inteligência artificial cresce, e apesar de estarmos ainda bastante longe da nossa ideia de ’General AI’ - uma máquina capaz de executar qualquer função de forma autónoma -, cada dia nos encontrámos mais perto. Na última década múltiplas aplicações da inteligência artificial realizaram avanços significativos como, por exemplo, as primeiras implementações de veículos autónomos que foram introduzidas por várias empresas, sendo a mais reconhecida a Tesla . Para chegar a este patamar nesta revolução da inteligência artificial foi necessário uma grande quantidade de estudo e descobertas onde, entre elas, duas se destacam com grande importância: Deteção de Objectos e Segmentação Semântica, ambas relacionadas. Estas são responsáveis por recolher conhecimento sobre o ambiente em que se encontra a máquina de forma a esta executar ações. Apesar de estarem ambas conectadas, a última pode ser considerada uma melhoria perante a primeira em relação á sensibilidade do erro associado a cada entidade detetada, assim como a nova capacidade de detetar todos os objetos e os seus respectivos tipos. Para isso as máquinas necessitam cada vez mais de dados para analisar e treinar, obtidas de vários possíveis sensores como radares, diferentes tipos de câmaras, LiDAR, entre outros. Esta dissertação tem então o objetivo de estudar o uso de técnicas de Segmentação Semântica e as suas aplicações na categorização de imagens provenientes de sensores do tipo câmara para explicar as suas descobertas e desafios, assim como melhorar e ultrapassar obstáculos existentes. Os dados consistem de scans das estradas, capturadas do POV de um veículo ( KITTI360 , sendo facilmente adaptada a utilizar scans de outros contextos para categorizar imagens mais ”comuns” ( COCO ). Atualmente os trabalhos do DeepLab (com o desenvolvimento do modelo deeplabv3 [1]) conseguiram resultados com bastante sucesso, ultrapassando desafios anteriormente existentes tal como o tratamento dos limites de cada entidade da imagem, com vizinhanças bem definidas, sendo ao mesmo tempo capaz de ser executada em máquinas com poucos recursos, sendo por isso o ponto de início para este trabalho. Palavras-chave: Segmentação Semântica de imagens, veículos autónomos, redes neuronais convolucionais, segurança automóvel iv
Abstract Application of Semantic Segmentation through data acquired from sensors Today, AI is very important in our lives as its used all around us without our knowledge. From simple things such as personal assistants like Alexa and Siri , and advertising algorithms focusing on our tastes - Netflix on the recommendation of movies or, even more common, the presentation of advertising based on our search history -, to robots and to smart houses, cities or even vehicles. The presence of AI is increasing and even if we are still far away from our ’General AI’ ideology, a machine capable of anything autonomously, each day we get closer. In the last decade multiple applications of AI have been through breakthroughs. For example, the first implementations of autonomous vehicles were introduced by Tesla and other companies. A number of discoveries must have been made to achieve this revolution of AI performance and, among them, is two of the most important developments: Object Detection and Semantic Segmentation, closely related to each other. These are responsible for understanding the environment so the machine can take actions, being the latter an improvement of the first in terms of sensibility error associated to each entity detected as well as being able to detect its corresponding type, in a pixel level. These machines require more and more data to analyse, having many types of sensors in order to collect information, such as radars, cameras, LiDAR, among others. This work falls in the study of the use of Semantic Segmentation techniques and its application on categorising data from image related sensors in order to explain its breakthroughs and challenges, as well as improving and overcoming such obstacles. Data will consist mainly of scans from outdoor/self-driving cars POV ( KITTI360 ) with the ability to be used with other types of data such as indoor scans ( COCO ), to explain both road and more day-to-day images semantic compositions, applied on a state-of-art solution. Consecutively we will perform a process of optimisation in order to reduce computation costs. Currently the works of DeepLab (with the research of deeplabv3 [1]) have achieved a high success on Semantic Segmentation overcoming previous problems such as handling component boundaries with more refined lines while keeping it fairly easy to run on more less powerful machines, being the start point for this work. Keywords: Image Segmentation, Semantic Segmentation, Deep Learning, Self-Driving, Automotive Security v
Contents Direitos de Autor e Condições de Utilização do Trabalho por Terceiros i Acknowledgments ii Statement of Integrity iii Resumo iv Abstract v List of Acronyms viii List of Figures ix List of Tables xi 1 Introduction 1 1.1 Motivation ...................................... 1 1.2 GoalsandContributions................................ 3 1.3 Methodology ..................................... 3 1.4 DocumentStructure.................................. 4 2 State of the Art 5 2.1 RelatedWork..................................... 6 2.1.1 ObjectDetection............................... 8 2.1.1.1 HOGandSIFT .......................... 8 2.1.1.2 One and Two Stage Detector . . . . . . . . . . . . . . . . . . . . 10 2.1.2 Semantic Segmentation . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.1.2.1 Atrous Convolutions . . . . . . . . . . . . . . . . . . . . . . . . 15 2.1.2.2 Atrous Spatial Pyramid Pooling . . . . . . . . . . . . . . . . . . 16 2.1.2.3 Fully-Connected Conditional Random Fields . . . . . . . . . . . . 17 vi
2.1.3 Instance Segmentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.1.4 Datasets and Benchmarking . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.2 DiscussionandAnalysis................................ 22 3 Preliminary Studies and Approach 24 3.1 PreliminaryStudies.................................. 24 3.2 ProposedApproach.................................. 25 3.3 PreliminaryResults.................................. 25 4 Results and Findings 29 4.1 Benchmarking and Improving the performance of DeepLab on Kitti360 . . . . . . . . . 29 4.1.1 Metrics ................................... 29 4.1.2 TrainingPipeline............................... 30 4.1.3 EvaluationPipeline.............................. 31 4.1.4 ModelsResults................................ 32 4.2 Deep Neural Network Compression . . . . . . . . . . . . . . . . . . . . . . . . . . 41 4.2.1 TensorRT .................................. 41 4.2.2 TensorFlowLite ............................... 44 4.2.3 Pruning ................................... 44 4.2.4 ResultsComparison ............................. 47 5 Conclusions 50 Bibliography 52 vii
List of Acronyms ASPP Atrous Spatial Pyramid Pooling. 23, 50 CNN Convolutional Neural Networks. 10, 11 CRF Conditional Random Field. ix, 17, 18, 23, 34, 50 HOG Histogram of Oriented Gradients. 8 IoU Intersection over Union. 22 LiDAR Light Detection and Ranging. iv, v, ix, x, 1, 2, 6, 7, 13, 21, 22, 24, 25, 50, 51 mIoU Mean Intersection over Union (Jaccard Index). 22, 29, 32, 50, 51 NIR Near-Infrared. 1 POV Point-of-View. iv, v, 22 RGB-D RGB with Depth perception. 1, 13 SIFT Scale-Invariant Feature Transform. 8 viii
CHAPTER 1. INTRODUCTION the range of conclusions. Based on these results, the research will follow to approach the model with the intention of reducing it’s computational resources while keeping its segmentation performance, concluding how much can it be improved without penalising its output. 1.4 Document Structure This work will consist of several chapters with the following composition: • State of the Art (2): here will be introduced the concept of semantic segmentation, its advantages and disadvantages, explaining as well the basic functioning of this technique. Later in this chapter, we will also overview the most impactful algorithms created for this technique, discussing their unique features and achievements; • Preliminary Studies and Approach (3): this chapter will consist of the starting point and initial assumptions made by us, while explaining how the work will proceed as well. We will also display some initial results found; • Results and Findings (4): analysis and explanation of the different results based on the proposed algorithms and datasets, as well as exploration of optimisations directed to deep neural networks, applied to our algorithms; • Conclusion (5): a conclusion relative to the overall work so far done, the problems and limitations we encountered, and what we intend to achieve in the near future. 4
Chapter 2 State of the Art As of today AI has an enormous mark on our everyday life thanks to the increase study and its application, as well as the increase on the resources of available hardware. But with this extra computational power and complexity of models comes the need for more data, leading to the creation of Data Warehouses in order to store all unnecessary data. This data is information shared from people online, companies, sensors from cities and vehicles among others, where its collection and processing is done in an autonomous way. Focusing on this work main target, the research of semantic segmentation techniques, data prepared by users based on images are being used in order to develop software capable of creating semi-autonomous virtual filters to apply on images, for instance, locating specific objects or even, utilised by big e-commerce companies, for searching for specific objects on a store with similar characteristics[7]. In the automotive world, the use of AI to achieve levels of automation only started to be achievable when new, improved and cheaper camera sensors, radars and computers appeared. Until then, it could only be considered experimentation. In the last decade this improvement was noticeable, with recent years having the first implementations of autonomous driving using semantic segmentation techniques or similar, like object detection (shown in Figure 2), constantly improving with the added data and optimisation of these algorithms. One major example of this is Tesla which actively captures user driving data for active training of their algorithms[8]. 5
CHAPTER 2. STATE OF THE ART Figure 2: How the Tesla algorithm sees the world.1 2.1 Related Work This type of task, Semantic Segmentation, is closely related to other techniques such as Instance Segmentation, where its only difference is the extra information the latter provides. While Semantic Segmentation computes each pixel class, Instance Segmentation goes further and distinguishes the pixels from the same class that belong to different entities. This is achieved by a combination of Object Detection, an algorithm to encounter objects in an image using bounding boxes with its classification, and Semantic Segmentation, to properly classify each pixel class. As mentioned earlier, Object detection is another type of a similar classification technique, where it uses bounding boxes to delineate the entity on the image and classify it. Famous algorithms include YOLO [9], RetinaNet [10], R-CNN [11] and others[12]. The comparison between all these techniques can be seen on Figure 3. Despite the fact image based techniques are more experimented given the easy availability and use of image based sensors such cameras, there is also another important sensor used specially on autonomous vehicles: the LiDAR. This sensor involves shooting light rays through an environment and receiving the bounced lights on the sensor, generating a 3D [14] representation of the world based on a group of Point Cloud (see Figure 4). In the past years the discussion about LiDAR vs camera sensors to be used on autonomous vehicles has been an hot topic regarding their performance versus cost ratio[15], but more and more investigators agree that cameras should be the future for autonomous driving. Given the fact LiDAR investigation is complex, high demanding in resources and high time consumption, this won’t be researched, although it is worth mentioning that more of the successful techniques created are based on the transformation of these 3D point-clouds into 2D images for a network to segment, such as SPLATNet [16], RangeNet++ [17], among others[18][19][20]. In similar fashion, some algorithms such as 1Source: https://www.whichcar.com.au/car-advice/this-is-what-tesla-autopilot-sees 6
CHAPTER 2. STATE OF THE ART (a) Input image. (b) Object Detection. (c) Semantic Segmentation. (d) Instance Segmentation. Figure 3: The main techniques of image classification[13] RoIFusion [21] use this type of information to calculate 3D bounding boxes around the entities surrounding it with the aid of image data as well. Figure 4: Example of LiDAR data.2 2Source: https://blogs.nvidia.com/blog/2020/03/11/drive-labs-multi-view-lidarnet-self-driving-cars/ 7
CHAPTER 2. STATE OF THE ART 2.1.1 Object Detection Object detection consists on a technique that detects where and which objects are on an image by providing the bounding boxes of each one. Today this technique is based on deep convolutional neural networks, but previously were built based on hand-crafted feature extractors, e.g. Histogram of Oriented Gradients [22], Scale-invariant feature transform [23], and many others. Their evolution timeline can be seen on Figure 5. Figure 5: Timeline of usage for both SIFT and CNN methods for object detection [24] 2.1.1.1 HOG and SIFT HOG and SIFT, consist on the computation of the distribution of intensity gradients or edge directions. The computation is executed on small patches of the input image, similar to applying a convolutional filter, resulting on, for each pixel, an histogram of gradient directions (see Figure 6 and 7 for a visual interpretation). This method suffers on the performance, as calculation an histogram for each pixel can be costly the bigger the resolution of the image, as well as it works best where objects do not vary much in shape, as colour is not directly used and similar objects may be assumed to be of the same type. Also, simple transformations to the image such as rotation can drastically reduce accuracy. These two feature extractors vary on the approach of dividing and applying the computation. For instance, SIFT divides the images into smaller patches consisted of HOG computations. 8
CHAPTER 2. STATE OF THE ART Figure 6: Histogram of Oriented Gradient feature extraction example.3 Figure 7: Scale-invariant feature extraction example [25]. 3Source: https://heartbeat.comet.ml/introduction-to-basic-object-detection-algorithms-b77295a95a63 9
CHAPTER 2. STATE OF THE ART 2.1.1.2 One and Two Stage Detector When CNN started to be experimented with, object detection benefited as the previous features extractors manually built could now be automated and trained using these new convolutional layers, specially built for the task. These CNN methods can be separated onto two categories: two stage (Figure 8) and one stage (Figure 11) detectors, being the main difference that the first makes use of a second parallel processing algorithm’s result (second stage) to combine with the first stage in order to provide a prediction. As mentioned, Two stage detectors make use of two different algorithms for two distinct tasks: one model serves the purpose of detecting the region of interest of the object, where its output is used on another model responsible for classifying and refining the localisation of the object. This approach, although very powerful and accurate, comes at a high computational cost due to using two different models for the final prediction, while also having a higher inference time compared to one stage detectors. Figure 8: Example of a two stage architecture.[12]. One of the first examples of a two stage detector was R-CNN [26]. As mentioned, the algorithm makes a classification based on two steps: (1) extracting the regions of interest; (2) classifying each region of interest (see Figure 9). 10
CHAPTER 2. STATE OF THE ART Figure 9: Overview of R-CNN pipeline.[26] The first stage, for the collection of regions of interest uses selective search , an algorithm based on computing hierarchical grouping of similar regions based on colour, texture, size and shape compatibility. This algorithm consists on the segmentation of pixels based on their intensity using a graph-based segmentation method by Felzenszwalb and Huttenlocher [27], with the objective of reaching a point where every single region cannot be sub-segmented any further (see Figure 10 for visual understanding), resulting on a over-segmented image. Although we are technically segmenting the image, these segmentations are not accurate as most of the objects get over-segmented (i.e. color changes on a single object can create multiple segmentation masks), consisting then of multiple sub-segmentations. The final stage applies a CNN on each cropped part of the image containing a main region of (assuming this main region corresponds to an object) and classifies it. Figure 10: Example of the selective search algorithm.4 On the other hand, one stage detectors consist of an architecture where the image is only processed once, resulting on bounding boxes of the objects and respective classes, with low computational cost and 4Source: Stanford Presentation 11
CHAPTER 2. STATE OF THE ART inference time, but where the accuracy and resulting bounding boxes are not as refined as from a two stage detector. Figure 11: Example of a one stage architecture.[12]. YOLO [9] is one of the most well known architectures when we think about Object Detection, firstly published in 2015. Improved over the years [28][29], the model uses a single neural network (see Figure 12) to calculate both the location of the bounding boxes and its class, by dividing the image in a SxS grid (hyper-parameter) and detecting the object inside each cell. Figure 12: Overall pipeline from YOLO [9] model. Analysing Figure 13 we can see how the model divides the image in a grid, predicting bounding boxes with x, y, w, h, confidence and class probabilities for each grid cell. The main key difference is that they limit the way the model detects the objects and prevent multiple detections of the same object, by keeping spatial constraints on the grid cells. Further improvements managed to mitigate problems such as the lack of ability to detect correctly groups and smaller objects, as well as reduce the localisation errors available on the first iteration, by applying random multi-scale training during the training, newly organised convolutions on the network, among others. 12
CHAPTER 2. STATE OF THE ART Figure 13: Prediction method used by the YOLO [9] model. As stated previously, we decided to study not only how image sensor data is used, but also LiDAR data, although on a much smaller scale. As discovered, Object Detection can also be applied using two distinct pipelines: (1) make use of LiDAR and image data creating an hybrid architecture [21]; (2) make use of image data only, based on a RGB-D sensor where depth information is available [30]. These case studies were not on the focus as LiDAR is technically too demanding for this type of work. 13
CHAPTER 2. STATE OF THE ART 2.1.3 Instance Segmentation Exploring Instance Segmentation we came to the conclusion that most of the approaches use a combination of Object Detection and Semantic Segmentation, meaning they either segmentate first and detect the different segmentations after or the other way around, clustering based on pixel classification, and many others (see Figure 22 for some examples). (a) Detection followed by Segmentation Techniques approach. (b) Labelling Pixels Followed by Clustering Techniques approach. Figure 22: Some of the different Instance Segmentation architectures[13] Mask R-CNN [26] is an Instance Segmentation algorithm developed based on the detection followed by segmentation approach presented on Figure 22a. This architecture is based on an improvement of the already mentioned R-CNN [26], the Fast R-CNN [36], where the authors added a parallel branch for predicting segmentation masks on each object detected with the regions of interest. This means the segmentation task does not depend on the results of object detection and the final result is the merge of these two branches results. 20
CHAPTER 2. STATE OF THE ART 2.1.4 Datasets and Benchmarking Multiple datasets have been proposed with the objective to benchmark several neural networks architectures. Some examples are Cityscapes [37], KITTI [38] and more recently KITTI360 [39] applied for road image segmentation and COCO [40] and PASCAL VOC [41] for common object segmentation (examples of each presented on Figure 23. Although these works only focus on the segmentation of images, there is also a big interest on the segmentation of point-clouds using LiDAR information, as mentioned previously. Looking upon the road-scene datasets, these are made of images, organised in scenes of continuous driving, having for each image a mask where each pixel has as value the identification of the class the object belongs to. It is important to note that, although there are sometimes more than 30 classes to be classified, these are simplified in order to reduce the complexity of the problem and to focus on the most relevant objects on the image. (a) Cityscapes sample[37]. (b) KITTI sample[38]. (c) KITTI360 sample[39]. (d) PASCEL VOC sample[41]. (e) COCO sample[40]. Figure 23: Samples from multiple open-source datasets. 21
CHAPTER 2. STATE OF THE ART Apart from real data, there have been attempts to make use of artificial data to increase the training performance of the models. For example, a group once proposed an algorithm capable of capturing data from the game GTA V [20], where it is possible to drive a car on a close to real-life environment, such as LiDAR information and road images, obtaining hundreds of additional data that in the end increased the performance of their model. 2.2 Discussion and Analysis In this chapter, multiple techniques were presented and briefly explained, focusing on some of the state of art algorithms and their unique features while presenting the solution chosen to be the starting point for this work. Having analysed different architectures, it became clear what were the important features responsible for the boost of performance, as well as provided ideas for us to propose further improvements. Although Semantic Segmentation and Instance Segmentation are closely related, we decided to focus on the first as the latter is an extension of the other, requiring more resources in order to run it while also adding an extra layer of complexion. Object Detection could also have been chosen but given the ease of usage and the existing libraries for this task compared to Semantic Segmentation, it made less sense from a deep exploration POV. Cityscapes mIoU PASCAL_VOC mIoU Normal Convolutionals 65.3 62.2 Normal Convolutional with CRF - 72.0 DeepLabV3 81.3 89 Hierarchical MSA 85.1 - Table 2: Performance of the state of art algorithms researched, in two datasets[42]. The metric applied was mIoU, which corresponds to the average IoU, that is, the area of intersection between the predicted segmentation map and the ground truth, divided by the area of union between the predicted segmentation map and the ground truth, because it is one of the main metrics used for this type of classification as it cannot be biased by the imbalance of classes available in an image (more on that on Section 4.1.1) and also because it was the one available on [42] as others such as the Dice coefficient (similar to IoU, memory consumption, time of execution and number of parameters were not available for comparison of algorithms between datasets. 22
CHAPTER 2. STATE OF THE ART Focusing then on the main Semantic Segmentation algorithms analysed, the most promising one was DeepLabV3 [1]. We compared the main results regarding the use of this architecture and others on two state-of-art datasets: Cityscapes [37] and PASCAL_VOC [41], presented on Table 2. As can be interpreted, the use of CRF gave an increase of 10% to the standard convolutional architecture, with the added ASPP on DeepLabV3 [1] increasing 17% compared to using CRF. Unfortunately, the Hierarchical MSA [35] does not have much more data on benchmarks apart from Cityscapes (opposite of DeepLabV3 [1]) so we can not draw many conclusions about their performance on different contexts, but having the latter inserted on many more different data contexts with similar performance versus Hierarchical MSA [35] on the one dataset we are currently focusing means we don’t really lose any considerable performance and have more choices regarding how we can use this model in the future. As a bonus, DeepLabV3 [1] was a target of high research until now which provides a good source for accessing previous works for comparison/starting points. 23
Chapter 3 Preliminary Studies and Approach 3.1 Preliminary Studies In order to gain insight on the subject, multiple state of the art solutions were analysed, focusing on the detection and classification of objects through the use of visual cameras or LiDAR sensors. Based on this research it was possible to list and identify relevant open-sourced datasets to be applied in this research. Deeplab [1] was the most promising solution to be implemented and applied due to its results being one the best so far, as well as having a lot of support from the scientific community. In addition, the algorithm provides mechanisms to customise its backbone and multiple parameters, which can be adapted for exploring its potential on different contexts. Given the large amount of data available for road scenes segmentation, it was decided to choose one that could be explored using other techniques on a future work. In this case, KITTI360 [39] is composed of data from multiple synchronised sensors, from RGB cameras (examples presented in Figure 24), LiDAR and even GPS . Although only the camera sensor outputs will be used, this work could be expanded and benchmark the impact of LiDAR for segmentation, providing access to performance and cost comparisons given the same context. One of the main drawback of using this dataset is not many researches refer to it about its performance on multiple state of art models, as it is the case with DeepLab . Although there is one other dataset with the similar data composition, KITTI [38], it is older and the support for it has been diminishing. Also, the quality of the proposed dataset is higher compared to others by having higher quality images, being more context aware and overall organisation with easier access to manipulate. 24
CHAPTER 3. PRELIMINARY STUDIES AND APPROACH Figure 24: Sample of the KITTI360 dataset[34]. (Top) Image with corresponding mask overlayed; (Middle) Image with corresponding LiDAR mask overlayed; (Bottom) Image with corresponding error mask from the labelling process. 3.2 Proposed Approach This research proposes an attempt on applying an optimised version of this algorithm for image semantic segmentation on road scenes for future use on autonomous vehicles. For this, it will be applied the network DeepLabV3 [1] with two different backbones, applied on the KITTI360 [39] for training and testing, followed by some different optimisation techniques in order to reduce computation costs, while keeping the best accuracy possible. 3.3 Preliminary Results As a first step it was decided to analyse the composition of our chosen dataset, KITTI360 in order to collect information about its structure and types of data included. Using helper programs developed by the owners of the dataset, all data was downloaded and organised according to the documentation: 25
CHAPTER 3. PRELIMINARY STUDIES AND APPROACH Figure 25: Folder structure for the data, according to the documentation.1 The data is composed of continuous sequences of images, organised in multiple scenes (different driving episodes), with each frame being named after a unique identification number. These images come from two different sets of sensors: a pair of RGB cameras on the front of the vehicle and one fish-eye camera on each side of the vehicle. In our case, it was decided to use one of the front camera sensors due to: (1) being a pair of cameras, the data is extremely similar on each side given the fact they are so close to each other, both visualising the front of the vehicle; (2) for the vehicle, its more important to keep track of what is in front of it compared to the side view; (3) given the type of camera on the side of the vehicle, a fish-eye, it would be more complex to pre-process these images. For these, only the data inside data_2d_row and data_2d_semantics will be used, as these correspond to the 2d images from the camera sensor and respective output masks, visible on Figure 25. After understanding the dataset, it was needed to choose which scenes would be used for training, testing and validating our models. Usually, similar datasets already propose which scene is used for each step, but the group responsible for this dataset have yet to suggest a similar instruction. Our approach then was to analyse the composition of each scene in order to calculate the proportion for each entity on the image, as demonstrated on Figure 27, using the more balanced ones to train and the rest for training and validation. The reason so many unlabelled pixels exist is most of the original labels from the dataset are not used, to match with the Cityscapes format. These labels are a more detailed and specific version of the base features used, e.g. park, tunnel, vending machine and others. 1Source: KITTI360 website 26
CHAPTER 3. PRELIMINARY STUDIES AND APPROACH Figure 27: Number of each type of entities per scene. As interpreted on the previous Figure, scenes 0, 4, 6, 9 and 10 seem the most suitable due to having the highest number of each entity represented, leaving 2 and 3 for testing and 5 and 7 for validation. 27
CHAPTER 3. PRELIMINARY STUDIES AND APPROACH It was also developed a way to utilise a first iteration of the already trained model DeepLabV3 [1] in order to test the proposed dataset, becoming a starting point of the work. The Figure 28 shows the output from an image from one of the scenes from the mentioned dataset. Figure 28: Output of a first iteration of the base DeepLabV3 [1] model, with one image from KITTI360 . (Top) input image; (Middle) output mask; (Bottom) input image with overlayed output mask. The figure 28 represents the output of a small piece of code responsible for applying the algorithm on a target image. This was executed using the platform Google Colab , a cloud service capable of processing machine learning algorithms with access to a free GPU, although for the execution it was not necessary the use of it as it was a one time prediction. The machine is composed of 2 x Xeon 2 2.20GHz CPU, 12GB of Ram and a Nvidia K80 GPU, which ran the prediction is 2.5 seconds. We can see on the segmentation map that overall already predicts with high confidence, having more difficulty the more darker zones of the image. In the future we will attempt to mitigate this problem by increasing the brightness of the image. 28
Chapter 4 Results and Findings 4.1 Benchmarking and Improving the performance of DeepLab on Kitti360 Having the dataset and its splits defined (train, test and validation subsets), we benchmarked the latest weights trained by the original developer of DeepLabV3 , resulted from training on the dataset Cityscapes , with a similar context to the chosen dataset. 4.1.1 Metrics In the task of Semantic Segmentation, multiple evaluation metrics are used to access its segmentation performance and compare solutions, such as mIoU, also known as Jaccard Index , DICE Score (also know as F1 Score ) and finally Pixel Accuracy [43]. The Jaccard Index will be used as the primary metric as it represents the mean performance of classification for each class, being basically the same as DICE Score (the latter applies more weight to the True Positives, being the meaning of the output the same on both, while the Jaccard Index will always have lower value comparing to DICE Score ). In addition to the Jaccard Index , we will also use confusion matrix to evaluate each class’s performance. As as secondary metric we will use Pixel Accuracy , which can be misleading when certain classes present heavily outnumber others, making the metric biased, as well as the human eye to analyse if the output masks appears more consistent with the ground truth. It is important to note it was decided to define a small number of classes as more important then others, in order to focus our improvement evaluation on more real-world situations. These will serve to better grasp if the improvements are real and significant and were determined by their relevance directly related to autonomous driving. The following list presents the classes with the highest relevance for this study case: • Road; • Sidewalk; 29
CHAPTER 4. RESULTS AND FINDINGS Figure 37: Xception (top) and retrained Xception (bottom) result on a random image. Figure 38: Result from the retrained Xception on an image with traffic lights. As we can see on Figure 39, the front of the truck (top image) is classified as a car, given the proximity between the two, which is not good enough to safely say it is a good prediction. The same can be said about the bus (bottom image), which we can see it identifies the bus as a car, while later on the next frames, with a more close-up to the side of the bus, it starts classifying correctly. Treating both labels as a single one is the safer action in order to achieve a good level of consistency between predictions while not affecting the veracity of model. 36
CHAPTER 4. RESULTS AND FINDINGS Figure 39: Result from the retrained Xception on an image with a truck (top) and a bus (bottom). The fine-tune of the Mobilenetv2 , opposed to the Xception , was smaller and quicker because the model would rapidly diverge around epoch 3/4, as seen on Figure 41, leaving little room for more improvements. Different experiments were made with different optimisation parameters, but the ones indicated on Table 4 were the best ones achievable. The reason the label traffic light disappeared from the graphic, differing Table 3, is because the Mobilenetv2 lost the ability to predict it, so we opted to remove it to aid the analysis of the results. Mean Pixel Accuracy mIoU (priority labels) Mean mIoU road sidewalk traffic sign person rider vehicle (car+truck+bus) motorcycle bicycle base mobilenetv2 0.60 0.61 0 0 0 0 0.24 0 0 0.09 base mobilenetv2 with [0,1] norm 0.60 0.61 0 0 0 0 0.24 0 0 0.09 retrained mobilenetv2 0.95 0.93 0.81 0.79 0.2 0 0.94 0.02 0.12 0.48 retrained and freezed mobilenetv2 0.95 0.92 0.81 0.79 0.17 0 0.94 0.02 0.15 0.48 Table 4: Results of the metrics before and after training, for the priority labels. Same situation as Table 3. 37
CHAPTER 4. RESULTS AND FINDINGS (a) Jaccard index value by step of training. (b) Loss value by step of training. Figure 40: Training log for the Mobilenetv2 backbone, with unfrozen weights and learning rate at 0,00001. Orange line corresponds to the training and the blue line to the validation. (a) Jaccard index value by step of training. (b) Loss value by step of training. Figure 41: Training log for the Mobilenetv2 backbone, with frozen weights and learning rate at 0,00001. Orange line corresponds to the training and the blue line to the validation. 38
CHAPTER 4. RESULTS AND FINDINGS (a) Confusion Matrix of the base Mobilenetv2 , on scene 4. (b) Confusion Matrix of the retrained Mobilenetv2 also on scene 4. Figure 42: Performance improvement visible using confusion matrix between the base and retrained model Mobilenetv2 . 39
CHAPTER 4. RESULTS AND FINDINGS As seen on Figure 42, initially the network did not perform good on the dataset, just loike Xception , but after training it became very capable of detecting the more important labels. Compared to Xception , due to its smaller size backbone, it has less ability to grasp some features from smaller labels, such as persons and small vehicles (rider) resulting on inferior results for these. But the major improvement comes from having a model much smaller produce results which comes close to Xception . An example of its improvement can be seen on Figure 43. Figure 43: Comparison of the output from the base (Top) and retrained (Bottom) Mobilenetv2 model. 40
CHAPTER 4. RESULTS AND FINDINGS 4.2 Deep Neural Network Compression While the network is being used on a high-end system, this would not be the case for its actual use case. Generally speaking, when applying models to more weak (but still powerful) systems such as mobile or embedded devices, these models need to be optimised to reduce their computation and resource costs. For this, different possible approaches exist such as: • Pruning: elimination of weights with low magnitude, not contributing significantly to the final output; • Quantization: conversion of the network layers data bit representation, in order to reduce computation and resource costs; • Knowledge Distillation: training a smaller network with the knowledge acquired by a bigger network in a compressed way; For this application, we did not use knowledge distillation as it would require more experimentation and knowledge of the unique layers used on our model. As such, we attempted using all the other remaining techniques: TensorRT 2, a quantization library famous for its speed improvements, without compromising too much on the quality of the output; TensorFlow Lite - a lighter version of TensorFlow used in mobile or low powered devices, also used for quantization of neural network and a simple pruning approach. It is relevant to mention that this exploration was very superficial due to the complexity of the work and its high variety of possibilities. It would be unreasonable to try and perform extreme optimisations given the time frame available. 4.2.1 TensorRT TensorRT consists of an framework developed by NVIDIA to optimise resources and inference time of deep neural networks. This method takes a neural network and converts each compatible layer to a high performance one (Figure 44), specific to the GPU used on inference, with lower bit precision, reducing its computational costs while also reducing the overall accuracy of the model, hopefully by just a small percentage. As seen in Figure 44b, the TRTEngineOp corresponds to an optimised batch of layers (green nodes), while keeping the unsupported layers (blue) as they are. 2 TensorRT website: https://developer.nvidia.com/tensorrt 41
CHAPTER 4. RESULTS AND FINDINGS (a) TensorRT pipeline. We freeze the graph of the model and convert it using TF-TRT (tool for tensorflow model conversion). (b) Conversion of a normal layer to a TensorRT optimised one. Figure 44: TensorRT key aspects.3 In general, the inference time is reduced significantly (as seen in Table 5 and Table 7), but sometimes the model gets a high reduction on performance, as in our case. Although the parameters used only converted all 32bit layers to 16bit , having the possibility of going further, up to int8 , the accuracy reduction was so noticeable that there was no point in trying to optimise it even further, having decided to stay on a 16bit layer composition. 3Source: High performance inference with TensorRT Integration 42
CHAPTER 4. RESULTS AND FINDINGS Figure 45: Comparison of the output from the base model (top) to the TensorRT model (bottom). Visible on the label caption from both images in Figure 45, the TensorRT model has different labels and predictions than the baseline, and while they are minimal like random pixels - generally speaking they come close to each other. A weird behaviour encountered was that the type of input gave two different outputs between the two models. In more detail, our base model was trained using OpenCV as the library responsible for reading the images from the system and pre-processing them to feed the model and. When used while inferring the TensorRT , the outputs would differ slightly. If the library was changed for another such as ImageIO , the outputs would consistently be more similar between the models, but with overall accuracy reduction even higher than before. So we accounted this as a unique situation where, not only the TensorRT reduces the accuracy, but also the type of input associated. Other users reported similar situations 4. In our case, to keep the consistency of the whole pipeline and model evaluation, we applied the results from OpenCV . Mean Pixel Accuracy mIOU (priority labels) Mean mIOU road sidewalk traffic light traffic sign person rider vehicle (car+truck+bus) motorcycle bicycle TensorRT Model 0.85 0.80 0.59 0 0.45 0.07 0 0.78 0.23 0 0.32 Table 5: TensorRT model metrics, with 16bit precision. 4Source: OpenCV vs ImageIO scenario 43
CHAPTER 4. RESULTS AND FINDINGS 4.2.2 TensorFlow Lite TensorFlow Lite is a watered-down version of TensorFlow , made to run on mobile or low-power devices. Given the application, it does not have GPU support and is optimised for CPU inference. For this reason, the fact the base model has multiple unique layers not originally supported by TensorFlow Lite and the sheer dimension of it, its performance is highly inferior to the baseline (Table 7), so it was decided as a non-viable option of optimisation. 4.2.3 Pruning As explained earlier, pruning is a technique used in machine learning models, where the objective is to reduce computational costs without reducing too much of its accuracy, by removing redundant weights from the models. This is used in more popular machine learning algorithms such as Decision Trees , where some nodes can be removed, and, less popular, in neural networks, where we attempt to remove low-impact weights from the model (Figure 46). Figure 46: Example of the pruning technique.5 Given the incompatibility of some layers of our base model to be pruned, we attempted to prune only two layers, DepthwiseConv2D and Conv2D in 3 mismatch combinations. This method resulted in having, between the three different cases, the pruned layers with approximately 80% sparsity - of zero weights . The model size in the disk was one of the first improvements noticed, going from 450MB to 166MB. 5Source: TensorFlow Model Optimization Toolkit — Pruning API 44
CHAPTER 4. RESULTS AND FINDINGS Mean Pixel Accuracy mIoU (priority labels) Mean mIoU road sidewalk traffic sign person rider vehicle (car+truck+bus) motorcycle bicycle Retrained Xception 0.96 0.95 0.87 0.89 0.749 0.002 0.95 0.22 0.08 0.645 All layers Pruned 0.92 0.90 0.68 0.64 0.2 0 0.93 0.009 0 0.376 Conv2D Layers Pruned 0.93 0.91 0.75 0.64 0.15 0 0.92 0.01 0 0.38 Depthwise2D Layers Pruned 0.93 0.90 0.72 0.63 0.12 0 0.90 0 0 0.365 Table 6: Comparison between the three pruned models and the base retrained Xception . Table 6 presents all the attempted combinations at pruning. Having only Conv2D layers pruned produced the best results overall, but we decided to keep the all layers pruned model as the best achieved because the mIOU was insignificantly lower while having slightly better prediction capabilities of detecting both vehicles and persons, despite the big reduction of accuracy from 0.645% to 0.376%. The labels that suffered the most appeared to be smaller ones in the images, such as person , rider , motorcycle and bicycle . Given the fact we are transforming low-impact weights on the network to 0, this behaviour was to be expected as the smaller features would be the most affected ones with the reduction of smaller details from the filters. Further experimentation on the sparsity value could be achieved, but the it would have been a very time-consuming task. Figure 47: Confusion matrix of the all pruned model model. Compare with Figure 36b to verify which labels were more affected. Analysing Figure 47 and comparing it to Figure 36b we can see that indeed, smaller labels such as traffic light and person were heavily affected with this pruning process. This can be verified on Figure 48. 45
Bibliography [1] Liang Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L. Yuille. DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFs. IEEE Trans. Pattern Anal. Mach. Intell. , 40(4):834–848, 2018. ISSN 01628828. doi: 10.1109/TPAMI.2017.2699184. [2] Image Segmentation |Types Of Image Segmentation, Oct 2020. URL https://www.analyticsvidhya.com/blog/2019/04/ introduction-image-segmentation-techniques-python. [Online; accessed 4. Feb. 2021]. [3] Mahnoor Ali, Syed Omer Gilani, Asim Waris, Kashan Zafar, and Mohsin Jamil. Brain tumour image segmentation using deep networks. IEEE Access , 8:153589–153598, 2020. doi: 10.1109/ ACCESS.2020.3018160. [4] Hongguang Li, Yang Shi, Baochang Zhang, and Yufeng Wang. Superpixel-based feature for aerial image scene recognition. Sensors (Switzerland) , 18(1), 2018. ISSN 14248220. doi: 10.3390/ s18010156. [5] Ciaran Robb, Andy Hardy, John H Doonan, and Jason Brook. Semi-automated field plot segmentation from UAS imagery for experimental agriculture. Frontiers (Boulder). , 11(December):1–13, 2020. doi: 10.3389/fpls.2020.591886. [6] Da Hu, Hai Zhong, Shuai Li, Jindong Tan, and Qiang He. Segmenting areas of potential contamination for adaptive robotic disinfection in built environments. Build. Environ. , 2020. ISSN 03601323. doi: 10.1016/j.buildenv.2020.107226. [7] Anil Chandra Naidu Matcha. A 2021 guide to Semantic Segmentation. AI & Machine Learning Blog , Jan 2021. URL https://nanonets.com/blog/semantic-image-segmentation-2020. [Online; accessed 29. Jan. 2021]. [8] Sorry, Elon: Fully Autonomous Tesla Vehicles Will Not Happen Anytime Soon, Jan 2021. [Online; accessed 29. Jan. 2021]. 52
BIBLIOGRAPHY [9] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. 6 2015. URL http://arxiv.org/abs/1506.02640. [10] Tsung Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollar. Focal loss for dense object detection. IEEE Transactions on Pattern Analysis and Machine Intelligence , 42:318–327, 2020. ISSN 19393539. doi: 10.1109/TPAMI.2018.2858826. [11] 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. [12] Licheng Jiao, Fan Zhang, Fang Liu, Shuyuan Yang, Lingling Li, Zhixi Feng, and Rong Qu. A survey of deep learning-based object detection. IEEE Access , 7:128837–128868, 2019. ISSN 21693536. doi: 10.1109/ACCESS.2019.2939201. [13] Abdul Mueed Hafiz and Ghulam Mohiuddin Bhat. A survey on instance segmentation: State of the art. 2020. [14] Yulan Guo, Hanyun Wang, Qingyong Hu, Hao Liu, Li Liu, and Mohammed Bennamoun. Deep Learning for 3D Point Clouds: A Survey. IEEE Trans. Pattern Anal. Mach. Intell. , pages 1–1, 2020. ISSN 0162-8828. doi: 10.1109/tpami.2020.3005434. [15] Ekim Yurtsever, Jacob Lambert, Alexander Carballo, and Kazuya Takeda. A Survey of Autonomous Driving: Common Practices and Emerging Technologies. IEEE Access , 8:58443–58469, 2020. ISSN 21693536. doi: 10.1109/ACCESS.2020.2983149. [16] Hang Su, Varun Jampani, Deqing Sun, Subhransu Maji, Evangelos Kalogerakis, Ming Hsuan Yang, and Jan Kautz. SPLATNet: Sparse Lattice Networks for Point Cloud Processing. Proc. IEEE Comput. Soc. Conf. Comput. Vis. Pattern Recognit. , pages 2530–2539, 2018. ISSN 10636919. doi: 10. 1109/CVPR.2018.00268. [17] Andres Milioto, Ignacio Vizzo, Jens Behley, and Cyrill Stachniss. RangeNet ++: Fast and Accurate LiDAR Semantic Segmentation. In IEEE Int. Conf. Intell. Robot. Syst. , pages 4213–4220, 2019. ISBN 9781728140049. doi: 10.1109/IROS40897.2019.8967762. [18] Larissa T. Triess, David Peter, Christoph B. Rist, and J. Marius Zöllner. Scan-based Semantic Segmentation of LiDAR Point Clouds: An Experimental Study. 2020. URL http://arxiv.org/abs/ 2004.11803. [19] Alexandre Boulch. ConvPoint: Continuous convolutions for point cloud processing. Comput. Graph. , 88:24–34, 2020. ISSN 00978493. doi: 10.1016/j.cag.2020.02.005. 53
BIBLIOGRAPHY [20] Bichen Wu, Alvin Wan, Xiangyu Yue, and Kurt Keutzer. SqueezeSeg: Convolutional Neural Nets with Recurrent CRF for Real-Time Road-Object Segmentation from 3D LiDAR Point Cloud. Proc. - IEEE Int. Conf. Robot. Autom. , pages 1887–1893, 2018. ISSN 10504729. doi: 10.1109/ICRA.2018. 8462926. [21] Can Chen, Luca Zanotti Fragonara, and Antonios Tsourdos. Roifusion: 3d object detection from lidar and vision. 9 2020. URL http://arxiv.org/abs/2009.04554. [22] Navneet Dalal and Bill Triggs. Histograms of oriented gradients for human detection. 2005. URL http://lear.inrialpes.fr. [23] Tony Lindeberg. Scale invariant feature transform. Scholarpedia , 7:10491, 2012. ISSN 1941-6016. doi: 10.4249/scholarpedia.10491. [24] Liang Zheng, Yi Yang, and Qi Tian. Sift meets cnn: A decade survey of instance retrieval. 8 2016. URL http://arxiv.org/abs/1608.01807. [25] Mohamed Fouad, Hossam Zawbaa, Nashwa El-Bendary, and Aboul Ella Hassanien. Automatic nile tilapia fish classification approach using machine learning techniques. 12 2013. doi: 10.1109/HIS. 2013.6920477. [26] Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask r-cnn. 3 2017. URL http: //arxiv.org/abs/1703.06870. [27] Pedro F Felzenszwalb and Daniel P Huttenlocher. Seg-ijcv. pages 1–26, 2015. ISSN 1573-1405. URL papers3://publication/uuid/D1250C05-2FC7-4954-A734-E33EBBEECB95. [28] Joseph Redmon and Ali Farhadi. Yolo9000: Better, faster, stronger. 12 2016. URL http://arxiv. org/abs/1612.08242. [29] Joseph Redmon and Ali Farhadi. Yolov3: An incremental improvement. 4 2018. URL http: //arxiv.org/abs/1804.02767. [30] Siyuan Huang, Yixin Chen, Tao Yuan, Siyuan Qi, Yixin Zhu, and Song-Chun Zhu. Perspectivenet: 3d object detection from a single rgb image via perspective points. 12 2019. URL http://arxiv. org/abs/1912.07744. [31] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. Lect. Notes Comput. Sci. (including Subser. Lect. Notes Artif. Intell. Lect. Notes Bioinformatics) , 9351:234–241, 2015. ISSN 16113349. doi: 10.1007/978-3-319-24574-4_28. [32] Zongwei Zhou, Md Mahfuzur Rahman Siddiquee, Nima Tajbakhsh, and Jianming Liang. UNet++: Redesigning Skip Connections to Exploit Multiscale Features in Image Segmentation. IEEE Trans. Med. Imaging , 39(6):1856–1867, 2020. ISSN 1558254X. doi: 10.1109/TMI.2019.2959609. 54
BIBLIOGRAPHY [33] Liang Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. arXiv , 2017. [34] Sik-Ho Tsang. Review: CRF-RNN — Conditional Random Fields as Recurrent Neural Networks (Semantic Segmentation). Medium , Mar 2019. [Online; accessed 29. Jan. 2021]. [35] Andrew Tao, Karan Sapra, and Bryan Catanzaro. Hierarchical Multi-Scale Attention for Semantic Segmentation. pages 1–11, 2020. URL http://arxiv.org/abs/2005.10821. [36] Ross Girshick. Fast r-cnn. 4 2015. URL http://arxiv.org/abs/1504.08083. [37] Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, and Stefan Roth. The Cityscapes Dataset for Semantic Urban Scene Understanding. 2016. [38] A Geiger, P Lenz, C Stiller, and R Urtasun. Vision meets robotics: The KITTI dataset. The International Journal of Robotics Research. Int. J. Rob. Res. , (October):1–6, 2013. [39] Jun Xie, Martin Kiefel, Ming Ting Sun, and Andreas Geiger. Semantic Instance Annotation of Street Scenes by 3D to 2D Label Transfer. Proc. IEEE Comput. Soc. Conf. Comput. Vis. Pattern Recognit. , 2016-Decem:3688–3697, 2016. ISSN 10636919. doi: 10.1109/CVPR.2016.401. [40] Tsung Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C. Lawrence Zitnick. Microsoft COCO: Common objects in context. Lect. Notes Comput. Sci. (including Subser. Lect. Notes Artif. Intell. Lect. Notes Bioinformatics) , 8693 LNCS(PART 5): 740–755, 2014. ISSN 16113349. doi: 10.1007/978-3-319-10602-1_48. [41] Mark Everingham, Luc Van Gool, Christopher K.I. Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (VOC) challenge. Int. J. Comput. Vis. , 88(2):303–338, 2010. ISSN 09205691. doi: 10.1007/s11263-009-0275-4. [42] Shervin Minaee, Yuri Boykov, Fatih Porikli, Antonio Plaza, Nasser Kehtarnavaz, and Demetri Terzopoulos. Image Segmentation Using Deep Learning: A Survey. pages 1–22, 2020. URL http://arxiv.org/abs/2001.05566. [43] Ekin Tiu. Metrics to Evaluate your Semantic Segmentation Model. Medium , Jan 2021. URL https://towardsdatascience.com/ metrics-to-evaluate-your-semantic-segmentation-model-6bcb99639aa2. 55