Method and apparatus for classifying sensor data - Patents.com

The method addresses the challenge of detecting unknown scenarios in neural network-based sensor data classification by using average feature vectors and GAN training, ensuring reliable classification and safety in unmanned vehicles.

JP7573325B2Active Publication Date: 2024-10-25MICROVISION INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023522487
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-10-14
Filing Date
2021-09-09
Publication Date
2024-10-25
Estimated Expiration
2041-09-09

AI Technical Summary

Technical Problem

Existing classification methods using neural networks for sensor data in unmanned vehicles fail to reliably detect unknown scenarios or out-of-distribution samples, leading to potential errors in vehicle control due to reliance on training data distribution.

Method used

A method that uses average feature vectors for each class, combined with cosine similarity and Mahalanobis distance, to identify scenarios not represented in the training data, and includes a GAN-based training process to enhance detection of unknown scenarios.

Benefits of technology

Enhances the reliability of sensor data classification by detecting unknown scenarios, preventing errors, and allowing for automatic updating of training data with new scenarios, thereby improving safety in unmanned vehicle operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007573325000005
    Figure 0007573325000005
  • Figure 0007573325000006
    Figure 0007573325000006
  • Figure 0007573325000007
    Figure 0007573325000007
Patent Text Reader

Abstract

A method (100) and an apparatus for classifying sensor data are proposed, the method (100) comprising a step (110) of providing, for a number of classes, respective mean feature vectors (30). The method (100) further comprises a step (120) of determining feature vectors based on the sensor data using a classifier (10) including at least one neural network (11) trained on training data (50), a step (130) of determining, for each of the number of classes, a cosine similarity between the feature vector and each mean feature vector (30), a step (131) of comparing each cosine similarity with a predefined threshold for each class, and a step (133) of identifying scenarios not represented by the number of classes if the thresholds for all classes are not met. The apparatus comprises the classifier (10) and is designed to perform the method.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The invention relates to a method and a device for classifying sensor data according to the independent claims. [Background technology]

[0002] In particular, in unmanned driving of vehicles, it is essential to classify objects detected by sensors, such as road users, in order to navigate based on the classification.

[0003] From the prior art it is known that at least one predefined class is assigned to the detected object. However, it is equally important that an object is detected when it is not included in a predefined class. Only then can it be ensured that decisions regarding the control of the vehicle are not based on erroneous assumptions.

[0004] This problem becomes even more important when neural networks are used for classification: it is known that neural networks work well to evaluate data only if these data are at least similar to the data presented to the neural network during training, i.e. if these data follow the distribution of the training data. Summary of the Invention

[0005] It is therefore an object of the present invention to provide a method for classifying sensor data in such a way that it is possible to reliably estimate whether there are unknown scenarios present that are unknown to the neural network used for the classification.

[0006] The above object is solved by a method for classifying sensor data, which method comprises providing a respective mean feature vector for a number of classes, such that each class is provided with its own mean feature vector.

[0007] The method uses a classifier, which is a neural network trained on the basis of training data. The multiple classes are specifically a predefined number of classes determined on the basis of the number of classes the neural network has been pre-trained on. The mean feature vector is, in other words, a mean vector determined for each pre-defined class.

[0008] The method includes determining a feature vector based on the sensor data using a classifier.

[0009] The method further includes using a classifier to determine a cosine similarity between the predetermined feature vector and each average feature vector for the multiple classes, comparing each cosine similarity to a predetermined threshold for each class, and identifying scenarios not represented by the multiple classes when the thresholds for all classes are not met. Thus, the method is configured to detect anomalies in the classification of the sensor data.

[0010] Cosine similarity is a numerical value that indicates how similar vectors are, and its value ranges from +1 to -1. For example, if the cosine similarity is +1 for a class, the corresponding feature vector exactly corresponds to the average feature vector of the corresponding class.

[0011] The neural network is pre-trained based on training data. These training data include a number of classes. In particular, each class represents an object category, for example a pedestrian or a bicycle. In particular, the training data of each class includes a number of training samples, which constitute the object represented by the class in as many different scenarios as possible. Each training sample therefore includes the object in environmental conditions. The training samples are preferably related to image data or LiDAR data, in particular point clouds. Of course, not all possible scenarios can be covered therein.

[0012] A scenario is preferably defined by the objects and environmental conditions, e.g. weather conditions, involved. A scenario may be a combination of objects, especially in weather conditions, e.g. snow, rain, fog, dust, hail, etc., depending on the intensity of the weather conditions, e.g. fog density. A pedestrian in normal visibility (e.g. cloudy weather) is a different scenario than a pedestrian in a hailstorm. However, both are included in the "pedestrian" class, and the scenario "pedestrian in hailstorm" may not have been included in the training data, since it occurs very rarely. A method for object detection detects objects in all possible environmental conditions, but also knows its limitations when it cannot detect an object with sufficient reliability based on the current scenario, because it was not represented in the training data.

