Next Article in Journal
Microwave Resonators for Wearable Sensors Design: A Systematic Review
Previous Article in Journal
Multimodal Gait Abnormality Recognition Using a Convolutional Neural Network–Bidirectional Long Short-Term Memory (CNN-BiLSTM) Network Based on Multi-Sensor Data Fusion
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

CompleteInst: An Efficient Instance Segmentation Network for Missed Detection Scene of Autonomous Driving

1
School of Automotive and Traffic Engineering, Jiangsu University, Zhenjiang 212013, China
2
Automotive Engineering Research Institute, Jiangsu University, Zhenjiang 212013, China
3
School of Automobile and Traffic Engineering, Jiangsu University of Technology, Changzhou 213001, China
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(22), 9102; https://doi.org/10.3390/s23229102
Submission received: 28 September 2023 / Revised: 25 October 2023 / Accepted: 8 November 2023 / Published: 10 November 2023
(This article belongs to the Section Vehicular Sensing)

Abstract

:
As a fundamental computer vision task, instance segmentation is widely used in the field of autonomous driving because it can perform both instance-level distinction and pixel-level segmentation. We propose CompleteInst based on QueryInst as a solution to the problems of missed detection with a network structure designed from the feature level and the instance level. At the feature level, we propose Global Pyramid Networks (GPN) to collect global information of missed instances. Then, we introduce the semantic branch to complete the semantic features of the missed instances. At the instance level, we implement the query-based optimal transport assignment (OTA-Query) sample allocation strategy which enhances the quality of positive samples of missed instances. Both the semantic branch and OTA-Query are parallel, meaning that there is no interference between stages, and they are compatible with the parallel supervision mechanism of QueryInst. We also compare their performance to that of non-parallel structures, highlighting the superiority of the proposed parallel structure. Experiments were conducted on the Cityscapes and COCO dataset, and the recall of CompleteInst reached 56.7% and 54.2%, a 3.5% and 3.2% improvement over the baseline, outperforming other methods.

1. Introduction

In recent years, deep learning has been widely used in various fields, including autonomous driving [1,2], computer vision [3,4,5,6], etc. Object detection [7] and semantic segmentation [8,9,10] are currently the most prevalent algorithms used in the field of autonomous driving. However, these tasks have their own shortcomings: object detection can only identify the location of traffic objects and output a bounding box with location information; it cannot describe its shape in detail. While semantic segmentation is proficient at achieving pixel-level segmentation, it lacks the ability to differentiate between individual instances. The segmentation of objects, including buildings, nature sceneries, and others, exhibits excessive redundancy in the context of autonomous driving.
Therefore, we choose instance segmentation [11] as the juncture between semantic segmentation tasks and object detection tasks. Instance segmentation not only identifies the location of objects of interest but also segments each object of interest pixel by pixel within an image. Consequently, applying the instance segmentation algorithm to the scene of autonomous driving can distinguish pedestrians, cars, riders, and other objects of interest at both the instance and pixel levels, which has engineering significance. The instance segmentation network can output both the bounding box of the object and the segmentation result of the object. The bounding box gives the location information of the objects; the segmentation result can describe the specific shape of the objects. Therefore, we adopt instance segmentation network to study the missed detection problem.
The complexity of autonomous driving scenarios increases the likelihood of the problem of missed detection. Failure to recognize and segment traffic objects, such as cars and pedestrians, during the act of driving can significantly increase the likelihood of life-threatening traffic accidents. Therefore, it is imperative to address the issue of missed detection in order to enhance both the safety and efficiency of traffic.
Existing methods for instance segmentation concentrate on developing new paradigms while ignoring the problems of missed detection. Faster R-CNN [7] is the first two-stage object detection algorithm. First, the bounding boxes are initially screened through the Region Proposal Network (RPN) [7]; then, the network head and NMS post-processing strategies are used to screen them a second time, greatly reducing the number of bounding boxes. Mask R-CNN [12] is an extension of Faster R-CNN, so Mask R-CNN is also the first two-stage instance segmentation network. Mask R-CNN adds a mask head based on Faster R-CNN. During the inference process, the bounding boxes of the detection head are first obtained, then the bounding boxes are aligned to obtain the mask RoI features. Finally, the instance mask is obtained. Since the two-stage instance segmentation algorithm relies heavily on the bounding boxes of the detection head, and the number of the bounding boxes is not guaranteed, it causes the problem of missed detection. In the single-stage instance segmentation network, the SOLO algorithm [13] is relatively typical. SOLO directly predicts instance mask by introducing the concept of “instance categories”, and assigns the “instance categories” to each pixel in the instance according to its location and size. Then, SOLOv2 [14] is proposed, wherein the representation and learning process of the mask are obtained by convolution of dynamically generated convolution kernel parameters and feature maps. The principles of single-stage instance segmentation methods like SOLO and SOLOv2 are the same. The central concept of the single-stage instance segmentation is that a single location corresponds to a single instance mask. This method strikes a good balance between precision and speed, but the concept itself is the source of missed detection. Assuming that the traffic objects are too close, the network determines that centers of traffic objects are in the same location. Consequently, only one instance mask is predicted, and the mask is ambiguous, resulting in missed detection. Multi-stage methods are divided into two types based on whether the attention mechanism [15] is used. The first type is the traditional method that does not use the attention mechanism [15], such as HTC [16] and Cascade R-CNN [17]. This type of algorithm is an extension of the two stages. After each stage, the bounding boxes will be filtered layer by layer and become very few in number, so they are not suitable for solving the problem of missed detection. Owing to the network’s inherent characteristics, the aforementioned traditional instance segmentation methods result in missed detection. This characteristic cannot be altered through structural optimization and, therefore, cannot be used as a baseline to solve the missed detection problem. Therefore, we shift our focus to attention mechanism-based [12] instance segmentation.
Query-based instance segmentation is based on the attention mechanism [12], which treats instances of interest as queries that can be learned. We select QueryInst [18] as our baseline for addressing the missed detection problem. QueryInst is the first query-based instance segmentation method. It proposes using the one-to-one relationship between object query and mask Region of Interest (RoI) features and assigning instance information (shape, location, associative embedding, etc.) contained in the query to the RoI features via dynamic mask heads. During training, QueryInst employs a parallel supervision strategy, wherein gradients computation and parameter updates are simultaneously performed across various stages of the network without mutual interference.
We visualized the feature layers with the largest scale of Feature Pyramid Network (FPN) [19] in CAM [20] in order to be able to analyze in detail which factors cause the missed detection. As depicted in Figure 1, we compared the original images, the visualized heat maps, and the final instance segmentation results. The red-circled objects were not detected and segmented due to a detection error in the third column. According to the heat maps, the recognized instance’s position has a maximum heat value. The position of the missed instance, however, has a lower heat value or even no heat value. This indicates that the network has not fully learned the features of the missed instance. The similarities between the missed instance features and background features result in the missed instance features being ignored. Therefore, strengthening the network to extract missed instance features from different levels and completing the missed instance features are essential to resolving the missed detection problem.
Therefore, we propose the CompleteInst algorithm, a multi-stage and efficient perception algorithm based on the attention mechanism that solves the problem of missed detection by strengthening the learning of the features of missed detection instances. Our method solves the problems of missed detection at both the feature and instance levels. At the feature level, we propose global pyramid networks (GPN) and the semantic branch. GPN collects the global information of all instances in each feature layer, strengthens the connection between instances with missed detection and other instances, and completes the global features of missed detection instances. The semantic branch enables the missed instances in the form of RoI to obtain semantic information, enhances the distinction between the missed instances and the background, and completes the missed instances’ semantic features. At the instance level, we propose query-based optimal transport assignment (OTA-Query) by generalizing traditional OTA [21]. OTA-Query augments the number of positive samples for each missed instance, allowing more high-quality positive sample features to participate in the regression of masks and bounding boxes and indirectly completing the missed instance features at the instance level.
Notably, both our semantic branch and OTA-Query are parallel, which is compatible with QueryInst’s parallel supervision mechanism. These methods do not interfere with one another between stages, and they all occur within a single stage. To highlight the parallelism of our structures, we also introduce non-parallel structures as a contrast, utilizing the outcomes of the preceding stage, such as the dynamic interactive module, the enhanced RoI features, etc. Due to their violation of the parallel supervision mechanism, these non-parallel structures did not achieve good results.
The algorithm known as CompleteInst is a query-based instance segmentation method that has been developed by our team. The primary objective of all improvement efforts is to address the issue of missed detection. The evaluation conducted on the Cityscapes and COCO datasets demonstrates that our model surpasses more sophisticated algorithms in terms of performance. The primary contributions of this study are outlined below:
(1)
To strengthen the connection between missed detection instances and other instances, we improve FPN and propose GPN. GPN completes the global features of missed detection instances.
(2)
To enhance the distinction between the missed instances and the background, the semantic branch is proposed. The semantic branch completes the semantic features of missed detection instances.
(3)
To improve the quality of positive samples for each missed instance, OTA-Query is proposed.
(4)
To highlight the parallelism of above structures, non-parallel structures are introduced. The parallelism structures are proven to be more effective.
The remainder of the paper is structured as follows: In Section 2, related research on deep learning-based instance segmentation methods is presented. In Section 3, the proposed CompleteInst method’s flow and operating principle are described. The experimental results obtained by the proposed CompleteInst algorithm are analysed in Section 4. Section 5 provides the principal conclusions.

