Method, artificial neural network, device, computer program and machine-readable storage medium for semantic segmentation of image data

By dividing the input tensor in the convolutional neural network and performing information fusion, the artificial neural network architecture in the semantic segmentation process is optimized, solving the problem of high consumption of computing resources and memory resources, and realizing efficient image processing on embedded hardware. Data processing.

CN113168558BActive Publication Date: 2024-10-15ROBERT BOSCH GMBH
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN201980080536.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-10-05
Filing Date
2019-09-26
Publication Date
2024-10-15
Estimated Expiration
2039-09-26

AI Technical Summary

Technical Problem

Existing convolutional neural networks have high demands on computing resources and memory resources during the semantic segmentation process. Especially when running on embedded hardware, there are additional demands for computing resources and memory resources, resulting in increased resource consumption.

Method used

By dividing the input tensor into at least one first slice tensor and one second slice tensor, and inputting them into the encoder path and the decoder path respectively, the connection function is used for information fusion, reducing the demand for computing resources and memory resources. , optimize the architecture of artificial neural networks to adapt to embedded computing units.

Benefits of technology

It achieves efficient semantic segmentation of image data on the embedded computing unit, reduces the consumption of computing resources and memory resources, and improves the flexibility and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113168558B_ABST
    Figure CN113168558B_ABST
Patent Text Reader

Abstract

A method (500) for performing computationally and memory-saving semantic segmentation of image data (111, 211) by means of an artificial neural network, in particular a convolutional neural network, wherein the artificial neural network has an encoder path (110, 210, 380) and a decoder path (120, 220, 340), the method comprising the following steps: - splitting (520) an input tensor (310) into at least one first slice tensor (330) and at least one second slice tensor (350) according to a splitting function (320, 420), wherein the input tensor (310) depending on the image data (111, 211); ‑ outputting (530) the at least one first slice tensor (330) to a decoder path (120, 220, 340) of the neural network; ‑ connecting (540) the at least one first slice tensor (330) with the at least one second slice tensor (350) according to a connection function (360) to obtain an output tensor (370); ‑ outputting (550) the output tensor (370) to an encoder path (110, 210, 380) of the neural network.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] "Evan Shelhamer, Jonathan Long, Trevor Darrell, Fully Convolutional Models for Semantic Segmentation, PAMI 2016" discloses an extension of convolutional neural networks. Convolutional neural networks are powerful artificial neural networks for processing visual data that can generate a hierarchy of semantic features of visual data. The document discloses a scheme using a "fully convolutional network" that can accept input data of any range and output an output of corresponding size with efficient feature derivation.

[0002] "Olaf Ronneberger, Philipp Fischer, Thomas Brox, U-Net: Convolutional Networks for Biomedical Image Segmentation, Medical Image Computing and Computer-Assisted Intervention (MICCAI), Springer, LNCS, Vol. 9351" discloses an architecture of an artificial neural network and a training strategy for the network based on using extended (augmented) training data to more efficiently use existing annotated examples. The architecture of the network includes a "compression path" (encoder path) for detecting the context of the input data and symmetrically includes an "expansion path" (decoder path), which allows the detected context to be accurately localized. The artificial neural network can be trained using a relatively small amount of training data. Summary of the invention

[0003] Artificial neural networks, in particular so-called convolutional neural networks (CNNs), used for semantic segmentation, in particular for localizing and classifying features in image data, have a high demand on computing resources. The demand on computing resources is further increased by adding a decoder component or an upsampling component and by adding a connection component (skip component), by which the image data up to the original resolution is restored after the semantic analysis in the encoder component. In some implementations, this may lead to an exponential increase in computing resources.

[0004] In addition to increased computing resources, the semantic segmentation of pixel-based image data using artificial neural networks, in particular CNNs, also requires more memory resources during the training phase and application of the network, i.e. more memory bandwidth, memory accesses and memory space.

[0005] The disadvantage of this additional demand on computing and memory resources increases as soon as the application is not performed on a dedicated computing unit with high memory and distributed computing such as a graphics processing unit cluster (GPU cluster), but should be run on an embedded computing unit such as embedded hardware.

[0006] In this context, the present invention relates to a method, an artificial neural network, a device, a computer program and a machine-readable storage medium for semantic segmentation of image data of an imaging sensor.

[0007] In the present case, image data can be understood as data of imaging sensors. Image data should be understood primarily as data of video sensors (and therefore cameras). Due to the similarity of the data, data of radar sensors, ultrasonic sensors, lidar sensors, etc. can also be processed as image data with the aid of the present invention. Therefore, for the purposes of the present invention, radar sensors, ultrasonic sensors, lidar sensors, etc. can be understood as imaging sensors.

