Message analysis using machine learning models
By integrating machine learning models into the email system, the defective components of draft messages are analyzed, the problem of missing information in draft messages is solved, the efficiency and user experience of email exchanges are improved, and energy consumption is reduced.
Patent Information
- Application Number
- CN201880090032.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2017-12-22
- Filing Date
- 2018-09-14
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2038-09-14
AI Technical Summary
It is difficult for existing email systems to automatically detect missing information during the exchange of draft messages, resulting in users potentially missing important information when sending messages, increasing the need for subsequent clarification, and affecting efficiency and user experience.
By integrating machine learning models in the message processing system, the text content of draft messages is analyzed, defective components in draft reply messages and received messages are identified, including unmentioned seed topics, missing information and ambiguous information, and prompts and Suggestions to improve draft messages.
Reducing the number of messages exchanged by users increases the efficiency of messaging systems, reduces network traffic, provides a more pleasant user experience, and reduces computing system energy consumption.
Smart Images

Figure CN111742337B_ABST
Abstract
Description
Background Art
[0001] Some computing systems provide electronic messaging (e.g., email) services that facilitate electronic communications between users of computing devices. During an email exchange, participating users communicate back and forth with each other, sometimes responding to queries made by others in subsequent email replies. Some email systems can analyze draft replies before sending them. For example, the system analyzes the draft email for potential missing attachments. For example, if the body of the draft email references an attachment, but the user has not yet attached any files to the draft email, the system can prompt the user with a warning indicating that the user may have forgotten to add the attachment. Summary of the invention
[0002] The disclosed subject matter relates to techniques for detecting missing information during an electronic message exchange between users, such as via email or instant messaging. Rather than determining whether a user has failed to attach a document, a message processing system evaluates defects in the message text content of a draft message before the draft message is sent. For example, when composing an original email, or when composing a reply to an email from a friend or colleague (a "sender," such as another email user), it is not uncommon for a user to draft an email that includes incomplete information, or forgets to respond to a query provided in the initial email. Thus, if sent as originally drafted, a defective email often causes the recipient to send a follow-up communication to clarify the defect. The message processing system assists the drafter in these types of situations. The message processing system analyzes the composed message to detect text content defects. In one example, the message processing system is integrated with an email client or an instant messaging client to analyze a draft message composed by a user.
[0003] For situations where a user is responding to a received message, the message processing system analyzes the draft reply message ("reply content") for responses to various aspects of the received message. The message processing system may analyze the received message to identify one or more seed subjects addressed in the received message. Such seed subjects may include questions posed to the user, information requested from the user, topics addressed by the received message, etc. In response to the identification of the seed subjects, the message processing system analyzes the draft reply message to detect any seed subjects from the received message that are not addressed in the draft reply message. For example, an incoming email may have asked where and when the user would like to have lunch, but the draft reply email may only identify a suggested location and not a suggested time. The message processing system prompts the user before sending the draft reply message what seed subjects appear not to be mentioned by the reply message. In this case, the received message can be used to determine what information the recipient of the draft reply message (e.g., typically the sender of the received message) may expect, and the draft reply message can be used to determine whether the user has fulfilled those expectations.
[0004] For situations where a user is composing a message with "original content" (e.g., a message or message component that is not necessarily responsive to another message or seed topic), the message processing system identifies message components in the draft original message that may prompt follow-up questions, clarifications, etc. For example, a user may draft an original message indicating that they would like to have lunch with a recipient at a specific location, but the user does not identify a date or time. Such a message may generally elicit a reply based on the recipient's request for missing information. The message processing system analyzes the original message for such message deficiencies and prompts the user as to what information is potentially missing before sending the draft original message. In such a situation, the message processing system may use the draft original message to determine what information the recipient of the draft original message may expect, and determine whether the draft original message includes enough information to fulfill those expectations.
[0005] By automatically detecting defects in draft messages, the message processing system can cause a user to focus his or her attention on the defects; thereby reducing the number of messages that the user needs to exchange. Such automation can reduce network traffic through the messaging system and promote more efficient user interaction with the example computing system, such that the example computing system generally receives fewer messages than other computing systems that do not identify message defects in this manner. As a result, the example message processing system can perform fewer operations than other computing systems and can consume less power and / or result in battery power conservation. Additionally, the example computing system can provide a more enjoyable user experience that is less frustrating.
[0006] In one example, the present disclosure relates to a method, the method comprising: receiving, by at least one processor, a subject reception message and a subject draft reply message to the subject reception message, the subject reception message comprising a reception message component, the reception message component representing one or more of a question, a request, and a subject presented in the subject reception message. The method further comprises, by the at least one processor, parsing the subject reception message to identify the reception message component. The method further comprises, by the at least one processor, parsing the subject draft reply message into one or more reply message components. The method further comprises, by the at least one processor, identifying one or more information components associated with the reception message component and each of the one or more reply message components by applying at least one or more machine learning models to the reception message component and each of the one or more reply message components. The method further comprises, by the at least one processor and based on the one or more information components, identifying one or more defective components in the subject draft reply message. The method further comprises outputting information about the one or more defective components for display.
[0007] In another example, the present disclosure relates to a computing device, the computing device including a storage device, the storage device storing one or more modules, and at least one processor, the at least one processor executing the one or more modules. The at least one processor receives a subject reception message and a subject draft reply message to the subject reception message, the subject reception message including a reception message component, the reception message component representing one or more of the questions, requests, and subjects presented in the subject reception message. The at least one processor also parses the subject reception message to detect the reception message component. The at least one processor further parses the subject draft reply message into one or more reply message components. The at least one processor also identifies one or more information components associated with the reception message component and one or more reply message components by applying at least one or more machine learning models to each of the reception message components and one or more reply message components. The at least one processor also identifies one or more defective components in the subject draft reply message based on the one or more information components. The at least one processor further outputs information about the one or more defective components for display.
[0008] In another example, the present disclosure relates to a computer-readable storage medium, the computer-readable storage medium including instructions that, when executed, cause at least one processor of a computing system to receive a subject reception message and a subject draft reply message to the subject reception message, the subject reception message including a reception message component, the reception message component representing one or more of a question, a request, and a subject presented in the subject reception message. The computing system also parses the subject reception message to detect the reception message component. The computing system further parses the subject draft reply message into one or more reply message components. The computing system also identifies one or more information components associated with the reception message component and one or more reply message components by applying at least one or more machine learning models to each of the reception message component and one or more reply message components. The computing system further identifies one or more defective components in the subject draft reply message based on the one or more information components. The computing system also outputs information about the one or more defective components for display.
[0009] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the disclosure will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 is a conceptual diagram illustrating an example message processing system executing an example message processing module according to one or more aspects of the present disclosure.
[0011] Figure 2 is a block diagram illustrating an example computing device configured to analyze a draft message in accordance with one or more aspects of the present disclosure.
[0012] Figure 3 is a conceptual diagram illustrating example screenshots of a graphical user interface of a computing device configured to analyze reply content of a draft reply message for defects in accordance with one or more aspects of the present disclosure.
[0013] Figure 4A is a conceptual diagram illustrating example screenshots of a graphical user interface of a computing device configured to analyze original content of a draft message for defects in accordance with one or more aspects of the present disclosure.
[0014] Figure 4B is a diagram showing a message as identified by a message processing module according to one or more aspects of the present disclosure Figure 4A A conceptual diagram of the various ingredients of the content of the screenshots.
[0015] Figure 5is a flow diagram illustrating example operations for analyzing a draft message for defective content in accordance with one or more aspects of the present disclosure. DETAILED DESCRIPTION
[0016] Figure 1 is a conceptual diagram illustrating an example message processing system 100 executing an example message processing module 120 according to one or more aspects of the present disclosure. Figure 1 The message processing system 100 of FIG. 1 includes two computing devices 110A, 110B of users that participate in electronic messaging with each other via a messaging system 160 on a network 130. In this example, a user of computing device 110A (a "drafting user") is composing a draft message 104 in response to a message 102 (such as an email) sent from a sender (e.g., a user of computing device 110B). In other examples, the draft message 104 may be a message with original content (e.g., new email or other message content that is not necessarily responsive to content in any other communication). Before the drafting user sends the draft message 104 to its intended recipient, the message processing system 100 analyzes the draft message 104 for various types of defects. For example, the message processing system 100 may identify aspects of the message 102 that the drafting user does not respond to in the draft message 104, or the message processing system 100 may identify aspects of the draft message 104 that are incomplete, ambiguous, or otherwise likely to cause subsequent requests from the recipient.
[0017] The network 130 represents any public or private communication network for transmitting data between computing systems, servers, and computing devices, such as cellular, Wi-Fi, and / or other types of networks. The messaging system 160 may exchange data with the computing device 110 via the network 130 to provide a messaging service accessible to the computing device 110 when the computing device 110 is connected to the network 130. The network 130 may include one or more network hubs, network switches, network routers, or any other network devices that are operably coupled to each other to provide for the exchange of information between the messaging system 160 and the computing device 110. The computing device 110 and the messaging system 160 may transmit and receive data over the network 130 using any suitable communication technology. The computing device 110 and the messaging system 160 may each be operably coupled to the network 130 using respective network links. The link coupling the computing device 110 and the messaging system 160 to the network 130 may be an Ethernet or other type of network connection, and such connection may be a wireless and / or wired connection.
[0018] Messaging system 160 represents any suitable remote computing system configured to host an electronic messaging service, such as one or more desktop computers, laptop computers, mainframes, servers, cloud computing systems, etc. For example, messaging system 160 may be one or more mail servers configured to provide an email messaging service, an instant messaging service, or a social media communication service. Each of computing devices 110 represents a separate mobile or non-mobile computing device configured to access the messaging service provided by messaging system 160. Examples of computing devices 110 include mobile phones, tablet computers, laptop computers, desktop computers, servers, mainframes, set-top boxes, televisions, wearable devices (e.g., computerized watches, computerized glasses, computerized gloves, etc.), home automation devices or systems (e.g., smart thermostats or security systems), voice interfaces or countertop home assistant devices, personal digital assistants (PDAs), gaming systems, media players, e-book readers, mobile television platforms, automotive navigation or infotainment systems, or any other type of mobile, non-mobile, wearable, and non-wearable computing devices configured to access electronic messaging services.
[0019] Computing device 110A includes user interface component (“UIC”) 112, user interface (“UI”) module 114, messaging client module 116, and message processing module 120. In some examples, messaging system 160 may include message processing module 120. Modules 114, 116, and 120 may perform the operations described herein using software, hardware, firmware, or a mixture of hardware, software, and firmware resident in and / or executing at computing device 110. Computing device 110 and messaging system 160 may execute modules 114, 116, and 120 with multiple processors or multiple devices, as a virtual machine executing on underlying hardware, as one or more services of an operating system or computing platform, and / or as one or more executable programs at an application layer of a computing platform of computing device 110 or messaging system 160.
[0020] The UIC 112 of the computing device 110 serves as an input and / or output device of the computing device 110A. The UIC 112 may be implemented using various technologies. For example, the UIC 112 may be used as an input device using a presence-sensitive input screen, microphone technology, infrared sensor technology, or other input device technology for receiving user input. The UIC 112 may be used as an output device configured to present output to a user using any one or more display devices, speaker technology, tactile feedback technology, or other output device technology for outputting information to a user. As an input device, the UIC 112 detects input (e.g., touch and non-touch input) from a user of the computing device 110. Examples of user input gestures performed by a user (e.g., a user touching, indicating, and / or sliding at or near one or more locations of the UIC 112 using a finger or stylus). As an output device, the UIC 112 presents information (e.g., auditory, visual, and / or tactile information) to a user in the form of a user interface (e.g., user interface 140).
[0021] UI module 114 of computing device 110A controls UIC 112, including determining what UIC 112 presents and what information is exchanged between UIC 112 and other applications or components of computing device 110A. For example, in controlling what UIC 112 displays, UI module 114 may receive information used to generate user interface 140 and its elements from a component of computing device 110A, such as messaging client 116 or message processing module 120. In response, UI module 114 may output instructions and information to UIC 112 that cause UIC 112 to display user interface 140 in accordance with the information received from messaging client 116. When processing input detected by UIC 112, UI module 114 may receive information from UIC 112 in response to the input detected at the location of the screen of UIC 112 where elements of user interface 140 are displayed. UI module 114 propagates information about input detected by UIC 112 to other components of computing device 110A for interpreting the input and for causing computing device 110A to perform one or more functions in response to the input.
[0022] User interface 140 represents a graphical user interface from which a user of computing device 110A can interact with a messaging service accessed by computing device 110A, such as a messaging service provided by messaging system 160. User interface 140 includes a view of an inbox 142 of a messaging service mailbox. Within inbox 142, user interface 140 includes a graphical display of electronic messages. In this example, a drafting user ("Bob") is composing a draft message 104 while simultaneously replying to message 102. The drafting user enters reply message text 144 into user interface 140 over message text 146 received from message 102 while composing draft message 104.
[0023] The messaging client 116 and the messaging service module 162 communicate via the network 130 to provide messaging services to the computing device 110. Examples of messaging services include: email services, text messaging services, short message services, simple service messaging, multimedia messaging services, social media messaging services, voice messaging services, video messaging services, or any other service that facilitates the exchange of human-readable electronic messages. As used throughout this disclosure, the term "electronic message" is generally used to describe any type of human-readable electronic message that can be transmitted between computing devices. Examples of electronic messages include: instant messages, chat messages, electronic mail (e-mail) messages, social media communications, voice mail messages, video messages, or any other type of person-to-person communication accessed via a computing device.
[0024] The messaging client 116 provides the front-end, user-facing features of the messaging service, while the messaging service module 162 supports the back-end operations for implementing the messaging service on the network 130. The messaging client 116 is a portal for the computing device 110 to access electronic messages stored at the messaging system 160 and / or the computing device 110. The messaging client 116 may be an email application, a web application, or other module executed at the computing device 110 that communicates with the messaging system 160 to provide a user of the computing device 110 with access to messages maintained at the messaging system 160 and / or the computing device 110.
[0025] Messaging service module 162 processes electronic messages received via network 130 from computing device 110 and other computing devices and messaging systems that communicate via network 130. Messaging client 116 processes inbound electronic messages received from messaging system 160 via network 130 and sends outbound electronic messages via network 130 to messaging service module 162 for further processing.
[0026] Messaging client 116 and messaging service module 162 maintain a messaging account associated with a user of computing device 110. That is, messages sent from computing device 110 or received by computing device 110 may be stored in a sent box or an inbox of a messaging account associated with the user of computing device 110. The sent box and the inbox may be maintained in a memory of computing device 110 and / or messaging system 160.
[0027] In a simple case when processing an inbound message (e.g., message 102) destined for computing device 110A, messaging service module 162 receives the electronic message for processing (e.g., via network 130). Messaging service module 162 determines (e.g., based on metadata of the electronic message) one or more recipients of the electronic message. If one of the recipients is a messaging account associated with a user of computing device 110A (e.g., the drafting user), messaging service module 162 may cause a copy of the electronic message to be stored in an inbox of the messaging account associated with the user of computing device 110A, whether the messaging account is stored locally at messaging system 160 or computing device 110A.
[0028] Similarly, when processing an outbound message (e.g., draft message 104) originating from computing device 110A, messaging service module 162 receives the electronic message for processing (e.g., via network 130). Messaging service module 162 determines one or more recipients of the electronic message (e.g., based on metadata of the electronic message) and sends the message to devices or messaging systems associated with the one or more recipients. Messaging service module 162 may cause a copy of the sent electronic message to be stored as a sent item in a messaging account associated with the user of computing device 110A, whether the messaging account is stored locally at messaging system 160 or computing device 110A.
[0029] The message processing module 120 is configured to analyze incomplete or ambiguous components of the draft message 104 before sending the draft message 104 to its intended recipient. Although illustrated as part of the messaging system 160, in some examples, some or all of the message processing module 120 is executed as part of the computing device 110A, wherein the message processing module 120 is configured to automatically analyze the draft message 104 while the draft message 104 is being drafted within the UIC 112. In other words, some or all of the operations described herein attributed to the message processing module 120 may be performed by the messaging system 160 and / or the computing device 110A (e.g., if the computing device 110A is offline and disconnected from the network 130).
[0030] With explicit permission to analyze personal information of a user of a messaging service provided by messaging service module 162 (e.g., inbound and outbound messages), message processing module 120 determines, in the case of a reply, whether draft message 104 mentions each seed topic present in the received email (e.g., message 102), or, in the case of an original message, whether draft message 104 includes any topics with ambiguous or incomplete information missing from draft message 104. For example, after a drafting user consents to messaging system 160 analyzing his or her electronic messages for potential content defects, message processing module 120 may analyze message 102 to determine one or more seed topics contained within the message, and may analyze draft message 104 (e.g., when the drafting user initiates sending an email) to determine whether draft message 104 mentions each seed topic identified from message 102.
[0031] The message processing module 120 can use a machine learning model trained using historical messages to identify defective components of the draft message 104. In some examples, the machine learning model can be trained using received messages, draft messages, reply messages, and / or subsequent replies to determine when a particular draft reply mentions or fails to mention a seed topic, or when a draft message contains ambiguous or missing components that may obscure information for subsequent email clarification.
[0032] There are various examples of reply messages or original messages. Figure 1 In the example email and reply shown in , a drafting user "Bob" receives an email from another user "Patricia" regarding a sales report. In her initial email, Patricia indicates that the quarterly sales report is ready for Bob to review (a first seed topic), and she asks when Bob plans to leave for the airport (a second seed topic) (as shown by the received message text 146). However, when composing the reply, Bob mentions that he will review the report, but neglects to answer Patricia's question (as shown by the reply message text 144). In response to detecting one or more seed topics that are not mentioned by the draft reply, the message processing module 120 can indicate to the drafting user that the content of the reply is defective. In some examples, the message processing module 120 can highlight portions of the received message that appear not to be mentioned by the draft reply. The message processing module 120 can pre-populate the reply message with a template reply sentence so that the user can complete the template with information details, or can otherwise suggest edits to satisfy the identified deficiencies. For example, based on Patricia's unanswered question text "What time do you leave for the airport", the message processing module 120 can add a template reply sentence of "I leave for the airport at ____" to the draft reply message.
[0033] In some cases, the drafting user may be composing a new draft message to the recipient, or the drafting user may be composing a reply message, but the reply message includes a new subject that is not included in the received message. For example, the drafting user may compose a new email to a colleague, inviting him to have lunch at a local restaurant today. Such an email may cause a reply email to inquire about the lunch time because the drafting user neglected to mention the time in the initial email. In this way, the message processing module 120 analyzes the content of the message before sending the draft message to the recipient, determines that the draft message includes a seed subject that identifies a lunch event, determines that location and time are components included in such an event, and detects that while the existing content of the draft message satisfies the location, the time of the event is not included in the draft message. In this way, the message processing module 120 can ask the inventor for the missing information, or can suggest edits, or can add template sentences to the draft message, so that the user can complete the template with additional information details that address the deficiencies.
[0034] For detecting defective reply message content, in some examples, a "comparison" model of messaging system 160 is trained to automatically identify message components of a received message that are not mentioned by message components of an associated draft reply message. The training of the comparison model comes from observations of past behavior of users with respect to a messaging service provided by messaging system 160 and accessed by computing device 110. For example, the comparison model can be a neural network, a long short-term memory model, or other machine learning model that is configured to determine from a plurality of signals associated with the message whether a reply to the message mentions a component of the received message. The comparison model receives as input a received content element from an electronic message (e.g., a sentence or clause from the text of the received message) and a reply content element (e.g., a sentence or clause from the draft reply message). The model produces as output an indication of the likelihood that a reply content element mentions a received content element. To evaluate a given draft reply, the message processing module 120 may parse the received message and the draft reply message into separate sentences or clauses, and for each component of the received message, may use a model for each reply message component of the draft reply message to determine whether that component of the received message has been mentioned by at least one reply message component.
[0035] For detecting defective original content, in some examples, the model of the messaging system 160 may use the "comparison" model described above, and may also train an "information component" model, which may be used together to automatically identify message components of the original message that introduce ambiguity or have missing information. The training of the information component model comes from observations of the user's past behavior with respect to the messaging service provided by the messaging system 160 and accessed by the computing device 110. For example, the information component model may be a neural network, a long short-term memory model, or other machine learning model that is configured to determine what information components are associated with a particular seed topic from a plurality of signals associated with the message.
[0036] The model receives a seed topic as input. The model produces one or more information components associated with the seed topic as output. In order to evaluate the defective content of a given original message, the message processing module 120 can identify and parse the original message to detect one or more seed topics. For each seed topic, the message processing module 120 uses the information component model to determine one or more information components associated with the seed topic. For each identified information component, the message processing module 120 uses the comparison model to determine whether the information component has been mentioned by the content of the original message. In other words, the message processing module 120 uses the information component as one input to the comparison model, and uses each sentence or clause of the original message as another input to the comparison model to determine whether the sentence or clause of the original message mentions a given information component.
[0037] Where explicit consent has previously been obtained from the user to use and analyze their electronic messaging behavior, the training corpus of message behavior used to train the comparison model of the information component model may include historical message content and associated replies from past messages. The messaging system 160 and computing device 110 further provide a way for users to withdraw consent to use and analyze their electronic messaging behavior, and in response, the messaging system 160 and computing device 110 cease analyzing the message behavior of those users who withdraw consent.
[0038] In some examples, the message processing module 120 may be executed locally on the user's device (e.g., computing device 110A) where the user is composing the draft message 104. Thus, the message processing module 120 may perform analysis of the draft message 104 while the user is composing the message, or the message processing module 120 may perform analysis of the draft message 104 when the user initiates the sending of the draft message (e.g., by pressing a "Send" button via UIC 112) or when the user initiates the checking of the draft message (e.g., by pressing a "Content Check" button via UIC 112, or when a "Spell Check" function of the draft message is performed. Thus, the draft message 104 is analyzed before the draft message 104 is sent to the messaging system 160.
[0039] In other examples, the message processing module 120 may be executed remotely on the messaging system 160. Thus, the computing device 110A may periodically transmit a draft message 104 to the messaging system 160 (e.g., for ad hoc, periodic defect checks) while the user is drafting, or when the user manually initiates a check of the draft message 104, or when the user attempts to send the draft message 104. In response to receiving the draft message 104 at the messaging system 160, the message transmission processing module 120 analyzes the draft message 104 for defects and may transmit the results of the analysis back to the computing device 110A for presentation to the user. For examples where the draft analysis is performed as part of an attempt to send the draft message 104 to a recipient, the message processing module 120 may cancel sending the draft message 104 to the recipient based on the results of the message analysis. For example, if draft message 104 is found to be defective in some way, such as being unresponsive to one or more seed subjects of a received email, message processing module 120 may terminate the sending of draft message 104 and may instead send an indication of the defects discovered during analysis back to computing device 110A for correction by the user.
[0040] In some examples, the message processing system 100 may utilize the suggestion module 164 to analyze the draft message. Given the components of the message content, the suggestion module 164 is configured to predict possible replies or reply options. The message processing module 120 may parse the draft message into draft components, and may submit one or more of those draft components to the suggestion module 164. The suggestion module 164 provides a set of possible replies based on the draft components, some of which may be in the form of questions. From the set of possible replies, the message processing module 120 may identify one or more possible replies as indicating ambiguity or information deficiency.
[0041] For example, if a particular possible response is a question, the message processing module 120 can interpret the particular possible response as an ambiguous indication in the associated draft component. In this way, the message processing module 120 can identify the particular draft component as a defective component (e.g., highlighting the draft component in the draft message). The message processing module 120 can use the possible responses as suggestions for remedying the defective component. For example, the message processing module 120 can display the question provided by the particular possible response to the user, or can create a template response to the question and insert the template response into the draft message, or can submit the possible responses back to the suggestion module 164 and use one of the possible responses to the particular possible response as a template response to insert into the draft message. In this way, the suggestion module 164 can be used as a component of the message processing system 100.
[0042] In this manner, the example computing system can improve the efficiency of the messaging service by reducing the volume of messages delivered by the system. When a drafting user is notified of deficiencies in a reply message, the drafting user can avoid multiple unnecessary messaging transactions by drafting their message appropriately. When notified of deficiencies, such as questions or topics that were included in the received email but not yet mentioned in the draft reply, or such as ambiguities introduced by statements made in the original content, the drafting user can fill in the draft message with additional missing information.
[0043] By automatically detecting defects in draft messages, the example computing system can cause a user to focus his or her attention on the defects; thereby reducing the number of messages that the user needs to exchange. Such automation can reduce network traffic through message processing system 100 and promote more efficient user interaction with the example computing system, such that the example computing system generally receives fewer messages than other computing systems that do not identify message defects in this manner. As a result, the example computing system can perform fewer operations than other computing systems and can consume less power and / or result in battery power conservation. In addition, the example computing system can provide a more enjoyable user experience that is less frustrating.
[0044] Figure 2 is a block diagram illustrating an example computing device configured to analyze a draft message according to one or more aspects of the present disclosure. Figure 1 The message processing system 100 is described in the context of Figure 2 The computing device 210, and as Figure 1The computing device 210 is an example of a computing device 110A of the messaging system 160 (e.g., a user device in which the message processing module 120 executes locally to perform aspects of message analysis while the user is composing a draft message). In other examples, the computing device 210 may represent a computing device that is part of the messaging system 160 (e.g., a server, a cloud service, etc. that communicates with the user's device while the user is composing a draft message). Figure 2 Only one particular example of computing device 210 is shown, and many other examples of computing device 210 may be used in other instances and may include a subset of the components included in the example computing device 210, or may include Figure 2 There are no additional components shown.
[0045] like Figure 2 As shown in the example of , computing device 210 includes user interface component (UIC) 212, one or more processors 240, one or more communication units 242, one or more input components 244, one or more output components 246, and one or more storage components 248. UIC 212 includes output component 202 and input component 204. Storage component 248 of computing device 210 includes messaging client module 216, message processing module 220, message data storage 230, and machine learning model 232.
[0046] Communication channel 250 can interconnect each of components 212, 240, 242, 244, 246, 248, and 252 for inter-component communication (physically, communicatively, and / or operatively). In some examples, communication channel 250 can include a system bus, a network connection, an inter-process communication data structure, or any other method for transferring data.
[0047] The one or more communication units 242 of the computing device 210 can communicate with external devices via one or more wired and / or wireless networks by transmitting and / or receiving network signals on one or more networks. Examples of the communication unit 242 include a network interface card (e.g., such as an Ethernet card), an optical transceiver, a radio frequency transceiver, a global positioning satellite (GPS) receiver, or any other type of device that can send and / or receive information. Other examples of the communication unit 242 may include a shortwave radio, a cellular data radio, a wireless network radio, and a universal serial bus (USB) controller.
[0048] One or more input components 244 of computing device 210 can receive input. Examples of input are tactile, audio, and video input. In one example, input components 244 of computing device 210 include a presence-sensitive input device (e.g., a touch-sensitive screen, PSD, etc.), a mouse, a keyboard, a voice response system, a camera, a microphone, or any other type of device for detecting input from a person or a machine.
[0049] One or more output components 246 of computing device 110 may generate output. Examples of output are tactile, audio, and video output. In one example, output components 246 of computing device 210 include a PSD, a sound card, a video graphics adapter card, a speaker, a liquid crystal display (LCD), an organic light emitting diode (OLED) display, or any other type of device for generating output to a person or machine.
[0050] UIC 212 of computing device 210 may be similar to UIC 112 of computing device 110A and include output component 202 and input component 204. Output component 202 may be a display component, such as a screen that displays information by UIC 212, and input component 204 may be a presence-sensitive input component that detects objects at and / or near output component 202. Output component 202 and input component 204 may be a speaker and microphone pair or any other combination of one or more input and output components, such as input component 244 and output component 246. Figure 2 In the example of FIG. 4 , UIC 212 can present a user interface.
[0051] Although illustrated as an internal component of computing device 210, UIC 212 may also represent an external component that shares a data path with computing device 210 for transmitting and / or receiving input and output. For example, in one example, UIC 212 represents a built-in component of computing device 210 (e.g., a screen on a mobile phone) that is located within and physically connected to the external packaging of computing device 210. In another example, UIC 212 represents an external component of computing device 210 that is located outside and physically separated from the packaging or housing of computing device 210 (e.g., a monitor, projector, etc. that shares a wired and / or wireless data path with computing device 210).
[0052] One or more storage components 248 within computing device 210 may store information for processing during operation of computing device 210 (e.g., computing device 210 may store data accessed by modules 116, 220, message data store 230, and machine learning model 232 during execution at computing device 210). In some examples, storage component 248 is temporary storage, meaning that the primary purpose of storage component 248 is not long-term storage. Storage component 248 on computing device 210 may be configured to store information for a short period of time as volatile memory, so that the stored contents are not retained if power is removed. Examples of volatile memory include random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), and other forms of volatile memory known in the art.
[0053] In some examples, storage component 248 also includes one or more computer-readable storage media. In some examples, storage component 248 includes one or more non-transitory computer-readable storage media. Storage component 248 can be configured to store a larger amount of information than the amount of information typically stored by volatile memory. Storage component 248 can be further configured to store information for a long time as a non-volatile memory space, and retain information after a power-on / power-off cycle. Examples of non-volatile memory include magnetic hard disks, optical disks, floppy disks, flash memory, or electrically programmable memory (EPROM) or electrically erasable programmable memory (EEPROM). Storage component 248 can store program instructions and / or information (e.g., data) associated with modules 216, 220, message data storage 230, and machine learning model 232. Storage component 248 may include a memory configured to store data or other information associated with modules 216, 220, message data storage 230, and machine learning model 232.
[0054] One or more processors 240 may implement functions and / or execute instructions associated with the computing device 210. Examples of processors 240 include application processors, display controllers, auxiliary processors, one or more sensor hubs, and any other hardware configured to function as a processor, processing unit, or processing device. The message processing module 220 may be operated by the processor 240 to perform various actions, operations, or functions of the computing device 210. For example, the processor 240 of the computing device 210 may retrieve and execute instructions stored by the storage component 248 that cause the processor 240 to perform operations provided by the message processing module 220. When the instructions are executed by the processor 240, the computing device 210 may be caused to store information within the storage component 248, for example, at the message data store 230 and the machine learning model 232.
[0055] UIC 212 may include Figure 1 The computing device 210 may include a UIC 112 that has all the functionality of the UIC 112 and may perform similar operations as the UI component 112 for executing the message processing module 220 as part of the computing device 210. The messaging client module 216 and the message processing module 220 may perform similar operations as the messaging client module 116 and the message processing module 120, respectively. The modules 216, 220 may manage user interactions with the UIC 212 and other components of the computing device 210. The modules 216, 220 may cause the UIC 212 to output a user interface when a user of the computing device 210 views output and / or provides input at the UIC 212.
[0056] The message data store 230 may include historical user messages (e.g., the text content of past user messages) and message threads (e.g., the content of multiple messages passed between users) and associated metadata. Such historical message data may be used to train various machine learning models 226 used by the message processing module 220 to analyze draft messages.
[0057] The message processing module 220 may include Figure 1 The messaging client module 120 may perform all of the functionality of the messaging client module 116 and may perform similar operations as the messaging client module 116 , for example, generally representing a messaging application and associated services for composing and transmitting messages between users of the messaging processing system 100 .
[0058] The message processing module 220 can be configured to analyze the draft message written by the user only after receiving explicit permission from the user. That is, controls can be provided to the user so that the user can select whether and when the message delivery processing module 220 (and any other element of the computing device 210) can collect user information (e.g., information about the user's social network, social actions or activities, occupation, user's preferences, or the user's current location), and whether to send content or communication from the server to the user. In addition, certain data can be processed in one or more ways before it is stored or used so that personally identifiable information is removed. For example, the identity of the user can be processed so that the user's personally identifiable information cannot be determined, or the geographic location of the user who obtains the location information can be summarized (such as summarized to the city, zip code, or state level) so that the specific location of the user cannot be determined. Therefore, the user can control what information about the user is collected, how the information is used, and what information is provided to the user.
[0059] After receiving explicit permission from the user, in some examples, the message processing module 220 is configured to analyze the content of the draft message for responding to a previous communication (e.g., when the user is drafting a reply to a previous email). When analyzing the content of a draft message for responding to a previous communication, the content of the draft message may be referred to herein as "responsive content," meaning that the draft content is checked with respect to whether it responds to a component of content received in a previous message. For example, assume that the drafting user receives a message that includes a question (e.g., as a "received component"): "What time do you leave for the airport?" When analyzing the draft message to respond to the received content, the message processing module 220 may parse the draft message into draft components (e.g., sentences, sentence fragments, clauses, etc.), and may check whether each of those draft components responds to a particular received component.
[0060] In other examples, the message processing module 220 is configured to analyze the content of a draft message that is not necessarily responsive to a previous communication (e.g., when a user is drafting a new email, or when a user is drafting a reply that includes content about a new topic that was not included in a previous email). When the content of a draft message is analyzed for ambiguities or incompleteness that are not responsive to content (e.g., statements that may be generated in response to a request for clarification or clarifying information), such content may be referred to herein as "raw content," meaning that the draft content is examined not relative to previous communications, but rather relative to the draft content itself.
[0061] For example, assume that the drafting user drafts a new email to a friend, and the new email includes a message component: "Let's have lunch together at 12:30." The message component mentions the time of lunch, but does not mention the location. In this way, the draft component is defective in this respect. In some examples, the message processing module 220 can analyze the missing information of the draft message. For example, the message processing module 220 can identify one or more suggested replies based on the message component. The suggested replies can be "Where should we go?", "Where to go?" or "Okay". The suggested replies in the form of questions can be used by the message processing module 220 as an indication of information deficiency (for example, because the recipient may ask follow-up questions). In some examples, the message processing module 220 can analyze the entity ambiguity of the draft message. For example, assume the message component: "At McDonald's at 12:30, let's have lunch together." However, there are multiple McDonald's locations in the area, so the recipient may not know which location the drafting user wants. The message processing module 220 can use named entity resolution to identify ambiguous entities (e.g., McDonald's), and can generate options for clarifying the ambiguity (e.g., a list of nearby locations to choose from).
[0062] In some examples, the message processing module 220 utilizes a reply prediction system such as a suggestion module 222 to analyze the draft message for deficiencies. The suggestion module 222 may be similar to Figure 1 The suggestion module 164. The message processing module 120 can parse the input message or draft message (e.g., into sentences, clauses, etc.) and submit each message component to the suggestion module 222 to generate one or more suggested replies. Given a particular input message component, the suggestion module 222 is configured to return one or more possible replies or reply options. For example, given a message component such as "Are you coming?", suggested replies such as "I'll be right there," "Yes," and "No" may be included. The suggestion module 222 can classify input messages and associated responses based on information type. For example, the message component "What time works for you?" may be identified using the information type "time." Thus, possible responses may include "We'll leave in ten minutes," "Now," and "Tomorrow."
[0063] The message processing module 220 can identify which suggested replies are questions, and can use those questions as indications of message component deficiencies. In other words, if a message component has a question as a possible response, it may contain inherent ambiguity, missing information, or otherwise indicate content that is uncertain. Based on determining that there are questions as suggested replies to a message component, the message processing module 220 can identify the deficient component to the user, or can use the suggested replies to determine how to ask the user to resolve the deficiencies. For example, in the case of a message component of "What time works for you?", if the draft reply message does not use any draft message components to refer to the message component of the received message, the suggestion "Let's go in __ minutes" can be used as a template reply to be added to the draft message, or "now" or "tomorrow" can be presented to the user as options to resolve the deficiencies during message drafting.
[0064] In some examples, the message processing module 220 uses the named entity resolution module 224 to analyze the named entity ambiguity of the original content. The named entity resolution module 224 uses the technology of named entity recognition in conjunction with the named entity data store 234 to identify the named entities that appear in the components of the text (e.g., annotating the text against the knowledge base). The message processing module 220 uses the named entity resolution module 224 to identify the named entities that appear within the message components.
[0065] For example, the message processing module 220 may transmit a message component, such as "I'm going to the airport", to the named entity resolution module 224. The named entity resolution module 224 identifies "airport" as a named entity. However, there are many airports that resolve to this named entity, so that "airport" is unspecified and somewhat ambiguous. With the user's permission, the named entity resolution module 224 may utilize the user's geographic information to narrow down the named entity "airport" to only a few airports near the user. For example, the user may currently be working in their office in Chicago, Illinois, which has two major commercial airports: O'Hare International Airport and Midway International Airport. Thus, the named entity resolution module 224 may return those two airports as potential disambiguation options for "airport" referenced by the drafting user. If the named entity resolution module 224 returns multiple disambiguation options, the message processing module 220 may identify the named entity (e.g., "airport") as an ambiguity in the draft message. In addition, the message processing module 220 may present the disambiguation options to the drafting user as options to clarify the ambiguity.
[0066] The message processing module 220 may be configured to train the machine learning model 226 based on the historical messages and message threads stored in the message data store 230. In some examples, the message processing module 220 trains one or more models for use during message analysis. The message processing module 220 may train and utilize models to classify questions relative to the expected information type of the response to the question. For example, a question classification model may be configured to classify questions such as "What time is suitable for you?", "What time is your flight?", and "What time do you want to have lunch" as information type "time". In other words, typical responses to such questions may be "10 minutes later", "6:40 pm", or "1 hour later", each of which is related to time. As another example, the question classification model may be configured to classify questions such as "How many tickets do you want?" or "How many people are coming?" or "What size is your dress?" as having information type "quantity". Typical responses to such questions may be "four", "six of us", or "10", each of which identifies quantity. The question classification model can be trained as a neural network using manually labeled messages or based on message threads in which questions are followed by answers, such as pairs of (question, answer).
[0067] In addition, the entity classification model can be trained to detect and classify entities appearing in the reply. For example, the entity classification model can evaluate the reply message component of "4" as the information type "quantity", or evaluate the reply message component of "6:40 pm" as the information type "time". In this way, the message processing module 220 can use the entity classification model to determine the information type classification of the various reply message components of the draft reply message, and then the information type classification of each reply message component can be used to match the associated question of the received message. Therefore, the message processing module 220 can use the question classification model and the entity classification model to detect defects in the reply content based on the associated received content.
[0068] For example, the message processing module 220 may parse a received message of “What time is your lunch and how many people do you expect?” into two received message components: “What time is your lunch?” and “How many people do you expect?”. The message processing module 220 may apply each received message component to the question classification model to generate associated information types of “time” and “quantity”, respectively. In addition, the message processing module 220 may receive a draft reply message of “I expect a total of 5 people”. The message processing module 220 applies the reply message component of “I expect a total of 5 people” to the entity classification model to determine the information type of “quantity”. The message processing module 220 then matches the received message components with the reply message components to determine, for each particular received message component, whether there is a matching reply message component (e.g., by the information type identified by the question classification model and the entity classification model). In this example, only the reply message component “I expect a total of 5 people” is of the information type “quantity” and therefore matches the received message component “How many people do you expect?” which is also of the information type “quantity”. However, the received message component “What time is your lunch?” of the type “time” does not have a matching reply message component. In this way, the message processing module 220 identifies the received message component "What time is your lunch?" as a defective message component.
[0069] In another example, the message processing module 220 can train and utilize a binary classifier to evaluate the potential contradictions of the original message components. The message processing module 220 can train a response prediction model so that given a specific original message component, the response prediction model is configured to output a probability or score indicating how likely the original message component is to lead to a follow-up question in the response. For example, the response prediction model can receive the original message component "What day is Christmas this year?" as input. This question is unlikely to receive a follow-up question as a response because the possible responses are the seven days of the week. In this way, the response prediction model can generate a low score, such as 0.1 (e.g., a probability between 0.0 and 1.0). For another example, the response prediction model can receive the message component "I'm going out for lunch today" as input. This question is more likely to receive a follow-up question as a response. For example, possible responses may include "OK", "Where are you going?", "What time are you going?", "See you when you get back" or "Will you be back on time for our meeting?", and many possible responses are follow-up questions. In this way, the response prediction model can generate a higher score, such as 0.6. The message processing module 220 may train a response prediction model based on mining fixed patterns of known clarifying responses (e.g., "Can you also provide ...") or based on detecting short, targeted questions in reply messages, using active training data extracted from historical message threads. In this way, the message processing module 220 may use the response prediction model to identify potential defects in the original content. For example, the message processing module 220 may have a configured fuzziness threshold set at 0.5, so that the original message component "I went out for lunch today" may be identified as defective because the associated score generated by the response prediction model exceeds the fuzziness threshold.
[0070] Figure 3 1 is a conceptual diagram of an example screenshot of a graphical user interface of a computing device configured to analyze the reply content of a draft reply message for defects according to one or more aspects of the present disclosure. In this example, user "Patricia" has sent an initial email to user "Bob" (the "drafting user" in this example), and user interface 134 represents an inbox 142 view of the drafting user's email client (e.g., as provided by UIC 112 of the drafting user's smartphone or other personal computer). The drafting user is composing a reply to message 102 ("received message"), which is included below reply message text 144 as received message text 146. In this example, the email body of received message text 146 is used as the received message, and the email body of reply message text 144 is used as the draft reply message to the received message. In addition, Bob has provided explicit permission for various components of message processing system 100 to analyze Bob's message.
[0071] In this example, the received message text 146 generally raises two topics, usually embodied in two separate sentences. The first sentence 310A quotes the availability of the quarterly sales report and the report for review. The second sentence 310B is a question asking when Bob plans to leave for the airport. In the draft reply, the drafting user includes a thank you to Patricia, and a first reply sentence 320A confirming the report and promising to review and discuss later. However, in the draft reply, the drafting user does not mention the issues included in the received message. In other words, Bob does not mention when he plans to leave for the airport.
[0072] At this stage of composing the draft reply message, the drafting user attempts to send the draft reply message (e.g., by pressing a "Send" button (not shown)). In response, because Bob has provided the message processing system with explicit permission to access his messages, the message processing module 120 initiates analysis of the draft reply message (e.g., possibly activated by the messaging client 116 on the drafting user's computing device 110A).
[0073] In this example, the message processing module 120 performs response content analysis on the received message text 146 and the reply message text 144. The message processing module 120 can perform natural language processing on sentences 310A, 310B to identify the first received message component 312A, the quarterly sales report, and the second received message component 312B, questions about flights and more specifically about the departure time of the flight. The message processing module 120 also performs natural language processing on sentence 320A to identify what topic is mentioned by the draft reply message. Here, sentence 320A refers to the report at the reply component 322A. In this way, the message processing module 120 does not identify sentence 310A as a defect in the draft reply message. However, there is no sentence in the draft reply message that answers the question of sentence 310B. In this way, the message processing module 120 identifies sentence 310B as a defect in the draft reply message.
[0074] In some examples, the message processing module 120 can utilize the question classification model and the entity classification model to determine the defective components of the draft reply compared to the received message. For example, the message processing module 120 can apply the second received message component 312B "What time is your flight this afternoon?" to the question classification model, which can return the information type of "time". The message processing module 120 can also apply the draft message components "I will review the report" and "We can discuss later" to the entity classification model, but neither returns the information type of "time". In this way, the second received message component 312B appears to be unmentioned, and therefore the message processing module 120 identifies the second received message component 312B as defective (e.g., highlighting the associated text within the received message text 146). In addition, in some instances, the message processing module 120 can use the information type of "time" as identified by the question classification model to identify an appropriate template to insert into the draft message. For example, the message processing module 120 can insert the text "What time is your flight this afternoon?". In some examples, the message processing module 120 can use the information type to limit the reply options. For example, the suggestion module 222 may provide two suggested responses for the question "What time is your flight this afternoon?": "5 p.m." and "I canceled my flight." The message processing module 120 may apply each suggested response to the entity classification module 224, which identifies only the "5 p.m." response as an information type of "time." Thus, the message processing module 120 may select the "5 p.m." response as an option to resolve the deficiency. The message processing module 120 may also generate response options based on the question and the suggested responses, such as "My flight is today at 5 p.m."
[0075] In some examples, the message processing module 120 can use the comparison model to determine the deficient components of the draft reply compared to the received message. For example, the message processing module 120 can parse the received message text 146 into sentences 310A, 310B (e.g., as received components), and parse the reply message text 144 into sentences 320A (e.g., as draft components). The message processing module 120 checks the reply message text 144 to determine whether any draft component mentions each received component found in the received message text 146. More specifically, for each received component, the message processing module 120 uses the comparison model to generate a comparison score between the received component and each draft component, wherein the received component and a draft component serve as inputs to the model. The comparison score generated by the comparison model represents the likelihood of whether the draft component mentions the received component. For example, when sentences 310A and 320A are submitted as inputs to the comparison model, the resulting comparison score can be a relatively high number (e.g., because the subject of the draft message, i.e., the report, is a subject similar to the subject of the received message, i.e., the quarterly sales report). However, when sentence 310B and sentence 320A are submitted to the comparison model, the comparison model may generate a relatively low score (e.g., because sentence 320A does not reference or provide an answer to the question provided in sentence 310B). Thus, if all comparison scores of sentence 310B do not meet (e.g., each comparison score is below) the threshold, the message processing module 120 may identify sentence 310B as a defect in the draft reply message.
[0076] After analyzing and detecting defects in the draft reply message, the message processing module 120 may provide an indication of each identified defect. Some examples may include highlighting or otherwise identifying received content components that were not mentioned in the draft reply message. For example, the message processing module 120 may cause sentence 310B in the received message text 146 to be highlighted. Some examples may include automatically modifying the reply message text 144 by adding a template reply that can be edited by the drafting user, or by prompting the user with multiple possible replies. In this way, the drafting user can review the identified defects and can choose to correct those defects or continue to send the unchanged draft reply message.
[0077] Figure 4A4 is a conceptual diagram illustrating an example screenshot of a graphical user interface of a computing device configured to analyze defects in the original content of a draft message according to one or more aspects of the present disclosure. In this example, the drafting user is composing an original email to Patricia to inform her that he will be out of the office. The draft message text 410 includes a first sentence 412A indicating that Bob has a flight to San Francisco this afternoon and a second sentence 412B indicating that he took off from Los Angeles International Airport (LAX) and landed in Oakland at 6:40.
[0078] Figure 4B is a diagram showing a message as identified by the message processing module 120 according to one or more aspects of the present disclosure. Figure 4A 4. A conceptual diagram of the various components of the content of a screenshot of FIG. 4. In this example, the first sentence 412A includes a topic 420 "My Flight" that identifies a seed topic within the original content. Sentences 412A, 412B also include multiple components, each of which is related to an aspect of the seed topic. The first information component 422A identifies "San Francisco" as the destination city associated with the flight. The second information component 422B identifies "this afternoon" as the rough departure time. The third information component 422C identifies "flying from LAX" as the departure airport. The fourth information component 422D identifies "landing in Oakland" as the destination airport. The fifth information component 422e identifies "6:40" as the destination arrival time.
[0079] Reference now Figure 4A and 4B At this stage in composing the draft message, the drafting user attempts to send the draft message (e.g., by pressing a "Send" button). In response to the drafting user's attempt to send the message, and after the drafting user has provided the message processing system 100 with explicit permission to access the drafting user's messages, the message processing module 120 initiates analysis of the draft message (e.g., possibly activated by the messaging client 116 on the drafting user's computing device 110A).
[0080] In the case where the message processing system 100 is provided with explicit permission to analyze or otherwise access the drafting user's messages, controls can be provided to the drafting user so that the user can select whether and when the message processing system 100 (and any of its components) can collect user information (e.g., information about the drafting user's social network, social actions or activities, occupation, the drafting user's preferences, or the drafting user's current location), and whether to send content or communications from the server to the drafting user. In addition, certain data can be processed in one or more ways before it is stored or used so that personally identifiable information is removed. For example, the identity of the drafting user can be processed so that the drafting user's personally identifiable information cannot be determined, or the drafting user's geographic location for which location information is obtained can be summarized (such as to a city, zip code, or state level) so that the drafting user's specific location cannot be determined. Thus, the drafting user can control what information about the drafting user is collected, how the information is used, and what information is provided to the drafting user.
[0081] For defects in the original content, the message processing module 120 analyzes the draft message. In this example, the departure flight time is vague or unspecific because the only indication is "this afternoon". In this way, the message processing module 120 can detect and help correct the defect. In one example, the message processing module 120 can use an information component model to identify seed topics. The message processing module 120 can submit each individual sentence 412 as input. The information component model identifies any seed topics included in the input components, and any information components associated with the included seed topics as output. In some examples, the information component model can accept one or more seed topics as input to the model, and when identifying information components within the input sentences, those input seed topics can be used as seed topics. For example, based on the first sentence 412A, the information component model can identify flights as seed topics (e.g., based on the text "my flight"). The model has been trained on historical messages including flights and various flight information examples, and can both identify flights as seed topics and various types of information components that are often associated with flights. When interpreting the rest of the first sentence 412A, the model identifies the first information component 422A as "departure airport" and identifies "this afternoon" as the approximate departure time. Similarly, when analyzing the second sentence 412B, the model identifies flights as the seed topic and further identifies information components 422C, 422D, and 422E as information components associated with flights.
[0082] In some examples, the message processing module 120 can utilize the suggestion module 164 to analyze the defects of the original content. The message processing module 120 can parse the reply message text 144 into multiple content components, such as sentence 412. For each content component, the message processing module 120 submits the content component to the suggestion module 164 and receives one or more suggested replies. If any of those suggested replies is in the form of a question, the content component can be processed as a defect component. In addition, the suggested reply question can be used as an expected solution to the specific defect. For example, sentence 412A can generate a suggested reply of "What time?" or "What time this afternoon?"
[0083] After analyzing and detecting deficiencies in the draft message, the message processing module 120 may provide an indication of each identified deficiency. Some examples may include identifying information components that are identified as deficiencies (e.g., missing, incomplete) in the draft message. For example, the message processing module 120 may provide an indication of which information component is missing, or may add a template sentence that may be edited by the drafting user to correct the missing information component (e.g., "My flight departs at ____"). Some examples may include providing suggested replies as anticipated additions or edits to the draft reply message in order to resolve the deficiencies (e.g., as a drop-down list). In this way, the drafting user may review the identified deficiencies and may choose to correct those deficiencies or continue to send the draft reply unchanged.
[0084] Figure 5 is a flow chart illustrating example operations for analyzing defective content of a draft message according to one or more aspects of the present disclosure. Figure 1 The message processing module 120 is described in the context of the host computing device 110A or the message system 160 Figure 5 For example, according to one or more aspects of the present disclosure, message processing module 120 may perform operations 310-350 when executed at one or more processors of message system 160. In some examples, message processing module 120 may be executed on computing device 110A.
[0085] In operation, the message processing module 120 receives a subject receive message and a subject draft reply message to the subject receive message, the subject receive message including a receive message component, the receive message component representing one or more of a question, a request, and a subject presented in the subject receive message (510). The message processing module 120 parses the subject receive message to identify the receive message component (520). The message processing module 120 also parses the subject draft reply message into one or more reply message components (530).
[0086] The message processing module 120 also identifies one or more information components associated with the received message component and the one or more reply message components by applying at least one or more machine learning models to the received message component and each of the one or more reply message components (540). The message processing module 120 further identifies one or more defective components in the subject draft reply message based on the one or more information components (550). The message processing module 120 also outputs information about the one or more defective components for display (560).
[0087] In some examples, identifying one or more information components further includes: determining, by the at least one processor and using a first machine learning model among the one or more machine learning models, a first information type associated with the received message component, the first information type indicating a type of information expected in a response to the received message component, and determining, by the at least one processor and using a second machine learning model among the one or more machine learning models, a second information type associated with a first draft message component, the second information type indicating an information type associated with the first draft message component, and wherein identifying one or more defective components further includes: determining that the first information type does not match the second information type, and based on determining that the first information type does not match the second information type, identifying that the received message component is a defective component among the one or more defective components.
[0088] In some examples, the message processing module 120 also trains a first machine learning model among the one or more machine learning models using a plurality of response tuples, each of the plurality of response tuples comprising a question and an associated answer, the first machine learning model being configured to identify an information type associated with an input question, the information type indicating a type of information expected in a response to the input question.
[0089] In some examples, the message processing module 120 also uses a corpus of received messages and associated reply messages to train a first machine learning model among the one or more machine learning models, wherein the reply messages identify one or more missing components from the associated received messages that are not addressed in the reply messages, the missing components representing one or more questions, requests, and topics presented in the received messages that are not addressed in the associated reply messages, and the machine learning model is configured to identify the missing components in the input draft reply message based on the input received message and the input draft reply message, wherein identifying one or more information components further includes, for each of the one or more draft reply components, applying the first machine learning model to a first seed topic to generate a draft reply component score for each draft reply component, and wherein identifying one or more defective components includes: for each seed topic, determining whether any of the draft reply component scores associated with the seed topic meets a threshold, and for each seed topic, and in response to determining that all of the draft reply component scores associated with the corresponding seed topic do not meet the threshold, identifying the corresponding seed topic as one of the one or more defective components.
[0090] In some examples, the message processing module 120 further identifies a suggested reply associated with a first defective component from the one or more defective components, inserts the suggested reply into the subject draft reply message, and outputs an updated subject draft reply message including the suggested reply for display. In some examples, outputting information about the one or more defective components includes highlighting a first seed item associated with a first defective component from the one or more defective components within the subject received message. In some examples, outputting information about the one or more defective components includes prompting the user to provide additional information associated with the one or more defective components.
[0091] Clause 1. A method, comprising: receiving, by at least one processor, a subject reception message and a subject draft reply message to the subject reception message, the subject reception message comprising a reception message component, the reception message component representing one or more of a question, a request and a subject included in the content of the subject reception message; parsing, by the at least one processor, the content of the subject reception message to identify the reception message component; parsing, by the at least one processor, the subject draft reply message into one or more reply message components; identifying, by the at least one processor, one or more information components associated with the reception message component and each of the one or more reply message components by applying at least one or more machine learning models to the reception message component and each of the one or more reply message components; identifying, by the at least one processor and based on the one or more information components, one or more defective components in the subject draft reply message; and outputting information about the one or more defective components for display.
[0092] Clause 2. A method according to clause 1, wherein identifying one or more information components further includes: determining, by the at least one processor and using a first machine learning model among the one or more machine learning models, a first information type associated with the received message component, the first information type indicating an information type expected in a response to the received message component; and determining, by the at least one processor and using a second machine learning model among the one or more machine learning models, a second information type associated with a first draft message component, the second information type indicating an information type associated with the first draft message component, and wherein identifying one or more defective components further includes: determining that the first information type does not match the second information type; and based on determining that the first information type does not match the second information type, identifying that the received message component is a defective component among the one or more defective components.
[0093] Clause 3. The method according to Clause 1 or Clause 2 further includes: training a first machine learning model among the one or more machine learning models using a plurality of response tuples by the at least one processor, each of the plurality of response tuples comprising a question and an associated answer, the first machine learning model being configured to identify an information type associated with an input question, the information type indicating an information type expected in a response to the input question.
[0094] Clause 4. The method according to any one of clauses 1-3 further includes: at least one processor uses a corpus of received messages and associated reply messages to train a first machine learning model among the one or more machine learning models, wherein the reply messages identify one or more missing components from the associated received messages that are not resolved in the reply messages, the missing components representing one or more questions, requests and topics presented in the received messages that are not resolved in the associated reply messages, and the machine learning model is configured to identify the missing components in the input draft reply message based on the input received message and the input draft reply message; wherein identifying one or more information components further includes, for each of the one or more draft reply components, applying the first machine learning model to a first seed topic to generate a draft reply component score for each draft reply component, and wherein identifying one or more defective components includes: for each seed topic, determining whether any of the draft reply component scores associated with the seed topic meets a threshold; and for each seed topic, and in response to determining that all of the draft reply component scores associated with the corresponding seed topic do not meet the threshold, identifying the corresponding seed topic as one of the one or more defective components.
[0095] Clause 5. The method according to any one of clauses 1-4 further includes: identifying a suggested reply associated with a first defect component from the one or more defect components; inserting the suggested reply into the subject draft reply message by the at least one processor; and outputting the updated subject draft reply message including the suggested reply for display.
[0096] Clause 6. A method according to any one of clauses 1-5, wherein outputting information about the one or more defective components includes highlighting a first seed item associated with a first defective component of the one or more defective components within the subject received message.
[0097] Clause 7. The method of any one of clauses 1-6, wherein outputting information about the one or more defective components comprises prompting the user to provide additional information associated with the one or more defective components.
[0098] Clause 8. A computing system comprising: a storage device storing one or more modules; and at least one processor executing the one or more modules to: receive a subject reception message and a subject draft reply message to the subject reception message, the subject reception message comprising a reception message component, the reception message component representing one or more of a question, a request and a subject presented in the subject reception message; parse the subject reception message to identify the reception message component; parse the subject draft reply message into one or more reply message components; identify one or more information components associated with the reception message component and each of the one or more reply message components by applying at least one or more machine learning models to the reception message component and each of the one or more reply message components; identify one or more defective components in the subject draft reply message based on the one or more information components; and output information about the one or more defective components for display.
[0099] Clause 9. A system according to clause 8, wherein identifying one or more information components further includes: determining, by the at least one processor and using the one or more machine learning models, a first information type associated with the received message component, the first information type indicating an information type expected in a response to the received message component; and determining, by the at least one processor and using a second machine learning model among the at least one machine learning models, a second information type associated with a first draft message component, the second information type indicating an information type associated with the first draft message component, wherein identifying one or more defective components further includes: determining that the first information type does not match the second information type; and based on determining that the first information type does not match the second information type, identifying that the received message component is a defective component among the one or more defective components.
[0100] Clause 10. In the system of clause 8 or clause 9, the at least one processor is further configured to: train a first machine learning model among the one or more machine learning models using a plurality of response tuples, each of the plurality of response tuples comprising a question and an associated answer, the first machine learning model being configured to identify an information type associated with an input question, the information type indicating a type of information expected in a response to the input question.
[0101] Clause 11. According to a system described in any one of clauses 8-10, the at least one processor is further configured to: use a corpus of received messages and associated reply messages to train a first machine learning model among the one or more machine learning models, the reply messages identifying one or more missing components from the associated received messages that are not resolved in the reply messages, the missing components representing one or more questions, requests and topics presented in the received messages that are not resolved in the associated reply messages, the machine learning model being configured to identify the missing components in the input draft reply message based on the input received message and the input draft reply message; wherein identifying one or more information components further includes, for each of the one or more draft reply components, applying the first machine learning model to a first seed topic to generate a draft reply component score for each draft reply component, and wherein identifying one or more defective components includes: for each seed topic, determining whether any of the draft reply component scores associated with the seed topic meets a threshold; and for each seed topic, and in response to determining that all of the draft reply component scores associated with the corresponding seed topic do not meet the threshold, identifying the corresponding seed topic as one of the one or more defective components.
[0102] Clause 12. In a system according to any one of clauses 8-11, the at least one processor is further configured to: identify a suggested reply associated with a first defect component, the suggested reply being identified as mentioning the first defect component; insert the suggested reply into the subject draft reply message; and output an updated subject draft reply message including the suggested reply for display.
[0103] Clause 13. A system according to any of clauses 8-12, wherein outputting information about the one or more defective components includes highlighting a first seed item associated with a first defective component of the one or more defective components within the subject received message.
[0104] Clause 14. The system of any of clauses 8-13, wherein outputting information about the one or more defective components comprises prompting the user to provide additional information associated with the one or more defective components.
[0105] Clause 15. A computer-readable storage medium having instructions stored thereon, which, when executed, cause a processor of a computing system to: receive a subject received message and a subject draft reply message to the subject received message, the subject received message comprising a received message component, the received message component representing one or more of a question, a request, and a subject presented in the subject received message; parse the subject received message to identify the received message component; parse the subject draft reply message into one or more reply message components; identify one or more information components associated with the received message component and each of the one or more reply message components by applying at least one or more machine learning models to the received message component and each of the one or more reply message components; identify one or more defective components in the subject draft reply message based on the one or more information components; and output information about the one or more defective components for display.
[0106] Clause 16. A computer-readable storage medium according to clause 15, wherein identifying one or more information components further comprises: determining, by the at least one processor and using the one or more machine learning models, a first information type associated with the received message component, the first information type indicating an information type expected in a response to the received message component; and determining, by the at least one processor and using a second machine learning model among the at least one machine learning model, a second information type associated with a first draft message component, the second information type indicating an information type associated with the first draft message component, wherein identifying one or more defective components further comprises: determining that the first information type does not match the second information type; and based on determining that the first information type does not match the second information type, identifying that the received message component is a defective component among the one or more defective components.
[0107] Clause 17. According to a computer-readable storage medium as described in Clause 15 or Clause 16, the instructions further cause the processor to: use multiple response tuples to train a first machine learning model among the one or more machine learning models, each response tuple in the multiple response tuples includes a question and an associated answer, and the first machine learning model is configured to identify an information type associated with an input question, and the information type indicates a type of information expected in a response to the input question.
[0108] Clause 18. According to a computer-readable storage medium described in any of clauses 15-17, the instructions further cause the processor to: identify a suggested reply associated with a first defective component from the one or more defective components; insert the suggested reply into the subject draft reply message; and output the updated subject draft reply message including the suggested reply for display.
[0109] Clause 19. A computer-readable storage medium according to any one of clauses 15-18, wherein outputting information about the one or more defective components includes highlighting a first seed item associated with a first defective component of the one or more defective components within the subject received message.
[0110] Clause 20. The computer-readable storage medium of any of clauses 15-19, wherein outputting information about the one or more defective components comprises prompting the user to provide additional information associated with the one or more defective components.
[0111] Clause 21. A computer-readable storage medium comprising means for performing any combination of the methods recited in clauses 1-7.
[0112] Clause 22. An apparatus comprising means for performing any combination of the methods described in clauses 1-7.
[0113] Clause 23. A method, comprising: receiving a subject draft message by at least one processor; parsing the content of the subject draft message by the at least one processor to identify one or more message components; identifying one or more information components associated with the one or more message components by at least applying one or more machine learning models to the one or more message components by the at least one processor; identifying one or more defective components in the subject draft message by the at least one processor and based on the one or more information components; and outputting information about the one or more defective components for display.
[0114] Clause 24. The method of clause 23, wherein the one or more defective components include at least one of the one or more message components having incomplete or ambiguous information.
[0115] Clause 25. The method according to any one of clauses 23 or 24 further comprises: determining one or more candidate phrases by the at least one processor and based on the one or more defective components, wherein outputting the information about the one or more defective components comprises outputting the one or more candidate phrases.
[0116] Clause 26. A method according to clause 25, wherein determining the one or more candidate phrases includes: determining, based on the multiple question-answer pairs and the one or more defect components from multiple previous messages, one or more responses predicted to be received after sending the subject draft message and a corresponding probability for each of the one or more responses predicted to be received, wherein the corresponding probability indicates a likelihood that the associated response is predicted to be received; and identifying, by the at least one processor and based on the corresponding probability, at least one of the one or more responses predicted to be received as the one or more candidate phrases.
[0117] Clause 27. A method according to any one of clauses 23-26, wherein identifying one or more information components further includes: determining, by the at least one processor and using a first machine learning model among the one or more machine learning models, a first information type associated with the one or more message components, the first information type indicating an information type expected in a response to the subject draft message component; and determining, by the at least one processor and using a second machine learning model among the one or more machine learning models, a second information type associated with the one or more message components, the second information type indicating an information type associated with the one or more draft message components, and wherein identifying one or more defective components further includes: determining that the first information type does not match the second information type; and based on determining that the first information type does not match the second information type, identifying that the received message component is a defective component among the one or more defective components.
[0118] Clause 28. The method according to any one of clauses 23-27 further includes: training a first machine learning model among the one or more machine learning models using a plurality of response tuples by the at least one processor, each of the plurality of response tuples comprising a question and an associated answer, the first machine learning model being configured to identify an information type associated with an input question, the information type indicating a type of information expected in a response to the input question.
[0119] Clause 29. The method according to any one of clauses 23-28 further includes: at least one processor uses a corpus of received messages and associated reply messages to train a first machine learning model among the one or more machine learning models, wherein the reply messages identify one or more missing components from the associated received messages that are not resolved in the reply messages, the missing components representing one or more questions, requests, and topics presented in the received messages that are not resolved in the associated reply messages, and the machine learning model is configured to identify the missing components in the input draft message based on the input draft message, wherein identifying one or more information components further includes, for each of the one or more message components, applying the first machine learning model to a first seed topic to generate a draft message component score for each draft message component, and wherein identifying one or more defective components includes: for each seed topic, determining whether any of the draft message component scores associated with the seed topic meets a threshold, and for each seed topic, and in response to determining that all of the draft message component scores associated with the corresponding seed topic do not meet the threshold, identifying the corresponding seed topic as one of the one or more defective components.
[0120] Clause 30. The method according to any one of clauses 23-29 further includes: identifying a suggested reply associated with a first defect component from the one or more defect components; inserting the suggested reply into the subject draft message by the at least one processor; and outputting the updated subject draft message including the suggested reply for display.
[0121] Clause 31. A method according to any of clauses 23-30, wherein outputting information about the one or more defective components includes highlighting a first seed item associated with a first defective component of the one or more defective components within the subject draft message.
[0122] Clause 32. The method of any one of clauses 23-31, wherein outputting information about the one or more defective components comprises prompting the user to provide additional information associated with the one or more defective components.
[0123] Clause 33. A non-transitory computer-readable medium storing instructions that, when executed by one or more processors of a computing device, cause the one or more processors to perform any combination of the methods described in clauses 23-32.
[0124] Clause 34. An apparatus comprising means for performing any combination of the methods described in clauses 23-32.
[0125] Clause 35. A computing system comprising: a storage device storing one or more modules; and at least one processor executing the one or more modules to: receive a subject draft message; parse the content of the subject draft message to identify one or more message components; identify one or more information components associated with the one or more message components by applying at least one or more machine learning models to the one or more message components; identify one or more defective components in the subject draft message based on the one or more information components; and output information about the one or more defective components for display.
[0126] In one or more examples, the described functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted through a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium such as a data storage medium, or a communication medium including any medium that facilitates the transfer of a computer program from one place to another, for example, according to a communication protocol. In this manner, a computer-readable medium may generally correspond to (1) a non-temporary tangible computer-readable storage medium or (2) a communication medium such as a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described in the present disclosure. A computer program product may include a computer-readable medium.
[0127] As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, flash memory or any other storage medium that can be used to store the required program code in the form of instructions or data structures and can be accessed by a computer. Similarly, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwaves are used to transmit instructions from a website, server or other remote source, then coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwaves are included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals or other transient media, but point to non-transient tangible storage media. Disks and optical disks as used in this article include compact discs (CDs), laser optical disks, optical disks, digital versatile discs (DVDs), floppy disks and blue-ray discs, wherein disks usually copy data magnetically, and optical disks copy data optically with lasers. The above combination should also be included in the scope of computer-readable media.
[0128] Instructions can be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Therefore, the term "processor" as used in this article can refer to any of the aforementioned structures or any other structure suitable for implementing the technology described in this article. In addition, in some aspects, the functions described in this article can be provided in dedicated hardware and / or software modules. Similarly, the technology can be fully implemented in one or more circuits or logic elements.
[0129] The technology of the present disclosure can be implemented in a variety of devices or apparatuses including wireless handsets, integrated circuits (ICs), or a group of ICs (e.g., chipsets). Various components, modules, or units are described in the present disclosure to emphasize the functional aspects of the devices configured to perform the disclosed technology, but do not necessarily need to be implemented by different hardware units. Instead, as described above, the various units can be combined in a hardware unit with appropriate software and / or firmware or provided by a collection of interoperable hardware units including one or more processors as described above.
[0130] Various embodiments have been described. These and other embodiments are within the scope of the following claims.
Claims
1. A method for message processing, characterized in that: include: receiving, by at least one processor, a topic reception message and a topic draft reply message to the topic reception message, the topic reception message comprising a reception message component, the reception message component representing one or more of a question, a request, and a topic included in the content of the topic reception message; parsing, by the at least one processor, the content of the subject received message to identify the received message components; parsing, by the at least one processor, the subject draft reply message into one or more reply message components; identifying, by the at least one processor, one or more information components associated with the received message component and the one or more reply message components by applying at least one or more machine learning models to the received message component and each of the one or more reply message components; identifying, by the at least one processor and based on the one or more information components, one or more defective components in the subject draft reply message; as well as outputting information about the one or more defective components for display; Wherein, the method further comprises: training, by at least one processor, a first machine learning model of the one or more machine learning models using a corpus of received messages and associated reply messages that identify one or more missing components from the associated received messages that are not addressed in the reply messages, the missing components representing one or more questions, requests, and topics presented in the received messages that are not addressed in the associated reply messages, the first machine learning model being configured to identify the missing components in the input draft reply message based on an input received message and an input draft reply message; wherein identifying one or more information components further comprises, for each of the one or more draft response components, applying the first machine learning model to the first seed topic to generate a draft response component score for each draft response component, and Among other things, identifying one or more defective components includes: for each seed topic, determining whether any of the draft response component scores associated with the seed topic meets a threshold; and For each seed topic, and in response to determining that all of the draft response component scores associated with the corresponding seed topic do not satisfy the threshold, identifying the corresponding seed topic as one of the one or more defective components.
2. The method according to claim 1, characterized in that Identifying one or more information components further comprises: determining, by the at least one processor and using a first machine learning model of the one or more machine learning models, a first information type associated with the received message component, the first information type indicating a type of information expected in a response to the received message component; and determining, by the at least one processor and using a second machine learning model of the one or more machine learning models, a second information type associated with the first draft message component, the second information type indicating a type of information associated with the first draft message component, and Wherein, identifying one or more defective components further comprises: determining that the first information type does not match the second information type; and Based on determining that the first information type does not match the second information type, the received message component is identified as a defective component among the one or more defective components.
3. The method according to any one of claims 1 to 2, characterized in that: Further including: A first machine learning model of the one or more machine learning models is trained by the at least one processor using a plurality of response tuples, each of the plurality of response tuples comprising a question and an associated answer, the first machine learning model being configured to identify an information type associated with an input question, the information type indicating a type of information expected in a response to the input question.
4. The method according to any one of claims 1 to 2, characterized in that Further including: identifying a suggested response associated with a first defective component from the one or more defective components; inserting, by the at least one processor, the suggested reply into the subject draft reply message; as well as An updated draft reply message of the subject including the suggested reply is output for display.
5. The method according to any one of claims 1 to 2, characterized in that: Outputting information about the one or more defective components includes highlighting a first seed item associated with a first defective component of the one or more defective components within the subject received message.
6. The method according to any one of claims 1 to 2, characterized in that: Outputting information about the one or more defective components includes prompting a user to provide additional information associated with the one or more defective components.
7. A computing system, characterized in that: The computing system comprises at least one processor configured to perform the method according to any one of claims 1-6.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises means for performing any combination of the methods recited in claims 1-6.
9. A device for message processing, characterized in that: The apparatus comprises means for carrying out the method according to any one of claims 1-6.
