Semantic Segmentation Using Targeted Global Dissimilarity Loss

By calculating an overall dissimilarity loss that accounts for neighboring data points, the method improves the accuracy of neural networks in semantic segmentation tasks.

JP7560040B2Active Publication Date: 2024-10-02HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023505822
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-07-28
Filing Date
2021-07-28
Publication Date
2024-10-02
Estimated Expiration
2041-07-28

AI Technical Summary

Technical Problem

Existing solutions for training neural networks for semantic segmentation fail to effectively utilize information from nearby data points, leading to reduced accuracy in classification tasks.

Method used

A method is introduced to calculate an overall dissimilarity loss that incorporates the smoothness of predicted and ground truth labels among neighboring data points, improving the training process by leveraging neighborhood information.

Benefits of technology

This approach enhances the accuracy of neural networks performing semantic segmentation by considering nearby data points, resulting in improved classification performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007560040000005
    Figure 0007560040000005
  • Figure 0007560040000006
    Figure 0007560040000006
  • Figure 0007560040000001
    Figure 0007560040000001
Patent Text Reader

Abstract

A method and system for computing an overall dissimilarity loss for use in backpropagation during training of a neural network to classify each data point includes: using the neural network to predict a respective label for each data point in a set of input data points; determining a dissimilarity indicator that indicates the variance between (i) the smoothness of the predicted label among nearby data points and (ii) the smoothness of the ground truth label among the same nearby data points; and computing an overall dissimilarity loss based on the dissimilarity indicator.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0002]

[0002] Field The present disclosure relates generally to artificial intelligence, and more particularly to neural networks, and provides a method for computing an overall dissimilarity loss for use in training a neural network to perform semantic segmentation (i.e., classify data points from one another). [Background technology]

[0003]

[0003] Background Computer vision is an integral part of various intelligent / autonomous systems in various fields such as autonomous driving, autonomous manufacturing, inspection, and medical diagnosis. Computer vision is a branch of artificial intelligence in which computers learn to interpret and understand the visual world using digital images. Using digital images generated by a camera, a computer can use deep learning models to accurately "perceive" its environment (i.e., identify and classify objects) and react to what is "perceived" in its environment. For example, an autonomous vehicle has a camera mounted on the vehicle, which captures images of the environment surrounding the vehicle while the vehicle is driving. The vehicle's computer processes the digital images captured by the camera.

[0004]

[0004] Semantic segmentation is a machine learning (ML) technique that labels each pixel in a digital image with the corresponding class of what it represents. All pixels that belong to the same class of object are labeled as that object. For example, all people detected in an image can be segmented as one object and the background (i.e., non-people) can be segmented as another object.

[0005]

[0005] Semantic segmentation may also be applied in the context of point clouds, for example those generated by Light Detection and Ranging (LiDAR) sensors: each data point in the point cloud can be labeled with a corresponding class of what it represents.

[0006]

[0006] Many known solutions for training ML-based semantic segmentation models focus on low loss values ​​based on comparison of the label output predicted by the model to data points (e.g., pixels in the case of image data, or cloud points in the case of point clouds). Such solutions may only focus on the relationship between the predicted label for a data point and its ground truth label, with little or no consideration of nearby data point information. Some solutions perform averaging over all data points for the purpose of general propagation, but even such solutions do not leverage information about nearby data points.

[0007]

[0007] Classifying pixels of an image or data points in a point cloud can greatly benefit from the information provided by nearby data points (e.g., nearby pixels in the case of image data, or nearest data points in the case of a point cloud generated by a LiDAR sensor).

[0008]

[0008] In order to benefit from nearby data points, it is desirable to incorporate information provided by nearby data points to improve the accuracy of neural networks performing semantic segmentation. Summary of the Invention

[0009]

[0009] A first exemplary aspect of a method is a method for computing an overall discrepancy loss for use in backpropagation during training of a neural network for classifying respective data points, the method comprising the steps of: predicting a respective label for each data point in a set of input data points using the neural network; determining a discrepancy indicator indicative of variance between (i) the smoothness of the predicted label among nearby data points and (ii) the smoothness of the ground truth label among the same nearby data points; and computing an overall discrepancy loss based on the discrepancy indicator.

[0010]

