Apparatus and method for classifying images and accessing robustness of the classification - Patents.com

JP7557053B2Active Publication Date: 2024-09-26ROBERT BOSCH GMBH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023516709
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-09-15
Filing Date
2021-09-13
Publication Date
2024-09-26
Estimated Expiration
2041-09-13

Smart Images

  • Figure 0007557053000028
    Figure 0007557053000028
  • Figure 0007557053000029
    Figure 0007557053000029
  • Figure 0007557053000024
    Figure 0007557053000024
Patent Text Reader

Abstract

1. A computer-implemented method for determining an output signal (y) characterizing a first classification (c) of an input image (x) into one of a plurality of classes, the output signal (y) further characterizing a second classification (r) of robustness of the first classification (c) against attacks using adversarial patches, wherein determining the output signal (y) includes the steps of: determining a plurality of first score maps (M), each corresponding to one of the plurality of classes and having a plurality of region classifications, each region classification characterizing, for a region of a plurality of regions of the image, whether the region belongs to a class; determining a plurality of first class scores, each first class score of the plurality of first class scores corresponding to one of the plurality of classes and characterizing the classification into a class, determined by aggregating region classifications of the first score maps corresponding to a class; and applying adversarial patches to the input image to change the region classification of the first score map corresponding to the first class corresponding to the largest first class score. determining a second class score that is the minimum class score obtainable when the adversarial patch is applied to the input image (x) to change the region classification of the first score map of classes; determining a plurality of third class scores that each correspond to a class different from the first class and are the maximum class scores obtainable when the adversarial patch is applied to the input image (x) to change the region classification of the first score map of classes; if the second class scores are greater than or equal to all of the third class scores, an output signal (y) characterizing a first classification (c) of the input image based on the plurality of first class scores; and determining an output signal (y) such that the output signal (y) characterizes a second classification (r) for the first classification as robust to adversarial patches; and, if the second class score is less than at least one third class score, determining an output signal (y) such that the output signal (y) characterizes a first classification (c) of the input image based on the plurality of first class scores, and the output signal (y) characterizes a second classification (r) for the first classification as not robust to adversarial patches.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a method for classifying images, a method for operating an actuator, a computer program, a machine-readable storage medium, a classifier, and a training system. [Background technology]

[0002] Prior Art Wieland Brendel and Matthias Bethge, "Approximating CNNs with Bag-of-local-Features models works surprisingly well on ImageNet" (arXiv, 20.03.2019, https: / / arxiv.org / abs / 1904.00760v1), discloses an image classifier that classifies images based on image patches. [Prior art documents] [Non-patent literature]

[0003] [Non-Patent Document 1] Wieland Brendel, Matthias Bethge, “Approximating CNNs with Bag-of-local-Features models works surprisingly well on ImageNet” (arXiv, 20.03.2019, https: / / arxiv.org / abs / 1904.00760v1) Summary of the Invention [Problem to be solved by the invention]

[0004] Advantages of the invention Classifiers tend to misclassify maliciously altered input data, known as adversarial examples, which can be data that has been altered in a constrained domain of the data to form an adversarial example in a special format. For example, a given region of an image may be overlaid with another small image, fooling an image classifier that would otherwise be able to correctly classify the image.

[0005] Creating adversarial examples in this way is known as using adversarial patches or patch-based adversarial example threat models. Adversarial patches are of great importance to many real-world devices that use classifiers.

[0006] For example, an image classifier can be used to identify the location of pedestrians in an environment surrounding an at least partially autonomous vehicle to calculate a safe path for the vehicle through the environment without hitting any pedestrians. In this example, adversarial patches can be applied to parts of the environment or to at least one pedestrian itself to cause the image classifier to miss at least one pedestrian. This can cause the vehicle to determine a path that passes through the falsely detected pedestrian, which can further result in unsafe vehicle behavior.

[0007] Therefore, there is a need for protection of classifiers against adversarial patches.

[0008] An advantage of the method having the features of independent claim 1 is that, in addition to classifying the image, the method indicates whether the classification result is likely to be robust to modifications by adversarial patches. This improves classification performance, since it can clearly and reliably indicate when the classification may not be reliably secure with respect to the adversarial patches. Furthermore, the information can be used, for example, to control a device that uses the method to classify the area surrounding the device. For example, if a non-robust classification is detected, the operation of the device can be suspended or handed over to a human operator. [Means for solving the problem]

