# US 11,120,334 B1 · Multimodal named entity recognition

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

- Number: US 11,120,334 B1
- Document ID: US11120334B1
- Status: Granted
- Kind: B1
- Application number: 16/125,615
- Filed: 2018-09-07
- Granted: 2021-09-14
- Earliest claimed: 2017-09-08
- Assignees: Snap Inc.
- Applicants: Snap Inc.
- Inventors: Vitor Rocha de Carvalho; Leonardo Ribas Machado das Neves; Seungwhan Moon
- Web page: https://patentgrep.com/patent/US11120334B1

## CPC

- H04L 51/10: Multimedia information
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06V 10/40: Extraction of image or video features
- G06V 10/82: using neural networks
- G06V 30/19147: {Obtaining sets of training patterns; Bootstrap methods, e.g. bagging or boosting}
- G06V 30/19173: {Classification techniques}
- H04L 51/52: for supporting social networking services
- H04L 67/125: involving control of end-device applications over a network
- H04L 67/52: specially adapted for the location of the user terminal
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06V 2201/10: Recognition assisted with metadata
- H04L 51/214: using selective forwarding
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A caption of a multimodal message (e.g., social media post) can be identified as a named entity using an entity recognition system. The entity recognition system can use an attention-based mechanism that emphasis or de-emphasizes each data type (e.g., image, word, character) in the multimodal message based on each datatypes relevance. The output of the attention mechanism can be used to update a recurrent network to identify one or more words in the caption as being a named entity.

## Claims

### Claim 1

A method comprising:
identifying a multimodal message comprising an image and a string, the string comprising one or more words;
generating, using an entity neural network, an indication that at least one of the one or more words is a named entity, the entity neural network comprising an attention neural network trained to increase emphasis on one of a plurality of embeddings based on relevance to the multimodal message, the plurality of embeddings comprising an image embedding from the image, and a word embedding and a character embedding that corresponds to the string in the multimodal message, the character embedding corresponding to characters of the one or more words, the one or more words of the multimodal message comprising an incorrectly spelled version of the named entity, and the attention neural network increases emphasis of the character embedding and decreases emphasis of the word embedding;
storing, using one or more processors of a machine, the named entity as being associated with the multimodal message;
identifying one or more items of user interface content using the named entity; and
publishing, on a network site, the multimodal message and the user interface content as an ephemeral message.

### Claim 2 (depends on 1)

The method of claim 1, wherein access to the ephemeral message through the network site expires after a period of time.

### Claim 3 (depends on 1)

The method of claim 1, wherein the attention neural network is trained on a plurality of multimodal messages, each multimodal message in the plurality of multimodal messages including a training caption and a training image.

### Claim 4 (depends on 3)

The method of claim 3, wherein the entity neural network is trained to process image embedding data in iterations, wherein sequential iterations correspond to sequential words in a training caption.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
generating, at each iteration, a combined embedding from the image embedding and the string embedding using the attention neural network.

### Claim 6 (depends on 5)

The method of claim 5, wherein the entity neural network comprises a classification neural network that processes the combined embedding generated at each iteration by the attention neural network.

### Claim 7 (depends on 6)

The method of claim 6, wherein the classification neural network comprises a bidirectional recurrent neural network.

### Claim 8 (depends on 7)

The method of claim 7, wherein the classification neural network comprises a conditional random field layer that receives data output by the bidirectional recurrent neural network at each iteration.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
generating the image embedding using a convolutional neural network.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
identifying a word embedding corresponding to the one or more words.

### Claim 11 (depends on 1)

The method of claim 1, wherein the string comprises one or more characters including one or more of: one or more punctuation marks, or one or more emojis.

### Claim 12

A system comprising:
one or more processors of a machine; and
a memory storing instructions that, when executed by the one or more processors, cause the machine to perform operations comprising:
identifying a multimodal message comprising an image and a string, the string comprising one or more words;
generating, using an entity neural network, an indication that at least one of the one or more words is a named entity, the entity neural network comprising an attention neural network trained to increase emphasis on one of a plurality of embeddings based on relevance to the multimodal message, the plurality of embeddings comprising an image embedding from the image, and a word embedding and a character embedding that corresponds to the string in the multimodal message, the character embedding corresponding to characters of the one or more words, the one or more words of the multimodal message comprising an incorrectly spelled version of the named entity, and the attention neural network increases emphasis of the character embedding and decreases emphasis of the word embedding;
storing the named entity as being associated with the multimodal message;
identifying one or more items of user interface content using the named entity;
publishing, on a network site, the multimodal message and the user interface content as an ephemeral message.

### Claim 13 (depends on 12)

The system of claim 12, wherein access to the ephemeral message through the network site expires after a period of time.

### Claim 14 (depends on 12)

The system of claim 12, wherein the attention neural network is trained on a plurality of multimodal messages, each multimodal message in the plurality of multimodal messages including a training caption and a training image.

### Claim 15 (depends on 14)

The system of claim 14, wherein the entity neural network is trained to process image embedding data in iterations, wherein sequential iterations correspond to sequential words in a training caption.

### Claim 16 (depends on 15)

The system of claim 15, the operations further comprising:
generating, at each iteration, a combined embedding from the image embedding and the string embedding using the attention neural network.

### Claim 17

A machine-readable storage device embodying instructions that, when executed by a machine, cause the machine to perform operations comprising:
identifying a multimodal message comprising an image and a string, the string comprising one or more words;
generating, using an entity neural network, an indication that at least one of the one or more words is a named entity, the entity neural network comprising an attention neural network trained to increase emphasis on one of a plurality of embeddings based on relevance to the multimodal message, the plurality of embeddings comprising an image embedding from the image, and a word embedding and a character embedding that corresponds to the string in the multimodal message, the character embedding corresponding to characters of the one or more words, the one or more words of the multimodal message comprising an incorrectly spelled version of the named entity, and the attention neural network increases emphasis of the character embedding and decreases emphasis of the word embedding;
storing the named entity as being associated with the multimodal message;
identifying one or more items of user interface content using the named entity;
publishing, on a network site, the multimodal message and the user interface content as an ephemeral message.