[0010] In at least some applications, a comprehensive discrepancy loss measure that incorporates a comparison of predicted labels among nearby data points with ground truth labels among nearby data points can improve the accuracy of neural networks trained to perform semantic segmentation tasks.

[0011]

[0011] In some examples of the above aspects of the method, determining the smoothness of the predicted labels among the nearby data points includes determining the variance of the predicted labels between the nearby data points, and determining the smoothness of the ground truth labels among the nearby data points includes determining the variance of the ground truth labels between the nearby data points.

[0012]

[0012] In some examples of the above aspects of the method, the step of determining the discrepancy indicator includes a step of determining a norm of the discrepancy between the smoothness of the predicted label among the nearby data points and the smoothness of the ground truth label among the same nearby data points.

[0013]

[0013] In some examples of the above aspects of the method, the data points are image pixels and the nearby data points are determined by a predetermined pixel distance.

[0014]

[0014] In some examples of the above aspects of the method, the data points are point cloud data points of a point cloud, and the nearby data points are determined by a nearest neighbor identification algorithm.

[0015]

[0015] In some examples of the above aspects of the method, the overall discrepancy loss is incorporated into a loss function to generate an overall loss for the neural network, and the method further includes a step of determining update values ​​for a plurality of parameters of the neural network as part of gradient descent training of the neural network.

[0016]

[0016] Another exemplary aspect is a method for determining a loss value to use in training a neural network to perform semantic segmentation, the method including: using the neural network to predict a respective label for each data point in a set of input data points; for each data point, determining (i) a predicted label discrepancy value between a predicted label for the data point and a predicted label for at least one nearby data point of the data point; and (ii) a ground truth label discrepancy value between a ground truth for the data point and a ground truth label for at least one nearby data point of the data point; for each data point, determining a discrepancy indicator between the predicted label discrepancy value and the ground truth label discrepancy value; and assigning a loss value based on a norm of the discrepancy indicator.

[0017]

[0017] A computer system according to another aspect includes a processor and a non-volatile memory coupled to the processor, the memory storing instructions that, when executed by the processor, configure the computer system to perform a method of any of the above aspects.

[0018]

[0018] This disclosure provides loss computation methods that improve efficiency in training neural networks constructed and deployed for semantic segmentation. [Brief description of the drawings]

[0019]

[0019] For a more complete understanding of the exemplary embodiments and their advantages, reference is made to the following detailed description taken in conjunction with the accompanying drawings, in which: [Figure 1]

[0020] FIG. 1 is a schematic diagram illustrating a machine learning system in accordance with an example embodiment. [Diagram 2]

[0021] FIG. 2 illustrates a block diagram of a computing device that can be used to implement features of the machine learning system of FIG.

[0022] Like reference numbers may be used in the various drawings to indicate like elements. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0020]

[0023] An embodiment of the present disclosure relates to a method for generating loss values ​​for use in training a neural network to classify data points individually. The trained neural network is configured and arranged to classify each of the data points. To benefit from the neighborhood information available in the data set and its labels, the present disclosure introduces a synthetic dissimilarity loss that allows certain nearest neighbor information to be incorporated into the loss function. The disclosed loss function can improve accuracy metrics for semantic segmentation and classification in some applications.

[0021]

[0024] In this disclosure, a data point may refer to a basic data element in a data set, e.g., a pixel in a digital image or a cloud data point in a point cloud generated by a detection and ranging (DAR) sensor, such as a Light Detection and Ranging (LiDAR) sensor. A neural network (NN) may refer to a machine learning based computer algorithm implementation model consisting of one or more convolutional NN layers, fully connected NN layers, activation functions, and other layers and processes. In the case of a NN for semantic classification, the layers and functions are structured and arranged together to approximate a function f(.) that is capable of classifying a data point or a subset of data points, respectively, depending on the task. For example, a NN can take an input x (a W×H array of red, green, blue (RGB) intensity values ​​in the case of an image, or a point cloud set of data point values ​​(x,y,z intensity) in the case of a LIDAR point cloud) and output label predictions for all or a portion of the data points in the input x. For example, some semantic NNs focus on classifying dynamic objects such as vehicles, motorcyclists, and pedestrians only, while another semantic NN may include classifying other types of objects such as roads, buildings, and traffic signs.

[0022]

