A traffic scene obstacle detection method based on semantic segmentation

Through the traffic scene obstacle detection method based on semantic segmentation, through the improvement and resynthesis of semantic segmentation maps, the perception difference is calculated, and the dissimilarity network is used to detect obstacles, which solves the problem of identifying abnormal obstacles in the existing technology and improves the automatic Recognition accuracy and real-time performance in driving environments.

CN114973202BActive Publication Date: 2024-08-27SHANGHAI INST OF TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210609934.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2024-08-27
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

It is difficult for existing technology to identify abnormal obstacles in traffic scenes, especially instances outside the network training distribution, resulting in insufficient recognition accuracy and real-time performance in autonomous driving environments.

Method used

A traffic scene obstacle detection method based on semantic segmentation is adopted. By obtaining complex road scene data, the semantic segmentation map is improved and resynthesized, the perceptual difference is calculated, and the dissimilarity network is used to detect and highlight obstacles. The specific steps include obtaining the input image. Segmentation, calculating uncertainty maps, generating correlation images, extracting difference pixels, performing feature fusion and convolution processing, and finally detecting abnormal segmentation predictions.

Benefits of technology

It achieves accurate and rapid detection of road targets ahead during driving, improves recognition accuracy, real-time performance and efficiency, and can accurately identify abnormal obstacles in traffic scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114973202B
    Figure CN114973202B
Patent Text Reader

Abstract

The present invention discloses a method for detecting obstacles in traffic scenes based on semantic segmentation, including the following steps S1: obtaining complex road scene data defined as an input image, segmenting the input image, and obtaining a semantic segmentation map and two uncertainty maps; S2: improving and resynthesizing the semantic segmentation map based on the uncertainty map to obtain a generated image; S3: calculating the perceived difference by comparing the features of the generated image and the input image, and obtaining a synthesized image through reinforcement and resynthesis; S4: predicting obstacles for the input image and the synthesized image, using a trained dissimilarity network to distinguish between the input image and the synthesized image, thereby detecting and highlighting obstacles in the traffic scene. The present invention can accurately and quickly detect road targets ahead during driving, and when encountering abnormal obstacles in the traffic scene, it can still accurately identify the target, thereby improving recognition accuracy, real-time performance, and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer vision, and in particular relates to a traffic scene obstacle detection method based on semantic segmentation. Background Art

[0002] Since the beginning of the 21st century, the social economy has developed rapidly, and cars have become an indispensable way for people to travel, which has greatly facilitated life. However, at the same time, the problems brought about by traffic safety, air pollution, traffic congestion, etc. are also increasing day by day. The investment in alleviating and managing traffic problems has been continuously increased. At the same time, with the development of science and technology, the Intelligent Transportation System (ITS) has been proposed to solve traffic problems. The Intelligent Transportation System is to apply advanced computer technology, communication technology, sensing and control technology to the transportation management system, and make full use of the intelligence of information technology to escort transportation. At the same time, it can also alleviate traffic congestion and improve the efficiency of collaborative transportation. Once proposed, the Intelligent Transportation System has become a hot topic in the global scientific research community. After years of research and development, ITS has been applied to all aspects of the transportation field, such as intelligent monitoring systems, Advanced Driving Assistant Systems (ADAS), etc.

[0003] Autonomous driving is one of the research hotspots in the automotive field. One of the key technologies to improve the intelligence of autonomous driving systems is to have accurate and effective cognition of traffic scenes. With the development of deep convolutional neural networks, semantic segmentation technology is increasingly widely used in the field of autonomous driving environment perception, especially obstacle detection. Semantic segmentation technology based on convolutional neural networks can detect and identify these obstacles at the pixel level, and can provide environmental information for the decision-making, planning and control of autonomous driving vehicles. At present, the more mature traffic scene classification mainly identifies specific targets in the environment, most of which belong to the category of binary classification, such as road surface recognition, vehicle recognition, pedestrian recognition, etc. The methods used are mainly shallow learning methods, such as support vector machines, AdaBoost, etc. In recent years, the research on deep learning has made breakthrough progress and has been widely used in the field of images. The use of deep learning methods can better solve multi-classification problems, especially for complex natural data, including traffic scene image data. With the development of GPU parallel computing, the problem of large computational complexity caused by the use of deep learning methods has been solved, making pixel-level scene segmentation for complex traffic environments possible.