[0009] Disclosure of the Invention In a first aspect, the present invention provides a computer-implemented method for determining an output signal characterizing a first classification of an input image into one of a plurality of classes, the output signal further characterizing a second classification of robustness of the first classification against attacks with adversarial patches, The output signal is determined by determining a plurality of first score maps, each corresponding to one of the plurality of classes and having a plurality of region classifications, each region classification characterizing, for one of the plurality of regions of the image, whether the region belongs to a class or not; determining a plurality of first class scores, each of the plurality of first class scores corresponding to a class of the plurality of classes and determined by aggregating region classifications of the first score map corresponding to the class, the region classifications characterizing the classification into the class; determining a second class score, the second class score being the minimum class score obtainable when the adversarial patch is applied to the input image to change the classification of the regions of the first score map corresponding to the first class corresponding to the maximum first class score; determining a plurality of third class scores, each corresponding to a class different from the first class and being a maximum class score obtainable when the adversarial patch is applied to the input image to change the region classification of the first score map of classes; if the second class scores are greater than or equal to all of the third class scores, determining an output signal such that the output signal characterizes a first classification of the input image based on the plurality of first class scores, and the output signal characterizes a second classification for the first classification as being robust against adversarial patches; determining an output signal such that, if the second class score is less than the at least one third class score, the output signal characterizes a first classification of the input image based on the plurality of first class scores, and the output signal characterizes a second classification for the first classification as not robust to adversarial patches; The present invention relates to a method comprising the steps of:

[0010] The input image may for example be determined by a sensor, for example a camera sensor, a LiDAR sensor, a radar sensor, an ultrasonic sensor or a thermal camera. It is also conceivable that the input image is the result of applying a pre-processing step to another image, for example by cropping and / or scaling and / or rotating and / or color correcting another image. The input image may also be the result of a computer simulation, for example by rendering a virtual environment into the image. It is also conceivable that the input image is digitally rendered. Furthermore, it is also conceivable that the input image is a combination of several images, for example images from several different sensors.

[0011] The method may preferably be performed by an image classifier configured to receive an image of a predetermined type and to provide an output signal based on all the steps of the method.

[0012] The input image may also be overlaid with adversarial patches. The adversarial patches may have the form of physical adversarial patches, i.e. patches applied to the real world where the input image is recorded. This may be achieved, for example, by applying stickers to the object. Optionally, the input image may be overlaid with adversarial patches after it has been recorded. This may happen, for example, if an attacker gains access to the sensing device responsible for sensing the input image, and is able to manipulate the input image after it has been sensed by the sensing device.

[0013] In the context of the present invention, an adversarial patch can be understood as intended to flip the region classification of the score map corresponding to the correctly classified class of the input image, where flipping can be understood as changing the region classification of the score map relative to what it would have been if the adversarial patch had not been applied to the image. The goal of an attacker using an adversarial patch is to flip the region classification of the score map for the class that is desired to be predicted for the input image, thereby causing the image to be misclassified by making the aggregate class score of the score map lower than the other aggregate class scores.

[0014] Preferably, each score map from the plurality of first score maps is determined by a convolutional neural network. This is advantageous because the convolutional neural network is currently the best performing image classifier. Therefore, the score map can be understood as a set of classifications using the convolutional neural network to determine the score map, so that the score map with the highest accuracy can be obtained.

[0015] The score map can be understood as an assignment of region classifications for a number of regions to an image, where the score map corresponds to a class and each classification indicates either the regions that belong to that class or the regions that do not belong to that class. Preferably, the score map is given by a matrix of predefined height and width. Each element of the matrix can be understood as a region classification.

[0016] When the score map is determined from a convolutional neural network, each element of the matrix resulting from the convolutional neural network, i.e. each region classification, is associated with a predefined region of the input image. The region is also known as the receptive field of the respective element of the matrix. The region is preferably a small sub-portion of the input image. The size of the receptive field is controllable by the architecture of the convolutional neural network.

[0017] The score maps can be collapsed into a single class score, where the class score can be understood as the unnormalized probability of the class corresponding to the score map.

[0018] The score map depends on the input image and can be thought of as multiple classification scores for multiple regions to which adversarial patches can be applied.

[0019] Aggregation of the score map can be thought of as being achieved by determining a sum of region classifications in the score map that characterize the classification of the class to which the score map corresponds. Optionally, aggregation of the score map can be achieved by a neural network configured to accept the score map as an input and provide the class scores as an output, where the neural network includes only positive weights and non-decreasing activation functions.