[0008] Image data of imaging sensors or the like which are suitable for use in vehicles (thus automotive image sensors) are of particular relevance for the present invention.

[0009] In the present case, semantic segmentation is to be understood as the processing of image data with the goal of determining both the semantic class of objects contained in the image and the location of these objects in the image. It should be taken into account here that global information in the image allows the semantic class of the object to be inferred, while local information in the image allows the location of the object in the image to be inferred.

[0010] One aspect of the invention is a method for semantic segmentation of image data by means of an artificial neural network, in particular a convolutional neural network (CNN). The artificial neural network has an encoder path for determining semantic categories in the image data and a decoder path for locating the determined categories in the image data. The method comprises the following steps:

[0011] partitioning an input tensor into at least one first slice tensor and at least one second slice tensor according to a partition function, wherein the input tensor depends on the image data;

[0012] outputting the at least one first slice tensor to a decoder path of the artificial neural network;

[0013] Connecting the at least one first slice tensor with the at least one second slice tensor according to a connection function to obtain an output tensor;

[0014] The output tensor is output to an encoder path of the artificial neural network.

[0015] In the present case, an artificial neural network is to be understood as a network of artificial neurons for information processing, such as semantic segmentation of image data, in particular localization and classification of features in image data.

[0016] In the present context, a convolutional neural network (CNN) is understood to be a class of artificial neural networks that are considered "state of the art" in the field of classification. The basic structure of a CNN consists of an arbitrary sequence of convolutional and pooling layers, which are closed by one or more fully connected layers. The corresponding layers are built from artificial neurons.

[0017] In the present case, an encoder path is to be understood as a path that processes image data until features (eg, objects) in the image data are classified.

[0018] In the present case, the decoder path is understood to be a path connected to the encoder path which restores the original image data based on the classification to locate the classified features.

[0019] In the present case, a connection component is to be understood as an architectural component in an artificial neural network for semantic segmentation that makes information from the encoder path available to the corresponding position of the decoder path. A connection component occurs as a skip connection or a skip module.

[0020] In the present case, a tensor is understood to be a representation of data during processing in an artificial neural network. A data set includes the processing state of the image data and the associated feature map. The tensor at the i-th step in an artificial neural network is typically represented as , with n rows, m columns and f feature maps.

[0021] The input tensor is a representation of data before being processed by the method of the present invention.

[0022] The slice tensor is a data representation after the step of partitioning according to the method of the present invention.

[0023] The output tensor is a data representation for further processing on the encoder path of the artificial neural network.

[0024] In the present case, the partition function may be understood as any function suitable for selecting a suitable set from the set of input tensors and associated feature maps. This may be done in terms of partition factors, subscripts, etc.

[0025] In the present case, a connection function may be understood as any function suitable for connecting the at least one first slice tensor with the at least one second slice tensor. This may be done by concatenation, summation, substitution, reproduction, etc.

[0026] The advantage of the method according to the invention lies in the segmentation step, by which an exact semantic segmentation of the image data can be achieved and at the same time the necessary computing resources and necessary memory resources are minimized by making optimal use of the calculations performed in the encoder path.

[0027] This allows the method of the invention to be performed on embedded computing units (so-called embedded hardware) typically used in an automotive environment.

[0028] According to an embodiment of the method of the present invention, in the partitioning step, the partitioning function is designed so that only a subset of the feature maps of the input tensor is selected to form the at least one first slice tensor.

[0029] In the present case, a feature map is to be understood as the output of a layer of an artificial neural network. In the case of a CNN, a feature map is typically the result of processing through a convolutional layer and then an associated pooling layer, and can be used as input data for subsequent layers or (if set) fully connected layers.

[0030] According to one specific embodiment of the method according to the invention, in the concatenation step the concatenation function (fusion) is designed such that the dimension of the input tensor is preserved.

[0031] This embodiment has the advantage that information from different layers of the artificial neural network, in particular a convolutional neural network (CNN), can be further used with less resource utilization and thus more advantageously with respect to the computing resources to be used.

[0032] According to one specific embodiment of the method according to the invention, the method has a preceding receiving step, wherein the input tensor and the partitioning function are received in the receiving step.

[0033] The advantage of this embodiment of the method is that the artificial neural network is more flexible while reducing the costs compared to a parallel execution of conventional artificial neural networks and can react more finely to the respective input tensors at the respective layers.