[0004] The main frameworks of semantic segmentation based on convolutional neural networks are mainly VGGNet and ResNet. The semantic segmentation models based on VGGNet include FCN, SegNet, U-Net, DeepLab, etc., and the semantic segmentation models based on ResNet include PSPNet, ICNet, DeepLab V3++, etc. Given the structural characteristics of the ResNet network, the semantic segmentation network based on the ResNet framework has many layers, a complex network structure, and high performance requirements for hardware facilities. The semantic segmentation network based on the VGGNet framework is much simpler than the semantic segmentation network based on the ResNet framework, but it often still cannot meet the real-time requirements. For self-driving cars, the real-time performance of the system is crucial, while also taking into account the accuracy of the segmentation results. Although the predictions of these networks are very accurate, they still cannot accurately identify the target when encountering abnormal obstacles in traffic scenes (i.e., instances outside the network training distribution). Summary of the invention

[0005] The technical purpose of the present invention is to provide a traffic scene obstacle detection method based on semantic segmentation to solve the technical problem that it is difficult to identify abnormal obstacles in the prior art.

[0006] To solve the above problems, the technical solution of the present invention is:

[0007] A traffic scene obstacle detection method based on semantic segmentation includes the following steps:

[0008] S1: Obtain complex road scene data as an input image, segment the input image, and obtain a semantic segmentation map and two uncertainty maps;

[0009] S2: Improve and resynthesize the semantic segmentation map based on the uncertainty map to obtain the generated image;

[0010] S3: Compare the features of the generated image and the input image to calculate the perceptual difference and obtain the synthesized image through reinforcement resynthesis;

[0011] S4: Obstacle prediction for input and synthetic images, using a trained dissimilarity network to distinguish between input and synthetic images, thereby detecting and highlighting obstacles in traffic scenes.

[0012] Specifically, in step S1, an input image is input into a preset segmentation network to obtain a semantic map.

[0013] Among them, the attention mechanism is extracted for the input image in the preset Deeplabv3 network to obtain the semantic segmentation map and uncertainty map.

[0014] In step S2, two discrete degrees are calculated to quantify the uncertainty in the semantic segmentation map prediction, and then the uncertainty map is obtained. The calculation formulas of the two discrete degrees are:

[0015]

[0016] D x =1-max c∈classes p(c)+max c,∈classes / (argmaxcp(c)) p(c')

[0017] Among them, p(c) is the softmax probability of class c.

[0018] Furthermore, in step S2, an associated image with a pixel-to-pixel correspondence is generated according to the semantic map, a conditional generative adversarial network is obtained based on the associated image training, and the conditional generative adversarial network is used to improve and resynthesize the semantic segmentation map based on the uncertainty map to obtain a generated image.

[0019] Among them, in step S3, the difference pixels are extracted from the generated image and the input image through a preset feature extractor, and the perceptual difference calculation is performed on the difference pixels. The calculation formula is as follows:

[0020]

[0021] Where x is the pixel of the input image, r is the pixel of the generated image, and F (i) is the i-th layer of the feature extractor, N is the total number of layers of the feature extractor, M i is the number of elements in the feature extractor.

[0022] Specifically, step S4 includes the following steps:

[0023] S41: Extract features from the input image and the synthesized image, and perform one-hot processing of the predicted labels through the preset Deeplabv3 network;

[0024] S42: Connect the input image, the synthesized image and the semantic map, and perform convolution processing to fuse the features of the image and the label;

[0025] S43: Calculate the point-to-point feature association between the input image and the synthesized image, generate a feature map, perform point-by-point correlation with the uncertainty map, and decode to obtain the final difference score;

[0026] S44: Obtain anomaly segmentation prediction based on the difference score to obtain an obstacle difference map, thereby detecting and highlighting obstacles in the traffic scene.

[0027] Due to the adoption of the above technical scheme, the present invention has the following advantages and positive effects compared with the prior art: the present invention provides a traffic scene obstacle detection method based on semantic segmentation. Compared with the prior art, the present invention can accurately and quickly detect road targets ahead during driving. When encountering abnormal obstacles in the traffic scene (i.e., instances outside the network training distribution), the target can still be accurately identified, thereby improving recognition accuracy, real-time performance and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the following detailed description of the preferred embodiment.The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting the invention.

[0029] Figure 1 A flowchart of a traffic scene obstacle detection method based on semantic segmentation of the present invention;

[0030] Figure 2 The image segmentation flow chart provided by the present invention;

[0031] Figure 3 A flow chart of resynthesized images provided by the present invention;

[0032] Figure 4 Different network flow charts provided by the present invention;

[0033] Figure 5 This is a structural diagram of the segmentation network provided by the present invention. DETAILED DESCRIPTION

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0035] In order to simplify the drawings, only the parts related to the present invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".