[0020] For both methods of aggregation, the advantage is that the mathematical function underlying the aggregation is non-decreasing. A non-decreasing function can be understood as follows: assuming that the region classifications in the score map are given as 1 for classifications indicating that they belong to the class corresponding to the score map and as 0 for classifications indicating that they do not belong to this class, the aggregation function is

number

number

number

number

[0021] Surprisingly, the inventors have found that when this condition is met, i.e., when the aggregation function is non-decreasing, the score map of the class corresponding to the maximum class score among the plurality of first class scores cannot be flipped, and thus the class score obtained by aggregating the flipped score maps satisfies the following condition, i.e.,

number

number

[0022] This may be understood as determining how much the maximum first class score can be reduced by the adversarial patch while increasing other first class scores. If it is not possible to reduce the maximum first class score below the maximum increment of the other first class scores, then the adversarial patch cannot change the classification characterized by the output signal.

[0023] The condition can be evaluated without the decision to explicitly generate a new score map for each possible location of the adversarial patch, by associating each score map with a region of the image. When an adversarial patch is placed at a given location, the worst possible outcome is that all region classifications in the score map corresponding to the maximum first class score are flipped to characterize classifications that do not belong to the class of the score map when the region classification depends on the adversarial patch. For example, if the adversarial patch extends into a region of the input image, the adversarial patch may flip the region classification of the score map for that region. Moreover, the adversarial patch may flip only the region classifications that correspond to the region that is actually overlaid by the adversarial patch.

[0024] If a summation of the score maps is used to aggregate the score maps, then in the step of determining the second class score, it can be further envisaged that if an adversarial patch can change the region classification from the maximum first class score, then the second class score is determined by subtracting the maximum amount.

[0025] In this case, it may be envisaged that in the step of determining a plurality of third class scores, the third class score may be determined by adding to the first class score the maximum amount that the adversarial patch can change the region classification.

[0026] The advantage of this approach is that it does not need to explicitly calculate all possible positions of the adversarial patch. Rather, it determines the absolute amount of region classification that the adversarial patch can change and determines whether changing this amount is likely to cause a change in classification. Since the approach does not need to adjust the score map, it requires much less computation but can obtain results directly from the first class scores. In practice, this allows more images to be classified over a given time with the same amount of resources or energy.

[0027] If a neural network is used to aggregate the score map, the method for determining the output signal further includes training the neural network, and it may be further envisioned that training the neural network is accomplished by adversarial training.

[0028] For example, given a fixed convolutional neural network for determining a first score map from an input image, a neural network for aggregation can be trained by steps including the following steps: determining training images; Overlaying the training images with adversarial patches at randomly determined locations; determining a plurality of first score maps for the input image; aggregating the score map into multiple class scores using a neural network; determining a loss value characterizing a difference between the determined class scores and a plurality of desired class scores; determining a gradient of the loss value with respect to a plurality of parameters of the neural network; updating the parameters of the neural network based on the gradient; The training can be performed by the steps including:

[0029] As a loss function, margin loss

number

number

number

[0030] The parameters of the neural network may include at least a portion of the weights of the neural network, and / or at least a portion of the biases of the neural network, and / or regularization parameters used, for example, in a regularization layer.

[0031] Further, in the step of determining the second class score, the step of determining the second class score includes: determining a plurality of second score maps for classes corresponding to maximum first class scores, the second score maps being determined for each possible location of an adversarial patch in the input image, where a region classification is determined such that the adversarial patch does not characterize a class for each second score map if it extends into a region corresponding to the region classification; aggregating each second score map to determine a plurality of intermediate class scores; providing a minimum intermediate class score from the plurality of intermediate class scores as a second class score; It is possible to imagine that the

[0032] Further, in the step of determining a plurality of third class scores, the step of determining the third class scores may include: determining a plurality of second score maps for classes corresponding to the third class scores, a second score map for each possible location of an adversarial patch in the input image, where a region classification is determined to characterize a class for each second score map if the adversarial patch extends into a region corresponding to the region classification; aggregating each second score map to determine a plurality of intermediate class scores; providing a maximum intermediate class score from the plurality of intermediate class scores as a second class score; It is possible to imagine that the

[0033] The advantage of this approach is that the actual amount of region classifications that can be flipped is determined, and in this way, a tighter bound for determining the robustness of a classification can be determined, i.e., a first classification can be classified as robust even if the difference between the maximum first class score and all other first class scores is less than twice the maximum amount of region classifications that can be flipped by an adversarial patch.