[0034] According to one embodiment of the method according to the invention, in the partitioning step a first function of the artificial neural network is applied to the at least one first slice tensor and a second function of the artificial neural network is applied to the at least one second slice tensor.

[0035] In the present context, the function of an artificial neural network can be understood as any function of the neuron layer of the artificial neural network. This can be a convolution - it can also be expressed as a convolution block, i.e. multiple applications of convolution, depthwise convolution, compression, residual, density, inception, activation, normalization, pooling, etc.

[0036] In the present context, Inception is to be understood as an architectural variant of artificial neural networks, in particular convolutional neural networks, which were first described in Szegedy et al., Going deeper with convolutions, Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1-9, 2015.

[0037] According to one embodiment of the method of the present invention, in the partitioning step, the partitioning function is designed so that the partitioning function includes the number of feature maps of the artificial neural network to be calculated and the corresponding function or calculation graph for calculating the at least one first slice tensor and the at least one second slice tensor.

[0038] This embodiment of the method according to the invention has the advantage that different functions of the artificial neural network can be applied to the at least one first slice tensor and the at least one second slice tensor in a simple manner, thereby making the artificial neural network more flexible while reducing costs compared to a conventional parallel execution of an artificial neural network, and making it possible for the artificial neural network to react more finely to the corresponding input tensors.

[0039] Another aspect of the invention is an artificial neural network for semantic segmentation of image data, wherein the artificial neural network has an encoder path for classifying the image data, a decoder path for localizing the image data, and is arranged to perform the steps of the method according to the invention.

[0040] An artificial neural network configured in this way is preferably used in a technical system, in particular in a robot, a vehicle, a tool or a machine tool, in order to determine an output variable as a function of an input variable. Sensor data or variables that depend on sensor data are considered as input variables for the artificial neural network. The sensor data can originate from sensors of the technical system or be received from outside by the technical system. Depending on the output variable of the artificial neural network, a control device of the technical system controls at least one actuator of the technical system with a control signal. Thus, for example, the movement of a robot or a vehicle can be controlled, or a tool or a machine tool can be controlled.

[0041] In one embodiment of the artificial neural network according to the present invention, the artificial neural network can be designed as a convolutional neural network.

[0042] Another aspect of the invention is an apparatus arranged to perform the steps of the method according to the invention.

[0043] Another aspect of the invention is a computer program arranged to perform the steps of the method according to the invention.

[0044] Another aspect of the present invention is a machine-readable storage medium on which an artificial neural network according to the present invention or a computer program according to the present invention is stored. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Details and embodiments of the invention are explained in more detail below based on a number of figures.

[0046] Figure 1 A block diagram of a fully convolutional network of the prior art is shown;

[0047] Figure 2 A block diagram of a U-Net architecture of a prior art convolutional network is shown;

[0048] Figure 3 A block diagram showing a portion of an embodiment of an artificial neural network according to the present invention;

[0049] Figure 4 A block diagram showing a portion of another embodiment of an artificial neural network according to the present invention;

[0050] Figure 5 A flow chart of a method according to the invention is shown. DETAILED DESCRIPTION

[0051] Figure 1Shown is a block diagram of a fully convolutional network from “Evan Shelhamer, Jonathan Long, Trevor Darrell, Fully Convolutional Models for Semantic Segmentation, PAMI 2016”.

[0052] The figure summarizes the parts of the process shown in the artificial neural network in the form of blocks.

[0053] In the block encoder 110, the processing steps through multiple layers of a convolutional neural network (CNN) based on image data as input data 111 are shown. The convolution layer 112a and the pooling layer 112b can be clearly seen in this figure.

[0054] In the block decoder 120, the "deconvolution" results 121, 122, 123 of the CNN are shown. Deconvolution can be achieved here by inverting the convolution step. Here, the coarse-grained classification results can be mapped to the original image data to thereby locate the classified features.

[0055] In block-skip module 130, the connection of the higher-level classification intermediate results of the CNN with the "deconvolutioned" results is shown. Thus, in the 2nd row, the intermediate result of the 4th pooling is logically associated with the final result 122, while in the 3rd row, the intermediate results of the 3rd and 4th pooling are logically associated with the final result 123.

[0056] The advantage of these logical associations is that more detailed information can be determined and higher-level semantic information can be obtained.

[0057] Figure 2 Block diagram showing the U-Net architecture of a convolutional network from "Olaf Ronneberger, Philipp Fischer, Thomas Brox, U-Net: Convolutional Networks for Biomedical Image Segmentation, Medical Image Computing and Computer-Assisted Intervention (MICCAI), Springer, LNCS, Volume 9351".