[0036] The following is a further detailed description of a traffic scene obstacle detection method based on semantic segmentation proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become more apparent from the following description and claims.

[0037] Example

[0038] See also Figures 1 to 4 This embodiment provides a method for detecting obstacles in traffic scenes based on semantic segmentation. Figure 1 and Figure 2 First, in step S1, complex road scene data is obtained from the Cityscapes dataset and defined as the input image. The input image is input into the preset segmentation network Deeplabv3 for segmentation to obtain a semantic map. In addition, the global context network (Global Context Network) is combined with the segmentation network Deeplabv3 to extract the attention mechanism, which aims to extract context information at the global object layer and guide the network to focus on more information areas and more appropriate image feature scales, so as to obtain semantic segmentation maps and uncertainty maps.

[0039] See also Figure 3 In step S2, the synthesis module is used. The synthesis module generates an associated image with a pixel-to-pixel correspondence based on the semantic map, and trains the associated image into a conditional generative adversarial network. The conditional generative adversarial network is used to improve and synthesize the semantic segmentation map based on the uncertainty map to obtain a generated image, that is, a realistic image. In step S2, two discrete degrees need to be calculated to quantify the uncertainty in the semantic segmentation map prediction, and then the uncertainty map is obtained. The calculation formulas of the two discrete degrees are:

[0040]