[0034] It is further envisaged that the plurality of first score maps and / or the plurality of second score maps are determined by a convolutional neural network.

[0035] The advantage of using a convolutional neural network is that it is currently the image classifier with the highest accuracy for classifying images. Since obtaining a plurality of first score maps and / or a plurality of second score maps can be understood as image classification, using a convolutional neural network for such a task allows the highest classification accuracy.

[0036] Preferably, the convolutional neural network determines the first score map by determining an output of an output layer of the convolutional neural network for the input image (x) and applying a Heaviside function to this output.

[0037] Preferably, the method further comprises the step of training the convolutional neural network, the training step comprising: determining a plurality of first score maps for training images by providing the images to a convolutional neural network; determining a plurality of first class scores by aggregating a respective first score map from a plurality of previously determined score maps; Loss value

number

number

number

[0038] The parameters of the convolutional neural network may include at least a portion of the weights of the neural network, and / or at least a portion of the biases of the neural network, and / or a regularization parameter used, for example, in a batch norm layer.

[0039] Training a convolutional neural network in this manner can be understood as training the convolutional neural network to predict a score map that has the largest possible margin between the largest first class score and the second largest first class score during aggregation, and thus advantageously to be robust against attacks with adversarial patches.

[0040] The margin can be selected according to the maximum amount of region classifications that can be flipped by an adversarial patch. In this way, the convolutional neural network does not need to increase the maximum first class score once the adversarial patch passes a value that cannot be flipped by any means. This advantageously eases the learning problem and allows for faster training time. Thus, given the same amount of resources, i.e. the same amount of training time, the proposed approach performs better because it can train the convolutional neural network with more images.

[0041] Embodiments of the invention will now be described in more detail with reference to the following figures. [Brief description of the drawings]

[0042] [Figure 1] FIG. 2 illustrates an image classifier. [Diagram 2] FIG. 1 illustrates a control system including an image classifier that controls actuators in their environment. [Diagram 3] FIG. 1 illustrates a control system for controlling an at least partially autonomous robot. [Figure 4] FIG. 1 illustrates a control system for controlling an automated personal assistant. [Diagram 5] FIG. 1 illustrates a control system for controlling a medical analysis system. [Figure 6] FIG. 1 illustrates a training system for training an image classifier. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0043] Description of the embodiments Illustrated in FIG. 1 is one embodiment of an image classifier 60 that determines a first classification (c) of an input image (x) and a second classification (r) that characterizes the robustness of the first classification (c).

[0044] The image classifier (60) receives an input image (x) at a score map unit (61). The score map unit (61) is configured to determine a number of score maps (M) from the input image (x). Preferably, the score map unit (61) includes a convolutional neural network that takes the input image (x) as an input and provides a number of score maps (M). To this end, the neural network can be configured to provide a tensor that represents the number of score maps (M), where the tensor has a predefined height, width and depth. Each matrix of the tensor along the depth dimension can represent one score map of the number of score maps, where each dimension corresponds to a particular class. In other words, each matrix along the depth dimension of the tensor can represent a score map of a particular class. The tensor (M) includes a region classification (i.e., an element of the tensor (M)) that can be 0 or 1. 0 can indicate that the region classification characterizes the region as not belonging to the class corresponding to the score map to which the region classification belongs. Similarly, a 1 may indicate that the region classification characterizes the region as belonging to the class corresponding to the score map to which it belongs. In other words, tensor (M) may be a tensor of 0 and 1. In other embodiments, the binary classification may also be represented by two other values, for example as a binary variable (true or false). In yet other embodiments, tensor (M) may also include values ​​in the interval from 0 to 1 (inclusive), for example probability values.

[0045] Preferably, the receptive field of the output layer of the convolutional neural network that provides the tensor encompasses a small region of the input image (x). For example, the convolutional neural network may be selected such that the final layer has a receptive field of 9x9 pixels, 17x17 pixels, or 33x33 pixels within the input image (x).

[0046] Preferably, the convolutional neural network includes a Heaviside function as an activation function in the output layer that provides a tensor of score map (M). Thus, the tensor (M) contains only 0 and 1. In other embodiments, it can be envisaged that a different activation or no activation is used in the output layer and that the result of the output layer is compared to a predefined threshold to determine the tensor or score map (M).