2. Related Works

The task of instance segmentation involves the assignment of a mask at the pixel level to each instance of interest within an image, together with the assignment of a class label to each instance. The differentiation between semantic segmentation lies in the requirement to differentiate each individual instance, while the differentiation from object detection is necessary to accurately identify the form of each instance rather than just providing a bounding box output. Hence, instance segmentation entails the simultaneous execution of object detection and segmentation. By employing instance-level discrimination and pixel-level segmentation, the autonomous driving system is able to accurately differentiate between pedestrians, riders, and different categories of vehicles on the road. Instance segmentation methods can be classified into three categories, namely one-stage, two-stage, or multi-stage, depending on the step at which the mask is generated. In light of the recent surge in the popularity of transformers, we also emphasise the significance of query-based methodologies. A comprehensive and elaborate description will be provided for each specific case mentioned subsequently.

2.1. One Stage Methods

Dai et al. proposed instance-sensitive FCN [22] to generate proposals using instance-sensitive score maps: firstly, generating a set of instance-sensitive score maps, and then using an assembling module to generate object instances in a sliding window. Wang et al. proposed SOLO [13], which directly predicts instance mask by introducing the concept of “instance categories”, and assigning the “instance categories” to each pixel in the instance according to its location and size. Then, an improved version (SOLOv2 [14]) was proposed, which proposed that the representation and learning process of the mask were obtained by convolution of dynamically generated convolution kernel parameters and feature maps, reducing memory and computation. Xie et al. proposed PolarMask [23], which predicts instance contours through instance center classification and polar coordinate dense distance regression, and utilizes polar centredness to sample high-quality centre samples. Bolya et al. proposed YOLACT [24], which first generates a set of prototype masks, linearly combining coefficients and bounding boxes for each instance, then linearly combines prototypes using the corresponding prediction coefficients, and finally crops using the predicted bounding boxes. Chen et al. proposed BlendMask [25], which includes a blender module, consisting of a bottom module and a top module where the bottom module uses backbone features to predict a set of bases containing low-level semantic information and the top module predicts attention at the instance-level that contains high-level instance information. Du et al. proposed Orient Mask [26], adding an additional OrienHead base on YOLOv3 [27] to predict orientation maps, and combining the obtained bounding boxes and orientation maps for constructing masks. In general, the mask generation method of the single-stage method corresponds to one mask for one position, which is also the reason for the missed detection problem. For example, multiple traffic objects at one location will produce one blurred mask instead of multiple sharp masks.

2.2. Two-Stage Methods

The two-stage method usually describes the instance segmentation task as a paradigm of detection first and then segmentation. He et al. proposed Mask R-CNN [12] based on Faster R-CNN [7], adding an additional mask branch and replacing RoIPooling with RoIAlign to improve accuracy. Liu et al. proposed PANet [28], which introduced bottom-up path augmentation, adaptive feature pooling, and fully connected fusion to improve the performance of instance segmentation. Huang et al. proposed Mask Scoring R-CNN [29] to re-score the confidence of the mask by adding a mask IoU branch, which enables the network to predict the IoU of the mask and ground-truth boxes. He et al. proposed the PointRend [30] module to improve Mask R-CNN, using a subdivision adaptive strategy to select N object edge points through MLP processing to iterate and in turn obtain segmentation results. Ke et al. proposed BCNet [31] to model the formation of mask as a combination of two overlapping layers, where the top GCN layer detects occluding objects and the bottom GCN layer infers partially occluded instances to solve the instance occlusion problem. In general, the two-stage method is basically an evolution of Mask R-CNN, which uses the detection branch to generate proposals, then generates mask results from the proposals. The two-stage method is also not suitable for solving the problem of missed detection, because the segmentation performance depends on the performance of the detector. If the detector does not detect the object, the segmentation branch will not output the corresponding mask.

2.3. Multi-Stage Methods

Compared with single-stage and two-stage methods, multi-stage methods usually have the highest accuracy. Cai et al. proposed Cascade Mask R-CNN [17], which extended Mask R-CNN to a cascaded structure, and the accuracy was significantly improved. Chen et al. extended Cascade Mask R-CNN and proposed HTC [16] to improve segmentation by constructing mask information flow across each stage and introducing semantic branches. Zhang et al. proposed Refine Mask [32], which fuses fine-grained features in multiple stages to obtain a more refined mask. However, the multi-stage method is essentially an extension of the two-stage method, so it is not suitable for the problem of missed detection, and the inference speed is slow, which is not suitable for industrial deployment.

2.4. Query-Based Methods

Query-based methods have become popular in recent years, and the core idea of such methods is to assign instance mask information to learnable queries. SOLQ [33] represents learnable object queries in a unified vector form, while simultaneously performing classification, bounding box regression, and mask encoding. ISTR [34] uses RoI features and image features as the input of the transformer encoder–decoder, and performs N-stage refinement to obtain instance masks. The above methods all have the process of compressing the mask into a vector, which is not conducive to shaping the spatial position information of the missed instances. Mask Transfiner [35] is based on the error-prone tree nodes detected by the transformer, and self-corrects their errors in parallel to refine the quality of the mask. This method focuses on mask refinement and ignores the handling of missed detections. The QueryInst [18] method is to interact the RoI features with the query through the dynamic convolution head to obtain the enhanced RoI features and input them to the box and mask branch in turn to obtain the instance mask. Although the query-based method has no structure that causes missed detection, it does not make any improvement on the missed detection problem. After the above analysis, we chose the QueryInst method as the baseline.

3. Methodology

We propose the CompleteInst network based on QueryInst to solve the missed detection problem in autonomous driving scenarios. As Figure 2 shows, the entire network structure consists of three parts: backbone, GPN, and its head. The head is mainly composed of semantic branch (Smask and Sbox), Dynamic Convolution (DynConv), Multihead Self Attention (MSA), and OTA-Query modules. To fully interact with the query, the head is iterated through 6 stages. In the following sections, we introduce the above-mentioned modules in greater depth.