[0058] In block encoder 210 , processing steps are shown for passing the input data 111 through multiple layers of a convolutional neural network (CNN) based on image data as input data 111 in order to classify the input data 211 .

[0059] In the block decoder 220 , a “deconvolution step” is shown starting from the lowest classification level via a corresponding number of deconvolution layers to a semantically segmented graph 221 , which features the localization and classification of the input data 211 .

[0060] In block 230, connections (skip connections) between the layers of the block encoder 210 and the corresponding layers of the block decoder 220 are shown. These connections represent the information flow between the classification task and the localization task in the artificial neural network. This makes it possible to match the coarse-grained semantic segmentation with a higher degree of recovery of the input data.

[0061] Figure 3 A block diagram of a part of an embodiment of an artificial neural network according to the invention is shown. According to this embodiment, the artificial neural network or the method according to the invention is run in the so-called "tensor mode".

[0062] In the present case, the input tensor in the i-th step of the artificial neural network is shown 310, where n is the number of rows, m is the number of columns, and f is the number of feature maps. In addition, there is a partitioning function (slicing) 320. According to the partitioning function (slicing) 320, the input tensor is partitioned into at least one first slice tensor 330 and at least one second slice tensor 350. The partitioning can be performed according to any partitioning function (slicing) 320. In particular, it is conceivable to partition according to a splitting factor, according to an index, etc.

[0063] At least one first slice tensor 330 is intended to be fed to a decoder path 340 of the artificial neural network in order to be logically associated there with a coarse abstract feature representation.

[0064] The at least one second slice tensor 350 is supplied to a connection function (fusion) 360 together with the at least one first slice tensor 330 to generate an output tensor 370. Any rule suitable for connecting the first slice tensor 320 with the second slice tensor 350 can be applied as the connection function (fusion) 360. In particular, concatenation, summation, substitution, duplication, etc. are conceivable. The output tensor 370 is intended to be further processed by the artificial neural network along the encoder path 380.

[0065] Figure 4 A block diagram of a part of another embodiment of an artificial neural network according to the invention is shown. According to this embodiment, the artificial neural network or the method according to the invention is operated in a so-called “function mode” 400 .

[0066] The input data of the function mode 400 include not only the input tensor 310, but also a partitioning function (slicing) 420. The partitioning function (slicing) 420 is applied to the input tensor 310 to obtain a first slice tensor 330 and a second slice tensor 350. In contrast to the “tensor mode” 300, arbitrary functions 421, 422 of an artificial neural network are also applied to the first slice tensor 330 and the second slice tensor 350. In particular, convolution, residual, density, inception, activation, normalization, pooling, etc. are conceivable. Different functions 421, 422 of an artificial neural network can be applied to the first slice tensor 330 and the second slice tensor 350.

[0067] The first slice tensor 330 is then fed to a decoder path 340 of the artificial neural network in order to be logically associated there with a coarse abstract feature representation.

[0068] At least one second slice tensor 350 is supplied together with at least one first slice tensor 330 to a connection function (fusion) 360 to generate an output tensor 370. Any rule suitable for connecting the first slice tensor 330 with the second slice tensor 350 can be applied as the connection function (fusion) 360. In particular, concatenation, summation, substitution, duplication, etc. are conceivable. The output tensor 370 is intended to be further processed by the artificial neural network along the encoder path 380.

[0069] Figure 5 A flow chart of a method according to the invention is shown.

[0070] Step 510 is shown in dashed lines. This indicates that step 510 is to be considered as an optional step. In step 510, an input tensor 310 and a partitioning function 320, 420 are received.

[0071] In step 520 , the input tensor 310 is divided into at least one first slice tensor 330 and at least one second slice tensor 350 according to a division function 320 , 420 , wherein the input tensor 310 depends on the image data 111 , 211 .

[0072] If optional step 510 does not take place, then a partitioning function 320 , 430 is predefined and input tensor 310 is present as input data for the method.

[0073] In step 530, at least one first slice tensor 330 is output to the decoder path 120, 220 of the neural network. In the decoder path 120, 220, the at least one first slice tensor 330 may be logically associated with a coarse abstract feature representation.

[0074] In step 540, at least one first slice tensor 320 is concatenated with at least one second slice tensor 350 according to a concatenation function (fusion) 360 to obtain an output tensor 370. The output tensor 370 is intended to be processed on the encoder path 110, 210 of the artificial neural network.

[0075] In step 550, the output tensor 370 is output to the encoder path 110, 210 of the neural network for further processing by the artificial neural network.