[0013] A scenario not represented in the training data, in other words an unknown or unknown scenario, may be a hitherto undetected, i.e. new, object category, in an object category included in the training data, and / or a hitherto unincluded, i.e. new, environmental condition, in particular weather condition. If at least one class threshold is met, the method may comprise assigning a corresponding class, preferably a confidence measure. In particular, a cosine similarity may be assigned as the confidence measure.

[0014] If the cosine similarity does not reach the threshold for all classes, the method can detect that there is a scenario that was not covered by a large number of classes. Thus, the neural network can detect deviations from the expected results based on its training. In other words, it can determine whether the classification was valid or not, which can have a significant impact on the further processing of information for unmanned driving of the vehicle.

[0015] Thus, the method can be configured to detect a scenario of a certain class in the sensor data, but detect that the scenario is not sufficiently represented in the training data if all thresholds are not met. Furthermore, there may also be special cases, such as potholes or accident scenes with vehicle parts on the road, which the method does not recognize as represented by the training data, since they are real new classes, in other words object categories. Also, scenarios with new objects (e.g. new road users) that were not included in the training data, for example, are scenarios that are not represented in the training data, since the whole class is not represented. An example is a cargo bike, which is actually similar to a bicycle, but nevertheless constitutes a class of its own. In all the above cases, the detected scenario is defined as not represented in the training data. Thus, in the case of scenarios that are not represented by a large number of classes, there is a problem with out-of-distribution samples, or respectively out-of-distribution detection.

[0016] The method is therefore different from methods known in the prior art that assign a classification to each scenario based on its similarity to a class. The method can also be used in safety-critical applications, preferably in driverless vehicle operation, since the classifier is configured to detect unknown scenarios in a safety-critical manner. Thus, in addition to preventing errors during use, it is also possible to detect new scenarios, which can then be gradually included in the training data, ensuring the coverage of all occurring scenarios.

[0017] Furthermore, the method can include a step of determining the Mahalanobis distance between the covariance matrix, the mean feature vector, and the feature vector determined based on the sensor data of each class. This step is particularly useful for better detecting scenarios that are not taken into account by a large number of classes, since the cosine similarity does not take into account the distribution of the features, but only their mean values. For this purpose, the Mahalanobis distance can be used in addition.

[0018] The Mahalanobis distance is not "bounded" as is necessary to estimate bounds on reliability, so χ 2 Based on the distribution, a criterion value is determined, in particular a function value of the cumulative density function. This means that when the number of degrees of freedom corresponds to the range of the feature, the Mahalanobis distance is χ 2 The function is known to follow a distribution: the criterion for each class is determined in the space of their respective Mahalanobis distances, χ 2 It is determined by the function value of the distribution. In other words, the Mahalanobis distance of a class is the value of X, which is χ 2The corresponding Y value is added to the distribution. To obtain the reference value for the class, the corresponding Y value is subtracted from 1. A comparison of the respective reference value with predefined thresholds for each class can be made again. If the thresholds for all classes are not met, scenarios not represented by the majority class are detected. This double control by cosine similarity and Mahalanobis distance also detects scenarios not taken into account by the majority class, which serves a particularly high level of safety precaution.

[0019] In particular, if all class thresholds are not met, the method can label, or in other words characterize, the detected scenario as unknown compared to the training data.

[0020] Furthermore, a predefined minimum confidence can be assigned to the detected scenario. Specifically, a minimum confidence can be assigned to each class. In particular, the predefined minimum confidence is undoubtedly smaller than the corresponding cosine similarity of each class. This minimum confidence can, for example, correspond to 0.

[0021] The method can include a step of storing sensor data in which a scenario not shown is detected as a complement to the training data. In this way, the training data used for training the neural network can be complemented. Thus, the sensor data can be stored in a new scenario in an automatic way. This replaces the time-consuming and therefore expensive manual shifting of scenarios in the "entry" of the training data, which is not only prone to errors, but also in the "entry" of the training data. In the data recording for the training data, many hours of sensor data must be recorded, evaluated or manually labeled, respectively, to ensure the safety of the classification method. Here, of course, "normal" scenarios are recorded more frequently than, for example, scenarios with very rare weather phenomena or scenarios with rare road users. The method makes it possible to store sensor data of scenarios not included in such training data, and preferably also to use them in a next step, for example in a subsequent "update" of the classifier, to train the classifier for new scenarios. In order to assign new classes based on scenarios unknown to the training data, the stored sensor data can be manually labeled beforehand.

[0022] The sensor data may in particular relate to LiDAR data. In other words, the sensor data in particular relate to a point cloud. The method may in particular include receiving the sensor data by a corresponding sensor, in particular a LiDAR sensor, preferably a solid-state LiDAR sensor. Furthermore, the sensor data may relate to radar data or image data. The method here may include pre-processing of the sensor data. In particular, the unit for pre-processing may detect points of the point cloud that apparently result from reflections on a common object. These combined points, in other words clusters, may be passed to a classifier as pre-processed sensor data.