3.1. The Overall of CompleteInst

The CompleteInst structure is depicted in Figure 2. First, following backbone and GPN extract and aggregate features, the feature layer xGPN with four different scales is obtained. Next, xGPN is fed to the head. The head consists of two parts: the detection head and the segmentation head. The detection head outputs the detection result, and the segment head outputs the segmentation result. The detection head pipeline consists of the following steps:
x t b o x = S b o x x G P N , b t 1
q t 1 * = M S A t q t 1
x t b o x * , q t = D y n C o n v t b o x x t b o x , q t 1 *
b t = B t x t b o x *
As described by the above formula, the bounding box b t 1 and xGPN are entered into the semantic branch Sbox to get the interested box features x t b o x . The semantic branch enables missed instances to obtain semantic features and complete semantic information. At the same time, the query q t 1 input to the t stage is processed by the multi-head self-attention mechanism ( M S A t ) to obtain the converted query q t 1 * . M S A t correlates query features with each other and removes the isolation between queries. Then, through the dynamic convolution head link x t b o x and query q t 1 * , the query q t 1 * is achieved by decoding x t b o x . Dynamic convolution decodes RoI features through matrix multiplication, and assigns instance information in query features to RoI features. The enhanced box RoI feature x t b o x * and query q t   which input to the next phase are obtained. x t b o x * is regressed through the detection branch B t to obtain the detection result b t and b t is used for both the input of the next stage and the mask branch for current stage.
The segmentation head pipeline is as follows:
x t m a s k = S m a s k x G P N , b t
x t m a s k * = D y n C o n v t m a s k x t m a s k , q t 1 *
m t = M t x t m a s k *
The segmentation pipeline is similar; b t and x G P N are entered into the semantic branch S m a s k to obtain x t m a s k . The semantic branch enables missed instances to obtain semantic features and complete semantic information. The dynamic convolution head dynamically interacts q t 1 * and x t m a s k to obtain enhanced mask RoI feature x t m a s k * through matrix multiplication. Finally, x t m a s k * is input to the mask branch M t , and the t-stage instance mask m t is obtained through the full convolution. The query q t and the bounding box b t are fed to the next stage. The above process is iterated six times, refining the bounding boxes and masks.
In the sample assign stage, we adopted the OTA-Query sample allocation strategy, considered the allocation method with the smallest sum of costs to be the Wasserstein distance, applied the Sinkhorn algorithm [36] to solve it, and obtained the results that one label corresponds to multiple positive samples.
Throughout the whole pipeline, GPN, semantic branch, and OTA-Query play an important role in solving the missed detection problem. In the following sections, the implementation and functions of each core component of CompleteInst will be introduced in detail.

3.2. Global Pyramid Networks

We propose GPN because the features of missed instances exist in the FPN feature layer. Through up-sampling and the addition of corresponding position elements, the FPN structure performs multi-scale feature fusion. However, this fusion method has certain limitations in that it only considers the correspondence between its own instance features at different scales while ignoring the relationship with other instance features at a greater distance at the same scale. In addition, the acquisition of the feature layers is carried out by superimposing the 3 × 3 convolution in the depth direction, and the scope is also in the form of a local window; therefore, insufficient global information is collected. On the basis of the aforementioned two limitations, we propose GPN and GCN convolution to enhance the acquisition of global features of missed instances and the connection between different instance features at the same scale.
Our GPN are depicted in Figure 3a, where the original FPN is contained within the dashed line. We reconnect the GCN convolution after the original FPN output in order to collect global information for instances that are missed. Finally, global information-containing feature layers G2–G5 are obtained. G2–G5 are considered as inputs for the following six stages. Figure 3b depicts the specific implementation of each step of GCN convolution.
Firstly, the global modelling is performed on feature maps. For the query location j in the feature maps, the attention weight of location j is first obtained through 1 × 1 convolution. It is multiplied by the feature corresponding to the j location, and then sums all the query positions (matrix multiplication) to obtain the corresponding global features j a j x j . Then, SoftMax normalization is performed. In order to reduce the calculation consumption caused by the increase of the number of channels in the deeper layer and get channel information, we set the 1 × 1 convolution in channel modelling, so that the number of channels after the convolution is C/r, where r is the bottleneck ratio. The selection and comparison of the r value are conducted in the subsequent experimental phase. The obtained global features have channel dependencies. Finally, the broadcast mechanism is used to add element locations to complete global features.

3.3. Semantic Branch

The semantic branch is proposed due to the presence of missed instances’ features within the RoI features. The semantic branch is incorporated to generate semantic features, providing semantic information for missed instances and enhancing the differentiation between these instances and the backdrop. In the semantic branch, we also include another head to supervise the semantic features so that our semantic information is explicit. The final step is to combine the RoI with semantic features with the original RoI with global features to obtain more comprehensive instance features.
The formula expresses the specific process:
x s e m a = P P M c o n v G 2
x b o x t = P b o x x G P N , b t 1 + P b o x x s e m a , b t 1
x m a s k t = P m a s k x G P N , b t + P m a s k x s e m a , b t 1
Figure 4a illustrates the particular structure of our semantic branch. We use the G2 layer as input in the first step because this layer contains more specific information and integrates high-level semantic information, resulting in richer information. After three 3 × 3 convolutions, the Pyramid Pooling Module (PPM) module [37] is introduced in order to obtain semantic features with varying scales. Figure 4b portrays the PPM module. Specifically, the feature layer is divided into 6 × 6, 3 × 3, 2 × 2, and 1 × 1 grids, then each grid is averaged and pooled, and the pooled results are aggregated by up-sampling. A 1 × 1 convolution is then used to adjust the channel dimension to match the dimension of the original RoI features. Semantic predictions are derived by the process of logical convolution. To ensure the quality of the semantic features generated by the succeeding branches, we apply cross-entropy loss on the predictions and compare them with the semantic segmentation labels.
The second step involves performing feature fusion. We use bounding boxes to align semantic features to obtain RoI semantic features. In the same way, we align the original GPN to obtain the RoI global features and add the elements of the two to obtain the more comprehensive RoI features for subsequent dynamic interaction and regression.

3.4. OTA-Query

QueryInst’s sample allocation strategy corresponds one label to one positive sample. This one-to-one optimal allocation problem is treated as a bipartite matching by QueryInst, which employs the Hungarian algorithm to solve it. However, the current allocation strategy of assigning one label per positive sample is suboptimal for addressing the missed detection problem. It would be more suitable to adopt an allocation strategy of assigning one label per multiple positive samples. As depicted in Figure 5, under the one-to-one sample allocation, the old man in the back is incorrectly identified (as depicted in Figure 1), indicating that a single positive sample for regression is insufficient to improve the quality of features for missed instances. Therefore, we present OTA-Query to match missed instances with multiple positive samples and enhance the network’s extraction of missed instance features based on the number of positive samples.
The OTA-Query sample allocation strategy is designed. Specifically, the label is considered the supplier, and a specific number of s i = k labels are assigned. Considering the samples as the demander, a positive sample seeks a label. In addition, the background class is considered a unique supplier, as it supplies the “background label.” Suppose there are m labels, and each label can provide k labels of its own number to assign to positive samples in an image. This image contains n boxes, each of which will receive a label. Positive samples are those that successfully match the label, while the remaining nk × m samples are assigned to the background class and become negative samples. Consequently, the following target formula is presented:
m i n i = 1 m j = 1 n c i j π i j
s . t . i = 1 m π i j = 1 , j = 1 n π i j = s i , i = 1 m s i = n ,
π i j 0 , i = 1,2 , m , j = 1,2 , n
The optimal transfer problem involves the determination of the Wasserstein distance, which is defined as the minimal total cost incurred in transferring each label to its corresponding sample. i represents the label index and j represents the sample index. π i j indicates the i-th label supplied to the j-th sample. c i j represents the cost of supplying the i-th label to the j-th sample. The specific cost calculation method is as follows:
c i j = α L c l s i , j + β L r e g i , j + γ L G I O U i , j p o s i t i v e   s a m p l e
c i j = α L c l s i , j n e g a t i v e   s a m p l e
The cost is the weighted sum of classification loss, regression loss, and GIoU loss, assuming the sample is a positive sample. The weight coefficients α, β, and γ adhere to the setting of the loss function, which are 2, 5, and 2, respectively. If the sample is negative, the cost is restricted to classification loss. To determine the k value, we calculate the IoU between the sample and the label, select the top 10 IoU values for each label, add them, and round them up. To obtain the optimal matching result for the solution of the target formula in Equation (6), the Sinkhorn algorithm for iterative calculation is used.