[0025] 1 is a block diagram of a computer-implemented machine learning system 100 that includes a neural network 104. The neural network 104 is trained using a supervised learning process and a training data set 102 that includes training data in the form of images or point clouds and a ground truth label y for each data point (e.g., each pixel in the case of an image, or each point cloud data point in the case of a point cloud). A neural network 104 constructed and deployed for semantic segmentation approximates a model as follows:

[0023]

number

[0024]

[0026] The input x to the neural network 104 can be in any format suitable for a given task. For an image classification task, the input x can be image data represented using a tensor of size (C,W,H) with RGB channels of size (W,H), where C is a feature channel. The image data is structured such that the location of pixels (e.g., data points) in a (W,H) sized matrix has structure and meaning. The neighborhood of each pixel (e.g., data point) is defined by its pixel's location (e.g., data point) in the matrix. The neighborhood size of a particular pixel (e.g., data point) can be defined by the number of steps (e.g., one step means the pixels (e.g., data points) immediately adjacent to the pixel (e.g., data point) of interest).

[0025]

[0027] In another example, the input x may be a point cloud generated by a detection and ranging sensor, such as a scanning light detection and ranging (LiDAR) sensor. A point cloud is a collection of data points in a three-dimensional coordinate system that represents a three-dimensional shape or feature. In such an example, the input x is a data point of a point cloud, which means that nearby data points may be unorganized, and as a result, nearby data points cannot be identified simply based on their relative positions. Another computation, for example a k-nearest neighbor computation, may be required to identify nearby data points of the point cloud.

[0026]

[0028] A method of training neural network 104 may begin with an initialization operation, when the learnable parameters (e.g., weights and biases) of neural network 104 are initialized using initializer 106. Training data (inputs x) from a training data set 102 are provided as inputs to neural network 104. Neural network 104 generates, for each data point in the set of input data points, a respective label y ^ Predict.

[0027]

[0029] According to an embodiment of the present disclosure, a comprehensive discrepancy loss V is calculated based on both the target data point and its neighboring data points. loss (y,y ^) is computed. The overall dissimilarity loss incorporates the sum of errors associated with both the target data point and its neighbors. In an exemplary embodiment, the overall dissimilarity loss is computed as follows: for all data points in the data point's neighborhood group: (a) compute the absolute value of the difference in predicted labels between each data point and its neighbors to determine a set of predicted label dissimilarity values; (b) compute the absolute value of the difference in ground truth labels between each data point and its neighbors to determine a set of ground truth label dissimilarity values; (c) for each pair of data points in the data point's neighborhood group, compute the norm of the difference between the set of predicted label dissimilarity values ​​and the ground truth label dissimilarity values; and (d) sum the computed norms to arrive at a loss for the input x.

[0030] In this regard, the overall discrepancy loss V loss (y,y ^ The loss calculation unit 108 that determines the loss () can be described by the following equation:

[0028]

number

[0029]

[0031] In an exemplary embodiment, the loss calculator 108 calculates the overall difference loss Vloss (y,y ^ ) is constructed to compute:

[0032] Step 1: If the neighborhood location index is not inherently defined by the data structure (e.g., the data points are not structured), identify data points in the neighborhood of each predicted data point (e.g., apply a k-nearest neighbor algorithm).

[0030]

[0033] Step 2: Pair (y,y ^ ) as one term for every data point in ^ ) is calculated using formula (3).

[0031]

number

[0034] Step 4: The overall discrepancy loss V loss (y,y ^ ) is one of several losses included in the main loss function, the overall discrepancy loss V loss (y,y ^ ) to the primary loss function used to train the neural network 104 to calculate a total loss (usually the total loss function is a combination of various loss functions). The total variance loss V loss (y,y ^ ) can be used as the only loss term or in addition to other loss terms such as cross-entropy.

[0032]

[0035] Step 5: Use the backpropagation engine 112 to update the learnable parameters (e.g., weights and biases) of the neural network 104.

[0033]