[0023] The neural network of the classifier can in particular be functionally divided into a first unit and a second unit, where the first unit and the second unit comprise different layers of the neural network and the distinction between the first unit and the second unit is made with respect to their functionality. The first unit is configured as a feature extractor for extracting features from the sensor data. The second unit is configured as a classification unit. The first unit is responsible for preparing the sensor data for the second unit.

[0024] In particular, the feature extractor comprises a "Multi-Layer Perceptron" (MLP-) network, which comprises at least one "Multi-Layer Perceptron" (MLP layer) as a layer. Each layer comprises a number of artificial neurons. In particular, the MLP network comprises a number of MLP layers. The MLP layers are preferably all activated respectively by a non-linear function, in particular by a so-called ReLU function. The ReLU function is a function representing a linear function that assigns 0 as Y value for negative x values, but has a slope of 1 otherwise. The MLP preferably has at least three, in particular at least five layers, which may include several sublayers.

[0025] Furthermore, the MLP network may comprise at least one fully connected layer, which may also be activated by a non-linear function, in particular the so-called ReLU function.

[0026] The MLP network can process inputs in the form of point clouds. The output of the network is therefore characterized in that it is in the form of vectors, where no activation is specifically performed in the final layer. Finally, a softmax normalization can be performed. As a result, a bottleneck vector is preferably obtained before performing the softmax normalization. The bottleneck vector is therefore the result of the last layer of the neural network, before a possible softmax normalization, and is a feature vector.

[0027] Alternatively, the feature extractor may be a Convolutional Neural Network (CNN). However, to do so, the point cloud present as sensor data must be converted beforehand into an image representation. The CNN includes in particular a large number of layers. In particular, the CNN includes alternating convolutional and pooling layers. The CNN is configured to extract lines, L-features, and / or circular features. Certain features may also be designated as "features".

[0028] The second unit of the classifier comprises at least one, preferably two or three fully connected layers directly adjacent to the last layer of the first unit. Preferably, the second unit consists of at least one fully connected layer. Each layer comprises a number of artificial neurons. The second unit is responsible for processing the feature vectors of the first unit.

[0029] In particular, the method includes training a classifier, i.e. training a neural network of the classifier, by training data, which includes a first training sample and a second training sample, where the second training sample is generated by a generative adversarial network (GAN) having a generator and a discriminator, while the first training sample is based on receiving a scenario by a sensor. The first training data is therefore standard training data input by a corresponding sensor, i.e. received in a real situation. The first training sample therefore includes in particular a manually assigned label.

[0030] The classifier is carried out based on the cross-entropy loss, based on the first training sample, to which is added the Kullback-Leibler (KL) divergence based on the second training sample. In the KL divergence, the equality of the distributions is achieved by calculating the difference between the two distributions and adding the divergence to the loss. For this, the KL divergence is added to the loss additively. The aim is that the classifier detects objects from the second training sample, distributed with equal probability for all classes, so that when applied, the cosine similarity with all the mean feature vectors of the first training sample is below the corresponding threshold. Training is carried out based on the manual labels of the first training sample, as well as the labels generated by the classifier by making the corresponding comparison using the cross-entropy loss and the additively added KL divergence, and adapting the weights of the neural network of the classifier. In training, since there is no mean feature vector, the training work is carried out based on the uncertainty output by the softmax regularization. The objective in training is for the uncertainty in the second training sample to be equally distributed across all classes, so that when applied, i.e. after training is completed, scenarios not represented in the training data will have cosine similarity below the threshold and therefore be identified as such.

[0031] The generator and the discriminator of GAN may be related to artificial neural networks. Here, the generator generates so-called candidates, here second training samples, which the discriminator evaluates. The objective of the generator is to learn to generate results according to a certain distribution. Meanwhile, the discriminator is trained to distinguish the results from the generator from real data of a given distribution. The objective function of the generator consists in generating results that the discriminator cannot distinguish. In this way, second training samples are generated, which are on the decision boundary of the classifier. The classifier evaluates the results with uniformly distributed probabilities. Therefore, the KL divergence is also added additively to the loss of the generator.

[0032] The method particularly includes training a GAN, in particular a generator and a discriminator, where the classifier and the GAN are trained jointly. Additionally, the feature extractor can also be trained jointly.

[0033] The training of the generator is performed based on binary cross-entropy loss based on the second training sample, to which KL divergence based on the second training sample is added. The second training sample is evaluated by a discriminator, where the discriminator first evaluates the first training sample, for example, with 1, while the second training sample is evaluated differently, for example, with 0. The binary cross-entropy loss refers to evaluating the second training sample by the discriminator. The KL divergence is based on the classification of the second training sample made by the classifier in comparison with a uniformly distributed probability. The weights of the generator in the training are adapted to generate a second training sample that the discriminator evaluates similarly to the first training sample, but the classifier distributes and assigns uniformly distributed probabilities to all classes.