3.5. Parallel and Non-Parallel

Our semantic branches and OTA-Query are parallel. All of their implementations occur within the stage, which is compatible with the parallel supervision mechanism of QueryInst, thereby enhancing the extraction of missed instance features. In each stage, the RoI features with semantic information extracted by the semantic branch will be fused with the original RoI features. In addition, OTA-Query will perform one-to-multi sample allocation at each stage. The preceding stage and the final stage of the structure described above do not interfere. To demonstrate the superiority and efficacy of the aforementioned parallel structure, we propose a non-parallel structure in which different stages influence and interact with one another for comparison. As depicted in Figure 6, we made four modifications to the QueryInst algorithm for the serial interaction of the mask branch.
The overall logical framework is depicted in Figure 6. These four structures are the serial interaction across stages. The first structure indicates that the four convolution sequences at the same location in the previous stage are fully utilized before the convolution of the current stage. This is described with the formula:
m t = M t M t 1 x t m a s k *
where the x t m a s k * represents the enhanced mask feature. The x t m a s k * is continuously input to the mask heads of the t − 1 and t stages, and finally the segmentation result m t is obtained.
The second structure makes extensive use of the dynamic mask interactive module of the previous stage. This is described with the formula:
x t m a s k * = D y n C o n v t m a s k D y n C o n v t 1 m a s k x t m a s k , q t 1 *
where x t m a s k represents the mask feature and q t 1 * represents the enhanced query feature. x t m a s k and q t 1 * are input to the dynamic heads of the t − 1 and t stages continuously, and finally the x t m a s k * is obtained.
The third structure is the fusion of enhanced mask features between stages. This is described with the formula:
x t m a s k * = x t 1 m a s k * + x t m a s k *
where x t m a s k * and x t 1 m a s k * represent the enhanced mask feature of the t − 1 and t stages, respectively. The sum of x t 1 m a s k * and x t m a s k * results in the new x t m a s k * .
The fourth structure is to unify the first three non-parallel structures, and the complete the serial interaction of the mask branches. The formula is expressed as:
m t = M t 1 [ D y n C o n v t 1 m a s k x t m a s k , q t 1 * + x t 1 m a s k * ] ,
m t = M t [ D y n C o n v t m a s k m t , q t 1 * ]
This can be expressed as the x t m a s k feature is first input to the t − 1 stage to obtain the m t result, then the m t result is input to the t stage to obtain the final m t .

3.6. Loss Function

To supervise the semantic branch based on the baseline, we added an additional loss function. Consequently, the overall loss function comprises the following components:
L = t = 1 T λ c l s L t c l s + λ r e g L t r e g + λ g i o u L t g i o u + β L t m a s k + γ L s e m a
For the detection branch, we adhered to the hyperparameter settings of Sparse R-CNN [38], where λ c l s , λ r e g , and λ g i o u are 2, 5, and 2, respectively. We adopted Focal Loss [18] as the category loss function L t c l s , and L1 Loss and GIoU Loss are utilized as the bounding box loss functions L t r e g and L t g i o u , respectively. For the segmentation branch, we followed the hyperparameter settings of QueryInst [18], where β is 8, and L t m a s k adopts Dice Loss. For supervision of the semantic branch, we used the cross-entropy loss function, with the following formula, where s is the semantic segmentation result and s ^ is the label. The ablation experiment section discusses the selection of the γ parameter.
L s e m a = C E s , s ^

4. Experiments and Results

4.1. Experiment Details

We used the COCO [39] and Cityscapes [40] instance segmentation datasets for experiments. The evaluation metric utilized the standard mask AP, whereas the detection section utilized the box AP.
Cityscapes: We performed hyperparameter tuning, ablation experiments, and comparisons with other algorithms on the Cityscapes dataset. Cityscapes is a city-centric traffic scene dataset, and its instance segmentation part contains 8 categories, 2975 training images, 500 validation images, and 1525 testing images. The images are of higher resolution and have finer labels than COCO. In order to ensure that the labels used by the parallel semantic branch are of the semantic segmentation type, we additionally utilized labels corresponding to semantic segmentation for 2975 images. By default, the semantic segmentation label has 34 categories, but in previous research, there was a mapping from 34 categories to 19 categories, so there were two kinds of labels. Thus, we also introduced the number of categories into the experimental comparison part.
COCO: To demonstrate the generalization of our method, we also used CompleteInst on the COCO dataset for experiments. We used the COCO train2017 split (118,000 images) for training and the val2017 split (5000 images) as validation. In addition, for the parallel semantic branch, we satisfied the training requirement by adding an additional 2017 COCO-Stuff dataset [41]. The labels of 2017 COCO-Stuff dataset contain a total of 172 categories: 80 things, 91 stuff and 1 ‘unlabeled’. The ‘unlabled’ class corresponds to instances where the pixel value is 255.
Training: We put the model on two 3090s with 24G video memory for training. Due to limited computational resources, we only made a case in which the backbone is ResNet-50-FPN [42]. For the Cityscapes dataset, the number of training epochs was set to 64, the number of batches was 8, and the initial learning rate was set to 1.25 × 10−5, which was reduced to 1/10 at the 56th epoch. Since the objects in the autonomous driving scene are relatively dense, we adopted 300 proposal boxes and object queries to pursue better performance. For the COCO dataset, the number of training epochs was 12, the initial learning rate was set to 0.0001, and the number of batches was 16, which were reduced to 1/10 in the 11th and 12th rounds, respectively. The number of proposal boxes and object queries was set to 100. We used both 6-stage and AdamW [43] optimizers with the weight decay of 0.0001.
Inference: Given an input image, after GPN, semantic branching, dynamic interaction, and head regression, output the top 100 bounding box predictions and corresponding instance masks in the final stage, without Non-Maximum Suppression. Inference speed was tested using a single 3090. For a single image of the COCO dataset, the length and the width are 1333 and 800 respectively. For the Cityscapes dataset, a single image is 2048 length and 1024 width.
Evaluation Metrics: In order to more accurately evaluate the missed detection performance of the model, we gave the average recall (AR) as a metric. Recall refers to the proportion of positive examples successfully recognized by the model among all positive examples. It focuses on the model’s recall for each category, then averages these recalls, and finally gets the average recall. The calculation formula for AR is as follows:
R = T P T P + F P
where R represents the recall rate of a single category, TP represents the number of correctly predicted positive examples, and FP represents the number of incorrectly predicted positive examples. The denominator is the sum of TP and FP, expressed as the number of all positive examples. TP is divided by TP + FP to get the proportion of positive examples correctly predicted by the model.
A R = 1 i R
The category average of the recall of all categories is taken to get the average recall, as shown in the formula, where AR represents the average recall and i represents the number of categories.

