# US 2020/0394472 A1 · Detecting adversarial samples by a vision based perception system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0394472 A1
- Document ID: US20200394472A1
- Status: Published application
- Kind: A1
- Application number: 16/440,973
- Filed: 2019-06-13
- Published: 2020-12-17
- Earliest claimed: 2019-06-13
- Assignees: Baidu USA LLC
- Applicants: Baidu USA LLC
- Inventors: Yunhan JIA; Zhenyu ZHONG; Yulong ZHANG; Tao WEI
- Web page: https://patentgrep.com/patent/US20200394472A1

## CPC

- G06V 20/56: exterior to a vehicle by using sensors mounted on the vehicle
- G05D 1/0088: {characterized by the autonomous decision making process, e.g. artificial intelligence, predefined behaviours (using knowledge based models G06N5/00)}
- G05D 1/0251: {extracting 3D information from a plurality of images taken from different locations, e.g. stereo vision (stereoscopic image analysis H04N13/00; depth recovery from images G06T7/593)}
- G06F 18/2193: {based on specific statistical tests}
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06F 18/241: relating to the classification model, e.g. parametric or non-parametric approaches
- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 20/20: in augmented reality scenes
- G06V 30/248: {involving plural approaches, e.g. verification by template match; Resolving confusion among similar patterns, e.g. "O" versus "Q" (G06V30/242 takes precedence)}
- G05D 1/0238: {using obstacle or wall sensors (G05D1/0246 and G05D1/0289 take precedence; lidar systems designed for anti-collision purposes G01S17/93)}
- G06V 2201/10: Recognition assisted with metadata
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G05D: SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In one embodiment, a system receives a first image captured by a capturing device of an ADV. The system applies an image transformation to the first image to generate a second image. The system applies an object detection model to the first and the second images to generate a first and a second output, respectively. The system calculates a similarity metric between the first and the second output. The system detects the first image as an adversarial sample if a temporal variation of the similarity metric between the first image and a prior image is above a threshold.

## Claims

### Claim 1

A computer-implemented method, comprising:
receiving a first image captured by a capturing device of an autonomous driving vehicle (ADV);
performing an image transformation to transform the first image to a second image;
applying an object detection model to the first image and the second image to generate a first output and a second output, respectively;
calculating a similarity metric between the first output and the second output; and
detecting that the first image as an adversarial sample if a temporal variation of the similarity metric between the first image and a prior image is above a predetermined threshold.

### Claim 2 (depends on 1)

The method of claim 1, wherein each of the first output and the second output includes a list of bounding boxes, the locations of the bounding boxes, and annotation of each class objects for the bounding boxes for the input image.

### Claim 3 (depends on 1)

The method of claim 1, wherein the image transformation includes a color depth reduction, an image compression, or a blurring transformation.

### Claim 4 (depends on 1)

The method of claim 1, wherein the similarity metric is calculated based on a distance between a plurality of inputs.

### Claim 5 (depends on 4)

The method of claim 4, wherein the distance includes differences in class prediction, number of bounding boxes, and overlapping regions of the bounding boxes.

### Claim 6 (depends on 1)

The method of claim 1, further comprising activating a failsafe mechanism for the ADV if an adversarial sample is detected.

### Claim 7 (depends on 6)

The method of claim 6, wherein the failsafe mechanism includes ignoring the adversarial sample or transferring control to a user of the ADV if the ADV is in self-driving mode.

### Claim 8

A non-transitory machine-readable medium having instructions stored therein, which when executed by a processor, cause the processor to perform operations, the operations comprising:
receiving a first image captured by a capturing device of an autonomous driving vehicle (ADV);
performing an image transformation to transform the first image to a second image;
applying an object detection model to the first image and the second image to generate a first output and a second output, respectively;
calculating a similarity metric between the first output and the second output; and
detecting that the first image as an adversarial sample if a temporal variation of the similarity metric between the first image and a prior image is above a predetermined threshold.

### Claim 9 (depends on 8)

The non-transitory machine-readable medium of claim 8, wherein each of the first output and the second output includes a list of bounding boxes, the locations of the bounding boxes, and annotation of each class objects for the bounding boxes for the input image.

### Claim 10 (depends on 8)

The non-transitory machine-readable medium of claim 8, wherein the image transformation includes a color depth reduction, an image compression, or a blurring transformation.

### Claim 11 (depends on 8)

The non-transitory machine-readable medium of claim 8, wherein the similarity metric is calculated based on a distance between a plurality of inputs.

### Claim 12 (depends on 11)

The non-transitory machine-readable medium of claim 11, wherein the distance includes differences in class prediction, number of bounding boxes, and overlapping regions of the bounding boxes.

### Claim 13 (depends on 8)

The non-transitory machine-readable medium of claim 8, wherein the operations further comprise activating a failsafe mechanism for the ADV if an adversarial sample is identified.

### Claim 14 (depends on 13)

The non-transitory machine-readable medium of claim 13, wherein the failsafe mechanism includes ignoring the adversarial sample or transferring control to a user of the ADV if the ADV is in self-driving mode.

### Claim 15

A data processing system, comprising:
a processor; and
a memory coupled to the processor to store instructions, which when executed by the processor, cause the processor to perform operations, the operations including receiving a first image captured by a capturing device of an autonomous driving vehicle (ADV),
performing an image transformation to transform the first image to a second image,
applying an object detection model to the first image and the second image to generate a first output and a second output, respectively,
calculating a similarity metric between the first output and the second output, and
detecting that the first image as an adversarial sample if a temporal variation of the similarity metric between the first image and a prior image is above a predetermined threshold.

### Claim 16 (depends on 15)

The system of claim 15, wherein each of the first output and the second output includes a list of bounding boxes, the locations of the bounding boxes, and annotation of each class objects for the bounding boxes for the input image.

### Claim 17 (depends on 15)

The system of claim 15, wherein the image transformation includes a color depth reduction, an image compression, or a blurring transformation.

### Claim 18 (depends on 15)

The system of claim 15, wherein the similarity metric is calculated based on a distance between a plurality of inputs.

### Claim 19 (depends on 18)

The system of claim 18, wherein the distance includes differences in class prediction, number of bounding boxes, and overlapping regions of the bounding boxes.

### Claim 20 (depends on 15)

The system of claim 15, wherein the operations further comprise activating a failsafe mechanism for the ADV if an adversarial sample is identified.

### Claim 21 (depends on 20)

The system of claim 20, wherein the failsafe mechanism includes ignoring the adversarial sample or transferring control to a user of the ADV if the ADV is in self-driving mode.