[0076] The invention is preferably suitable for use in automotive systems, in particular in conjunction with driver assistance systems up to partially or fully automated driving.

[0077] The processing of image data or image streams representing the vehicle surroundings is particularly important in this context.

[0078] Such image data or image streams can be detected by an imaging sensor of the vehicle. In this case, the detection can be performed by means of a single sensor. It is conceivable to fuse image data or image streams from multiple sensors (if necessary from multiple sensors) using different detection technologies, such as video sensors, radar sensors, ultrasound sensors, lidar sensors.

[0079] In this context, the determination of free space (free space detection) in the image data or image stream and the semantic differentiation of foreground and background are particularly important.

[0080] These features can be determined by processing the image data or image stream using an artificial neural network according to the invention. Based on this information, a control system for longitudinal or lateral control of the vehicle can be controlled accordingly, so that the vehicle can be controlled to respond appropriately to the detection of these features in the image data or image stream.

[0081] Another field of application of the invention may be the accurate pre-labeling of image data or image data streams for camera-based vehicle control systems.

[0082] In this case, the label to be assigned represents the class of the object to be detected in the image data or the image stream.

[0083] The invention can also be used in all fields such as automotive, robotics, health, surveillance, etc., which require accurate pixel-based object recognition (pixel-by-pixel prediction) with the help of artificial neural networks. Here are some examples: optical flow, depth from monochrome image data, digital, boundary recognition, key cards, object detection, etc.

Claims

1. A method (500) for performing computationally and memory-saving semantic segmentation of image data (111, 211) of an imaging sensor by means of an artificial neural network, wherein the artificial neural network has an encoder path (110, 210, 380) and a decoder path (120, 220, 340), the method comprising the following steps: - splitting (520) an input tensor (310) into at least one first slice tensor (330) and at least one second slice tensor (350) according to a splitting function (320, 420), wherein the input tensor (310) depends on the image data (111, 211); - outputting (530) the at least one first slice tensor (330) to a decoder path (120, 220, 340) of the neural network; - concatenating (540) the at least one first slice tensor (330) with the at least one second slice tensor (350) according to a concatenation function (360) to obtain an output tensor (370); - outputting (550) the output tensor (370) to an encoder path (110, 210, 380) of the neural network.

2. The method (500) according to claim 1, wherein: In the partitioning step, the partitioning function (320, 430) is designed such that only a subset of feature maps of the input tensor (310) is selected to form the at least one first slice tensor (330).

3. The method (500) according to claim 1 or 2, wherein: The connection function (360) is designed so as to maintain the dimensionality of the input tensor (310).

4. The method (500) according to any one of claims 1 to 2, comprising a preceding receiving (510) step, wherein the input tensor (310) and the partitioning function (320, 420) are received in the receiving (510) step.

5. The method (500) according to any one of claims 1 to 2, wherein: In the step of partitioning (520), a first function (421) of a neural network is applied to the at least one first slice tensor (330), and a second function (422) of a neural network is applied to the at least one second slice tensor (350).

6. The method (500) of claim 5, wherein: The partitioning function (420) is designed such that it includes the number of feature maps of the artificial neural network to be calculated and corresponding functions (421, 422) for calculating the at least one first slice tensor (330) and the at least one second slice tensor (350).

7. The method (500) of claim 1, wherein: The artificial neural network is a convolutional neural network.

8. A device for semantically segmenting image data of an imaging sensor, the device being constructed as an artificial neural network, wherein the artificial neural network has an encoder path (110, 210) for classifying the image data (111, 211), a decoder path (120, 220) for locating the image data (111, 211), and is configured to perform the steps of the method (500) according to any one of claims 1 to 7.

9. A device for performing computationally and memory-saving semantic segmentation of image data (111, 211) of an imaging sensor by means of an artificial neural network, the device being configured to perform the steps of the method (500) according to any one of claims 1 to 7.

10. A computer program product, arranged to execute all the steps of the method (500) according to any one of claims 1 to 7.

11. A machine-readable storage medium having a computer program stored thereon, the computer program being configured to execute all the steps of the method (500) according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Multi-layer automatic coding method based on deep learning and system thereof

    CN106934458A

  • Automatic-driving transport vehicle on structured road and control method

    CN107226087A

  • Image semantic segmentation method based on pyramid pooled coding-decoding structure

    CN107644426A

  • Deep neural network acceleration method and apparatus

    CN108053027A

  • Multi-class semantic segmentation method for skin lesions based on end-to-end full convolutional network

    CN108256527A