4.2. Experimental Results

4.2.1. Evaluation Results on the Cityscapes Dataset

We compared CompleteInst with prevalent instance segmentation algorithms in recent years, such as QueryInst [18], Mask R-CNN [12], SOLOv2 [14], CondInst [44], PointRend [30], HTC [16], SOLQ [33], and ISTR [34]. The results of each method on the Cityscapes validation set are presented in Table 1. Our CompleteInst increased the mask AP by 1.9 points when compared to the baseline and 1.5 points when compared to the multi-stage cascade method HTC. The mask AP is 2.5 and 2.6 points greater than the query-based methods SOLQ and ISTR. In comparison to the two-stage techniques Mask R-CNN and PointRend, the mask AP is 4.4, and 3 points higher, respectively. The mask AP is 4.7 and 3.6 points greater than the single-stage methods SOLOv2 and CondInst, respectively. The average recall (AR) of CompleteInst reaches 56.7, which is 3.5 points higher than the baseline, and the average recall (AR) of CompleteInst is typically greater than other methods. This shows that the recall rate of CompleteInst’s detection and segmentation is much higher than other methods. CompleteInst is effective in solving the problem of missed detection. Our method achieves good results for each category’s mask AP, with the exception of trucks and buses, where it performs marginally worse than the HTC and SOLOv2 methods.
Figure 7 depicts the outcomes of our methodology. All of these images are from Figure 1. Figure 1 demonstrates that the baseline fails to recognize the instance at the red-circled location, whereas our method can detect and segment it with precision. In accordance with the heat map, the missing instances’ heat value has returned to normal, which is significantly different from the background features. This demonstrates that our method completes the features of missing instances and improves the network’s ability to extract missing instance features.
Comparing the segmentation performance of our method to baselines on the validation and training sets is depicted in Figure 8. At the position denoted by the red circle, it is evident that some objects in the baseline segmentation results, including the pedestrian in the middle of the first row and the car on the left side of the second row, have not yet been segmented. Our method completes the missing instance’s features so that it contains more foreground information. Essentially, the image’s object of interest is entirely segmented. Therefore, our method solves the problem of missed detection.
Based on the domain difference-based evaluation method proposed in [45], we compared CompleteInst with the baseline to evaluate the effect on the test set. The results are shown in Table 2. Among the three sets of experimental data, CompleteInst has a relatively smaller Fréchet Distance compared to the baseline, which shows that CompleteInst is more suitable for detecting unknown autonomous driving environments and is less prone to missed detection problem. From the test set, the prediction accuracy of the CompleteInst method is much higher than the baseline prediction accuracy value. This is consistent with the Fréchet Distance value. Finally, we give the variance value between Ground_truth Accuracy and Prediction Accuracy. Obviously, CompleteInst reaches 3.69, which is lower than 4.05. This shows that the results predicted by our model are more stable, and therefore more suitable to solve the missed detection problem of unknown scenarios.

4.2.2. Evaluation Results on the COCO Dataset

In order to demonstrate the generalizability of our model, we conducted validation set experiments on the COCO dataset and compared our results to those of other methods. Table 3 displays the specific results. Our CompleteInst mask achieves 38.9 mask AP, which is 1.5 AP better than the baseline, and 43.5 box AP, which is 1.9 AP better than the baseline, based on 12 training epochs. The speed is 1.2 frames per second (FPS) slower than the baseline, but we believe this is acceptable given the significant improvement in baseline precision. In comparison to HTC, SOLQ, and ISTR methods, the accuracy is superior, and the mask accuracy is increased by 1.5 AP, 0.2 AP, and 0.3 AP, respectively. In addition, our CompleteInst achieves excellent performance with an average recall (AR) of 54.2 AR, which is significantly superior to all other methods. This shows that CompleteInst is effective in solving the missed detection problem on the COCO dataset. Our method achieves 41.7 AP and 58.7 AP for medium and large objects, an improvement of 1.4 AP and 2.5 AP over the baseline and a significant lead over all other methods. Our method improved by 1.0 AP for small targets compared to the baseline, but it is not optimal. The ISTR is more accurate for small objects, which is an area that requires further development. In terms of detection precision, our method is weaker than SOLQ and ISTR, an area where we must also improve.

4.3. Ablation Experiment

4.3.1. Study of the Global Pyramid Networks

In order to demonstrate the efficacy of GPN, we compared the GPN structure to the baseline, and the results are presented in Table 4. The use of GPN results in greater accuracy than the baseline. AP reaches 39.4 and AR reaches 54.3 when the bottleneck ratio r value of GCN is set to 4. The AP and AR accuracies are improved by 0.5 and 1.1, respectively, compared to the baseline. This demonstrates that the GPN structure is effective for addressing the problem of missed detection. GPN strengthens the connection with other instances by establishing the global context relationship between missing instances and other positions on the feature map, then completes the missing instances’ global features. It is beneficial for the network to extract the global features of missing instances.

4.3.2. Study of the Semantic Branch

To demonstrate the efficacy of the semantic branch, we compared the semantic branch structure to the baseline, and the results are shown in Table 5 and Table 6. The addition of the semantic branch improves the accuracy of the baseline, as observed. In addition, we compared the number of semantic branch categories and the value of the weight coefficient γ. The addition of a semantic branch improves AP and AR by 0.8 and 1.5 points, respectively, when the number of categories and γ are 19 and 0.3, respectively, compared to the baseline. This indicates that the semantic branch makes the semantic information of instances that have been missed more prominent and completes their semantic features.

4.3.3. Study of the OTA-Query

To demonstrate the efficacy of OTA-Query, OTA-Query was compared to the baseline bipartite match method, and the results are shown in Table 7. OTA-Query is observed to improve the accuracy of the baseline. AP and AR improved by 1.1 and 1.8, respectively, compared to the baseline. This demonstrates that, for the missed detection problem, a single label corresponding to multiple positive samples is appropriate. OTA-Query enhances the quality of positive samples of missed instances by increasing their quantity. It indirectly improves the network’s extraction of missed instance features at the instance level.

4.3.4. Study of the CompleteInst

To demonstrate the efficacy of our proposed method and the independence of the accuracy gains contributed by each component, we conducted ablation experiments on each component. The particular ablation studies are presented in Table 8. The results indicate that the introduction of GPN increases AP and AR by 0.5 and 1.1, respectively, when compared to the baseline. It is demonstrated that GPN enhances the global information of missed instances. Based on this, we introduced the semantic branch, which further improved AP and AR by 1.1 and 2.1, respectively. This demonstrates that the semantic branch enhances the semantic information of missed instances at the feature level of the RoI. Finally, we replaced the bipartite matching with the OTA-Query sampling method, bringing the AP and AR to 40.8 and 56.7, an increase of 1.9 and 3.5 points, respectively. By improving the quality of positive samples of missed instances, OTA-Query indirectly improves the network’s ability to extract the features of missed instances. Overall, our method solves the problem of missed detection from three distinct perspectives. Our method is, therefore, effective for handling missed detection scenarios in autonomous driving.

4.3.5. Study of the Parallelism and Non-Parallelism

To demonstrate that our proposed branches possess the parallelism property, we experimentally validated the four non-parallel methods described in Section 3.5. The experimental results of the non-parallel structures are presented in Table 9. The structures are generally ineffective at enhancing QueryInst, and the AP is decreased relative to the baseline. Specifically, the 6-c structure in Section 3.5 has the least detrimental effect, the AP is unaffected, and the AR decreases by 0.8. AP and AR decreased by 1.1 and 1.9, respectively, as a result of the 6-d complete mask branch serial interaction, which had the greatest impact. Structures 6-a and 6-b also degraded the baseline’s AP and AR. The experimental results demonstrate that the interaction structure involving multiple stages destroy the parallel supervision mechanism of QueryInst, disrupting the reverse transfer of gradient information, and diminishing precision. Therefore, the non-parallel approach is not recommended. The semantic branch and OTA-Query adhere to the mechanism of parallel supervision without interfering with the gradient flow of different stages; the occurrence stages are all contained within it, and the stages do not influence one another. Our CompleteInst is therefore effective in parallel.

