# US 2024/0203095 A1 · Method, device, and computer program product for verifying classification result

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

- Number: US 2024/0203095 A1
- Document ID: US20240203095A1
- Status: Published application
- Kind: A1
- Application number: 18/105,924
- Filed: 2023-02-06
- Published: 2024-06-20
- Earliest claimed: 2022-12-14
- Assignees: Dell Products L.P.
- Applicants: Dell Products L.P.
- Inventors: Jinpeng Liu; Zijia Wang; Jiacheng Ni; Zhen Jia
- Web page: https://patentgrep.com/patent/US20240203095A1

## CPC

- G06V 10/764: using classification, e.g. of video objects
- G06V 10/44: Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/762: using clustering, e.g. of similar faces in social networks
- G06V 10/82: using neural networks
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Embodiments of the present disclosure relate to a method, a device, and a computer program product for verifying a classification result. The method comprises: obtaining a plurality of clusters for training samples by clustering feature representations of the training samples using labels of the training samples; determining, based on the plurality of clusters, a clustering class to which an input image belongs; acquiring a classification result of a classification model for the input image; and verifying the degree of reliability of the classification result for the input image based on the clustering class and the classification result. In this manner, the verification according to embodiments of the present disclosure not only easily combines domain-specific knowledge and improves the detection precision, but also saves computational overhead and storage resources, thus enabling the solution to be deployed in edge devices or Internet of Things devices with limited computational power.

## Claims

### Claim 1

A method for verifying a classification result, the method comprising:
obtaining a plurality of clusters for training samples by clustering feature representations of the training samples using labels of the training samples;
determining, based on the plurality of clusters, a clustering class to which an input image belongs;
acquiring a classification result of a classification model for the input image; and
verifying the degree of reliability of the classification result for the input image based on the clustering class and the classification result.

### Claim 2 (depends on 1)

The method according to claim 1, wherein determining the clustering class to which the input image belongs comprises:
calculating, for each cluster in the plurality of clusters, a sample mean value and a sample variance in the cluster; and
determining, based on the calculated sample mean value and sample variance, a cluster closest to the input image.

### Claim 3 (depends on 2)

The method according to claim 2, wherein determining the cluster closest to the input image comprises:
acquiring a feature representation of the input image;
determining a difference between the feature representation of the input image and a mean value of feature representations of training samples in each cluster in the plurality of clusters, and determining a quotient of the difference and a variance of the feature representations of the training samples in the corresponding cluster; and
determining a cluster corresponding to the minimum value of absolute values of the quotients as the cluster closest to the input image.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
generating the feature representations of the training samples, the feature representations of the training samples conforming to a Gaussian mixture distribution.

### Claim 5 (depends on 1)

The method according to claim 1, wherein verifying the degree of reliability of the classification result for the input image comprises:
comparing the clustering class with the classification result; and
identifying the input image as an adversarial example in response to the clustering class being different from the classification result.

### Claim 6 (depends on 5)

The method according to claim 5, further comprising:
setting an application to a safe mode in response to the input image being identified as the adversarial example; and
reporting an exception and recording the exception for use in analysis.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the feature representations of the training samples comprise embeddings of the training samples, and the method further comprises:
generating the embeddings of the training samples by a codec of a verification model, the codec being trained for a predetermined number of epochs.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the predetermined number of epochs is determined based on the degree of accuracy of an output of the codec meeting a predetermined threshold.

### Claim 9 (depends on 7)

The method according to claim 7, wherein the codec comprises a Gaussian mixture variational autoencoder (GMVAE) codec, the GMVAE codec performing dimensionality reduction on the training samples for use in generating the embeddings of the training samples conforming to a Gaussian mixture distribution.

### Claim 10

A device for verifying a classification result, comprising:
a processor; and
a memory coupled to the processor and storing instructions, wherein the instructions, when executed by the processor, cause the device to execute the following actions:
obtaining a plurality of clusters for training samples by clustering feature representations of the training samples using labels of the training samples;
determining, based on the plurality of clusters, a clustering class to which an input image belongs;
acquiring a classification result of a classification model for the input image; and
verifying the degree of reliability of the classification result for the input image based on the clustering class and the classification result.

### Claim 11 (depends on 10)

The device according to claim 10, wherein determining the clustering class to which the input image belongs comprises:
calculating, for each cluster in the plurality of clusters, a sample mean value and a sample variance in the cluster; and
determining, based on the calculated sample mean value and sample variance, a cluster closest to the input image.

### Claim 12 (depends on 11)

The device according to claim 11, wherein determining the cluster closest to the input image comprises:
acquiring a feature representation of the input image;
determining a difference between the feature representation of the input image and a mean value of feature representations of training samples in each cluster in the plurality of clusters, and determining a quotient of the difference and a variance of the feature representations of the training samples in the corresponding cluster; and
determining a cluster corresponding to the minimum value of absolute values of the quotients as the cluster closest to the input image.

### Claim 13 (depends on 10)

The device according to claim 10, wherein the actions further comprise:
generating the feature representations of the training samples, the feature representations of the training samples conforming to a Gaussian mixture distribution.

### Claim 14 (depends on 10)

The device according to claim 10, wherein verifying the degree of reliability of the classification result for the input image comprises:
comparing the clustering class with the classification result; and
identifying the input image as an adversarial example in response to the clustering class being different from the classification result.

### Claim 15 (depends on 14)

The device according to claim 14, wherein the actions further comprise:
setting an application to a safe mode in response to the input image being identified as the adversarial example; and
reporting an exception and recording the exception for use in analysis.

### Claim 16 (depends on 10)

The device according to claim 10, wherein the feature representations of the training samples comprise embeddings of the training samples, and the actions further comprise:
generating the embeddings of the training samples by a codec of a verification model, the codec being trained for a predetermined number of epochs.

### Claim 17 (depends on 16)

The device according to claim 16, wherein the predetermined number of epochs is determined based on the degree of accuracy of an output of the codec meeting a predetermined threshold.

### Claim 18 (depends on 16)

The device according to claim 16, wherein the codec comprises a Gaussian mixture variational autoencoder (GMVAE) codec, the GMVAE codec performing dimensionality reduction on the training samples for use in generating the embeddings of the training samples conforming to a Gaussian mixture distribution.

### Claim 19

A computer program product that is tangibly stored on a non-transitory computer-readable storage medium and comprises computer-executable instructions, wherein the computer-executable instructions, when executed by a computer, cause the computer to perform the following:
obtaining a plurality of clusters for training samples by clustering feature representations of the training samples using labels of the training samples;
determining, based on the plurality of clusters, a clustering class to which an input image belongs;
acquiring a classification result of a classification model for the input image; and
verifying the degree of reliability of the classification result for the input image based on the clustering class and the classification result.

### Claim 20 (depends on 19)

The computer program product according to claim 19, wherein determining the clustering class to which the input image belongs comprises:
calculating, for each cluster in the plurality of clusters, a sample mean value and a sample variance in the cluster; and
determining, based on the calculated sample mean value and sample variance, a cluster closest to the input image.