[0034] The discriminator is also trained based on cross-entropy loss, in particular binary cross-entropy loss, i.e. based on the first training sample and the second training sample generated by the generator. The joint training of the classifier and the GAN helps the generator not only to try to fool the discriminator, but also to generate unknown scenarios for the classifier, which are evaluated with uniformly distributed probability. This significantly improves the confidence in detecting unknown scenarios. Again, during training, in particular the weights of the neural network are adapted.

[0035] The classifier may specifically have at least one, preferably two, convolution layers, which are activated by a ReLu function, in particular a Leaky ReLU function. The Leaky ReLU function is a function that assigns a small value (e.g., 0.01 times) greater than 0 as a Y value to an x ​​value, but is otherwise a linear function with a gradient of 1. Finally, preferably, a fully connected layer with a single output neuron is used. Specifically, the classifier is configured as follows: TIFF0007573325000001.tif150141

[0036] The generator can consist of a fully connected layer with batch normalization and Leaky ReLU activation, followed by three transposed convolution blocks, in particular with a 5x5 kernel, batch normalization, and Leaky ReLU activation, respectively. The final layer can follow from a transposed convolution layer, preferably also with a 5x5 kernel.

[0037] Specifically, the generator is configured as follows. TIFF0007573325000002.tif207167

[0038] Specifically, the training can be carried out as follows:

[0039] First, a discriminator (disc) loss, i.e., a cross entropy loss, is generated to distinguish between the first training data and the second training data generated by the generator (gen). Thus, the discriminator loss (Lossd) is defined as the sum of the binary cross entropy losses (BCE) of the first training sample and the generated second training sample. D in Here, represents the first training sample. "Noise" is a 100-dimensional random vector generated from a standard Gaussian distribution (mean = 0, standard deviation = 1). This random vector is input to the generator. Loss d =BCE(disc(D in ), 1 )+BCE(disc(gen(noise)), 0 )

[0040] The generator is not only trained to fool the discriminator, but also to generate second training samples, i.e., at the decision boundary of the classifier. Thus, the loss of the generator g ) is defined as follows: TIFF0007573325000003.tif14129Where, KL stands for KL divergence, |c| stands for the number of classes or the number of classes, respectively, and 1 / |c| stands for the uniform distribution probability over each class. In this way, the second training sample fools the discriminator (cls) that follows the distribution of the first training sample, and the corresponding weights of the neural network are adapted to achieve that the classifier distributes the probability uniformly for the second training sample. This is important because it ensures that unknown scenarios fall below all the thresholds of multiple classes. Loss of the classifier cls ) is defined as follows: TIFF0007573325000004.tif15129

[0041] All weights are initialized with a Xavier uniform initializer.

[0042] Advantageously, for each class a mean feature vector is determined: the training data comprises a number of first training samples for each class, and the mean feature vector of the class is determined by the following steps:

[0043] First, a feature vector is determined for each first training sample of a class, in particular using the classifier (before softmax normalization). This concerns here in particular the bottleneck vector. These feature vectors are added to obtain a further feature vector. The added feature vector is divided by the number of first training samples of the corresponding class. As a result, an average feature vector of the class is obtained. The average feature vector concerns in particular the averaged bottleneck vector of the corresponding class. The average feature vector is determined in particular after training of the classifier.

[0044] For each class, a threshold is determined in particular. The threshold of a class is determined by the following steps: First, the cosine similarity of the feature vector of each first training sample and the average feature vector of the class is determined. Then, the determined cosine similarities are averaged, thus calculating the average cosine similarity, or the minimum cosine similarity is determined from the amount of cosine similarity for the first training data of the class. This threshold can be set equal to either the average cosine similarity or the minimum cosine similarity.

[0045] For example, this threshold can be set to 0.85, where if a cosine similarity between the determined feature vector and the average feature vector of 0.92 is determined, the corresponding class can be put out with high confidence and thus confirmed to have been detected validly.

[0046] In particular, the method for classifying sensor data is part of a method for unmanned driving of a vehicle.

[0047] In a further aspect, the invention comprises an apparatus for classifying sensor data. The apparatus comprises a classifier and is configured to execute the method described above. In particular, the classifier is trained as described above. Furthermore, the apparatus may comprise a GAN as described above, trained in particular as described above. The classifier may comprise a decision module for assigning a class and / or a confidence and / or a label as an unknown, in particular based on a threshold and the determined cosine similarity and preferably the Mahalanobis distance. In particular, the apparatus is useful for autonomous driving of vehicles.

[0048] The present invention further includes a computer program product including a computer readable storage medium having a program stored thereon, which, after being loaded into the memory of a computer, is capable of cooperating with the above-mentioned apparatus to execute the above-mentioned method for classifying sensor data.

[0049] Furthermore, the invention relates to a computer-readable storage medium having stored thereon a program which, after being loaded into the memory of a computer, enables said method for classifying sensor data to be carried out in cooperation with the above-mentioned device. [Brief description of the drawings]

