Mitigating false positives and / or false negatives in hotword-free adaptation of automated assistants
By combining visual data and machine learning models, combined with personalized parameters, the problem of false positives and false negatives in automated assistant interaction is solved, hot word-free interaction and efficient resource management are achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202280089347.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-01-19
- Filing Date
- 2022-11-02
- Publication Date
- 2024-09-06
AI Technical Summary
Existing automated assistant interaction technology relies on hot word detection, which suffers from false positive and false negative problems, leading to waste of resources and poor user experience. In addition, the personalized parameter settings for the same user are insufficient and cannot effectively distinguish the interactive behaviors of different users.
By combining data captured by visual components to determine the user's gaze and mouth movements, a machine learning model is used to generate active speech measures, and personalized parameters are used to adjust the functionality of the automated assistant to reduce reliance on hot words and set personalities for different users. parameters to reduce false positives and false negatives.
It achieves interaction without hot words, reduces user input and resource consumption, improves interaction efficiency and user experience, and at the same time improves the accuracy of identifying different user behaviors through personalized parameters, reducing the frequency of false positives and false negatives.
Smart Images

Figure CN118613784A
Abstract
Description
Background Art
[0001] A human may engage in a human-computer dialogue with an interactive software application referred to herein as an "automated assistant" (also referred to as a "digital agent," "interactive personal assistant," "intelligent personal assistant," "assistant application," "conversational agent," etc.). For example, a human (who may be referred to as a "user" when they interact with an automated assistant) may provide commands and / or requests to the automated assistant using verbal natural language input (i.e., utterances), which in some cases may be converted to text and then processed. The automated assistant responds to the request by providing responsive user interface output, which may include audible and / or visual user interface output. The automated assistant may additionally and / or alternatively respond to the request by controlling other computing devices such as smart devices (e.g., smart lights, smart televisions).
[0002] As mentioned above, many automated assistants are configured to interact via spoken utterances. To preserve user privacy and / or conserve resources, the user typically must explicitly invoke the automated assistant, which then processes the spoken utterances entirely. The explicit invocation of the automated assistant typically occurs in response to receiving some kind of user interface input at a client device. The client device includes an assistant interface that provides an interface to a user of the client device for interfacing with the automated assistant (e.g., receiving input from the user, and providing audible and / or graphical responses), and interfaces with one or more additional components that implement the automated assistant (e.g., on-device components and / or remote server devices that process the user input and generate appropriate responses).
[0003] Some user interface inputs that have been used to invoke an automated assistant via a client device include hardware and / or virtual buttons at the client device for invoking the automated assistant (e.g., a tap on a hardware button, a selection of a graphical interface element displayed by the client device). Many automated assistants may additionally or alternatively be invoked in response to one or more verbal invocation phrases, also referred to as "hot words / phrases" or "trigger words / phrases." For example, a particular verbal invocation phrase such as "Hey Assistant," "OK Assistant," and / or "Assistant" may be uttered to invoke the automated assistant. Summary of the invention
[0004] Many client devices that facilitate interaction with automated assistants enable users to engage in touch-free interactions with automated assistants, and the client devices are also referred to herein as "assistant devices" (i.e., client devices that implement (at least in part) the automated assistant). For example, assistant devices typically include a microphone that allows a user to provide voice utterances to invoke the automated assistant and / or otherwise interact with the automated assistant. The assistant devices described herein may additionally or alternatively incorporate and / or communicate with one or more visual components (e.g., cameras, light detection and ranging (lidar) components, radar components, etc.) to facilitate touch-free interaction with the automated assistant.
[0005] Implementations disclosed herein relate to hotword-free adaptation of one or more functions of an automated assistant. Those implementations adapt the functions of the automated assistant without relying on the detection of hotwords. Instead, those implementations adapt the functions in response to determining, based at least on processing visual data captured by a visual component of an assistant device, that a condition indicating that a user captured in the visual data is intending to interact with the automated assistant via the assistant device. In various implementations, the adaptation of the functions may include initiating some automated assistant processing that was dormant before the adaptation. For example, the adapted functions may include initiating automatic speech recognition (ASR) (e.g., local ASR at the assistant device), natural language understanding (NLU) (e.g., NLU at the assistant device and / or remote server based on ASR results from local ASR), fulfillment based on ASR and / or NLU results (e.g., at the assistant device and / or remote server) and / or transmission of data to a remote server (e.g., transmission of ASR results, audio data, and / or visual data). In many implementations, determining whether the condition is met can be performed entirely locally on the assistant device.
[0006] In various implementations, automated assistant functionality may be adapted in response to determining, based on processing visual data (e.g., an image) and audio data captured by a client device, that a user's gaze is directed toward the client device and that the same user is actively speaking. Determining that the same user is actively speaking may be based on using the visual data to determine that the user's mouth (captured in the visual data) is moving in a manner indicative of speech. Determining that the same user is actively speaking may additionally or alternatively be based on processing the visual data together with the time-aligned audio data to determine that the movement of the same user's mouth is temporally correlated with the speech captured in the audio data. In some of those various implementations, functionality may be further adapted in response to determining that additional conditions are met, such as the same user being within a threshold distance of the assistant device and / or the same user being a registered user of the assistant device (e.g., by performing facial recognition on the image).
[0007] Thus, implementations disclosed herein enable initiating and / or directing a user's interaction with an automated assistant without requiring the user to begin such interaction by speaking a hotword. This enables reduced user input to be provided by the user (at least due to the omission of the hotword), which directly reduces the duration of the interaction and thereby saves various network resources and / or remote and / or local processing resources that would otherwise be utilized in a prolonged interaction. Furthermore, hotwords are often prescribed phrases that are awkward and unnatural to speak. Such awkwardness may increase the friction of the user-assistant interaction and / or further prolong the interaction.
[0008] Although the hotword-free adaptation of the automated assistant achieves various technical benefits, there are also disadvantages that may be caused by false positive occurrences in which it is incorrectly determined that the hotword-free adaptation is performed and / or false negative occurrences in which it is incorrectly determined that the hotword-free adaptation is not performed. The false positive occurrence may be caused by determining that the conditions indicating that the user intent captured in the visual data is satisfied to interact with the automated assistant of the assistant device when in fact the user does not intend to interact with the automated assistant. In the case of a false positive occurrence, the function is unnecessarily adapted, resulting in a waste of the use of assistant device resources, remote server resources, and / or network resources. The false negative occurrence may be caused by determining that such conditions are not met when in fact the user intends to interact with the automated assistant. In the case of a false negative occurrence, the user interaction with the automated assistant is prolonged, and the user may need to provide additional user input (e.g., say a hot word) to actually cause the adaptation of the assistant function. In addition, the false negative occurrence and the false positive occurrence may undermine the user's confidence in the hotword-free adaptation, thereby causing the user to choose to disable the hotword-free capability and prevent the realization of its technical benefits.
[0009] Implementations disclosed herein recognize that where the same parameters are utilized for each of multiple users to determine whether the corresponding user intends to interact with an automated assistant of an assistant device, false positives and / or false negatives may be exacerbated. As a working example, assume that determining that a user intends to interact with an automated assistant (and, in response, adaptation of functionality) depends at least on determining that the user's gaze is directed toward a client device and that the same user is actively speaking.
[0010] More particularly, and continuing with the working example, in determining the gaze direction of a user's client device, image frames that each capture at least the user's eyes can be processed to determine a gaze measure for each image frame indicating the direction of the gaze in that frame (e.g., an angle relative to the camera that captured the image). In addition, the direction of the gaze and, optionally, the distance of the user from the camera can be used to determine whether the gaze in the image is directed within a gaze area defined by a gaze area parameter. The gaze area covers the camera and the area around the camera. Determining that the user's gaze is directed to the client device can depend on determining that the gaze is directed within the gaze area for one or more image frames. For example, it can depend on determining that the gaze is directed within the gaze area for at least a certain amount of frames and / or for a certain duration as defined by a gaze persistence parameter. For example, the gaze persistence parameter can define that the gaze must be directed within the gaze area for at least 3 of 5 consecutive image frames processed in determining the gaze measure.
[0011] In addition, and continuing with the working example, in determining that the same user is actively speaking, a sequence of images that each captures at least the user's mouth can be processed together with a sequence of audio data frames that are aligned in time (e.g., using a trained machine learning model, such as a transformer or a recurrent neural network) to generate an active speech measure. The active speech measure reflects whether the image and audio data frames indicate that the movement of the mouth of the user (whose mouth is captured in the image) is temporally related to any speech included in the audio data. For example, the active speech measure can be a value from 0 to 1, where a larger value indicates a higher probability that the mouth movement is temporally related to the speech compared to a lower value. The active speech measure can be compared with an active speech threshold parameter to determine whether the user is actively speaking. Therefore, in the case of correctly selecting the active speech threshold parameter, when the image and audio data capture the user actively speaking, active speaking should be determined. However, when the image captures the user moving their mouth but not speaking (e.g., there is no speech in the audio data, or there is only speech from other users) and / or when the image fails to capture the user moving their mouth, active speaking should not be determined.
[0012] Still continuing with the working example, when the same gaze area parameter, gaze persistence parameter, and / or active voice threshold parameter are utilized for each of multiple users, false positive occurrences and / or false negative occurrences may be exacerbated. For example, assume a shared assistant device with a first user, a second user, and a third user in a home environment, the first user is a resident of the home, the second user is also a resident of the home, and the third user is also a resident of the home. The first user may typically gaze directly at the camera on top of the shared assistant device while participating in a verbal interaction with the shared assistant device, speak loudly, and move their mouth noticeably as they speak. The second user may typically gaze at the right edge of the shared assistant device while participating in a verbal interaction with the shared assistant device, speak softly, and move their mouth minimally as they speak. The third user may typically frequently switch between staring directly at the camera of the shared assistant device and staring outside the assistant device while participating in a verbal interaction with the shared assistant device, speak loudly, and move their mouth noticeably as they speak.
[0013] If the gaze area parameter, the gaze persistence parameter, and the active voice threshold parameter are each set restrictively and are the same for all users, false negatives may occur for the second user and the third user. For example, for the second user, the restrictive gaze area parameter may at least selectively cause their persistent gaze on the right edge of the shared assistant device to be determined as not being in the gaze area defined by the gaze area parameter. In addition, for the second user, their soft speaking and / or their minimal mouth movement may at least selectively cause an active voice measure that is less indicative of active voice than when the second user speaks louder and / or has more obvious mouth movement. Therefore, the restrictive active voice threshold may result in a determination that the second user is not actively speaking in many cases. As another example, for the third user, the restrictive gaze persistence parameter may cause the gaze to not be determined as being directed within the gaze area due to the third user frequently turning their gaze outside the assistant device.
[0014] If the gaze region parameter, the gaze persistence parameter, and the active speech threshold parameter are instead each set leniently (i.e., non-restrictively) and are the same for all users, then false negatives for the second and third users may be mitigated. However, setting the parameters leniently may result in an increase in false positives for at least the first user, which has disadvantages, such as those described above.
[0015] In view of these and other considerations, implementations disclosed herein also relate to various techniques for mitigating false positive occurrences and / or false negative occurrences by utilizing personalized parameters for at least some users of an assistant device. In those implementations, personalized parameters for a user are utilized to determine whether the user is engaging in a hotword-free interaction with the automated assistant. In other words, personalized parameters are utilized to determine whether conditions are met, where those conditions, if met, indicate that the user is engaging in a hotword-free interaction with the automated assistant and result in an adaptation of the functionality of the automated assistant.
[0016] As an example, and continuing with the above working example, for the second user, a personalized gaze area parameter that is more tolerant (e.g., defines a larger area) than the gaze area parameter used for the first user and / or the second user can be used (e.g., a default gaze area parameter can be used for the first user and / or the second user or an alternative personalized gaze area parameter can be used). As another example, and continuing with the working example, for the second user, a personalized active voice threshold parameter that is more tolerant (e.g., defines a lower threshold) than the voice threshold parameter used for the first user can be used in addition or alternatively (e.g., a default voice threshold parameter can be used for the first user or an alternative personalized voice threshold parameter can be used). As yet another example, and continuing with the working example, for the third user, a personalized gaze persistence parameter that is more tolerant (e.g., defines a smaller persistence) than the gaze persistence parameter used for the first user and / or the third user can be used. As another example, and continuing with the working example, for the first user, a personalized parameter that is more restrictive than the corresponding item parameter used for the second user and the third user and / or more restrictive than the default parameter can be used. In these and other ways, one or more parameters may be personalized on a per-user basis to mitigate the occurrence of false positives and / or false negatives.
[0017] In various implementations, personalized parameters for a user are automatically generated based on measures generated based on one or more previous interactions between the user and the automated assistant, the measures being. For example, previous interactions may include those previous interactions in which the user invoked the automated assistant by saying a hot word. Such previous interactions may be considered as true value interactions of the user's intention to interact with the automated assistant because a hot word for the assistant is detected to be spoken by the user. In addition, such previous interactions may be attributed to the account by verifying that the previous interaction corresponds to the user's account using, for example, text-related speaker verification (e.g., based on processing corresponding audio data of the spoken captured hot words from the interaction) and / or facial recognition (e.g., based on processing corresponding visual data from the interaction). Although the user invoked the automated assistant by saying a hot word in such a previous interaction, the visual data and / or audio data from such a previous interaction may still be processed to generate a gaze measure, a gaze persistence measure, an active voice measure, and / or other measures for the previous interaction.
[0018] In addition, the measures from previous interactions can be analyzed to determine whether the user needs personalized parameters to replace the default parameters and / or to generate personalized parameters for the user. As a specific example, assume that the default active voice threshold parameter is 0.8. In addition, assume that the generated active voice measures from previous interactions are: {0.81, 0.71, 0.73, 0.72, and 0.75}. In some implementations, it can be determined that a personalized active voice threshold parameter is needed in response to determining that at least a threshold percentage of the generated active voice measures is less than the default active voice threshold parameter. Additionally or alternatively, a personalized active voice threshold parameter can be generated based on one or more of the generated active voice measures. For example, the personalized active voice threshold parameter can be generated as 0.70 to cover all generated active voice measures, optionally ignoring any statistical outliers (e.g., if 0.25 is included in the generated active voice measure, it is ignored) and / or optionally taking into account the minimum allowed value. As another example, the personalized active voice threshold parameter can be generated so that two standard deviations of the generated active voice measure (or standard deviations of other quantities) are covered by the personalized active voice threshold. As yet another example, the personalized active voice threshold parameter can be generated as the median of the generated active voice measure or as 0.05 less than the median (or other value less than the median).
[0019] Additional and / or alternative personalized parameters can be generated for the user based on the measure of the previous interaction. In addition, some of the personalized parameters may be more restrictive than the default corresponding item parameters. In addition, when the generated measure of the previous interaction indicates that the default parameter is appropriate, some default parameters can be optionally utilized for the user. For example, when the default parameter will result in the participation being determined based on the generated measure of all previous interactions, the default parameter can be utilized. In addition, the additional and / or alternative previous interactions between the user and the automated assistant can be utilized to automatically generate personalized parameters for the user. For example, the previous interaction can additionally or alternatively include a login interaction, during which the user is instructed to look at the corresponding assistant device and speak the automated assistant command via an audible and / or visual user interface output. The login interaction can be during the login process, during which the user's account is being generated and / or the user's account is being configured for the hotword-free interaction technology described herein.
[0020] Personalized parameters for a user may be generated locally on an assistant device. In some implementations, the personalized parameters are specific to the assistant device, and personalized parameters for any other assistant devices may be generated locally on those assistant devices and may be different from personalized parameters specific to the assistant device. For example, personalized parameters for a given user of a first assistant device located in a kitchen may be generated locally on that first assistant device and may be different from personalized parameters for the same given user of a second assistant device located in a living room and generated locally on that second assistant device. In some of the implementations in which the personalized parameters for a user are specific to an assistant device, the personalized parameters may optionally be securely uploaded to a remote server for secure storage in association with the assistant device. Thereafter, if the assistant device loses the personalized parameters (e.g., due to a factory reset or update), the assistant device may retrieve the personalized parameters from the remote server and store them locally again and utilize the personalized parameters locally. For example, the assistant device may send a request to a remote server, the remote server may identify the personalized parameters based on the personalized parameters being stored in association with the assistant device transmitting the request (e.g., based on an identifier included in the request), and the remote server may return the identified personalized parameters in response to the request. In some other implementations, personalized parameters can be shared among assistant devices.
[0021] The personalized parameters for the user are stored in association with the user's account. In addition, the personalized parameters for the user can be used in response to determining that the processed visual data captures the user together with the measure generated based on processing the visual data and / or audio data and used to determine whether the user is participating in a hotword-free interaction with the automated assistant. For example, the processed visual data can include image frames that capture only the user or image frames that are crops of the original image frames, wherein the crops each capture only the user's face. One or more of the image frames can be processed to determine that the face captured in the image frame corresponds to the user's account. In response, the personalized parameters stored in association with the account can be used together with the measure generated based on processing those image frames and / or other image frames that capture only that face.
[0022] In some implementations, in determining that a face captured by an image frame corresponds to an account of a user, an image embedding is generated based on processing the image frame using a facial recognition machine learning model. Additionally, the image embedding is compared to a pre-stored facial embedding for the account or an embedding generated based on a pre-stored image of the user's face associated with the account. If the comparison indicates at least a threshold degree of similarity (e.g., a cosine distance or other distance measure between the embeddings satisfies a threshold), the face captured by the image can be determined to correspond to the account. For example, a pre-stored facial embedding can be generated, for example, based on an image of the user acquired during a login process for establishing an account.
[0023] As a specific example, assume that two users are in front of the assistant device, and assume that the original image frame captured by the assistant device captures the face of the first user and the face of the second user. The first image frame, each of which is a crop of the face of the first user from the original image frame, can be processed to generate a first measure for determining whether the first user is participating in a hotword-free interaction with the automated assistant. Separately, the second image frame, each of which is a crop of the face of the second user from the original image frame, can be processed to generate a second measure for determining whether the second user is participating in a hotword-free interaction with the automated assistant. In response to determining that the face captured by the first image frame corresponds to the first account of the first user, the personalized parameters (if any) stored in association with the first account can be used to determine whether the first user is participating in a hotword-free interaction with the automated assistant. In response to determining that the face captured by the second image frame corresponds to the second account of the second user, the personalized parameters (if any) stored in association with the second account can be used to determine whether the first user is participating in a hotword-free interaction with the automated assistant.
[0024] While specific examples of measures that may be generated and utilized to determine whether a user is engaging in a hotword-free interaction with an automated assistant are provided above, additional and / or alternative measures may be utilized to determine whether a user is engaging in a hotword-free interaction with an automated assistant. Furthermore, in some implementations, the personalized parameters may optionally additionally or alternatively include personalized parameters for use with those additional or alternative measures.
[0025] As a non-limiting example, a distance measure can be generated that predicts the distance of the user relative to the assistant device. For example, the distance measure can be generated based on processing an image frame (e.g., inferred from the size of the user's head in the image frame). Determining that the user is participating in a hotword-free interaction with the automated assistant can also depend on the distance measure satisfying a distance threshold parameter. Optionally, the personalized distance threshold parameter can be generated for the user using personalized distance threshold parameters and, for example, based on the generated distance measure from the user's previous interaction. As an additional non-limiting example, a posture measure can be generated that predicts the posture of the user's head and / or body relative to the assistant device. For example, a posture measure can be generated based on processing an image frame that captures the user's head and / or body. Determining that the user is participating in a hotword-free interaction with the automated assistant can also depend on the posture measure satisfying the posture threshold parameter. Optionally, the personalized posture threshold parameter can be generated for the user using personalized posture threshold parameters and, for example, based on the generated posture measure from the user's previous interaction.
[0026] As mentioned above, in some implementations, adaptation that occurs based on determining that a user is engaging in a hotword-free interaction with an automated assistant can include initiating some processing of certain sensor data (e.g., audio data, video, images, etc.) that was not previously performed (i.e., it was previously dormant). For example, prior to adaptation, the automated assistant may optionally minimally process the audio data locally (e.g., in monitoring the occurrence of voice activity, the occurrence of explicit invocation phrases, and / or in generating active voice measures) and / or may temporarily cache the audio data locally. Prior to adaptation, the automated assistant will "discard" the audio data after local processing and / or temporary caching, without causing the audio data to be processed by one or more additional components of the automated assistant. Such additional components may include, for example, local and / or remote ASR processors, local and / or remote NLU components, local and / or remote components that verify that spoken utterances contained in the audio data are intended for the automated assistant (also referred to herein as "semantic filtering") and / or are from a certain speaker (such as a speaker that matches a speaker visually identified based on facial recognition (also referred to herein as "text-independent speaker recognition / identification"). However, in response to determining that the user is engaging in a hotword-free interaction with the automated assistant, the adaptation may include causing the audio data to be processed by one or more of the additional components. In these and other ways, processing and / or network resources may be reduced by transmitting and / or performing certain processing on the audio data only in response to determining that certain conditions occur.
[0027] Moreover, for example, before adaptation, the automated assistant may optionally process visual data locally for only certain purposes, such as generating a measure described herein for determining whether a user is engaging in a hotword-free interaction with the automated assistant. Prior to such adaptation, the automated assistant may avoid certain processing of the visual data, such as avoiding transmitting any visual data to a remote automated assistant component and / or avoiding generating a response to any gesture of the user captured in such visual data. However, in response to determining that the user is engaging in a hotword-free interaction with the automated assistant, such further processing of the visual data may occur. In these and other ways, processing and / or network resources may be reduced by transmitting and / or performing certain processing of the visual data only in response to the occurrence of certain conditions.
[0028] As mentioned above, in many implementations, determining whether a user is participating in a hotword-free interaction with an automated assistant is performed entirely locally on the assistant device based on sensor data from a visual component (e.g., a camera) of the assistant device, a microphone of the assistant device, and / or other sensor components of the assistant device. Therefore, in those implementations, determining whether to adapt the automated assistant function can occur locally on the assistant device without transmitting any sensor data from the assistant device and / or other data from the assistant device to one or more remote automated assistant components over a network. Instead, such transmission may optionally be one of the automated assistant functions being adapted, and may occur only in response to a local determination to adapt such a function. In addition to maintaining the security of the sensor data and / or other local assistant device data by preventing the transmission of the sensor data and / or other local assistant device data before certain conditions are met, such implementations also save network resources and resources of remote devices by such local determinations. In addition, such implementations enable determinations to be made quickly without the increased latency that would otherwise exist due to client-server transmissions. Such reduced latency can similarly reduce the overall duration of user-assistant interactions.
[0029] More generally, the various implementations described herein can provide efficiencies in computing resources and communication networks used to implement automated assistants. For example, as will be apparent from the description herein, various aspects of the implementation can produce a more selective and / or user-adapted initiation of communications through a data network and a corresponding reduction in data traffic on the network. More selective initiation of network communications (e.g., from an assistant device) can also result in a more efficient use of computing resources at a remote system with which communications are initiated, because various potential communications from the assistant device are filtered out before initiating any contact with the remote system. The increased efficiency of the use of data networks and computing resources on remote systems can result in significant savings in terms of power usage of transmitters and receivers in the network and in terms of memory operations and processing usage at the remote system. Corresponding effects can also be experienced at the assistant device. These effects, particularly over time and with the continued operation of the automated assistant, allow significant additional capacity to be experienced in the network and throughout the computing device (including the device and system running the assistant). This additional capacity can be used for further communications in the data network (whether assistant-related or not) without expanding network capabilities, for example, through additional or updated infrastructure and additional computing operations in computing devices. Other technical improvements will be apparent from the description herein.
[0030] In some implementations, in generating one or more measures described herein, a trained machine learning model (e.g., a neural network model) stored locally on the assistant device is utilized by the assistant device to at least selectively process at least a portion of sensor data from a sensor component of a client device (e.g., image frames from a camera of the client device, audio data from a microphone of the device). For example, in response to detecting the presence of one or more users (e.g., via a presence sensor), the assistant device may utilize a locally stored machine learning model to process at least a portion of the visual data and / or audio data for at least a certain duration (e.g., for at least a threshold duration and / or until presence is no longer detected) to generate the measures described herein. The client device may detect the presence of one or more users using a dedicated presence sensor (e.g., a passive infrared sensor (PIR)), using visual data and a separate machine learning model (e.g., a separate machine learning model trained only for human presence detection), and / or using audio data and a separate machine learning model (e.g., a VAD using a VAD machine learning model).
[0031] In some implementations where local machine learning models are used to generate measures, different models may be utilized, each of which is used to generate a different subset of measures. In some versions of those implementations, one or more "upstream" models (e.g., object detection and classification models) may be utilized to detect portions of visual data that may be faces, eyes, mouths, etc. (e.g., images), and those portions may be processed using corresponding "downstream" machine learning models. For example, an upstream model may be used to detect face and / or eye portions of an image, and processed using a gaze machine learning model to determine a gaze measure. Also, for example, an upstream model may be used to detect face and / or mouth portions of an image, and processed using an active voice machine learning model to determine an active voice measure.
[0032] Some implementations disclosed herein include one or more computing devices, which include one or more processors, such as a central processing unit (CPU), a graphics processing unit (GPU), and / or a tensor processing unit (TPU). One or more of the processors are operable to execute instructions stored in an associated memory, and the instructions are configured to cause any of the methods described herein to be performed. The computing device may include, for example, an assistant device having a microphone, at least one display, a visual component, and / or other sensor components. Some implementations also include one or more non-transitory computer-readable storage media, which store computer instructions that can be executed by one or more processors to perform any of the methods described herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 is a block diagram of an example environment in which implementations disclosed herein may be implemented.
[0034] Figure 2 Depicted are example process flows demonstrating various aspects of the disclosure according to various implementations.
[0035] Figure 3 An example of an assistant device and a user is depicted, an image captured by a camera of the assistant device is depicted, and three separate example gaze regions are shown.
[0036] Figure 4 is a flow chart illustrating an example method of at least selectively generating personalized parameters for a user and assigning the personalized parameters to the user's account.
[0037] Figure 5A Depicted are example default parameters, example generated measures from a first user's previous interactions with an automated assistant, and example personalized parameters that may be generated for the first user based on the generated measures.
[0038] Figure 5B Depicted are example generated measures from a second user's previous interactions with an automated assistant and example personalized parameters that may be generated for the second user based on the generated measures.
[0039] Figure 6 is a flow chart illustrating an example method of utilizing personalized parameters to determine whether a user is engaging in a hotword-free interaction with an automated assistant.
[0040] Fig. 6A Depicted is a diagram showing execution Figure 6 A flowchart of an example of all or aspects of blocks 610 and 612 of FIG.
[0041] Figure 6B Depicted is a diagram showing execution Figure 6 A flowchart of another example of all or aspects of blocks 610 and 612 of FIG.
[0042] Figure 7 An example architecture for a computing device is shown. DETAILED DESCRIPTION
[0043] Figure 1An example environment is shown in which the techniques disclosed herein may be implemented. The example environment includes a client device 101 that selectively executes at least an automated assistant client 110. The term "assistant device" is also used herein to refer to a client device 101 that selectively executes at least an automated assistant client 110. One or more cloud-based automated assistant components 130 may be implemented on one or more computing systems (collectively referred to as "cloud" computing systems) that are communicatively coupled to the client device 101 via one or more local area networks and / or wide area networks (e.g., the Internet) indicated generally at 100. The cloud-based automated assistant components 130 may be implemented, for example, via a cluster of high-performance servers.
[0044] In various implementations, an instance of automated assistant client 110, through its interaction with one or more cloud-based automated assistant components 130, may form what appears to be a logical instance of automated assistant 120 from the user's perspective, with which the user may engage in human-computer interaction (e.g., verbal interaction, gesture-based interaction, and / or touch-based interaction). Figure 1 101. Thus, it should be understood that each user interacting with an automated assistant client 110 executing on a client device 101 may actually be interacting with his or her own logical instance of the automated assistant 120. For the sake of brevity and simplicity, the term "automated assistant" as used herein to "serve" a particular user will refer to the combination of the automated assistant client 110 executing on a client device 101 operated by the user and optionally one or more cloud-based automated assistant components 130 (which may be shared among multiple automated assistant clients 110). It should also be understood that in some implementations, the automated assistant 120 may respond to certain requests from any user, regardless of whether the user is actually "served" by that particular instance of the automated assistant 120.
[0045] Client device 101 may be, for example, a desktop computing device, a laptop computing device, a tablet computing device, a mobile phone computing device, a computing device of a user's vehicle (e.g., an in-vehicle communication system, an in-vehicle entertainment system, an in-vehicle navigation system), a stand-alone interactive speaker (which may include a visual sensor in some cases), a smart appliance such as a smart television (or a standard television equipped with a networked dongle with automated assistant functionality), and / or a user's wearable device including a computing device (e.g., a user's watch with a computing device, a user's glasses with a computing device, a virtual or augmented reality computing device). Additional and / or alternative client computing devices may be provided. As previously noted, client device 101 may optionally take the form of an assistant device that is primarily designed to facilitate interaction between a user and automated assistant 120 (e.g., a stand-alone interactive device with a speaker, a microphone, a camera (and / or other visual components), and a display).
[0046] The client device 101 may be equipped with one or more visual components 107 having one or more fields of view. The visual component 107 may take various forms, such as a monocular camera, a stereo camera, a lidar component, a radar component, etc. The one or more visual components 107 may be used, for example, by a visual capture module 114 to capture visual frames (e.g., image frames (still images or videos)) of the environment in which the client device 101 is deployed. The client device 101 may also be equipped with one or more microphones 109. The voice capture module 112 may be configured to capture user voice and / or other audio data captured via the microphone 109.
[0047] The adaptation engine 115 processes the visual data captured by the visual capture module 114 and / or the audio data captured by the voice capture module 112 to generate one or more measures described herein. In addition, the adaptation engine 115 determines whether the user is engaging in a hotword-free interaction with the automated assistant 120 based on the generated measures, and if so, causes adaptation of processing performed by the automated assistant 120 (such as processing performed by the automated assistant client 110 and / or by the cloud-based automated assistant component 130). Such adaptation may include, for example, adaptation of sensor data processing performed by the client device 101 (e.g., by one or more components of the automated assistant client 110) and / or by one or more cloud-based automated assistant components 130. For example, the adaptation may include initiating certain sensor data processing that was dormant prior to the adaptation. The adaptation engine 115 also at least selectively utilizes one or more personalized parameters for the user as determined by the personalization engine 1156 (described in more detail herein) in determining whether the user is engaging in a hotword-free interaction with the automated assistant based on the generated measures.
[0048] The client device 101 may also include one or more presence sensors 105 and / or one or more displays 103 (e.g., touch-sensitive displays). In various implementations, the display 103 may be one of the user interface output components through which the user interface output is rendered. The display 103 may also be one of the user interface output components through which the visual portion of the response of the automated assistant client 110 is rendered. The presence sensor 105 may include, for example, a PIR and / or other passive presence sensors. In various implementations, one or more components and / or functions of the automated assistant client 110 may be initiated in response to detecting human presence based on the output from the presence sensor 105. For example, the visual capture module 114 and / or the voice capture module 112 may be activated only in response to detecting human presence, and may optionally be deactivated in response to no longer detecting human presence. Moreover, for example, the visual component 107 and / or the microphone 109 may be activated only in response to detecting human presence, and may optionally be deactivated in response to no longer detecting human presence. As another example, one or more (eg, all) modules of the adaptation engine 115 may be activated only in response to detecting human presence, and may optionally be deactivated in response to no longer detecting human presence.
[0049] exist Figure 1 , the adaptation engine 115 includes a gaze module 1151 , a distance module 1152 , a mouth / voice module 1153 , a facial recognition module 1154 , one or more other modules 1155 , and a personalization module 1156 .
[0050] Adaptation engine 115 utilizes data from one or more of modules 1151-1156 to determine whether to adapt one or more aspects of automated assistant 120. For example, adaptation engine 115 may require that certain conditions be satisfied before initiating transmission of certain data (e.g., audio data detected at client device 101, text recognized locally at client device 101 from the audio data, and / or NLU data derived locally at client device 101 from the recognized text) to cloud-based automated assistant component 130 and / or before performing certain local processing (e.g., local ASR processing of the audio data and / or local NLU processing based on local ASR results). For example, a condition may include a gaze measure generated by gaze module 1151 indicating that the user's gaze is directed toward assistant device 101 and / or is persistently directed toward assistant device 101 (e.g., for at least X duration and / or within Y of Z analyzed image frames). In various implementations, the adaptation engine 115 may use personalized gaze parameters determined for the user by the personalization module 1156 in determining whether the gaze measure indicates that the user's gaze is directed at the assistant device 101. Moreover, for example, the condition may additionally include an active voice measure generated by the mouth / voice module 1153 indicating that the same user (whose gaze is determined to be directed at the assistant device 101) is actively speaking. In various implementations, the adaptation engine 115 may use personalized active voice parameters determined for the user by the personalization module 1156 in determining whether the active voice measure indicates whether the user is actively speaking. The condition may additionally or alternatively include a distance measure generated by the distance module 1152 indicating that the same user is within a threshold distance of the assistant device. In various implementations, the adaptation engine 115 may use personalized distance parameters determined for the user by the personalization module 1156 in determining whether the distance measure indicates whether the user is within the threshold distance. The condition may additionally or alternatively include data provided by the facial recognition module 1154 indicating that the same user is a registered user of the assistant device 101 (e.g., has an account stored on and / or associated with the assistant device 101).
[0051] The gaze module 1151 processes the visual data from the visual capture module 114 using one or more gaze models 1161 to generate a gaze measure that indicates whether the user's gaze is directed toward the client device 101. As described herein, in some implementations, the gaze module 1151 may process only human and / or facial regions of the visual data based on detection of those regions by an upstream module (which may be one of the other modules 1155) using an upstream detection and classification model (which may be one of the other models 1165 utilized by the other modules 1155).
[0052] In some implementations, the gaze module 1151 generates a gaze measure indicating the direction of the gaze in that frame for each processed frame of visual data (e.g., an image frame that is each a crop of a corresponding user's face or eye). For example, each gaze measure can be a corresponding angle relative to the visual component of the frame that captures the visual data. In some implementations, the adaptation engine 115 uses the direction indicated by the gaze measure and, optionally, the distance of the user from the client device 101 (e.g., as determined by the distance module 1152) to determine whether the gaze in the frame is directed within the gaze area defined by the gaze area parameters. The gaze area parameters can be default gaze area parameters or can be gaze area parameters personalized for the user whose eyes are captured in the frame. For example, based on the personalized gaze parameters being associated with a particular account and the facial recognition module 1154 indicating that the frame captures a user corresponding to the particular account, the personalized gaze parameters can be provided by the personalization module 1156 and provided for use in conjunction with the frame.
[0053] In some implementations, the gaze module 1151 additionally or alternatively generates a gaze measure indicating the probability (e.g., a value from 0 to 1) of whether the frame includes a directional gaze for each processed frame of the visual data. In such implementations, the gaze model 1161 utilized may be a model trained based on a training sample, the training sample including a visual frame (e.g., an image) as a training sample input and an indication of whether the image includes a directional gaze as a training sample output. For example, the training sample output may be a single value indicating whether there is a directional gaze. For example, when there is no directional gaze, the single value may be "0", and when there is a gaze that is directly pointed at or within 5 degrees (or other ranges, which may depend on the size of the display 103), the single value may be "1". In some of those implementations, the adaptation engine 115 determines whether there is a directional gaze based on comparing the probability with a gaze measure threshold. The gaze measure threshold may be a default gaze measure threshold parameter or may be a gaze measure threshold personalized for the user whose eyes are captured in the frame. For example, based on the personalized gaze measure threshold parameters being associated with a particular account and the facial recognition module 1154 indicating that the frame captures a user corresponding to the particular account, the personalized gaze threshold parameters may be provided by the personalization module 1156 and provided for use in conjunction with the frame.
[0054] In various implementations, the adaptation engine 115 determines that a user's gaze is directed toward the client device 101 only when a gaze measure for that user indicates a gaze (e.g., the gaze direction is within the gaze region of the gaze region parameter or the gaze measure satisfies a gaze measure threshold) for at least a certain amount of image frames and / or for a certain duration as defined by a gaze persistence parameter. For example, the gaze persistence parameter may define that the gaze must be directed within the gaze region for at least 65% (or other threshold percentage) of consecutive image frames processed in determining the gaze measure. The gaze persistence parameter may be a default gaze persistence parameter or may be a gaze persistence parameter personalized for the user whose eyes are captured in the frame.
[0055] The mouth / voice module 1153 uses one or more mouth / voice machine learning models 1163 to generate an active speech measure that indicates whether the user's mouth is moving and / or whether there is concurrent mouth movement and voice activity for the user. As described herein, in some implementations, the mouth / voice module 1153 can process only those regions of the visual data based on detection of human and / or facial regions by upstream modules using upstream detection and classification models.
[0056] In some implementations, the mouth / voice module 1153 generates only an active voice measure (e.g., one or more probabilities) indicating whether the user's mouth is moving. In some implementations, the mouth / voice module 1153 additionally or alternatively generates an active voice measure indicating whether there is a concurrence of mouth movement and voice activity (e.g., whether there is a mouth movement that is temporally aligned with the spoken output captured in the audio data). In some of those implementations, the mouth / voice machine learning model 1163 utilized can be, for example, a neural network model, such as a transformer model or an RNN model including one or more memory layers. For example, the machine learning model can be a model trained to process visual data from the visual capture module 114 (e.g., visual data including a facial region of the user) and audio data from the voice capture module 112 to generate an active voice measure, which is a probability (confidence measure) of whether the user captured in the visual data is actively speaking.
[0057] Training of such a machine learning model can be based on training examples that include a sequence of visual frames (e.g., a sequence of images that only include a user's facial region) and a sequence of audio data frames as training example inputs. The sequence of audio data frames can overlap in time with the sequence of visual frames, but the sequence of visual frames can optionally have a different duration (e.g., a shorter duration) than the sequence of audio data frames. The training examples can also include as training example outputs an indication of whether the sequence includes mouth movement combined with voice activity from a moving mouth. In other words, an indication of whether the user whose face is captured by the sequence of images is speaking. For example, the training example output can be a single value indicating whether the user whose face is captured by the sequence of images is speaking. For example, if not, the single value can be "0", and if yes, the single value can be "1". It should be noted that such a model trained on both visual data and overlapping audio data can distinguish: (1) voice activity that is concurrent with and a result of mouth movement; and (2) voice activity that is not from mouth movement but happens to be concurrent with non-speaking mouth movement. For example, training examples may include those having training example inputs including non-speaking mouth movements in visual data, and voice activity in audio data (e.g., from another user, from a television, and / or from other sources), and including training example outputs indicating that the user whose face was captured by the sequence of images is not speaking.
[0058] The adaptation engine 115 determines whether active speech is present based on comparing the active speech measure to an active speech measure threshold. The active speech measure threshold may be a default active speech measure threshold parameter or may be an active speech measure threshold personalized for the user whose mouth or face is captured in the frame. For example, based on the personalized active speech measure threshold parameter being associated with a particular account and the facial recognition module 1154 indicating that the frame captures a user corresponding to the particular account, the personalized active speech measure threshold parameter may be provided by the personalization module 1156 for use in conjunction with the frame.
[0059] The distance module 1152 processes the visual data from the visual capture module 114 and / or other sensor data to generate a distance measure indicating the estimated distance of the user. As described herein, in some implementations, the distance module 1152 can process only those areas based on the detection of human and / or facial areas of the visual data using upstream detection and classification models. The distance module 1152 can optionally use one or more distance machine learning models 1162 to generate the distance measure. Such a machine learning model can be, for example, a neural network model, such as a convolutional neural network (CNN) model. Training of such a CNN model can be based on training examples, which include visual frames (e.g., images including only the face and / or body areas of a single user) as training example inputs and values indicating the true value distance of the user as training example outputs. For example, the training example output can be a one-hot vector, where the values of the vector each correspond to a different distance (or distance range), and the "hot" vector indicates the true value distance (or distance range). In other implementations, the distance module 1152 may optionally determine the distance without directly utilizing the distance machine learning model 1162. For example, the distance module 1152 may be provided with visual data that includes only the facial region determined to correspond to the user. Additionally, the distance module 1152 may estimate the distance of the user based on the distance between the eyes of the user in the visual data (the location of the eyes may optionally be indicated by an upstream model), the size of the user's head in the visual data, and / or other attributes of the user in the visual data.
[0060] The adaptation engine 115 can determine whether the user is within a threshold distance of the client device 101 by comparing the distance measure to a distance measure threshold. The distance measure threshold can be a default distance measure threshold parameter or can be a distance measure threshold personalized for the user whose face or body is captured in the frame. For example, based on the personalized distance measure threshold parameter being associated with a particular account and the facial recognition module 1154 indicating that the frame captures the user corresponding to the particular account, the personalized distance measure threshold parameter can be provided by the personalization module 1156 and provided for use in conjunction with the frame.
[0061] The facial recognition module 1154 may use one or more facial recognition machine learning models 1164 to determine whether there is an account associated with the face detected in the visual data, and if so, provide an indication of the account to at least the personalization module 1156. For example, the indication of the account may be provided to the personalization module 1156 to enable the personalization module 1156 to determine the personalized parameters (if any) stored in association with the account. The determined personalized parameters may then be used by the adaptation engine 115 to determine whether the measure (e.g., generated by modules 1151, 1152, and / or 1153) satisfies the conditions for adapting the assistant functionality. As described herein, in some implementations, the facial recognition module 1154 may process only those regions of the visual data based on detection of human and / or facial regions using upstream detection and classification models.
[0062] The facial recognition module 1154 may optionally use one or more facial recognition machine learning models 1164. Such machine learning models may be, for example, neural network models, such as CNN models and / or RNN models. In various implementations, the image frames are processed using the facial recognition machine learning model 1164 to generate one or more facial embeddings, and the facial embeddings are compared with locally stored embeddings of one or more user accounts / profiles registered with the client device 101. In some implementations, the adaptation of one or more functions by the adaptation engine 115 may depend on the facial recognition module 1154 determining that the corresponding user is a recognized user (e.g., a user registered with the automated assistant client 110). In some additional or alternative implementations, the account identifier associated with the recognized face may be compared with an account identifier determined based on text-independent speaker recognition, which is based on processing of audio data capturing the spoken utterance. In some of those implementations, certain processing and / or configuration of the response to the spoken utterance may depend on the comparison indicating the same account identifier. In these and other ways, it can be verified that the spoken utterance is provided by the same user who also provided the directional gaze (because facial recognition can be performed on the user providing the directional gaze). This can prevent the inadvertent generation and / or placement of responses to spoken utterances from a user (or other source) who is not the user providing the directional gaze. Text-independent speaker identification can be performed by a text-independent speaker identification (TI-SID) module 142 (described herein), which can be implemented at the cloud-based automated assistant component 130 or, alternatively, at the client device 101 itself.
[0063] Other modules 1155 may optionally utilize one or more other machine learning models 1165 to determine the presence of one or more other attributes. As a non-limiting example, other modules 1155 may include a face detection module that detects faces in a visual data frame, and may use an object detection model in other machine learning models 1165. Detected faces may be used to generate visual data frames, each of which is a cropped piece of an underlying initial visual data frame of a corresponding face. Such cropped visual data frames may be cropped visual data frames processed by one or more of modules 1151, 1152, 1153, and 1154.
[0064] Personalization module 1156 can at least selectively generate one or more personalized parameters for each of one or more accounts stored in association with automated assistant client 110. Personalization module 1156 can store the personalized parameters for each account in personalized parameter storage 1166 (e.g., in ROM or RAM local to client device 101) and store them in association with the account (e.g., defining a mapping between the personalized parameters and an identifier of the account). Personalization module 1156 can provide the personalized parameters to adaptation engine 115 for use by adaptation engine 115, as described herein. In some implementations, personalization module 1156 automatically generates personalized parameters for the account and does so based on one or more previous interactions with automated assistant 120 that are determined to have been performed by the user corresponding to the user account.
[0065] As a non-limiting example of adaptation processing performed by the adaptation engine 115, ASR processing may not be performed at the client device 101, or any ASR processing results may only be temporarily cached locally on the client device 101 (i.e., without local NLU processing of the ASR processing results or transmission of the ASR processing results to the cloud-based automated assistant component 130) before the adaptation engine 115 determines that the condition is satisfied. However, in response to determining that the condition is satisfied, the adaptation engine 115 may cause local ASR processing to be performed (e.g., performed on temporarily cached audio data and / or continuous audio data from a stream), cause local NLU processing of the ASR processing results to be performed, and / or cause the ASR results and / or NLU results to be transmitted to the cloud-based automated assistant component 130. In addition, the automated assistant client 110 or the cloud-based automated assistant component 130 may fulfill the corresponding spoken request based on the ASR processing results and / or NLU processing results. Thus, the need for the user to speak an explicit invocation phrase (e.g., "OK Assistant") in order to have the user's spoken utterance fully processed by the automated assistant 120 may be avoided. For example, instead of the user needing to say “OK Assistant, what's today's forecast” to get today's weather forecast, the user can: look at client device 101, and only say “what's today's forecast” during or in temporal proximity to looking at client device 101 (e.g., within a time threshold before and / or after looking at the client device). Also, for example, instead of the user needing to say “OK Assistant, open the garage door” to open his / her garage, the user can: look at client device 101, and only say “open the garage door” during or in temporal proximity to looking at client device 101 (e.g., within a time threshold before and / or after looking at the client device).
[0066] In some implementations, additional modules of the automated assistant client 110 may be provided. For example, the additional modules may include a local ASR module that processes captured audio data using an ASR model to generate recognition of spoken utterances captured by the audio data. As another example, the additional modules may include a local NLU module that processes ASR results (e.g., best recognition) and / or context data to generate NLU data that may include structured semantic interpretations of the ASR results. As yet another example, the additional modules may include a local fulfillment module that processes ASR results and / or NLU data to generate responses locally and / or perform other fulfillments based on natural language processing. In various implementations, local speech processing, local natural language processing, and / or local fulfillment generation may be functions adapted by the adaptation engine 115. For example, local speech processing, local natural language processing, and / or local response generation may be dormant until the adaptation engine 115 determines that one or more attributes are occurring.
[0067] The cloud-based automated assistant component 130 may include one or more modules that are provided in addition to and / or in place of any local module counterparts of the automated assistant client.
[0068] The cloud-based ASR module 132 may be configured to leverage the virtually unlimited resources of the cloud to convert the audio data captured by the speech capture module 112 into text, which may then be provided to the intent understanding module 135 .
[0069] The cloud-based TTS module 131 can be configured to utilize the virtually unlimited resources of the cloud to convert text data (e.g., natural language responses formulated by the automated assistant 120) into computer-generated speech output. In some implementations, the TTS module 131 can provide the computer-generated speech output to the client device 101 for direct output, for example, using one or more speakers. In other implementations, the text data (e.g., natural language responses) generated by the automated assistant 120 can be provided to the client device 101, and the local TTS module of the client device 101 can then convert the text data into computer-generated speech that is output locally.
[0070] Automated assistant 120 (e.g., cloud-based automated assistant component 130) may include intent understanding module 135, the aforementioned TTS module 131, the aforementioned ASR module 132, and other components described in more detail herein. In some implementations, modules of automated assistant 120 and / or one or more of the modules may be omitted, combined, and / or implemented in a component separate from automated assistant 120. In some implementations, one or more of the components of automated assistant 120 (such as intent understanding module 135, TTS module 131, ASR module 132, etc.) may be implemented at least partially on client device 101 (e.g., in combination with or excluding cloud-based implementations).
[0071] NLU module 133 of intent understanding module 135 processes natural language input generated by a user via client device 101 and can generate annotated output (e.g., in text form) for use by one or more other components of automated assistant 120. For example, NLU module 133 can process recognized text from ASR of a spoken utterance performed at client device 101 and / or at cloud-based automated assistant component 130. The generated annotated output can include one or more annotations of the natural language input and one or more (e.g., all) of the terms of the natural language input.
[0072] In some implementations, the NLU module 133 is configured to recognize and annotate various types of grammatical information in natural language input. In some implementations, the NLU module 133 may additionally and / or alternatively include an entity tagger (not depicted) that is configured to annotate entity references (such as references to people, organizations, locations, etc.) in one or more segments. In some implementations, the NLU module 133 may additionally and / or alternatively include a coreference resolver (not depicted) that is configured to group or "cluster" references to the same entity based on one or more contextual clues. In some implementations, one or more components of the NLU module 133 may rely on annotations from one or more other components of the NLU module 133.
[0073] Intent understanding module 135 may also include an intent matcher 134 configured to determine the intent of a user engaging in an interaction with automated assistant 120. Figure 1134 , but in other implementations, the intent matcher 134 can be an integral part of the NLU module 133 (or more generally, a pipeline including the natural language processor 133). In some implementations, the NLU module 133 and the intent matcher 134 can collectively form the aforementioned intent understanding module 135.
[0074] The intent matcher 134 may use various techniques to determine the user's intent and, optionally, the values of the slots / parameters of the intent, for example, based on the output from the NLU module 133 (which may include annotations and terms of the natural language input) and / or based on other contextual data. In some implementations, the intent matcher 134 may have access to one or more databases (not depicted) that include, for example, multiple mappings between grammars and responsive actions (or more generally, intents), between visual cues and responsive actions, and / or between touch inputs and responsive actions. In addition to or in lieu of grammars, in some implementations, the intent matcher 134 may employ one or more trained machine learning models alone or in combination with one or more grammars, visual cues, and / or touch inputs. These trained machine learning models may also be stored in one or more databases and may be trained to, for example, identify intents by embedding data indicating the user's utterances and / or any detected user-provided visual cues in a dimensionality reduction space and then determining which other embeddings (and, therefore, intents) are closest using techniques such as Euclidean distance, cosine similarity, and the like.
[0075] In some implementations, the automated assistant 120 can facilitate (or "mediate") transactions between a user and an agent, which can be an independent software process that receives input and provides responsive output. Some agents can take the form of third-party applications that may or may not operate on a computing system separate from those that operate, for example, a cloud-based automated assistant component 130. One user intent that can be identified by the intent matcher 134 is to interact with a third-party application. For example, the automated assistant 120 can provide access to an application programming interface ("API") for a pizza delivery service. A user can invoke the automated assistant 120 and provide a command, such as "I'd like to order apizza". The intent matcher 134 can map this command to a grammar that triggers the automated assistant 120 to interact with a third-party pizza delivery service. The third-party pizza delivery service can provide the automated assistant 120 with a minimum list of slots that need to be filled in order to fulfill a pizza delivery order. The automated assistant 120 can generate a natural language output soliciting parameters for the slot and provide it to the user (via the client device 101).
[0076] The fulfillment module 138 can be configured to receive the predicted / estimated intent output by the intent matcher 134, as well as the associated slot value (whether actively provided by the user or solicited by the user) and fulfill (or "parse") the intent. In various implementations, the fulfillment (or "resolution") of the user's intent may cause various fulfillment information (also referred to as "responsiveness" information or data), for example, to be generated / obtained by the fulfillment module 138. In some implementations, the fulfillment module 138 may additionally or alternatively at least selectively operate directly on recognized text from the ASR results. For example, some recognized text may be directly mapped to corresponding actions and / or responses for the recognized text, and the fulfillment module 138 may utilize the mapping to determine fulfillment directly based on the recognized text.
[0077] The fulfillment information may take a variety of forms, as intent may be fulfilled in a variety of ways. Assume that a user requests pure information, such as "Where were the outdoor shots of 'The Shining' filmed?" The user's intent may be determined as a search query, for example, by intent matcher 134. The intent and content of the search query may be provided to fulfillment module 138, which may be configured to perform a search query such as a search query. Figure 1 As depicted, the search module 138 may communicate with one or more search modules 150 configured to search a corpus of documents and / or other data sources (e.g., a knowledge graph, etc.) for responsiveness information. The fulfillment module 138 may provide data indicative of a search query (e.g., the text of the query, a reduced dimensionality embedding, etc.) to the search module 150. The search module 150 may provide responsiveness information, such as GPS coordinates, or other more explicit information, such as "Timberline Lodge, Mt. Hood, Oregon". This responsiveness information may form part of the fulfillment information generated by the fulfillment module 138.
[0078] Additionally or alternatively, the fulfillment module 138 may be configured to receive the user's intent, for example from the intent understanding module 135, and any slot values provided by the user or determined using other means (e.g., the user's GPS coordinates, user preferences, etc.) and trigger responsive actions. Responsive actions may include, for example, controlling a smart device, ordering goods / services, starting a timer, setting a reminder, initiating a phone call, playing media, sending a message, initiating a routine of multiple actions, etc. In some such implementations, the fulfillment information may include the slot value associated with the fulfillment, a confirmation response (which may be selected from predetermined responses in some cases), etc.
[0079] Natural language generator 136 may be configured to generate and / or select natural language output (e.g., words / phrases designed to mimic human speech) based on data obtained from various sources. In some implementations, natural language generator 136 may be configured to receive as input fulfillment information associated with the fulfillment of an intent, and to generate natural language output based on the fulfillment information. Additionally or alternatively, natural language generator 136 may receive information from other sources (such as third-party applications) that the natural language generator may use to compose natural language output and / or other content for rendering to a user via automated assistant client 110.
[0080] Semantic filtering module 140 can determine whether the spoken utterance is intended for assistant 120. Fulfillment module 138 can utilize output from semantic filtering module 140 to determine whether to generate and / or provide a response in response to the spoken utterance. For example, semantic filtering module 140 can provide a confidence metric that indicates the likelihood that the spoken utterance is intended for assistant 120, and fulfillment module 138 can determine whether to generate and / or provide a response based on the confidence metric from semantic filtering module 140. The confidence metric from semantic filtering module 140 can optionally be considered in combination with one or more other confidence metrics, such as metrics from adaptation engine 115 and / or TI-SID module 142. Although semantic filtering module 140 may be used in conjunction with other semantic filtering modules, fulfillment module 138 can also use output from semantic filtering module 140 to determine whether to generate and / or provide a response in response to the spoken utterance. Figure 1 1 is shown as being implemented by the cloud-based automated assistant component 130, but in various implementations, the semantic filtering module may additionally or alternatively be implemented as one of the modules of the adaptation engine 115 and used to determine whether to adapt one or more assistant functions.
[0081] In some implementations, the semantic filtering module 140 utilizes one or more semantic machine learning models 141 to determine whether the spoken utterance is intended for the assistant 120. In some implementations, the semantic machine learning model 141 can process audio data corresponding to the spoken utterance, text output from the ASR module 132, and / or output from the intent understanding module 135 to determine a confidence metric that the spoken utterance and / or detected gesture is intended for the assistant 120. In general, the confidence metric should be low for spoken utterances that have corresponding text and / or NLU output that are atypical (or not present) for the assistant input. For example, if the text does not conform to any pattern of the assistant input, the confidence metric should be low. Additionally or alternatively, if the NLU output will not produce an assistant response, or will produce a "punt" response or only a "personality" response, the confidence metric should be low. Additionally, the audio data itself can indicate whether the input is intended as assistant input, as users typically speak with different voice attributes (e.g., pitch, intonation, rhythm) when speaking to an assistant device (compared to those voice attributes when speaking to another human).
[0082] The TI-SID module 142 uses the TI-SID machine learning model 143 to process the audio data containing the spoken utterance to determine whether the spoken utterance comes from the same user that the adaptation engine 115 determines is participating in the hotword-free interaction with the automated assistant. For example, the TI-SID module 142 can use the TI-SID model to process the audio data that captures the spoken utterance to generate a TI-SID embedding and compare that TI-SID embedding with the pre-stored TI-SID speaker embedding for the account of the client device 101. If the TI-SID embedding is determined to meet the similarity threshold of the pre-stored speaker embedding of the account, the TI-SID module 142 can determine that the spoken utterance comes from the user corresponding to the account. In addition, the TI-SID module 142 can determine whether that account is the same as the account of the user determined by the adaptation engine 115 to be currently participating in the hotword-free interaction with the automated assistant. If so, the spoken utterance can be fully processed and fulfilled by the automated assistant. If not, some processing can be blocked and / or some processing can be stopped and / or fulfillment can be suppressed. For example, if they are not the same, TI-SID module 142 can prevent fulfillment module 138 from generating and / or configuring a response. In these and other ways, it can be verified that the spoken utterance was provided by the same user determined to be engaging in a hotword-free interaction with automated assistant 120. This can prevent the inadvertent generation and / or configuration of a response to a spoken utterance from a user (or other source) who is not the user determined to be engaging in a hotword-free interaction with automated assistant 120. Although in Figure 11 is shown as being implemented at the cloud-based automated assistant component 130, but the TI-SID module 142 can optionally be implemented at the client device 101 as part of the adaptation engine 115 and used to determine whether to adapt the assistant functionality.
[0083] Reference now Figure 2 , showing Figure 1 Some of the components of , and example interactions that might occur between those components. Figure 2 In the embodiment, the visual capture module 114 provides the visual frame to the facial detection module 1155A, which is Figure 1 The face detection module 1155A utilizes Figure 1 The face detection module 1155A may detect faces (if any) in each of the visual frames using the detection model 1165A in the other models 1165. The face detection module 1155A may track faces in each of the plurality of visual frames to determine whether a face detected in a later visual frame corresponds to a corresponding face in an earlier frame. For each detected face in a visual frame, the face detection module 1155A may generate a corresponding cropped visual frame (which is a crop of the face) and provide the cropped visual frame to the additional component. For example, in Figure 2 , "Face 1 frame" indicates a cropped visual frame capturing the first face, and "Face N frame" indicates a cropped visual frame capturing the Nth face. As indicated by the horizontal ellipses, additional cropped visual frames may be provided in the event that more than two faces are detected. In implementations where there is only a single detected face, only the Face 1 frame will be provided.
[0084] Facial recognition module 1154 processes at least one of the face1 frames and determines that the face captured in the face1 frame corresponds to a first account registered with assistant device 101, and provides an indication of the first account to personalization module 1156. In some implementations, if facial recognition module 1154 determines that the face captured by the cropped visual frame does not correspond to any registered account (e.g., the embedding generated based on the cropped visual frame does not meet a distance threshold relative to a pre-stored embedding of a registered account), modules 1151, 1152, and / or 1153 can bypass performing any processing on such cropped visual frame. In other words, in those implementations, unrecognized faces are not processed to determine whether their corresponding users are engaging in a hotword-free interaction with automated assistant 120.
[0085] The personalization module 1156 uses the indication of the first account to identify a first personalized parameter stored in association with the first account from the personalized parameter storage 1166. The personalization module 1156 provides the first personalized parameter to the adaptation engine 115.
[0086] The gaze module 1151 processes the Face1 frames to generate a gaze measure and provides the gaze measure to the adaptation engine 115. The distance module 1152 processes the Face1 frames to generate a distance measure and provides the distance measure to the adaptation engine 115. The mouth / voice module 1153 processes the Face1 frames and the audio data captured by the voice capture module 112 to generate an active voice measure and provides the active voice measure to the adaptation engine 115. It should be noted that the stream of Face1 frames can be provided based on the stream of visual frames and processed continuously by the modules 1151, 1152 and 1153 (optionally at different rates) to generate corresponding streams of measures that are provided to the adaptation engine 115.
[0087] The adaptation engine 115 processes the gaze, distance, and active voice measures generated based on the face1 frame to determine whether a condition indicating that the user (corresponding to the face1 frame) is engaging in a hotword-free interaction with the automated assistant 120 is met. In doing so, the adaptation engine 115 processes the measures using one or more parameters. The parameters include a first personalized parameter provided by the personalization engine 1156 based on the measure, which is generated based on the face1 frame. The parameters may also optionally include default parameters (e.g., for those parameters that do not have a first personalized parameter corresponding item). When the adaptation engine 115 determines that the condition is met, the adaptation engine 115 can automatically adapt the automated assistant processing as described herein.
[0088] Facial recognition module 1154 also processes at least one of the facial N frames and determines that the face captured in the facial N frame corresponds to an Nth account registered with assistant device 101 , and provides an indication of the Nth account to personalization module 1156 .
[0089] The personalization module 1156 uses the indication of the first account to identify an Nth personalized parameter stored in association with the Nth account from the personalized parameter storage 1166 . The personalization module 1156 provides the Nth personalized parameter to the adaptation engine 115 .
[0090] The gaze module 1151 processes the facial N frames to generate a gaze measure and provides the gaze measure to the adaptation engine 115. The distance module 1152 processes the facial N frames to generate a distance measure and provides the distance measure to the adaptation engine 115. The mouth / voice module 1153 processes the facial N frames and the audio data captured by the voice capture module 112 to generate an active voice measure and provides the active voice measure to the adaptation engine 115. It should be noted that the stream of facial N frames can be provided based on the stream of visual frames and processed continuously by the modules 1151, 1152 and 1153 (optionally at different rates) to generate corresponding streams of measures that are provided to the adaptation engine 115.
[0091] The adaptation engine 115 processes the gaze, distance, and active voice measures generated based on the face N frame to determine whether a condition indicating that another user (corresponding to the face N frame) is engaging in a hotword-free interaction with the automated assistant 120 is met. In doing so, the adaptation engine 115 processes the measures using one or more parameters. The parameters include the Nth personalized parameters provided by the personalization engine 1156 based on the measures, which are generated based on the face N frame. The parameters may also optionally include default parameters (e.g., for those parameters that do not have a corresponding item for the Nth personalized parameter). When the adaptation engine 115 determines that the condition is met, the adaptation engine 115 may automatically adapt the automated assistant processing as described herein.
[0092] Figure 3 Depicted Figure 1 An example of a client device 101, a display 103, and a visual component 107. Figure 3 , an example client device is represented as 101A, an example display 103 is represented as 103A, and an example visual component 107 is represented at 107A. The client device 101A may also include a speaker and a microphone.
[0093] Figure 3 An example of three separate gaze areas is also depicted. The first gaze area is the area surrounded by the first dotted ellipse 108A, the second gaze area is the area surrounded by the second dotted ellipse 108B, and the third gaze area is the area surrounded by the third dotted ellipse 108C. The default gaze area parameters can define the first gaze area, the personalized gaze area parameters for the first account can define the second gaze area, and the personalized gaze area parameters for the second account can define the third gaze area. Additional or alternative gaze areas can be defined, such as those with non-elliptical borders. In addition, in various implementations, the gaze area parameters can be omitted and / or the personalized gaze area parameters can be omitted.
[0094] Figure 3 User 301 is also depicted providing a gaze directed toward camera 107A. Figure 3 Also depicted is an example image 360 captured by camera 107A when the user is providing directional gaze. In image 360, a bounding box 362 is provided, and the bounding box represents the image that can be determined (e.g., by Figure 2 The facial detection module 1155A of the client device 101A may be a region corresponding to a face. In some implementations, a module of the adaptation engine 115 operating on the client device 101A may process the cropped image corresponding to the portion of the bounding box 362 of the image (or focus on that portion) to perform facial recognition and / or generate gaze, active voice, and / or distance measures. Figure 3Only a single image is depicted in FIG, but in various implementations, generating various metrics may be based on a sequence of images as described herein. Figure 3 Only a single user is depicted in the image, but multiple users may be captured in the image, and in various implementations, a corresponding measure may be generated for each of the users and processed to determine whether the corresponding user is engaging in a hotword-free interaction with the automated assistant.
[0095] exist Figure 3 10 also illustrates an example personalized parameter 302A that may be determined for a user. For example, facial recognition module 1154 may determine that the user's face matches a given registered account and provide an indication of the given registered account to personalization module 1156. Personalization module 1156 may identify the personalized parameter 302A based on that it is stored in association with the given registered account. As described herein, adaptation engine 115 may utilize personalized parameter 302A to process measures generated for user 301 to determine whether certain conditions are satisfied indicating that user 301 is engaging in a hotword-free interaction with an automated assistant.
[0096] The personalized parameters 302A include gaze region parameters corresponding to the second gaze region indicated by the second dashed ellipse 108B. The personalized parameters 302A also include a personalized gaze persistence parameter of 0.5 (e.g., 50% of the N consecutive analyzed frames must indicate gaze) and an active speech parameter of 0.8 (e.g., the probability of active speech must be equal to or greater than 0.8).
[0097] Initial Goto Figure 4 , a method 400 of at least selectively generating personalized parameters for a user and assigning the personalized parameters to the user's account is shown. For convenience, the system described with reference to the execution of the operation Figure 4 The system may include various components of various computer systems, such as one or more components of a computing system (e.g., a client device and / or a remote computing system) that implements automated assistant 120. For example, in various implementations, personalization module 1156 may perform method 400. Furthermore, although the operations of the method are shown in a particular order, this is not meant to be limiting. One or more operations may be reordered, omitted, or added.
[0098] At block 402, the system identifies real-value instances for a user. Each of the real-value instances is an instance in which the user interacts with an automated assistant, and they are identified based on the instance being the user (rather than a different user) interacting with the automated assistant. For example, the system can identify the instance based on the instance being attributed to the user's account. In some implementations, block 402 includes sub-block 402A and / or sub-block 402B.
[0099] At sub-block 402A, the system identifies a real-value instance from a hotword-based interaction determined to be from the user. For example, the hotword-based interaction can be attributed to the user's account based on text-dependent speaker verification, which is performed based on processing audio data that captures the hotwords from the interaction to match the account's text-dependent speaker embedding. At sub-block 402B, the system identifies a real-value instance from an interaction during a user's login (such as a login in which the user's account is being generated and / or in which the user's account is being configured for the hotword-free interaction techniques described herein).
[0100] At block 404, the system determines a gaze measure, an active speech measure, and / or other measure for each of the truth-value instances identified at block 402. For example, the system can process visual data and / or audio data from the truth-value instances to generate the measures. For example, the system can process visual data from the instances to generate a gaze measure for the instances and can process visual data from the instances together with temporally aligned audio data from the instances to generate an active speech measure for the instances.
[0101] At box 406, the system determines whether any of the measures generated at box 404 differ significantly from the corresponding default parameters. For example, the system can determine whether any of the measures differ statistically significantly from the corresponding default parameters. For example, the system can determine whether the median or mean of the generated active voice measures differs from the default active voice threshold parameters by more than X% or by more than Y%. Also, for example, the system can determine whether the lower and / or upper standard deviations (e.g., one standard deviation, two standard deviations, or three standard deviations) of the generated active voice measures differ from the default active voice threshold parameters by more than X% or by more than Y%.
[0102] If at block 406, the system determines that there is no significant difference in any of the measures, the system proceeds to block 408, where default parameters are assigned to the user's account. If at block 406, the system determines that there is a significant difference in at least one of the measures, the system proceeds to block 410. In some implementations, blocks 406 and 408 can be omitted (e.g., personalized parameters are determined for each account without selectively utilizing default counterparts).
[0103] At block 410, the system generates one or more personalized parameters based on measures from the true value instance, such as the measures determined to be significantly different at block 406. For example, the system can generate a personalized active speech threshold parameter based on the active speech measure generated from the true value instance. For example, the system can generate the personalized active speech threshold parameter such that N standard deviations of the generated active speech measure will be considered active speech using the personalized active speech threshold.
[0104] At block 412, the system assigns the personalized parameters to the user's account. Optionally, for any parameters for which no personalized parameters are generated, default parameters can be assigned to the account. The personalized parameters assigned to the account can be used later, for example, as described in block 612 of method 600 (described below) and / or as described elsewhere herein. Method 400 can be performed for each of a plurality of different users and different user accounts, thereby generating different personalized parameters for different accounts.
[0105] Go to briefly Figure 5A and Figure 5B , which describes some specific examples of generating personalized parameters in further detail. Figure 5A , example default parameters 1166 are shown, including a default gaze region parameter (108A), a default gaze persistence parameter (0.80), a default active voice parameter (0.80), and a default distance parameter (6.0 ft.). Figure 5A , also shown are ground truth measures 1166A1, 1166A2, and 1166A3 for the first user, wherein each of ground truth measures 1166A1, 1166A2, and 1166A3 is generated based on processing visual and / or audio data from a previous interaction of the first user with the automated assistant. For example, ground truth measures 1166A1 include a gaze region measure (108A), a gaze persistence measure (0.70), an active voice measure (0.80), and a distance measure (7.5 ft.) generated based on data from a previous interaction of the first user with the automated assistant.
[0106] Personalization module 1156 can process true value measures 1166A1, 1166A2, and 1166A3 to determine whether to generate personalized parameters for the first user and / or to generate any personalized parameters. For example, as shown by personalized parameter 1166A, personalization module 1156 can generate a personalized gaze persistence parameter (0.70) and a personalized distance parameter (7.5 ft) for the first user, but not a personalized gaze area or personalized active voice parameter. Personalized parameter 1166A can be stored in association with the first user's account.
[0107] In generating a personalized gaze persistence parameter (0.69), the personalization module 1156 can determine 0.70 to cover all generated active voice measures (0.70, 0.71, and 0.72) of the true value measures 1166A1, 116A2, and 116A3, optionally ignoring any statistical outliers and / or optionally taking into account the minimum allowed value. In generating a personalized distance parameter (7.5 ft.), the personalization module 1156 can determine 7.5 ft. to cover all generated distance measures (7.5 ft., 6.9 ft., and 4.0 ft.) of the true value measures 1166A1, 116A2, and 116A3, optionally ignoring any statistical outliers and / or optionally taking into account the maximum allowed value. The generation and subsequent use of more tolerant (relative to the default) gaze persistence parameters and distance parameters can alleviate the occurrence of false negatives for the first user.
[0108] In determining not to generate a personalized gaze region or a personalized active voice parameter, the personalization module 1156 may determine not to generate a personalized gaze region or a personalized active voice parameter in response to determining that the corresponding measures in the true value measures 1166A1, 116A2, and 116A3 are not sufficiently different from the default parameters 1166. For example, the gaze region measures in the true value measures 1166A1, 116A2, and 116A3 are all the same as the gaze region parameters of the default parameters 1166. Also, for example, the active voice measures in the true value measures 1166A1, 116A2, and 116A3 are all greater than the active voice parameter threshold of the default parameters 1166 (meaning that active voice would have been correctly determined), but not significantly higher.
[0109] exist Figure 5B , true value measures 1166B1, 1166B2, and 1166B3 for a second user are shown, wherein each of true value measures 1166B1, 1166B2, and 1166B3 is generated based on processing visual and / or audio data from a previous interaction of the second user with the automated assistant. For example, true value measures 1166B1 include a gaze region measure (108B), a gaze persistence measure (0.92), an active voice measure (0.70), and a distance measure (4.5 ft.) generated based on data from a previous interaction of the first user with the automated assistant.
[0110] The personalization module 1156 may process the true value measures 1166B1, 1166B2, and 1166B3 to determine whether to generate personalized parameters for the second user and / or to generate any personalized parameters. For example, as shown by personalized parameters 1166B, the personalization module 1156 may generate personalized gaze persistence parameters (0.85) and personalized active voice parameters (0.65) for the second user, but not personalized gaze area or personalized distance parameters. Personalized parameters 1166B may be stored in association with the second user's account.
[0111] In generating the personalized gaze persistence parameter (0.85), the personalization module 1156 can determine 0.85 to cover all generated gaze persistence measures (0.92, 0.95, and 0.89) in the true value measures 1166B1, 1166B2, and 1166B3, while being lower than the lowest value (0.89) of the generated gaze persistence measures to a certain extent (0.06 in this example). It should be noted that the personalized gaze persistence parameter (0.85) is stricter than the default (0.80), which can result in a reduction in false positives for the second user. In generating the personalized active voice parameter (0.65), the personalization module 1156 can determine 0.65 to cover all generated active voice measures (0.70, 0.65, and 0.69) in the true value measures 1166B1, 1166B2, and 1166B3. The personalized active voice parameter (0.65) is more tolerant than the default (0.80), which may result in mitigation of false negative occurrences for the second user.
[0112] In determining not to generate a personalized gaze region or personalized distance parameter, the personalization module 1156 may determine not to generate a personalized gaze region or personalized active voice parameter in response to determining that corresponding ones of the true value measures 1166B1 , 116B2 , and 116B3 are not sufficiently different from the default parameters 1166 .
[0113] Figure 6 6 is a flow chart illustrating an example method 600 of utilizing personalized parameters to determine whether a user is engaging in a hotword-free interaction with an automated assistant. For convenience, the system described herein is described with reference to the system performing the operations. Figure 6 The operations of the flowchart of the method can be shown in Figure 1. This system can include various components of various computer systems, such as one or more components of a computing system (e.g., a client device and / or a remote computing system) that implements automated assistant 120. In addition, although the operations of the method are shown in a particular order, this is not meant to be limiting. One or more operations can be reordered, omitted, or added.
[0114] At block 602 , the system receives visual data based on output from a visual component of an assistant device and audio data based on output from a microphone of the assistant device.
[0115] At block 604 , the system processes the visual data to detect faces in the visual data.
[0116] At block 606, the system determines, for each detected face, whether the face corresponds to an account of the device. In some implementations, block 606 includes subblock 606A, where the system generates an image embedding of the face in determining whether the face corresponds to an account and compares it to the facial embeddings of each of the accounts of the device. For example, if the comparison with a given facial embedding satisfies a threshold, the system can determine that the face corresponds to the account corresponding to the given facial embedding. The system can generate the image embedding of the face by processing a frame of visual data that captures the face. The facial embedding for each account can be generated based on an image of a user associated with the account.
[0117] At block 608, for each detected face determined to correspond to an account, the system identifies corresponding personalized parameters for the account, if any. For example, if a first face is determined to correspond to a first account and a second face is determined to correspond to a second account, the system may identify first personalized parameters for the first account and second personalized parameters for the second account.
[0118] At box 610, for each detected face, the system generates a measure that is each based on the visual data and / or the audio data. For example, for a first detected face, the system can generate a first gaze measure based on a first visual data frame that captures the first face (e.g., each is a crop of the first face), and generate a first active voice measure based on such first visual data frame and, optionally, a temporally related audio data frame. And, for example, for a second detected face, the system can generate a second gaze measure based on a second visual data frame that captures the second face (e.g., each is a crop of the second face), and generate a second active voice measure based on such second visual data frame and, optionally, a temporally related audio data frame.
[0119] At box 612, the system determines whether engagement exists for each detected face. The system determines whether engagement exists for the face based on the measure generated for the face at box 610 and based on the personalized parameters identified at box 608. For example, in determining whether engagement exists for a first face, a first gaze measure can be compared with a personalized gaze parameter for an account determined to correspond to the first face. For example, the system can compare the first gaze measure with the personalized gaze parameter to determine whether the first user's gaze is directed toward the assistant device, and optionally, whether it is persistently directed toward the assistant device. Determining whether engagement exists for the first face can depend on determining that the first user's gaze is directed toward the assistant device and, optionally, persistently directed toward the assistant device. Optionally, the system can additionally utilize one or more default parameters to determine whether engagement exists for one or more measures.
[0120] At block 614, if the system determined at the most recent iteration block 612 that there is engagement, the system proceeds to block 616. If not, the system may return to block 610 to generate additional measures based on newly detected additional visual data and / or additional audio data, and then proceed again to block 612. This general process may continue until engagement is determined and / or other conditions are met (e.g., if the presence of a person is no longer detected, the method 600 may stop).
[0121] At box 616, the system adapts one or more functions of the automated assistant based on the determined engagement. In various implementations, the adaptation of the functions can include initiating certain automated assistant processing that was dormant prior to the adaptation. For example, the functions to be adapted can include initiating automatic speech recognition (ASR) (e.g., local ASR at the assistant device), natural language understanding (NLU) (e.g., NLU at the assistant device and / or remote server based on ASR results from the local ASR), fulfillment based on the ASR and / or NLU results (e.g., at the assistant device and / or remote server), and / or transmission of data to a remote server (e.g., transmission of ASR results, audio data, and / or visual data).
[0122] Now go to Fig. 6A and Figure 6B , Fig. 6A Depicted is a diagram showing execution Figure 6 A flowchart of an example of all or aspects of blocks 610 and 612, and Figure 6B Depicted is a diagram showing execution Figure 6 6A and 6B may be performed in parallel. Figure 6In addition, in various implementations, block 610 may include generating a Fig. 6A and Figure 6B In some embodiments, the distance metric may be determined in addition to those of the block 610 and may be considered in block 612.
[0123] exist Fig. 6A , blocks 610A1 and 610A2 are examples of aspects of block 610 , and blocks 612A1 and 612A2 are examples of aspects of block 612 .
[0124] At block 610A1 , the system determines a gaze direction measure for each detected face and for each of a plurality of frames of visual data.
[0125] At box 612A1, the system determines for each gaze direction measure whether it indicates a gaze directed toward the assistant device. In some implementations, box 612A1 includes subbox 612A1A, in which the system determines whether the gaze direction measure indicates a gaze directed toward the device for the face based on the gaze direction measure and the personalized gaze region parameters for the face. For example, the gaze direction and optionally the corresponding distance of the user from the camera can be used to determine whether the gaze in the image is directed within the gaze region defined by the personalized gaze region parameters assigned to the user's account.
[0126] At box 610A2, the system determines a gaze persistence measure for each detected face based on the persistence of the face's gaze directed toward the assistant device. The system can determine the gaze persistence measure based on the amount of visual frames in which a gaze directed toward the device is determined for the face and / or based on the duration of the gaze determined for the face. For example, via iterations of box 612A1, it can be determined that for a given face, nine of ten consecutive analyzed frames are determined to have a gaze directed toward the assistant device of the face. In this example, the system can determine a gaze persistence measure of 0.90 for a given face.
[0127] At box 612A2, the system determines for each gaze persistence measure whether it indicates a gaze directed toward the assistant device. For example, the system may compare the gaze persistence measure with a gaze persistence measure threshold, and determine that the gaze is directed toward the assistant device only when the gaze persistence measure satisfies the gaze persistence measure threshold. In some implementations, box 612A2 includes sub-box 612A2A. At sub-box 612A2A, the system uses personalized parameters to make the determination of box 612A2. For example, the system may adapt the gaze persistence measure based on personalized gaze persistence parameters, and compare the adapted gaze persistence measure with the gaze persistence measure threshold to make the determination. For example, the gaze persistence measure may be raised or lowered based on the personalized gaze persistence parameter. As another example, the system may instead compare the gaze persistence measure with a personalized gaze persistence measure threshold.
[0128] exist Figure 6B , block 610B1 is an example of aspects of block 610 , and block 612B1 is an example of aspects of block 612 .
[0129] At block 610B1 , the system determines, for each detected face and based on frames of visual data and, optionally, frames of audio data, an active voice measure.
[0130] At block 612B1, the system determines for each active voice measure whether it indicates active voice from the corresponding detected face. In some implementations, block 612B1 includes subblock 612B1A, in which: the system determines whether the active voice measure indicates active voice for the face based on comparing the active voice measure to a personalized active voice threshold, or, alternatively, the system adapts the active voice measure (e.g., increases or decreases) based on a personalized active voice parameter and compares the adapted active voice measure to a default active voice threshold.
[0131] Figure 7 710 is a block diagram of an example computing device 710 that can optionally be used to perform one or more aspects of the techniques described herein. In some implementations, one or more of the client device, cloud-based automated assistant components, and / or other components can include one or more components of the example computing device 710.
[0132] The computing device 710 typically includes at least one processor 714 that communicates with a number of peripheral devices via a bus subsystem 712. These peripheral devices may include a storage subsystem 724 (including, for example, a memory subsystem 725 and a file storage subsystem 726), a user interface output device 720, a user interface input device 722, and a network interface subsystem 716. The input and output devices allow interaction with a user of the computing device 710. The network interface subsystem 716 provides an interface to an external network and is coupled to corresponding interface devices in other computing devices.
[0133] The user interface input device 722 may include a keyboard, a pointing device (such as a mouse, a trackball, a touch pad or a graphics tablet, a scanner, a touch screen incorporated into a display), an audio input device (such as a voice recognition system, a microphone), and / or other types of input devices. In general, the use of the term "input device" is intended to include all possible types of devices and ways to input information into the computing device 710 or onto a communication network.
[0134] The user interface output device 720 may include a display subsystem, a printer, a fax machine, or a non-visual display, such as an audio output device. The display subsystem may include a cathode ray tube (CRT), a flat panel device (such as a liquid crystal display (LCD)), a projection device, or some other mechanism for creating a visible image. The display subsystem may also provide a non-visual display, such as via an audio output device. Generally speaking, the use of the term "output device" is intended to include all possible types of devices and methods for outputting information from the computing device 710 to a user or another machine or computing device.
[0135] The storage subsystem 724 stores programming and data constructs that provide the functionality of some or all of the modules described herein. For example, the storage subsystem 724 may include a computer program that executes Figure 4 , Figure 6 , Fig. 6A and / or Figure 6B Selected aspects of the method and implementations Figure 1 , Figure 2 A. Figure 2 B and Figure 3 The logic of the various components is depicted in .
[0136] These software modules are typically executed by the processor 714 alone or in combination with other processors. The memory 725 used in the storage subsystem 724 may include multiple memories, including a main random access memory (RAM) 730 for storing instructions and data during program execution and a read-only memory (ROM) 732 in which fixed instructions are stored. The file storage subsystem 726 may provide persistent storage for program and data files, and may include a hard drive, a floppy disk drive and associated removable media, a CD-ROM drive, an optical drive, or a removable media cartridge. Modules that implement the functionality of certain implementations may be stored by the file storage subsystem 726 in the storage subsystem 724 or in other machines accessible by the processor 714.
[0137] The bus subsystem 712 provides a mechanism for the various components and subsystems of the computing device 710 to communicate with each other as intended. Although the bus subsystem 712 is shown schematically as a single bus, alternative implementations of the bus subsystem may use multiple busses.
[0138] The computing device 710 can be of different types, including a workstation, a server, a computing cluster, a blade server, a server farm, or any other data processing system or computing device. Due to the ever-changing nature of computers and networks, Figure 7 The description of computing device 710 depicted in FIG. 7 is intended only as a specific example for the purpose of illustrating some implementations. Many other configurations of computing device 710 are possible, and the configurations are similar to those of FIG. Figure 7 The computing devices depicted may have more or fewer components than those shown.
[0139] In the case where the system described herein collects or otherwise monitors personal information about a user or can make use of personal and / or monitored information, the user may be provided with the following opportunities: control whether a program or feature collects user information (e.g., information about a user's social network, social actions or activities, occupation, a user's preferences, or a user's current geographic location), or control whether and / or how to receive content that may be more relevant to the user from a content server. Moreover, certain data may be disposed of in one or more ways before it is stored or used so that personally identifiable information is removed. For example, the identity of the user may be disposed of so that the user's personally identifiable information cannot be determined, or where geographic location information is obtained, the user's geographic location may be generalized (such as to a city, zip code, or state level) so that the user's specific geographic location cannot be determined. Thus, the user may control how information is collected about the user and / or how it is used. For example, the user may opt out of the assistant device using the visual component 107 and / or using visual data from the visual component 107 to enable hotword-free interaction with the automated assistant.
[0140] In some implementations, a method implemented by one or more processors is provided, and the method includes determining that a user's face captured by at least one image frame corresponds to an account registered with the client device based on processing at least one image frame generated by a camera of a client device. The method also includes, for an account registered with the client device, identifying one or more personalized parameters to be utilized in determining whether the user is participating in a hotword-free interaction with an automated assistant of the client device. The method also includes generating one or more measures for the user based on processing a plurality of image frames generated by a camera. The plurality of image frames include the user's face and include at least one image frame or are in addition to the at least one image frame. The method also includes, in response to determining that the face corresponds to an account registered with the client device: using one or more personalized parameters together with one or more measures to determine whether the user is participating in a hotword-free interaction with the automated assistant. The method also includes, when it is determined that the user is participating in a hotword-free interaction with the automated assistant: automatically adapting the processing performed by the automated assistant.
[0141] These and other implementations of the techniques disclosed herein may include one or more of the following features.
[0142] In some implementations, the one or more personalized parameters include a personalized threshold. In some of those implementations, using the personalized parameters with the one or more measures to determine whether the user is engaging in a hotword-free interaction with the automated assistant includes comparing a measure in the one or more measures to the personalized threshold to determine whether the user is engaging in a hotword-free interaction with the automated assistant.
[0143] In some implementations, the one or more personalized parameters include a personalized measure adjustment. In some of those implementations, using the personalized parameters with the one or more measures to determine whether the user is engaging in a hotword-free interaction with the automated assistant includes: adjusting a given measure of the one or more measures according to the personalized measure adjustment to generate an adjusted measure; and using the adjusted measure to determine whether the user is engaging in a hotword-free interaction with the automated assistant.
[0144] In some implementations, generating one or more measures for the user based on processing a plurality of image frames generated by the camera includes generating a gaze direction of an eye of a face captured in one of the plurality of images based on the one of the images. In some of those implementations, using one or more personalized parameters with the one or more measures to determine whether the user is engaging in a hotword-free interaction with the automated assistant includes: determining, based on the gaze direction and using at least one of the personalized parameters, whether the gaze direction is directed toward the device; and using the determination of whether the gaze direction is directed toward the device to determine whether the user is engaging in a hotword-free interaction with the automated assistant.
[0145] In some implementations, generating one or more measures for a user based on processing a plurality of image frames generated by a camera includes generating an active voice measure based on a plurality of the plurality of images, the active voice measure indicating whether the user is actively speaking. In some versions of those implementations, using a personalized parameter with the one or more measures to determine whether the user is engaging in a hotword-free interaction with the automated assistant includes comparing the active voice measure with a personalized threshold of the personalized parameter to determine whether the user is engaging in a hotword-free interaction with the automated assistant. In some of those versions, generating the active voice measure is also based on processing audio data frames corresponding in time to a plurality of the plurality of images together with a plurality of the plurality of images.
[0146] In some implementations, the method further includes, before determining that the face corresponds to an account registered with the client device: automatically generating one or more personalized parameters based on a measure generated based on one or more previous interactions with the automated assistant. The one or more previous interactions are utilized based on being determined to have been performed by the user. In some versions of those implementations, the method further includes identifying one or more of the previous interactions based on one or more previous interactions in the previous interactions each being initiated by the user to invoke the automated assistant by saying a hot word. In some versions of those implementations, the method further additionally or alternatively includes identifying one or more of the previous interactions based on one or more previous interactions in the previous interactions each being a hot word-free interaction, the hot word-free interaction being verified as intended based on additional user interface input from the user. In some versions of those implementations, the method further additionally or alternatively includes identifying one or more of the previous interactions based on one or more previous interactions in the previous interactions each being performed during the user's login process.
[0147] In some implementations, a method implemented by one or more processors is provided, and the method includes identifying each interaction between a specific user and an automated assistant. The method also includes, for each of the interactions: generating a corresponding gaze measure based on processing a corresponding image frame from the interaction. The method also includes generating a personalized gaze parameter for a specific user based on the corresponding gaze measure. The method also includes storing the personalized gaze parameter in association with the account of the specific user. The method also includes, after storing the personalized gaze parameter in association with the account of the specific user: determining that the face of the specific user and captured by at least one image frame corresponds to the account based on processing at least one image frame generated by a camera of a client device; generating a gaze measure for the user based on processing at least one image frame or an additional image frame generated by the camera; and in response to determining that the face corresponds to the account: using the personalized gaze parameter stored in association with the account together with the gaze measure to determine whether the specific user is participating in a hotword-free interaction with the automated assistant. The method also includes automatically adapting the processing performed by the automated assistant when it is determined that the specific user is participating in a hotword-free interaction with the automated assistant.
[0148] These and other implementations of the techniques disclosed herein may include one or more of the following features.
[0149] In some implementations, the personalized gaze parameter reflects a gaze area of the user when interacting with the automated assistant. In some versions of those implementations, the gaze measure is a direction of the user's gaze. In some of those versions, using the personalized gaze parameter with the gaze measure to determine whether the user is engaging in a hotword-free interaction with the automated assistant includes: determining whether the gaze is directed to the gaze area reflected by the personalized gaze parameter based on the direction of the gaze; and determining whether the user is engaging in a hotword-free interaction with the automated assistant depending on whether the gaze is directed to the gaze area.
[0150] In some implementations, the personalized gaze parameter reflects the user's gaze persistence when interacting with the automated assistant, and the gaze measure reflects the current gaze persistence. In some of those implementations, using the personalized gaze parameter with the gaze measure to determine whether the user is engaging in a hotword-free interaction with the automated assistant includes: determining whether the gaze is persistently directed toward the client device based on comparing the gaze measure to the personalized gaze parameter; and determining whether the user is engaging in a hotword-free interaction with the automated assistant depending on whether the gaze is persistently directed toward the client device.
[0151] In some implementations, determining whether a particular user is engaging in a hotword-free interaction with the automated assistant is further based on an active voice measure generated based on processing one or more image frames generated by a camera. In some of those implementations, the active voice measure is further based on processing temporally corresponding audio data frames with the one or more image frames.
[0152] In some implementations, determining whether a particular user is engaging in a hotword-free interaction with the automated assistant is also based on a distance measure of the particular user relative to the client device, the distance measure generated based on processing one or more image frames generated by the camera.
[0153] In some implementations, a method implemented by one or more processors is provided, and the method includes identifying interactions that are each between a specific user and an automated assistant. The method also includes, for each of the interactions, generating a corresponding active voice measure based on processing corresponding image data and audio data from the interaction. The method also includes generating personalized active voice parameters for a specific user based on the corresponding active voice measure. The method also includes storing the personalized active voice parameters in association with the account of the specific user. The method also includes, after storing the personalized active voice parameters in association with the account of the specific user: determining that the face of the specific user and captured by the at least one image frame corresponds to the account based on processing at least one image frame generated by a camera of a client device; generating a current active voice measure for the specific user based on processing multiple images generated by the camera together with corresponding audio data in time; in response to determining that the face corresponds to the account: using the personalized active voice parameters stored in association with the account together with the active voice measure to determine whether the specific user is participating in a hotword-free interaction with the automated assistant. The method also includes when it is determined that the specific user is participating in a hotword-free interaction with the automated assistant: automatically adapting the processing performed by the automated assistant.
[0154] These and other implementations of the techniques disclosed herein may include one or more of the following features.
[0155] In some implementations, the personalized active voice parameter is a threshold value. In some of those implementations, using the personalized active voice parameter with the active voice measure to determine whether a particular user is engaging in a hotword-free interaction with the automated assistant includes comparing the active voice measure to the threshold value to determine whether the particular user is engaging in a hotword-free interaction with the automated assistant.
Claims
1. A method implemented by one or more processors of a client device, the method comprising: determining, based on processing at least one image frame generated by a camera of the client device, that a face of a user captured by the at least one image frame corresponds to an account registered with the client device; identifying, for the account registered with the client device, one or more personalized parameters to be utilized in determining whether the user is engaging in a hotword-free interaction with an automated assistant of the client device; generating one or more measures for the user based on processing a plurality of image frames generated by the camera, wherein the plurality of image frames include the face of the user and include or are in addition to the at least one image frame; In response to determining that the face corresponds to the account registered with the client device: using the one or more personalized parameters with the one or more measures to determine whether the user is engaging in a hotword-free interaction with the automated assistant; as well as When it is determined that the user is engaging in a hotword-free interaction with the automated assistant: Processing performed by the automated assistant is automatically adapted.
2. The method of claim 1, wherein the one or more personalized parameters include a personalized threshold, and wherein using the personalized parameters with the one or more measures to determine whether the user is engaging in a hotword-free interaction with the automated assistant comprises: A measure of the one or more measures is compared to the personalized threshold to determine whether the user is engaging in the hotword-free interaction with the automated assistant.
3. The method of claim 1, wherein the one or more personalized parameters include a personalized measure adjustment, and wherein using the personalized parameters with the one or more measures to determine whether the user is engaging in a hotword-free interaction with the automated assistant comprises: adjusting a given measure of the one or more measures according to the personalized measure adjustment to generate an adjusted measure; as well as The adjusted measure is used to determine whether the user is engaging in the hotword-free interaction with the automated assistant.
4. A method as claimed in any preceding claim, Wherein generating the one or more measures for the user based on processing the plurality of image frames generated by the camera comprises: generating, based on one of the plurality of images, a gaze direction of an eye of the face captured in the one image; and Wherein using the one or more personalized parameters with the one or more measures to determine whether the user is engaging in a hotword-free interaction with the automated assistant comprises: determining, based on the gaze direction, using at least one of the personalized parameters, whether the gaze direction is directed toward the device; as well as The determination of whether the gaze direction is toward the device is used to determine whether the user is engaging in a hotword-free interaction with the automated assistant.
5. The method of any preceding claim, wherein generating the one or more measures for the user based on processing the plurality of image frames generated by the camera comprises: generating an active speech measure based on a plurality of the plurality of images, the active speech measure indicating whether the user is actively speaking; and Wherein using the personalized parameter with the one or more measures to determine whether the user is engaging in a hotword-free interaction with the automated assistant comprises: The active voice measure is compared to a personalized threshold value of the personalized parameter to determine whether the user is engaging in the hotword-free interaction with the automated assistant.
6. The method of claim 5, wherein generating the active speech measure is further based on processing audio data frames corresponding in time to the plurality of the plurality of images together with the plurality of the plurality of images.
7. The method of any preceding claim, further comprising, before determining that the face corresponds to the account registered with the client device: The one or more personalized parameters are automatically generated based on measures generated based on one or more previous interactions with the automated assistant, wherein the one or more previous interactions are utilized based on being determined to have been performed by the user.
8. The method of claim 7, further comprising: The one or more of the previous interactions are identified based on the one or more of the previous interactions each being initiated by the user invoking the automated assistant by speaking a hotword.
9. The method of claim 7 or claim 8, further comprising: The one or more of the previous interactions are identified based on each being a hotword-free interaction that is verified as being intended based on additional user interface input from the user.
10. The method of claim 7, claim 8 or claim 9, further comprising: The one or more of the previous interactions are identified based on the one or more of the previous interactions each being performed during a sign-in process of the user.
11. A method implemented by one or more processors, the method comprising: identifying each interaction between a particular user and the automated assistant; For each of these interactions: generating a corresponding gaze measure based on processing a corresponding image frame from the interaction; generating a personalized gaze parameter for the particular user based on the corresponding gaze measure; storing the personalized gaze parameters in association with an account of the particular user; After storing the personalized gaze parameters in association with the account of the particular user: determining, based on processing at least one image frame generated by a camera of a client device, that a face of the particular user captured by the at least one image frame corresponds to the account; generating a gaze measure for the particular user based on processing at least the image frame or additional image frames generated by the camera; In response to determining that the face corresponds to the account: using the personalized gaze parameter stored in association with the account with the gaze measure to determine whether the particular user is engaging in a hotword-free interaction with the automated assistant; as well as When it is determined that the specific user is engaging in a hotword-free interaction with the automated assistant: Processing performed by the automated assistant is automatically adapted.
12. The method of claim 11, wherein the personalized gaze parameters reflect a gaze area of the user when interacting with the automated assistant.
13. The method of claim 12, wherein the gaze measure is a direction of the user's gaze, and wherein using the personalized gaze parameter with the gaze measure to determine whether the user is engaging in a hotword-free interaction with the automated assistant comprises: determining, based on the direction of gaze, whether the gaze is directed toward the gaze area reflected by the personalized gaze parameters; as well as Whether the user is engaging in a hotword-free interaction with the automated assistant is determined based on whether the gaze is directed toward the gaze area.
14. The method of claim 11, wherein the personalized gaze parameter reflects a gaze persistence of the user while interacting with the automated assistant, wherein the gaze measure reflects a current gaze persistence, and wherein using the personalized gaze parameter with the gaze measure to determine whether the user is engaging in a hotword-free interaction with the automated assistant comprises: determining whether the gaze is persistently directed toward the client device based on comparing the gaze measure to the personalized gaze parameter; as well as Whether the user is engaging in a hotword-free interaction with the automated assistant is determined based on whether the gaze is persistently directed toward the client device.
15. The method of any one of claims 11 to 14, wherein determining whether the particular user is engaging in a hotword-free interaction with the automated assistant is also based on an active voice measure generated based on processing one or more image frames generated by the camera.
16. The method of claim 15, wherein the active speech measure is further based on processing temporally corresponding frames of audio data together with the one or more image frames.
17. The method of any one of claims 11 to 16, wherein determining whether the particular user is engaging in a hotword-free interaction with the automated assistant is also based on a distance measure of the particular user relative to the client device, the distance measure being generated based on processing one or more image frames generated by the camera.
18. A method implemented by one or more processors, the method comprising: identifying each interaction between a particular user and the automated assistant; For each of these interactions: generating a corresponding active voice measure based on processing the corresponding image data and audio data from the interaction; generating a personalized active voice parameter for the particular user based on the corresponding active voice measure; storing the personalized active voice parameters in association with the particular user's account; After storing the personalized active voice parameters in association with the account of the particular user: determining, based on processing at least one image frame generated by a camera of a client device, that a face of the particular user captured by the at least one image frame corresponds to the account; generating a current active speech measure for the particular user based on processing a plurality of images generated by the camera together with temporally corresponding audio data; In response to determining that the face corresponds to the account: using the personalized active voice parameter stored in association with the account with the active voice measure to determine whether the particular user is engaging in a hotword-free interaction with the automated assistant; as well as When it is determined that the specific user is engaging in a hotword-free interaction with the automated assistant: Processing performed by the automated assistant is automatically adapted.
19. The method of claim 18, wherein the personalized active voice parameter is a threshold, and wherein using the personalized active voice parameter with the active voice measure to determine whether the particular user is engaging in a hotword-free interaction with the automated assistant comprises: The active speech measure is compared to the threshold to determine whether the particular user is engaging in a hotword-free interaction with the automated assistant.
20. An assistant device, comprising: at least one processor; as well as A memory storing instructions which, when executed, cause the at least one processor to perform operations corresponding to any one of claims 1 to 19.
21. A computer-readable storage medium storing instructions which, when executed, cause at least one processor to perform operations corresponding to any one of claims 1 to 19.