[0047] The tensor (M) is then forwarded to a classification unit (63) that aggregates the score maps of the tensor (M). In an embodiment, the classification unit (63) performs the aggregation by summing the elements of each matrix along the depth of the tensor, i.e. by determining the sum of each score map in the tensor (M). The result is a number of first class scores (c). The first class scores (c) can be understood as characterizing the first classification of the input image (x). In another embodiment, instead of summing the score maps, a second convolutional neural network is considered to be used that takes the tensor (M) as input and provides a number of first class scores (c). In this other embodiment, the second convolutional neural network is configured to resemble a non-decreasing function. This means that the second convolutional neural network uses only non-decreasing functions as activation functions and includes only positive weights.

[0048] The tensor (M) is also forwarded to a robustness unit (62). The robustness unit (62) is configured to determine whether the classification characterized by the first class score (c) may change if the adversarial patch is applied to the input image (x). Here, applying the adversarial patch to the input image (x) may be understood as directly changing the input image (x) by overlaying the adversarial patch on the input image (x). Optionally, applying the adversarial patch to the input image (x) may also be understood as applying the adversarial patch to a scene in which the input image (x) is sensed.

[0049] The robustness unit (62) takes the tensor (M) as input and provides a robustness classification (r) of the plurality of first class scores (c). To this end, the robustness unit determines the maximum amount of region classification that an adversarial patch can change. In an embodiment, this is accomplished by determining the amount of score map region classification that an adversarial patch can change. Since each region classification depends on only one region of the input image (x), an adversarial patch can only change the region classification if it extends into or covers that region. Thus, the maximum amount of score map region classification that an adversarial patch can change is equal to the amount of area that an adversarial patch can cover or extend into in the input image (x). Upon obtaining the amount, the robustness unit (62) determines a second classification (r) that classifies the first classification as robust if the largest first class score of the plurality of first class scores (c) is greater than or equal to a sum of a second largest first class score of the plurality of first class scores (c) and is greater than or equal to twice the maximum amount. If the largest first class score of the plurality of first class scores (c) is less than a sum of a second largest first class score of the plurality of first class scores (c) and is less than twice the maximum amount, the second classification (r) is determined to characterize the first classification as not robust.

[0050] In this case, the plurality of first class scores (c) and the robustness classification (r) can be provided as an output signal (y) of the image classifier (60). In another embodiment, an optional transformation unit (64) of the image classifier (60) can process the first class scores (c) and / or the robustness classification (r) and output the result as the output signal (y). For example, instead of the plurality of class scores (c), it is conceivable that the class corresponding to the largest class score is provided in the output signal (y) together with the robustness classification (r). Alternatively, the transformation unit may provide the plurality of first class scores (c) or the class as the output signal (y) if the robustness classification (r) characterizes a robust classification. In this case, it may also be set so that the robustness classification (r) characterizes a non-robust classification and the output signal (y) does not characterize a conclusive classification result. This may be done, for example, in a manner in which the output signal (y) is set to characterize a rejected classification.

[0051] 2 shows an embodiment of an actuator (10) in an environment (20). The actuator (10) interacts with a control system (40). The actuator (10) and its environment (20) together are referred to as the actuator system. A sensor (30) senses the state of the actuator system, preferably at equally spaced time points. The sensor (30) may include multiple sensors. Preferably, the sensor (30) is an optical sensor imaging the environment (20). An output signal (S) of the sensor (30) (or the output signal (S) of each sensor, if the sensor (30) includes multiple sensors) encoding the sensed state is transmitted to the control system (40).

[0052] Thereby, the control system (40) receives a stream of sensor signals (S), where the control system calculates a set of actuator control commands (A) depending on the stream of sensor signals (S), which are then transmitted to the actuators (10).

[0053] The control system 40 receives a stream of sensor signals (S) of the sensor 30 at an optional receiving unit 50. The receiving unit 50 converts the sensor signals (S) into an input image (x). Alternatively, if the receiving unit 50 is not provided, each sensor signal (S) may be directly captured as an input image (x). The input image (x) may be provided, for example, as an excerpt of the sensor signals (S). Alternatively, the sensor signals (S) may be processed to form the input image (x). The input image (x) comprises image data corresponding to an image recorded by the sensor 30. In other words, the input image (x) is provided according to the sensor signals (S).

[0054] The input image (x) is then passed to an image classifier (60).

[0055] The image classifier (60) is parameterized by parameters (φ) provided and stored in a parameter store (St1).