[0050] The figures are merely schematic representations. [Figure 1] 1 is a process scheme of the method according to the present invention. [Diagram 2] FIG. 1 illustrates training of a classifier and a GAN. [Diagram 3] FIG. 1 illustrates the determination of an average feature vector. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0051] Fig. 1 shows a method diagram of a method 100 for classifying objects according to the invention. The method 100 comprises a step 110, which provides a respective mean feature vector 30 for a number of classes. In step 120, the feature vectors are determined by the classifier 10 based on the sensor data. In step 130, the cosine similarity between the determined feature vector and the respective mean feature vector is determined for all classes, and in step 131, the cosine similarity is compared with a pre-determined threshold. In step 133, a scenario not represented by a number of classes is detected if the threshold for all classes is not met.

[0052] The method 100 may in particular comprise a step 101 of training the classifier 10 and a step 102 of training the GAN 20, which are in particular performed together.

[0053] Furthermore, in step 111, a respective average feature vector 30 can be determined for a number of classes. To this end, in particular, in step 111a a feature vector is determined for each first training sample of each class, and in step 111b the corresponding feature vectors of all first training samples of each class are added together and divided by the number of first training samples of the class in step 111c.

[0054] Furthermore, in step 112, a respective threshold value can be determined for multiple classes. This is done in particular by determining the cosine similarity between the feature vector of each training sample and the average feature vector 30 of the class in step 112a. In step 112b, the average cosine similarity or the minimum cosine similarity is determined. The average cosine similarity is specifically calculated by adding the cosine similarities of all first training samples and dividing it by the number of first training samples. Determining the minimum cosine similarity is done by simply setting a minimum value of the cosine similarity. In step 112c, the average cosine similarity or the minimum cosine similarity is set as the threshold value.

[0055] In step 132, the Mahalanobis distance between the covariance matrix, the mean feature vector, and the determined feature vector can be determined as a further parameter for defining whether the sensor data includes the scenario depicted in the training data. 2 Based on the distribution, reference values ​​can be determined for each class, which are compared to the class's respective thresholds. In step 113, the covariance matrix for each class can be predetermined.

[0056] If the thresholds for all classes are not met, then in step 150 the detected scenario can be labeled as unknown compared to the training data, in step 151 the scenario can be assigned a minimum confidence level, and / or the corresponding sensor data can be stored as a supplement to the training data, in step 152.

[0057] 2 illustrates the training of a classifier 10 and a GAN 20, which includes a generator 21 and a discriminator 22. A first training sample 51 is provided as input to the discriminator 22, and a second training sample 52 is provided by the generator 21. The generator 21 generates the second training sample 51 at the decision boundary of the classifier 10, thus attempting to fool the discriminator 22 and allow the classifier 10 to assign a uniformly distributed probability to the second training sample 52.

[0058] The classifier 10, as well as the generator 21 and the discriminator 22, are both related to a neural network 11. For the classifier 10, neurons 12 arranged in each layer are shown as an example. The neural network 11 of the classifier 10 can be functionally divided into two units, a first unit 11a and a second unit 11b. The first unit 11a is configured as a feature extractor, and the second unit 11b serves as a classifier.

[0059] On the right side adjacent to the classifier 10, the determined uncertainty 60 of the softmax normalization 31 is shown in tabular form, divided into a number of classes. On the upper side, the uncertainty 60 of the softmax normalization 31 is shown for the first training sample, where the first class is by far the most dominant, so at least this class is assigned a high confidence level. In training, since the mean feature vector does not yet exist, the uncertainty obtained after the softmax normalization is used for the calculation.

[0060] This is different in the lower case, where a second training sample is shown where the uncertainty 60 of the softmax regularization 31 is uniformly distributed for all classes.

[0061] Figure 3 shows how the classifier 10 determines the mean vector 30 after training, i.e. before performing the softmax normalization 31. This is done in the last layer of the second unit, and thus the last layer of the classifier, before performing the softmax normalization 31, i.e. based on all first training samples 51, thus for each class. In this application, according to Figure 1, the cosine similarity is determined based on the sensor data and the mean feature vectors 30 of the classes. Examples of neural networks:

[0062] The feature extractor can be configured as follows: MLP embodiment: ● Input: batch size x 2048 x 3 ● Layer 0: o Layer 0.1: Multi-Layer Perceptron (MLP) Number of functions: 64 Kernel 1x3 Batch normalization Activation function: ReLU o Layer 0.2:MLP Number of functions: 128 Kernel 1x1 Batch normalization Activation function: ReLU o Layer 0.3:MLP Number of functions: 1024 Kernel 1x1 Batch normalization Activation function: ReLU o Layer 0.4: Fully connected Output: 512 Batch normalization Activation function: ReLU o Layer 0.5: Fully connected Output: 256 Batch normalization Activation function: ReLU o Layer 0.5: Fully connected Output: 9 No activation function Initializing variables to 0 o Layer 0.6: Addition with identity matrix [100010001] o Output: batch size x 3 x 3 ● Layer 1: Input * Output Layer 0 ● Layer 2:MLP Number of functions: 64 o Kernel 1x3 Batch normalization Activation function: ReLU ● Layer 3:MLP Number of functions: 64 o Kernel 1x1 Batch normalization Activation function: ReLU ● Layer 4: Learning the multiplication matrix o Layer 4.1:MLP Number of functions: 64 Kernel 1x1 Batch normalization Activation function: ReLU o Layer 4.2:MLP Number of functions: 128 Kernel 1x1 Batch normalization Activation function: ReLU o Layer 4.3:MLP Number of functions: 1024 Kernel 1x1 Batch normalization Activation function: ReLU o Layer 4.4: Fully connected Output: 512 Batch normalization Activation function: ReLU o Layer 4.5: Fully connected Output: 256 Batch normalization Activation function: ReLU o Layer 4.5: Fully connected Output: 4096 No activation function Initializing variables to 0 Layer 4.6: Addition with an identity matrix (size 64) o Output: batch size x 64 x 64 ● Layer 5: Layer 3 * output layer 4 ● Layer 6:MLP Number of functions: 64 o Kernel 1x1 Batch normalization Activation function: ReLU ● Layer 7:MLP Number of functions: 128 o Kernel 1x1 Batch normalization Activation function: ReLU ● Layer 8:MLP Number of functions: 512 o Kernel 1x1 Batch normalization Activation function: ReLU ● Layer 9: Classification section o Layer 9.1 Fully connected layer: Number of output neurons: 512 Activation function: ReLU o Layer 9.2: Dropout Dropout rate: 0.5 o Layer 9.3 Fully Connected Layer: Number of output neurons: 512 Activation function: ReLU o Layer 9.4: Dropout Dropout rate: 0.5 o Layer 9.5: Fully connected layer (=bottleneck vector): Number of output neurons: Number of classes to be classified ● GGF softmax normalization layer CNN implementation ● Input: batch size x 80 x 128 x 2 (2 solid-state channels: intensity and depth) ● Layer 1: Convolution Kernel size: 3x3 o Number of output feature maps: 64 o Activation:ReLU ● Layer 2: Convolution Kernel size: 3x3 o Number of output feature maps: 64 o Activation:ReLU ● Layer 3: Max Pooling Kernel size: 2x2 ● Layer 4: Convolution Kernel size: 3x3 o Number of output feature maps: 128 o Activation:ReLU ● Layer 5: Convolution Kernel size: 3x3 o Number of output feature maps: 128 o Activation:ReLU ● Layer 6: Max Pooling Kernel size: 2x2 ● Layer 7: Convolution Kernel size: 3x3 o Number of output feature maps: 256 o Activation:ReLU ● Layer 8: Convolution Kernel size: 3x3 o Number of output feature maps: 256 o Activation:ReLU ● Layer 9: Max Pooling Kernel size: 2x2 ● Layer 10: Convolution Kernel size: 3x3 o Number of output feature maps: 512 o Activation:ReLU ● Layer 11: Convolution Kernel size: 3x3 o Number of output feature maps: 512 o Activation:ReLU ● Layer 12: Max Pooling Kernel size: 2x2 ● Layer 13: Convolution Kernel size: 3x3 o Number of output feature maps: 512 o Activation:ReLU ● Layer 14: Convolution Kernel size: 3x3 o Number of output feature maps: 512 o Activation:ReLU ● Layer 15: Max Pooling Kernel size: 2x2 Layer 16: Feature flattening (preparing the input for the classifier, in other words, dimensionality adaptation) ● Layer 17: Classification section o Layer 17.1 Fully Connected Layer: Number of output neurons: 512 Activation function: ReLU o Layer 17.2: Dropout Dropout rate: 0.5 o Layer 17.3 Fully Connected Layer: Number of output neurons: 512 Activation function: ReLU o Layer 17.4: Dropout Dropout rate: 0.5 o Layer 17.5: Fully connected layer (= bottleneck vector): Number of output neurons: Number of classes to be classified GGF normalization with softmax normalization The training of the classifier and the GAN can be determined by the following parameters: ● Optimization algorithm: Adam optimization algorithm (proprietary optimization algorithm for discriminator, generator, and classifier) ● Learning rate: 0.0001 o Exponential decay: Step The learning rate is decreased as a step function: after 200,000 steps it is halved until it reaches a minimum value of 0.00001, after which it remains constant. ● Batch size: 32 ● Initialization of all variables (except for initialization with 0): Xavier initialization ● Total epochs: 100 [Explanation of symbols]