[0041] D x =1-max c∈classes p(c)+max c,∈classes / (argmaxcp(c)) p(c')

[0042] Among them, p(c) is the softmax probability of class c, softmax is the activation function used in the multi-classification process, which maps the outputs of multiple neurons to the interval (0, 1), which can be understood as probability, so as to perform multi-classification, Classes is the classification of the data set, and argmax is a function that finds the parameters (set) of the function.

[0043] Next, enter step S3. Since realistic images can be generated after training the synthesis module, the semantic mapping will ignore basic information such as color or appearance, and will directly compare each image value. Therefore, it is necessary to calculate the actual difference V between the input image and the generated image. Use Resnet50 pre-trained by ImageNet as a feature extractor to find pixels with different representation features, and the obtained difference pixels can be compared based on the image content and spatial structure of the object, rather than based on low-level features such as color or texture. The perceptual difference is calculated by comparing the features of the generated image and the input image, and the composite image is obtained through reinforcement and re-synthesis. Among them, the difference pixels are extracted from the generated image and the input image through the preset feature extractor, and the perceptual difference is calculated for the difference pixels. The calculation formula is as follows

[0044]

[0045] Where x is the pixel of the input image, r is the pixel of the generated image, and F (i) is the i-th layer of the feature extractor, N is the total number of layers of the feature extractor, M i is the number of elements in the feature extractor.

[0046] Last View Figure 4 and Figure 5 , step S4 includes the following steps. First, features are extracted from the input image and the synthesized image, using a pre-trained Resnet50 network, and DeepLabV3 is used to perform one-hot processing of the predicted labels. Then, at each level of the feature pyramid, the networks are connected in series, the output of the previous system is used as the input of the next system, the outputs of the two systems are added in series, the features are connected so that all feature streams are connected and the number of channels is reduced through the ASPP module, the input image, the synthesized image and the semantic map are connected, and then the image and label features are fused using convolution and passed through convolution. Then, under parallel columns, the network is trained to distinguish between the input image and the generated image, the point-to-point feature association between the real image and the re-synthesized image is calculated, the generated feature map is point-by-point correlated with the uncertainty feature map, and then each feature map is decoded and connected to the corresponding higher level in the pyramid, and it is passed to the upper convolution pyramid together with the reduced concatenated features, and the final difference score is returned. Finally, the anomaly segmentation prediction is obtained based on the difference score, and the obstacle difference map is obtained, so as to detect and highlight obstacles in the traffic scene.

[0047] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, if these changes fall within the scope of the claims of the present invention and their equivalents, they still fall within the protection scope of the present invention.

Claims

1. A traffic scene obstacle detection method based on semantic segmentation, It is characterized in that The following steps are included S1: Obtain complex road scene data as an input image, segment the input image, and obtain a semantic segmentation map and two uncertainty maps; S2: improving and resynthesizing the semantic segmentation map based on the uncertainty map to obtain a generated image; S3: Comparing the features of the generated image and the input image to calculate the perceived difference and obtaining a synthesized image through reinforcement and resynthesis; S4: performing obstacle prediction on the input image and the synthesized image, using a trained dissimilarity network to distinguish the input image from the synthesized image, thereby detecting and highlighting obstacles in the traffic scene; In the step S1, the input image is input into a preset segmentation network to obtain a semantic map; Extracting attention mechanism of the input image in a preset Deeplabv3 network, thereby obtaining the semantic segmentation map and the uncertainty map; In the step S2, an associated image with a pixel-to-pixel correspondence is generated according to the semantic map, a conditional generative adversarial network is obtained based on the associated image training, and the conditional generative adversarial network is used to improve and resynthesize the semantic segmentation map based on the uncertainty map to obtain the generated image; The step S4 includes the following steps S41: extracting features from the input image and the synthesized image, and performing one-hot processing of predicted labels through the preset Deeplabv3 network; S42: connecting the input image, the synthesized image and the semantic map, and performing convolution processing to fuse the features of the image and the label; S43: Calculate the point-to-point feature association between the input image and the synthesized image, generate a feature map, perform point-by-point correlation with the uncertainty map, and decode to obtain a final difference score; S44: performing anomaly segmentation prediction on the input image based on the difference score to obtain an obstacle difference map, thereby detecting and highlighting obstacles in the traffic scene.

2. The traffic scene obstacle detection method based on semantic segmentation according to claim 1, It is characterized in that In step S2, two discrete degrees are calculated to quantify the uncertainty in the semantic segmentation map prediction, thereby obtaining an uncertainty map. The two discrete degree calculation formulas are: , , in, is the softmax probability of class c.

3. The traffic scene obstacle detection method based on semantic segmentation according to claim 2, It is characterized in that In step S3, a preset feature extractor is used to extract difference pixels from the generated image and the input image, and a perceptual difference calculation is performed on the difference pixels. The calculation formula is as follows: , in, is the pixel of the input image, are the pixels of the generated image, is the first layer, is the total number of layers of the feature extractor, is the number of elements in the feature extractor.

Citation Information

Patent Citations

  • Image Semantic Segmentation Method Based on Deep Full Convolutional Network and Conditional Random Field

    AU2020103901A4

  • Three-dimensional semantic annotation method of photogrammetric grids based on active learning

    CN111968240A

  • Image semantic segmentation model training method for traffic road scene

    CN114419058A