# US 11,120,268 B2 · Automatically evaluating caption quality of rich media using context learning

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

- Number: US 11,120,268 B2
- Document ID: US11120268B2
- Status: Granted
- Kind: B2
- Application number: 16/556,696
- Filed: 2019-08-30
- Published: 2021-03-04
- Granted: 2021-09-14
- Earliest claimed: 2019-08-30
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Vipin Gupta; Subhash Chandra Bose Gali
- Web page: https://patentgrep.com/patent/US11120268B2

## CPC

- G06F 40/30: Semantic analysis
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06F 40/289: Phrasal analysis, e.g. finite state techniques or chunking
- G06V 10/82: using neural networks
- G06V 20/35: {Categorising the entire scene, e.g. birthday party or wedding scene}
- G06V 20/635: {Overlay text, e.g. embedded captions in a TV programme}
- G06V 30/1916: {Validation; Performance evaluation}
- G06V 30/19173: {Classification techniques}
- G06V 30/10: Character recognition
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Technologies for evaluating, scoring, and determining whether to present a caption of an image are provided. The disclosed techniques include receiving an image with associated metadata. Contextual data is identified from the image and the metadata. A generated caption for the image is received from an image caption generator. A first vector representation is generated based on the contextual image data and a second vector representation is generated based on the generated caption. A machine learned model generates a score for the generated caption using the first vector representation and the second vector representation. The score represents a confidence value defining how accurately the caption describes the image. Based on the score, the caption may be presented along with the image on a client device.

## Claims

### Claim 1

A method comprising:
receiving an image with associated metadata;
identifying context data associated with the image based on the image and the associated metadata;
receiving a generated caption for the image;
generating a first vector representation based on the context data;
generating a second vector representation based on the generated caption;
inputting the first and second vector representations into a machine-learned model that outputs a score for the generated caption;
determining, based on the score, whether to present the generated caption;
wherein the method is performed by one or more computing devices.

### Claim 2 (depends on 1)

The method of claim 1, wherein the context data includes data objects for at least one of identified objects in the image, hashtags, associated image comments, image category, OCR text from the image, or an identified logo.

### Claim 3 (depends on 1)

The method of claim 1, wherein generating the first vector representation comprises:
generating two or more feature vectors based on different data object types within the context data; and
generating the first vector representation by concatenating the two or more feature vectors into the first vector representation.

### Claim 4 (depends on 1)

The method of claim 1, wherein the generated caption is a first candidate caption, further comprising:
receiving a second candidate caption for the image, wherein the second candidate caption is a second generated caption;
generating a third vector representation based on the second candidate caption;
inputting the first and third vector representations into the machine-learned model that outputs a second score for the second candidate caption; and
determining, based on the second score, whether to present the second candidate caption.

### Claim 5 (depends on 4)

The method of claim 4, wherein the first candidate caption was generated using a first caption generation technique and the second candidate caption was generated using a second caption generation technique.

### Claim 6 (depends on 1)

The method of claim 1, wherein the machine-learned model is trained using a training dataset of captioned images labeled as either appropriately captioned or inappropriately captioned based upon the score calculated by the machine-learned model.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
presenting the generated caption on a client device;
receiving feedback, from the client device, related to the generated caption; and
adjusting the score of the generated caption based on the feedback.

### Claim 8 (depends on 1)

The method of claim 1, wherein the generated caption is an automatically generated caption generated by an image caption generator.

### Claim 9 (depends on 1)

The method of claim 1, wherein the generated caption is a manually generated caption provided by a user.

### Claim 10 (depends on 1)

The method of claim 1, wherein determining whether to present the generated caption comprises:
determining whether the score is above a first quality threshold; and
in response to determining that the score is above the first quality threshold, presenting the generated caption on a client device.

### Claim 11 (depends on 1)

The method of claim 1, wherein determining whether to present the generated caption comprises:
determining whether the score is below a first quality threshold and above a second quality threshold;
in response to determining that the score is below the first quality threshold and above the second quality threshold, sending the generated caption and the image to a user for manual review;
receiving, from the user, feedback indicating that the generated caption accurately describes the image; and
in response to receiving the feedback, presenting the generated caption on a client device.

### Claim 12 (depends on 1)

The method of claim 1, wherein determining whether to present the generated caption comprises:
determining whether the score is below a particular quality threshold; and
in response to determining that the score is below the particular quality threshold, disassociating the generated caption from the image.

### Claim 13

A computer program product comprising:
one or more non-transitory computer-readable storage media comprising instructions which, when executed by one or more processors, cause:
receiving an image with associated metadata;
identifying context data associated with the image based on the image and the associated metadata;
receiving a generated caption for the image;
generating a first vector representation based on the context data;
generating a second vector representation based on the generated caption;
inputting the first and second vector representations into a machine-learned model that outputs a score for the generated caption;
determining, based on the score, whether to present the generated caption.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein the context data includes data objects for at least one of identified objects in the image, hashtags, associated image comments, image category, OCR text from the image, or an identified logo.

### Claim 15 (depends on 13)

The computer program product of claim 13, wherein generating the first vector representation comprises:
generating two or more feature vectors based on different data object types within the context data; and
generating the first vector representation by concatenating the two or more feature vectors into the first vector representation.

### Claim 16 (depends on 13)

The computer program product of claim 13, wherein the generated caption is a first candidate caption, and wherein the one or more non-transitory computer-readable storage media comprises further instructions which, when executed by the one or more processors, cause:
receiving a second candidate caption for the image, wherein the second candidate caption is a second generated caption;
generating a third vector representation based on the second candidate caption;
inputting the first and third vector representations into the machine-learned model that outputs a second score for the second candidate caption; and
determining, based on the second score, whether to present the second candidate caption.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the first candidate caption was generated using a first caption generation technique and the second candidate caption was generated using a second caption generation technique.

### Claim 18 (depends on 13)

The computer program product of claim 13, wherein the one or more non-transitory computer-readable storage media comprises further instructions which, when executed by the one or more processors, cause:
presenting the generated caption on a client device;
receiving feedback, from the client device, related to the generated caption; and
adjusting the score of the generated caption based on the feedback.

### Claim 19 (depends on 13)

The computer program product of claim 13, wherein the generated caption is an automatically generated caption generated by an image caption generator.

### Claim 20 (depends on 13)

The computer program product of claim 13, wherein the generated caption is a manually generated caption provided by a user.