[0063] 10 Classifier 11 Neural Networks 11a 1st Unit 11b 2nd unit 12 Neurons 20 GAN 21 Generator 22 Classifier 30 Average feature vector 31 softmax normalization 50 training data 51 First training sample 52 Second training sample 60 Uncertainty 100 ways 101 Training the Classifier 102 Training GANs 110 Providing an average feature vector for each of a number of classes. 111 A step of determining the mean feature vector for each of a number of classes. 111a. determining a respective feature vector for a first training sample of a class; 111b. adding up the feature vectors of all first training samples of the class to obtain a further feature vector; 111c. Dividing the summed feature vector by the number of first training samples of the class. 112 A step of determining thresholds for each of a number of classes 112a. determining the cosine similarity between the feature vector of each first training sample and the class mean feature vector; 112b determining the average cosine similarity or the minimum cosine similarity of the first training data of the class. 112c setting the average cosine similarity or the minimum cosine similarity as a class threshold. 113 Steps to determine the covariance matrix 120 Determining a feature vector based on the sensor data 130 determining the cosine similarity between the feature vector and each of the mean feature vectors for a number of classes 131 A step of comparing each cosine similarity with a preset threshold for each class. 132 determining the Mahalanobis distance between the covariance matrix, the mean feature vector, and the determined feature vector 133 detecting scenarios not represented by a majority of classes when the thresholds for all classes are not met. 150 labeling the detected scenario as unknown compared to the training data if all class thresholds are not met. 151. assigning a predefined minimum confidence to the detected scenario if all class thresholds are not met. 152 storing sensor data as a supplement to the training data

Claims

1. A computer-implemented method (100) for classifying sensor data, comprising: The method (100) is executed by a computer including a memory and includes the step of providing (110) respective mean feature vectors (30) for a number of classes; The method comprises the following steps, performed by a classifier (10) including at least one neural network (11) trained on training data (50): determining (120) a feature vector based on the sensor data; determining (130) a cosine similarity between said feature vector and each of said mean feature vectors (30) for said multiple classes; A step (131) of comparing each of the cosine similarities with a threshold value previously set for each class; and if the threshold is not met for all classes, detecting (133) a scenario not represented by the multiple classes; the classifier (10) further determines, in step (132), for each class, a Mahalanobis distance between a covariance matrix, the mean feature vector (30), and the feature vector determined for each class; the computer determines a criterion value for each class based on the Mahalanobis distance and the χ 2 distribution; The computer compares the reference value with a threshold value set for each class; If the threshold is not met for all classes, the computer implemented step (133) of detecting scenarios not represented by the multiple classes (100).

2. A computer-implemented method (100) for classifying sensor data, comprising: The method (100) is executed by a computer including a memory and includes the step of providing (110) respective mean feature vectors (30) for a number of classes; The method comprises the following steps, performed by a classifier (10) including at least one neural network (11) trained on training data (50): determining (120) a feature vector based on the sensor data; determining (130) a cosine similarity between said feature vector and each of said mean feature vectors (30) for said multiple classes; A step (131) of comparing each of the cosine similarities with a threshold value previously set for each class; and if the threshold is not met for all classes, detecting (133) a scenario not represented by the multiple classes; If thresholds are not met for all classes, then in the computer-implemented step (150), the detected scenario is labeled as unknown compared to the training data (50).

3. A computer-implemented method (100) for classifying sensor data, comprising: The method (100) is executed by a computer including a memory and includes the step of providing (110) respective mean feature vectors (30) for a number of classes; The method comprises the following steps, performed by a classifier (10) including at least one neural network (11) trained on training data (50): determining (120) a feature vector based on the sensor data; determining (130) a cosine similarity between said feature vector and each of said mean feature vectors (30) for said multiple classes; A step (131) of comparing each of the cosine similarities with a threshold value previously set for each class; and if the threshold is not met for all classes, detecting (133) a scenario not represented by the multiple classes; 10. The method (100), wherein if a threshold is not met for all classes, then in the computer-implemented step (151), a predefined minimum confidence level is assigned to the detected scenario.

4. 4. The method (100) of claim 2 or 3, characterized in that the classifier (10) further determines, in step (132), for each class, a Mahalanobis distance between a covariance matrix, the mean feature vector (30) and the feature vector determined for each class.

5. The Mahalanobis distance and χ 2 A reference value is determined for each class based on the distribution, The computer compares the reference value with a threshold value set for each class; 5. The method (100) of claim 4, wherein if the threshold is not met for all classes, the computer implemented step (133) comprises detecting scenarios not represented by the multiple classes.

6. A method (100) according to any one of claims 1 to 5, characterized in that it is executed by the computer and includes a step (152) of storing the sensor data as a complement to the training data (50).

7. A method (100) according to any one of claims 1 to 6, characterized in that the method is executed by the computer and comprises a step (101) of training the classifier (10) using the training data (50), the training data (50) comprising a first training sample (51) and a second training sample (52), the second training sample (52) being generated by a generative adversarial network (GAN; 20), the GAN comprising a generator (21) and a discriminator (22), and the first training sample (51) being based on recording of a scenario by a sensor.

