Adaptive automatic assistant based on detected mouth movement and / or gaze
By detecting the user's mouth movement and directional gaze, the automatic assistant's interaction method is optimized, solving the problems of resource waste and misresponses in contactless interaction, and achieving more efficient resource utilization and interactive experience.
Patent Information
- Application Number
- CN202410569162.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2018-05-04
- Publication Date
- 2024-08-30
AI Technical Summary
Existing automatic assistant interaction technology has a waste of resources and unnecessary computing burden when processing the user's verbal commands. Especially in contactless interaction scenarios, it is difficult to efficiently utilize network and computing resources, and may lead to the risk of inappropriate response.
Optimize the automatic assistant's interface output and data processing by detecting the user's mouth movement and directional gaze, such as reducing the volume, aborting rendering when appropriate, providing human-perceivable prompts, and only processing and transmitting sensor data when necessary, leveraging local machine learning The model monitors user presence and processes visual data to reduce false positive adaptations.
It improves the resource utilization efficiency of automatic assistant interaction, reduces unnecessary computing and network burdens, reduces the risk of false responses, and extends the operating capacity and network capabilities of the device without increasing infrastructure or computing resources.
Smart Images

Figure CN118567472A
Abstract
Description
[0001] Description of the case
[0002] This application is a divisional application of Chinese invention patent application No. 201880094290.7, with an application date of May 4, 2018. Background Art
[0003] 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 the automated assistant) may provide commands and / or requests to the automated assistant using verbal natural language input (i.e., utterances) and / or by providing textual (e.g., typed) natural language input, 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 can include audible user interface output and / or visual user interface output. Summary of the invention
[0004] Many client devices that facilitate interaction with an automated assistant, also referred to herein as "assistant devices," enable a user to engage in contactless interaction with the automated assistant. For example, assistant devices often include microphones that allow a user to provide voice utterances to invoke and / or otherwise interact with the automated assistant. The assistant devices described herein can 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 contactless interaction with the automated assistant.
[0005] Embodiments disclosed herein relate to adapting an automated assistant based on detecting: (1) movement of a user's mouth (also referred to herein as "mouth movement"); and / or (2) a user's gaze directed at an assistant device (also referred to herein as "directional gaze"), wherein the assistant device provides an automated assistant interface (graphical and / or audible) of the automated assistant. Detection of mouth movement and / or directional gaze can be based on processing of visual data from one or more visual components associated with the assistant device, such as a camera incorporated into the assistant device, or a camera separate from (but in communication with) a client device. The detected mouth movement can be a movement indicating that the user (to whom the mouth belongs) is speaking. This is in contrast to movement of the user's mouth that may occur due to the user turning his / her head, stepping left / right, etc. As will be explained below, the embodiments described herein can provide efficiencies in computing resources and communications used to implement the automated assistant. For example, as will be apparent from the discussion below, aspects of the embodiments can result in more selective initiation of communications over a data network and a corresponding reduction in data traffic over the network. Because some potential communications from the client device are filtered out before any contact with the remote system is initiated, for example, more selective initiation of network communications from the client device may further result in more efficient utilization of computing resources at the remote system with which communications are initiated. Improved efficiency in the use of data networks and computing resources on the remote system can result in significant savings in the use of power by transmitters and receivers in the network and in memory operations and processing usage at the remote system. Corresponding effects may also be experienced at the client device, as described below. These effects, particularly over time and as the automated assistant operates, allow significant additional capacity to be experienced in the network and throughout the computing apparatus (including the devices and systems running the assistant). This additional capacity, whether or not it is assistant-related, can be used for further communications in the data network without the need to expand network capabilities, for example, through additional or updated infrastructure and additional computing operations in the computing apparatus. Other technical improvements will be apparent from the following discussion.
[0006] As an example, the automated assistant may be adapted in response to detecting a user mouth movement (optionally within a threshold duration), detecting the user's gaze being directed at the assistant device (optionally within the same or different threshold duration), and optionally the user's mouth movement and directional gaze occurring simultaneously or within a threshold time proximity of each other (e.g., within 0.5 seconds, within 1.0 seconds, or other threshold time proximity). For example, the automated assistant may be adapted in response to detecting a mouth movement having a duration of at least 0.3 seconds, and in response to detecting a directional gaze having a duration of at least 0.5 seconds and occurring simultaneously with or within 0.5 seconds of the mouth movement.
[0007] In some embodiments, the automated assistant may be adapted in response to detecting mouth movement and directional gaze alone. In some other embodiments, the automated assistant is adapted in response to detecting mouth movement and directional gaze, and detecting the occurrence of one or more other conditions. The occurrence of one or more other conditions can include, for example: based on audio data, detecting voice activity (e.g., any voice activity, voice activity of the user providing mouth movement and directional gaze, voice activity of the authorized user, voice activity including a verbal invocation phrase) that is close in time to the detected mouth movement and directional gaze; based on visual data, detecting a user's gesture (e.g., "wave", "thumbs up", "high five") that occurs simultaneously with the detected mouth movement and directional gaze or that is close in time to the detected mouth movement and directional gaze; based on audio data and / or visual data, detecting that the user is an authorized user; and / or detecting other conditions.
[0008] In some embodiments disclosed herein, the adaptation of the automated assistant that occurs in response to detecting mouth movement and directional gaze may include an adaptation of the rendering of a user interface output by the assistant device. In some of those embodiments, the adaptation of the rendering of the user interface output includes reducing the volume of an audible user interface output rendered by the assistant device, and / or discontinuing audible user interface output and / or video output visually rendered by the assistant device.
[0009] As an example, assume that a user's mouth movement is detected when the user begins to speak a speech directed to the automated assistant, and assume that a directional gaze of the user is detected that occurs simultaneously with the detected mouth movement. It is further assumed that before and during the detection of mouth movement and directional gaze, the assistant device is rendering audible and / or visual content. For example, the automated assistant client of the assistant device may cause an audible rendering of a song and a visual rendering of a song video. In response to the detection of mouth movement and directional gaze, the automated assistant client may reduce the volume of the audible rendering of the song (while continuing the audible rendering and the visual rendering of the video at a reduced volume). Reducing the volume can improve the processing performance of audio data that captures spoken speech, such as audio data captured via one or more microphones of the assistant device. For example, because reducing the volume can improve speech-to-text processing of audio data, because reducing the volume can improve voice activity detection (VAD) based on audio data, because reducing the volume can improve speaker segmentation (speaker diarization) based on audio data, and so on. Improved audio data processing can increase the probability that the automated assistant correctly interprets the spoken speech and responds in an appropriate manner. This can result in improved user-assistant interaction and / or mitigate the risk of inappropriate automated assistant responses, which may cause the user to repeat the spoken utterance (and thereby require expending computing resources in processing the repeated spoken utterance and generating and rendering another response).
[0010] As a variation of the above example, instead of reducing the volume, the adaptation may include suspending the audible rendering of the song (and optionally the video). As yet another variation of the above example, the adaptation may initially include reducing the volume of the audible rendering of the song, and the adaptation may further include subsequently suspending the audible rendering of the song in response to the occurrence of one or more other conditions. For example, the reduction in volume may occur in response to detecting mouth movement and directional gaze alone, and the suspension may occur in response to a later detection of the occurrence of speech activity based on processing of the audio data.
[0011] In some embodiments, the adaptation of the rendering of the user interface output by the assistant device may additionally or alternatively include the rendering of human-perceptible prompts. The rendering of human-perceptible prompts may be optionally provided before further adaptation of the automated assistant, and may indicate (directly or indirectly) that further adaptation is about to occur. For example, the rendering of human-perceptible prompts may occur in response to the initial detection of mouth movement and directional gaze, and further adaptation may occur in response to the detection of continued mouth movement and / or continued directional gaze. Continuing with this example, further adaptation may include the transmission of certain sensor data generated by one or more sensor components of the client device to one or more remote automated assistant components by the client device (however, sensor data from the sensor components is not transmitted before further adaptation). Certain sensor data may include, for example, visual and / or audio data captured after the detection of mouth movement and directional gaze and / or buffered visual and / or audio data captured during the execution of mouth movement and / or directional gaze. By providing human-perceptible prompts, the user may be warned of the upcoming further adaptation and be provided with an opportunity to prevent further adaptation. For example, where further adaptation depends on the user's continued directional gaze, the user can shift his / her gaze to prevent further adaptation (e.g., if the user does not intend to interact with the automated assistant and cause sensor data to be transmitted). In this way, further adaptation and the utilization of network and / or computing resources resulting from further adaptation can be prevented. Various human-perceivable prompts can be provided, such as audible "ding" sounds, audible "spoken output" (e.g., "Looks like you're talking to the Assistant, look away if you don't want to"), visual symbols on the assistant device display, illumination of the assistant device's light emitting diodes, etc.
[0012] In some embodiments, the adaptation of the rendering of the user interface output by the assistant device may additionally or alternatively include customizing the rendered content for the user corresponding to the detected mouth movement and directional gaze. Customizing the rendered content may include determining the distance of the user relative to the assistant device, and rendering the content in a manner based on the distance. For example, audible content may be rendered based on the volume of the user's distance corresponding to the detected mouth movement and directional gaze. Moreover, for example, visual content may be rendered with a size based on the distance of the user corresponding to the detected mouth movement and directional gaze. As another example, content may be generated based on distance. For example, when the distance is relatively close to the client device, more detailed content may be generated, and when the distance is relatively far from the client device, less detailed content may be generated. As a specific example, in response to the spoken utterance of "what's the weather", a one-day weather forecast may be generated at a relatively close distance, while a three-day weather forecast may be generated at a relatively far distance. The distance of the user may be determined in response to the user corresponding to the detected mouth movement and directional gaze (which may indicate that the user is verbally engaged with the automated assistant). This is useful in situations where multiple users (at multiple distances) are captured in the visual data, as customizing rendered content for the distance of the user corresponding to detected mouth movement and directional gaze can customize rendered content for the user actively participating in a conversation with the automated assistant.
[0013] In some embodiments disclosed herein, and as mentioned above, adaptation of the automated assistant that occurs in response to detecting mouth movements and directional gaze may additionally and / or alternatively include adaptation of processing of sensor data, such as processing of audio data and / or visual data.
[0014] In some of those embodiments, adaptation may include initiation of certain processing of certain sensor data (e.g., audio data, video, images, etc.) in response to detection of mouth movement and directional gaze (however, certain processing has not been performed before). For example, before detection of mouth movement and directional gaze, the automated assistant may perform only limited (or no) processing on certain sensor data (such as audio data, video / image data, etc.). For example, before such detection, the automated assistant may process audio data locally while monitoring for explicit call phrases, but after local processing, the data will be "discarded" without causing the audio data to be processed by one or more other components that implement the automated assistant (e.g., a remote server device that processes user input and generates an appropriate response). However, in response to detection of mouth movement and directional gaze (and optionally the occurrence of one or more other conditions), such data may be processed by additional components. In these and other ways, in response to detection of mouth movement and directional gaze, processing and / or network resources may be reduced by only transmitting and / or performing certain processing of certain sensor data.
[0015] In some additional or alternative embodiments described herein, the adaptation of the processing of sensor data may include adapting local and / or remote processing based on the determined position of the user in which mouth movement and directional gaze are detected. The position of the user may be relative to the client device and may be determined, for example, based on the portion of the visual data determined to correspond to the user. The processing of audio data based on the position of the user may include, for example, isolating the portion of the audio data corresponding to the spoken utterance and / or removing background noise from the audio data. Such processing may rely on the determined position and beamforming and / or other techniques when isolating portions of the audio data and / or removing background noise from the audio data. This may improve the processing of audio data in environments such as having significantly large background noise, multiple speakers speaking simultaneously, etc.
[0016] In some embodiments, in monitoring mouth movement and monitoring gaze directed toward a client device, a trained machine learning model (e.g., a neural network model) stored locally on the client device is used by the client device to at least selectively process at least a portion of visual data from a visual component of the client device (e.g., image frames from a camera of the client device). For example, in response to detecting the presence of one or more users, the client device may utilize the locally stored machine learning model to process at least a portion of the visual data while monitoring mouth movement and directional gaze for at least a duration (e.g., at least a threshold duration and / or until presence is no longer detected). 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). In embodiments where processing of visual data in monitoring mouth movement and / or directional gaze is dependent on first detecting the presence of one or more users, power resources may be conserved by discontinuous processing of visual data in monitoring mouth movement and / or directional gaze. Rather, in those embodiments, processing of visual data in monitoring mouth movement and / or directional gaze occurs only in response to detecting the presence of one or more users in the assistant device's environment via one or more lower power consumption techniques.
[0017] In some embodiments where local machine learning models are used to monitor mouth movements and directional gaze, at least one mouth movement machine learning model is used to monitor mouth movements, and a separate gaze machine learning model is used to monitor directional gaze. In some versions of those embodiments, one or more "upstream" models (e.g., object detection and classification models) can be utilized to detect portions of visual data (e.g., an image) that may be a face, may be eyes, may be a mouth, etc. - and process those portions using corresponding machine learning models. For example, an upstream model can be used to detect the face and / or eye portions of an image and processed using a gaze machine learning model. Also, for example, an upstream model can be used to detect the face and / or mouth portions of an image and processed using a mouth movement machine learning model. As yet another example, an upstream model can be used to detect human portions of an image and can be processed using both a gaze detection machine learning model and a mouth movement machine learning model.
[0018] In some embodiments, face matching, eye matching, voice matching, and / or other techniques can be used to identify content rendered by an automated assistant application of a client device that is customized for a specific user profile associated with mouth movements and / or directional gaze. The rendering of customized content can be a full or partial adaptation of the automated assistant in response to the detection of mouth movements and directional gaze. Optionally, the identification of a specific user profile occurs only after the mouth movement and directional gaze have been detected. In some embodiments, and as mentioned above, in order to adapt the automated assistant, one or more additional conditions may also need to occur - where the additional conditions are in addition to gaze and / or mouth movement detection. For example, in some embodiments, the additional conditions may include identifying that the user providing the mouth movement and directional gaze is associated with a user profile authorized to the client device (e.g., using face matching, voice matching, and / or other techniques).
[0019] In some embodiments, certain parts of the video / image may be less filtered out / ignored / weighted when detecting mouth movements and / or gaze. For example, a TV captured in a video / image may be ignored to prevent false detections due to people rendered by the TV (e.g., a weatherman). For example, in response to detecting a certain display frequency in the portion on multiple frames for the portion (i.e., matching the TV refresh rate), etc., a portion of the image may be determined to correspond to a TV based on a separate object detection / classification machine learning model. Such a portion may be ignored in the mouth movement and / or directional gaze detection techniques described herein to prevent mouth movement and / or directional gaze from being detected from a TV or other video display device. As another example, a photo frame may be ignored. These and other techniques may mitigate false positive adaptations of an automated assistant, which may save various computational and / or network resources that would otherwise be consumed in false positive adaptations. Moreover, in various embodiments, once the location of a TV, photo frame, etc. is detected, it may optionally continue to be ignored over multiple frames (e.g., while intermittently verifying until motion of a client device or object is detected, etc.). This may also save various computational resources.
[0020] The above description is provided as an overview of various embodiments disclosed herein. These various embodiments as well as additional embodiments are described in more detail herein.
[0021] In some embodiments, a method performed by one or more processors of a client device is provided that facilitates contactless interaction between one or more users and an automated assistant. The method includes receiving a stream of image frames based on the output of one or more cameras from the client device. The method further includes processing the image frames of the stream using at least one trained machine learning model stored locally on the client device to monitor for the occurrence of both: a user's gaze directed toward one or more cameras of the client device and a user's mouth movement. The method further includes detecting the occurrence of both: a user's gaze and a user's mouth movement based on monitoring. The method further includes: in response to detecting the occurrence of both a user's gaze and a user's mouth movement, performing one or both of the following: adapting the rendering of a user interface output of the client device; and adapting the audio data processing performed by the client device.
[0022] These and other implementations of the techniques described herein may include one or more of the following features.
[0023] In some embodiments, in response to detecting the occurrence of both a user's gaze and a user's mouth movement, an adaptive rendering of a user interface output of a client device is performed. In some of those embodiments, the adaptive rendering of the user interface output of the client device includes: reducing the volume of an audible user interface output rendered by the client device. In some versions of those embodiments, the method further includes performing voice activity detection of audio data that is temporally consistent with the user's mouth movement; and determining the occurrence of voice activity based on the voice activity detection of the audio data that temporally corresponds to the user's mouth movement. In those versions, reducing the volume of the audible user interface output rendered by the client device is further responsive to determining the occurrence of voice activity, and is based on the occurrence of voice activity being for audio data that temporally corresponds to the user's mouth movement.
[0024] In some embodiments where rendering of a user interface output adapted for a client device is performed in response to detecting both a user's gaze and a user's mouth movement, rendering of the adapted user interface output includes suspending rendering of an audible user interface output rendered by the client device. In some of those embodiments, the method further includes performing voice activity detection of audio data that is temporally consistent with the user's mouth movement, and determining an occurrence of voice activity based on the voice activity detection of the audio data that temporally corresponds to the user's mouth movement. In those embodiments, suspending rendering of an audible user interface output rendered by the client device is further responsive to determining an occurrence of voice activity, and based on the occurrence of voice activity being for audio data that temporally corresponds to the user's mouth movement.
[0025] In some embodiments: adapting rendering of a user interface output of a client device includes rendering a human-perceptible prompt; adapting audio data processing performed by the client device in response to detecting occurrences of both a user's gaze and a user's mouth movement; adapting audio data processing performed by the client device includes initiating local automatic speech recognition at the client device; and initiating local automatic speech recognition is further in response to detecting that the user's gaze continues to be directed toward one or more cameras of the client device after rendering the prompt.
[0026] In some embodiments: adapting rendering of a user interface output of a client device includes rendering a human-perceptible prompt; adapting audio data processing performed by the client device in response to detecting occurrence of both a user's gaze and a user's mouth movement; adapting audio data processing performed by the client device includes initiating transmission of audio data captured via one or more microphones of the client device to a remote server associated with the automated assistant; and initiating transmission of the audio data to the remote server is further responsive to detecting, after rendering the prompt, that the user's gaze continues to be directed toward one or more cameras of the client device.
[0027] In some embodiments, adapting the audio data processing performed by the client device is performed in response to detecting the occurrence of both the user's gaze and the user's mouth movement. In some of those embodiments, adapting the audio data processing performed by the client device includes initiating the transmission of audio data captured via one or more microphones of the client device to a remote server associated with the automated assistant. In some versions of those embodiments, the method further includes: performing voice activity analysis on certain audio data included in or preceding the audio data that is temporally consistent with the user's mouth movement; and determining the occurrence of voice activity based on the voice activity analysis of certain audio data that corresponds in time to the user's mouth movement. In those versions, initiating the transmission of the audio data is further responsive to determining the occurrence of voice activity and based on the occurrence of the voice activity being for audio data that corresponds in time to the user's mouth movement.
[0028] In some embodiments in which adapting audio data processing performed by a client device is performed in response to detecting occurrences of both a user's gaze and a user's mouth movement, adapting the audio data processing includes: determining a position of the user relative to the client device based on one or more image frames; and using the user's position when processing audio data captured via one or more microphones of the client device. In some versions of those embodiments, using the user's position when processing audio data captured via one or more microphones of the client device includes using the position when isolating portions of the audio data corresponding to spoken utterances of the user. In some additional or alternative versions of those embodiments, using the user's position when processing audio data captured via one or more microphones of the client device includes using the position when removing background noise from the audio data.
[0029] In some embodiments, processing image frames of a stream using at least one trained machine learning model stored locally on a client device to monitor a user's gaze and the occurrence of the user's mouth movement includes: using a first trained machine learning model to monitor the occurrence of the user's gaze; and using a second trained machine learning model to monitor the user's mouth movement.
[0030] In some implementations, the method further includes: detecting the presence of a human in an environment of the client device based on a signal from the presence sensor; and causing one or more cameras to provide a stream of image frames in response to detecting the presence of the human in the environment.
[0031] In some embodiments, a client device is provided, and the client device includes at least one visual component, at least one microphone, one or more processors, and a memory operably coupled to the one or more processors. The memory stores instructions, and the instructions, in response to the one or more processors executing the instructions, cause the one or more processors to perform the following operations: receiving a visual data stream based on the output of the visual component of the client device; using at least one trained machine learning model stored locally on the client device to process the visual data of the stream to monitor the occurrence of the following two: the user's gaze is directed toward the visual component of the client device, and the user's mouth movement; based on the monitoring, detecting the occurrence of the following two: the user's gaze and the user's mouth movement; and in response to detecting the occurrence of both the user's gaze and the user's mouth movement: adapting the rendering of the user interface output of the client device.
[0032] In some embodiments, a system is provided, the system comprising at least one visual component, one or more microphones, and one or more processors that receive a visual data stream based on an output from the visual component. One or more of the processors are configured to: use at least one trained machine learning model to process the visual data of the stream to monitor the occurrence of the following two: a user's gaze directed toward the visual component, and a user's mouth movement; based on the monitoring, detect the occurrence of the following two: the user's gaze and the user's mouth movement; and in response to detecting the occurrence of both the user's gaze and the user's mouth movement, perform the following two: adapt the rendering of the user interface output of the client device; and adapt the processing of audio data captured via one or more microphones.
[0033] In addition, some embodiments include one or more processors of one or more computing devices, wherein the one or more processors are operable to execute instructions stored in an associated memory, and wherein the instructions are configured to cause the execution of any of the foregoing methods. Some embodiments also include one or more non-transitory computer-readable storage media storing computer instructions executable by the one or more processors to perform any of the foregoing methods.
[0034] It should be appreciated that all combinations of the foregoing concepts and additional concepts described in greater detail herein are contemplated as being part of the subject matter disclosed herein. For example, all combinations of the claimed subject matter appearing at the end of this disclosure are contemplated as being part of the subject matter disclosed herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a block diagram of an example environment in which implementations disclosed herein may be implemented.
[0036] Figure 2A and Figure 2B Example process flows demonstrating various aspects of the present disclosure are depicted, according to various implementations.
[0037] Figure 3 Depicts an example of an assistant device and a user providing directional gaze and speaking (thereby causing mouth movement), and also depicts an image captured by a camera of the assistant device while the user is providing directional gaze and speaking.
[0038] Figure 4A Depicted is a flow chart illustrating an example method according to implementations disclosed herein.
[0039] Figure 4B , Figure 4C , Figure 4D as well as Figure 4E Both depict diagrams Figure 4A A flowchart of a specific example of some blocks of an example method.
[0040] Figure 5 An example architecture of a computing device is illustrated. DETAILED DESCRIPTION
[0041] Figure 1 An example environment in which the techniques disclosed herein may be implemented is illustrated. The example environment includes one or more client computing devices 106. Each client device 106 may execute a respective instance of an automated assistant client 110. One or more cloud-based automated assistant components 130 can be implemented on one or more computing systems (collectively referred to as "cloud" computing systems) that are communicatively coupled to the client devices 106 via one or more local area networks and / or wide area networks (e.g., the Internet), generally indicated at 114. The cloud-based automated assistant components 130 can be implemented, for example, via a cluster of high-performance servers.
[0042] In various embodiments, an instance of automated assistant client 110, through its interaction with one or more cloud-based automated assistant components 130, may form a logical instance of automated assistant 120 that appears to the user as a user engaging in human-computer interaction (e.g., verbal interaction, gesture-based interaction, and / or touch-based interaction). Such an instance of automated assistant 120 is Figure 1 106. It should therefore be understood that each user that engages with an automated assistant client 110 executing on a client device 106 may actually engage with his or her own logical instance of 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 an automated assistant client 110 executing on a client device 106 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 embodiments, automated assistant 120 may respond to requests from any user, regardless of whether the user is actually "served" by that particular instance of automated assistant 120.
[0043] One or more client devices 106 may include, for example, one or more of the following: 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 TV (or a standard TV equipped with a networked dongle with automated assistant capabilities), 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, some client devices 106 may take the form of assistant devices that are primarily designed to facilitate interaction between a user and an automated assistant 120 (e.g., a stand-alone interactive device with a speaker and a display).
[0044] The client device 106 can be equipped with one or more visual components 107 having one or more fields of view. The visual component 107 can take various forms, such as a thematic camera, a stereo camera, a LIDAR component, a radar component, etc. The one or more visual components 107 can 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 106 is deployed. These visual frames can then be analyzed, for example, by a gaze and mouth module 116 of an adaptation engine 115, at least selectively, to monitor the occurrence of the following: a user's mouth movement captured by the visual frame (e.g., a movement of the mouth indicating that the user is speaking) and / or a directional gaze from the user (e.g., a gaze directed toward the client device 106). The gaze and mouth module 116 can utilize one or more trained machine learning models 117 when monitoring the occurrence of mouth movement and / or directional gaze.
[0045] In response to detecting the mouth movement and directional gaze (and optionally in response to detecting one or more other conditions by other condition module 118), adaptation engine 115 can adapt one or more aspects of automated assistant 120, such as aspects of automated assistant client 110 and / or aspects of cloud-based automated assistant component 130. Such adaptation can include, for example, adapting user interface output (e.g., audible and / or visual) rendered by client device 106 and controlled by automated assistant client 110. Such adaptation can additionally or alternatively include, for example, adapting sensor data processing by client device 106 (e.g., by one or more components of an automated assistant client) and / or by one or more cloud-based automated assistant components 130.
[0046] As a non-limiting example of adapting sensor data processing, prior to detecting mouth movement and directional gaze, visual data and / or audio data captured at client device 106 can be processed and / or temporarily buffered only locally at client device 106 (i.e., without being transmitted to cloud-based automated assistant component 130). However, in response to detecting mouth movement and directional gaze, such processing can be adapted by causing the audio data and / or visual data (e.g., most recently buffered data and / or data received after detection) to be transmitted to cloud-based automated assistant component 130 for further processing. For example, detection of mouth movement and directional gaze can eliminate the need for a user to utter an explicit invocation phrase (e.g., "OK Assistant") in order to have the user's spoken utterance fully processed by automated assistant 120 and for response content to be generated by automated assistant 120 and rendered to the user.
[0047] For example, rather than the user needing to speak “OK Assistant, What's today's forecast” to obtain today's forecast, the user can instead: look at the client device 106, and speak “What's today's forecast” only while looking at the client device 106 or in temporal proximity to looking at the client device 106 (e.g., within a time threshold before and / or after looking at the client device 106). Data corresponding to the spoken utterance “What's today's forecast” (e.g., audio data capturing the spoken utterance, or a textual or semantic transformation thereof) can be transmitted by the client device 106 to the cloud-based automated assistant component 130 in response to detecting a mouth movement (caused by speaking all or part of “What's today's weather forecast”) and a directional gaze, and in response to receiving the spoken utterance during and / or in temporal proximity to the mouth movement and directional gaze.
[0048] In another example, rather than the user needing to speak “OK Assistant, turn up the heat” to increase the temperature of his / her home via a connected thermostat, the user can instead: look at the client device 106, and speak “turn up the heat” only while looking at the client device 106 or in temporal proximity to looking at the client device 106 (e.g., within a time threshold before and / or after looking at the client device 106). Data corresponding to the spoken utterance “turn up the heat” (e.g., audio data capturing the spoken utterance or a textual or other semantic transformation thereof) can be transmitted by the client device 106 to the cloud-based automated assistant component 130 in response to detecting a mouth movement (caused by speaking all or part of “turn up the heat”) and a directional gaze, and in response to receiving the spoken utterance during and / or in temporal proximity to the mouth movement and the directional gaze.
[0049] In another example, rather than the user needing to speak “OK Assistant, open the garage door” to open his / her garage, the user can instead: look at the client device 106, and speak “open the garage door” only while looking at the client device 106 or in temporal proximity to looking at the client device 106 (e.g., within a time threshold before and / or after looking at the client device 106). Data corresponding to the spoken utterance “open the garage door” (e.g., audio data capturing the spoken utterance or its text or other semantic data) can be transmitted by the client device 106 to the cloud-based automated assistant component 130 in response to detecting a mouth movement (caused by speaking all or part of “open the garage door”) and a directional gaze, and in response to receiving the spoken utterance during and / or in temporal proximity to the mouth movement and directional gaze.
[0050] In some embodiments, the transmission of data by the client device 106 may further depend on the occurrence of one or more additional conditions determined by the other condition module 118. For example, the transmission of data can be further based on the local voice activity detection processing of the audio data performed by the other condition module 118 indicating the presence of voice activity in the audio data. In addition, for example, the transmission of data can be additionally or alternatively further based on the determination by the other condition module 118 that the audio data corresponds to a user who has provided a gesture and a directional gaze. For example, the direction of the user (relative to the client device 106) can be determined based on the visual data, and the transmission of data can be further based on the determination by the other condition module 118 that the spoken words in the audio data come from the same direction (e.g., using beamforming and / or other techniques). In addition, for example, the user profile of the user can be determined based on the visual data (e.g., using facial recognition), and the transmission of data can be further based on the determination by the other condition module 118 that the spoken words in the audio data have voice characteristics that match the user profile. As yet another example, the transmission of data can additionally or alternatively be further based on a determination by other condition module 118 based on visual data that a user's gesture (e.g., any one of one or more candidate invocation gestures) occurred simultaneously with the user's mouth movement and / or directional gaze, or occurred for a threshold amount of time of the detected mouth movement and / or directional gaze. Other condition module 118 can optionally utilize one or more other machine learning models 119 when determining that other conditions exist. Additional descriptions of embodiments of gaze and mouth module 116 and other condition module 118 are provided herein (e.g., with reference to Figure 2A-2B ). In addition, additional descriptions of embodiments of adapting an automated assistant based on detected mouth movement and / or gaze are provided herein (e.g., with reference to Figures 4B-4D ).
[0051] Each of the client computing device 106 and the computing device operating the cloud-based automated assistant component 130 may include one or more memories for storing data and software applications, one or more processors for accessing data and executing applications, and other components that facilitate communication over a network. The operations performed by the client computing device 106 and / or by the automated assistant 120 may be distributed across multiple computer systems. The automated assistant 120 may be implemented as a computer program running on one or more computers coupled to each other over a network in one or more locations, for example.
[0052] As noted above, in various embodiments, client computing device 106 can operate automated assistant client 110. In some of those various embodiments, automated assistant client 110 can include voice capture module 112, the aforementioned visual capture module 114, and adaptation engine 115, which can include gaze and mouth module 116 and optionally other condition module 118. In other embodiments, one or more aspects of voice capture module 112, visual capture module 114, and / or adaptation engine 115 can be implemented separately from automated assistant client 110, for example, via one or more cloud-based automated assistant components 130.
[0053] In various embodiments, the voice capture module 112, which can be implemented using any combination of hardware and software, can interface with hardware such as a microphone 109 or other pressure sensor to capture an audio recording of the user's spoken words. As will be described below, various types of processing can be performed on this audio recording for various purposes. In various embodiments, the visual capture module 114, which can be implemented using any combination of hardware or software, can be configured to interface with the visual component 107 to capture one or more visual frames (e.g., digital images) corresponding to the optionally adapted field of view of the visual sensor 107.
[0054] As previously mentioned, the voice capture module 112 can be configured to capture the user's voice, for example, via the microphone 109. Additionally or alternatively, in some embodiments, the voice capture module 112 can be further configured to convert the captured audio to text and / or other representations or embeddings, for example, using speech-to-text ("STT") processing techniques. However, because the client device 106 may be relatively constrained in computing resources (e.g., processor cycles, memory, battery, etc.), the voice capture module 112 local to the client device 106 can be configured to convert a limited number of different spoken phrases, such as phrases that invoke the automated assistant 120, into text (or other forms, such as lower dimensional embeddings). Other voice inputs can be sent to a cloud-based automated assistant component 130, which can include a cloud-based STT module 132.
[0055] 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 106 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 106, and the local TTS module of the client device 106 can then convert the text data into computer-generated speech that is output locally.
[0056] The cloud-based STT module 132 can be configured to utilize the virtually unlimited resources of the cloud to convert the audio data captured by the voice capture module 112 into text, which can then be provided to the natural language understanding module 135. In some embodiments, the cloud-based STT module 132 can convert the audio recording of the speech into one or more phonemes, and then convert the one or more phonemes into text. Additionally or alternatively, in some embodiments, the STT module 132 can employ a state decoding graph. In some embodiments, the STT module 132 can generate multiple candidate text interpretations of the user's utterance, and utilize one or more techniques to select a given interpretation from the candidates.
[0057] Automated assistant 120 (particularly cloud-based automated assistant component 130) may include intent understanding module 135, the aforementioned TTS module 131, the aforementioned STT module 132, and other components described in more detail herein. In some embodiments, one or more of the modules and / or modules of automated assistant 120 may be omitted, combined, and / or implemented in a component separate from automated assistant 120. In some embodiments, one or more of the components of automated assistant 120, such as intent understanding module 135, TTS module 131, STT module 132, etc., may be implemented at least partially on client device 106 (e.g., in conjunction with or excluding a cloud-based implementation).
[0058] In some embodiments, the automated assistant 120 generates various content to be audibly and / or graphically rendered to the user via the client device 106. For example, the automated assistant 120 can generate content such as a weather forecast, a daily schedule, etc., and can render the content in response to detecting a mouth movement and / or directional gaze from the user as described herein. In addition, for example, the automated assistant 120 can generate content in response to a user's free-form natural language input provided via the client device 106, in response to a user's gesture detected via visual data from the visual component 107 of the client device, and the like. As used herein, a free-form input is an input formulated by a user and is not limited to a group of options presented for selection by the user. The free-form input can be, for example, typed input and / or verbal input.
[0059] Natural language processor 133 of intent understanding module 135 processes natural language input generated by a user via client device 106 and may generate annotated output (e.g., in text form) for use by one or more other components of automated assistant 120. For example, natural language processor 133 may process natural language free-form input generated by a user via one or more user interface input devices of client device 106. The generated annotated output includes one or more annotations of the natural language input and one or more (e.g., all) of the terms of the natural language input.
[0060] In some embodiments, the natural language processor 133 is configured to recognize and annotate various types of grammatical information in the natural language input. For example, the natural language processor 133 may include a morphological module that can separate individual words into morphemes and / or annotate morphemes, for example, with their classes. The natural language processor 133 may also include a part-of-speech tagger that is configured to annotate terms with their grammatical roles. In addition, for example, in some embodiments the natural language processor 133 may additionally and / or optionally include a dependency parser (not depicted) that is configured to determine syntactic relationships between terms in the natural language input.
[0061] In some implementations, the natural language processor 133 may additionally and / or alternatively include an entity tagger (not depicted) configured to annotate entity references in one or more snippets, such as references to people (including, for example, literary characters, celebrities, public figures, etc.), organizations, locations (real and fictional), etc. In some implementations, data about entities may be stored in one or more databases, such as in a knowledge graph (not depicted), and the entity tagger of the natural language processor 133 can leverage such databases in entity tagging.
[0062] In some embodiments, the natural language processor 133 may additionally and / or alternatively include a coreference resolver (not depicted) configured to group or "cluster" references to the same entity based on one or more contextual cues. For example, a coreference resolver may be utilized to resolve the term "there" in "I liked Hypothetical Café last time we ate there" to "Hypothetical Café".
[0063] In some embodiments, one or more components of the natural language processor 133 can rely on annotations from one or more other components of the natural language processor 133. For example, in some embodiments, the entity tagger described can rely on annotations from a coreference resolver and / or a dependency resolver when annotating all mentions of a particular entity. Additionally, for example, in some embodiments, a coreference resolver can rely on annotations from a dependency resolver when clustering references to the same entity. In some embodiments, when processing a particular natural language input, one or more components of the natural language processor 133 can use relevant prior inputs and / or other relevant data outside of the particular natural language input to determine one or more annotations.
[0064] Intent understanding module 135 may also include intent matcher 134 configured to determine the intent of the user engaging in an interaction with automated assistant 120. Figure 1 134 , but in other embodiments, the intent matcher 134 can be an integral part of the natural language processor 133 (or more generally, a pipeline including the natural language processor 133). In some embodiments, the natural language processor 133 and the intent matcher 134 can collectively form the aforementioned intent understanding module 135.
[0065] Intent matcher 134 may use various techniques to determine the user's intent, for example, based on output from natural language processor 133 (which may include annotations and terms of natural language input), based on user touch input at a touch-sensitive display of client device 106, and / or based on gestures and / or other visual cues detected in visual data. In some embodiments, intent matcher 134 may be able to access one or more databases (not depicted) that include, for example, multiple mappings between grammars and response actions (or more generally, intents), visual cues and response actions, and / or touch inputs and response actions. For example, grammars included in the mappings may be selected and / or learned over time and may represent common intents of users. For example, a grammar "play" may be mapped to a user's mobile device. <artist>(play <artist>)" is mapped to a call such that on a client device 106 operated by a user <artist>'s intent to play music in response to an action. Another syntax "[weather|forecast]today" can be able to match user queries such as "what's theweather today" and "what's the forecast for today?". As another example, visual cue-to-action mappings can include "general" mappings that apply to multiple users (e.g., all users) and / or user-specific mappings. Some examples of visual cue-to-action mappings include mappings for gestures. For example, a "wave" gesture can be mapped to an action that causes customized content (customized for the user providing the gesture) to be rendered to the user, a "thumbs-up" gesture can be mapped to a "play music" action; and a "high five" gesture can be mapped to a "routine" of automated assistant actions to be performed, such as turning on a smart coffee maker, turning on certain smart lights, and audibly rendering a news summary.
[0066] In addition to or in lieu of a grammar, in some embodiments, intent matcher 134 can 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 can also be stored in one or more databases and can be trained to recognize intent, for example, by embedding data indicative of a user's utterance and / or any detected user-provided visual cues into a reduced dimensionality space and then determining which other embeddings (and therefore, intents) are closest, for example, using techniques such as Euclidean distance, cosine similarity, etc.
[0067] As above "play <artist>As you can see in the example grammars, some grammars have slots that can be filled with slot values (or "parameters") (e.g., <artist>). Slot values can be determined in a variety of ways. Often the user will proactively provide slot values. For example, for the syntax "Order me a <topping>pizza", the user might very well say the phrase "Order me a sausage pizza", in which case the slot <topping>Additionally or alternatively, if a user invokes a syntax that includes slots to be filled with slot values, and the user does not proactively provide slot values, automated assistant 120 can solicit those slot values from the user (e.g., "what type of crust do you want on your pizza?" In some implementations, slots can be filled with slot values based on visual cues that are detected based on visual data captured by vision component 107. For example, a user can utter something like "Order me this many cat bowls" while holding up three fingers toward vision component 107 of client device 106. Or, a user can utter something like "Find me more movies like this" while holding up a particular movie DVD case.
[0068] In some embodiments, the automated assistant 120 can facilitate (or "arrange") 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 the computing system that operates, for example, a cloud-based automated assistant component 130. One user intent that can be identified by the intent matcher 134 is to engage a third-party application. For example, the automated assistant 120 can provide access to an application programming interface ("API") to a pizza delivery service. A user can invoke the automated assistant 120 and provide a command such as "I'd like to order a pizza". The intent matcher 134 can map this command to a grammar that triggers the automated assistant 120 to engage 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 complete a pizza delivery order. The automated assistant 120 can generate and provide (via the client device 106) a natural language output of the parameters for the requested slot to the user.
[0069] Fulfillment module 138 may be configured to receive the predicted / estimated intent and associated slot value (whether proactively provided by the user or solicited from the user) output by intent matcher 134 and fulfill (or "resolve") the intent. In various embodiments, fulfillment (or "resolution") of the user's intent may cause various fulfillment information (also referred to as "response" information or data) to be generated / obtained, for example, by fulfillment module 138.
[0070] Because intent can be fulfilled in a variety of ways, fulfillment information can take a variety of forms. Assume that a user requests pure information, such as "Where were the outdoor shots of 'The Shining' filmed?" The user's intent can be determined as a search query, for example, by intent matcher 135. The intent and content of the search query can be provided to fulfillment module 138, which can be used as a search query. Figure 1 As depicted in , 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.) to obtain response information. The fulfillment module 138 may provide data indicative of the 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 response information, such as GPS coordinates or other more explicit information, such as "Timberline Lodge, Mt. Hood, Oregon". This response information may form part of the fulfillment information generated by the fulfillment module 138.
[0071] Additionally or alternatively, fulfillment module 138 may be configured to receive the user's intent, e.g., from 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 a response action. The response action may include, for example, 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, fulfillment information may include slot values associated with fulfillment, confirmation responses (which in some cases may be selected from predetermined responses), etc.
[0072] Additionally or alternatively, fulfillment module 138 can be configured to infer the user's intent (e.g., based on time of day, past interactions, etc.) and obtain responsive information to those intents. For example, fulfillment module 138 can be configured to obtain a daily calendar summary for the user, a weather forecast for the user, and / or other content for the user. Fulfillment module 138 can further cause such content to be "pushed" for graphical and / or audible rendering to the user. For example, rendering of such content can be an adaptation that occurs in response to adaptation engine 115 detecting the occurrence of mouth motion and directional gaze.
[0073] The natural language generator 136 can 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 embodiments, the natural language generator 136 can be configured to receive fulfillment information associated with the fulfillment of the intent as input, and generate natural language output based on the fulfillment information. Additionally or alternatively, the natural language generator 136 can receive information from other sources such as third-party applications, which can be used to create natural language output for the user group.
[0074] Reference now Figure 2A and Figure 2B , depicts various examples of how the gaze and mouth module 116 can detect specific mouth movements and / or directional gaze and how the adaptation engine 115 can adapt the automated assistant in response.
[0075] initial turn Figure 2A , the visual capture module 114 provides visual frames to the gaze and mouth module 116. In some embodiments, the visual capture module 114 provides a real-time stream of visual frames to the gaze and mouth module 116. In some of those embodiments, the visual capture module 114 begins to provide visual frames in response to a signal from a separate presence sensor 105 indicating that humans are present in the environment together with the client device 106. For example, the presence sensor 105 can be a PIR sensor and can provide a signal to the visual capture module 114 in response to detecting human presence. Unless human presence is detected, the visual capture module 114 can avoid providing any visual frames to the gaze and mouth module 116. In other embodiments where the visual capture module 114 selectively provides visual frames only to the gaze and mouth module 116, additional and / or alternative prompts can be used to initiate such provision. For example, human presence can be detected based on audio data from the voice capture module 112, based on analysis of visual frames by one or more other components, and / or other signals.
[0076] The gaze and mouth module 116 processes the visual frames to monitor the occurrence of both directional gaze and mouth movement using one or more machine learning models 117. When both directional gaze and mouth movement are detected, the gaze and mouth module 116 provides an indication to the adaptation engine 115 that both gaze and mouth movement are detected.
[0077] exist Figure 2A In the example, the visual frame and / or audio data (provided by the voice capture module 112) are also provided to the other condition module 118. The other condition module 118 optionally uses one or more other machine learning models 119 to process the provided data to monitor the occurrence of one or more other conditions. For example, the other condition can be to detect any voice activity based on the audio data; detect the presence of a spoken call phrase in the audio data; detect voice activity from the direction or position of the user based on the audio data; detect that the user is an authorized user based on the visual frame and / or audio data; detect a gesture of the user (which provides mouth movement and directional gaze) based on the visual frame; etc. When other conditions are detected, the other condition module 118 provides an indication of the occurrence of the other condition to the adaptation engine 115.
[0078] When adaptation engine 115 receives indications of directed gaze and mouth movement, as well as indications of other conditions being close in time, adaptation engine 115 causes automated assistant 120 to adapt 101. For example, adaptation 101 may include adapting rendering of user interface output of client device 106 and / or adapting audio data processing by client device 106.
[0079] In some embodiments, and as with respect to Figure 2B Described in more detail, the gaze and mouth module 116 can use one or more first machine learning models 117 for detecting directional gaze, and one or more second machine learning models 117 for detecting mouth movement. In some other embodiments, the gaze and mouth module 116 can utilize an end-to-end machine learning model that accepts a visual frame (or features thereof) as an input and can be utilized to generate (based on processing the input by the model) an output indicating whether mouth movement and directional gaze have occurred. Such a machine learning model can be, for example, a neural network model, such as a recurrent neural network (RNN) model including one or more memory layers (e.g., a long short-term memory (LSTM) layer). The training of such an RNN model can be based on training examples that include a sequence of visual frames (e.g., a video) as a training example input and an indication of whether the sequence includes both mouth movement and directional gaze as a training example output. For example, the training example output can include one or more values, each value indicating whether there is mouth movement and directional gaze. For example, the training example output can include a sequence of values, each of the values of the sequence for a corresponding one of the visual frames.
[0080] Figure 2B The illustrated example of the mouth movement and gaze detection module 116 includes a mouth module 116A that utilizes a mouth machine learning model 117A when monitoring for occurrences of mouth movement and includes a gaze module 116B that utilizes a gaze machine learning model 117B when monitoring for occurrences of directional gaze. Figure 2B Other condition modules 118 are not shown in FIG. 1 , but can also be optionally used as in Figure 2A A similar approach as described utilizes the other condition module 118 in conjunction with the mouth module 116A and the gaze module 116B.
[0081] exist Figure 2B , the visual capture module 114 provides the visual frames to the detection and classification module 116C. The detection and classification module 116C utilizes the object detection and classification machine learning model 117C to classify the various regions of each visual frame. For example, the detection and classification module 116C can classify the human regions (if any) of each visual frame corresponding to humans, and provide indications of such human regions to the mouth module 116A and the gaze module 116B for each visual frame. Moreover, for example, the detection and classification module 116C can classify the regions (if any) of each visual frame corresponding to the facial regions to the mouth module 116A and the gaze module 116B for each visual frame. Similarly, for example, the detection and classification module 116C can classify the regions (if any) corresponding to the eye regions of humans of each visual frame, and provide indications of such regions for each visual frame to the gaze module 116B. As yet another example, the detection and classification module 116C may classify the regions of each visual frame that correspond to the mouth region of a human being, if any, and provide indications of these regions for each visual frame to the mouth module 116A.
[0082] In some embodiments, the mouth module 116A can utilize the provided regions to process only the corresponding portions of each visual frame. For example, the mouth module 116A can "crop" the visual frame and resize it to process only those portions that include human regions or facial regions or mouth regions. In some of those embodiments, the mouth machine learning model 117A can be trained based on the "cropped" visual frames, and the resizing can be to a size that conforms to the input dimension of such a model. In some additional or alternative embodiments, the mouth module 116A can utilize the provided regions to skip processing of certain visual frames altogether (e.g., those indicated as not including human and / or facial regions). In yet other embodiments, the mouth module 116A can utilize the provided regions as an attention mechanism (e.g., as a separate attention input to the mouth machine learning model 117A) to focus the processing of each visual frame.
[0083] Likewise, in some embodiments, the gaze module 116B can utilize the provided regions to process only the corresponding portions of each visual frame. For example, the gaze module 116B can "crop" the visual frame and resize the visual frame to process only those portions that include human regions, or facial regions, or eye regions. In some of those embodiments, the gaze machine learning model 117B can be trained based on the "cropped" visual frames, and the resizing can be to a size that conforms to the input dimension of such a model. In some additional or alternative embodiments, the gaze module 116B can utilize the provided regions to skip processing of certain visual frames altogether (e.g., those indicated as not including human and / or facial regions). In yet other embodiments, the gaze module 116B can utilize the provided regions as an attention mechanism (e.g., as a separate attention input to the gaze machine learning model 117B) to focus the processing of each visual frame.
[0084] In some embodiments, the detection and classification model 116C can provide other condition modules 118 (for simplicity, in Figure 2B 10 (not depicted) additionally or alternatively provide indications of certain regions for use by other condition module 118. For example, when detection of gestures is an additional condition for adapting the automated assistant, other condition module 118 may use body regions in detecting gestures using corresponding gesture machine learning models.
[0085] In some embodiments, the detection and classification model 116C can additionally or alternatively provide indications of regions classified as TV or other video display sources to the mouth module 116A and gaze module 116B. In some of those embodiments, the modules 116A and 116B can crop those regions out of the processed visual frames, focus attention outside of those regions, and / or otherwise ignore those regions in detection, or make the chance that a detection will be based on such regions less likely. In these and other ways, false positive adaptations of the automated assistant can be mitigated.
[0086] As mentioned above, the mouth module 116A can use one or more mouth machine learning models 117A to detect mouth movements. Such machine learning models can be, for example, neural network models, such as RNN models including one or more storage layers. Such RNN models can be trained based on training examples, which include a sequence of visual frames (e.g., a video) as a training example input and an indication of whether the sequence includes one or more specific mouth movements as a training example output. For example, the training example output can be a single value indicating whether there is any mouth movement indicating that the corresponding user is speaking. For example, when there is no mouth movement, the single value can be "0", and when there is a mouth movement indicating that the user is speaking, it can be "1". For example, the training example output can include one or more values, each indicating whether there is any mouth movement indicating that the corresponding user is speaking. For example, the training example output can include a sequence of values, where each value in the series of values is for a corresponding one of the visual frames (e.g., when the model to be trained is a sequence-to-sequence model). The value can be, for example, "0" when there is no mouth movement, and "1" when there is a mouth movement indicating that the user is speaking. As another example, the training example output may include a single value for a sequence of visual frames, where the single value indicates whether there is any mouth movement indicating that the corresponding user is speaking.
[0087] In some of those and / or other embodiments, the mouth module 116A determines mouth movement only when the mouth movement is detected with at least a threshold probability and / or for at least a threshold duration. For example, a sequence-to-sequence RNN model can be used to process the stream of image frames, and processing each frame can produce a corresponding probability that mouth movement is occurring (which can be based on previous frames due to the recursive nature of the network). The mouth movement module can only determine that there is mouth movement if at least X% of the image frame sequence (corresponding to the threshold duration) has a corresponding probability that meets the threshold. For example, assume that X% is 60%, the probability threshold is 0.6, and the threshold duration is 0.25 seconds. Further assume that 5 image frames correspond to 0.5 seconds. If the image frames are processed to produce probabilities of [0.75, 0.85, 0.5, 0.7, 0.9], then mouth movement can be detected because 80% of the frames indicate a probability of mouth movement greater than 0.7. Additional and / or alternative machine learning models and / or techniques can be used to detect mouth movement.
[0088] The gaze module 116A can use one or more gaze machine learning models 117A for detecting directional gaze. Such a machine learning model can be, for example, a neural network model, such as a convolutional neural network (CNN) model. The training of such a CNN model can be based on training examples, which include visual frames (e.g., images) as training example inputs and an indication of whether the image includes a directional gaze as a training example output. For example, the training example output can be a single value indicating whether there is a directional gaze. For example, the single value can be "0" when there is no directional gaze, "1" when there is a gaze directed directly at the sensor that captured the image or directed within 5 degrees of the sensor that captured the image, or "0.75" when there is a gaze directed within 5-10 degrees of the sensor that captured the image, etc.
[0089] In some of those and / or other embodiments, the gaze module 116B determines directional gaze only when the directional gaze is detected with at least a threshold probability and / or within at least a threshold duration. For example, a CNN model can be used to process a stream of image frames, and processing each frame can generate a corresponding probability that the frame includes directional gaze. The gaze module can determine that there is directional gaze only when at least X% of the sequence of image frames (which corresponds to the threshold duration) has a corresponding probability that meets the threshold. For example, assuming that X% is 60%, the probability threshold is 0.7, and the threshold duration is 0.5 seconds. It is further assumed that 10 image frames correspond to 0.5 seconds. If the image frames are processed to generate a probability of [0.75, 0.85, 0.5, 0.4, 0.9, 0.95, 0.85, 0.89, 0.6, 0.85], directional gaze can be detected because 70% of the frames indicate directional gaze with a probability greater than 0.7. In these and other ways, directional gaze can be detected even when a user briefly shifts his / her gaze direction.Additional and / or alternative machine learning models (e.g., RNN models) and / or techniques can be utilized to detect directional gaze that occurs for at least a threshold duration.
[0090] Figure 3 Depiction Figure 1 An example of a client device 106 and a visual component 107. Figure 3 In , the example client device is represented as 106A, and further includes a speaker and a display. Figure 3 , an example vision component is represented as 107A and is a camera. Figure 3 Also depicted is user 301 who is speaking (not depicted) and providing a gaze directed toward camera 107A. Figure 3 Also depicted is an example image 360 captured by camera 107A when the user is speaking and providing directional gaze. It can be seen that the user and the television behind the user are captured in image 360 (and thus in Figure 3 is not visible in the perspective view).
[0091] In image 360, a bounding box 362 is provided and represents the image that can be determined (e.g., by Figure 2B In some embodiments, based on the portion being indicated as corresponding to a face, the gaze and mouth movement module operating on the client device 106A can process only that portion of the image (or focus on that portion) when monitoring for directional gaze and mouth movement. Figure 3 Only a single image is depicted in , but in various embodiments directional gaze detection and / or mouth movement detection can be based on a sequence of images as described herein.
[0092] In image 360, a bounding box 363 is also provided and represents an area of the image that can be determined to correspond to a video display and that may produce a false positive visual cue. For example, a television may render a video showing one or more people talking, looking at a camera, etc., any of which may be misinterpreted as mouth movement and / or directional gaze occurring. In some embodiments, Figure 2B The detection and classification module 116C can determine such an area (e.g., based on detecting TV classification) and / or can determine such an area based on analysis of image 360 and previous images to determine that the area has a display frequency corresponding to the display frequency of the video display (e.g., approximately 60 Hz, 120 Hz, and / or other typical video display frequencies). In some embodiments, the mouth movement module and / or gaze module can crop the area from the processed visual frame, focus attention outside of the area, and / or otherwise ignore the area in detection or reduce the chance that the detection will be based on such an area. In these and other ways, false positive adaptations of the automated assistant can be mitigated.
[0093] Figure 4A is a flow chart illustrating an example method 400 according to implementations disclosed herein. Figure 4B , Figure 4C , Figure 4D as well as Figure 4E It is a graphic Figure 4A For convenience, reference is made to the system description for performing the operation. Figure 4A-4D The operations of method 400 are shown in a flowchart of FIG. This 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. Furthermore, while the operations of method 400 are shown in a particular order, this is not intended to be limiting. One or more operations may be reordered, omitted, or added.
[0094] At block 402, the system receives visual data based on output from a vision component. In some embodiments, the vision component can be integrated with a client device including an assistant client. In some embodiments, the vision component can be separate from the client device but in communication with the client device. For example, the vision component can include a standalone smart camera that communicates wired and / or wirelessly with a client device including an assistant client.
[0095] At box 404, the system processes the visual data using at least one machine learning model to monitor the occurrence of both: mouth movement and directional gaze.
[0096] At box 406, the system determines whether both mouth motion and directional gaze have been detected based on the monitoring of box 404. If not, the system proceeds back to box 402, receives additional visual data, and performs another iteration of boxes 404 and 406. In some embodiments, the system determines that both mouth motion and directional gaze have been detected based on detecting that mouth motion and directional gaze occur simultaneously or occur within a threshold time proximity of each other. In some additional or alternative embodiments, the system determines that both mouth motion and directional gaze have been detected based on detecting that mouth motion has at least a threshold duration and / or directional gaze has at least a threshold duration (which can be a threshold duration that is the same or different from the threshold duration that is optionally used for the mouth motion duration). As described herein, the system can utilize one or more machine learning models when executing box 406.
[0097] If, upon iteration of block 406, the system determines that both mouth movement and gaze have been detected based on monitoring of block 404, the system optionally proceeds to block 408 (or, when block 408 is not included, directly to block 410).
[0098] At optional block 408, the system determines whether one or more other conditions are met. If not, the system proceeds back to block 402, receives additional visual data, and performs another iteration of blocks 404, 406, and 408. If so, the system proceeds to block 410. The system can use the visual data, audio data, and / or other sensor or non-sensor data received at block 402 to determine whether one or more other conditions are met. The system can consider a variety of other conditions, such as those explicitly described herein.
[0099] At block 410, the system adapts the automated assistant. The system can adapt the automated assistant in various ways, such as the following: Figures 4B-4D One or more of those described.
[0100] Now go to Figures 4B-4D , diagram Figure 4A Various examples of implementations of block 410 of . Initially turning to 4B, in response to Figure 4A The "yes" determination at blocks 404 and 406 of the example of block 410 is performed, and an initial iteration 410B1 of the example of block 410 is performed. At iteration 410B1, the system provides an audible and / or visual prompt before providing sensor data (e.g., visual data and / or audio data) for remote processing. The rendering of the prompt can (directly or indirectly) indicate that remote processing of audio data and / or visual data is about to occur. Various human-perceivable prompts can be rendered, such as an audible "ding" sound of an auxiliary device and / or the illumination of a light-emitting diode.
[0101] After iteration 410B1, blocks 402, 404, and 406 are executed ( Figure 4A ) further iterations, such as Figure 4B As indicated in , further "yes" determinations are made at blocks 404 and 406. Further "yes" determinations indicate that the user has continued to speak and directed his / her line of sight at the client device. In response to the further "yes" determination, additional iteration 410B2 of the example of block 410 is performed. At iteration 410B2, the system transmits the audio data and / or visual data to the remote component for remote processing. If no further "yes" determination has been made, further adaptation of iteration 410B2 will not occur. For example, if the user shifts his / her line of sight and / or stops speaking, a "no" determination will be made and further adaptation of iteration 410B2 will be prevented.
[0102] Now turn to Figure 4C , in response to Figure 4A In response to a "yes" determination at blocks 404 and 406, the system performs an example 410C1 of block 410. At block 410C1, when a "yes" determination is made at blocks 404 and 406, the system reduces the volume of the audible output being rendered. In some embodiments, further examples of block 410C2 and optional 410C3 are also performed. At block 410C2, the system initiates certain processing of the audio data. In response to Figure 4A The "yes" determination at blocks 404 and 406 of block 410C2 is performed and may include certain processing of the buffered and / or streamed audio data. Certain processing may include, for example, voice activity detection, call phrase detection, and / or other processing. At block 410C3, if certain processing of block 410C2 satisfies one or more conditions, the system aborts the audible output. For example, if block 410C2 indicates that there is a user's spoken utterance in the processed audio data, and / or if the processing indicates that there is a spoken utterance and that the spoken utterance originates from a user direction corresponding to mouth movement and directional gaze, the system may abort the audible processing.
[0103] Now turn to Figure 4D , in response to Figure 4A In response to a "yes" determination at blocks 404 and 406, the system performs an example 410D1 of block 410. At block 410D1, when a "yes" determination is made at blocks 404 and 406, the system aborts the audible output being rendered. In some implementations, another example block 410D2 of block 410 is also performed. At block 410D2, the system initiates some processing of the audio data. Figure 4A The "yes" determination at blocks 404 and 406 of block 410D2 is used to perform block 410D2 and may include some processing of the buffered and / or streaming audio data. The specific processing may include, for example, voice activity detection, invocation phrase detection, transmission of audio data to a remote component for further processing, and / or other processing.
[0104] Now turn to Figure 4E , in response to Figure 4A In response to the "yes" determination at boxes 404 and 406 of the system, example 410E of box 410 is executed. At box 410E, in response to making a "yes" determination at boxes 404 and 406, the system uses the determined user's position when processing audio data. In some embodiments, another example box 410D2 of box 410 is also executed. The user's position can be relative to the client device and can be determined, for example, by the system based on the portion of the visual data determined to correspond to the user. The user's position can be determined based on the user corresponding to the detected mouth movement and directional gaze (which can indicate that the user is trying to interact audibly with the system) and the user's position is used in the processing. Processing of audio data based on the user's position can include, for example, isolating a portion of the audio data corresponding to the spoken words and / or removing background noise from the audio data. When isolating a portion of the audio data and / or removing background noise from the audio data, such processing can rely on the determined position and beamforming and / or other techniques.
[0105] Although separately illustrated FIG. 4A to FIG. 4E Note that in various embodiments, multiple actions may be performed in response to detecting the occurrence of mouth movement and directional gaze. FIG. 4A to FIG. 4E As an example, in response to Figure 4A The "yes" determination at blocks 404 and 406 of Figure 4C 410C1 and 410C2, and the frame 410C2 can include Figure 4E As another example, in response to Figure 4A The initial "yes" determination at blocks 404 and 406 of Figure 4B In response to an additional "yes" determination, block 410B2 can be executed, and the remote component can execute Figure 4E Processing of box 410E.
[0106] Various examples of adapting an automated assistant in response to detecting both mouth movement and directional gaze are described herein. However, in various embodiments, the automated assistant can be adapted in response to detecting only one of the following, optionally in combination with one or more other conditions such as those described herein: mouth movement and directional gaze. For example, in some of those various embodiments, the automated assistant can be adapted in response to detecting a user's directional gaze of at least a threshold duration and other conditions such as the simultaneous occurrence of a user's gesture. Additionally, for example, in some of those various embodiments, the automated assistant can be adapted in response to detecting a user's mouth movement and other conditions such as the simultaneous occurrence and / or temporal proximity of a user's gesture and / or detected voice activity.
[0107] Figure 5 is a block diagram of an example computing device 510 that may optionally be used to perform one or more aspects of the techniques described herein. In some implementations, one or more of the client computing device, the user-controlled resource module 130, and / or other components may include one or more components of the example computing device 510.
[0108] The computing device 510 typically includes at least one processor 514 that communicates with a number of peripheral devices via a bus subsystem 512. These peripheral devices may include a storage subsystem 524 (including, for example, a memory subsystem 525 and a file storage subsystem 526), a user interface output device 520, a user interface input device 522, and a network interface subsystem 516. The input and output devices allow a user to interact with the computing device 510. The network interface subsystem 516 provides an interface to an external network and couples to corresponding interface devices in other computing devices.
[0109] The user interface input devices 522 may include a keyboard, a pointing device such as a mouse, trackball, touchpad or graphic 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 of inputting information into the computing device 510 or onto a communication network.
[0110] User interface output device 520 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. Typically, the use of the term "output device" is intended to include information being output to a user or to all possible types of equipment and methods of another machine or computing device from computing device 510.
[0111] Storage subsystem 524 stores programming and data structures that provide the functionality of some or all of the modules described herein. For example, storage subsystem 524 may include an executable Figure 4A-4D Selected aspects of the method and implementation Figure 1 , Figure 2A-2B and Figure 3 The logic of the various components is depicted in .
[0112] These software modules are typically executed by the processor 514 alone or in combination with other processors. The memory 525 used in the storage subsystem 524 can include many memories, including a main random access memory (RAM) 530 for storing instructions and data during program execution and a read-only memory (ROM) 532 in which fixed instructions are stored. The file storage subsystem 526 can provide persistent storage for program and data files, and can include a hard drive, a floppy disk drive and associated removable media, a CD-ROM drive, an optical drive, or a removable media box. Modules that implement the functionality of certain embodiments can be stored in the storage subsystem 524 by the file storage subsystem 526, or in other machines accessible to the processor 514.
[0113] The bus subsystem 512 provides a mechanism for the various components and subsystems of the computing device 510 to communicate with each other as intended. Although the bus subsystem 512 is shown schematically as a single bus, alternative implementations of the bus subsystem may use multiple busses.
[0114] Computing device 510 can be of various types, including a workstation, server, computing cluster, blade server, server farm, or any other data processing system or computing device. Due to the ever-changing nature of computers and networks, Figure 5 The description of computing device 510 depicted in FIG. 5 is intended only as a specific example for purposes of illustrating some embodiments. Many other configurations of computing device 510 may have more Figure 5 The computing devices depicted may have greater or fewer components.
[0115] In situations where the systems described herein collect or otherwise monitor personal information about a user or can make use of personal and / or monitored information, the user may be provided with a control program or feature to collect user information (e.g., information about the user's social network, social actions or activities, occupation, user's preferences, or the user's current geographic location) or to control whether and / or how to receive content that may be more relevant to the user from a content server. In addition, certain data may be processed 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 processed so that personally identifiable information cannot be determined for the user, or the user's geographic location may be generalized (such as to a city, zip code, or state level) when geographic location information is obtained so that the user's specific geographic location cannot be determined. Therefore, the user can control how information is collected and / or used about the user. For example, in some embodiments, the user may opt out of using the visual component 107 and / or an assistant device that uses visual data from the visual component 107 when monitoring mouth movement and / or directional gaze.< / topping> < / topping> < / artist> < / artist> < / artist> < / artist>
Claims
1. A method implemented by one or more processors of a client device, the method facilitating contactless interaction between one or more users and an automated assistant, the method comprising: receiving a stream of image frames based on output from one or more cameras of the client device; processing image frames of the stream using at least one trained machine learning model stored locally on the client device to monitor for occurrences of a user's gaze directed toward the one or more cameras of the client device; detecting an occurrence of a gaze of the user based on the monitoring; as well as In response to detecting an occurrence of a gaze of the user: An audible user interface output rendered by the client device is discontinued.
2. The method according to claim 1, further comprising: performing voice activity detection of the audio data corresponding in time to a gaze of the user; determining an occurrence of voice activity based on the voice activity detection of the audio data corresponding in time to a gaze of the user; Wherein, discontinuing the audible user interface output rendered by the client device is further responsive to determining an occurrence of the voice activity and based on the occurrence of the voice activity being for the audio data corresponding in time to a gaze of the user.
3. The method according to any preceding claim, further comprising: detecting the presence of a human in an environment of the client device; as well as In response to detecting the presence of a human in the environment, causing the one or more cameras to provide the stream of image frames.
4. The method according to claim 3, wherein: Detecting the presence of a human in the environment of the client device is based on a signal from a presence sensor of the client device.
5. A method according to any preceding claim, wherein: Detecting an occurrence of the user's gaze based on the monitoring includes: A gaze of the user is detected toward the one or more cameras of the client device for a threshold duration.
6. A method according to any preceding claim, wherein: Detecting an occurrence of the user's gaze based on the monitoring includes: A gaze of the user is detected with at least a threshold probability.
7. A method according to any preceding claim, wherein: Processing image frames of the stream using at least one trained machine learning model stored locally on the client device to monitor occurrences of a user's gaze directed toward the one or more cameras of the client device includes: Processing each of the image frames using the at least one trained machine learning model to generate a corresponding probability for each of the image frames; and Wherein, detecting the occurrence of the user's gaze based on the monitoring includes: An occurrence of a gaze of the user is detected based on at least a threshold percentage of the sequence of corresponding probabilities satisfying a threshold probability.
8. A method according to any preceding claim, wherein: Detecting an occurrence of the user's gaze based on the monitoring includes: A gaze of the user is detected with at least a threshold probability.
9. A method according to any preceding claim, wherein: Processing image frames of the stream to monitor occurrences of a user's gaze directed toward the one or more cameras of the client device includes: In the monitoring, in response to determining that a portion of the image frame corresponds to a television, the portion of the image frame is interconnected.
10. The method of claim 9, further comprising determining that the portion corresponds to a television in response to detecting a particular displayed comment in the portion that matches a refresh rate.
11. A method implemented by one or more processors of a client device, the method facilitating contactless interaction between a user and an automated assistant, the method comprising: receiving a stream of image frames based on output from one or more cameras of the client device; processing image frames of the stream using at least one trained machine learning model stored locally on the client device to monitor for occurrences of a gaze of the user directed toward the client device; initially detecting an occurrence of a gaze of the user based on the monitoring; In response to initially detecting an occurrence of a gaze of the user: Rendering human-perceptible cues; as well as determining, based on the monitoring and after rendering the human-perceptible cue, whether there is a continued occurrence of the user's gaze; as well as In response to determining that there is a continuation of the gaze of the user: Sensor data is sent from one or more sensors of the client device to one or more remote automated assistant components.
12. The method according to claim 11, wherein: The sensor data sent to the one or more remote automated assistant components includes the image frames or additional image frames based on additional output from the one or more cameras.
13. The method according to claim 11, wherein: The sensor data sent to the one or more remote automated assistant components includes audio data based on output from one or more microphones of the client device.
14. The method according to claim 11, wherein: The sensor data sent to the one or more remote automated assistant components includes buffered sensor data that was buffered prior to subsequent detection of continued occurrences of both the user's gaze and the user's mouth movement.
15. The method according to claim 11, further comprising: In response to determining that there is no continued occurrence of the user's gaze: Preventing transmission of the sensor data to the one or more remote automated assistant components.
16. The method according to claim 11, wherein: The human-perceptible cue comprises an audible output, and wherein rendering the human-perceptible cue comprises: The audible output is rendered via a speaker of the client device.
17. The method according to claim 16, wherein: The audible output includes spoken output from the automated assistant.
18. The method according to claim 11, wherein: The human-perceptible cue comprises a visual output, and wherein rendering the human-perceptible cue comprises: The visual output is rendered via a visual display of the client device.
19. The method according to claim 18, wherein: The visual output is a symbol.
20. A method implemented by one or more processors of a client device, the method facilitating contactless interaction between a user and an automated assistant, the method comprising: receiving a stream of image frames based on output from one or more cameras of the client device; Processing image frames of the stream using at least one trained machine learning model stored locally on the client device to monitor for occurrences of: the user's gaze being directed toward the client device, and mouth movements of the user; Based on the monitoring, the occurrence of the following two is detected: the user's gaze, and mouth movements of the user; as well as identifying a particular user profile among a plurality of user profiles associated with the user; as well as In response to identifying the particular user profile associated with the user and in response to detecting an occurrence of both a gaze of the user and a mouth movement of the user: Content is rendered that is customized for the user and that is tailored for the user based on the particular user profile associated with the user.
21. The method according to claim 20, wherein: Identifying the specific user profile includes: Audio data from one or more microphones of the client device is processed using voice matching to identify the particular user profile.
22. The method of claim 20, identifying the specific user profile comprising: Image frames of the stream are processed using facial matching to identify the particular user profile.
23. The method according to claim 20, wherein: Identifying the particular user profile occurs after and in response to detecting an occurrence of both the user's gaze and the user's mouth movement.
24. The method according to claim 20, wherein: Rendering content customized for the user is further responsive to determining that an additional condition is satisfied.
25. A client device comprising: Visual components; microphone; one or more processors; A memory operatively coupled to the one or more processors, wherein the memory stores instructions which, in response to one or more of the processors executing the instructions, cause one or more of the processors to perform a method according to any preceding claim.
26. A computer program product comprising instructions which, when executed by one or more processors, cause the one or more processors to perform the method according to any one of claims 1 to 24.