[0056] The image classifier (60) determines an output signal (y) from an input image (x). The output signal (y) contains information for assigning one or more labels to the input image (x). The output signal (y) is sent to an optional transformation unit (80), which transforms the output signal (y) into control commands (A). The actuator control commands (A) are then sent to the actuator (10) for controlling the actuator (10) accordingly. Alternatively, the output signal (y) may be directly taken as the actuator control command (A).

[0057] The actuator (10) receives the actuator control command (A) and is controlled accordingly to perform an action corresponding to the actuator control command (A). The actuator (10) may have control logic that converts the actuator control command (A) into further control commands, which are used to control the actuator (10).

[0058] In other embodiments, the control system 40 may include the sensor 30. In yet other embodiments, the control system 40 may alternatively or additionally include the actuator 10.

[0059] In other embodiments, it can be envisaged that the control system 40 controls a display 10a instead of or in addition to the actuator 10. The display can, for example, display the classification characterised by the output signal y and / or whether the classification is robust.

[0060] Additionally, the control system (40) may include a processor (45) (or multiple processors) and at least one machine-readable storage medium (46) storing instructions that, when executed, cause the control system (40) to perform a method according to one aspect of the present invention.

[0061] FIG. 3 illustrates an embodiment in which the control system (40) is used to control an at least partially autonomous robot, such as an at least partially autonomous vehicle (100).

[0062] The sensors 30 may include one or more video sensors, one or more radar sensors, one or more ultrasonic sensors, one or more LiDAR sensors, and / or one or more location sensors (such as GPS). Some or all of these sensors are preferably, but not necessarily, on board the vehicle 100. Alternatively or additionally, the sensors 30 may include an information system for determining the state of the actuator system. One example of such an information system is a weather information system for determining current or future weather conditions in the environment 20.

[0063] The image classifier 60 may be configured to identify whether the vehicle is currently located in an urban environment, a suburban environment, or on a highway to determine whether the vehicle should be allowed to drive autonomously. For example, it may be assumed that the vehicle is only allowed to drive autonomously if it is located on a highway. Furthermore, in addition to classifying the environment as "on a highway," it may be assumed that autonomous driving is only enabled if the output signal y of the image classifier 60 indicates a robust classification, i.e., a classification that cannot be changed by an adversarial patch.

[0064] Preferably, the actuators (10) integrated in the vehicle (100) may be provided by the brakes, propulsion system, engine, drive train or steering of the vehicle 100. An actuator control command (A) may be determined to control the actuator (or actuators) (10) such that a collision between the vehicle (100) and the detected object is avoided. The detected object may be classified according to what the classifier (60) determines to be most likely, e.g. a pedestrian or a tree, and the actuator control command (A) may be determined depending on this classification.

[0065] In other embodiments, the at least partially autonomous robot may be provided by another mobile robot (not shown), capable of moving, for example, by flying, swimming, diving or walking. The mobile robot may in particular be an at least partially autonomous lawnmower or an at least partially autonomous cleaning robot. In all the above embodiments, an actuator command control (A) may be determined to control the propulsion unit and / or steering and / or brakes of the mobile robot such that a collision between the mobile robot and the identified object can be avoided.

[0066] 4 shows an embodiment in which the control system 40 is used to control an automated personal assistant 250. The sensor 30 can be, for example, an optical sensor that receives video images of the gestures of the user 249. Alternatively, the sensor 30 can be, for example, an acoustic sensor that receives voice commands of the user 249.

[0067] The control system (40) in this case determines an actuator control command (A) for controlling the automated personal assistant (250). The actuator control command (A) is determined according to a sensor signal (S) of the sensor (30). The sensor signal (S) is transmitted to the control system (40). For example, the image classifier (60) can be configured to perform gesture recognition, for example based on at least one image of the user (249). The control system (40) can then determine an actuator control command (A) for transmission to the automated personal assistant (250). The control system then transmits the actuator control command (A) to the automated personal assistant (250).

[0068] For example, the actuator control command (A) may be determined according to a user gesture recognized and identified by the image classifier (60) and may include information for causing the automated personal assistant (250) to retrieve information from a database and output the retrieved information in a form suitable for receipt by the user (249).

[0069] In other embodiments, it may be envisaged that the control system 40 controls not an automated personal assistant 250 but a home appliance (not shown) that is controlled according to the identified user gestures. The home appliance may be a washing machine, a stove, an oven, a microwave oven or a dishwasher.