8. A computer-implemented method (100) for classifying sensor data, comprising: The method (100) is executed by a computer including a memory and includes the step of providing (110) respective mean feature vectors (30) for a number of classes; The method comprises the following steps, performed by a classifier (10) including at least one neural network (11) trained on training data (50): determining (120) a feature vector based on the sensor data; determining (130) a cosine similarity between said feature vector and each of said mean feature vectors (30) for said multiple classes; A step (131) of comparing each of the cosine similarities with a threshold value previously set for each class; and if the threshold is not met for all classes, detecting (133) a scenario not represented by the multiple classes; The method, executed by the computer, further comprises a step (101) of training the classifier (10) using the training data (50), the training data (50) comprising a first training sample (51) and a second training sample (52), the second training sample (52) being generated by a generative adversarial network (GAN; 20), the GAN comprising a generator (21) and a classifier (22), the first training sample (51) being based on recording of a scenario by a sensor, 10. The method (100), characterized in that the step (101) of training the classifier (10) is performed based on a cross-entropy loss based on the first training samples (51) plus a Kullback-Leibler divergence based on the second training samples (52).

9. A computer-implemented method (100) for classifying sensor data, comprising: The method (100) is executed by a computer including a memory and includes the step of providing (110) respective mean feature vectors (30) for a number of classes; The method comprises the following steps, performed by a classifier (10) including at least one neural network (11) trained on training data (50): determining (120) a feature vector based on the sensor data; determining (130) a cosine similarity between said feature vector and each of said mean feature vectors (30) for said multiple classes; A step (131) of comparing each of the cosine similarities with a threshold value previously set for each class; and if the threshold is not met for all classes, detecting (133) a scenario not represented by the multiple classes; The method, executed by the computer, further comprises a step (101) of training the classifier (10) using the training data (50), the training data (50) comprising a first training sample (51) and a second training sample (52), the second training sample (52) being generated by a generative adversarial network (GAN; 20), the GAN comprising a generator (21) and a classifier (22), the first training sample (51) being based on recording of a scenario by a sensor, A method (100) executed by the computer, comprising a step (102) of training the GAN (20), i.e. the generator (21) and the discriminator (22), characterized in that the step (101) of training the classifier (10) and the step (102) of training the GAN (20) are performed together.

10. 10. The method (100) of claim 9, characterized in that the training of the generator (21) is performed based on a binary cross entropy loss based on the second training samples (52) plus a Kullback-Leibler divergence based on the second training samples (52).

11. A computer implemented step (111) comprising determining the mean feature vector (30) for each class; The training data (50) comprises a number of first training samples (51) for each class; The mean feature vectors (30) of a class are subjected to the following steps: determining (111a) a feature vector for each first training sample (51) of a class; - adding (111b) said feature vectors of all first training samples (51) of a class to obtain a further feature vector; and a step (111c) of dividing the summed feature vector by the number of the first training samples of the class.

12. A computer-implemented method (100) for classifying sensor data, comprising: The method (100) is executed by a computer including a memory and includes the step of providing (110) respective mean feature vectors (30) for a number of classes; The method comprises the following steps, performed by a classifier (10) including at least one neural network (11) trained on training data (50): determining (120) a feature vector based on the sensor data; determining (130) a cosine similarity between said feature vector and each of said mean feature vectors (30) for said multiple classes; A step (131) of comparing each of the cosine similarities with a threshold value previously set for each class; and if the threshold is not met for all classes, detecting (133) a scenario not represented by the multiple classes; The method, executed by the computer, further comprises a step (101) of training the classifier (10) using the training data (50), the training data (50) comprising a first training sample (51) and a second training sample (52), the second training sample (52) being generated by a generative adversarial network (GAN; 20), the GAN comprising a generator (21) and a classifier (22), the first training sample (51) being based on recording of a scenario by a sensor, In a computer implemented step (112), the threshold is determined for each class, and the class threshold is calculated by the following steps: determining (112a) the cosine similarity between the feature vector of each of the first training samples and the mean feature vector of the class; determining (112b) the average cosine similarity or the minimum cosine similarity of the first training samples of the class; and setting (112c) the average cosine similarity or the minimum cosine similarity as a threshold for the class.

13. An apparatus for classifying sensor data, comprising a computer and a classifier (10), and configured to perform the method (100) according to any one of claims 1 to 12.

14. A computer program product comprising a computer readable storage medium having a program stored thereon, said program being enabled to execute the method according to any one of claims 1 to 12 in cooperation with the apparatus according to claim 13 after said program has been loaded into the memory of a computer.

15. A computer-readable storage medium having stored thereon a program which, after being loaded into the memory of a computer, enables the computer to cooperate with the apparatus described in claim 13 to carry out a method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Multilevel Architecture for Pattern Recognition in Biometric Data

    JP2018530815A

  • Information processing device, information processing method, program, and robot

    WO2019146422A1

  • Method and device for classifying objects

    WO2020049154A1

  • Information processing device, information processing method, and program

    WO2020049667A1