# US 2022/0284198 A1 · Facilitating communications with automated assistants in multiple languages

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

- Number: US 2022/0284198 A1
- Document ID: US20220284198A1
- Status: Published application
- Kind: A1
- Application number: 17/825,778
- Filed: 2022-05-26
- Published: 2022-09-08
- Earliest claimed: 2018-03-07
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: James Kuczmarski; Vibhor Jain; Amarnag Subramanya; Nimesh Ranjan; Melvin Jose Johnson Premkumar; Vladimir Vuskovic; Luna Dai; Daisuke Ikeda; Nihal Sandeep Balani; Jinna Lei; Mengmeng Niu; Hongjie Chai; Wangqing Yuan
- Web page: https://patentgrep.com/patent/US20220284198A1

## CPC

- G10L 15/1822: {Parsing for meaning understanding}
- G10L 15/183: using context dependencies, e.g. language models
- G06F 16/3329: Natural language query formulation
- G06F 16/3337: {Translation of the query language, e.g. Chinese to English}
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06F 40/47: Machine-assisted translation, e.g. using translation memory
- G06F 40/58: Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
- G06N 20/00: Machine learning
- G10L 15/005: {Language recognition}
- G10L 15/22: Procedures used during a speech recognition process, e.g. man-machine dialogue
- H04L 51/02: using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Techniques described herein relate to facilitating end-to-end multilingual communications with automated assistants. In various implementations, speech recognition output may be generated based on voice input in a first language. A first language intent may be identified based on the speech recognition output and fulfilled in order to generate a first natural language output candidate in the first language. At least part of the speech recognition output may be translated to a second language to generate an at least partial translation, which may then be used to identify a second language intent that is fulfilled to generate a second natural language output candidate in the second language. Scores may be determined for the first and second natural language output candidates, and based on the scores, a natural language output may be selected for presentation.

## Claims

### Claim 1

A method for generating training data for training a machine translation model to translate from a first language to a second language, the method implemented by one or more processors and comprising:
applying a multi-word textual query in the first language as input across a machine learning model to generate a first embedding of the textual query in a reduced dimensionality space;
identifying one or more additional embeddings in the reduced dimensionality space based on one or more respective proximities of the one or more additional embeddings to the first embedding in the reduced dimensionality space, wherein the one or more respective proximities are determined using cosine similarity or Euclidean distance, and the one or more additional embeddings were generated based on one or more respective multi-word textual queries in the second language; and
generating and storing at least one training example of the training data using the multi-word textual query in the first language and one of the multi-word textual queries in the second language that was used to generate a respective one of the additional embeddings.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving voice input provided by a user at an input component of a client device in the first language; and
performing speech recognition on the voice input to generate the textual query in the first language.

### Claim 3 (depends on 1)

The method of claim 1, further comprising training the machine translation model using the training data.

### Claim 4 (depends on 1)

The method of claim 1, wherein the machine translation model comprises a neural machine translation model.

### Claim 5 (depends on 1)

The method of claim 1, wherein the one or more additional embeddings comprise a plurality of embeddings, and the method further includes selecting the one of the textual queries in the second language from the plurality of embeddings.

### Claim 6 (depends on 5)

The method of claim 5, wherein the selecting is based on respective proximities of the plurality of embeddings to the first embedding in the reduced-dimensionality space.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
performing natural language understanding processing in the first language to identify a first language intent of the user based on the textual query in the first language;
translating the textual query in the first language to generate a translation of the textual query in the second language;
performing natural language understanding processing in the second language to identify a second language intent of the user based on the translation of the textual query in the second language;
comparing the first and second language intents; and
in response to determining, based on the comparing, that the first and second language intents match, generating and storing an additional training example of the training data using the textual query in the first language and the translation of the textual query in the second language.

### Claim 8 (depends on 7)

The method of claim 7, wherein the comparing includes comparing one or more arguments associated with the first language intent with one or more arguments associated with the second language intent.

### Claim 9 (depends on 7)

The method of claim 7, wherein the translating comprises using the one of the textual queries in the second language as the translation of the textual query in the second language.

### Claim 10 (depends on 7)

The method of claim 7, wherein the translating is performed using the machine translation model.

### Claim 11

A system for generating training data for training a machine translation model to translate from a first language to a second language, the system comprising one or more processors and memory storing instructions that, in response to execution of the instructions, cause the one or more processors to:
apply a multi-word textual query in the first language as input across a machine learning model to generate a first embedding of the textual query in a reduced dimensionality space;
identify one or more additional embeddings in the reduced dimensionality space based on one or more respective proximities of the one or more additional embeddings to the first embedding in the reduced dimensionality space, wherein the one or more respective proximities are determined using cosine similarity or Euclidean distance, and the one or more additional embeddings were generated based on one or more respective multi-word textual queries in the second language; and
generate and store at least one training example of the training data using the multi-word textual query in the first language and one of the multi-word textual queries in the second language that was used to generate a respective one of the additional embeddings.

### Claim 12 (depends on 11)

The system of claim 11, further comprising instructions to:
receive voice input provided by a user at an input component of a client device in the first language; and
perform speech recognition on the voice input to generate the textual query in the first language.

### Claim 13 (depends on 11)

The system of claim 11, further comprising instructions to train the machine translation model using the training data.

### Claim 14 (depends on 11)

The system of claim 11, wherein the machine translation model comprises a neural machine translation model.

### Claim 15 (depends on 11)

The system of claim 11, wherein the one or more additional embeddings comprise a plurality of embeddings, and the method further includes selecting the one of the textual queries in the second language from the plurality of embeddings.

### Claim 16 (depends on 11)

The system of claim 11, wherein the one of the textual queries in the second language are selected from the plurality of embeddings based on respective proximities of the plurality of embeddings to the first embedding in the reduced-dimensionality space.

### Claim 17

A non-transitory computer-readable medium for generating training data for training a machine translation model to translate from a first language to a second language, the medium comprising instructions that, in response to execution of the instructions by a processor, cause the processor to:
apply a multi-word textual query in the first language as input across a machine learning model to generate a first embedding of the textual query in a reduced dimensionality space;
identify one or more additional embeddings in the reduced dimensionality space based on one or more respective proximities of the one or more additional embeddings to the first embedding in the reduced dimensionality space, wherein the one or more respective proximities are determined using cosine similarity or Euclidean distance, and the one or more additional embeddings were generated based on one or more respective multi-word textual queries in the second language; and
generate and store at least one training example of the training data using the multi-word textual query in the first language and one of the multi-word textual queries in the second language that was used to generate a respective one of the additional embeddings.

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, further comprising instructions to:
receive voice input provided by a user at an input component of a client device in the first language; and
perform speech recognition on the voice input to generate the textual query in the first language.

### Claim 19 (depends on 17)

The non-transitory computer-readable medium of claim 17, further comprising instructions to train the machine translation model using the training data.

### Claim 20 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the machine translation model comprises a neural machine translation model.