[0070] 5 shows an embodiment of a medical analytical system (600) controlled by the control system (40). The medical analytical system (600) is provided with a microarray (601) that includes a plurality of spots (602, also known as features) exposed to a medical sample. The medical sample may be, for example, a human sample, or may be, for example, an animal sample obtained from a swab.

[0071] The microarray (601) may be a DNA microarray or a protein microarray.

[0072] The sensor 30 is configured to sense the microarray 601. The sensor 30 is preferably an optical sensor, such as a video sensor.

[0073] The image classifier (60) is configured to classify the sample result based on the input image (x) of the microarray provided by the sensor (30). In particular, the image classifier (60) may be configured to determine whether the microarray (601) indicates the presence of a virus in the sample.

[0074] In this case, the control signal (A) may be selected so that the display (10a) shows the result of the classification.

[0075] 6 illustrates one embodiment of a training system (140) for training an image classifier (60) of a control system (40) with a training data set (T). The training data set (T) includes a number of input images (x, y, z) used to train the classifier (60). i ), where the training dataset (T) further comprises: i ) for the input image (x i ) and the input image (x i ) i ).

[0076] For training, the training data unit (150) accesses a computer-implemented database (St2) that provides a training data set (T). The training data unit (150) selects at least one input image (x i ) and the input image (x i ) corresponding to the desired output signal (y i ) and the input image (x i ) to the image classifier (60). The image classifier (60) receives the input image (x i ) including at least a plurality of first class scores obtained for an input image (x i ) based on the output signal

number

[0077] The desired output signal (y i ) and the determined output signal

number

[0078] The desired output signal (y i ) and the determined output signal

number

number

number

number

number

number

[0079] In other embodiments, other loss functions may be used, particularly known loss functions for multi-class classification, such as multinomial cross entropy loss.