5. Conclusions

In this paper, we improved the query-based instance segmentation method QueryInst and proposed a novel CompleteInst network for the missed detection problem in autonomous driving. From various perspectives, we proposed a more comprehensive solution strategy. We proposed GPN to collect the global information of missed instances and to strengthen the connection between missed instances and other location instances; we then proposed the semantic branch, which combines RoI global features obtained from GPN alignment with RoI semantic features to obtain more comprehensive RoI features. Finally, we presented the OTA-Query sample allocation strategy at the instance level, which enhances the quality of positive samples of missed instances and indirectly improves the extraction of features from missed instances. The parallel nature of our semantic branch and OTA-Query is compatible with the parallel supervision mechanism of the baseline. In order to further demonstrate the superior performance of the proposed parallel structure, we also compared it with non-parallel structures.
Overall, our CompleteInst yields favourable outcomes and is vastly superior to the baseline. It provides a unique solution to the occlusion problem of autonomous driving. However, CompleteInst has the disadvantage that the real-time performance of the algorithm is slightly poor and the accuracy of a single category is not optimal. This is a direction worthy of further improvement. We hope that this work will complement the extension and application of instance segmentation to the missed detection scenario of autonomous driving.

Author Contributions

Methodology, H.W.; Software, S.Z.; Validation, H.W. and L.C.; Writing—Original Draft Preparation, Y.L. and T.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the National Key Research and Development Program of China (2022YFB2503302), the National Natural Science Foundation of China (52225212, U20A20333), and the Key Research and Development Program of Jiangsu Province (BE2020083-3).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Zhang, G.; Peng, Y.; Wang, H. Road traffic sign detection method based on RTS R-CNN instance segmentation network. Sensors 2023, 23, 6543. [Google Scholar] [CrossRef] [PubMed]
  2. Ma, W.-C.; Wang, S.; Hu, R.; Xiong, Y.; Urtasun, R. Deep rigid instance scene flow. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 15–20 June 2019; pp. 3614–3622. [Google Scholar]
  3. Liu, T.; Wang, J.; Yang, B.; Wang, X. NGDNet: Nonuniform Gaussian-label distribution learning for infrared head pose estimation and on-task behavior understanding in the classroom. Neurocomputing 2021, 436, 210–220. [Google Scholar] [CrossRef]
  4. Liu, H.; Liu, T.; Chen, Y.; Zhang, Z.; Li, Y.F. EHPE: Skeleton cues-based gaussian coordinate encoding for efficient human pose estimation. IEEE Trans. Multimed. 2022; in press. [Google Scholar] [CrossRef]
  5. Wang, H.; Xu, Y.; Wang, Z.; Cai, Y.; Chen, L.; Li, Y. Centernet-auto: A multi-object visual detection algorithm for autonomous driving scenes based on improved centernet. IEEE Trans. Emerg. Top. Comput. Intell. 2023, 7, 742–752. [Google Scholar] [CrossRef]
  6. Li, Y.; Feng, F.; Cai, Y.; Li, Z.; Sotelo, M.A. Localization for Intelligent Vehicles in Underground Car Parks Based on Semantic Information. IEEE Trans. Intell. Transp. Syst. 2023, in press. [Google Scholar] [CrossRef]
  7. Ren, S.; He, K.; Girshick, R.; Sun, J. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in Neural Information Processing Systems; The MIT Press: Cambridge, MA, USA, 2015; Volume 28. [Google Scholar]
  8. Long, J.; Shelhamer, E.; Darrell, T. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA, 7–12 June 2015; pp. 3431–3440. [Google Scholar]
  9. Chen, L.-C.; Zhu, Y.; Papandreou, G.; Schroff, F.; Adam, H. Encoder-decoder with atrous separable convolution for semantic image segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; pp. 801–818. [Google Scholar]
  10. Chen, L.-C.; Papandreou, G.; Kokkinos, I.; Murphy, K.; Yuille, A.L. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 40, 834–848. [Google Scholar] [CrossRef] [PubMed]
  11. De Brabandere, B.; Neven, D.; Van Gool, L. Semantic instance segmentation for autonomous driving. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, Honolulu, HI, USA, 21–26 July 2017; pp. 7–9. [Google Scholar]
  12. He, K.; Gkioxari, G.; Dollár, P.; Girshick, R. Mask r-cnn. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 2961–2969. [Google Scholar]
  13. Wang, X.; Kong, T.; Shen, C.; Jiang, Y.; Li, L. Solo: Segmenting objects by locations. In Proceedings of the European Conference on Computer Vision, Glasgow, UK, 23–28 August 2020; pp. 649–665. [Google Scholar]
  14. Wang, X.; Zhang, R.; Kong, T.; Li, L.; Shen, C. Solov2: Dynamic and fast instance segmentation. Adv. Neural Inf. Process. Syst. 2020, 33, 17721–17732. [Google Scholar]
  15. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. Adv. Neural Inf. Process. Syst. 2017, 30, 5998–6008. [Google Scholar]
  16. Chen, K.; Pang, J.; Wang, J.; Xiong, Y.; Li, X.; Sun, S.; Feng, W.; Liu, Z.; Shi, J.; Ouyang, W. Hybrid task cascade for instance segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 15–20 June 2019; pp. 4974–4983. [Google Scholar]
  17. Cai, Z.; Vasconcelos, N. Cascade R-CNN: High quality object detection and instance segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 2019, 43, 1483–1498. [Google Scholar] [CrossRef] [PubMed]
  18. Fang, Y.; Yang, S.; Wang, X.; Li, Y.; Fang, C.; Shan, Y.; Feng, B.; Liu, W. Instances as queries. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, BC, Canada, 11–17 October 2021; pp. 6910–6919. [Google Scholar]
  19. Lin, T.-Y.; Dollár, P.; Girshick, R.; He, K.; Hariharan, B.; Belongie, S. Feature pyramid networks for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 2117–2125. [Google Scholar]
  20. Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 618–626. [Google Scholar]
  21. Ge, Z.; Liu, S.; Li, Z.; Yoshie, O.; Sun, J. Ota: Optimal transport assignment for object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 303–312. [Google Scholar]
  22. Dai, J.; He, K.; Li, Y.; Ren, S.; Sun, J. Instance-sensitive fully convolutional networks. In Proceedings of the European Conference on Computer Vision, Amsterdam, The Netherlands, 11–14 October 2016; pp. 534–549. [Google Scholar]
  23. Xie, E.; Sun, P.; Song, X.; Wang, W.; Liu, X.; Liang, D.; Shen, C.; Luo, P. Polarmask: Single shot instance segmentation with polar representation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 12193–12202. [Google Scholar]
  24. Bolya, D.; Zhou, C.; Xiao, F.; Lee, Y.J. Yolact: Real-time instance segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 9157–9166. [Google Scholar]
  25. Chen, H.; Sun, K.; Tian, Z.; Shen, C.; Huang, Y.; Yan, Y. Blendmask: Top-down meets bottom-up for instance segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 8573–8581. [Google Scholar]
  26. Du, W.; Xiang, Z.; Chen, S.; Qiao, C.; Chen, Y.; Bai, T. Real-time instance segmentation with discriminative orientation maps. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, BC, Canada, 11–17 October 2021; pp. 7314–7323. [Google Scholar]
  27. Redmon, J.; Farhadi, A. Yolov3: An incremental improvement. arXiv 2018, arXiv:1804.02767. [Google Scholar]
  28. Liu, S.; Qi, L.; Qin, H.; Shi, J.; Jia, J. Path aggregation network for instance segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 8759–8768. [Google Scholar]
  29. Huang, Z.; Huang, L.; Gong, Y.; Huang, C.; Wang, X. Mask scoring r-cnn. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 15–20 June 2019; pp. 6409–6418. [Google Scholar]
  30. Kirillov, A.; Wu, Y.; He, K.; Girshick, R. Pointrend: Image segmentation as rendering. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 9799–9808. [Google Scholar]
  31. Ke, L.; Tai, Y.-W.; Tang, C.-K. Deep occlusion-aware instance segmentation with overlapping bilayers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 4019–4028. [Google Scholar]
  32. Zhang, G.; Lu, X.; Tan, J.; Li, J.; Zhang, Z.; Li, Q.; Hu, X. Refinemask: Towards high-quality instance segmentation with fine-grained features. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 6861–6869. [Google Scholar]
  33. Dong, B.; Zeng, F.; Wang, T.; Zhang, X.; Wei, Y. Solq: Segmenting objects by learning queries. Adv. Neural Inf. Process. Syst. 2021, 34, 21898–21909. [Google Scholar]
  34. Hu, J.; Cao, L.; Lu, Y.; Zhang, S.; Wang, Y.; Li, K.; Huang, F.; Shao, L.; Ji, R. Istr: End-to-end instance segmentation with transformers. arXiv 2021, arXiv:2105.00637. [Google Scholar]
  35. Ke, L.; Danelljan, M.; Li, X.; Tai, Y.-W.; Tang, C.-K.; Yu, F. Mask Transfiner for High-Quality Instance Segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 4412–4421. [Google Scholar]
  36. Cuturi, M. Sinkhorn distances: Lightspeed computation of optimal transport. In Proceedings of the Advances in Neural Information Processing Systems 26 (NIPS 2013), Lake Tahoe, NV, USA, 5–10 December 2013; Volume 23. [Google Scholar]
  37. Zhao, H.; Shi, J.; Qi, X.; Wang, X.; Jia, J. Pyramid scene parsing network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 2881–2890. [Google Scholar]
  38. Sun, P.; Zhang, R.; Jiang, Y.; Kong, T.; Xu, C.; Zhan, W.; Tomizuka, M.; Li, L.; Yuan, Z.; Wang, C. Sparse r-cnn: End-to-end object detection with learnable proposals. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 14454–14463. [Google Scholar]
  39. Lin, T.-Y.; Maire, M.; Belongie, S.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; Zitnick, C.L. Microsoft coco: Common objects in context. In Proceedings of the European Conference on Computer Vision, Zurich, Switzerland, 6–12 September 2014; pp. 740–755. [Google Scholar]
  40. Cordts, M.; Omran, M.; Ramos, S.; Rehfeld, T.; Enzweiler, M.; Benenson, R.; Franke, U.; Roth, S.; Schiele, B. The cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 3213–3223. [Google Scholar]
  41. Caesar, H.; Uijlings, J.; Ferrari, V. Coco-stuff: Thing and stuff classes in context. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 1209–1218. [Google Scholar]
  42. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 26 June–1 July 2016; pp. 770–778. [Google Scholar]
  43. Loshchilov, I.; Hutter, F. Decoupled weight decay regularization. arXiv 2017, arXiv:1711.05101. [Google Scholar]
  44. Tian, Z.; Shen, C.; Chen, H. Conditional convolutions for instance segmentation. In Proceedings of the European Conference on Computer Vision, Glasgow, UK, 23–28 August 2020; pp. 282–298. [Google Scholar]
  45. Guan, L.; Yuan, X. Instance Segmentation Model Evaluation and Rapid Deployment for Autonomous Driving Using Domain Differences. IEEE Trans. Intell. Transp. Syst. 2023, 24, 4050–4059. [Google Scholar] [CrossRef]
