A Comparative Study of High-Recall Real-Time Semantic Segmentation Based on Swift Factorized Network
Kaite Xiang, Kaiwei Wang, Kailun Yang

TL;DR
This paper introduces a real-time semantic segmentation network called Swift Factorized Network (SFN) aimed at high recall rates for autonomous vehicle applications, exploring methods to improve recall without sacrificing efficiency.
Contribution
The paper proposes SFN, a novel real-time SS network with enlarged receptive fields, and investigates three methods—loss function, classifier, and decision rules—to enhance recall rates.
Findings
SFN achieves high recall rates on CamVid and Cityscapes datasets.
Enlarged receptive fields improve segmentation performance.
Three proposed methods effectively increase recall rates.
Abstract
Semantic Segmentation (SS) is the task to assign a semantic label to each pixel of the observed images, which is of crucial significance for autonomous vehicles, navigation assistance systems for the visually impaired, and augmented reality devices. However, there is still a long way for SS to be put into practice as there are two essential challenges that need to be addressed: efficiency and evaluation criterions for practical application. For specific application scenarios, different criterions need to be adopted. Recall rate is an important criterion for many tasks like autonomous vehicles. For autonomous vehicles, we need to focus on the detection of the traffic objects like cars, buses, and pedestrians, which should be detected with high recall rates. In other words, it is preferable to detect it wrongly than miss it, because the other traffic objects will be dangerous if the…
| Group | G3 | G2 | G1 | ||||||||
| Class | Sign | Car | Pedestrian | Bicyclist | Pole | Road | Sidewalk | Fence | Sky | Building | Tree |
| Cross-Entropy Loss | |||||||||||
| Pre | 88.8 | 95.8 | 72.1 | 85.5 | 55.4 | 97.7 | 91.1 | 78.4 | 96.7 | 95.9 | 84.0 |
| Recall | 45.9 | 95.7 | 89.8 | 71.5 | 66.8 | 97.1 | 94.2 | 70.0 | 95.9 | 91.0 | 91.7 |
| IoU | 43.4 | 91.9 | 66.7 | 63.8 | 43.4 | 95.0 | 86.2 | 58.6 | 92.9 | 87.5 | 78.0 |
| IAL | |||||||||||
| Pre | 79.9 | 95.5 | 70.3 | 79.0 | 49.1 | 97.5 | 91.9 | 71.8 | 97.4 | 95.4 | 83.2 |
| Recall | 46.5 | 96.3 | 90.1 | 77.9 | 63.3 | 97.7 | 93.4 | 71.2 | 94.5 | 90.0 | 92.1 |
| IoU | 41.6 | 92.1 | 65.3 | 64.6 | 38.2 | 95.3 | 86.3 | 55.6 | 92.2 | 86.3 | 77.6 |
| Class | Sign | Rider | Truck | Bus | Train | Motorcycle | Bicycle | Traffic light |
| Cross-Entropy Loss | ||||||||
| Pre | 77.7 | 73.4 | 86.1 | 89.9 | 86.7 | 71.6 | 79.2 | 69.3 |
| Recall | 90.4 | 72.5 | 79.1 | 88.6 | 76.4 | 64.9 | 90.9 | 88.9 |
| IoU | 71.8 | 57.4 | 70.1 | 80.5 | 68.3 | 51.6 | 73.4 | 63.8 |
| IAL | ||||||||
| Pre | 61.5 | 66.3 | 75.8 | 80.3 | 72.0 | 68.2 | 72.1 | 53.9 |
| Recall | 93.5 | 76.1 | 73.3 | 90.6 | 82.8 | 68.0 | 92.9 | 92.3 |
| IoU | 59.0 | 54.9 | 59.4 | 74.1 | 62.6 | 51.6 | 68.3 | 51.6 |
| Group | G2 | G1 | |||||||||
| Class | Car | Sidewalk | Fence | Pole | Pedestrian | Road | Building | Wall | Tree | Terrain | Sky |
| Cross-Entropy Loss | |||||||||||
| Pre | 95.9 | 86.1 | 76.4 | 65.3 | 78.8 | 99.0 | 96.1 | 73.9 | 95.4 | 76.0 | 93.7 |
| Recall | 97.6 | 90.6 | 65.8 | 83.5 | 94.5 | 97.9 | 93.4 | 51.3 | 95.2 | 73.6 | 98.6 |
| IoU | 93.6 | 79.0 | 54.7 | 57.8 | 75.3 | 96.9 | 90.0 | 43.4 | 91.0 | 59.7 | 92.4 |
| IAL | |||||||||||
| Pre | 94.0 | 82.5 | 65.8 | 53.4 | 76.0 | 99.1 | 96.7 | 68.4 | 95.7 | 66.1 | 92.7 |
| Recall | 97.7 | 91.3 | 69.7 | 84.9 | 94.0 | 97.0 | 89.6 | 46.6 | 92.8 | 77.5 | 97.7 |
| IoU | 92.0 | 76.4 | 51.2 | 48.8 | 72.4 | 96.1 | 86.9 | 38.3 | 89.1 | 55.5 | 90.7 |
| Class | Sign | Rider | Truck | Bus | Train | Terrain | Bicycle | Traffic light | Car | Sidewalk |
|---|---|---|---|---|---|---|---|---|---|---|
| Pre | 77.9 | 72.8 | 86.5 | 85.5 | 81.4 | 72.5 | 78.4 | 70.0 | 95.8 | 86.0 |
| Recall | 90.1 | 72.7 | 80.7 | 90.1 | 68.9 | 74.3 | 91.3 | 90.1 | 97.6 | 90.5 |
| IoU | 71.7 | 57.2 | 71.7 | 78.1 | 59.5 | 58.0 | 73.0 | 64.9 | 93.6 | 78.8 |
| Class | Fence | Pole | Wall | Road | Building | Pedestrian | Tree | Motorcycle | Sky | Mean |
| Pre | 71.4 | 65.9 | 77.2 | 99.0 | 96.1 | 80.0 | 95.3 | 71.5 | 94.2 | 82.0 |
| Recall | 68.7 | 83.5 | 47.5 | 94.4 | 93.3 | 97.8 | 95.1 | 61.8 | 98.0 | 83.5 |
| IoU | 53.8 | 58.3 | 41.7 | 96.8 | 89.9 | 76.4 | 90.9 | 49.6 | 92.4 | 71.4 |
| Class | Sign | Rider | Truck | Bus | Train | Terrain | Bicycle | Traffic light | Car | Sidewalk |
|---|---|---|---|---|---|---|---|---|---|---|
| Pre | 47.3 | 43.5 | 57.8 | 69.5 | 36.7 | 39.8 | 63.7 | 30.7 | 94.4 | 82.4 |
| Recall | 94.2 | 80.1 | 83.0 | 91.9 | 82.5 | 77.1 | 90.0 | 95.4 | 95.3 | 88.5 |
| IoU | 46.0 | 39.2 | 51.6 | 65.5 | 34.0 | 35.6 | 59.5 | 30.3 | 90.1 | 74.4 |
| Class | Fence | Pole | Wall | Road | Building | Pedestrian | Tree | Motorcycle | Sky | Mean |
| Pre | 57.5 | 37.6 | 55.4 | 98.6 | 96.4 | 65.0 | 95.4 | 31.6 | 87.2 | 62.6 |
| Recall | 69.2 | 88.8 | 63.8 | 93.5 | 82.3 | 93.5 | 88.0 | 76.7 | 94.6 | 85.7 |
| IoU | 45.8 | 35.9 | 42.1 | 92.2 | 79.8 | 62.2 | 84.5 | 28.9 | 83.0 | 56.9 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Neural Network Applications · Domain Adaptation and Few-Shot Learning · Multimodal Machine Learning Applications
MethodsConvolution
\authorinfo
- Corresponding author. Email: [email protected].
A Comparative Study of High-Recall Real-Time Semantic Segmentation Based on Swift Factorized Network
Kaite Xiang
State Key Laboratory of Modern Optical Instrumentation, Zhejiang University, No. 38 Zheda Road, Hangzhou 310027, China
Kaiwei Wang*∗* and Kailun Yang
State Key Laboratory of Modern Optical Instrumentation, Zhejiang University, No. 38 Zheda Road, Hangzhou 310027, China
Abstract
Semantic Segmentation (SS) is the task to assign a semantic label to each pixel of the observed images, which is of crucial significance for autonomous vehicles, navigation assistance systems for the visually impaired, and augmented reality devices. However, there is still a long way for SS to be put into practice as there are two essential challenges that need to be addressed: efficiency and evaluation criterions for practical application. For specific application scenarios, different criterions need to be adopted. Recall rate is an important criterion for many tasks like autonomous vehicles. For autonomous vehicles, we need to focus on the detection of the traffic objects like cars, buses, and pedestrians, which should be detected with high recall rates. In other words, it is preferable to detect it wrongly than miss it, because the other traffic objects will be dangerous if the algorithm miss them and segment them as safe roadways. In this paper, our main goal is to explore possible methods to attain high recall rate. Firstly, we propose a real-time SS network named Swift Factorized Network (SFN). The proposed network is adapted from SwiftNet, whose structure is a typical U-shape structure with lateral connections. Inspired by ERFNet and Global convolution Networks (GCNet), we propose two different blocks to enlarge valid receptive field. They do not take up too much calculation resources, but significantly enhance the performance compared with the baseline network. Secondly, we explore three ways to achieve higher recall rate, i.e loss function, classifier and decision rules. We perform a comprehensive set of experiments on state-of-the-art datasets including CamVid and Cityscapes. We demonstrate that our SS convolutional neural networks reach excellent performance. Furthermore, we make a detailed analysis and comparison of the three proposed methods on the promotion of recall rate.
keywords:
Real-Time Semantic Segmentation, High-Recall Semantic Segmentation, Importance-Aware Loss, Graph Convolution Network, Maximum Likelihood Rule
1 INTRODUCTION
Semantic Segmentation (SS) is the task to assign a semantic label to each pixel of the observed images, which is of crucial significance for autonomous vehicles, navigation assistance systems for the visually impaired, and augmented reality devices [1][2]. It has gained great development from traditional method into methods based on deep convolutional neural networks (CNNs) since the milestone created by Fully Convolutional Networks (FCN) [3].
However, there is still a long way for SS to be put into practice as there are two essential challenges that need to be addressed. Firstly, the inference efficiency is paramount for real-time applications with limited computational resources, which should be assured. Secondly, different evaluation criterions have been used in the literature, without consideration of the target application scenario. To address these issues, we aim to lay a good balance between inference speed and performance measured using certain criterion suitable for certain applications instead of merely depending on mean Intersection over Union (mIoU).
In this paper, we propose a real-time SS network named Swift Factorized Network (SFN) based on ResNet-18 [4], a light-weight convolutional neural network specially designed for classification tasks. The proposed network is adapted from SwiftNet [5], which can reach state-of the art performance at a fast inference speed. The structure of the network is a typical U-shape structure with lateral connections. Inspired by ERFNet [6][7] and Global Convolutional Network [8], we have realized the importance of the receptive field. In order to extract better features and enlarge valid receptive field, we propose two different blocks. The first method is to add a series of factorized convolution blocks with different dilation rate, and the other one is to insert global convolutional blocks with diverse kernel sizes to refine features. They won’t take up too much calculation resources, but significantly enhance the performance compared with the baseline network.
On the other hand, in order to cope with specific application scenarios, we need to adopt different criterions. Recall rate is an important criterion for many tasks. Taking autonomous driving as an example, we need to focus on the detection of the traffic objects like cars, buses, and pedestrians, which should be detected with high recall rates. In other words, it is preferable to detect it wrongly than miss it, because the other traffic objects will be dangerous if the algorithm miss them and segment them as safe roadways. Moreover, for autonomous driving, different objects should be coped with different rank of importance, the traffic light, cars, riders are much more important than road, sky, and etc. If the algorithm does not differentiate the different priorities for certain classes, the module will reach a normal performance for all classes. In order to promote the certain classes’ recall rates, we explore three different methods as shown in Fig. 1:
(1)** Loss Function:** Loss function is of great significance for training a model. In order to reach high recall rate, we utilize importance-aware loss [9].
(2)** Classifier:** Graph Convolution Networks (GCN) are very useful and popular to cope with the graph data. It can also be utilized as a classifier, such that the result is based on the pre-defined graph.
(3)** Decision Rules:** The normal decision rule in classification or semantic segmentation tasks is Bayes rule. In our experiment, we also adopt Maximum Likelihood (ML) rule which is promising to boost the recall rate.
In order to test and verify our method and network, we perform a comprehensive set of experiments on state-of-the-art datasets including CamVid [10] and Cityscapes [11]. Our contributions are summarized as follows: (1) A semantic segmentation network i.e. SFN is proposed, which is a real-time network and can reach excellent performance. (2) We make a detailed analysis and comparison of the three proposed methods on the promotion of recall rate. (3) We provide three possible methods to attain higher recall rates for semantic scene understanding. (4) Our implementations and codes are available at: https://github.com/Katexiang/swiftnet/tree/master/Swift_Factorized_Network(SFN)
2 RELATED WORK
2.1 Semantic Segmentation Neural Networks
The milestone created by FCN results in the prosper for method based on Deep Learning to SS task. The fundamental framework of SS Neural Networks is an Encoder-Decoder structure. Typical representative networks like UNet [12], PSPNet [13], DeepLab V3 [14] and ACNet [15] can reach brilliant performance but can not strike a balance between efficiency and accuracy. Therefore, they can not be applied into real-time application. In order to put SS into practice, many real-time SS networks have been proposed in recent years. ENet [16] is the pioneer in the era of real-time SS networks, which is adapted from ResNet structure [4] but discards the last stage of the model to raise efficiency. Following that, many real-time SS Network appear. ERFNet [6][7] and ERF-PSPNet [17][18] utilize residual factorized module to reduce parameters and keep fine performance. ICNet[19] and BiSeNet [20] are multiply-path structures using immense calculations on small feature maps for excavating context information and a few calculations on big feature maps to keep spatial information so that they can keep high efficiency and favourable performance. SwiftNet [5] and many other real-time SS networks are based on the Encoder-Decoder structure with light-weight base networks like ShuffleNet[21], MobileNet[22] and etc., whose performance vary considerably depending on their decoder structures and lateral connections.
2.2 Somewhat-Aware Method for Semantic Segmentation
As is detailed in Sec. 1, every pixel can not be addressed without bias. Inspired by the different attributes for different pixels, many somewhat-aware methods are proposed to cope with certain somewhat-bias tasks. Focal loss [23] is one of the most well-known methods aiming to cope with the detection of difficult objects for object detection task, which has been transferred into SS task and can promote SS networks’ precision [24]. Another difficulty-aware method is a structure style named deep layer cascade [25] to cope with the situation when different pixels possess different difficulties. In view of the lack of valid label for SS, many researchers consider to utilize synthetic data to train SS Networks. However, the domain gap between synthetic data and real data prevents the models generalizing well to real image [7]. Therefore, Hierarchical Region Selection [26] is proposed to select similarity region between synthetic and real image, i.e. an interest-aware method. IAL [9] is a loss function which is put forward to cope with the fact that different objects possesses different ranks of importance, i.e. an importance-aware method. IAL is one of the possible methods to achieve high-recall semantic segmentation.
2.3 Graph Convolution Networks
Graph Convolution Networks (GCN) are a kind of structure to generalize neural networks to graph data. For computer vision tasks, many method based on GCN have reached state-of-the-art performance in different areas. Their usuage can be classified into two types, i.e. classifier and feature modifier. For the former, Chen et al. [27] utilize GCN to cope with multi-label image recognition and reach state-of-the-art performance. For the latter, Qi et al. [28] adopt GCN to act as an feature modifier to adjust the feature representation for RGBD SS. In previous works, we have also developed segmentation frameworks suitable for RGBD [15][29] and panoramic images [18]. In this paper, GCN acts as a classifier in SS task, in order to advance recall rate depending on our pre-defined graph.
2.4 Decision Rules
There are generally two kinds of decision rules in machine learning task, i.e. Bayes rule and Maximum Likelihood (ML) rule. Standard decision rule for SS task is Bayes rule, while some research shows that Maximum Likelihood rule help advance the recall rate for SS task. Chan et al. [30] utilize ML rule to handle class imbalance in SS. ML is a promising key to reach high recall rate for SS.
3 METHODOLOGY
3.1 Swift Factorized Network
The proposed SS Network is based on the Encoder-Decoder structure with U-shape. The main architecture is shown in Fig. 2. The basic building blocks are Encoder, Spatial Pyramid Pooling (SPP) and Decoder which consists of a series of upsample blocks.
Encoder: For the downsample block, i.e. the Encoder of the network, we choose ResNet-18 as the backbone of the SS network. The encoder working as the feature extractor can obtain semantic feature from the input image for SS, because it is brought up to cope with the recognition task. As a matter of fact, MobileNet and ShuffleNet are the alternatives as well. All of these models are compatible with real-time operation due to their small computation complexity. On the other hand, they are appropriate choices for fine tuning because there are many ImageNet [31] pre-trained parameters being publicly available.
SPP: SPP module is a typical pyramid structure which can extract feature for multi-scale representation, thus increasing the receptive field [32]. As shown in the dotted box of Fig. 2, the spp module is composed of four pairs of convolution layers and adaptive pooling layer with varying scales or levels which can produce and recombine the feature maps at different scales and enlarge the valid receptive field. The structure is inherited from PSPNet, but transferred into a simplified version in order to advance efficiency.
Upsampling Decoder Blocks (UDBs): Traditional upsampling methods for SS include bilinear interpolation and transpose convolution. The upsampling decoder is to upsample feature maps from the Encoder to the input resolution. The original UDB is a lateral connection structure shown in Fig. 3(a), which is composed with a 1 1 convolution for dimension matching between feature maps from corresponding layers and those from previous layers, a bilinear interpolation layer for keeping the same resolution and a 3 3 convolution layer for blending and recombining features. This method is so simple that the valid receptive field is not very large only if the receptive field merely depends on SPP. Inspired by ERFNet, which utilizes a series of “Non-bottleneck-1D” block with various of dilation rates and factorized convolution, we redesign the base UDB into the structure as shown in Fig. 3(b). Factorized convolution is utilized to reduce parameters and dilation rate is employed to enlarge receptive field. According to GCNet, we have realized the significance of large kernel which can enlarge the receptive field directly. We also modify the base UDB into two additional versions as shown in Fig. 3(c) and Fig. 3(d). Their main difference is their merging stage between feature maps from corresponding layers and those from previous layers. We will detail the comparison among these four versions of UDBs, and choose the early merge of GCNet as the baseline block in the end named Swift Factorized Network (SFN).
3.2 Loss function
Loss function for our experiment includes cross-entropy loss and importance-aware loss. In fact, the latter one is the variation of cross-entropy loss.
The cross-entropy is defined by
[TABLE]
where q and p are the the one-hot encoding label and output after softmax-layer, respectively. The loss function is widely used in the region of classification and SS task. In order to cope with the situation that different objects take up different pixel counts in the images. Frequency weighting w is introduced into the loss function, and the modified cross-entropy loss becomes:
[TABLE]
where f is the frequency of the calculated class, and a is a hyper-parameter avoiding divided by zero. In this paper, we set it to 1.02. However, cross-entropy loss can not cope with the fact that different objects possess different ranks of importance.
IAL is a loss function, which is combined with cross-entropy loss and importance weight. Taking CamVid as an example, the dataset has 11 classes,i.e., sky, building, pole, road, sidewalk, tree, sign, fence, car,pedestrian and bicyclist. In view of autonomous vehicles, there are three ranks of importance as shown in Fig. 4(a).
Fig. 4(b) and Fig. 4(c) are the importance matrices for calculating the importance dynamic weights. The importance dynamic weights are defined by:
[TABLE]
where is the ground-truth channel value of the output and the value of (\textbf{M{}_{2}}\neq\textbf{X}) is 0 if the value of the matrix is X else the value is 1. is a tuning parameter set to 0.5 in order to take the lower-importance category into consideration and avoid ignoring them when calculating the dynamic importance weight. The proposed IAL can be defined by
[TABLE]
where I1, I2 and I3 are the sum of G1,G2 and G3’s cross-entropy loss, respectively.
3.3 Graph Convolution Network as Classifier
Graph convolution networks are very popular in various research fields. In this paper, we make a brief introduction to GCN. Unlike normal convolution layer which operates on images or feature maps as a sliding window, GCN is an operation to extract relation among nodes in a graph. is a feature representation for a graph, where l is the layer of the GCN, n denotes the number of nodes and d is the dimension of node features. The following layer of the GCN will be . The calculation process can be represented as:
[TABLE]
where is an activation function (we select LeakyReLU in our experiments), is the normalized version of correlation matrix, and is the transformation matrix.
In our experiments, GCN works as an classifier as shown in Fig. 5. We define a directed graph, and utilize the graph to extract the relation among the classes. Then, the final layer of the GCN is reshaped into a matrix which works as the feature selector, i.e. classifier.
3.4 Decision Rule for Semantic Segmentation
Standard decision rule for SS is Bayes rule. Normally, the output of the SS Network is followed by a softmax layer, which makes the sum of the output’s every channel be 1. In other words, the output can be viewed as the probability of belonging to one of these categories. The decision result of the Bayes rule is that the maximum of the probability, i.e.,
[TABLE]
and Maximum Likelihood (ML) is defined by:
[TABLE]
where is the distribution of the ground truth labels, i.e. priors, which is the key element to the implementation of ML decision. We estimate the priors by using the training set. More precisely, we need to calculate pixel-wise class distribution, in order to reduce data-specific noise from the priors, a Gaussian filter will be exerted to the priors. In addition, a lower cut off limit of is necessary avoiding divided by zero. A visualization of priors can be found in Fig. 6.
4 EXPERIMENTS
In order to verify the model’s performance and our proposed method to advance recall rate, we perform a series of experiments on two challenging benchmarks, Cityscape and CamVid, whose images have the resolutions of 2048 1024 and 960 720, respectively.
4.1 Implementation Details
We use Tensorflow and a NVDIA GeForce GTX 1080Ti GPU for training and validation. We use Adam optimizer [33] to train our models with the initial learning rate set to 410*-4*. We decay the learning rate with cosine annealing to the minimum 2.510*-3* of the initial learning rate in the final epoch. For the sake of combatting overfitting, we use the L2 weight regularization with decay of 110*-4*. In view of the pre-training parameters by ImageNet[31], we update these parameters with 4 times smaller learning rate and weight decay. We scale the images with random factors between 0.75 and 1.25, and randomly crop the images. We use 768768 crops for Cityscapes, and 448448 crops for CamVid. Finally, we employ random horizontal flipping. We train our models with batch size 12, but when training models with IAL, the batch size decreases to 11 because of the limited resource. We train 200 epochs on Cityscapes, and 400 epochs on CamVid.
4.2 Quantitative Results
In order to choose the best UDB structure as detailed in Sec. 3.1. We train four UDB architectures on Cityscapes training set, and evaluate them by using the Cityscapes validation set. In view of the fact that batch normalization layers can be fused with preceding convolution layers, we exclude them from the models when measuring the inference speed. The result and the inference speed on GTX 1080Ti are shown in Tab. 1 (The fps corresponds to the resolution of 1024 512). According to the result, we can draw the conclusion that our proposed factorized convolution UDBs can advance the basic performance, especially when using the early merging of GCNet, which obtains an mIoU improvement of roughly 2.4%. In addition, we find that all our proposed models significantly surpass our previous ERF-PSPNet [17] in terms of both efficiency and accuracy. We can make an brief analysis among these UDBs. The ERF version of UDB is effective, but the performance depends on the chosen dilation rates. We find that using larger dilation rates results in worse performance than smaller one. This is because unlike ERFNet which is composed of a series of factorized convolution blocks, our model only possesses three UDBs so that using excessively big dilation rates produces sparse connection on the feature maps. Therefore, using smaller dilation rates can enlarge the valid receptive field and advance the performance. As for the GCNet block, we find that the early merging version is much better than the late merging. The feature from encoder is low-level features, and the late merging of GCNet operates on the features may lack the relation between the low-level features and high-level features from the previous layers. However, the early merging of GCNet utilizes element-wise summations to merge these features, followed by the GCNet to extract the features and enlarge valid receptive field. Therefore, we select the early merging of GCNet as the baseline for the following experiments. Additionally, the result on CamVid tesing set shows that our proposed method can prove its effectiveness, i.e. 73.4% over 72.3% for the basic version according to Tab. 2.
In the following experiments, our proposals including importance-aware loss function, GCN and ML rule are analyzed quantitatively.
Importance-aware loss: As detailed in Sec. 1, in order to promote the recall rate for important classes, we need to category classes into different importance groups. For CamVid, we select the ranks of importance as depicted in Fig. 4(a). From the results in Tab. 2, we observe that the recall rates of G3 have been advanced especially the bicyclist which has an improvement of around 6.4%. And the mean recall rate rises to 83.0% from 82.7%, while the G3’s mean recall rate rises to 81.7% from 80.0%. In other words, IAL make the model focus on the detection of the most important categories successfully, evidenced by the improvement of the important categories’ recall rates. In view of the difference between Cityscapes and CamVid, some categories need to be attributed with different importance ranks or else it may lead to detrimental effects for training. For Cityscapes, we regard the importance categories as shown in Tab. 3 and Tab. 4. We find that the G3’s recall rates have been improved dramatically, especially the train, which has a improvement of 6.4%. We observe that the mean recall rate, G3’s mean recall rate and G2’s mean recall rate have elevated to 84.6% from 83.9%, 83.7% from 81.5% and 87.5% from 86.4%, respectively. In addition, many G1’s categories have a slight improvement of precision. Making a brief summary to IAL, it can indeed advance the model’s recall rate, especially the important categories’ recall rates, but may have an adverse effect on the mIoU depending on the dataset. For CamVid, the mIoU has a slight degradation from 73.4% to 72.3%, but mIoU of Cityscapes dramatically degrades from 72.2% to 67.3%.
GCN: GCN’s performance depends on the pre-defined graph. In our experiment, we train models on Cityscapes, and define the graph like importance group. We regard that the G3’s nodes have connection with every nodes, G2’s nodes have connection with every nodes except G3’s nodes, and G1’s nodes only have dependency with G1’s nodes. We select one-hot encoding label as the word embeddings for the nodes. The result of GCN is filled in the Tab. 5. In comparison with the results on Tab. 3 and Tab. 4, we observe that GCN advance many important categories of G2 and G3 ’s recall rate, but the advancement is not remarkable, and it can improve some categories’ precision as well. In general, it can indeed improve the important categories’ recall rates. In addition, it does not have a severe side effect on the precision or the IoU of the model. On the other hand, a more scientific method to produce graph is promising to advance the model’s performance, and other types of word embeddings may improve it as well.
Bayes V.S. Maximum Likelihood (ML) decisions: As detailed in Sec. 3.4, we obtain the priors by calculating the pixel-wise class distribution of the Cityscapes training set. A lower cut off limit of and a Gaussian filter with of 40 to avoid being divided by zero and reduce noise. The results in Tab. 6 shows that ML rule has an improvement on recall rate by a large margin. The recall rates of some categories like wall, motorcycle and rider have a remarkable elevation. On the contrary, the precision of the model has a detrimental effect, and the mean precision degrade from 82.7% to 62.6%, in spite of the fact that the mean recall rate has an improvement of around 1.8%. Comparing with Tab. 3 and Tab. 4, we draw the conclusion that the categories with improvement on recall rate are the categories with relative lower precision of the model trained by using the cross-entropy loss.
Making a brief comparison among these three methods for high recall rate, we conclude that our three proposed methods can advance the recall rates, but all of them have a side effect on precision. For IAL, it can push the model to focus on the important categories, and detect them with high recall rates. It is promising to be taken into training the model for autonomous vehicles because categories which need to be detected with high recall rates like bus, car, pedestrian, and etc,. are the most important key to offer a safe path for the vehicles even if their precisions are comparatively low. Moreover, IAL can be modified into other versions combined with focal loss and other methods. For GCN, we find it has the least side effect on the performance of model. Due to the fact that GCN is utilized into extract correlation among nodes or classes, it could theoretically have a better performance than traditional classifier based on CNNs. However, the pre-defined graph influences the result. A more scientific method for searching the graph is the key point. A possible solution to this issue is to construct a learnable graph module to search for the best graph for GCN other than define the graph by ourselves. For another thing, a better word embedding needs to be considered. For ML rule, an amazing improvement on recall rate can not fade away the detrimental decrease of precision. There are many possible keys to cope with the problem. Our training for ML rule is the same as Bayes rule. In other words, we merely train the model depending on max Bayes probability other than conditional probability. Training with priors may be a workable way.
4.3 Qualitative Analysis
The effects of IAL are illustrated in Fig. 7 and Fig. 8. For the former, we find that the bicyclist can be detected with high recall rate, and the model trained with cross-entropy loss misses many parts of the bicyclist and even ignore the bicyclist in the distance. For the latter, the model trained with cross-entropy loss segments part of the bus into bus, car, and truck, what’s more, it even categories the truck into pedestrian as labeled by red, and it ignores traffic light which is successfully detected by using IAL. However, the model trained by cross-entropy loss possesses a higher precision on the area like vegetation and terrain.
In order to prove the effectiveness of GCN, we utilize t-SNE [34] to visualize the effect of the GCN classifier. The learned parameters are shown in Fig. 10, we observe that the classifier maintains meaningful semantic topology, which puts car, truck, bus and train close and motorcycle, bicycle, rider and pedestrian together and etc. Therefore, the classifier can select meaningful features for classification. The result of the SS is shown in Fig. 9. We find that the baseline segments a large part of the bus into pole, part of the terrain into sidewalk. On the contrary, the model with GCN classifier detects most part of the bus and has a higher recall rate than the baseline method on the area of terrain. We believe a more scientific graph is promising for better performance.
For ML decision rule, it is obvious to find that the result of using ML decision rule segments most part of wall, while the result of Bayes decision rule, segments many part of wall into vegetation as shown in Fig. 11. However, the result conveys the fact that ML decision rule can bring in much noise, especially in the white box of the Fig. 11 where the result of using Bayes decision rule segments vegetation resoundingly while the ML rarely ignores any part of it. On the other hand, we find that the boundary of the object is partial to be segmented into objects that are relatively rare. In other words, the ML decision rule is more likely to segment boundary pixels to the objects that are detected with low precision when using Bayes rule.
5 CONCLUSIONS AND FUTURE WORK
Semantic Segmentation (SS) can bring brilliant fruits in many aspects of computer vision in the era of AI, especially autonomous driving and medical image processing. For certain application, certain evaluation criterion should be taken into account. In our work, our main purpose is to advance the recall rate of the model especially certain categories, because in the area of autonomous driving, different object possess different ranks of importance, and many important items should be detected and segmented with high recall rates. We put forward there different methods to attain higher recall rates. In spite of the fact these three methods can indeed advance recall rates to some extent, there are still much space for a better performance following these three methods.
In order to put SS into practice, we must take inference speed into account. We adapt SwiftNet into Swift Factorized Network (SFN) combining GCNet and factorized convolution which possesses a larger valid receptive field. In the future, we aim to further explore the proposed methods towards higher recall rate, especially GCN. We have the intention to design a better scheme to search for a better pre-defined graph and word-embeddings instead of using one-hot encoding merely. Moreover, training a model by using conditional probability instead of Bayes probability is a possible solution. Furthermore, we are determined to combine SS [1][18] and visual localization [35][36] to serve autonomous vehicles and navigation assistance systems for the visually impaired.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Yang, K., Wang, K., Bergasa, L., Romera, E., Hu, W., Sun, D., Sun, J., Cheng, R., Chen, T., and López, E., “Unifying terrain awareness for the visually impaired through real-time semantic segmentation,” Sensors 18 (5), 1506 (2018).
- 2[2] Xiang, K., Wang, K., and Yang, K., “Importance-aware semantic segmentation with efficient pyramidal context network for navigational assistant systems,” in [ 2019 IEEE Intelligent Transportation Systems Conference (ITSC) ], 1–7, IEEE (2019).
- 3[3] Long, J., Shelhamer, E., and Darrell, T., “Fully convolutional networks for semantic segmentation,” in [ 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) ], 3431–3440, IEEE (2015).
- 4[4] He, K., Zhang, X., Ren, S., and Sun, J., “Deep residual learning for image recognition,” in [ 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) ], 770–778, IEEE (2016).
- 5[5] Orsic, M., Kreso, I., Bevandic, P., and Segvic, S., “In defense of pre-trained imagenet architectures for real-time semantic segmentation of road-driving images,” in [ Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition ], 12607–12616 (2019).
- 6[6] Romera, E., Alvarez, J. M., Bergasa, L. M., and Arroyo, R., “Erfnet: Efficient residual factorized convnet for real-time semantic segmentation,” IEEE Transactions on Intelligent Transportation Systems 19 (1), 263–272 (2018).
- 7[7] Romera, E., Bergasa, L. M., Yang, K., Alvarez, J. M., and Barea, R., “Bridging the day and night domain gap for semantic segmentation,” in [ 2019 IEEE Intelligent Vehicles Symposium (IV) ], 1184–1190, IEEE (2019).
- 8[8] Peng, C., Zhang, X., Yu, G., Luo, G., and Sun, J., “Large kernel matters — improve semantic segmentation by global convolutional network,” in [ 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) ], 1743–1751, IEEE (2017).
