Systems and methods for context-enriched attention memory networks with global and local encodings for conversation interruption detection
Identifying dialogue interruptions through a globally and locally encoded context-enriched attention memory network system solves the problem of dialogue interruption detection in electronic devices and improves the quality of interaction between users and devices.
Patent Information
- Application Number
- CN202080026473.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-03-23
- Filing Date
- 2020-04-03
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-04-03
AI Technical Summary
It is difficult for the existing technology to effectively detect and correct the interruption of dialogue between the electronic device and the user, making it difficult for the user to effectively interact with the device.
A context-rich attentional memory network system with global and local encoding is used to obtain verbal input through audio sensors, identify local and global context, identify dialogue interruptions, and generate corresponding sounds through the speakers when interruptions are not recognized.
Improves the accuracy of conversation interruption detection and user experience, ensuring that user interaction with the device is more natural and effective.
Smart Images

Figure CN113678133B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to natural language processing. More specifically, the present disclosure relates to identifying conversation interruptions during a conversation between a user and an electronic device. Background Art
[0002] Methods for interacting with and controlling computing devices are constantly improving to create more natural user interfaces. Many such methods for interacting with and controlling computing devices typically require a user to utilize an accessory, such as a keyboard, mouse, touchpad, or touch screen, with which the user physically interacts to control the computing device. Some electronic devices employ natural language processing that enables a user to interact with a computing device via natural language input. For example, natural language input may include a user interface that supports voice-enabled operation, in which a user can interact with a computing device by speaking. The electronic device is able to execute a user's request, as well as provide a verbal response to the user in the form of a follow-up question or comment.
[0003] Conversation interruptions involve an electronic device generating an incorrect response. An electronic device that can detect and correct conversation interruptions between itself and a user plays an increasingly important role in consumer satisfaction with artificial intelligence (AI) based systems. Summary of the invention
[0004] Technical solutions to technical problems
[0005] The present disclosure provides systems and methods for conversation interruption detection using context-rich attention memory networks with global and local encodings.
[0006] In a first embodiment, a method includes: obtaining verbal input from an audio sensor. The method also includes generating a reply to the verbal input. The method also includes: identifying a local context from the verbal input and a global context from the verbal input, additional verbal input previously received by the audio sensor, and a previous reply generated in response to the additional verbal input. The method also includes identifying a conversation interruption in response to determining that the reply does not correspond to the local context and the global context. In addition, the method includes generating a sound corresponding to the reply through a speaker when the conversation interruption is not identified.
[0007] In a second embodiment, an electronic device includes: an audio sensor, a speaker, and a processor. The processor is configured to obtain verbal input from the audio sensor. The processor is also configured to generate a reply to the verbal input. The processor is also configured to identify a local context from the verbal input and a global context from the verbal input, another verbal input previously received by the audio sensor, and a previous reply generated in response to the other verbal input. The processor is also configured to identify a conversation interruption in response to determining that the reply does not correspond to the local context and the global context. In addition, the processor is configured to generate a sound corresponding to the reply through the speaker when the conversation interruption is not identified.
[0008] In a third embodiment, a non-transitory machine-readable medium includes instructions that, when executed, cause at least one processor of an electronic device to obtain verbal input from an audio sensor. The medium also includes instructions that, when executed, cause at least one processor to generate a reply to the verbal input. The medium also includes instructions that, when executed, cause at least one processor to perform the following operations: identify a local context from the verbal input and a global context from the verbal input, additional verbal input previously received by the audio sensor, and a previous reply generated in response to the additional verbal input. The medium also includes instructions that, when executed, cause at least one processor to perform the following operations: in response to determining that the reply does not correspond to the local context and the global context, identify a conversation interruption. In addition, the medium includes instructions that, when executed, cause at least one processor to generate a sound corresponding to the reply through a speaker when the conversation interruption is not identified. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] For a more complete understanding of the present disclosure and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, wherein like reference numerals represent like components:
[0010] Figure 1 An example communication system according to an embodiment of the present disclosure is shown;
[0011] Figure 2 illustrates an example network configuration including electronic devices according to the present disclosure;
[0012] Figure 3 An example block diagram of a natural language processing system according to the present disclosure is shown;
[0013] Figure 4A An architecture for conversation interruption detection according to the present disclosure is shown;
[0014] Figure 4B , Figure 4C , Figure 4D , Figure 4E , Figure 4F , Figure 4G and Figure 4HThe process of conversation interruption detection using the context based memory network according to the present disclosure is shown;
[0015] Figure 5 shows an example dialog distinguishing between local context and global context according to the present disclosure;
[0016] Figure 6 showing a graph according to the present disclosure; and
[0017] Figure 7 An example method for conversation interruption detection according to the present disclosure is shown. Specific embodiments
[0018] Other technical features may be apparent to those skilled in the art from the following drawings, descriptions and claims.
[0019] Before carrying out the following detailed description, it may be advantageous to clarify the definition of specific words and phrases used throughout this patent document.The term "coupling" and its derivatives refer to any direct or indirect communication between two or more elements, regardless of whether these elements are in physical contact with each other.The terms "send", "receive" and "communication" and their derivatives cover both direct and indirect communication.The terms "include" and "comprise" and their derivatives mean to include but not limit.The term "or" is inclusive, meaning "and / or".The phrase "association" and its derivatives mean to include, be included, interconnect, include, be included, be connected to or connected with it, be coupled to or coupled with it, be communicative, collaborate, interlace, juxtapose, approach, be bound to or be bound with it, have characteristics, or have a relationship with it, etc.The term "controller" refers to any device, system or part thereof that controls at least one operation.Such a controller can be implemented with hardware or a combination of hardware and software and / or firmware.The function associated with any particular controller can be centralized or distributed, regardless of whether it is local or remote. When used with a list of items, the phrase "at least one of" means that different combinations of one or more of the listed items can be used, and only one of the items in the list may be required. For example, "at least one of A, B, and C" includes any of the following combinations: A, B, C, A and B, A and C, B and C, and A and B and C.
[0020] In addition, the various functions described below can be implemented or supported by one or more computer programs, each of which is formed by a computer-readable program code and is contained in a computer-readable medium. The terms "application" and "program" refer to one or more computer programs, software components, instruction sets, processes, functions, objects, classes, instances, related data, or parts thereof suitable for implementation with suitable computer-readable program codes. The phrase "computer-readable program code" includes any type of computer code, including source code, object code, and executable code. The phrase "computer-readable medium" includes any type of medium that can be accessed by a computer, such as a read-only memory (ROM), a random access memory (RAM), a hard drive, a compact disk (CD), a digital video disk (DVD), or any other type of memory. "Non-transitory" computer-readable media excludes wired, wireless, optical, or other communication links that transmit temporary electrical signals or other signals. Non-transitory computer-readable media include media in which data can be permanently stored and media in which data can be stored and rewritten later, such as rewritable optical disks or erasable memory devices.
[0021] Definitions for other specific words and phrases are provided throughout this patent document. Those of ordinary skill in the art should understand that in many, if not most, instances, such definitions apply to prior, as well as future uses of such defined words and phrases.
[0022] Discussed below Figures 1 to 7 The various embodiments used to describe the principles of the present disclosure in this patent document are only for illustration and should not be interpreted in any way as limiting the scope of the present disclosure. Those skilled in the art will understand that the principles of the present disclosure can be implemented in any suitably arranged system or device.
[0023] A user can interact with an electronic device using one or more accessories such as a keyboard, mouse, touchpad, remote control, touch screen, etc. Common interactions include physical manipulation of the accessories, for example, a user physically moves a mouse, types on a keyboard, touches a touch-sensitive surface of a touch screen, and so on. There are situations where it is not feasible to interact with an electronic device using various accessories, such as when a user wears a head-mounted display, if the device does not include a display, and so on. In addition, there are situations where it is inconvenient or troublesome to use various physical interactions (for example, touching a touch screen or moving a mouse). Note that as used herein, the term "user" may refer to a person using an electronic device or another device (such as an artificial intelligence electronic device).
[0024] According to an embodiment of the present disclosure, the electronic device may include a personal computer (e.g., a laptop, a desktop computer, and a tablet computer), a workstation, a server, a television, an electrical appliance, etc. In addition, the electronic device may be at least one of a piece of furniture or a part of a building / structure, an electronic board, an electronic signature receiving device, a projector, a security control panel, a game console, or a measuring device. In a specific embodiment, the electronic device may be a portable electronic device, such as a portable communication device (e.g., a smart phone or a mobile phone), a laptop, a tablet computer, an e-book reader (e.g., an e-reader), a personal digital assistant (PDA), a portable multimedia player (PMP), an MP3 player, a mobile medical device, a virtual reality headset, a portable game console, a camera, and a wearable device (smart glasses, a head-mounted display, a ring, a bracelet, a watch), an electronic cloth, etc. The electronic device is one or a combination of the devices listed above. In addition, the electronic device as disclosed herein is not limited to the devices listed above, and may include new electronic devices according to the development of technology.
[0025] According to an embodiment of the present disclosure, an electronic device may include a virtual personal assistant, an intelligent assistant, an artificial intelligence (AI) assistant, an intelligent hub, and the like (collectively referred to herein as a virtual assistant). Note that the virtual assistant may be included in another device, such as a smart phone. A virtual assistant device is a series of devices that can perform various tasks and services for a user. For example, based on received user input, a virtual assistant may provide various services, such as providing weather, setting alarms, creating calendar entries, creating and keeping shopping lists, playing music, turning on or off specific devices (such as electrical appliances, television programs, light bulbs, or electrical sockets, etc.), finding and purchasing items, and the like. A virtual assistant may typically interact with a user through a voice-enabled user interface that enables a user to speak to the virtual assistant and the virtual assistant may verbally respond to the user.
[0026] According to an embodiment of the present disclosure, a natural method for interacting with and controlling an electronic device is a voice-enabled user interface. A voice-enabled user interface enables a user to interact with a computing device by providing an action of natural language input such as oral speech. Speaking can include a person speaking directly to an electronic device or another electronic device that emits sound through a speaker. Once a virtual assistant detects and receives the sound, the virtual assistant can derive contextual meaning from the speech and thereafter perform the requested task or request additional information from the user if necessary. It should be noted that natural language input is not limited to oral speech. For example, natural language input can include typed input.
[0027] Natural language processing enables the virtual assistant to interact with the user by using natural language. Natural language processing can include automatic speech recognition (ASR), natural language understanding (NLU), and text to speech (TTS). ASR can convert the received verbal input into text and includes various language models for recognizing the input words. NLU enables the virtual assistant to understand the received natural language input. TTS converts text into speech, enabling the virtual assistant to respond to the user.
[0028] For example, if a user verbally instructs the virtual assistant to "call spouse," the virtual assistant may recognize the task as a request to use the phone function, activate the device's phone feature, look up the phone number associated with "spouse," and then call the user's spouse's phone number. As another example, the user may verbally instruct the virtual assistant to make a reservation at a restaurant. The virtual assistant will then need to request additional information from the user, such as the date, time, name of the restaurant, number of people to be included in the reservation, etc. The virtual assistant may receive additional information from the user to make the reservation. If there is a problem, such as the desired restaurant cannot provide a reservation at the requested time, the virtual assistant will need to provide information to the user, and may even request an alternative time from the user or suggest an alternative date and time when the restaurant can provide a reservation.
[0029] When the virtual assistant generates an incorrect response when responding to the user, a conversation interruption may occur between the virtual assistant and the user, which results in the user having difficulty responding to the virtual assistant.
[0030] For example, when the virtual assistant does not hear the entire verbal input of the user, a conversation interruption may occur. For example, due to loud ambient noise, the virtual assistant may not hear a specific part of the verbal input. For another example, when the virtual assistant incorrectly interprets the verbal input from the user, a conversation interruption may occur. For example, during a conversation between a user and a virtual assistant about creating a calendar entry for a picnic with the user's family, the user may say "I NEED TO SPEND SOMETIME ALONE BEFORE THE PICNIC". When responding to the user, the virtual assistant may say "GOING ON A PICNICALONE IS FUN". In this example, the virtual assistant mistakenly interprets the word "ALONE" as the user asking to go on a picnic alone, rather than spending time alone before going on a picnic with their family. In addition, when the user verbally states one thing but intends to state something else, a conversation interruption may also occur. For example, the user requests the virtual assistant to display a list of files stored on an electronic device, but the user wants the virtual assistant to display a list of images stored on the electronic device.
[0031] Embodiments of the present disclosure include systems and methods for detecting conversation interruptions. In certain embodiments, conversation interruptions are detected based on local and global context associated with a conversation between a user and a virtual assistant. Embodiments of the present disclosure also include systems and methods for notifying a user of a conversation. In addition, embodiments of the present disclosure include systems and methods for recovering from conversation interruptions.
[0032] Figure 1 An example communication system 100 is shown in accordance with an embodiment of the present disclosure. Figure 1 The embodiment of the communication system 100 shown is for illustration only. Other embodiments of the communication system 100 may be used without departing from the scope of the present disclosure.
[0033] The communication system 100 includes a network 102 that facilitates communication between various components in the communication system 100. For example, the network 102 can transmit Internet Protocol (IP) packets, frame relay frames, asynchronous transfer mode (ATM) cells, or other information between network addresses. The network 102 includes one or more local area networks (LANs), metropolitan area networks (MANs), wide area networks (WANs), all or part of a global network such as the Internet, or any other communication system at one or more locations.
[0034] In this example, the network 102 facilitates communication between the server 104 and various client devices 106 to 114. The client devices 106 to 114 can be, for example, smartphones, tablets, laptops, personal computers, wearable devices, head-mounted displays (HMDs), virtual assistants, etc. The server 104 can represent one or more servers. Each server 104 includes any suitable computing or processing device that can provide computing services to one or more client devices (e.g., client devices 106 to 114). Each server 104 can, for example, include one or more processing devices, one or more memories for storing instructions and data, and one or more network interfaces for facilitating communication through the network 102.
[0035] Each client device 106 to 114 represents any suitable computing or processing device that interacts with at least one server (e.g., server 104) or other computing device through network 102. In this example, client devices 106 to 114 include a desktop computer 106, a mobile phone or mobile device 108 (e.g., a smartphone), a PDA 110, a laptop computer 112, and a tablet computer 114. However, any other or additional client devices may be used in the communication system 100. A smartphone represents a class of mobile devices 108 that are handheld devices with a mobile operating system and an integrated mobile broadband cellular network connection for voice, short message service (SMS), and Internet data communications. As described in more detail below, an electronic device (e.g., a desktop computer 106, a mobile device 108, a PDA 110, a laptop computer 112, or a tablet computer 114) can be a virtual assistant device that receives natural language input such as spoken utterances from a user and performs an intended action.
[0036] In this example, some client devices 108 to 114 communicate indirectly with network 102. For example, client devices 108 and 110 (mobile device 108 and PDA 110, respectively) communicate via one or more base stations 116 (e.g., cellular base stations or eNodeBs (eNBs)). Also, client devices 112 and 114 (laptop 112 and tablet 114, respectively) communicate via one or more wireless access points 118 (e.g., IEEE 802.11 wireless access points). Note that these are for illustration purposes only, and each client device 106 to 114 may communicate directly with network 102, or indirectly with network 102 via any suitable intermediate device or network.
[0037] In some embodiments, any of the client devices 106 and 114 can securely and efficiently send information to another device (eg, server 104). Furthermore, any of the client devices 106 to 114 can trigger the transmission of information between itself and server 104.
[0038] although Figure 1 One example of a communication system 100 is shown, but may be Figure 1 Various changes may be made. For example, communication system 100 may include any number of each component in any suitable arrangement. In general, computing and communication systems appear in a variety of configurations, and Figure 1 The scope of the present disclosure is not limited to any particular configuration. Figure 1 One operating environment is shown in which the various features disclosed in this patent document may be used, but these features may be used in any other suitable system.
[0039] Figure 2An example network configuration 200 including electronic devices according to the present disclosure is shown. Figure 2 The embodiment of the network configuration 200 shown in FIG. 2 is for illustration only. Other embodiments of the network configuration 200 may be used without departing from the scope of the present disclosure.
[0040] According to an embodiment of the present disclosure, an electronic device 201 is included in the network configuration 200. The electronic device 201 may be similar to Figure 1 Any client device 106 to 114. In a particular embodiment, the electronic device 201 is a virtual assistant. In other embodiments, the electronic device 201 includes a virtual assistant. The electronic device 201 may include at least one of a bus 210, a processor 220, a memory 230, an input / output (I / O) interface 250, a display 260, a communication interface 270, one or more sensors 280, a speaker 290, or a microphone. In some embodiments, the electronic device 201 may exclude at least one of these components, or may add at least one other component. The bus 210 includes circuits for connecting components 220 to 295 to each other and for transmitting communications (e.g., control messages and / or data) between components.
[0041] The processor 220 includes one or more of a central processing unit (CPU), a graphics processor unit (GPU), an application processor (AP), or a communication processor (CP). The processor 220 is capable of controlling at least one other component of the electronic device 201 and / or performing communication-related operations or data processing. In a specific embodiment, the processor 220 performs natural language processing and is capable of detecting a conversation interruption and recovering from a detected conversation interruption.
[0042] The memory 230 may include volatile and / or non-volatile memory. For example, the memory 230 may store commands or data related to at least one other component of the electronic device 201. According to an embodiment of the present disclosure, the memory 230 may store software and / or programs 240. The programs 240 include, for example, a kernel 241, middleware 243, an application programming interface (API) 245, and / or an application program (or "application") 247. At least a portion of the kernel 241, the middleware 243, or the API 245 may be represented as an operating system (OS).
[0043] Kernel 241 can control or manage system resources (e.g., bus 210, processor 220, or memory 230) for executing operations or functions implemented in other programs (e.g., middleware 243, API 245, or application 247). Kernel 241 provides an interface that allows middleware 243, API 245, or application 247 to access separate components of electronic device 201 to control or manage system resources. Application 247 includes one or more applications for conversation interruption detection and recovery, as described below. These functions can be performed by a single application or by multiple applications that each perform one or more of these functions. Middleware 243 can be used as a repeater to allow API 245 or application 247 to transmit data with, for example, kernel 241. Multiple applications 247 can be provided. Middleware 243 can control work requests received from application 247, such as by assigning priorities of using system resources (e.g., bus 210, processor 220, or memory 230) of electronic device 201 to at least one of multiple applications 247. The API 245 is an interface that allows the application 247 to control functions provided from the kernel 241 or the middleware 243. For example, the API 245 includes at least one interface or function (eg, command) for archive control, window control, image processing, or text control.
[0044] The I / O interface 250 serves as an interface that can transmit commands or data input from a user or other external devices to other components of the electronic device 201, for example. The I / O interface 250 can also output commands or data received from other components of the electronic device 201 to the user or other external devices.
[0045] Display 260 includes, for example, a liquid crystal display (LCD), a light emitting diode (LED) display, an organic light emitting diode (OLED) display, a quantum dot light emitting diode (QLED) display, a microelectromechanical system (MEMS) display, or an electronic paper display. Display 260 may also be a depth perception display, such as a multi-focal display. Display 260 is capable of displaying, for example, various contents (e.g., text, images, videos, icons, or symbols) to a user. Display 260 may include a touch screen and may receive, for example, a touch, gesture, proximity, or hover input using an electronic pen or a body part of a user.
[0046] For example, the communication interface 270 can establish communication between the electronic device 201 and an external electronic device (e.g., the electronic device 202, the second electronic device 204, or the server 206). For example, the communication interface 270 can be connected to the network 262 or 264 through wireless or wired communication to communicate with the external electronic device. The communication interface 270 can be a wired or wireless transceiver or any other component for sending and receiving signals such as images.
[0047] Wireless communication can use, for example, long term evolution (LTE), advanced long term evolution (LTE-A), 5th generation wireless system (5G), millimeter wave or 60GHz wireless communication, wireless USB, code division multiple access (CDMA), wideband code division multiple access (WCDMA), universal mobile telecommunications system (UMTS), wireless broadband (WiBro) or global system for mobile communications (GSM) as at least one of the cellular communication protocol. Wired connection can include, for example, universal serial bus (USB), high definition multimedia interface (HDMI), recommended standard 232 (RS-232) or plain old telephone service (POTS). Network 262 or 264 includes at least one communication network, such as a computer network (e.g., local area network (LAN) or wide area network (WAN)), the Internet, or a telephone network.
[0048] The electronic device 201 also includes one or more sensors 280, which can measure physical quantities or detect the activation state of the electronic device 201, and convert the measured or detected information into electrical signals. For example, one or more sensors 280 may include one or more cameras or other imaging sensors for capturing images of scenes. The sensor 280 may also include one or more buttons for touch input, gesture sensors, gyroscopes or gyroscope sensors, air pressure sensors, magnetic sensors or magnetometers, acceleration sensors or accelerometers, grip sensors, proximity sensors, color sensors (e.g., red, green, and blue (RGB) sensors), biophysical sensors, temperature sensors, humidity sensors, illumination sensors, ultraviolet (UV) sensors, electromyography (EMG) sensors, electroencephalography (EEG) sensors, electrocardiography (ECG) sensors, infrared (IR) sensors, ultrasonic sensors, iris sensors, or fingerprint sensors. The sensor 280 may also include an inertial measurement unit, which may include one or more accelerometers, gyroscopes, and other components. In addition, the sensor 280 may include a control circuit for controlling at least one of the sensors included here. Any of the sensors 280 may be located within the electronic device 201 .
[0049] The electronic device 201 also includes one or more speakers 290 that convert electrical signals into sound and one or more audio sensors 295 that convert sound into electrical signals. The audio sensor 295 may be a microphone similar to a dynamic microphone, a condenser microphone, a piezoelectric microphone, etc. The processor 220 may receive verbal input (speech) from a user via the audio sensor 295, process the verbal input, and generate output that is communicated to the user through the speaker 290.
[0050] The external electronic device 202 and the external electronic device 204 may be similar to Figure 1Any one of the client devices 106 to 114. The external electronic devices 202 and 204 may include components 210 to 295 that are the same or similar to the electronic device 201 (or a suitable subset thereof). In addition, the external electronic devices 202 and 204 may be wearable devices or wearable devices (such as HMD) in which electronic devices can be installed. When the electronic device 201 is installed in the electronic device 202 (such as an HMD), the electronic device 201 can communicate with the electronic device 202 through the communication interface 270. The electronic device 201 can be directly connected to the electronic device 202 to communicate with the electronic device 202 without involving a separate network. The electronic device 201 can also be an augmented reality wearable device including one or more cameras, such as glasses.
[0051] Each of the external electronic devices 202 and 204 and the server 206 can be a device of the same or different type as the electronic device 201. According to a specific embodiment of the present disclosure, the server 206 includes a group of one or more servers. The server 206 can be similar to Figure 1 server 104. In addition, according to a specific embodiment of the present disclosure, all or some of the operations performed on the electronic device 201 may be performed on another one or more other electronic devices (e.g., electronic devices 202 and 204 or server 206). In addition, according to a specific embodiment of the present disclosure, when the electronic device 201 should automatically or upon request perform a certain function or service, the electronic device 201 may request another device (e.g., electronic devices 202 and 204 or server 206) to perform at least some functions associated therewith, rather than performing the function or service itself or additionally. Other electronic devices (e.g., electronic devices 202 and 204 or server 206) are capable of performing the requested function or additional functions and transmitting the execution results to the electronic device 201. The electronic device 201 can provide the requested function or service by processing the received results as is or additionally. To this end, for example, cloud computing, distributed computing, or client-server computing technology may be used. Although Figure 2 The electronic device 201 is shown to include a communication interface 270 to communicate with an external electronic device 204 or a server 206 via a network 262 or 264 , but according to some embodiments of the present disclosure, the electronic device 201 may independently operate without a separate communication function.
[0052] The server 206 may include components 210 to 295 that are the same or similar to the electronic device 201 (or a suitable subset thereof). The server 206 may support driving the electronic device 201 by performing at least one of the operations (or functions) implemented on the electronic device 201. For example, the server 206 may include a processing module or processor that may support the processor 220 implemented in the electronic device 201. In a particular embodiment, the server 206 performs natural language processing.
[0053] although Figure 2 An example of a network configuration 200 including an electronic device 201 is shown, but the Figure 2 Various changes may be made. For example, network configuration 200 may include any number of each component in any suitable arrangement. In general, computing and communication systems appear in a variety of configurations, and Figure 2 The scope of the present disclosure is not limited to any particular configuration. Figure 2 One operating environment is shown in which the various features disclosed in this patent document may be used, but these features may be used in any other suitable system.
[0054] Figure 3 An example block diagram of a natural language processing system 300 according to the present disclosure is shown. The natural language processing system 300 is described as being implemented in Figure 1 The client devices 106 to 112 or the server 104, Figure 2 The electronic device 201 or the server 206, the virtual assistant, or any combination thereof. For example, Figure 2 The electronic device 201 includes a natural language processing system 300. However, the natural language processing system 300 can be used by any other suitable device and can be used in any other suitable system. The natural language processing system 300 is described as being used to perform natural language understanding and conversation interruption detection. When a conversation interruption is detected, the natural language processing system 300 can notify the user of the conversation interruption, recover from the conversation interruption, or a combination thereof. However, the natural language processing system 300 can be used to perform any other suitable task.
[0055] The natural language processing system 300 is configured to receive input 302. The input 302 may be provided by, for example, Figure 2 In certain embodiments, input 302 is text. In certain embodiments, input 302 is multimodal natural language input. When input 302 can be a spoken word (such as Figure 3The input 302 is processed by automatic speech recognition 304, natural language understanding 306, or both. In a particular embodiment, the natural language processing system 300 generates a confidence score to indicate a confidence level associated with the input 302. For example, the confidence score can be based on the degree of background noise included in the input 302. For another example, the confidence score can be based on the level of certainty that the user's entire utterance is included in the input 302 to indicate whether a portion of the utterance is omitted.
[0056] ASR 304 may include an acoustic model and a language model for recognizing input 302. The language model is trained using specific utterances from a specific domain context. For example, a language model may be associated with a domain such as movies, while another language model may be associated with a domain such as sports. ASR 304 may also generate a confidence score to indicate a confidence level associated with recognizing input 302.
[0057] NLU 306 may include domain classification, intent classification, slot tagger, embedding, etc. For example, NLU 306 may identify the domain of input 302. NLU 306 may also generate a confidence score to indicate the confidence level associated with the identified domain. NLU 306 may also identify a task or request from input 302. The task may be a goal that the user expects the electronic device 201 to perform. For example, if input 302 is "play country music", the corresponding task is to open a music player, search for and play music of the requested style. NLU 306 may also generate a confidence score to indicate the confidence level associated with the identified task or request from input 302. NLU 306 may also tag various words of input 302 as corresponding to a specific slot. NLU 306 may also generate a confidence score to indicate the confidence level associated with tagging input 302 as a specific slot.
[0058] The dialog management system 308 may include dialog interruption recovery 314. The dialog management system 308 may be rule-based, retrieval-based, probability-based, etc. The dialog management system 308 receives various inputs. The inputs may include speech signals, utterances (e.g., input 302), semantics, external context, multimodal inputs (e.g., text in addition to verbal input), and feedback data. For example, the dialog management system 308 receives parsed data from the NLU 306. Based on the inputs, the dialog management system 308 generates a data set representing a reply to the user. The generated reply may request additional input 302 from the user or provide the user with the requested information.
[0059] The natural language generator 310 converts the data set representing the reply into a natural language response to be communicated or presented to the user. That is, the natural language generator 310 selects words and places the words into a natural language sentence so that the user can understand the concepts included in the data set. By selecting the words, the natural language generator 310 generates a reply 320. The reply 320 is communicated or presented to the user via the speaker 290. In certain embodiments, the reply 320 is displayed on a display such as a Figure 2 on a display such as display 260.
[0060] In certain embodiments, the natural language generator 310 converts the data set representing the reply 320 into natural language text. When the natural language generator 310 generates the natural language text representing the reply 320, the text-to-speech 312 converts the text into an audio format. The speaker 290 generates a sound corresponding to the audio format so that the user can hear the reply 320 via the speaker.
[0061] The conversation interruption detection system 316 is an attentive memory network with global-local mutual encoding. The conversation interruption detection system 316 detects whether a conversation interruption occurs between a user and a reply generated by the conversation management system 308. In certain embodiments, the conversation interruption detection system 316 detects an interruption based on the user's utterance and the reply generated by the conversation management system 308. In other embodiments, the conversation interruption detection system 316 detects an interruption based on the reply generated by the conversation management system 308.
[0062] To detect conversation interruptions, conversation interruption detection system 316 monitors input 302, previous inputs, generated data sets representing replies 320, previously generated replies, output from ASR 304 (based on both input 302 and previous inputs), output from NLU 306 (based on both input 302 and previous inputs), confidence scores associated with input 302, ASR 304, and NLU 306 (based on both input 302 and previous inputs), etc. Below, Figure 4A The architecture of a conversation interruption detection system 316 for detecting whether an interruption has occurred is described. In certain embodiments, the conversation interruption detection system 316 uses confidence scores associated with the input 302, the ASR 304, the NLU 306, or a combination thereof when detecting whether an interruption has occurred. In certain embodiments, the conversation interruption detection system 316 uses confidence scores associated with the input 302, the ASR 304, the NLU 306, or a combination thereof when resuming from a detected conversation interruption.
[0063] The amount of information monitored by the conversation interruption detection system 316 can be fixed or variable. A smaller window (a smaller number of utterances that the conversation interruption detection system 316 monitors) can result in faster processing. However, when the window is too small, the conversation interruption detection system 316 may fail to identify an interruption in the conversation or incorrectly identify an interruption in the conversation due to the limited context available to the conversation interruption detection system 316. Alternatively, as the size of the window increases (more utterances that the conversation interruption detection system 316 monitors), the historical context provided to the conversation interruption detection system 316 to correctly identify an interruption in the conversation also increases. However, larger windows increase processing time due to the increasing number of utterances that the conversation interruption detection system 316 will parse to identify whether an interruption in the conversation has occurred.
[0064] The conversation interruption detection system 316 may include a fixed window that monitors a fixed number of utterances between a user and an electronic device 201 (e.g., a virtual assistant). In a particular embodiment, the fixed window monitors all utterances of a single conversation between the user and the virtual assistant. For example, if the context of the conversation is associated with performing a specific task in which the virtual assistant provides multiple replies to collect additional information from the user to perform the requested task, the amount of information monitored by the conversation interruption detection system 316 will continue to increase. That is, the longer the conversation, the more utterances the conversation interruption detection system 316 monitors.
[0065] In certain embodiments, a fixed window monitors utterances between the user and the virtual assistant until a certain number of recent utterances associated with the same conversation event. For example, if the window is fixed so that the conversation interruption detection system 316 monitors only three utterances (e.g., (i) the user speaks to request the virtual assistant to perform a certain task, (ii) the virtual assistant responds to a request for additional information, and (iii) the user provides the requested information), then for the system to monitor the virtual assistant's response, the system will stop monitoring the first utterance spoken by the user. That is, the conversation interruption detection system 316 monitors only the most recent fixed number of utterances.
[0066] The conversation interruption detection system 316 may include a window that monitors a varying amount of utterances based on circumstances associated with the conversation. In certain embodiments, the amount of information that the conversation interruption detection system 316 monitors depends on the system. For example, if the system's resources (e.g., memory and processor) are available, the amount of information that the conversation interruption detection system 316 monitors increases. Alternatively, if the system's resources are limited or occupied by other tasks, the amount of information that the conversation interruption detection system 316 monitors decreases.
[0067] In certain embodiments, the size of the window can be set for each specific domain. That is, the window size is based on the domain of the identified conversation. For example, a first domain may include a fixed window of a certain size, while a second domain may include a fixed window or a different size. If the domain switches during a conversation between the user and the virtual assistant, the size of the window can change accordingly.
[0068] Note that the window size is optimized by machine learning or a predetermined size for each domain. For example, the conversation interruption detection system 316 can learn the size of the window from previous conversations between users and virtual assistants in a specific domain.
[0069] In a particular embodiment, once an interruption is detected, based on the monitored information, the conversation interruption detection system 316 notifies the conversation management system 308 of the interruption. The conversation interruption recovery 314 attempts to recover from the interruption based on both the local and global context associated with the conversation. For example, the conversation interruption recovery 314 identifies the context associated with the state and generates a modified reply based on the context. The state may include a location, a keyword, a local context (the verbal input obtained or the generated reply), etc. In a particular embodiment, the conversation interruption recovery 314 uses a confidence score associated with the input 302, the ASR 304, the NLU 306, or a combination thereof. For example, the conversation interruption recovery 314 uses one or more of the confidence scores when identifying the context associated with the state. The conversation interruption recovery 314 generates a modified data set representing a modified reply to the user. The natural language generator 310 converts the modified data set representing the modified reply into a natural language response to be communicated or presented to the user.
[0070] In a particular embodiment, once an interruption is detected, based on the monitored information, the conversation interruption detection system 316 notifies the conversation notification generator 318. The conversation notification generator 318 generates a notification that can be displayed on the display 260. The displayed notification can indicate the wrong communication to the user. The conversation notification generator 318 generates a data set representing the message, and when the data set is converted by the natural language generator 310, it can be presented to the user via the speaker 290. For example, the notification can indicate an apology for the wrong communication, a request for the user to repeat his previous speech, or both. In a particular embodiment, the conversation notification generator 318 uses both local and global contexts to identify the speech that caused the interruption. Thereafter, the conversation notification generator 318 can generate a data set representing a request to ask the user about the speech that caused the conversation interruption.
[0071] In certain embodiments, the conversation interruption detection system 316 is included in the conversation management system 308. For example, when generating a data set representing a reply, the conversation interruption detection system 316 can determine whether an interruption occurred, so that the conversation interruption recovery 314 can generate a modified data set before presenting the original data set representing the original reply (which includes the interruption) to the user via the speaker 290. That is, the interruption of the conversation can be detected before an incorrect response is given to the user.
[0072] although Figure 3 An example of a natural language processing system 300 is shown, but may be used for Figure 3 Various changes can be made. For example, the natural language processing system 300 can receive and process various types of input (e.g., text) and provide written responses rather than audible responses. In addition, tasks performed using the natural language processing system 300 can include conversation interruption detection, recovery, and notification elements without performing natural language processing.
[0073] Figure 4A An architecture 400a for conversation interruption detection according to the present disclosure is shown. Figure 4B , Figure 4C , Figure 4D , Figure 4E , Figure 4F , Figure 4G and Figure 4H A process of conversation interruption detection using architecture 400a according to the present disclosure is shown. Architecture 400a includes a context-based memory network. Figure 4B , Figure 4C , Figure 4D , Figure 4E , Figure 4F and Figure 4G shows the detailed process of processing utterances with specific labels, while Figure 4H For example, the previous Figure 4A The obtained weighted mixture performs the attention process.
[0074] Architecture 400a is described as being comprised of Figure 3 In the conversation interruption detection system 316. For example, the context-based memory network shown in architecture 400a can be composed of Figure 1 The client devices 106 to 112 or the server 104 or Figure 2 The architecture 400a may be implemented by any one of the electronic device 201 or the server 206. The architecture 400a may be included in an electronic device that includes a virtual assistant that can communicate with a user. However, the architecture 400a may be used by any other suitable device and may be used in any other suitable system.
[0075] The context-based memory network as shown in architecture 400a determines the probability of a conversation interruption relative to a reply generated by the system. The context-based memory network uses both global and local context information from user utterances and system utterances to identify the probability of a label indicating whether a conversation interruption has occurred. For example, the context-based memory network identifies whether an interruption has occurred relative to each of the utterances by classifying each of the utterances (e.g., utterances 402, 402b, 402c, 402d) relative to the label. For example, the context-based memory network associates utterances with different labels and determines which label most correctly characterizes the utterance based on the local context of the utterance, the global context of the utterance, and any previous utterances. Architecture 400a can use any number of labels. Architecture 400a includes three labels. The number of labels of architecture 400a and the description of the labels are not limiting. Label X corresponds to an interruption, label T corresponds to a possible interruption, and label O corresponds to a non-interruption. In a particular embodiment, labels can be used to identify conversation interruptions when a neural network such as a long short-term memory (LSTM) network or a bidirectional long short-term memory (BiLSTM) network is initially trained without presenting labels in the training data. LSTM networks include memory cells that can hold information. LSTM networks hold information from inputs that have been passed in a single direction, while BiLSTM passes inputs in two directions, from the future to the past and from the past to the future. BERT is an example BiLSTM and includes 24 layers (transformer blocks), 1024 hidden size, 16 attention heads, and a total of 340 million parameters.
[0076] The architecture 400a is divided into three parts. The first part is located above line 401 and represents a previous dialogue pair between the user and the system. The utterances included in the first part are previously assigned labels. The architecture 400a may include any number of labels that define various aspects of the utterance. As shown, the architecture 400a includes three labels. The labels may be: X, to indicate that an interruption occurred; T, to indicate that an interruption may have occurred; or O, to indicate that an interruption did not occur. The following discussion Figure 4B to Figure 4G The data flow once labels are assigned to dialogue pairs is described. The utterances above line 401 are used to generate a global context (context 455) which is used when assigning labels to new utterances.
[0077] The second part is located below line 401 and represents the current conversation pair between the user and the system. The current conversation pair has no assigned label.
[0078] The third part is located on the right side of the overall attention 450. The third part assigns tags to the dialogue pairs of the second part. The third part is iteratively executed for each tag, and generates a probability score associated with each tag assigned to the current dialogue pair. The tag with the highest probability score is then assigned to the current dialogue pair. After the tag is assigned to the current dialogue pair, the current dialogue pair is moved above line 401 (so that the previous dialogue pair and the current dialogue pair are both above the line and are used to generate context 455), and a new dialogue pair is received and generated by the natural language processing system 300. Note that the window size can limit the number of dialogue pairs located above line 401. For example, if the window is limited to four dialogue pairs (because the window is fixed to this size or the domain indicates that four dialogue pairs are sufficient to detect interruptions), only the most recent four dialogue pairs are kept above the line. Whenever a new dialogue pair is assigned a tag and moves above line 401, the oldest dialogue pair is discarded.
[0079] As shown in architecture 400a, the input to the context-based memory network includes user utterances (e.g., user utterance 402a) and system utterances (e.g., system utterance 402b). The user utterance may be input 302, and the system utterance may be generated by Figure 3 In certain embodiments, the system utterances may be generated via Figure 3 The speaker 290 presents the response 320 to the user.
[0080] The embedding of the input is passed to a global-local LSTM network or a global-local BiLSTM network (e.g., global BiLSTM 410a and local BiLSTM 420a). Local BiLSTM 420a may include multiple local BiLSTM networks 420a, which are trained with respect to various labels. Global attention (e.g., global attention 430a), local attention (e.g., local attention 440a), and overall attention (e.g., overall attention 450) identify the local context and global context of the input. Then, the context-based memory network calculates the probability score of the label associated with the current utterance (e.g., system utterance 402d) based on the local context and the global context.
[0081] As shown in architecture 400a, the dialogue between the user and the system (e.g., a virtual assistant) consists of multiple dialogue pairs. Each dialogue pair will include a user utterance and a reply from the system. A label is applied to each dialogue pair to determine the interruption. For example, the first dialogue pair may be a user saying "HELLO SYSTEM" and the system generating a reply to the user. The second dialogue pair may be a user asking the system to provide information (e.g., current weather) or perform a specific task (e.g., turn on an appliance, play music of a specific style, book an airplane ticket, etc.). Thereafter, the system will generate a reply that provides the requested information, indicates that the task is complete, or requests additional information. The dialogue will continue, the user provides utterances, and then the system generates utterances until the user stops providing new utterances.
[0082] User utterance 402a may be an initial utterance including a request for information or a request to perform a specific task. Alternatively, user utterance 402a is an utterance in the middle of a conversation between a user and a virtual assistant. System utterance 402b may be composed of Figure 3 . The system utterance 402b is a reply to the user, which may include the requested information or an indication of the completion of the requested task. The system utterance 402b may also be a reply to a request for additional information from the user. The user utterance 402c is a second utterance from the user to the virtual assistant. The user utterance 402c may include the additional information requested by the user. The system utterance 402d may include the requested information or an indication of the completion of the requested task. The system utterance 402d may also be a reply to a request for additional information from the user. Note that the user utterance 402a and the system utterance 402b represent a first dialogue pair, while the user utterance 402c and the system utterance 402d represent a second dialogue pair.
[0083] User utterances 402a and 402c and system utterances 402b and 402d represent conversations between a user and a virtual assistant. The number of utterances occurring between a user and a virtual assistant is not limited to the following: Figure 4A Note that the electronic device 201 can Figure 2 The audio sensor 295 receives user speech 402a and 402c, while system speech 402b and 402d may be generated by Figure 2 The speaker 290 generates Figure 3 Audible sounds generated by the dialogue management system 308.
[0084] The context-based memory network as shown in architecture 400a includes a global-local attention encoder. The global-local attention encoder includes (i) an embedder, (ii) global and local BiLSTM networks, and (ii) global and local self-attention layers. In certain embodiments, the embedding, global and local BiLSTM networks, and global and local self-attention layers are distinct components.
[0085] The global BiLSTM networks 410a, 410b, 410c, and 410d (collectively referred to as the global BiLSTM network 410) are neural networks that include memory cells that can keep information for a period of time. Similarly, the local BiLSTM networks 420a, 420b, 420c, and 420d (collectively referred to as 420) are neural networks that also include memory cells that can keep information for a period of time. The storage component of the BiLSTM network enables the context-based memory network to consider the context from the previous speech (of the user or virtual agent) during the entire conversation. The global and local BiLSTM networks 410 and 420 may include one or more forget gates, one or more block gates, one or more input gates, one or more output gates, and the like. The global BiLSTM and local BiLSTM networks may include encoders such as BERT, ROBERTA, XLNET, T5, ERNIE, and the like.
[0086] The global BiLSTM network 410 embeds and encodes the current user utterance or system utterance. In addition, if available, the global BiLSTM network 410 embeds and encodes any previous user and system utterances. The global BiLSTM network 410 is a local guided encoder that learns a global embedding based on the local embedding. The global BiLSTM network 410 converts the user or system utterance into a vector comprising a set of numbers, where the numbers represent the words of the utterance. Each of the global BiLSTM networks 410 processes a single utterance. For example, the global BiLSTM network 410a processes the user utterance 402a, the global BiLSTM network 410b processes the system utterance 402b, the global BiLSTM network 410c processes the user utterance 402c, and the global BiLSTM network 410n processes the system utterance 402d.
[0087] The local BiLSTM network 420 embeds and encodes the current user utterance or system utterance relative to a specific tag. The local BiLSTM network 420 is a global guided local encoder that learns local embeddings based on the global embedding. The local BiLSTM network 420 converts the user or system utterance into a vector including a set of numbers, where these numbers represent the words of the utterance.
[0088] In a particular embodiment, local BiLSTM network 420 includes multiple local BiLSTM networks 420, and each local BiLSTM network is trained based on a specific label. The number of local BiLSTM networks 420 corresponds to the number of labels. Since architecture 400a can include any number of labels, the number of local BiLSTM networks 420 changes accordingly. As shown in the figure, architecture 400a uses three labels X, T and O. As shown in the figure, label X represents that an interruption has occurred, label T represents that an interruption may have occurred, and label O represents that no interruption has occurred. When a discourse is assigned a specific label (such as a discourse above line 401), the local BiLSTM network 420 corresponding to the assigned label processes the discourse. When the discourse is not yet assigned a specific label (such as a discourse below line 401), all local BiLSTM networks 420 process the discourse.
[0089] The local BiLSTM network 420 processes the current utterance, while the global BiLSTM network 410 processes the current utterance and, if applicable, any previous utterances. For example, an utterance with a label is processed by the global BiLSTM network 410 and is also processed by one of the local BiLSTM networks 420 corresponding to the label. An utterance without a label is processed by the global BiLSTM network 410 and is processed by all the local BiLSTM networks 420. That is, each of the utterances (e.g., 402a, 402b, 402c to 402d) is processed by one global BiLSTM network and at least one local BiLSTM network.
[0090] Weighted mixes 425a, 425b, 425c, and 425d (collectively referred to as weighted mixes 425) combine the outputs of the corresponding global BiLSTM networks 410 and local BiLSTM networks 420. For example, weighted mix 425a combines the output of global BiLSTM network 410a with one output of local BiLSTM network 420a (which corresponds to the label associated with user utterance 402a) to generate a global-local BiLSTM state that enters the combination of global attention 430a and local attention 440a. For another example, weighted mix 425d combines the output of global BiLSTM network 410d and all outputs of local LSTM network 420d (because system utterance 402d has not been assigned a label) to generate a global-local BiLSTM state that enters the combination of global attention 430d and local attention 440d. Weighted mix 425 takes a weighted average of the outputs of global BiLSTM network 410 and local BiLSTM network 420.
[0091] Global attention 430a, 430b, 430c, and 430d (collectively 430) and local attention 440a, 440b, 440c, and 440d (collectively 440) focus on a particular utterance to identify which part of the utterance is important. For example, global attention 430a and local attention 440a are associated with user utterance 402a, while global attention 430b and local attention 440b are associated with user utterance 402b.
[0092] Global attention 430 analyzes the current and previous vectors (current and previous utterances), while local attention 440 analyzes the current vector (corresponding to the current utterance). Global attention 430 and local attention 440 are not specific to any label associated with an utterance. Global attention 430 identifies important parts of the current utterance and previous utterances, while local attention 440 identifies important parts of the current utterance.
[0093] The weighted blends 445a, 445b, 445c, and 445d (collectively referred to as weighted blends 445) combine the outputs of the corresponding global attention 430 and local attention 440. In a particular embodiment, the weighted blend 445 takes a weighted linear combination of the outputs of the global attention 430 and the local attention 440. For example, the weighted blend 445 multiplies the output of the global attention 430 by a first variable, multiplies the output of the local attention 440 by a second variable, and adds the values together. In a particular embodiment, the weighted blend 445 takes a weighted average of the outputs of the global attention 430 and the local attention 440.
[0094] Overall attention 450 attends to the history of all utterances (based on all weighted mixtures 445). Overall attention 450 generates context 455. The amount of history attended to by overall attention 450 is based on the window size. As described above, overall attention 450 can include fixed or variable windows. Overall attention 450 identifies important aspects of the utterance to be used to detect interruptions.
[0095] The third portion of the architecture 400a assigns labels to the system utterance 402d by selecting the label with the highest probability. That is, the third portion of the architecture 400a generates an output 465 for each of the labels, where the output indicates the probability that the utterance 402d falls into one of the three labels. The output 465 is the probability associated with each of the labels about the utterance.
[0096] To generate an output 465 associated with the system utterance 402d, the system utterance 402d is processed with respect to each label. For example, during the first iteration, the global BiLSTM network 410e and the local BiLSTM network 420e process the system utterance 402d with respect to the label X. The weighted mixture of the outputs is processed by the global attention 430e and the local attention 440e. The weighted mixture of the outputs is then input to the scorer 460. The scorer 460 generates two scores that are weighted and normalized to generate a first output 465, which is a probability associated with the X label. After the probability associated with the label X is generated, the second iteration begins, so that the global BiLSTM network 410e and the local BiLSTM network 420e process the system utterance 402d with respect to the label T. A second output 465 is generated corresponding to the probability associated with the label T. After generating the probabilities associated with label X and label T, the third iteration begins, causing the global BiLSTM network 410e and the local BiLSTM network 420e to process the system utterance 402d with respect to label O. A third output 465 is generated corresponding to the probabilities associated with label O. The labels with the highest probabilities are selected and assigned to the user utterance 402c and the system utterance 402d. Thereafter, the user utterance 402c and the system utterance 402d are moved above the line 401, and the new dialogue pair is located below the line 401.
[0097] Scorer 460 includes memory score 462 and utterance score 464. Memory score 462 takes into account context 455 (which includes the global context generated by overall attention 450) and the current label (which is based on a particular local BiLSTM network 420e) associated with system utterance 402d. For example, memory score 462 generates a score for a label that indicates the probability of a particular label given the history of the utterance.
[0098] Considering the weighted mixture 425c of the user utterance 402c and the label (which is based on the specific local BiLSTM network 420e), the utterance score 464 pays attention to the current system utterance 402d (based on the weighted mixture 425d of the system utterance 402d). For example, the utterance score 464 generates a score for the label indicating the probability that the current label corresponds to the current utterance based on the user utterance 402c.
[0099] After generating the memory score 462 and the utterance score 464, the scorer 460 generates an output 465 based on the weighted sum of the memory score 462 and the utterance score 464. The weighted sum of the memory score 462 and the utterance score 464 can be normalized by a sigmoid function to estimate the probability associated with the input label. The label with the highest probability is assigned to the user utterance 402c and the system utterance 402d.
[0100] Equation (1) describes the generation of weighted mixture 425, weighted mixture 445, and the weighted sum of memory score 462 and speech score 464. As shown in equation (1), the weights are variables applied to the outputs of the various elements of architecture 400a. Note that the weights applied to weighted mixture 425 can be different from the weights applied to weighted mixture 445. The symbol G in equation (1) corresponds to the output of the global BiLSTM network 410, the output of the global attention 430, or the output of the memory score 462. The symbol L in equation (1) corresponds to the output of the local BiLSTM network 420, the output of the local attention 440, or the output of the speech score 464. Equation 1:
[0101] Weighted Mix = W 1 G+W 2 L(1)
[0102] When generating the weighted mixture 425, the weighted mixture 445, and the weighted sum of the memory score 462 and the speech score 464, the weight can be changed. The weight is predetermined. In a particular embodiment, the weight is constant throughout the conversation. In a particular embodiment, the weight can be changed during the conversation so that as more speech occurs, the weight can be changed. For example, based on the number of speeches, the weight applied during the weighted mixture 425a can be different from the weight applied during the weighted mixture 425d. When there is no previous speech, more emphasis can be placed on the global BiLSTM network 410a compared to the local BiLSTM network 420a. In contrast, at the weighted mixture 425d, there is a previous speech, and therefore, more emphasis can be placed on the local BiLSTM network 420d compared to the global BiLSTM network 410d. Similarly, based on the number of speeches, a greater weight can be applied to the speech score 464 compared to the memory score 462. As the number of speeches increases, the weight can be offset, and more weight is applied to the memory score 462 compared to the speech score 464.
[0103] After generating the probability associated with each label, the label with the highest probability is assigned to the dialogue pair. If the label indicates that there is no interruption (label O), the dialogue pair moves above line 401. If the label indicates that there is a possible interruption (label T), the dialogue pair moves above line 401. If the label indicates that there is an interruption (label X), the dialogue pair moves above line 401. In addition, or alternatively, if the label indicates that there is an interruption (label X), the dialogue interruption detection system 316 notifies the dialogue management system 308 to generate a new reply via the dialogue interruption recovery 314, or notifies the dialogue notification generator 318, or both.
[0104] FIG. 4B to FIG. 4GAn example of using various dialogue pairs with different labels as input to the overall attention 450 (which identifies the context 455 used when generating probabilities of labels with respect to future dialogue pairs) is described. Figure 4B and Figure 4C Environments 400b and 400c are shown respectively, and depict conversation pair 404a assigned a label X indicating that there is an interruption. Figure 4D and Figure 4E Environments 400d and 400e are shown respectively, and depict conversation pair 404b being assigned a tag T indicating that there is a possible interruption. Figure 4F and Figure 4G Environments 400f and 400g are shown respectively, and depict conversation pair 404c assigned a label O indicating that there is no interruption.
[0105] Figure 4B and Figure 4C The conversation pair 404a may include the user utterance "TELL ME ABOUT PICNICS" and the system reply "TODAY IS MONDAY". The conversation interruption occurs because the reply generated by the system does not respond to the user's inquiry. The user utterance of the conversation pair 404a is embedded using the user embedding 406a. The global BiLSTM network 410 and the local BiLSTM network 422 corresponding to the label X process the embedding of the user utterance. The weighted mixture 425 generates a weighted sum of the output of the global BiLSTM network 410 and the output of the local BiLSTM network 422. The global attention 430 and the local attention 440 identify keywords. The weighted mixture 445 generates a weighted sum of the output of the global attention 430 and the output of the local attention 440. The weighted mixture based on the user utterance of the conversation pair 404a is provided to the overall attention 450.
[0106] Similarly, the system utterance of the dialogue pair 404a is embedded using the system embedding 406b. The global BiLSTM network 410 and the local BiLSTM network 422 corresponding to the label X process the embedding of the system utterance. The weighted mixture 425 generates a weighted sum of the output of the global BiLSTM network 410 and the output of the local BiLSTM network 422. The global attention 430 and the local attention 440 identify keywords. The weighted mixture 445 generates a weighted sum of the output of the global attention 430 and the output of the local attention 440. The weighted mixture based on the system utterance of the dialogue pair 404a is provided to the overall attention 450.
[0107] Figure 4D and Figure 4EThe dialogue pair 404b may include the user utterance "TELL ME ABOUT PICNICS" and the system reply "SURE, WHERE WOULD YOU LIKE TO GO?". Since the system reply does not directly solve the user's inquiry, and the system reply does not respond to the user's inquiry, a dialogue interruption may occur. Thus, as shown by label T, a possible interruption occurs in the dialogue pair 404b.
[0108] The user utterance of the dialogue pair 404b is embedded using the user embedding 406a. The global BiLSTM network 410 and the local BiLSTM network 422 corresponding to the label T process the embedding of the user utterance. The weighted mixture 425 generates a weighted sum of the output of the global BiLSTM network 410 and the output of the local BiLSTM network 422. The global attention 430 and the local attention 440 identify keywords. The weighted mixture 445 generates a weighted sum of the output of the global attention 430 and the output of the local attention 440. The weighted mixture based on the user utterance of the dialogue pair 404b is provided to the overall attention 450.
[0109] Similarly, the system utterance of the dialogue pair 404b is embedded using the system embedding 406b. The global BiLSTM network 410 and the local BiLSTM network 422 corresponding to the label T process the embedding of the system utterance. The weighted mixture 425 generates a weighted sum of the output of the global BiLSTM network 410 and the output of the local BiLSTM network 422. The global attention 430 and the local attention 440 identify keywords. The weighted mixture 445 generates a weighted sum of the output of the global attention 430 and the output of the local attention 440. The weighted mixture based on the system utterance of the dialogue pair 404b is provided to the overall attention 450.
[0110] Figure 4F and Figure 4G The dialogue pair 404c may include the user utterance "TELL ME ABOUT PICNICS" and the system reply "PICNICS ARE FUN WHEN YOU GO WITH FRIENDS OR FAMILY. WOULD YOU LIKE TO KNOW THE TOP PICNIC LOCATIONS IN YOUR AREA". Because the system directly responds to the user's inquiry, no dialogue interruption occurs. Thus, as shown in label O, no interruption occurs in the dialogue pair 404c.
[0111] The user utterance of the dialogue pair 404c is embedded using the user embedding 406a. The global BiLSTM network 410 and the local BiLSTM network 422 corresponding to the label O process the embedding of the user utterance. The weighted mixture 425 generates a weighted sum of the output of the global BiLSTM network 410 and the output of the local BiLSTM network 422. The global attention 430 and the local attention 440 identify keywords. The weighted mixture 445 generates a weighted sum of the output of the global attention 430 and the output of the local attention 440. The weighted mixture based on the user utterance of the dialogue pair 404c is provided to the overall attention 450.
[0112] Similarly, the system utterance of the dialogue pair 404c is embedded using the system embedding 406b. The global BiLSTM network 410 and the local BiLSTM network 422 corresponding to the label O process the embedding of the system utterance. The weighted mixture 425 generates a weighted sum of the output of the global BiLSTM network 410 and the output of the local BiLSTM network 422. The global attention 430 and the local attention 440 identify keywords. The weighted mixture 445 generates a weighted sum of the output of the global attention 430 and the output of the local attention 440. The weighted mixture based on the system utterance of the dialogue pair 404c is provided to the overall attention 450.
[0113] Figure 4H The process of performing holistic attention 450 using multiple weighted mixtures obtained previously is shown. For example, Figure 4A The weighted mixture 445a corresponds to the weighted mixture from the first user utterance. Figure 4A The weighted mixture 445b corresponds to the weighted mixture from the first system utterance. Figure 4A The weighted mixture 445c corresponds to the weighted mixture from the second user utterance. The overall attention 450 identifies the context 455 from the multiple weighted mixtures. When the architecture 400a identifies the label of the system utterance 402d and obtains a new dialogue pair, the weighted mixture corresponding to the system utterance 402d and the assigned label will be an additional input to the overall attention 450.
[0114] although 4A to 4H An example of architecture 400a is shown, but may be 4A to 4H Various changes may be made. For example, architecture 400a may include more than three tags. For another example, architecture 400a may include less than three tags. In addition, the tasks performed using architecture 400a may be included in the conversation interruption detection system 316 of electronic device 201, or located on a remote device such as server 206.
[0115] Figure 5 An example dialogue 500 for distinguishing between local context and global context according to the present disclosure is shown. The dialogue 500 may, for example, represent Figure 4A A collection of utterances used in architecture 400a.
[0116] Dialogue 500 includes global context 510 and local context 520. Global context 510 corresponds to multiple utterances, while local context 520 corresponds to a specific utterance. For example, local context 520 may include "HERE ARE THE DOCUMENTS FROM KEVEN SORTED BY DATE".
[0117] The global context 510 may be fixed, or may change based on the size of the window. For example, the size of the global context may increase continuously as the number of utterances increases with each new utterance generated by the system or received via a user. The global context 510 may be fixed and include a specific number of utterances, such as six utterances. For example, if a new utterance is obtained from a user, the initial user utterance "SHOW ME THEHOME DIRECTORIES" will then be removed from the global context. As described above, the size of the window may change based on the domain of the identified conversation. In a particular embodiment, if the size of the window is based on the domain, and the domain changes during the conversation, which causes the size of the window to change, the size of the global context will change accordingly.
[0118] although Figure 5 An example dialogue is shown, but Figure 6 Various changes are made. For example, the dialog 500 can include an interruption. For another example, the dialog 500 can include a larger or smaller global context 510.
[0119] Figure 6 A graph 600 is shown in accordance with the present disclosure. Figure 6 An example graph is shown, but Figure 6 Make various changes.
[0120] Graph 600 will use the global and local context of the conversation Figure 3 An embodiment of the conversation interruption detection system 316 of is compared to two other interruption detection systems. Graph 600 relates the number of turns to a metric value. The number of turns corresponds to the number of utterances within a conversation. Line 610 identifies the success rate of the first interruption detection method (denoted as recall) over multiple turns, line 620 indicates the success rate of the second interruption detection method (denoted as F method) over multiple turns, and line 630 indicates the success rate of the disclosed interruption detection method (using global local context as described in architecture 400a) over multiple turns. As shown, line 630 has the highest metric value at each new utterance, indicating that the metric value is the same as the value of the global local context described in architecture 400a. Figure 4AThe global-local context described in
[14] outperforms other context-based interruption detection models.
[0121] Figure 7 An example method 700 for conversation interruption detection according to the present disclosure is shown. The method 700 may be performed by Figure 1 any one of the server 104 or client devices 106 to 114, Figure 2 The method 700 is performed by the electronic device 201 or the server 206, or any other suitable device or system. For ease of explanation, the method 700 is described as comprising Figure 3 The method 700 may be performed by the natural language processing system 300 and the electronic device 201 of the architecture 400a of FIG. 4. However, the method 700 may be used with any other suitable system.
[0122] In block 702, the electronic device 201 obtains input. In certain embodiments, the input is verbal input obtained via the audio sensor 295, such as Figure 4A The input may be a text input, such that the electronic device receives typed utterances via a keyboard. The input may request the electronic device 201 to provide information or perform a specific task.
[0123] In block 704, the electronic device 201 generates a reply to the input. The reply responds to the input, for example Figure 4A The system speech 402b and 402n of . The reply can provide the requested information, confirm the completion of the task, or provide an incorrect response. An incorrect response corresponds to a dialogue interruption.
[0124] In box 706, the electronic device 201 identifies a local context and a global context. The local context is based on the input, and the global context is based on the input, additional input previously received by the electronic device 201, and additional replies previously generated in response to the additional input. In order to identify the local and global contexts, the electronic device encodes the input and the reply separately using an LSTM neural network. In a specific embodiment, the LSTM neural network is a BiLSTM neural network. The LSTM neural network generates a vector representing the input.
[0125] Inputs and replies are encoded and processed separately with respect to the global LSTM network and the local LSTM network. The global LSTM network processes previous utterances (if available) and inputs. The global LSTM network also processes previous utterances (if available) and replies. Local LSTM networks process inputs and replies respectively with respect to specific labels. For example, if a label is assigned to an input or a reply, a specific local LSTM network is trained to identify keywords of the utterance based on the label assigned to the utterance (e.g., input or reply). If no label is assigned to an input or a reply, all local LSTM networks trained with respect to different labels process the utterance.
[0126] The electronic device 201 generates a weighted mixture of the global LSTM network and the local LSTM network. The weighted mixture of the global LSTM network and the local LSTM network is input into the global attention and the local attention. The electronic device 201 generates a weighted mixture of the global attention and the local attention.
[0127] When assigning tags to utterances, a weighted mix of global attention and local attention is input to the overall attention. The overall attention combines one or more additional weighted mixes associated with previous utterances to identify local context and global context. The local context is based on the keywords of interest within the spoken input, and the global context is based on repeated keywords and mutual context information within the spoken input, replies, additional spoken inputs, and previous replies. The local and global contexts are used to generate probabilities associated with tags for future utterances so that tags can be selected and assigned to future utterances. When no tags are assigned to utterances, the electronic device generates probabilities associated with possible tags. The probabilities are based on memory scores and utterance scores. The memory score is generated based on the context generated by the overall attention, while the utterance score is generated based on the input and replies.
[0128] Alternatively, in step 708, when the label assigned to the reply indicates that an interruption has occurred, the electronic device 201 identifies a conversation interruption. In a particular embodiment, when an interruption occurs, the electronic device 201 generates a notification indicating that a conversation interruption has occurred. The notification is an audible notification, a displayed notification, or both. In a particular embodiment, when an interruption occurs, the electronic device 201 recovers from the conversation interruption. In a particular embodiment, recovery may occur before providing a reply to the user.
[0129] In block 710, when the conversation interruption is not identified, the electronic device 201 generates a sound corresponding to the reply through the speaker. In response to determining that the reply corresponds to the local context and the global context, the conversation interruption will not be identified. For example, when the label assigned to the system reply does not indicate that there is an interruption, the electronic device 201 replies to the user.
[0130] although Figure 7One example of a method 700 for providing a request to an execution engine is shown, but may be used for Figure 7 For example, although shown as a series of steps, Figure 7 The steps in a process can overlap, occur in parallel, or occur any number of times.
[0131] Although the drawings illustrate different examples of user equipment, various changes may be made to the drawings. For example, the user equipment may include any number of each component in any suitable arrangement. Generally, the drawings do not limit the scope of the present disclosure to any particular configuration. In addition, although the drawings illustrate operating environments in which various user equipment features disclosed in this patent document may be used, these features may be used in any other suitable system.
[0132] The description in this application should not be construed as implying that any particular element, step, or function is an essential element that must be included in the scope of the claims. The scope of the patent subject matter is limited only by the claims. Applicants interpret the use of any other terms in the claims, including but not limited to "mechanism", "module", "device", "unit", "component", "element", "member", "device", "machine", "system", "processor", or "controller" as referring to structures known to those skilled in the relevant art.
[0133] Although the present disclosure has been described with exemplary embodiments, various changes and modifications may be suggested to those skilled in the art. The present disclosure is intended to encompass such changes and modifications as fall within the scope of the appended claims.
Claims
1. A method for detecting a conversation interruption, include: obtaining verbal input from an audio sensor; generating, by a processor, a response to the spoken input; identifying, by the processor, a local context and a global context, wherein the local context is based on the spoken input and is identified using a first long short-term memory (LSTM) network, and wherein the global context is based on the spoken input, additional spoken input previously received by the audio sensor, and a previous reply generated in response to the additional spoken input and is identified using a second LSTM network different from the first LSTM network; generating a weighted mixture of the local context and the global context; identifying, by the processor, a conversation interruption in response to determining that the reply does not correspond to the local context and the global context based at least in part on the weighted blend of the local context and the global context; as well as When the conversation interruption is not recognized, a sound corresponding to the reply is generated through a speaker.
2. The method according to claim 1, further comprising: include: In response to identifying the session interruption, generating, by the processor, a notification indicating that the session interruption occurred, Wherein, the notification includes at least one of an audible notification generated by the speaker and a visual notification output to a display.
3. The method according to claim 1, further comprising: include: In response to identifying the dialog interruption, recovering from the dialog interruption based on the local context and the global context by the processor.
4. The method according to claim 3, in, Recovering from the conversation interruption includes: identifying, by the processor, at least one of a first confidence score associated with automatic speech recognition, a second confidence score associated with natural language understanding, and a third confidence score associated with the spoken input; identifying, by the processor, a context associated with the state based on verifying that the context associated with the state corresponds to at least one of the first confidence score, the second confidence score, and the third confidence score, the local context, and the global context; and generating, by the processor, a modified reply based on the context associated with the state, The state includes at least one of a location, a keyword, a sentence, and the verbal input.
5. The method according to claim 1, further comprising: include: identifying a temporal relationship between the spoken input, the previous response, and the additional spoken input; identifying the local context based on a keyword of interest within the spoken input; as well as The global context is identified based on repeated keywords and mutual context information within the spoken input, the reply, the additional spoken input, and the previous reply.
6. The method according to claim 5, in, Identifying the global context includes identifying the additional spoken input and a number of the previous replies based on a window size, the window size being at least one of a fixed window size or a varying window size.
7. The method according to claim 1, in, Identifying the conversation interruption includes: generating a memory score associated with a first label, the memory score indicating a probability that the first label corresponds to the reply and the global context; generating an utterance score associated with the first label, the utterance score indicating a probability that the reply corresponds to the spoken input; assigning a first weight to the memory score and a second weight to the utterance score to generate a weighted memory score and a weighted utterance score, respectively; generating a weighted score based on combining the weighted memory score and the weighted utterance score, the weighted score being associated with the first tag; and comparing the weighted score to a previous weighted score associated with the corresponding tag, Wherein, when the first tag is associated with the conversation interruption and the weighted score is greater than the previous weighted score, the conversation interruption is identified.
8. An electronic device for detecting a conversation interruption, include: Audio sensor; a speaker configured to generate sound; as well as a processor operably coupled to the audio sensor and the speaker; A memory operatively coupled to the processor, the memory comprising instructions executable by the processor to: obtaining verbal input from the audio sensor, generating a response to the spoken input, identifying a local context and a global context, wherein the local context is based on the spoken input and is identified using a first long short-term memory (LSTM) network, and wherein the global context is based on the spoken input, additional spoken input previously received by the audio sensor, and a previous reply generated in response to the additional spoken input and is identified using a second LSTM network different from the first LSTM network, generating a weighted mixture of the local context and the global context, Responsive to determining that the reply does not correspond to the local context and the global context based at least in part on the weighted blend of the local context and the global context, identifying a conversation interruption, and When the conversation interruption is not recognized, a sound corresponding to the reply is generated through the speaker.
9. The electronic device according to claim 8, in: The electronic device further comprises a display; and The memory further includes instructions for generating a notification indicating that the conversation interruption occurred in response to identifying the conversation interruption, wherein the notification includes at least one of an audible notification generated by the speaker and a visual notification output to the display.
10. The electronic device according to claim 8, in, The memory also includes instructions for, in response to identifying the conversation interruption, recovering from the conversation interruption based on the local context and the global context.
11. The electronic device according to claim 10, in, To recover from the session interruption, the memory includes instructions for: identifying at least one of a first confidence score associated with automatic speech recognition, a second confidence score associated with natural language understanding, and a third confidence score associated with the spoken input; identifying a context associated with the state based on verifying that the context associated with the state corresponds to at least one of the first confidence score, the second confidence score, and the third confidence score, the local context, and the global context; as well as generating a modified reply based on the context associated with the state, The state includes at least one of a location, a keyword, a sentence, and the verbal input.
12. The electronic device according to claim 8, in, To identify the local context and the global context, the memory includes instructions for: identifying a temporal relationship between the spoken input, the previous response, and the additional spoken input; identifying the local context based on a keyword of interest within the spoken input; as well as The global context is identified based on repeated keywords and mutual context information within the spoken input, the reply, the additional spoken input, and the previous reply.
13. The electronic device according to claim 12, in, To identify the global context, the memory includes instructions for identifying the additional spoken input and a number of the previous replies based on a window size, the window size being at least one of a fixed window size or a varying window size.
14. The electronic device according to claim 8, in, In order to identify the interruption of the conversation, the memory includes instructions for performing the following operations: generating a memory score associated with a first label, the memory score indicating a probability that the first label corresponds to the reply and the global context; generating an utterance score associated with the first label, the utterance score indicating a probability that the reply corresponds to the spoken input; assigning a first weight to the memory score and a second weight to the utterance score to generate a weighted memory score and a weighted utterance score, respectively; generating a weighted score based on combining the weighted memory score and the weighted utterance score, the weighted score being associated with the first tag; and comparing the weighted score to a previous weighted score associated with the corresponding tag, Wherein, when the first tag is associated with the conversation interruption and the weighted score is greater than the previous weighted score, the conversation interruption is identified.
15. A computer-readable medium comprising instructions which, when executed, cause at least one processor of an electronic device to perform the method according to any one of claims 1 to 7.