[0036] The backpropagation engine 112 calculates the aforementioned overall loss function or overall discrepancy V loss (y,y ^Any known backpropagation technique in machine learning can be performed to update the parameters (e.g., weights and biases) of the neural network 104 using a loss (cost) function such as (x,y) . Examples of backpropagation techniques include automatic gradient calculations and analytical gradient calculations that are derived along with equations for updating the parameters (e.g., weights and biases) of the neural network 104.

[0034]

[0037] In essence, the overall discrepancy loss Vloss(y,y ^ ) can be generated by: The neural network 104 is used to generate a respective label y for each data point in the set of input data points. ^ predicting; (i) The predicted label y of the nearby data points ^ determining a discrepancy indicator that indicates the variance between the smoothness of (i) the ground truth label y among data points in the same neighborhood; and Comprehensive divergence loss based on divergence indicators V loss (y,y ^ ) determining a

[0035]

[0038] In an exemplary embodiment, point clouds are collected to generate a set of point clouds, in the case of road vehicles. A training data set is generated by obtaining ground truth labels for each data point contained in each point cloud. The training data set is then used to train the NN 104. In an exemplary embodiment, the NN 104 has an architecture similar to that of the SalsaNext model described in the following references: SalsaNext: Fast, Uncertainty-aware Semantic Segmentation of LiDAR Point Clouds for Autonomous Driving, Mar 2020, Tiago Cortinhal, George Tzelepis, Eren Erdal Aksoy, https: / / arxiv.org / abs / 2003.03653 . The loss function used by loss calculation unit 108 to calculate the total loss of NN 104 is:

[0039]

[0036]

number

[0040] In at least some embodiments, using the NN 104 in conjunction with the loss functions described above can improve the accuracy of the NN 104 in performing semantic segmentation (i.e., classifying each of the data points).

[0037]

[0041] In an exemplary embodiment, the components, modules, systems, and agents described above may be implemented using one or more computing devices, servers, or systems, each including a combination of hardware processing circuitry and machine-readable instructions (software and / or firmware) executable on the hardware processing circuitry. The hardware processing circuitry may include any or some combination of a microprocessor, a core of a multi-core microprocessor, a microcontroller, a programmable integrated circuit, a digital signal processor, or other hardware processing circuitry.

[0038]

[0042] Referring to FIG. 2, a schematic hardware diagram of an exemplary computing device 200 for implementing the methods of calculating total discrepancy loss and training neural network 104 is shown. The computing device 200 includes at least one processor 202 that controls the overall operation of the computing device 200. The processor 202 may include one or more central processing units, graphics processing units, tensor processing units, AI-enabled processing units, and associated hardware accelerators. The processor 202 is coupled to multiple components via a communication bus (not shown) that provides a communication path between the components and the processor 202. The computing device 200 also includes random access memory (RAM), read-only memory (ROM), persistent (non-volatile) memory, which may be one or more of a magnetic hard drive, flash erasable programmable read-only memory (EPROM) (“flash memory”), or other suitable forms of memory.

[0039]

[0043] The memory 204 stores a computer program 206 for training the neural network 104. The computer program 206 includes computer readable instructions executable by the processor 202. Execution of the computer readable instructions of the computer program 206 by the processor 202 results in a method of training the neural network 104 and / or a method of calculating a total discrepancy loss for use in backpropagation during training of the neural network 104 as described herein.

[0040]

[0044] Although the present disclosure describes methods and processes with a certain order of steps, one or more steps of the methods and processes may be omitted or modified as appropriate. One or more steps may, if desired, be performed in an order other than the order in which they are described.

[0041]

[0045] Although the present disclosure is described, at least in part, in terms of methods, those skilled in the art will appreciate that the present disclosure is also directed to various components for implementing at least some of the aspects and features of the described methods, whether through hardware components, software, or any combination of both. Thus, the technical solutions of the present disclosure may be embodied in the form of a software product. A suitable software product may be stored in a pre-recorded storage device or other similar non-volatile or non-transitory computer-readable medium, such as a DVD, CD-ROM, USB flash disk, removable hard disk, or other storage medium. The software product includes tangibly stored instructions that enable a processing device (e.g., a personal computer, a server, or a network device) to execute the method examples disclosed herein.

[0042]

[0046] The present disclosure may be embodied in other specific forms without departing from the subject matter of the claims. The described exemplary embodiments are to be considered in all respects as illustrative only and not restrictive. Selected features from one or more of the above-described embodiments may be combined to produce alternative embodiments not expressly described, and it is understood that features suitable for such combinations are within the scope of the present disclosure.

[0043]

[0047] All values ​​and subranges within the disclosed ranges are also disclosed. Also, while the systems, devices, and processes disclosed and illustrated herein may include a particular number of elements / components, the systems, devices, and assemblies can be modified to include additional or fewer such elements / components. For example, while any of the disclosed elements / components may be referred to in the singular, the embodiments disclosed herein can be modified to include a plurality of such elements / components. The subject matter described herein is intended to cover and embrace all appropriate modifications of the art.

Claims

1. 1. A method for computing an overall discrepancy loss for use in backpropagation during training of a neural network to classify each data point, comprising: predicting, using the neural network, a respective label for each data point in a set of input data points; Determining a discrepancy indicator that indicates the discrepancy between (i) the smoothness of the predicted labels among nearby data points and (ii) the smoothness of the ground truth labels among the same nearby data points; and calculating an overall discrepancy loss based on the discrepancy indicators; wherein the data points are point cloud data points of a point cloud, and the nearby data points are determined by a nearest neighbor identification algorithm.

2. 2. The method of claim 1 , wherein determining a smoothness of predicted labels among the neighboring data points comprises determining a variance of the predicted labels between the neighboring data points, and determining a smoothness of ground truth labels among the neighboring data points comprises determining a variance of the ground truth labels between the neighboring data points.

3. 3. The method of claim 2, wherein determining the discrepancy indicator comprises determining a norm of discrepancy between a smoothness of predicted labels among the nearby data points and a smoothness of ground truth labels among the same nearby data points.

4. 4. The method of claim 1, wherein the data points are image pixels and neighbouring data points are determined by a predetermined pixel distance.

5. 4. The method of claim 1, wherein the overall discrepancy loss is incorporated into an overall loss function of the neural network to generate an overall loss for the neural network, the method further comprising determining updates to a number of parameters of the neural network as part of gradient descent training of the neural network.

6. 1. A method of training a neural network to perform semantic segmentation, comprising: predicting a respective label for each data point in a set of input data points using the neural network; For each data point, determining (i) a predicted label dissimilarity value between a predicted label for the data point and a predicted label for at least one neighboring data point of the data point; and (ii) a ground truth label dissimilarity value between a ground truth label for the data point and a ground truth label for at least one neighboring data point of the data point; determining, for each data point, a norm of the difference between the predicted label dissimilarity value and the ground truth label dissimilarity value; calculating an overall dissimilarity loss for the set of input data points based on the sum of the norms; and performing backpropagation to update a set of parameters of the neural network based at least on the overall discrepancy loss; wherein the set of input data points comprises data points of a point cloud, and the nearby data points are determined by a nearest neighbor identification algorithm.

7. 7. The method of claim 6, The step of determining a predicted label discrepancy value comprises: i ,Δ j are the respective step values ​​in the data point index, and y {i,j} is the tensor variable Y {(Δi),(j)} For all data points (i,j) and values ​​Δ i ,Δ j For y {(i+Δi),(j)} -y {i,j} Calculate the absolute value of tensor variable Y {(Δi),(j)} y for inclusion at the corresponding position {(i),(j+Δj)} -y {i,j} Calculating the absolute value of The steps of determining the ground truth label discrepancy value are: ^ {i,j} is the tensor variable Y ^ {(i),(Δj)} For all data points (i,j) and values ​​Δ i ,Δ j For y ^ {(i+Δi),(j)} -y ^ {i,j} Calculate the absolute value of tensor variable Y ^ {(i),(Δj)} y for inclusion at the corresponding position ^ {(i),(j+Δj)} -y ^ {i,j} Calculating the absolute value of The step of determining the norm of the difference is: for every pair of (Δi),(j), Y {(Δi),(j)} and Y ^ {(Δi),(j)} Calculate the first p,q norms of Y for every pair of (i),(Δj). {(i),(Δj)} and Y ^ {(i),(Δj)} Calculating the p,q norms of

8. 8. The method of claim 6 or 7, wherein the set of input data points comprises an image.

9. A computer system including a processor and a non-volatile memory coupled to the processor, the non-volatile memory storing instructions that, when executed by the processor, configure the computer system to perform a method according to any one of claims 1 to 3.

10. A computer program comprising instructions for causing a computer to carry out the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Imaging device and imaging system

    JP2020052032A