A method for urban street scene instance segmentation in driver assistance systems
By integrating the jagged hybrid atrous convolution structure and feature pyramid network into the urban street scene instance segmentation model, and adding an attention network, the problem of insufficient accuracy of existing algorithms in complex scenes is solved, and the detection of small target objects and occlusions is achieved. High-precision segmentation of objects improves the safety of assisted driving systems.
Patent Information
- Application Number
- CN202210517170.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-12
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-05-12
AI Technical Summary
Existing urban street scene instance segmentation algorithms lack accuracy in complex scenes, especially with small target objects and occlusions, affecting the safety of assisted driving systems.
On the residual network of the urban street scene instance segmentation model, a zigzag hybrid atrous convolution structure with three different expansion rate combinations is integrated, and the feature pyramid network and attention network are combined to enhance feature extraction and information fusion, and conduct end-to-end training to achieve Improve segmentation accuracy.
Effectively segment small target objects and occluded objects, improve segmentation accuracy and calculation efficiency, and enhance the processing capabilities of complex scenes.
Smart Images

Figure CN115063446B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image processing, and in particular to a method for segmenting city street scene instances of an auxiliary driving system. Background Art
[0002] Urban street scene detection is the core algorithm of intelligent vehicle assistance system. The accuracy and real-time performance of pedestrian and vehicle detection directly affect the intelligent vehicle assistance system and directly involve the safety of the vehicle. Wrong detection will affect the judgment of the assistance system and cause safety hazards. Instance segmentation is to independently segment the pixel areas of different objects in the scene image and determine the category to which each pixel area belongs. Instance segmentation is a computer vision task that is closest to the real visual perception of humans. It has a high application value in the field of autonomous driving, such as detecting lane lines, pedestrians, vehicles, obstacles, etc. through instance segmentation to guide autonomous driving.
[0003] Domestic and foreign scholars have proposed many solutions from image processing to instance segmentation. Most of the better algorithms in these solutions start from the two-stage target detection algorithm, select features from the shared feature layer through the regional candidate box, and then judge and identify the objects in the image. Although the accuracy is higher than other detection algorithms, the model complexity is increased due to the two target detections, which restricts the improvement of the model's computational efficiency. In these studies in the past one or two years, there are also some better algorithms that start from the single-stage detection algorithm and do not use the RPN of the two-stage target detection. The algorithm has a simple structure, high computational efficiency, and can be easily trained end-to-end, but its accuracy is generally lower than the two-stage detection algorithm.
[0004] YOLACT is currently a relatively excellent single-stage detection algorithm with high computing speed and real-time performance. However, in complex scenarios (such as occlusion, small target objects, etc.), the accuracy of this instance segmentation algorithm is affected by the joint influence of target detection and recognition and semantic segmentation, and cannot achieve very satisfactory results. Summary of the invention
[0005] In view of this, an object of the present invention is to provide a method for urban street scene instance segmentation of an assisted driving system, so as to achieve more accurate instance segmentation effect for small target objects and occluded objects while completing urban street scene instance segmentation.
[0006] To achieve the above-mentioned purpose, the present invention adopts the following technical scheme: a method for urban street scene instance segmentation of an assisted driving system, on the residual network of the urban street scene instance segmentation model, a preliminary feature extraction network is obtained by fusing the C4 and C5 feature layers with a zigzag mixed hole convolution structure with three different dilation rate combinations, and a feature pyramid of the underlying feature layer P2 and the feature information fusion network N2-N6 is added to obtain more underlying feature information, and an attention network is added before the prediction network to enhance useful features and weaken the influence of irrelevant features, and then the model is end-to-end trained and early warning processed; the urban street scene instance segmentation model includes feature enhancement, a preliminary feature extraction network, a feature pyramid enhancement network, a mask acquisition network, an attention network and a prediction network connected in sequence.
[0007] In a preferred embodiment: the zigzag mixed hole convolution structure that fuses the C4 and C5 feature layers with three different dilation rate combinations is specifically as follows: C4 contains 23 blocks, the first block uses a convolution kernel of 3X3 and a step size of 2 to perform a convolution operation on the feature map obtained by C3, and reduce the width and height of the feature map to half of the original, and then use the convolution kernel of 3X3, the step size of 1, and the dilation rates of 1, 2, and 3 as a group, for a total of seven groups, and then pass the obtained feature information into a block with a convolution kernel of 3X3, a step size of 2, and a dilation rate of 2; C5 contains 3 blocks, the first block mainly uses a convolution kernel of 3X3 and a step size of 2 to perform a convolution operation on the feature map obtained by C4, and reduce the width and height of the feature map to half of the original, and then pass the obtained feature information into two blocks with a convolution kernel of 3X3, a step size of 1, and dilation rates of 2 and 3 respectively.
[0008] In a preferred embodiment: the preliminary feature extraction network is based on the deep residual network ResNet-101.
[0009] In a preferred embodiment: the attention network consists of two branches, the first branch is the input feature map itself, and the second branch is used to extract the weights of the feature map channels; first, the input feature map is globally pooled; then two 1x1 convolutions are performed and activated with the Relu function; then normalization is performed and the eigenvalues are mapped to between 0 and 1 through the sigmoid function, and finally the corresponding channels of the two branches are multiplied to obtain the output feature map of the attention network.
[0010] In a preferred embodiment: the end-to-end training is to mark the pixel points of the category set in the image and the target instance positions of the category, and use the marked data as a training set, and then input it into the urban street scene instance segmentation model for learning and training, so as to obtain a trained urban street scene instance segmentation model.
[0011] In a preferred embodiment: the warning processing is to input the image or video data to be tested into a trained urban street scene instance segmentation model to obtain the category, position and segmentation result of the required instance in the image, and then judge the road condition based on the category, position and segmentation result of the instance, and issue a warning message.
[0012] In a preferred embodiment: the feature enhancement preprocesses the input image or video data, specifically including random Gaussian denoising, random contrast enhancement and random cropping of the input image data.
[0013] In a preferred embodiment: the feature pyramid enhancement network includes a feature pyramid network FPN, a bottom feature layer P2 and a bottom-up feature information fusion network N2-N6; the feature pyramid network upsamples the top-level feature map C5 of the preliminary feature extraction network, and adds it with the second-higher feature map C4 of the preliminary feature extraction network to form a layer P4 of the feature pyramid, and constructs each layer of the feature pyramid layer by layer from top to bottom; the feature information fusion network downsamples the added bottom-level feature map P2, and adds it with the second-lower feature map P3 in the feature pyramid path to form a layer N3 of the feature information fusion network, and constructs each layer of feature information fusion layer by layer from bottom to top.
[0014] In a preferred embodiment: the mask acquisition network is used to extract the mask from the bottom-level feature map N2 of the feature pyramid enhancement network.
[0015] In a preferred embodiment: the prediction network is used to classify and locate the feature information output by the attention network, and then linearly add the mask information output by the mask acquisition network to obtain the final image segmentation result.
[0016] Compared with the prior art, the present invention has the following beneficial effects:
[0017] (1) When a small target object appears in the image or there is an occlusion phenomenon, the present invention can effectively segment the small target object and the occluded object;
[0018] (2) Based on the YOLACT algorithm, the present invention integrates a jagged mixed hole convolution structure with three different dilation rate combinations into the preliminary feature extraction network to avoid losing more image information due to downsampling in the process of acquiring image features, thereby obtaining a larger receptive field while ensuring that the convolution kernel remains unchanged, thereby improving the ability to capture the target and the segmentation accuracy. On the basis of the feature pyramid network, an underlying feature acquisition network and a feature information fusion network are added to improve the utilization rate of the underlying feature information, so that the top-level feature information effectively includes the underlying feature information, and under the action of the attention network, the main information in the image is more efficiently acquired. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A schematic diagram of a city street scene instance segmentation model framework provided by a preferred embodiment of the present invention;
[0020] Figure 2 It is a schematic diagram of the structure of the C4 hybrid hole convolutional network in a preferred embodiment;
[0021] Figure 3 A schematic diagram of the structure of a C5 hybrid atrous convolutional network in a preferred embodiment;
[0022] Figure 4 A schematic diagram of specific steps of strengthening network connection of feature pyramid in a preferred embodiment;
[0023] Figure 5 Schematic diagram of the attention network structure of a preferred embodiment. DETAILED DESCRIPTION
[0024] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0025] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.
[0026] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application; as used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, they indicate the presence of features, steps, operations, devices, components and / or their combinations.
[0027] A method for segmenting urban street scenes in an assisted driving system, referring to Figures 1 to 5 On the residual network of the urban street scene instance segmentation model, a preliminary feature extraction network is obtained by fusing the C4 and C5 feature layers with three different dilation rate combinations of the serrated mixed hole convolution structure, and the feature pyramid of the underlying feature layer P2 and the feature information fusion network N2-N6 is added to obtain more underlying feature information, and an attention network is added before the prediction network to enhance useful features and weaken the influence of irrelevant features, and then the model is end-to-end trained and early warning processed; the urban street scene instance segmentation model includes feature enhancement, preliminary feature extraction network, feature pyramid enhancement network, mask acquisition network, attention network and prediction network connected in sequence.
[0028] The C4 and C5 feature layers are fused with a zigzag mixed hole convolution structure with three different dilation rate combinations. Specifically, C4 contains 23 blocks. The first block uses a convolution kernel of 3X3 and a step size of 2 to perform a convolution operation on the feature map obtained by C3, reducing the width and height of the feature map to half of the original width and height. Then, the three blocks with a convolution kernel of 3X3, a step size of 1, and dilation rates of 1, 2, and 3 are grouped together, for a total of seven groups. Then, the obtained feature information is passed into a block with a convolution kernel of 3X3, a step size of 2, and a dilation rate of 2; C5 contains 3 blocks. The first block mainly uses a convolution kernel of 3X3 and a step size of 2 to perform a convolution operation on the feature map obtained by C4, reducing the width and height of the feature map to half of the original width and height. Then, the obtained feature information is passed into two blocks with a convolution kernel of 3X3, a step size of 1, and dilation rates of 2 and 3, respectively.
[0029] like Figure 2 and Figure 3 As shown in the figure, it avoids losing a lot of information due to downsampling in the process of obtaining image features, and obtains a larger receptive field and denser image information while ensuring that the convolution kernel remains unchanged; it is used to convolve the input image layer by layer from bottom to top to obtain feature maps C1-C5 of different sizes.
[0030] The preliminary feature extraction network is based on the deep residual network ResNet-101.
[0031] The attention network consists of two branches, the first branch is the input feature map itself, and the second branch is used to extract the weights of the feature map channels; first, the input feature map is globally pooled; then two 1x1 convolutions are performed and activated with the Relu function; then normalization is performed and the eigenvalues are mapped to between 0 and 1 through the sigmoid function, and finally the corresponding channels of the two branches are multiplied to obtain the output feature map of the attention network.
[0032] The end-to-end training is to mark the pixel points of the category set in the image and the target instance position of the category, and use the marked data as a training set, and then input it into the city street scene instance segmentation model for learning and training, so as to obtain a trained city street scene instance segmentation model. The present invention uses a high-quality annotated urban street scene dataset Cityscapes as a training set for building an urban street scene instance segmentation model for end-to-end training; the dataset mainly includes street scenes from 50 different cities, with 5,000 high-quality pixel-level annotated images of driving scenes in urban environments, of which 2,975 are used as training sets, 500 are used as verification sets, and 1,525 are used as test sets, involving 19 categories such as people and vehicles.
[0033] The early warning process is to input the image or video data to be tested into the trained urban street scene instance segmentation model, obtain the category, position and segmentation result of the required instance in the image, and then judge the road condition according to the category, position and segmentation result of the instance, and issue an early warning message. The present invention uses a test set in the high-quality labeled urban street scene data set Cityscapes for testing, inputs the test image into the trained urban street scene instance segmentation model, obtains the category, position and segmentation result of the required instance in the image, and then judges the road condition according to the situation of the instance, thereby issuing early warning prompts for pedestrians, vehicles, etc.
[0034] The feature enhancement preprocesses the input image or video data, specifically including random Gaussian denoising, random contrast enhancement and random cropping of the input image data to enhance the detectability of relevant information, enhance the local detail features of the captured image, and facilitate the capture of deep-level features of the image.
[0035] The feature pyramid enhancement network includes a feature pyramid network (FPN) P3-P4, a bottom feature layer P2 and a bottom-up feature information fusion network N2-N6; the feature pyramid network upsamples the top-level feature map C5 (P5) of the preliminary feature extraction network, and adds it with the second-high-level feature map C4 of the preliminary feature extraction network to form a layer P4 of the feature pyramid, and constructs each layer of the feature pyramid from top to bottom; the feature information fusion network downsamples the added bottom-level feature map P2, and adds it with the second-lower-level feature map P3 in the feature pyramid path to form a layer N3 of the feature information fusion network, and constructs each layer of feature information fusion from bottom to top. The bottom-level semantic information contains more details of the image. Increasing the use of bottom-level information can better identify small-sized targets. Therefore, the P2 feature layer is added to obtain more bottom-level feature information. The feature information fusion network downsamples the added bottom-level feature map P2 (N2) and adds it with the second-bottom-level feature map P3 in the feature pyramid path to form a layer N3 of the feature information fusion network, and constructs each layer of feature information fusion from bottom to top. Figure 4 As shown, feature maps N2-N6 are obtained;
[0036] The mask acquisition network is used to extract the mask from the bottom-level feature map N2 of the feature pyramid enhancement network.
[0037] The prediction network is used to classify and locate the feature information output by the attention network, and then linearly add the mask information output by the mask acquisition network to obtain the final image segmentation result.
[0038] The mask acquisition network and prediction network do not use the RPN and feature relocation steps of the two-stage target detection. There is no spatial semantic information loss in the mask acquisition network. Segmentation is performed using features containing global semantic information, and the final segmentation result is more robust. The overall computational cost is relatively small, and the efficient real-time characteristics of SSD are retained.
Claims
1. A method for segmenting urban street scenes for an assisted driving system. It is characterized in that On the residual network of the urban street scene instance segmentation model, a preliminary feature extraction network is obtained by fusing the C4 and C5 feature layers with three different dilation rate combinations of the sawtooth mixed hole convolution structure, and a feature pyramid of the bottom feature layer P2 and the feature information fusion network N2-N6 is added to obtain more bottom feature information, and an attention network is added before the prediction network to enhance useful features and weaken the influence of irrelevant features, and then the model is end-to-end trained and early warning processed; the urban street scene instance segmentation model includes feature enhancement, a preliminary feature extraction network, a feature pyramid enhancement network, a mask acquisition network, an attention network and a prediction network connected in sequence; The zigzag mixed hole convolution structure of the C4 and C5 feature layers with three different dilation rate combinations is specifically as follows: C4 contains 23 blocks, the first block uses a convolution kernel of 3X3 and a step size of 2 to perform a convolution operation on the feature map obtained by C3, and the width and height of the feature map are reduced to half of the original width and height, and then the three blocks with a convolution kernel of 3X3, a step size of 1, and dilation rates of 1, 2, and 3 are grouped as a group, with a total of seven groups, and then the obtained feature information is passed into a block with a convolution kernel of 3X3, a step size of 2, and a dilation rate of 2; C5 contains 3 blocks, the first block mainly uses a convolution kernel of 3X3 and a step size of 2 to perform a convolution operation on the feature map obtained by C4, and the width and height of the feature map are reduced to half of the original width and height, and then the obtained feature information is passed into two blocks with a convolution kernel of 3X3, a step size of 1, and dilation rates of 2 and 3 respectively; The attention network consists of two branches, the first branch is the input feature map itself, and the second branch is used to extract the weight of the feature map channel; first, the input feature map is globally pooled; then two 1x1 convolutions are performed and activated with the Relu function; then normalization is performed and the feature value is mapped to between 0 and 1 through the sigmoid function, and finally the corresponding channels of the two branches are multiplied to obtain the output feature map of the attention network; The feature pyramid enhancement network includes a feature pyramid network FPN, a bottom feature layer P2 and a bottom-up feature information fusion network N2-N6; the feature pyramid network upsamples the top-level feature map C5 of the preliminary feature extraction network, and adds it with the second-high-level feature map C4 of the preliminary feature extraction network to form a layer P4 of the feature pyramid, and constructs each layer of the feature pyramid layer by layer from top to bottom; the feature information fusion network downsamples the added bottom-level feature map P2, and adds it with the second-lower-level feature map P3 in the feature pyramid path to form a layer N3 of the feature information fusion network, and constructs each layer of feature information fusion layer by layer from bottom to top.
2. The method for segmenting urban street scenes of an assisted driving system according to claim 1, Features: The preliminary feature extraction network is based on the deep residual network ResNet-101.
3. The method for segmenting urban street scenes of an auxiliary driving system according to claim 1, Features: The end-to-end training is to mark the pixel points of the category set in the image and the target instance positions of the category, and use the marked data as a training set, and then input it into the urban street scene instance segmentation model for learning and training, so as to obtain a trained urban street scene instance segmentation model.
4. The method for segmenting urban street scenes of an auxiliary driving system according to claim 1, Features: The warning processing is to input the image or video data to be tested into the trained urban street scene instance segmentation model to obtain the category, position and segmentation result of the required instance in the image, and then judge the road condition according to the category, position and segmentation result of the instance, and issue a warning message.
5. The method for segmenting urban street scenes of an auxiliary driving system according to claim 1, Features: The feature enhancement preprocesses the input image or video data, specifically including performing random Gaussian denoising, random contrast enhancement and random cropping on the input image data.
6. The method for segmenting urban street scenes of an auxiliary driving system according to claim 1, Features: The mask acquisition network is used to extract the mask from the bottom-level feature map N2 of the feature pyramid enhancement network.
7. The method for segmenting urban street scenes of an auxiliary driving system according to claim 1, Features: The prediction network is used to classify and locate the feature information output by the attention network, and then linearly add the mask information output by the mask acquisition network to obtain the final image segmentation result.