Figure 1. Comparison of QueryInst Class Activation Mapping (CAM) visualization effects for missed detection. The first column is the original image, the second column is the corresponding visual heatmap, and the third column is the results.
Figure 1. Comparison of QueryInst Class Activation Mapping (CAM) visualization effects for missed detection. The first column is the original image, the second column is the corresponding visual heatmap, and the third column is the results.
Sensors 23 09102 g001
Figure 2. The overall architecture of CompleteInst.
Figure 2. The overall architecture of CompleteInst.
Sensors 23 09102 g002
Figure 3. The Global Pyramid Networks and GCN convolution structure. In (a), the blue modules within the dotted lines are the backbone network and FPN respectively, and the orange modules are GCN, which outputs feature layers with global information. In (b), the input value obtains global information through global modeling (blue modules), and then performs dimension compression through channel modeling (green modules). Finally, it is summed with the original input (the gray) to obtain output of binary information (a fusion of green and blue).
Figure 3. The Global Pyramid Networks and GCN convolution structure. In (a), the blue modules within the dotted lines are the backbone network and FPN respectively, and the orange modules are GCN, which outputs feature layers with global information. In (b), the input value obtains global information through global modeling (blue modules), and then performs dimension compression through channel modeling (green modules). Finally, it is summed with the original input (the gray) to obtain output of binary information (a fusion of green and blue).
Sensors 23 09102 g003
Figure 4. The architecture of the semantic branch and PPM. In (a), the semantic features (blue module) are obtained through the integration of PPM and convolution; Then, through the RoI alignment operation, the semantic features with semantic information and the semantic features with global information are The GPN features (orange and yellow modules) are added together, and finally the RoI features (yellow and blue) with complete information are obtained. In (b), after the features are pooled, four different scale features are obtained (the red has the largest scale, followed by the orange, then the blue, and finally the green is the smallest), and then fused through upsampling and splicing operations to obtain different Characteristics of scale.
Figure 4. The architecture of the semantic branch and PPM. In (a), the semantic features (blue module) are obtained through the integration of PPM and convolution; Then, through the RoI alignment operation, the semantic features with semantic information and the semantic features with global information are The GPN features (orange and yellow modules) are added together, and finally the RoI features (yellow and blue) with complete information are obtained. In (b), after the features are pooled, four different scale features are obtained (the red has the largest scale, followed by the orange, then the blue, and finally the green is the smallest), and then fused through upsampling and splicing operations to obtain different Characteristics of scale.
Sensors 23 09102 g004
Figure 5. Comparison between bipartite matching and OTA-Query sample allocation.
Figure 5. Comparison between bipartite matching and OTA-Query sample allocation.
Sensors 23 09102 g005
Figure 6. Four non-parallel mask serial interaction structures. (a) Serial interactive of mask head convolution sequence. (b) Serial interaction of dynamic mask interactive module. (c) Serial stacking of enhanced mask features. (d) Overall serial interactive of the whole mask head.
Figure 6. Four non-parallel mask serial interaction structures. (a) Serial interactive of mask head convolution sequence. (b) Serial interaction of dynamic mask interactive module. (c) Serial stacking of enhanced mask features. (d) Overall serial interactive of the whole mask head.
Sensors 23 09102 g006
Figure 7. Comparison of CompleteInst CAM visualization effects for missed detection. The first column is the original image, the second column is the corresponding visual heatmap, and the third column is the result. The features of the missed instances have been completed, and the heat map values have reached normal levels.
Figure 7. Comparison of CompleteInst CAM visualization effects for missed detection. The first column is the original image, the second column is the corresponding visual heatmap, and the third column is the result. The features of the missed instances have been completed, and the heat map values have reached normal levels.
Sensors 23 09102 g007
Figure 8. Comparison of CompleteInst and baseline effects. The CompleteInst algorithm has been greatly improved compared to the baseline, and almost all missed instances have been detected. The effect achieved by the algorithm is close to the label level.
Figure 8. Comparison of CompleteInst and baseline effects. The CompleteInst algorithm has been greatly improved compared to the baseline, and almost all missed instances have been detected. The effect achieved by the algorithm is close to the label level.
Sensors 23 09102 g008
Table 1. Comparison of main results on Cityscapes dataset. Among them, AP and AR represent the algorithm precision and recall of all categories respectively. The next eight columns are precision comparisons for a single category. Except for trucks and buses, all other metrics outperform other algorithms.
Table 1. Comparison of main results on Cityscapes dataset. Among them, AP and AR represent the algorithm precision and recall of all categories respectively. The next eight columns are precision comparisons for a single category. Except for trucks and buses, all other metrics outperform other algorithms.
MethodAPARPersonRiderCarTrunkBusTrainMcycleBicycle
Mask R-CNN36.453.134.827.049.130.140.930.924.118.7
SOLOv236.152.430.827.045.838.762.342.219.822.4
CondInst37.250.536.328.555.737.657.838.220.623.3
PointRend37.851.436.828.556.937.058.940.520.023.8
HTC39.356.038.030.957.140.559.740.522.525.0
SOLQ38.355.837.629.856.835.557.743.721.424.2
ISTR38.254.137.030.057.335.658.142.520.823.9
Baseline38.953.238.530.557.135.358.044.721.924.8
Ours40.856.740.132.359.936.861.145.924.826.7
Table 2. Comparison results of unlabelled test sets based on domain differences. Ground_truth Accuracy is expressed as the accuracy of the validation subset, Fréchet Distance is expressed as the domain difference value, and Prediction Accuracy is expressed as the accuracy of each test subset. RMSE [45] is expressed as the size of the variance between accuracies.
Table 2. Comparison results of unlabelled test sets based on domain differences. Ground_truth Accuracy is expressed as the accuracy of the validation subset, Fréchet Distance is expressed as the domain difference value, and Prediction Accuracy is expressed as the accuracy of each test subset. RMSE [45] is expressed as the size of the variance between accuracies.
GroupGround_Truth AccuracyFréchet DistancePrediction AccuracyRMSE
BaselineOursBaselineOursBaselineOursBaselineOurs
138.640.719.115.437.342.14.053.69
238.340.119.615.639.541.9
337.539.220.416.036.241.2
Table 3. Comparison of COCO verification set results. APbbox is expressed as the detection precision of bounding boxes. AR is expressed as the detection recall of bounding boxes. APS, APM, and APL represent the segmentation precision of small targets, medium targets, and large targets, respectively. FPS is expressed as the inference speed of the algorithm. Except for APbbox and inference speed, all other metrics were the best among the tested methods.
Table 3. Comparison of COCO verification set results. APbbox is expressed as the detection precision of bounding boxes. AR is expressed as the detection recall of bounding boxes. APS, APM, and APL represent the segmentation precision of small targets, medium targets, and large targets, respectively. FPS is expressed as the inference speed of the algorithm. Except for APbbox and inference speed, all other metrics were the best among the tested methods.
MethodEpochAPbboxAPARAPSAPMAPLFPS
Mask R-CNN12.038.234.750.718.337.447.224.1
SOLOv212.0-34.849.913.437.853.725.4
CondInst12.039.735.748.317.139.150.228.6
PointRend12.038.436.349.119.839.448.516.2
HTC12.042.337.451.419.640.451.76.2
SOLQ36.046.238.750.020.241.151.515.0
ISTR36.046.838.650.922.140.450.613.8
Baseline12.041.637.451.017.940.356.216.0
Ours12.043.538.954.218.941.758.714.8
Table 4. Effect of Global Pyramid Networks. ∆AP and ∆AR are expressed as the difference from baseline precison and recall. GPN works best when the ratio is 4.0.
Table 4. Effect of Global Pyramid Networks. ∆AP and ∆AR are expressed as the difference from baseline precison and recall. GPN works best when the ratio is 4.0.
TypeRatioAP APAR AR
FPNw/o38.9 53.2
GPN 16.039.2+0.354.0+0.8
GPN4.039.4+0.554.3+1.1
Table 5. The effect of the number of semantic branch categories, w/o expressed as baseline. The semantic branch achieves the best effect when the number of categories is 19.0.
Table 5. The effect of the number of semantic branch categories, w/o expressed as baseline. The semantic branch achieves the best effect when the number of categories is 19.0.
Num of CategoriesAP APAR AR
w/o38.9 53.2
19.039.7+0.854.7+1.5
34.039.4+0.553.7+0.5
Table 6. The effect of semantic branch γ coefficient. The accuracy is maximized and the effect is best when the γ coefficient is 0.3.
Table 6. The effect of semantic branch γ coefficient. The accuracy is maximized and the effect is best when the γ coefficient is 0.3.
γ AP APAR AR
w/o38.9 53.2
0.239.0+0.153.8+0.6
0.339.7+0.854.7+1.5
0.439.3+0.454.1+0.9
Table 7. Effect of OTA-Query. The OTA-Query sampling strategy is better than the baseline binary matching.
Table 7. Effect of OTA-Query. The OTA-Query sampling strategy is better than the baseline binary matching.
Sampling StrategyAP APAR AR
Bipartite match38.9 53.2
OTA-Query40.0+1.155.0+1.8
Table 8. Ablation studies on the proposed CompleteInst. GPN, semantic branch, and OTA-Query all further improve the algorithm performance, reaching 40.8 AP and 56.7 AR, which means that the effects of these modules are cumulative. The symbol “√” indicates modules that have been used or owned.
Table 8. Ablation studies on the proposed CompleteInst. GPN, semantic branch, and OTA-Query all further improve the algorithm performance, reaching 40.8 AP and 56.7 AR, which means that the effects of these modules are cumulative. The symbol “√” indicates modules that have been used or owned.
BaselineGPNSemantic BranchOTA-QueryAP APAR AR
38.9 53.2
39.4+0.554.3+1.1
40.0+1.155.3+2.1
40.8+1.956.7+3.5
Table 9. Comparison of non-parallel completion and parallel completion. All non-parallel structures worsen algorithm performance. This shows that non-parallel structures are undesirable.
Table 9. Comparison of non-parallel completion and parallel completion. All non-parallel structures worsen algorithm performance. This shows that non-parallel structures are undesirable.
Complete ClassificationMethodAP APAR
Baseline/38.9 53.2
Non-parallel6-a38.7−0.250.7−2.5
6-b38.3−0.651.8−1.4
6-c38.9052.4−0.8
6-d37.8−1.151.3−1.9
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wang, H.; Zhu, S.; Chen, L.; Li, Y.; Luo, T. CompleteInst: An Efficient Instance Segmentation Network for Missed Detection Scene of Autonomous Driving. Sensors 2023, 23, 9102. https://doi.org/10.3390/s23229102

AMA Style

Wang H, Zhu S, Chen L, Li Y, Luo T. CompleteInst: An Efficient Instance Segmentation Network for Missed Detection Scene of Autonomous Driving. Sensors. 2023; 23(22):9102. https://doi.org/10.3390/s23229102

Chicago/Turabian Style

Wang, Hai, Shilin Zhu, Long Chen, Yicheng Li, and Tong Luo. 2023. "CompleteInst: An Efficient Instance Segmentation Network for Missed Detection Scene of Autonomous Driving" Sensors 23, no. 22: 9102. https://doi.org/10.3390/s23229102

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop