Image classification method, neural network training method, and apparatus

US12314343B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12314343-B2
Application numberUS-202117538640-A
CountryUS
Kind codeB2
Filing dateNov 30, 2021
Priority dateMay 30, 2019
Publication dateMay 27, 2025
Grant dateMay 27, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

An image classification method, a neural network training method, and an apparatus are provided, and relate to the field of artificial intelligence, and specifically, to the field of computer vision. The image classification method includes: obtaining a to-be-processed image; and obtaining a classification result of the to-be-processed image based on a pre-trained neural network model, where the classification result includes a class or a superclass to which the to-be-processed image belongs. When the neural network model is trained, not only labels of a plurality of training images but also class hierarchy information of the plurality of training images is used. That is, more abundant information of the training images is used. Therefore, images can be better classified.

First claim

Opening claim text (preview).

What is claimed is: 1. An image classification method, comprising: obtaining a to-be-processed image; and classifying the to-be-processed image based on a preset neural network model, to obtain a classification result of the to-be-processed image, wherein the classification result comprises a class or a superclass to which the to-be-processed image belongs, wherein the neural network model is obtained by performing training based on a plurality of training images, a label of each training image of the plurality of training images, and class hierarchy information of the plurality of training images, wherein the class hierarchy information of the plurality of training images comprises at least one superclass to which each of a plurality of classes belongs, and the plurality of classes comprise one or more classes to which the plurality of training images belong, and wherein the at least one superclass to which each of the plurality of classes belongs is pre-labeled. 2. The method according to claim 1 , wherein the classifying the to-be-processed image based on the preset neural network model comprises: extracting a feature vector of the to-be-processed image; determining, based on the feature vector of the to-be-processed image, confidence that the to-be-processed image belongs to each of a plurality of candidate classes; and determining the classification result of the to-be-processed image from the plurality of candidate classes based on the confidence that the to-be-processed image belongs to each of the plurality of candidate classes. 3. The method according to claim 2 , wherein the determining the classification result of the to-be-processed image from the plurality of candidate classes based on the confidence that the to-be-processed image belongs to each of the plurality of candidate classes comprises: determining a first candidate class in the plurality of candidate classes as the classification result of the to-be-processed image, wherein the first candidate class is a class with highest confidence in the plurality of candidate classes. 4. The method according to claim 3 , wherein the method further comprises: determining a first candidate superclass in a plurality of candidate superclasses as the classification result of the to-be-processed image, wherein the confidence of the first candidate class is less than a first confidence threshold, and confidence of the first candidate superclass is greater than or equal to a second confidence threshold. 5. The method according to claim 1 , wherein the classifying the to-be-processed image based on the preset neural network model comprises: obtaining reference images of the to-be-processed image, wherein the reference images comprise a plurality of image classes, and the to-be-processed image belongs to one of the plurality of image classes; extracting a feature vector of the to-be-processed image and a feature vector of each image class in the plurality of image classes; determining, based on a difference between the feature vector of the to-be-processed image and the feature vector of each image class in the plurality of image classes, confidence that the to-be-processed image belongs to each image class in the plurality of image classes; and determining the classification result of the to-be-processed image from the plurality of image classes based on the confidence that the to-be-processed image belongs to each image class in the plurality of image classes. 6. A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable medium stores program code to be executed by a device, and the program code is used to perform the method according to claim 1 . 7. A chip, wherein the chip comprises a processor and a data interface, and the processor reads, through the data interface, instructions stored in a memory, to perform the method according to claim 1 . 8. An image classification method, comprising: obtaining a to-be-processed image; and classifying the to-be-processed image based on a preset first neural network model, to obtain a classification result of the to-be-processed image, wherein the classification result of the to-be-processed image comprises a class or a superclass to which the to-be-processed image belongs, wherein the first neural network model is obtained by performing training based on a plurality of first feature vectors, labels of a plurality of first training images, and semantic description information of the plurality of first training images, wherein the semantic description information of each first training image of the plurality of first training images is a semantic description of an image feature of the first training image; and wherein the plurality of first feature vectors are feature vectors obtained by performing feature extraction on the plurality of first training images by a second neural network model, wherein the second neural network model is obtained by performing training based on a plurality of second training images, a label of each of the plurality of second training images, and class hierarchy information of the plurality of second training images, and wherein the class hierarchy information of the plurality of second training images comprises one or more classes to which the plurality of second training images belong and at least one superclass to which each of the plurality of second training images belongs. 9. The method according to claim 8 , wherein the classifying the to-be-processed image based on the preset first neural network model comprises: extracting a feature vector of the to-be-processed image based on the second neural network model; processing the feature vector of the to-be-processed image based on the first neural network model, to obtain a semantic vector of the to-be-processed image; and comparing the semantic vector of the to-be-processed image with a candidate semantic vector, to obtain the classification result of the to-be-processed image. 10. A neural network training method, comprising: obtaining a plurality of training images; extracting image features of the plurality of training images based on a feature extraction network of a neural network; processing the image features of the plurality of training images based on a hierarchical prediction network of the neural network, to obtain classification results of the plurality of training images, wherein a classification result of each training image of the plurality of training images comprises a class and a superclass to which the training image belongs; and determining a parameter of a neural network model based on the classification results of the plurality of training images and labeled classes of the plurality of training images. 11. An image classification apparatus, comprising: a memory configured to store a program; and a processor configured to execute the program stored in the memory, wherein when the program stored in the memory is executed by the processor, the processor is configured to: obtain a to-be-processed image; and classify the to-be-processed image based on a preset neural network model, to obtain a classification result of the to-be-processed image, wherein the classification result comprises a class or a superclass to which the to-be-processed image belongs, wherein the neural network model is obtained by performing training based on a plurality of training images, a label of each training image of the plurality of training images, and class hierarchy information of the plurality of training images, wherein the class hierarchy information of the plurality of training images comprises at least one superclass to which each of a plurality

Assignees

Inventors

Classifications

  • Convolutional networks [CNN, ConvNet] · CPC title

  • Supervised learning · CPC title

  • Classification techniques · CPC title

  • G06N3/08Primary

    Learning methods · CPC title

  • structured as a network, e.g. client-server architectures · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12314343B2 cover?
An image classification method, a neural network training method, and an apparatus are provided, and relate to the field of artificial intelligence, and specifically, to the field of computer vision. The image classification method includes: obtaining a to-be-processed image; and obtaining a classification result of the to-be-processed image based on a pre-trained neural network model, where th…
Who is the assignee on this patent?
Huawei Tech Co Ltd, Univ Beijing
What technology area does this patent fall under?
Primary CPC classification G06N3/08. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue May 27 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 12 related publications on this page (citations in our corpus or others sharing the same primary CPC).