[0080] The modification unit (180) determines new parameters (Φ') based on the first loss value. In the given embodiment, this is done using a gradient descent method, preferably stochastic gradient descent, Adam or AdamW. If the image classifier (60) includes a Heaviside function, the gradient of the Heaviside function is replaced by the gradient of a sigmoid function.

[0081] In another preferred embodiment, the described training is repeated iteratively for a predetermined number of iteration steps or until the first loss value falls below a predetermined threshold. Alternatively or additionally, it is also conceivable that the training is terminated when the first average loss value for the test or validation data set falls below a predetermined threshold. In at least one of the iterations, the new parameters (Φ') determined in the previous iteration are used as the parameters (Φ) of the classifier 60.

[0082] In this embodiment, the parameters (Φ) of the image classifier (60) that are updated are trainable parameters of the convolutional neural network of the image classifier (60). In other embodiments, the image classifier (60) may include a second convolutional neural network, and the parameters of the second convolutional neural network may also be among the parameters of the image classifier (60) that are updated in addition to or instead of the parameters of the convolutional neural network.

[0083] Further, the training system (140) may include at least one processor (145) and at least one machine-readable storage medium (146) containing instructions that, when executed by the processor (145), cause the training system (140) to perform a training method according to one of the aspects of the present invention.

[0084] The term "computer" may be understood to encompass any device for processing predetermined computational rules, which may be in the form of software, hardware, or a mixture of software and hardware.

[0085] In general, the plurality may be understood to be by indexing, i.e., each element of the plurality of elements is assigned a unique index, preferably by assigning consecutive integers to the elements contained in the plurality of elements. Preferably, if the plurality of elements has N elements, where N is the number of elements in the plurality of elements, then these elements are assigned integers from 1 to N. It will be further understood that the plurality of elements may be accessed by such an index.

Claims

1. 1. A computer-implemented method for determining an output signal (y) characterizing a first classification (c) of an input image (x) into one of a plurality of classes, the output signal (y) further characterizing a second classification (r) of robustness of the first classification (c) against attacks with adversarial patches, The determination of the output signal (y) is - determining a plurality of first score maps (M), each corresponding to one of a plurality of classes and having a plurality of region classifications, each region classification characterizing, for one of a plurality of regions of the image, whether the region belongs to the class or not; - determining a plurality of first class scores, each of the plurality of first class scores being determined by aggregating a region classification of a first score map corresponding to a class of the plurality of classes and characterizing a classification into the class; determining a second class score that is the minimum class score obtainable when an adversarial patch is applied to the input image to change the region classification of the first score map corresponding to the first class corresponding to the maximum first class score; determining a number of third class scores, each corresponding to a class different from the first class and being a maximum class score obtainable when the adversarial patch is applied to the input image (x) to change the region classification of the first score map for the class; if the second class scores are greater than or equal to all of the third class scores, determining an output signal (y) such that the output signal (y) characterizes a first classification (c) of the input image based on the plurality of first class scores and the output signal (y) characterizes a second classification (r) for the first classification as being robust against the adversarial patches; - if the second class score is less than at least one of the third class scores, determining an output signal (y) such that the output signal (y) characterizes a first classification (c) of the input image based on the plurality of first class scores and the output signal (y) characterizes a second classification (r) for the first classification as not robust to the adversarial patches; A method comprising:

2. Aggregation of the score map is achieved by determining a sum of the region classifications that characterize the classification of the class to which the score map corresponds. The method of claim 1.

3. aggregating the score map is accomplished by a neural network configured to accept the score map as an input and provide class scores as an output; The neural network contains only positive weights and non-decreasing activation functions. The method of claim 2.

4. The method further comprises training the neural network; training the neural network is accomplished by adversarial training; The method according to claim 3.

5. In the step of determining the second class score, if the adversarial patch can change the region classification from the maximum first class score, then determining the second class score by subtracting the maximum amount. The method of claim 2.

6. In the step of determining the third class scores, the third class scores are determined by adding to the first class score a maximum amount that the adversarial patch can change the region classification. The method according to claim 2 or 5.

7. In the step of determining the second class score, the step of determining the second class score comprises: determining a plurality of second score maps for a class corresponding to the maximum first class score, wherein a second score map is determined for each possible location of an adversarial patch in the input image, and if the adversarial patch extends into a region corresponding to the region classification, then for each second score map a region classification is determined such that it does not characterize the class; aggregating each second score map to determine a plurality of intermediate class scores; providing a minimum intermediate class score from the plurality of intermediate class scores as a second class score; Including, 5. The method according to any one of claims 1 to 4.

8. In the step of determining the plurality of third class scores, the step of determining the third class scores comprises: determining a plurality of second score maps for classes corresponding to the third class scores, a second score map being determined for each possible location of an adversarial patch in the input image, and a region classification being determined for each second score map to characterize the class if the adversarial patch extends into a region corresponding to the region classification; aggregating each second score map to determine a plurality of intermediate class scores; providing a maximum intermediate class score from the plurality of intermediate class scores as a second class score; Including, 8. The method according to any one of claims 1 to 3 or claim 7.

9. the plurality of first score maps and / or the plurality of second score maps are determined by a convolutional neural network; 9. The method according to claim 7 or 8.

10. The convolutional neural network determines an output of an output layer of the convolutional neural network for the input image (x), and determines a first score map by applying a Heaviside function to the output.

10. The method of claim 9.

11. The method further includes training the convolutional neural network, the training step comprising: Training images (x) are generated by providing the images to the convolutional neural network. i determining a plurality of first score maps for - determining a plurality of first class scores by aggregating each first score map from a plurality of previously determined score maps; Loss value [0010] determining, where: [0025] is the cth class score of the plurality of first class scores, m is a value characterizing a predetermined margin, [0030] is the training image (x i ) the first class score of the desired class; determining gradients for a number of parameters of the convolutional neural network using backpropagation, where if the convolutional neural network includes a Heaviside function, the gradient of the Heaviside function is replaced by the gradient of a sigmoid function; - adjusting parameters of the convolutional neural network according to the gradient; Including, 11. The method according to claim 9 or 10.

12. Controlling a device (10, 10a) according to the output signal; 12. The method according to any one of claims 1 to 11.

13. 12. An image classifier (60) configured to determine an output signal (y) according to any one of claims 1 to 11, comprising a convolutional neural network according to claim 9 or 10 and an aggregation unit configured to determine an aggregation of score maps according to any one of claims 2 to 4.

14. A computer program, which when executed by a processor (45, 145), is arranged to cause the computer to carry out all the steps of the method according to any one of the claims 1 to 12.

15. A machine-readable storage medium (46, 146) having stored thereon the computer program of claim 14.

Citation Information

Patent Citations

  • Device and method to improve the robustness against "adversarial examples"

    EP3690760A1

  • Device, method, and computer program for discriminating movement

    JP2011200584A

  • Medical image processing device, medical image processing system, medical image processing method, and program

    WO2020012872A1

  • Semantic segmentation with soft cross-entropy loss

    WO2020099957A1