Build customized user profiles based on session data

By learning ontology data and sliding window analysis from multiple information graphs, and combining head and tail entity information, a tree-structured user profile is constructed, which solves the problem in the existing technology of customizing user profiles that is difficult to combine with general knowledge and process large-scale Conversational data issues enable more personalized and context-aware user understanding.

CN112313644BActive Publication Date: 2024-10-18META PLATFORMS INC
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN201880094771.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-06-25
Publication Date
2024-10-18
Estimated Expiration
2038-06-25

AI Technical Summary

Technical Problem

When building customized user profiles, it is difficult for existing technologies to efficiently combine general knowledge of the world and process large-scale conversation data, resulting in poor personalized and context-aware understanding.

Method used

Learn ontology data from multiple information graphs including knowledge graphs, social graphs and concept graphs, and adopt a similar integrated sliding window analysis method to efficiently process session data, integrate head and tail entity information, and use tree-structured user profiles to files to achieve personalized understanding.

Benefits of technology

Enables a more personalized and context-aware understanding of users, improves analysis accuracy and response quality of user input, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112313644B_ABST
    Figure CN112313644B_ABST
Patent Text Reader

Abstract

In one embodiment, a method includes accessing a plurality of content objects associated with a first user from an online social network, accessing a baseline profile, wherein the baseline profile is based on ontology data from one or more information graphs, accessing session data associated with the first user, determining one or more subjects associated with the first user based on the plurality of content objects and the session data associated with the first user, and generating a customized user profile for the first user based on the baseline profile, wherein the user profile includes one or more confidence scores associated with corresponding one or more subjects, the corresponding one or more subjects being associated with the first user, wherein the one or more confidence scores are calculated based on the plurality of content objects associated with the first user and the session data associated with the first user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to database and file management within a network environment, and particularly to hardware and software for a smart assistant system.

[0002] background

[0003] The assistant system can provide information or services to the user based on a combination of user input, location awareness, and the ability to access information from various online sources (such as weather conditions, traffic congestion, news, stock prices, user schedules, retail prices, etc.). User input can include text (e.g., online chat) (especially text in instant messaging applications or other applications), voice, images, or a combination thereof. The assistant system can perform concierge-type services (e.g., making dinner reservations, purchasing event tickets, arranging travel) or provide information based on user input. The assistant system can also perform management or data processing tasks based on online information and events without user initiation or interaction. Examples of those tasks that can be performed by the assistant system can include schedule management (e.g., sending a warning message to a dinner appointment that the user is going to be late due to traffic conditions, updating the schedules of both parties, and changing restaurant reservation times). The assistant system can be implemented through a combination of computing devices, application programming interfaces (APIs), and application proliferation on user devices.

[0004] A social networking system, which may include a social networking website, may enable its users (e.g., individuals or organizations) to interact with it and with each other through it. The social networking system may utilize input from a user to create and store a user profile associated with the user in the social networking system. The user profile may include demographic information, communication channel information, and information about personal interests of the user. The social networking system may also utilize input from the user to create and store a record of the user's relationships with other users of the social networking system, as well as provide services (e.g., profile / news feed postings, photo sharing, event organization, messaging, games, or advertising) to facilitate social interaction between or among users.

[0005] The social networking system may send content or messages related to its services to the user's mobile device or other computing device through one or more networks. The user may also install a software application on the user's mobile device or other computing device for accessing the user's user profile and other data within the social networking system. The social networking system may generate a set of personalized content objects to display to the user, such as a dynamic message of aggregated stories of other users connected to the user.

[0006] Overview of Certain Embodiments

[0007] In a particular embodiment, the assistant system can help users obtain information or services. The assistant system can enable users to interact with it through multimodal user input (such as sound, text, image, video) in stateful and multi-turn conversations to obtain help. The assistant system can create and store a user profile, which includes personal information and contextual information associated with the user. In a particular embodiment, the assistant system can use natural language understanding to analyze user input. The analysis can be based on the user profile to obtain a more personalized and context-aware understanding. The assistant system can resolve entities associated with user input based on the analysis. In a particular embodiment, the assistant system can interact with different agents to obtain information or services associated with the resolved entity. The assistant system can generate responses about information or services for users by using natural language generation. Through interaction with the user, the assistant system can use dialogue management technology to manage and forward the conversation flow with the user. In a particular embodiment, the assistant system can also assist users to digest the information obtained effectively and efficiently by summarizing the information. The assistant system can also help users better participate in online social networks by providing tools that help users interact with the online social network (e.g., create posts, comments, messages). The assistant system can additionally help users manage different tasks, such as keeping track of events. In certain embodiments, the assistant system can proactively perform tasks related to the user's interests and preferences based on the user profile without user input. In certain embodiments, the assistant system can check privacy settings to ensure that access to the user's profile or other user information and the performance of different tasks are allowed according to the user's privacy settings.

[0008] In a particular embodiment, the assistant system can use a user context engine to build a customized user profile from conversational data (e.g., messages) combined with other rich semantic information aggregated from various sources. The assistant system can personalize the output of other modules of the assistant system based on the customized user profile. In a particular embodiment, other modules of the assistant system can use the customized user profile as a basis for natural language understanding in response to user input, and perform corresponding tasks based on more accurately interpreted user input. In a particular embodiment, the assistant system can build a customized user profile based on the joint processing of one or more of the following items: a social graph, a knowledge graph, a concept graph, a content object from an online social network, a conversation data that captures contextual information associated with the user, other suitable information related to the user, or any combination thereof. The social graph can include the user's personal information, such as location, occupation, connection, etc., while the knowledge graph and the concept graph can capture the general knowledge of the world. The knowledge graph can describe real-world entities and their relationships, define possible classifications and relationships of entities in a schema, and cover various subject domains. Conceptual graphs may include a diagram representation of logic based on an artificial intelligence semantic network, which may be used as an intermediate language for mapping natural language questions and assertions to a relational database. Content objects from online social networks may be used to identify user interests and preferences. Contextual information from session data may capture specific scenarios in which users are participating, which may provide additional information cues for understanding user input. In a particular embodiment, a user context engine may obtain context information by analyzing session data in different dialog sessions associated with a user. The customized user profile constructed by the user context engine may be a tree-structured representation having different layers characterizing various topics, categories, and entities associated with context information. In a particular embodiment, an assistant system may use a tree-structured representation of a user profile to efficiently understand user input in a more personalized and context-aware manner. Although the present disclosure describes constructing a specific user profile via a specific system in a particular manner, the present disclosure contemplates constructing any suitable user profile via any suitable system in any suitable manner.

[0009] In a particular embodiment, the assistant system may access multiple content objects associated with the first user from an online social network. In a particular embodiment, the assistant system may access a baseline profile. The baseline profile may be based on ontology data from one or more information graphs. In a particular embodiment, the assistant system may access session data associated with the first user (e.g., interactions between a user and assistant xbot). The assistant system may then determine one or more subjects associated with the first user based on multiple content objects associated with the first user and the session data associated with the first user. In a particular embodiment, the assistant system may generate a customized user profile for the first user based on the baseline profile. The customized user profile may include one or more confidence scores associated with the corresponding one or more subjects, which are associated with the first user. One or more confidence scores may be calculated based on multiple content objects associated with the first user and the session data associated with the first user.

[0010] There are certain technical challenges in achieving the goal of building a customized user profile based on various data including conversation data. One technical challenge includes incorporating general knowledge of the world into a customized user profile. The solution proposed by the embodiments disclosed herein to solve the above challenges is to learn ontological data from multiple information graphs including knowledge graphs, social graphs, and concept graphs. Another technical challenge includes efficiently processing large-scale conversation data. The solution proposed by the embodiments disclosed herein to solve this challenge is an ensemble-like sliding window analysis. Each sliding window covers N (a pre-specified number) turns at a time for analyzing conversation (e.g., message) threads. When N-1 turns are completed, a representation of the conversation data processed by N-1 turns is generated. When the sliding window of the Nth round is carried out, the embodiments disclosed herein can be built on the representation of the N-1 round for further analysis of the conversation data, thereby saving a lot of processing time.

[0011] Certain embodiments disclosed herein may provide one or more technical advantages. The technical advantages of the embodiments may include supporting a more personalized and context-aware understanding of the user. For example, a user may request an assistant system to recommend a Chinese restaurant. A user profile additionally customized with context information may help the assistant system determine at what time and at which location (e.g., near home or near work) and who the user wants to eat at a Chinese restaurant. Another technical advantage of the embodiments may include integrating the information of the head entity and the tail entity into a customized user profile. The head entity may be extracted from a public source such as Wikipedia, and therefore carries rich information. In contrast, the information of the tail entity may be sparse (e.g., a coffee shop on a corner). These tail entities will not be discussed in a public source (e.g., Wikipedia), but there may be considerable discussion of them in user conversations or posts on online social networks, and analysis of the conversation data may allow the assistant system to obtain more information about these tail entities. Another technical advantage of the embodiments may include easily deleting insignificant or low-quality entities from a constructed user profile due to a tree structure. For example, if an entity cannot be placed under any category in the tree-structured representation of the user profile, then the entity should be deleted from the user profile. Deletion can also be based on the confidence score of the entity. For example, if the confidence score of an entity is below a threshold score, it may not be important to the user, so it can be deleted from the user profile. Certain embodiments disclosed herein may provide none, some, or all of the above technical advantages. In view of the drawings, description, and claims of the present disclosure, one or more other technical advantages may be obvious to those skilled in the art.

[0012] The embodiments disclosed herein are merely examples, and the scope of the present disclosure is not limited to them. Specific embodiments may include all, some or none of the components, elements, features, functions, operations or steps of the embodiments disclosed above. Embodiments according to the present invention are specifically disclosed in the attached claims relating to methods, storage media, systems and computer program products, wherein any feature mentioned in one claim category (e.g., method) may also be claimed in another claim category (e.g., system). The dependencies or back-references in the attached claims are selected only for formal reasons. However, any subject matter generated by intentional back-references (especially multiple references) to any previous claim may also be claimed, so that any combination of claims and their features is disclosed and may be claimed, without considering the dependencies selected in the attached claims. The subject matter that may be claimed includes not only the combination of features as set forth in the attached claims, but also any other combination of features in the claims, wherein each feature mentioned in the claims may be combined with any other feature or combination of other features in the claims. Furthermore, any of the embodiments and features described or depicted herein may be claimed in a separate claim and / or in any combination with any embodiment or feature described or depicted herein or in any combination with any features of the appended claims.

[0013] In an embodiment, the methods in all embodiments described herein are for use (or execution) in an assistant system for helping a user obtain information or services by enabling the user to interact with the assistant system in a conversation using user input to obtain help, wherein the user input includes sound, text, image or video or any combination thereof. The assistant system is particularly implemented by a combination of a computing device, an application programming interface (API), and a proliferation of applications on a user device.

[0014] In an embodiment, a method may include, by one or more computing systems:

[0015] accessing a plurality of content objects associated with the first user from an online social network;

[0016] accessing a baseline profile, wherein the baseline profile is based on ontological data from one or more information graphs;

[0017] accessing session data associated with the first user;

[0018] determining one or more principals associated with the first user based on a plurality of content objects associated with the first user and session data associated with the first user; and

[0019] A customized user profile is generated for a first user based on a baseline profile, wherein the user profile includes one or more confidence scores associated with corresponding one or more subjects associated with the first user, wherein the one or more confidence scores are calculated based on a plurality of content objects associated with the first user and session data associated with the first user.

[0020] The plurality of content objects may include one or more of the following:

[0021] News Feed Posts;

[0022] News Feed comments; or

[0023] Search historical data.

[0024] The accessed content object may be created within a pre-specified time window.

[0025] The session data may include one or more messages created within a pre-specified time window.

[0026] Determining one or more subjects associated with the first user can be based on one or more machine learning models, wherein the one or more machine learning models can respectively calculate one or more probabilities that the session data is associated with the one or more subjects.

[0027] In an embodiment, a method may include determining one or more sentiment indications associated with conversation data, wherein the determination may be based on one or more long short-term memory (LSTM) networks, and wherein the one or more LSTM networks may respectively calculate one or more probabilities that the conversation data is associated with the one or more sentiment indications.

[0028] In an embodiment, a method may include determining one or more domains associated with session data, wherein the determination may be based on one or more machine learning models, and wherein the one or more machine learning models may respectively calculate one or more probabilities that the session data is associated with the one or more domains.

[0029] The session data may include a plurality of messages, and the method may include processing the session data based on a sliding window analysis of the plurality of messages.

[0030] In an embodiment, a method may include determining context information associated with a first user based on session data.

[0031] Determining contextual information associated with the first user may include one or more of the following:

[0032] processing metadata associated with the session data based on a machine learning model, wherein the machine learning model calculates a probability that the metadata is associated with the contextual information; or

[0033] The session data is processed based on the machine learning model, wherein the machine learning model calculates a probability that the session data is associated with the contextual information.

[0034] The context information may include one or more of location information, timestamp, or social connections.

[0035] Customized user profiles can be based on a tree structure.

[0036] The tree structure may include one or more levels.

[0037] The one or more layers may be organized into a hierarchical structure comprising:

[0038] (1) Thematic layer, which includes one or more themes;

[0039] (2) a category layer, which includes one or more categories associated with each topic of the topic layer; and

[0040] (3) An entity layer, which includes one or more entities associated with each category of the category layer.

[0041] In an embodiment, a method may include calculating one or more confidence scores for one or more subjects based on a frequency of the corresponding subjects in a plurality of content objects and session data.

[0042] Each of the one or more subjects may include a subject, a category, or an entity.

[0043] In an embodiment, a method may include determining entity linking information based on session data.

[0044] In an embodiment, one or more computer-readable non-transitory storage media may embody software that, when executed, is operable to:

[0045] accessing a plurality of content objects associated with the first user from an online social network;

[0046] accessing a baseline profile, wherein the baseline profile is based on ontological data from one or more information graphs;

[0047] accessing session data associated with the first user;

[0048] determining one or more principals associated with the first user based on a plurality of content objects associated with the first user and session data associated with the first user; and

[0049] A customized user profile is generated for a first user based on a baseline profile, wherein the user profile includes one or more confidence scores associated with corresponding one or more subjects associated with the first user, wherein the one or more confidence scores are calculated based on a plurality of content objects associated with the first user and session data associated with the first user.

[0050] In an embodiment, a system may include: one or more processors; and a non-transitory memory coupled to the processor, the non-transitory memory including instructions executable by the processor, the processor being operable when executing the instructions to:

[0051] accessing a plurality of content objects associated with the first user from an online social network;

[0052] accessing a baseline profile, wherein the baseline profile is based on ontological data from one or more information graphs;

[0053] accessing session data associated with the first user;

[0054] determining one or more principals associated with the first user based on a plurality of content objects associated with the first user and session data associated with the first user; and

[0055] A customized user profile is generated for a first user based on a baseline profile, wherein the user profile includes one or more confidence scores associated with corresponding one or more subjects associated with the first user, wherein the one or more confidence scores are calculated based on a plurality of content objects associated with the first user and session data associated with the first user.

[0056] Determining one or more subjects associated with the first user can be based on one or more machine learning models, wherein the one or more machine learning models can respectively calculate one or more probabilities that the session data is associated with the one or more subjects, wherein in particular, a support vector machine (SVM), a regression model, or a deep convolutional neural network (DCNN) can be used.

[0057] In an embodiment, a method may include determining one or more sentiment indicators associated with conversation data, wherein the determination may be based on one or more long short-term memory (LSTM) networks, and wherein the one or more LSTM networks may respectively calculate one or more probabilities that the conversation data is associated with the one or more sentiment indicators.

[0058] In an embodiment, a method may include determining one or more domains associated with session data, wherein the determination may be based on one or more machine learning models, and wherein the one or more machine learning models respectively calculate one or more probabilities that the session data is associated with the one or more domains.

[0059] Determining contextual information associated with the first user may include one or more of the following:

[0060] processing metadata associated with the session data based on a machine learning model, wherein the machine learning model calculates a probability that the metadata is associated with the contextual information; or

[0061] The session data is processed based on the machine learning model, wherein the machine learning model calculates a probability that the session data is associated with the contextual information.

[0062] In an embodiment, one or more computer-readable non-transitory storage media embodying software that, when executed, is operable to perform a method according to any of the embodiments herein.

[0063] In an embodiment, an assistant system is provided for assisting a user in obtaining information or services by enabling the user to interact with the assistant system in a conversation using user input to obtain assistance, wherein the user input includes voice, text, image, or video, or any combination thereof, the assistant system being implemented in particular by a combination of a computing device, an application programming interface (API), and a proliferation of applications on a user device,

[0064] The assistant system may include: one or more processors; and a non-transitory memory coupled to the processor, the non-transitory memory including instructions executable by the processor, the processor being operable to perform a method according to any embodiment of the present invention when executing the instructions.

[0065] The assistant system may assist the user by performing at least one or more of the following features or steps:

[0066] - Create and store a user profile that includes personal and contextual information associated with the user

[0067] - Use natural language understanding to analyze user input, where the analysis can be based on user profiles for a more personalized and context-aware understanding

[0068] - Based on this analysis, resolve the entity associated with the user input

[0069] -Interact with different agents to obtain information or services associated with the resolved entity

[0070] - Generate responses for users regarding that information or service by using natural language generation

[0071] - Manage and forward conversation flows with users through interaction with them using conversation management techniques

[0072] - Help users digest the information they have obtained effectively and efficiently by aggregating the information

[0073] - Help users better participate in online social networks by providing tools that help users interact with online social networks (e.g., create posts, comments, messages)

[0074] - Helps users manage different tasks, such as keeping track of events

[0075] - Proactively perform pre-authorized tasks related to the user's interests and preferences based on the user profile at a time relevant to the user and without user input

[0076] - Check privacy settings whenever necessary to ensure that accessing a user profile and performing different tasks respects the user's privacy settings

[0077] -Automatically identify a user's intent and language register based on user input, generate communication content for the user that is appropriate for that intent and language register, detect changes in the user's intent and language register, and dynamically adjust the generation of communication content to accommodate the changed intent and language register.

[0078] In an embodiment, the assistant system includes at least one or more of the following components:

[0079] a messaging platform for receiving a text-based user input from a client system associated with a user, and / or receiving an image or video-based user input, and processing the image or video-based user input within the messaging platform using optical character recognition technology to convert the user input into text,

[0080] an audio speech recognition (ASR) module for receiving an audio modality-based user input from a client system associated with a user (e.g., the user may speak or send a video including voice) and converting the audio modality-based user input into text,

[0081] - Assistant xbot, which is used to receive the output of the messaging platform or the ASR module.

[0082] In an embodiment, the assistant system may include a user context engine (UCE), wherein the user context engine may store a user profile of a user, and wherein the user context engine may access a plurality of content objects associated with a first user from a social networking system or an online social network.

[0083] In an embodiment, the assistant system may include a dialog engine,

[0084] The dialogue engine manages the dialogue state and conversation flow between the user and the assistant xbot.

[0085] In an embodiment, a system may include:

[0086] at least one client system, in particular an electronic device,

[0087] At least one assistant system according to any embodiment of the present invention,

[0088] The client system and the assistant system are connected to each other in particular via a network,

[0089] wherein the client system includes an assistant application that allows a user at the client system to interact with the assistant system,

[0090] wherein the assistant application transmits the user input to the assistant system, and the assistant system generates a response based on the user input and sends the generated response to the assistant application, and the assistant application presents the response to the user at the client system,

[0091] In particular, the user input is audio or verbal, and the response may be textual or also audio or verbal.

[0092] In an embodiment, the system may include a social networking system,

[0093] The client system may specifically include a social networking application for accessing the social networking system. BRIEF DESCRIPTION OF THE DRAWINGS

[0095] Figure 1 An example network environment associated with an assistant system is shown.

[0096] Figure 2 An example architecture for an assistant system is shown.

[0097] Figure 3 An example flow chart of an assistant system responding to a user request is shown.

[0098] Figure 4 An example architecture for building customized user profiles is shown.

[0099] Figure 5An example tree-structured user profile is shown.

[0100] Figure 6 An example method for building a customized user profile is shown.

[0101] Figure 7 An example social graph is shown.

[0102] Figure 8 An example view of the embedding space is shown.

[0103] Fig. 9 An example artificial neural network is shown.

[0104] Fig.10 An example computer system is shown.

[0105] Description of Example Embodiments

[0106] Systematic review

[0107] Figure 1 An example network environment 100 associated with an assistant system is shown. The network environment 100 includes a client system 130, an assistant system 140, a social networking system 160, and a third-party system 170 connected to each other via a network 110. Figure 1 A particular arrangement of client system 130, assistant system 140, social networking system 160, third-party system 170, and network 110 is shown, but the present disclosure contemplates any suitable arrangement of client system 130, assistant system 140, social networking system 160, third-party system 170, and network 110. By way of example and not limitation, two or more of client system 130, social networking system 160, assistant system 140, and third-party system 170 may be directly connected to each other, bypassing network 110. As another example, two or more of client system 130, assistant system 140, social networking system 160, and third-party system 170 may be physically or logically co-located with each other, in whole or in part. Furthermore, although Figure 1 A particular number of client systems 130, assistant systems 140, social networking systems 160, third-party systems 170, and networks 110 are shown, but this disclosure contemplates any suitable number of client systems 130, assistant systems 140, social networking systems 160, third-party systems 170, and networks 110. By way of example and not limitation, network environment 100 may include a plurality of client systems 130, assistant systems 140, social networking systems 160, third-party systems 170, and networks 110.

[0108] The present disclosure contemplates any suitable network 110. By way of example and not limitation, one or more portions of network 110 may include an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless LAN (WLAN), a wide area network (WAN), a wireless WAN (WWAN), a metropolitan area network (MAN), a portion of the Internet, a portion of a public switched telephone network (PSTN), a cellular telephone network, or a combination of two or more of these. Network 110 may include one or more networks 110.

[0109] Links 150 may connect client systems 130, assistant systems 140, social networking systems 160, and third-party systems 170 to communication network 110 or to each other. The present disclosure contemplates any suitable links 150. In particular embodiments, one or more links 150 include one or more wired (such as, for example, digital subscriber lines (DSL) or cable-based data service interface specifications (DOCSIS)) links, wireless (such as, for example, Wi-Fi or Worldwide Interoperability for Microwave Access (WiMAX)) links, or optical (such as, for example, synchronous optical network (SONET) or synchronous digital hierarchy (SDH)) links. In particular embodiments, one or more links 150 each include an ad hoc network, an intranet, an extranet, a VPN, a LAN, a WLAN, a WAN, a WWAN, a MAN, a portion of the Internet, a portion of the PSTN, a network based on cellular technology, a network based on satellite communication technology, another link 150, or a combination of two or more such links 150. Links 150 need not necessarily be the same throughout network environment 100. The one or more first links 150 may differ from the one or more second links 150 in one or more aspects.

[0110] In certain embodiments, client system 130 may be an electronic device that includes hardware, software, or embedded logic components, or a combination of two or more such components, and is capable of performing appropriate functions implemented or supported by client system 130. By way of example and not limitation, client system 130 may include a computer system such as a desktop computer, a notebook or laptop computer, a netbook, a tablet computer, an e-book reader, a GPS device, a camera, a personal digital assistant (PDA), a handheld electronic device, a cellular phone, a smart phone, a smart speaker, other suitable electronic devices, or any suitable combination thereof. In certain embodiments, client system 130 may be a smart assistant device. More information about intelligent assistant devices can be found in U.S. Patent Application No. 15 / 949011, filed on April 9, 2018, U.S. Patent Application No. 62 / 655751, filed on April 10, 2018, U.S. Patent Application No. 29 / 631910, filed on January 3, 2018, U.S. Patent Application No. 29 / 631747, filed on January 2, 2018, U.S. Patent Application No. 29 / 631913, filed on January 3, 2018, and U.S. Patent Application No. 29 / 631914, filed on January 3, 2018, which are incorporated by reference. The present disclosure contemplates any suitable client system 130. Client system 130 can enable network users at client system 130 to access network 110. Client system 130 can enable its users to communicate with other users at other client systems 130.

[0111] In a particular embodiment, the client system 130 may include a web browser 132, such as MICROSOFTINTERNET EXPLORER, GOOGLE CHROME or MOZILLA FIREFOX, and may have one or more add-ons, plug-ins or other extensions, such as TOOLBAR or YAHOO TOOLBAR. A user at the client system 130 may enter a uniform resource locator (URL) or other address that directs the web browser 132 to a specific server (such as server 162 or a server associated with a third-party system 170), and the web browser 132 may generate a hypertext transfer protocol (HTTP) request and pass the HTTP request to the server. The server may accept the HTTP request and pass one or more hypertext markup language (HTML) files to the client system 130 in response to the HTTP request. The client system 130 may display a web interface (such as a web page) based on an HTML file from a server for presentation to the user. The present disclosure contemplates any suitable source file. As an example and not as a limitation, a web interface may be displayed according to an HTML file, an extensible hypertext markup language (XHTML) file or an extensible markup language (XML) file according to specific needs. Such an interface may also execute scripts, such as, for example and without limitation, scripts written in JAVASCRIPT, JAVA, MICROSOFT SILVERLIGHT, a combination of markup language and script (e.g., AJAX (Asynchronous JAVASCRIPT and XML)), etc. Herein, references to a web interface include one or more corresponding source files (which a browser may use to render the web interface), and vice versa, where appropriate.

[0112] In certain embodiments, client system 130 may include social networking application 134 installed on client system 130. A user at client system 130 may use social networking application 134 to access an online social network. A user at client system 130 may use social networking application 134 to communicate with the user's social connections (e.g., friends, followers, followed accounts, contacts, etc.). A user at client system 130 may also use social networking application 134 to interact with a plurality of content objects (e.g., posts, news articles, temporary content, etc.) on the online social network. As an example and not by way of limitation, a user may use social networking application 134 to browse for trending topics and breaking news.

[0113] In certain embodiments, the client system 130 may include an assistant application 136. The user of the client system 130 may use the assistant application 136 to interact with the assistant system 140. In certain embodiments, the assistant application 136 may include an independent application. In certain embodiments, the assistant application 136 may be integrated into the social network application 134 or another suitable application (e.g., a messaging application). In certain embodiments, the assistant application 136 may also be integrated into the client system 130, the assistant hardware device, or any other suitable hardware device. In certain embodiments, the assistant application 136 may be accessed via a web browser 132. In certain embodiments, the user may provide input via different modalities. As an example and not as a limitation, the modality may include audio, text, image, video, etc. The assistant application 136 may transmit the user input to the assistant system 140. Based on the user input, the assistant system 140 may generate a response. The assistant system 140 may send the generated response to the assistant application 136. Then, the assistant application 136 may present the response to the user of the client system 130. The presented response may be based on different modalities, such as audio, text, image, and video. As an example and not by way of limitation, a user may verbally ask assistant application 136 for traffic information (i.e., via an audio modality). Assistant application 136 may then transmit the request to assistant system 140. Assistant system 140 may generate results accordingly and send them back to assistant application 136. Assistant application 136 may also present the results to the user in text.

[0114] In a particular embodiment, the assistant system 140 can help the user retrieve information from different sources. The assistant system 140 can also help the user request services from different service providers. In a particular embodiment, the assistant system 140 can receive a user's request for information or services via the assistant application 136 in the client system 130. The assistant system 140 can use natural language understanding to analyze the user request based on the user profile and other relevant information. The results of the analysis may include different entities associated with online social networks. The assistant system 140 can then retrieve information or request services associated with these entities. In a particular embodiment, when retrieving information or requesting services for the user, the assistant system 140 can interact with the social networking system 160 and / or the third-party system 170. In a particular embodiment, the assistant system 140 can generate personalized communication content for the user using natural language generation technology. The personalized communication content may include, for example, the status of the retrieved information or the requested service. In a particular embodiment, the assistant system 140 can enable the user to interact with it about information or services in a stateful and multi-round conversation by using dialogue management technology. In the following Figure 2 The functionality of assistant system 140 is described in more detail in the discussion of .

[0115] In certain embodiments, social networking system 160 may be a network-addressable computing system that may host an online social network. Social networking system 160 may generate, store, receive, and transmit social networking data (such as, for example, user profile data, concept profile data, social graph information, or other suitable data related to an online social network). Social networking system 160 may be accessed by other components of network environment 100 directly or via network 110. As an example and not by way of limitation, client system 130 may access social networking system 160 directly or via network 110 using a web browser 132 or a native application associated with social networking system 160 (e.g., a mobile social networking application, a messaging application, another suitable application, or any combination thereof). In certain embodiments, social networking system 160 may include one or more servers 162. Each server 162 may be a unitary server or a distributed server across multiple computers or multiple data centers. The server 162 may be of various types, such as, for example and without limitation, a web server, a news server, a mail server, a message server, an advertising server, a file server, an application server, an exchange server, a database server, a proxy server, another server suitable for performing the functions or processes described herein, or any combination thereof. In a particular embodiment, each server 162 may include hardware, software, or embedded logic components for performing the appropriate functions implemented or supported by the server 162, or a combination of two or more such components. In a particular embodiment, the social networking system 160 may include one or more data storage devices 164. The data storage device 164 may be used to store various types of information. In a particular embodiment, the information stored in the data storage device 164 may be organized according to a particular data structure. In a particular embodiment, each data storage device 164 may be a relational database, a columnar database, a correlation database, or other suitable database. Although the present disclosure describes or illustrates a particular type of database, the present disclosure contemplates any suitable type of database. Particular embodiments may provide an interface that enables client system 130 , social networking system 160 , or third-party system 170 to manage, retrieve, modify, add, or delete information stored in data store 164 .

[0116] In certain embodiments, social networking system 160 may store one or more social graphs in one or more data stores 164. In certain embodiments, a social graph may include a plurality of nodes, which may include a plurality of user nodes (each corresponding to a particular user) or a plurality of concept nodes (each corresponding to a particular concept), and a plurality of edges connecting the nodes. Social networking system 160 may provide users of an online social network with the ability to communicate and interact with other users. In certain embodiments, a user may join an online social network via social networking system 160 and then add connections (e.g., relationships) with a plurality of other users in social networking system 160 to whom they want to be connected. Herein, the term "friend" may refer to any other user of social networking system 160 with whom the user forms a connection, association, or relationship via social networking system 160.

[0117] In particular embodiments, social-networking system 160 may provide users with the ability to take actions on various types of items or objects supported by social-networking system 160. By way of example and not limitation, items and objects may include groups or social networks to which users of social-networking system 160 may belong, events or calendar entries that may be of interest to users, computer-based applications that users may use, transactions that allow users to buy or sell goods via a service, interactions with advertisements that users may perform, or other suitable items or objects. Users may interact with anything that can be represented in social-networking system 160 or by an external system such as third-party system 170 that is separate from social-networking system 160 and coupled to social-networking system 160 via network 110.

[0118] In certain embodiments, social networking system 160 can link various entities. As an example and not by way of limitation, social networking system 160 can enable users to interact with each other and receive content from third-party systems 170 or other entities, or allow users to interact with these entities through an application programming interface (API) or other communication channels.

[0119] In certain embodiments, third-party systems 170 may include one or more types of servers, one or more data stores, one or more interfaces (including but not limited to APIs), one or more web services, one or more content sources, one or more networks, or any other suitable components (e.g., the server may communicate with these components). Third-party systems 170 may be operated by a different entity than the entity that operates social-networking system 160. However, in certain embodiments, social-networking system 160 and third-party systems 170 may operate in conjunction with each other to provide social-networking services to users of social-networking system 160 or third-party systems 170. In this sense, social-networking system 160 may provide a platform or backbone that other systems (e.g., third-party systems 170) may use to provide social-networking services and functionality to users across the Internet.

[0120] In certain embodiments, third-party system 170 may include a third-party content object provider. A third-party content object provider may include one or more sources of content objects that may be delivered to client system 130. By way of example and not limitation, content objects may include information about things or activities of interest to the user, such as, for example, movie showtimes, movie reviews, restaurant reviews, restaurant menus, product information and reviews, or other suitable information. By way of another example and not limitation, content objects may include incentive content objects (e.g., coupons, discount coupons, gift certificates, or other suitable incentive objects).

[0121] In certain embodiments, social networking system 160 also includes user-generated content objects that can enhance a user's interaction with social networking system 160. User-generated content can include any content that a user can add, upload, send, or "post" to social networking system 160. As an example and not by way of limitation, a user transmits a post from client system 130 to social networking system 160. Posts can include data, such as status updates or other textual data, location information, photos, videos, links, music, or other similar data or media. Content can also be added to social networking system 160 by third parties through "communication channels" such as dynamic messages or streams.

[0122] In certain embodiments, the social networking system 160 may include various servers, subsystems, programs, modules, logs, and data storage. In certain embodiments, the social networking system 160 may include one or more of the following: a web server, an action recorder, an API request server, a correlation and ranking engine, a content object classifier, a notification controller, an action log, a third-party content object exposure log, an inference module, an authorization / privacy server, a search module, an advertisement-targeting module, a user interface module, a user profile storage, a relationship storage, a third-party content storage, or a location storage. The social networking system 160 may also include suitable components, such as a network interface, a security mechanism, a load balancer, a failover server, a management and network operation console, other suitable components, or any suitable combination thereof. In certain embodiments, the social networking system 160 may include one or more user profile storages for storing user profiles. A user profile may include, for example, biographical information, demographic information, behavioral information, social information, or other types of descriptive information (e.g., work experience, educational history, hobbies or preferences, interests, affinities, or locations). Interest information may include interests associated with one or more categories. Categories may be general or specific. As an example and not by way of limitation, if a user "likes" an article about a brand of shoes, the category may be the brand, or the general category of "shoes" or "clothing". The association storage may be used to store association information about users. The association information may indicate users with similar or common work experience, group membership, hobbies, educational history, or who are related or share common attributes in any way. The association information may also include user-defined associations between different users and content (internal and external). The web server may be used to link the social networking system 160 to one or more client systems 130 or one or more third-party systems 170 via the network 110. The web server may include a mail server or other messaging functionality for receiving and routing messages between the social networking system 160 and one or more client systems 130. The API request server may allow a third-party system 170 to access information from the social networking system 160 by calling one or more APIs. The action recorder may be used to receive communications from the web server about the user's actions on or outside the social networking system 160. In conjunction with the action log, a third-party content object log of user exposure to third-party content objects can be maintained. The notification controller can provide information about content objects to the client system 130. The information can be pushed to the client system 130 as a notification, or the information can be pulled from the client system 130 in response to a request received from the client system 130.The authorization server may be used to enforce one or more privacy settings of users of the social networking system 160. The privacy settings of the user determine how certain information associated with the user may be shared. The authorization server may allow the user to opt-in or opt-out of having their actions recorded by the social networking system 160 or shared with other systems (e.g., third-party systems 170), such as by setting appropriate privacy settings. A third-party content object store may be used to store content objects received from a third party (e.g., third-party system 170). A location store may be used to store location information associated with the user received from the client system 130. The advertising pricing module may combine social information, current time, location information, or other suitable information to provide relevant advertisements to the user in the form of notifications.

[0123] Assistant System

[0124] Figure 2 An example architecture 200 of an assistant system 140 is shown. In a particular embodiment, the assistant system 140 can help a user obtain information or services. The assistant system 140 can enable a user to interact with it in a stateful and multi-turn conversation with multimodal user input (such as sound, text, image, video) to obtain help. The assistant system 140 can create and store a user profile including personal information and contextual information associated with the user. In a particular embodiment, the assistant system 140 can analyze the user input using natural language understanding. The analysis can be based on the user profile to obtain a more personalized and context-aware understanding. The assistant system 140 can parse entities associated with the user input based on the analysis. In a particular embodiment, the assistant system 140 can interact with different agents to obtain information or services associated with the parsed entity. The assistant system 140 can generate responses about information or services for the user by using natural language generation. Through interaction with the user, the assistant system 140 can use dialogue management technology to manage and forward the conversation flow with the user. In a particular embodiment, the assistant system 140 can also help the user digest the obtained information effectively and efficiently by aggregating the information. The assistant system 140 can also help users better participate in online social networks by providing tools that help users interact with online social networks (e.g., create posts, comments, messages). The assistant system 140 can additionally help users manage different tasks, such as keeping track of events. In certain embodiments, the assistant system 140 can proactively perform pre-authorized tasks related to the user's interests and preferences based on the user profile at a time relevant to the user without user input. In certain embodiments, the assistant system 140 can check privacy settings whenever it is necessary to ensure that accessing the user profile and performing different tasks comply with the user's privacy settings.

[0125] In a particular embodiment, the assistant system 140 can receive user input from an assistant application 136 in a client system 130 associated with the user. If the user input is based on a text modality, the assistant system 140 can receive it at the messaging platform 205. If the user input is based on an audio modality (e.g., the user can speak to the assistant application 136 or send a video including voice to the assistant application 136), the assistant system 140 can process it using an audio speech recognition (ASR) module 210 to convert the user input into text. If the user input is based on an image or video modality, the assistant system 140 can process it using optical character recognition technology within the messaging platform 205 to convert the user input into text. The output of the messaging platform 205 or the ASR module 210 can be received at the assistant xbot 215.

[0126] In a particular embodiment, assistant xbot 215 can be a type of chatbot. Assistant xbot 215 can include a programmable service channel, which can be a software code, logic or routine used as a user personal assistant. Assistant xbot 215 can serve as a user portal of assistant system 140. Therefore, assistant xbot 215 can be considered as a type of conversational agent. In a particular embodiment, assistant xbot 215 can send text user input to natural language understanding (NLU) module 220 to interpret user input. In a particular embodiment, NLU module 220 can obtain information from user context engine 225 and semantic information aggregator 230 to accurately understand user input. User context engine 225 can store user profiles of users. User profiles of users can include user profile data, which includes demographic information, social information and context information associated with users. User profile data can also include user interests and preferences for multiple topics aggregated by conversations on dynamic messages, search logs, messaging platforms 205, etc. The use of user profiles can be protected by the privacy check module 245 to ensure that the user's information can only be used for his / her benefit and cannot be shared with anyone else. The semantic information aggregator 230 can provide ontology data associated with multiple predefined domains, intents, and slots to the NLU module 220. In a specific embodiment, the domain can represent the social context of the interaction, for example, education. The intent can indicate the purpose of the user's interaction with the assistant system 140. The slot can represent a basic semantic entity. For example, the slot of "pizza" can be a dish. The semantic information aggregator 230 can also extract information from social graphs, knowledge graphs, and concept graphs, and retrieve user profiles from the user context engine 225. The semantic information aggregator 230 can also process information from these different sources by determining what information to aggregate, annotating n-grams (n-grams) of user input, sorting n-grams with confidence scores based on the aggregated information, and formulating the sorted n-grams into features that can be used by the NLU module 220 to understand the user input. Based on the output of the user context engine 225 and the semantic information aggregator 230, the NLU module 220 can identify domains, intents, and one or more slots from the user input in a personalized and context-aware manner. As an example and not by way of limitation, the user input can include "show me how to get to the Starbucks". The NLU module 220 can identify a specific Starbucks that the user wants to go to based on the user's personal information and associated contextual information.In a particular embodiment, the NLU module 220 may include a lexicon of language, a parser, and grammar rules to divide sentences into internal representations. The NLU module 220 may also include one or more programs that use pragmatics to perform naive semantics or random semantic analysis to understand user input. In a particular embodiment, the grammar parser may be based on a deep learning architecture including multiple long short-term memory (LSTM) networks. As an example and not as a limitation, the grammar parser may be based on a recurrent neural network grammar (RNNG) model, which is a type of cyclic and recursive LSTM algorithm.

[0127] In a particular embodiment, the identified domain, intent, and one or more slots from the NLU module 220 may be sent to the conversation engine 235. In a particular embodiment, the conversation engine 235 may manage the conversation flow and conversation state between the user and the assistant xbot 215. The conversation engine 235 may also store previous conversations between the user and the assistant xbot 215. In a particular embodiment, the conversation engine 235 may communicate with the entity resolution module 240 to resolve entities associated with one or more slots, which supports the conversation engine 235 to forward the conversation flow between the user and the assistant xbot 215. In a particular embodiment, the entity resolution module 240 may access social graphs, knowledge graphs, and concept graphs when resolving entities. An entity may include, for example, a unique user or concept, each of which may have a unique identifier (ID). As an example and not as a limitation, a knowledge graph may include multiple entities. Each entity may include a single record associated with one or more attribute values. A specific record may be associated with a unique entity identifier. For an attribute of an entity, each record may have a different value. Each attribute value may be associated with a confidence probability. The confidence probability of an attribute value indicates the probability that the value is accurate for a given attribute. Each attribute value may also be associated with a semantic weight. The semantic weight of an attribute value may indicate the degree to which the value is semantically suitable for a given attribute, taking into account all available information. For example, a knowledge graph may include an entity of the movie "The Martian" (2015), which includes information that has been extracted from multiple content sources (e.g., Facebook, Wikipedia, CSM, IMDb, Metacritics, Rovi, TMDb, and Rotten Tomatoes), and then de-duplicated, parsed, and fused to generate a single unique record of the knowledge graph. An entity may be associated with a spatial attribute value indicating the genre of the movie "The Martian" (2015). The entity resolution module 240 may also request a user profile of a user associated with the user input from the user context engine 225. In a particular embodiment, the entity resolution module 240 may communicate with the privacy check module 245 to ensure that the resolution of the entity does not violate a privacy policy. In a particular embodiment, the privacy check module 245 may implement a privacy policy using an authorization / privacy server. As an example and not by way of limitation, the entity to be resolved may be another user who has specified in his / her privacy settings that his / her identity should not be searchable on the online social network, and thus entity resolution module 240 may respond to the request without returning an identifier for that user. Based on information obtained from the social graph, knowledge graph, concept graph, and user profile, and in compliance with applicable privacy policies, entity resolution module 240 may therefore accurately resolve entities associated with user input in a personalized and context-aware manner.In certain embodiments, each resolved entity may be associated with one or more identifiers hosted by social networking system 160. As an example and not by way of limitation, the identifier may include a unique user identifier (ID). In certain embodiments, each resolved entity may also be associated with a confidence score.

[0128] In a particular embodiment, the conversation engine 235 may communicate with different agents based on the identified intent and domain and the resolved entity. In a particular embodiment, the agent may include a first-party agent 250 and a third-party agent 255. In a particular embodiment, the first-party agent 250 may include an internal agent that can be accessed and controlled by the assistant system 140 (e.g., an agent associated with a service provided by an online social network (Messenger, Instagram)). In a particular embodiment, the third-party agent 255 may include an external agent that the assistant system 140 cannot control (e.g., a music streaming agent (Spotify), a ticket sales agent (Ticketmaster)). The first-party agent 250 may be associated with a first-party provider 260 that provides content objects and / or services hosted by the social networking system 160. The third-party agent 255 may be associated with a third-party provider 265 that provides content objects and / or services hosted by a third-party system 170.

[0129] In certain embodiments, communications from the conversation engine 235 to the first party agent 250 may include a request for a specific content object and / or service provided by the first party provider 260. Thus, the first party agent 250 may retrieve the requested content object from the first party provider 260 and / or execute a task that instructs the first party provider 260 to perform the requested service. In certain embodiments, communications from the conversation engine 235 to the third party agent 255 may include a request for a specific content object and / or service provided by the third party provider 265. Thus, the third party agent 255 may retrieve the requested content object from the third party provider 265 and / or execute a task that instructs the third party provider 265 to perform the requested service. The third party agent 255 may access the privacy check module 245 to ensure that there is no privacy violation before interacting with the third party provider 265. As an example and not by way of limitation, a user associated with the user input may specify in his / her privacy settings that his / her profile information is not visible to any third party content provider. Thus, when retrieving a content object associated with a user input from a third party provider 265 , the third party agent 255 may complete the retrieval without revealing to the third party provider 265 which user is requesting the content object.

[0130] In certain embodiments, each of the first party agent 250 or the third party agent 255 may be designated for a specific domain. By way of example and not limitation, the domain may include weather, transportation, music, etc. In certain embodiments, the assistant system 140 may use multiple agents in concert to respond to user input. By way of example and not limitation, the user input may include "direct me to my next meeting". The assistant system 140 may use a calendar agent to retrieve the location of the next meeting. The assistant system 140 may then use a navigation agent to direct the user to the next meeting.

[0131] In certain embodiments, each of the first party agent 250 or the third party agent 255 may retrieve a user profile from the user context engine 225 to perform the task in a personalized and context-aware manner. By way of example and not limitation, the user input may include "book me a ride to the airport". The transportation agent may perform the task of booking a ride. The transportation agent may retrieve the user profile of the user from the user context engine 225 before booking the ride. For example, the user profile may indicate that the user prefers taxis, so the transportation agent may book a taxi for the user. As another example, context information associated with the user profile may indicate that the user is in a hurry, so the transportation agent may book a ride for the user from a ride-sharing service (e.g., Uber, Lyft) because getting a ride from a ride-sharing service may be faster than a taxi company. In certain embodiments, each of the first party agent 250 or the third party agent 255 may consider other factors when performing the task. By way of example and not limitation, the other factors may include price, ratings, efficiency, partnerships with online social networks, etc.

[0132] In certain embodiments, the dialog engine 235 may communicate with a conversation understanding writer (CU writer) 270. The dialog engine 235 may send the requested content object and / or the status of the requested service to the CU writer 270. In certain embodiments, the dialog engine 235 may send the requested content object and / or the status of the requested service to the CU writer 270.<k,c,u,d> Tuples are sent, where k indicates a knowledge source, c indicates a communication target, u indicates a user model, and d indicates a discourse model. In a specific embodiment, the CU writer 270 may include a natural language generator (NLG) 271 and a user interface (UI) payload generator 272. The natural language generator 271 may generate communication content based on the output of the dialogue engine 235. In a specific embodiment, the NLG 271 may include a content determination component, a sentence planner, and a surface realization component. The content determination component may determine the communication content based on the knowledge source, the communication target, and the user's expectations. As an example and not as a limitation, the determination may be based on description logic. The description logic may include, for example, three basic notions, which are individuals (representing objects in a domain), concepts (describing individual sets), and roles (representing binary relationships between individuals or concepts). The description logic may be characterized by a set of constructors that allow the natural language generator 271 to build complex concepts / roles from atomic concepts / roles. In a specific embodiment, the content determination component may perform the following tasks to determine the communication content. The first task may include a translation task, in which the input to the natural language generator 271 can be translated into concepts. The second task may include a selection task, in which relevant concepts can be selected from the concepts generated by the translation task based on the user model. The third task may include a verification task, in which the consistency of the selected concept can be verified. The fourth task may include an instantiation task, in which the verified concept can be instantiated into an executable file that can be processed by the natural language generator 271. The sentence planner can determine the organization of the communication content so that it is understandable to people. The surface implementation component can determine the specific words to be used, the order of sentences, and the style of the communication content. The UI payload generator 272 can determine the preferred modality of the communication content to be presented to the user. In a specific embodiment, the CU writer 270 can communicate with the privacy check module 245 to ensure that the generation of the communication content follows the privacy policy. In a specific embodiment, when generating the communication content and determining the modality of the communication content, the CU writer 270 can retrieve the user profile from the user context engine 225. Therefore, for the user, the communication content can be more natural, personalized, and context-aware. As an example and not by way of limitation, a user profile may indicate that the user prefers short sentences in conversation, and thus the generated communication content may be based on short sentences.As another example and not by way of limitation, context information associated with a user profile may indicate that the user is using a device that only outputs audio signals, so UI payload generator 272 may determine the modality of the communication content as audio.

[0133] In certain embodiments, the CU writer 270 may send the generated communication content to the assistant xbot 215. In certain embodiments, the assistant xbot 215 may send the communication content to the messaging platform 205. The messaging platform 205 may also send the communication content to the client system 130 via the assistant application 136. In an alternative embodiment, the assistant xbot 215 may send the communication content to a text-to-speech (TTS) module 275. The TTS module 275 may convert the communication content into an audio clip. The TTS module 275 may also send the audio clip to the client system 130 via the assistant application 136.

[0134] In certain embodiments, assistant xbot 215 may interact with proactive inference layer 280 without receiving user input. Proactive inference layer 280 may infer user interests and preferences based on a user profile retrieved from user context engine 225. In certain embodiments, proactive inference layer 280 may also communicate with proactive agent 285 regarding inferences. Proactive agent 285 may perform proactive tasks based on inferences. As an example and not as a limitation, proactive tasks may include sending content objects to users or providing services. In certain embodiments, each proactive task may be associated with an agenda item. Agenda items may include recurring items, such as daily summaries. Agenda items may also include one-time items. In certain embodiments, proactive agent 285 may retrieve a user profile from user context engine 225 when performing proactive tasks. Thus, proactive agent 285 may perform proactive tasks in a personalized and context-aware manner. As an example and not as a limitation, the proactive inference layer may infer that a user likes the band Maroon 5, and proactive agent 285 may generate recommendations for new songs / albums of Maroon 5 for the user.

[0135] In a particular embodiment, the active agent 285 can generate candidate entities associated with the active task based on the user profile. The generation can be based on a direct backend query that retrieves the candidate entity from a structured data storage using a deterministic filter. Alternatively, the generation can be based on a machine learning model that is trained based on the user profile, entity attributes, and the correlation between the user and the entity. As an example and not as a limitation, the machine learning model can be based on a support vector machine (SVM). As another example and not as a limitation, the machine learning model can be based on a regression model. As another example and not as a limitation, the machine learning model can be based on a deep convolutional neural network (DCNN). In a particular embodiment, the active agent 285 can also sort the generated candidate entities based on the user profile and the content associated with the candidate entity. The sorting can be based on the similarity between the user's interest and the candidate entity. As an example and not as a limitation, the assistant system 140 can generate a feature vector representing the user's interest and a feature vector representing the candidate entity. The assistant system 140 can then calculate a similarity score (e.g., based on cosine similarity) between the feature vector representing the user's interest and the feature vector representing the candidate entity. Alternatively, the sorting can be based on a sorting model that is trained based on user feedback data.

[0136] In certain embodiments, the active task may include recommending a candidate entity to a user. The active agent 285 may schedule the recommendation, thereby associating the recommendation time with the recommended candidate entity. The recommended candidate entity may also be associated with a priority and an expiration time. In certain embodiments, the recommended candidate entity may be sent to an active scheduler. The active scheduler may determine the actual time to send the recommended candidate entity to the user based on the priority associated with the task and other relevant factors (e.g., clicks and impressions of the recommended candidate entity). In certain embodiments, the active scheduler may then send the recommended candidate entity with the determined actual time to an asynchronous tier. The asynchronous tier may temporarily store the recommended candidate entity as a job. In certain embodiments, the asynchronous tier may send the job to the conversation engine 235 at the determined actual time for execution. In alternative embodiments, the asynchronous tier may execute the job by sending it to other surface layers (e.g., other notification services associated with the social networking system 160). In certain embodiments, the conversation engine 235 may identify the conversation intent, state, and history associated with the user. Based on the conversation intent, the conversation engine 235 may select some candidate entities from the recommended candidate entities to send to the client system 130. In a particular embodiment, the conversation state and history may indicate whether the user is involved in an ongoing conversation with assistant xbot 215. If the user is involved in an ongoing conversation and the priority of the recommended task is low, the conversation engine 235 may communicate with the active scheduler to reschedule the time when the selected candidate entity is sent to the client system 130. If the user is involved in an ongoing conversation and the priority of the recommended task is high, the conversation engine 235 may initiate a new conversation session with the user, in which the selected candidate entity may be presented. Therefore, the interruption of the ongoing conversation may be prevented. When it is determined that sending the selected candidate entity will not interrupt the user, the conversation engine 235 may send the selected candidate entity to the CU writer 270 to generate personalized and context-aware communication content including the selected candidate entity according to the user's privacy settings. In a particular embodiment, the CU writer 270 may send the communication content to the assistant xbot 215, which may then send it to the client system 130 via the messaging platform 205 or the TTS module 275.

[0137] In certain embodiments, assistant xbot 215 may communicate with proactive agent 285 in response to user input. As an example and not by way of limitation, a user may ask assistant xbot 215 to set a reminder. Assistant xbot 215 may request proactive agent 285 to set such a reminder, and proactive agent 285 may later proactively perform the task of reminding the user.

[0138] In a particular embodiment, the assistant system 140 may include a summarizer 290. The summarizer 290 may provide a customized dynamic message summary to the user. In a particular embodiment, the summarizer 290 may include multiple metaagents. Multiple metaagents may use first-party agents 250, third-party agents 255, or active agents 285 to generate dynamic message summaries. In a particular embodiment, the summarizer 290 may retrieve user interests and preferences from the active inference layer 280. The summarizer 290 may then retrieve entities associated with user interests and preferences from the entity resolution module 240. The summarizer 290 may also retrieve a user profile from the user context engine 225. Based on information from the active inference layer 280, the entity resolution module 240, and the user context engine 225, the summarizer 290 may generate a personalized and context-aware summary for the user. In a particular embodiment, the summarizer 290 may send the summary to the CU writer 270. The CU writer 270 may process the summary and send the processing result to the assistant xbot 215. Assistant xbot 215 may then send the processed summary to client system 130 via messaging platform 205 or TTS module 275 .

[0139] Figure 3 An example flow chart 300 of the assistant system 140 responding to a user request is shown. In a particular embodiment, the assistant xbot 215 can access the request manager 305 when receiving a user request. The request manager 305 may include a context extractor 306 and a conversation understanding object generator (CU object generator) 307. The context extractor 306 can extract context information associated with the user request. The CU object generator 307 can generate a specific content object related to the user request. In a particular embodiment, the request manager 305 can store the context information and the generated content object in a data storage 310, which is a specific data storage implemented in the assistant system 140.

[0140] In a particular embodiment, the request manager 305 may send the generated content object to the NLU module 220. The NLU module 220 may perform a number of steps to process the content object. In step 221, the NLU module 220 may generate a whitelist of content objects. In step 222, the NLU module 220 may perform characterization based on the whitelist. In step 223, the NLU module 220 may perform domain classification / selection based on the features generated from the characterization. The domain classification / selection results may be further processed based on two related processes. In step 224a, the NLU module 220 may use an intent classifier to process the domain classification / selection results. The intent classifier may determine a user intent associated with the user request. As an example and not by way of limitation, the intent classifier may be based on a machine learning model that may take a domain classification / selection result as input and calculate a probability that the input is associated with a specific predefined intent. In step 224b, the NLU module may use a meta-intent classifier to process the domain classification / selection results. The meta-intent classifier may determine a category that describes the user intent. As an example and not as a limitation, the meta-intent classifier can be based on a machine learning model that can take a domain classification / selection result as an input and calculate the probability that the input is associated with a specific predefined meta-intent. In step 225a, the NLU module 220 can use a slot tagger to annotate one or more slots associated with the user request. In step 225b, the NLU module 220 can use a meta-slot tagger to annotate one or more slots for the classification result from the meta-intent classifier. As an example and not as a limitation, the user request may include "change 500 dollars in my account to Japanese yen". The intent classifier can take the user request as input and formulate it into a vector. The intent classifier can then calculate the probability that the user request is associated with different predefined intents based on a vector comparison between a vector representing the user request and a vector representing different predefined intents. In a similar manner, the slot tagger can take the user request as input and formulate each word into a vector. The intent classifier can then calculate the probability of each word being associated with different predefined slots based on a vector comparison between the vector representing the word and the vector representing the different predefined slots. The user's intent can be classified as "changing money". The slots requested by the user can include "500", "dollars", "account", and "Japanese yen". The user's meta-intent can be classified as "financial service". The meta-slot can include "finance".

[0141] In a particular embodiment, the NLU module 220 may improve the domain classification / selection of content objects by extracting semantic information from the semantic information aggregator 230. In a particular embodiment, the semantic information aggregator 230 may aggregate semantic information in the following manner. The semantic information aggregator 230 may first retrieve information from the user context engine 225. In a particular embodiment, the user context engine 225 may include an offline aggregator 226 and an online inference service 227. The offline aggregator 226 may process multiple data associated with the user collected from a previous time window. As an example and not by way of limitation, the data may include dynamic message posts / comments, interactions with dynamic message posts / comments, Instagram posts / comments, search history, etc. collected from a previous 90-day window. The processing results may be stored in the user context engine 225 as part of the user profile. The online inference service 227 may analyze the session data associated with the user received by the assistant system 140 at the current time. The analysis results may also be stored in the user context engine 225 as part of the user profile. In certain embodiments, the semantic information aggregator 230 may then process the information retrieved from the user context engine 225, i.e., the user profile, in the following steps. In step 231, the semantic information aggregator 230 may process the information retrieved from the user context engine 225 based on natural language processing (NLP). In step 232, the processing result may be annotated with entities by an entity tagger. In step 233, based on the annotations, the semantic information aggregator 230 may generate a dictionary for the retrieved information. In step 234, the semantic information aggregator 230 may rank the entities tagged by the entity tagger. In certain embodiments, the semantic information aggregator 230 may communicate with different graphs 330 including social graphs, knowledge graphs, and concept graphs to extract ontology data related to the information retrieved from the user context engine 225. In certain embodiments, the semantic information aggregator 230 may aggregate the user profile, the ranked entities, and the information from the graphs 330. The semantic information aggregator 230 may then send the aggregated information to the NLU module 220 to facilitate domain classification / selection.

[0142] In certain embodiments, the output of the NLU module 220 may be sent to a co-reference module 315 to interpret the references of the content object associated with the user request. The co-reference module 315 may include reference creation 316 and reference resolution 317. In certain embodiments, the reference creation 316 may create references for the entities determined by the NLU module 220. The reference resolution 317 may accurately resolve these references. As an example and not by way of limitation, the user request may include "find me the nearest Walmart and direct me there". The co-reference module 315 may interpret "there" as "thenearest Walmart". In certain embodiments, the co-reference module 315 may access the user context engine 225 and the dialog engine 235, if necessary, to interpret the references with improved accuracy.

[0143] In a particular embodiment, the identified domains, intents, meta-intents, slots and meta-slots, and resolved references may be sent to the entity resolution module 240 to resolve related entities. In a particular embodiment, the entity resolution module 240 may include a domain entity resolution 241 and a general entity resolution 242. The domain entity resolution 241 may resolve entities by categorizing slots and meta-slots into different domains. In a particular embodiment, entities may be resolved based on ontology data extracted from the graph 330. The ontology data may include structural relationships between different slots / meta-slots and domains. The ontology may also include information on how slots / meta-slots may be grouped, related, and subdivided according to similarities and differences within a hierarchy that includes domains at a higher level. General entity resolution 242 may resolve entities by categorizing slots and meta-slots into different general topics. In a particular embodiment, resolution may also be based on ontology data extracted from the graph 330. The ontology data may include structural relationships between different slots / meta-slots and general topics. The ontology may also include information on how slots / meta-slots may be grouped, related, and subdivided according to similarities and differences within a hierarchy that includes topics at a higher level. As an example and not by way of limitation, in response to input of a query about the advantages of Tesla cars, general entity resolution 242 may resolve Tesla cars to vehicles and domain entity resolution 241 may resolve Tesla cars to electric cars.

[0144] In a particular embodiment, the output of the entity resolution module 240 may be sent to a conversation engine 235 to forward the conversation flow with the user. The conversation engine 235 may include a conversation intent resolution 236 and a conversation state updater / sequencer 237. In a particular embodiment, the conversation intent resolution 236 may resolve the user intent associated with the current conversation session. In a particular embodiment, the conversation state updater / sequencer 237 may update / sequence the state of the current conversation session. As an example and not as a limitation, if the conversation session ends, the conversation state updater / sequencer 237 may update the conversation state to "completed". As another example and not as a limitation, the conversation state updater / sequencer 237 may sort the conversation state based on the priority associated with the conversation state.

[0145] In certain embodiments, the dialog engine 235 may communicate with the task completion module 335 regarding the dialog intent and the associated content objects. The task completion module 335 may include an action selection component 336. In certain embodiments, the dialog engine 235 may additionally check against a dialog strategy 320 regarding the dialog state. The dialog strategy 320 may include a general strategy 321 and a domain-specific strategy 322, both of which may guide how to select the next system action based on the dialog state. In certain embodiments, the task completion module 335 may communicate with the dialog strategy 320 to obtain guidance for the next system action. In certain embodiments, the action selection component 336 may therefore select an action based on the dialog intent, the associated content objects, and the guidance from the dialog strategy 320.

[0146] In a particular embodiment, the output of the task completion module 335 may be sent to the CU writer 270. In an alternative embodiment, the selected action may require one or more agents 340 to participate. Therefore, the task completion module 335 may notify the agent 340 of the selected action. At the same time, the conversation engine 235 may receive an instruction to update the conversation state. As an example and not as a limitation, the update may include waiting for the response of the agent. In a particular embodiment, the CU writer 270 may generate communication content for the user using NLG 271 based on the output of the task completion module 335. The CU writer 270 may also use the UI payload generator 272 to determine the modality of the generated communication content. Since the generated communication content can be considered as a response to a user request, the CU writer 270 may additionally use the response sorter 273 to sort the generated communication content. As an example and not as a limitation, the sorting may indicate the priority of the response.

[0147] In a particular embodiment, the output of the CU writer 270 may be sent to a response manager 325. The response manager 325 may perform different tasks, including storing / updating the dialog state 326 retrieved from the data storage 310 and generating a response 327. In a particular embodiment, the generated response and the communication content may be sent to the assistant xbot 215. In an alternative embodiment, if the modality of the determined communication content is audio, the output of the CU writer 270 may be additionally sent to the TTS module 275. The speech generated by the TTS module 275 and the response generated by the response manager 325 may then be sent to the assistant xbot 215.

[0148] Build customized user profiles based on session data

[0149] In certain embodiments, the assistant system 140 may use the user context engine 225 to build a customized user profile from the conversation data (e.g., messages) in combination with other rich semantic information aggregated from various sources. The assistant system 140 may personalize the output of other modules of the assistant system 140 based on the customized user profile. In certain embodiments, other modules of the assistant system 140 may use the customized user profile as a basis for natural language understanding in response to user input, and perform corresponding tasks based on more accurately interpreted user input. In certain embodiments, the assistant system 140 may build a customized user profile based on the joint processing of one or more of the following items: a social graph, a knowledge graph, a concept graph, content objects from an online social network, conversation data that captures contextual information associated with the user, other suitable information related to the user, or any combination thereof. A social graph may include personal information of the user, such as location, occupation, connections, etc., while a knowledge graph and a concept graph may capture general knowledge of the world. A knowledge graph may describe real-world entities and their interrelationships, define possible classifications and relationships of entities in a schema, and cover various subject domains. The concept map may include a diagram representation of logic based on an artificial intelligence semantic network, which can be used as an intermediate language for mapping natural language questions and assertions to a relational database. Content objects from online social networks can be used to identify the interests and preferences of users. Contextual information from conversation data can capture specific scenarios in which users are participating, which can provide additional information cues for understanding user input. In a specific embodiment, the user context engine 225 can obtain context information by analyzing conversation data in different dialogue sessions associated with the user. The customized user profile built by the user context engine 225 can be a tree-structured representation with different layers representing various topics, categories, and entities associated with context information. In a specific embodiment, the assistant system 140 can use a tree-structured representation of a user profile to efficiently understand user input in a more personalized and context-aware manner. Although the present disclosure describes building a specific user profile via a specific system in a specific manner, the present disclosure contemplates building any suitable user profile via any suitable system in any suitable manner.

[0150] In a particular embodiment, the assistant system 140 may access multiple content objects associated with the first user from an online social network. In a particular embodiment, the assistant system 140 may access a baseline profile. The baseline profile may be based on ontology data from one or more information graphs. In a particular embodiment, the assistant system 140 may access session data associated with the first user (e.g., interactions between a user and assistant xbot 215). The assistant system 140 may then determine one or more subjects associated with the first user based on multiple content objects associated with the first user and the session data associated with the first user. In a particular embodiment, the assistant system 140 may generate a customized user profile for the first user based on the baseline profile. The customized user profile may include one or more confidence scores associated with the corresponding one or more subjects, which are associated with the first user. The one or more confidence scores may be calculated based on multiple content objects associated with the first user and the session data associated with the first user.

[0151] Figure 4 An example architecture 400 for building a customized user profile is shown. In particular embodiments, the user context engine 225 may access multiple content objects 401 from the social networking system 160. The accessed content objects 401 may be created within a pre-specified time window. By way of example and not limitation, the pre-specified time window may be a week, a month, three months, or any other suitable time window that may be specified by the user context engine 225. The social networking system 160 may store the multiple content objects 401 in one or more data stores 164. In particular embodiments, the multiple content objects 401 may include one or more of dynamic message posts, dynamic message comments, search history data, other suitable content, or any combination thereof. In particular embodiments, the user context engine 225 may additionally extract ontology data 402 from one or more information graphs 330. Extracting ontology data 402 from multiple information graphs including knowledge graphs, social graphs, and concept graphs may be an effective solution to the technical challenge of incorporating general knowledge of the world into a user profile. In particular embodiments, the user context engine 225 may extract ontology data 402 from multiple information graphs including knowledge graphs, social graphs, and concept graphs. Figure 3The conversation engine 235 and / or data storage 310 of the assistant system 140 shown in the figure obtains the conversation data 403. The conversation data 403 may include one or more messages created in a pre-specified time window. As an example and not as a limitation, the pre-specified time window may be ten minutes, one hour, one day, one week, one month or any other suitable time window that may be specified by the user context engine 225. In a particular embodiment, the conversation data 403 from the conversation engine 235 may include messages between the first user and the assistant xbot 215. The use of these messages complies with the privacy settings of the first user. In a particular embodiment, the conversation data 403 from the data storage 310 of the assistant system 140 may include messages between the first user and one or more second users. The use of these messages complies with the privacy settings of the first user and the privacy settings of the second user. Using the conversation data 403 may produce the technical advantage of integrating the information of the head entity and the tail entity into the user profile. The head entity can be extracted from a public source such as Wikipedia, so it carries rich information. In contrast, the information of the tail entity may be scarce (e.g., the coffee shop on the corner). These tail entities are not discussed in public sources (e.g., Wikipedia), but there may be considerable discussion of them in the user's conversations, and analysis of conversation data 403 may allow assistant system 140 to obtain more information about these tail entities. Based on analysis of content objects 401, ontology data 402, and conversation data 403, user context engine 225 may build a user profile including personal information and context information of the first user. Although the present disclosure describes using a particular module in a particular manner to build a particular user profile, the present disclosure contemplates using any suitable module in any suitable manner to build any suitable user profile.

[0152] In a particular embodiment, the assistant system 140 may determine one or more subjects associated with the first user based on one or more machine learning models. In a particular embodiment, each of the one or more subjects may include a topic, a category, or an entity. As an example and not by way of limitation, the one or more machine learning models may be based on one or more of a support vector machine (SVM), a regression model, or a deep convolutional neural network (DCNN). The machine learning model may take the session data 403 as input and calculate the probability that the session data 403 is associated with a specific predefined topic, category, or entity. In a particular embodiment, the assistant system 140 may calculate one or more confidence scores for one or more subjects based on the frequency of the corresponding subjects in the plurality of content objects 401 and the session data 403. As an example and not by way of limitation, within a time window of one week, the user may have written ten posts and may have mentioned BMW cars in three of the ten posts. In addition, the user may have had ten conversations with other users and may have mentioned BMW cars in seven of the conversations. Accordingly, the confidence score may be calculated as Although this disclosure describes determining particular subjects and their confidence scores in particular manners, this disclosure contemplates determining any suitable subjects and their confidence scores in any suitable manner.

[0153] In a particular embodiment, the assistant system 140 can perform different analyses on the conversation data 403. The conversation data 403 can include multiple messages, so the assistant system 104 can process the conversation data 403 based on a sliding window analysis of multiple messages. The technical challenges of processing the conversation data 403 can include processing efficiently. The solution proposed by the embodiments disclosed herein is a sliding window analysis similar to integration. Each sliding window covers N (pre-specified number) rounds at a time for analyzing the conversation (e.g., message) thread. When the N-1 round is completed, a representation of the conversation data 403 processed by the N-1 round is generated. When the sliding window of the Nth round is carried out, the embodiments disclosed herein can simply be built on the representation of the N-1 round for further analysis of the conversation data 403, thus saving a lot of processing time. In a particular embodiment, the assistant system 140 can determine one or more emotional indications associated with the conversation data 403. In a particular embodiment, the assistant system 140 can perform different analyses on the conversation data 403 according to an LSTM-based model, which includes a unidirectional LSTM layer, a dense layer, and a softmax layer. The input of the LSTM-based model may include the session data 403, and the output may be the probability that the session data 403 is associated with different emotional indications. The emotional indication may include the attitude or emotional response of the user characterized in the session data 403. As an example and not as a limitation, the emotional indication may include emotional states such as "angry", "sad" and "happy". In a particular embodiment, the assistant system 140 may determine one or more domains associated with the session data 403. As an example and not as a limitation, the domain may include education, entertainment or politics. In a particular embodiment, the assistant system 140 may determine one or more domains based on one or more machine learning models. As an example and not as a limitation, the one or more machine learning models may be based on one or more of a support vector machine (SVM), a regression model or a deep convolutional neural network (DCNN). The machine learning model may take the session data 403 as input and calculate the probability that the session data 403 is associated with a specific predefined domain. In a particular embodiment, the assistant system 140 may determine entity link information based on the session data 403. As an example and not by way of limitation, entity link information may include information indicating that a particular text is explicitly or implicitly linked to a particular ID of an entity. For example, a user may explicitly tag an entity in a post / comment, which results in explicit entity link information. As another example, a user may mention the name of an entity in a post / comment without tagging the entity, which results in implicit entity link information. In this case, assistant system 140 may still infer that the entity should be linked to the post / comment, accompanied by a confidence score for the entity link information.More information about entity linking can be found in U.S. Patent Application No. 15 / 355,500, filed on November 18, 2016, and U.S. Patent Application No. 15 / 827,622, filed on November 30, 2017, which are incorporated by reference. Although this disclosure describes performing particular analyses on particular data in particular ways, this disclosure contemplates performing any suitable analyses on any suitable data in any suitable way.

[0154] In certain embodiments, assistant system 140 may determine context information associated with the first user based on session data 403. By way of example and not limitation, context information may include one or more of location information, timestamp, social connection, other suitable information, or any combination thereof. In certain embodiments, assistant system 140 may determine context information associated with the first user by processing metadata associated with session data 403 based on a machine learning model. Metadata may describe session data 403 and include information about session data. By way of example and not limitation, a user may have a conversation with another user such as "I'm thinking of going to a movie together tomorrow night for our second date. What time would be good for you?". Metadata associated with the conversation may include "date night", "romance", "entertainment", and "plans". In certain embodiments, assistant system 140 may alternatively determine context information associated with the first user by processing session data 403 based on a machine learning model. In certain embodiments, assistant system 140 may also determine context information associated with the first user by processing metadata associated with session data 403 and session data 403 based on a machine learning model. In a particular embodiment, the machine learning model can be based on an LSTM-based model, which includes a unidirectional LSTM layer, a dense layer, and a softmax layer. The input of the LSTM-based model can include session data 403, and the output can be the probability that the session data 403 is associated with different types of context information. The technical advantages of the embodiments disclosed herein may include supporting a more personalized and context-aware understanding of the user. For example, a user can request the assistant system 140 to recommend a Chinese restaurant. The user profile constructed using context information can help the assistant system 140 determine at what time the user wants to eat at which location (e.g., near home or near work) and who is eating at a Chinese restaurant. Although the present disclosure describes determining specific context information based on specific data in a particular manner, the present disclosure contemplates determining any suitable context information based on any suitable data in any suitable manner.

[0155] Figure 5An example tree-structured user profile 500 is shown. In certain embodiments, a customized user profile can be based on a tree structure. The tree structure can include one or more layers. In certain embodiments, the one or more layers can be organized into a hierarchical structure. The hierarchical structure can include: (1) a topic layer including one or more topics; (2) a category layer including one or more categories associated with each topic of the topic layer; and (3) an entity layer including one or more entities associated with each category of the category layer. By way of example and not limitation, Figure 5 The user profile displayed in may include a subject layer 510, a category layer 520, and an entity layer 530. For example, Figure 5 , two topics of the topic layer 510 are shown, which are "Movies" 511 and "Travel" 512. Each topic is associated with a confidence score (i.e., 0.88 and 0.52), respectively, which may indicate that "Movies" 511 is more significantly associated with the user than "Travel" 512. Under the topic "Movies" 511, there are two categories in the category layer 520, including "Action" 521 and "Science Fiction" 522, each of which is associated with a confidence score. Under the category "Action" 521, there are two entities in the entity layer 530, including "Die Hard" 531 and "Kill Bill" 532, which are the names of two movies. "Die Hard" 531 and "Kill Bill" 532 are associated with confidence scores, respectively. A similar structure can be observed for "Science Fiction" 522, which is associated with the names of two other science fiction movies, "Star Wars" 533 and "Avatar" 534. As for another topic "travel" 512, a similar structure indicates that it is associated with "city" 523 and "landscape" 524; "city" 523 is associated with "Milan" 535 and "Paris" 536; and "landscape" 524 is associated with "Yellowstone" 537, which is a national park in the United States. In certain embodiments, each entity can be additionally associated with contextual information. Figure 5As shown, each entity is associated with context information 540. For example, the context information 540 of the entity "Star Wars" 533 includes "AMC Metreon, 02 / 17 / 18, with friend Dan". "AMC Metreon" is a movie theater in San Francisco, which represents location information. "02 / 17 / 18" represents a timestamp, and "with friend Dan" represents a social connection. Since the user profile is a tree structure, it can be used in different ways. The topic layer 510 and the category layer 520 can be used in a heuristic approach to identify the user's general interests and preferences. The entity layer 530 can be processed by the user context engine 225 based on a sparse convolutional neural network, which can produce a personalized user profile representation. The tree-structured user profile can produce a technical advantage of easily deleting insignificant entities from the constructed user profile. For example, if an entity cannot be placed under any category of the tree-structured user profile, then this entity should be deleted from the user profile. Deletion can also be based on the confidence score of the entity. For example, if an entity's confidence score is below a threshold score, it may not be important to the user, and thus the entity may be pruned from the user profile. Although this disclosure describes particular user profiles having particular structures in particular ways, this disclosure contemplates any suitable user profiles having any suitable structures in any suitable ways.

[0156] In certain embodiments, the customized user profile can be used by different modules of the assistant system 140. As an example and not by way of limitation, the active agent 285 can use a heuristic method to identify user interests based on the customized user profile. The active agent 285 can also take the customized user profile as input and train a personalized machine learning model. The personalized machine learning model, combined with other data, can be used to optimize the previously built customized user profile, thereby producing a better customized user profile. As another example and not by way of limitation, the active agent 285 can provide better services to the user. For example, the customized user profile can indicate that in a work environment, the user always listens to classical music. Therefore, when the user is at work, the active agent 285 can suggest classical music to the user. As another example and not by way of limitation, the NLU module 220 can adjust the confidence score associated with its output based on the customized user profile. For example, the user can ask the assistant system 140 "How can I get to Lucca?" Based on the baseline profile, the NLU module 220 may determine a <city> slot for "Lucca" with a confidence score of 0.9 because "Lucca" is a city in Italy. However, the customized user profile may indicate that the user is significantly associated with a restaurant named Lucca in San Francisco (e.g., the user has liked the restaurant's webpage several times). Therefore, the NLU module 220 may adjust the confidence score of the <city> slot for "Lucca" to 0.2 and determine a <restaurant> slot for "Lucca" with a confidence score of 0.78. As another example and not by way of limitation, the CU editor 270 may generate personalized communication content based on the customized user profile. For example, the user's brother Aaron posted a video on his news feed. Based on the baseline profile, the CU writer 270 may generate communication content for the user, such as "Aaron posted a video". However, the user's customized user profile may indicate that the user always chats with his brother Aaron using a nickname (e.g., "Boy"). Thus, the CU writer 270 can modify the generation of the communication content to be more personalized, such as "Boy posted a video." Although this disclosure describes specific use cases of specific modules for user profiles in specific ways, this disclosure contemplates any suitable use cases of any suitable modules for user profiles in any suitable ways.

[0157] Figure 6An example method 600 for building a customized user profile is shown. The method may begin at step 610, where the assistant system 140 may access a plurality of content objects 401 associated with a first user from an online social network. At step 620, the assistant system 140 may access a baseline profile, where the baseline profile is based on ontology data 402 from one or more information graphs 330. At step 630, the assistant system 140 may access session data 403 associated with the first user. At step 640, the assistant system 140 may determine one or more subjects associated with the first user based on the plurality of content objects 401 associated with the first user and the session data 403 associated with the first user. At step 650, assistant system 140 may generate a customized user profile for the first user based on the baseline profile, wherein the user profile includes one or more confidence scores associated with the corresponding one or more subjects associated with the first user, wherein the one or more confidence scores are calculated based on a plurality of content objects 401 associated with the first user and session data 403 associated with the first user. Particular embodiments may be repeated as appropriate. Figure 6 Although the present disclosure will Figure 6 The specific steps of the method are described and shown as occurring in a particular order, but the present disclosure contemplates Figure 6 Any suitable steps of the method may occur in any suitable order. In addition, although the present disclosure describes and illustrates the method including Figure 6 The present disclosure contemplates any suitable method for building a user profile including any suitable steps, and where appropriate, the method may include: Figure 6 All, some, or none of the steps of the method Figure 6 Furthermore, although the present disclosure describes and illustrates the steps of performing Figure 6 specific components, devices or systems for specific steps of the method, but the present disclosure contemplates performing Figure 6 Any suitable combination of any suitable components, devices, or systems of any suitable steps of the method.

[0158] Social Graph

[0159] Figure 7An example social graph 700 is shown. In certain embodiments, social networking system 160 may store one or more social graphs 700 in one or more data stores. In certain embodiments, social graph 700 may include a plurality of nodes, which may include a plurality of user nodes 702 or a plurality of concept nodes 704, and a plurality of edges 706 connecting the nodes. Each node may be associated with a unique entity (i.e., a user or a concept), and each entity may have a unique identifier (ID), such as a unique number or username. For teaching purposes, the two-dimensional visual map representation is shown. Figure 7 Example social graph 700 is shown. In certain embodiments, social networking system 160, client system 130, assistant system 140, or third-party system 170 may access social graph 700 and related social graph information for use in appropriate applications. The nodes and edges of social graph 700 may be stored as data objects, for example, in a data store (e.g., a social graph database). Such a data store may include one or more searchable or queryable indexes of the nodes or edges of social graph 700.

[0160] In certain embodiments, user nodes 702 may correspond to users of social networking system 160 or assistant system 140. As an example and not by way of limitation, a user may be an individual (human user), an entity (e.g., a business, company, or third-party application), or a group (e.g., of individuals or entities) that interacts or communicates with or through social networking system 160 or assistant system 140. In certain embodiments, when a user registers an account with social networking system 160, social networking system 160 may create a user node 702 corresponding to the user and store the user node 702 in one or more data stores. Users and user nodes 702 described herein may refer to registered users and user nodes 702 associated with registered users, where appropriate. Additionally or alternatively, users and user nodes 702 described herein may refer to users who are not registered with social networking system 160, where appropriate. In certain embodiments, user nodes 702 may be associated with information provided by a user or information collected by various systems, including social networking system 160. As an example and not by way of limitation, a user may provide his or her name, profile picture, contact information, date of birth, gender, marital status, family status, occupation, educational background, preferences, interests, or other demographic information. In certain embodiments, user node 702 may be associated with one or more data objects corresponding to information associated with the user. In certain embodiments, user node 702 may correspond to one or more web interfaces.

[0161] In certain embodiments, concept nodes 704 may correspond to concepts. By way of example and not limitation, a concept may correspond to a place (such as, for example, a movie theater, a restaurant, a landmark, or a city); a website (such as, for example, a website associated with social networking system 160 or a third-party website associated with a web application server); an entity (such as, for example, a person, a business, a group, a sports team, or a celebrity); a resource (such as, for example, an audio file, a video file, a digital photo, a text file, a structured document, or an application), which may be located within social networking system 160 or on an external server (e.g., a web application server); real estate or intellectual property (such as, for example, a sculpture, a painting, a movie, a game, a song, an idea, a photo, or a written work); a game; an activity; an idea or theory; another suitable concept; or two or more such concepts. Concept nodes 704 may be associated with information about the concept provided by a user or information collected by various systems, including social networking system 160 and assistant system 140. By way of example and not limitation, information for a concept may include a name or title; one or more images (e.g., an image of a book cover); a location (e.g., an address or geographic location); a website (which may be associated with a URL); contact information (e.g., a phone number or email address); other suitable concept information; or any suitable combination of such information. In particular embodiments, a concept node 704 may be associated with one or more data objects that correspond to the information associated with the concept node 704. In particular embodiments, a concept node 704 may correspond to one or more web interfaces.

[0162] In certain embodiments, a node in social graph 700 may represent a web interface (which may be referred to as a "profile interface") or be represented by a web interface. The profile interface may be hosted by social networking system 160 or assistant system 140 or accessible to social networking system 160 or assistant system 140. The profile interface may also be hosted on a third-party website associated with third-party system 170. As an example and not as a limitation, a profile interface corresponding to a particular external web interface may be a particular external web interface, and the profile interface may correspond to a particular concept node 704. The profile interface may be viewable by all other users or a selected subset of other users. As an example and not as a limitation, user node 702 may have a corresponding user profile interface, where the corresponding user may add content, make statements, or otherwise express him or herself. As another example and not as a limitation, concept node 704 may have a corresponding concept profile interface, where one or more users may add content, make statements, or express themselves, particularly with respect to the concept corresponding to concept node 704.

[0163] In certain embodiments, concept node 704 may represent a third-party web interface or resource hosted by third-party system 170. The third-party web interface or resource may include content representing an action or activity, selectable icons or other icons or other interactive objects (which may be implemented, for example, with JavaScript, AJAX, or PHP code), and other elements. As an example and not by way of limitation, the third-party web interface may include selectable icons such as “Like,” “Check-in,” “Eat,” “Recommend,” or other suitable actions or activities. A user viewing the third-party web interface may perform an action by selecting one of the icons (e.g., “Check-in”), causing client system 130 to send a message to social-networking system 160 indicating the user's action. In response to the message, social-networking system 160 may create an edge (e.g., a check-in-type edge) between user node 702 corresponding to the user and concept node 704 corresponding to the third-party web interface or resource, and store edge 706 in one or more data stores.

[0164] In particular embodiments, a pair of nodes in the social graph 700 may be connected to each other via one or more edges 706. An edge 706 connecting a pair of nodes may represent a relationship between the pair of nodes. In particular embodiments, an edge 706 may include or represent one or more data objects or attributes corresponding to the relationship between a pair of nodes. As an example and not by way of limitation, a first user may indicate that a second user is a "friend" of the first user. In response to the indication, the social networking system 160 may send a "friend request" to the second user. If the second user confirms the "friend request", the social networking system 160 may create an edge 706 in the social graph 700 connecting the first user's user node 702 to the second user's user node 702, and store the edge 706 as social graph information in one or more data stores 164. Figure 7In the example of , the social graph 700 includes an edge 706 indicating a friend relationship between the user nodes 702 of user "A" and user "B", and an edge indicating a friend relationship between the user nodes 702 of user "C" and user "B". Although the present disclosure describes or illustrates a particular edge 706 with a particular attribute connecting a particular user node 702, the present disclosure contemplates any suitable edge 706 with any suitable attribute connecting the user nodes 702. As an example and not by way of limitation, the edge 706 may represent a friendship, a family relationship, a business or employment relationship, a fan relationship (including, for example, likes, etc.), a follower relationship, a visitor relationship (including, for example, visits, views, check-ins, shares, etc.), a subscriber relationship, a superior / subordinate relationship, a reciprocal relationship, a non-reciprocal relationship, another suitable type of relationship, or two or more such relationships. In addition, although the present disclosure generally describes nodes as being connected, the present disclosure also describes users or concepts as being connected. Herein, references to connected users or concepts may refer to nodes corresponding to those users or concepts connected by one or more edges 706 in social graph 700 , where appropriate.

[0165] In certain embodiments, an edge 706 between a user node 702 and a concept node 704 may represent a particular action or activity performed by a user associated with the user node 702 toward a concept associated with the concept node 704. By way of example and not limitation, Figure 7 As shown, a user can "Like," "Attend," "Play," "Listen to," "Cook," "Work at," or "Watch" a concept, each of which can correspond to an edge type or subtype. The concept profile interface corresponding to concept node 704 may include, for example, a selectable "check-in" icon (such as, for example, a clickable "check-in" icon) or a selectable "add to favorites" icon. Similarly, after the user clicks on these icons, social networking system 160 may create a "Favorites" edge or a "Check-in" edge in response to a user action corresponding to the corresponding action. As another example and not by way of limitation, a user (user "C") may use a particular application (Spotify, which is an online music application) to listen to a particular song ("Imagine"). In this case, social networking system 160 may create a "Listen" edge 706 and a "Use" edge (such as, for example, a clickable "Check-in" icon) between user node 702 corresponding to the user and concept nodes 704 corresponding to the song and application. Figure 7 ), to indicate that the user listened to the song and used the application. In addition, social networking system 160 can create a "play" edge 706 (as shown in FIG. 7 ) between concept nodes 704 corresponding to the song and the application. Figure 7as shown), to indicate that a particular song is being played by a particular application. In this case, the "played" edge 706 corresponds to an action performed by an external application (Spotify) on an external audio file (the song "Imagine"). Although this disclosure describes a particular edge 706 having particular properties that connects a user node 702 and a concept node 704, this disclosure contemplates any suitable edge 706 having any suitable properties that connects a user node 702 and a concept node 704. Additionally, although this disclosure describes an edge between a user node 702 and a concept node 704 that represents a single relationship, this disclosure contemplates an edge between a user node 702 and a concept node 704 that represents one or more relationships. By way of example and not limitation, edge 706 can represent that the user likes and uses a particular concept. Alternatively, another edge 706 can represent each type of relationship (or multiple single relationships) between a user node 702 and a concept node 704 (as Figure 7 shown between the user node 702 of user "E" and the concept node 704 of "Spotify").

[0166] In a particular embodiment, the social networking system 160 can create an edge 706 between a user node 702 and a concept node 704 in the social graph 700. By way of example and not limitation, a user who views a concept profile interface (such as, for example, by using a web browser or a dedicated application hosted by the user's client system 130) can indicate that he or she likes the concept represented by the concept node 704 by clicking or selecting a "like" icon, which can cause the user's client system 130 to send a message to the social networking system 160 indicating that the user likes the concept associated with the concept profile interface. In response to the message, the social networking system 160 can create an edge 706 between the user node 702 associated with the user and the concept node 704, as shown by the "like" edge 706 between the user node and the concept node 704. In a particular embodiment, the social networking system 160 can store the edge 706 in one or more data stores. In a particular embodiment, the edge 706 can be automatically formed by the social networking system 160 in response to a particular user action. By way of example and not limitation, if a first user uploads a picture, watches a movie, or listens to a song, an edge 706 can be formed between the user node 702 corresponding to the first user and the concept nodes 704 corresponding to those concepts. Although this disclosure describes forming a particular edge 706 in a particular manner, this disclosure contemplates forming any suitable edge 706 in any suitable manner.

[0167] Vector Spaces and Embeddings

[0168] Figure 8An example view of vector space 800 is shown. In certain embodiments, objects or n-grams may be represented in a d-dimensional vector space, where d represents any suitable number of dimensions. Although vector space 800 is shown as a three-dimensional space, this is for illustrative purposes only, as vector space 800 may have any suitable dimensions. In certain embodiments, n-grams may be represented in vector space 800 as vectors, which are referred to as term embeddings. Each vector may include coordinates corresponding to a particular point in vector space 800 (i.e., the end point of the vector). By way of example and not limitation, Figure 8 As shown, vectors 810, 820, and 830 can be represented as points in vector space 800. n-grams can be mapped to corresponding vector representations. By way of example and not limitation, by applying a function defined by a dictionary n-gramt1 and n-gramt2 can be mapped to vectors in vector space 800 respectively. and Make and As another example and not by way of limitation, a dictionary trained to map text to a vector representation may be utilized, or such a dictionary itself may be generated by training. As another example and not by way of limitation, a model (e.g., Word2vec) may be used to map n-grams to vector representations in vector space 800. In certain embodiments, n-grams may be mapped to vector representations in vector space 800 using a machine learning model (e.g., a neural network). The machine learning model may have been trained using a sequence of training data (e.g., a corpus of multiple objects each including n-grams).

[0169] In certain embodiments, an object may be represented in vector space 800 as a vector, which is referred to as a feature vector or object embedding. By way of example and not limitation, by applying the function Objects e1 and e2 can be mapped to vectors in vector space 800 respectively. and Make and In certain embodiments, objects may be mapped to vectors based on one or more properties, attributes, or characteristics of the object, the object's relationship to other objects, or any other suitable information associated with the object. By way of example and not limitation, the function Objects can be mapped to vectors by feature extraction, which can start from an initial measurement data set and construct derived values ​​(e.g., features). As an example and not by way of limitation, objects including videos or images can be mapped to vectors by using algorithms to detect or isolate various desired parts or shapes of objects. The features used to calculate the vectors can be based on information obtained from edge detection, corner detection, blob detection, ridge detection, scale-invariant feature transforms, edge direction, varying intensity, autocorrelation, motion detection, optical flow, thresholding, blob extraction, template matching, Hough transforms (e.g., lines, circles, ellipses, arbitrary shapes), or any other suitable information. As another example and not by way of limitation, objects including audio data can be mapped to vectors based on features (e.g., spectral slope, pitch coefficient, audio spectrum centroid, audio spectrum envelope, Mel-frequency cepstrum, or any other suitable information). In a particular embodiment, when an object has data that is too large to be effectively processed or includes redundant data, the function The transformed reduced feature set (e.g., feature selection) can be used to map objects to vectors. In certain embodiments, the function An object e can be mapped to a vector based on one or more n-grams associated with the object e. Although this disclosure describes representing n-grams or objects in a vector space in a particular manner, this disclosure contemplates representing n-grams or objects in a vector space in any suitable manner.

[0170] In certain embodiments, social networking system 160 may calculate a similarity metric for the vectors in vector space 800. The similarity metric may be cosine similarity, Minkowski distance, Mahalanobis distance, Jaccard similarity coefficient, or any suitable similarity metric. By way of example and not limitation, and The similarity measure can be cosine similarity As another example and not by way of limitation, and The similarity measure can be the Euclidean distance The similarity measure of two vectors may represent how similar two objects or n-grams corresponding to the two vectors, respectively, are to each other, as measured by the distance between the two vectors in vector space 800. As an example and not by way of limitation, vector 810 and vector 820 may correspond to objects that are more similar to each other than objects corresponding to vector 810 and vector 830, based on the distance between the respective vectors. Although this disclosure describes calculating a similarity measure between vectors in a particular manner, this disclosure contemplates calculating a similarity measure between vectors in any suitable manner.

[0171] More information about vector spaces, embeddings, feature vectors, and similarity measures can be found in U.S. patent application Ser. No. 14 / 949,436, filed on Nov. 23, 2015, U.S. patent application Ser. No. 15 / 286,315, filed on Oct. 5, 2016, and U.S. patent application Ser. No. 15 / 365,789, filed on Nov. 30, 2016, each of which is incorporated by reference.

[0172] Artificial Neural Networks

[0173] Fig. 9 An example artificial neural network ("ANN") 900 is shown. In particular embodiments, an ANN may refer to a computational model that includes one or more nodes. The example ANN 900 may include an input layer 910, hidden layers 920, 930, 940, and an output layer 950. Each layer of the ANN 900 may include one or more nodes, such as node 905 or node 915. In particular embodiments, each node of the ANN may be connected to another node of the ANN. As an example and not by way of limitation, each node of the input layer 910 may be connected to one or more nodes of the hidden layer 920. In particular embodiments, one or more nodes may be bias nodes (e.g., nodes in a layer that are not connected to any node in the previous layer and do not receive input from it). In particular embodiments, each node in each layer may be connected to one or more nodes of the previous or next layer. Although Fig. 9 A particular ANN having a particular number of layers, a particular number of nodes, and particular connections between nodes is depicted, but the present disclosure contemplates any suitable ANN having any suitable number of layers, any suitable number of nodes, and any suitable connections between nodes. By way of example and not limitation, although Fig. 9 The connection between each node of the input layer 910 and each node of the hidden layer 920 is depicted, but one or more nodes of the input layer 910 may not be connected to one or more nodes of the hidden layer 920.

[0174] In certain embodiments, the ANN may be a feedforward ANN (e.g., an ANN without cycles or loops, where communication between nodes flows in one direction starting from the input layer and proceeding to successive layers). As an example and not by way of limitation, the input to each node of the hidden layer 920 may include the output of one or more nodes of the input layer 910. As another example and not by way of limitation, the input to each node of the output layer 950 may include the output of one or more nodes of the hidden layer 940. In certain embodiments, the ANN may be a deep neural network (e.g., a neural network including at least two hidden layers). In certain embodiments, the ANN may be a deep residual network. The deep residual network may be a feedforward ANN including hidden layers organized into residual blocks. The input to each residual block after the first residual block may be a function of the output of the previous residual block and the input of the previous residual block. As an example and not by way of limitation, the input to residual block N may be F(x)+x, where F(x) may be the output of residual block N-1, and x may be the input to residual block N-1. Although the present disclosure describes a particular ANN, the present disclosure contemplates any suitable ANN.

[0175] In certain embodiments, an activation function may correspond to each node of the ANN. The activation function of a node may define the output of the node for a given input. In certain embodiments, the input of a node may include a set of inputs. As an example and not by way of limitation, the activation function may be an identity function, a binary step function, a logistic function, or any other suitable function. As another example and not by way of limitation, the activation function of node k may be a sigmoid function Hyperbolic tangent function Rectifier F k (s k )=max(0,s k ) or any other suitable function F k (s k ), where s k can be an effective input to node k. In certain embodiments, the inputs to the activation functions corresponding to the nodes can be weighted. Each node can generate an output using a corresponding activation function based on the weighted inputs. In certain embodiments, each connection between nodes can be associated with a weight. As an example and not by way of limitation, a connection 925 between node 905 and node 915 can have a weighting factor of 0.4, which can indicate that the output of node 905 multiplied by 0.4 is used as an input to node 915. As another example and not by way of limitation, the output y of node k is k It can be k =F k (s k ), where F kcan be the activation function corresponding to node k, S k =∑ j (w jk x j ) can be a valid input to node k, x j can be the output of node j connected to node k, and w jk It can be a weighted coefficient between node j and node k. In a specific embodiment, the input of the node of the input layer can be based on a vector representing an object. Although the present disclosure describes specific inputs and outputs of nodes, the present disclosure contemplates any suitable inputs and outputs of nodes. In addition, although the present disclosure can describe specific connections and weights between nodes, the present disclosure contemplates any suitable connections and weights between nodes.

[0176] In a particular embodiment, the ANN may be trained using training data. As an example and not as a limitation, the training data may include the input and expected output of the ANN 900. As another example and not as a limitation, the training data may include vectors, each vector representing a training object and an expected label for each training object. In a particular embodiment, the training ANN may include modifying the weights associated with the connections between the nodes of the ANN by optimizing the objective function. As an example and not as a limitation, a training method (e.g., a conjugate gradient method, a gradient descent method, a stochastic gradient descent) may be used to back propagate the sum of squared errors (e.g., using a cost function that minimizes the sum of squared errors) as distance measurements between each vector representing the training object. In a particular embodiment, the ANN may be trained using a discarding technique. As an example and not as a limitation, one or more nodes may be temporarily ignored during training (e.g., not receiving input and not generating output). For each training object, one or more nodes of the ANN may have a certain probability of being ignored. The nodes ignored for a particular training object may be different from the nodes ignored for other training objects (e.g., nodes may be temporarily ignored on an object-by-object basis). Although this disclosure describes training the ANN in a particular manner, this disclosure contemplates training the ANN in any suitable manner.

[0177] privacy

[0178] In a particular embodiment, one or more objects (e.g., content or other types of objects) of a computing system may be associated with one or more privacy settings. One or more objects may be stored on or otherwise associated with any suitable computing system or application, such as, for example, a social networking system 160, a client system 130, an assistant system 140, a third-party system 170, a social networking application, an assistant application, a messaging application, a photo sharing application, or any other suitable computing system or application. Although the examples discussed herein are in the context of an online social network, these privacy settings may be applied to any other suitable computing system. The privacy settings (or "access settings") of an object may be stored in any suitable manner, such as, for example, associated with an object, indexed on an authorization server, in another suitable manner, or any suitable combination thereof. Privacy settings about an object may specify how the object (or specific information associated with the object) may be accessed, stored, or otherwise used (e.g., viewed, shared, modified, copied, executed, displayed, or identified) in an online social network. An object may be described as being "visible" to a particular user or other entity when the privacy settings of the object allow that user or other entity to access the object. As an example and not by way of limitation, a user of an online social network may specify privacy settings on a user profile page that identify a set of users that may access work experience information on the user profile page, thereby excluding other users from accessing that information.

[0179] In certain embodiments, the privacy settings of an object may specify a "blocked list" of users or other entities that should not be allowed to access certain information associated with the object. In certain embodiments, the blacklist may include third-party entities. The blacklist may specify one or more users or entities to which the object is invisible. As an example and not by way of limitation, a user may specify a set of users that may not access an album associated with the user, thereby excluding those users from accessing the album (while also potentially allowing certain users not in the specified set of users to access the album). In certain embodiments, privacy settings may be associated with certain social graph elements. The privacy settings of a social graph element (e.g., a node or edge) may specify how the social graph element, information associated with the social graph element, or an object associated with the social graph element may be accessed using an online social network. As an example and not by way of limitation, a specific concept node 704 corresponding to a specific photo may have a privacy setting that specifies that the photo can only be accessed by the user tagged in the photo and the friends of the user tagged in the photo. In certain embodiments, privacy settings may allow users to opt-in or opt-out of having their content, information, or actions stored / recorded by the social networking system 160 or assistant system 140 or shared with other systems (e.g., third-party systems 170). Although this disclosure describes using particular privacy settings in particular manners, this disclosure contemplates using any suitable privacy settings in any suitable manner.

[0180] In certain embodiments, privacy settings may be based on one or more nodes or edges of the social graph 700. Privacy settings may be specified for one or more edges 706 or edge types of the social graph 700, or for one or more nodes 702, 704 or node types of the social graph 700. A privacy setting applied to a particular edge 706 connecting two nodes may control whether the relationship between two entities corresponding to the two nodes is visible to other users of the online social network. Similarly, a privacy setting applied to a particular node may control whether a user or concept corresponding to the node is visible to other users of the online social network. As an example and not by way of limitation, a first user may share an object to the social networking system 160. The object may be associated with a concept node 704 connected to the user node 702 of the first user by an edge 706. The first user may specify a privacy setting that applies to a particular edge 706 of the concept node 704 connected to the object, or may specify a privacy setting that applies to all edges 706 connected to the concept node 704. As another example and not by way of limitation, the first user may share a collection of objects (e.g., a collection of images) of a particular object type. The first user may specify the privacy settings for all objects of that particular object type associated with the first user to have a particular privacy setting (e.g., specifying that all images posted by the first user are visible only to the first user's friends and / or users tagged in the images).

[0181] In certain embodiments, social-networking system 160 may present a "privacy wizard" to the first user (e.g., within a web page, module, one or more dialog boxes, or any other suitable interface) to assist the first user in specifying one or more privacy settings. The privacy wizard may display instructions, appropriate privacy-related information, current privacy settings, one or more input fields for accepting one or more inputs from the first user (which specifies a change or confirmation of a privacy setting), or any suitable combination thereof. In certain embodiments, social-networking system 160 may provide the first user with a "dashboard" function that may display the first user's current privacy settings to the first user. The dashboard function may be displayed to the first user at any appropriate time (e.g., after input from the first user invoking the dashboard function, after a particular event or triggering action occurs). The dashboard function may allow the first user to modify one or more current privacy settings of the first user at any time in any suitable manner (e.g., redirecting the first user to the privacy wizard).

[0182] The privacy settings associated with an object may specify any suitable granularity at which access is allowed or denied. As an example and not by way of limitation, access or denial of access may be specified for specific users (e.g., only me, my roommate, my boss), users within a particular degree of separation (e.g., friends, friends of friends), user groups (e.g., a gaming club, my family), user networks (e.g., employees of a particular employer, students or alumni of a particular university), all users ("public"), no users ("private"), users of third-party systems 170, specific applications (e.g., third-party applications, external websites), other suitable entities, or any suitable combination thereof. Although the present disclosure describes a specific granularity at which access is allowed or denied, the present disclosure contemplates any suitable granularity at which access is allowed or denied.

[0183] In certain embodiments, one or more servers 162 may be authorization / privacy servers for implementing privacy settings. In response to a request from a user (or other entity) for a particular object stored in a data store 164, the social networking system 160 may send a request for the object to the data store 164. The request may identify a user associated with the request, and the object may be sent to the user (or the user's client system 130) only if the authorization server determines that the user is authorized to access the object based on the privacy settings associated with the object. If the requesting user is not authorized to access the object, the authorization server may prevent the requested object from being retrieved from the data store 164, or may prevent the requested object from being sent to the user. In a search-query context, an object may be provided as a search result only if the querying user is authorized to access the object, for example, if the privacy settings of the object allow it to be revealed to the querying user, discovered by the querying user, or otherwise visible to the querying user. In certain embodiments, an object may represent content visible to a user through the user's dynamic message. As an example and not by way of limitation, one or more objects may be visible to a user's "hot topics" page. In certain embodiments, an object may correspond to a specific user. An object may be content associated with a particular user, or may be an account of a particular user or information stored on the social networking system 160 or other computing system. As an example and not by way of limitation, a first user may view one or more second users of an online social network through a “People You May Know” feature of the online social network or by viewing the first user’s friend list. As an example and not by way of limitation, a first user may specify that they do not wish to see objects associated with a particular second user in their dynamic message or friend list. If the privacy settings of an object do not allow it to be revealed to the user, discovered by the user, or visible to the user, the object may be excluded from the search results. Although the present disclosure describes implementing privacy settings in a particular manner, the present disclosure contemplates implementing privacy settings in any suitable manner.

[0184] In certain embodiments, different objects of the same type associated with a user may have different privacy settings. Different types of objects associated with a user may have different types of privacy settings. As an example and not as a limitation, a first user may specify that the first user's status update is public, but any images shared by the first user are only visible to the first user's friends on an online social network. As another example and not as a limitation, a user may specify different privacy settings for different types of entities (such as individual users, friends of friends, followers, user groups, or corporate entities). As another example and not as a limitation, a first user may specify a group of users who can view a video posted by the first user while preventing the video from being visible to the first user's employer. In certain embodiments, different privacy settings may be provided for different user groups or user demographics. As an example and not as a limitation, a first user may specify that other users who attend the same university as the first user can view the first user's photos, but other users who are family members of the first user cannot view those same photos.

[0185] In certain embodiments, social networking system 160 may provide one or more default privacy settings for each object of a certain object type. The privacy settings of an object that are set as default may be changed by a user associated with the object. As an example and not by way of limitation, all images posted by a first user may have a default privacy setting of only visible to the first user's friends, and for a certain image, the first user may change the privacy setting of the image to be visible to friends and friends of friends.

[0186] In certain embodiments, privacy settings may allow a first user to specify (e.g., by opting out, by not opting in) whether social-networking system 160 or assistant system 140 may receive, collect, record, or store certain objects or information associated with the user for any purpose. In certain embodiments, privacy settings may allow a first user to specify whether certain applications or processes may access, store, or use certain objects or information associated with the user. Privacy settings may allow a first user to opt in or opt out of having an object or information accessed, stored, or used by a certain application or process. Social-networking system 160 or assistant system 140 may access such information in order to provide certain functionality or services to the first user, while social-networking system 160 or assistant system 140 may not access the information for any other purpose. Prior to accessing, storing, or using such an object or information, social-networking system 160 or assistant system 140 may prompt the user to provide a privacy setting that specifies which applications or processes, if any, may access, store, or use the object or information before any such action is allowed. As an example and not by way of limitation, a first user may transmit a message to a second user via an application associated with an online social network (e.g., a messaging app), and may specify a privacy setting that social networking system 160 or assistant system 140 should not store such messages.

[0187] In certain embodiments, a user may specify whether a particular type of object or information associated with a first user may be accessed, stored, or used by social networking system 160 or assistant system 140. As an example and not by way of limitation, a first user may specify that images sent by the first user via social networking system 160 or assistant system 140 may not be stored by social networking system 160 or assistant system 140. As another example and not by way of limitation, a first user may specify that messages sent from the first user to a particular second user may not be stored by social networking system 160 or assistant system 140. As yet another example and not by way of limitation, a first user may specify that all objects sent via a particular application may be saved by social networking system 160 or assistant system 140.

[0188] In certain embodiments, the privacy settings may allow the first user to specify whether a particular object or information associated with the first user may be accessed from a particular client system 130 or third-party system 170. The privacy settings may allow the first user to opt-in or opt-out of accessing objects or information from a particular device (e.g., a phone book on the user's smartphone), from a particular application (e.g., a messaging app), or from a particular system (e.g., an email server). The social networking system 160 or assistant system 140 may provide a default privacy setting for each device, system, or application, and / or may prompt the first user to specify a specific privacy setting for each context. As an example and not by way of limitation, the first user may utilize a location services feature of the social networking system 160 or assistant system 140 to provide recommendations for restaurants or other places near the user. The first user's default privacy settings may specify that the social networking system 160 or assistant system 140 may use location information provided from the first user's client device 130 to provide location-based services, but the social networking system 160 or assistant system 140 may not store the first user's location information or provide it to any third-party system 170. The first user may then update the privacy settings to allow the third-party image sharing application to use the location information to geotag the photos.

[0189] Location-based privacy settings

[0190] In certain embodiments, privacy settings may allow a user to specify one or more geographic locations from which an object may be accessed. Access or denial of access to an object may depend on the geographic location of the user attempting to access the object. As an example and not as a limitation, a user may share an object and specify that only users in the same city may access or view the object. As another example and not as a limitation, a first user may share an object and specify that the object is visible to a second user only when the first user is in a particular location. If the first user leaves the particular location, the object may no longer be visible to the second user. As another example and not as a limitation, the first user may specify that the object is visible only to a second user within a threshold distance from the first user. If the first user subsequently changes location, the original second user who could access the object may lose access, while a new group of second users may gain access when they enter within a threshold distance of the first user.

[0191] Privacy settings for user authentication and experience personalization information

[0192] In certain embodiments, social networking system 160 or assistant system 140 may have functionality that can use a user's personal or biometric information as input for user authentication or experience personalization purposes. Users may choose to utilize these features to enhance their experience on online social networks. As an example and not by way of limitation, a user may provide personal or biometric information to social networking system 160 or assistant system 140. The user's privacy settings may specify that such information may only be used for specific processes (such as authentication) and may also specify that such information may not be shared with any third-party system 170 or may not be used for other processes or applications associated with social networking system 160 or assistant system 140. As another example and not by way of limitation, social networking system 160 may provide a user with the ability to provide a voiceprint recording to an online social network. As an example and not by way of limitation, if a user wishes to utilize this functionality of an online social network, the user may provide a voice recording of his or her own voice to provide a status update on the online social network. The recording of the voice input may be compared to the user's voiceprint to determine what words the user said. The user's privacy settings may specify that such voice recordings may be used only for voice input purposes (e.g., authenticating the user, sending voice messages, improving voice recognition for use of voice manipulation features of the online social network), and further specify that such voice recordings may not be shared with any third-party system 170, or may not be used by other processes or applications associated with the social networking system 160. As another example and not by way of limitation, the social networking system 160 may provide the user with the ability to provide a reference image (e.g., a facial profile, a retinal scan) to the online social network. The online social network may compare the reference image with an image input received later (e.g., for authenticating the user, tagging the user in a photo). The user's privacy settings may specify that such voice recordings may be used only for limited purposes (e.g., authentication, tagging the user in a photo), and further specify that such voice recordings may not be shared with any third-party system 170, or may not be used by other processes or applications associated with the social networking system 160.

[0193] System and method

[0194] Fig.10An example computer system 1000 is shown. In a particular embodiment, one or more computer systems 1000 perform one or more steps of one or more methods described or shown herein. In a particular embodiment, one or more computer systems 1000 provide functionality described or shown herein. In a particular embodiment, software running on one or more computer systems 1000 performs one or more steps of one or more methods described or shown herein, or provides functionality described or shown herein. A particular embodiment includes one or more portions of one or more computer systems 1000. Herein, references to computer systems may include computing devices, and vice versa, where appropriate. In addition, references to computer systems may include one or more computer systems, where appropriate.

[0195] The present disclosure contemplates any suitable number of computer systems 1000. The present disclosure contemplates computer systems 1000 taking any suitable physical form. By way of example and not limitation, computer system 1000 may be an embedded computer system, a system on a chip (SOC), a single board computer system (SBC) (such as, for example, a computer on a module (COM) or a system on a module (SOM)), a desktop computer system, a laptop or notebook computer system, an interactive kiosk, a mainframe, a mesh of computer systems, a mobile phone, a personal digital assistant (PDA), a server, a tablet computer system, or a combination of two or more of these. Where appropriate, computer system 1000 may include one or more computer systems 1000; may be monolithic or distributed; span multiple locations; span multiple machines; span multiple data centers; or reside in a cloud, which may include one or more cloud components in one or more networks. Where appropriate, one or more computer systems 1000 may perform one or more steps of one or more methods described or illustrated herein without substantial spatial or temporal limitations. As an example and not as a limitation, one or more computer systems 1000 may perform one or more steps of one or more methods described or shown herein in real time or in batch mode. Where appropriate, one or more computer systems 1000 may perform one or more steps of one or more methods described or shown herein at different times or at different locations.

[0196] In a particular embodiment, computer system 1000 includes a processor 1002, a memory 1004, a storage device 1006, an input / output (I / O) interface 1008, a communication interface 1010, and a bus 1012. Although this disclosure describes and illustrates a particular computer system having particular numbers of particular components in a particular arrangement, this disclosure contemplates any suitable computer system having any suitable numbers of any suitable components in any suitable arrangement.

[0197] In a particular embodiment, the processor 1002 includes hardware for executing instructions (e.g., those that constitute a computer program). As an example and not by way of limitation, to execute instructions, the processor 1002 may retrieve (or fetch) instructions from an internal register, an internal cache, a memory 1004, or a storage device 1006; decode these instructions and execute them; and then write one or more results to an internal register, an internal cache, a memory 1004, or a storage device 1006. In a particular embodiment, the processor 1002 may include one or more internal caches for data, instructions, or addresses. Where appropriate, the present disclosure contemplates a processor 1002 that includes any suitable number of any suitable internal caches. As an example and not by way of limitation, the processor 1002 may include one or more instruction caches, one or more data caches, and one or more translation lookaside buffers (TLBs). The instructions in the instruction cache may be copies of the instructions in the memory 1004 or the storage device 1006, and the instruction cache may speed up the retrieval of those instructions by the processor 1002. The data in the data cache may be: a copy of data in the memory 1004 or storage device 1006 for operation by instructions executed at the processor 1002; the result of a previous instruction executed at the processor 1002, for access by a subsequent instruction executed at the processor 1002 or for writing to the memory 1004 or storage device 1006; or other suitable data. The data cache may speed up read or write operations performed by the processor 1002. The TLB may speed up virtual address translations for the processor 1002. In a particular embodiment, the processor 1002 may include one or more internal registers for data, instructions, or addresses. Where appropriate, the present disclosure contemplates a processor 1002 including any suitable number of any suitable internal registers. Where appropriate, the processor 1002 may include one or more arithmetic logic units (ALUs); may be a multi-core processor; or include one or more processors 1002. Although the present disclosure describes and illustrates a particular processor, the present disclosure contemplates any suitable processor.

[0198] In a particular embodiment, the memory 1004 includes a main memory for storing instructions for execution by the processor 1002 or data for operation by the processor 1002. As an example and not by way of limitation, the computer system 1000 can load instructions from the storage device 1006 or another source (such as, for example, another computer system 1000) to the memory 1004. The processor 1002 can then load the instructions from the memory 1004 to an internal register or an internal cache. To execute the instructions, the processor 1002 can retrieve the instructions from the internal register or the internal cache and decode them. During or after the execution of the instructions, the processor 1002 can write one or more results (which can be intermediate results or final results) to the internal register or the internal cache. The processor 1002 can then write one or more of these results to the memory 1004. In a particular embodiment, the processor 1002 executes only instructions in one or more internal registers or internal caches or in the memory 1004 (rather than the storage device 1006 or elsewhere), and operates only on data in one or more internal registers or internal caches or in the memory 1004 (rather than the storage device 1006 or elsewhere). One or more memory buses (which may each include an address bus and a data bus) may couple the processor 1002 to the memory 1004. As described below, the bus 1012 may include one or more memory buses. In a particular embodiment, one or more memory management units (MMUs) reside between the processor 1002 and the memory 1004 and facilitate access to the memory 1004 requested by the processor 1002. In a particular embodiment, the memory 1004 includes a random access memory (RAM). Where appropriate, the RAM may be a volatile memory. Where appropriate, the RAM may be a dynamic RAM (DRAM) or a static RAM (SRAM). In addition, where appropriate, the RAM may be a single-port RAM or a multi-port RAM. The present disclosure contemplates any suitable RAM. Where appropriate, memory 1004 may include one or more memories 1004. Although this disclosure describes and illustrates particular memories, this disclosure contemplates any suitable memories.

[0199] In a particular embodiment, the storage device 1006 includes a large-capacity storage device for data or instructions. As an example and not as a limitation, the storage device 1006 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the storage device 1006 may include a removable or non-removable (or fixed) medium. Where appropriate, the storage device 1006 may be inside or outside the computer system 1000. In a particular embodiment, the storage device 1006 is a non-volatile solid-state memory. In a particular embodiment, the storage device 1006 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically variable ROM (EAROM), or a flash memory, or a combination of two or more of these. The present disclosure contemplates a large-capacity storage device 1006 in any suitable physical form. Where appropriate, storage 1006 may include one or more storage control units that facilitate communications between processor 1002 and storage 1006. Where appropriate, storage 1006 may include one or more storage devices 1006. Although this disclosure describes and illustrates particular storage, this disclosure contemplates any suitable storage.

[0200] In a particular embodiment, I / O interface 1008 includes hardware, software, or both that provide one or more interfaces for communication between computer system 1000 and one or more I / O devices. Where appropriate, computer system 1000 may include one or more of these I / O devices. One or more of these I / O devices may enable communication between a person and computer system 1000. As an example and not as a limitation, I / O devices may include a keyboard, a keypad, a microphone, a monitor, a mouse, a printer, a scanner, a speaker, a static camera, a stylus, a tablet computer, a touch screen, a tracking ball, a video camera, another suitable I / O device, or a combination of two or more of these. I / O devices may include one or more sensors. The present disclosure contemplates any suitable I / O device and any suitable I / O interface 1008 for them. Where appropriate, I / O interface 1008 may include one or more devices or software drivers that enable processor 1002 to drive one or more of these I / O devices. Where appropriate, I / O interface 1008 may include one or more I / O interfaces 1008. Although this disclosure describes and illustrates a particular I / O interface, this disclosure contemplates any suitable I / O interface.

[0201] In a particular embodiment, the communication interface 1010 includes hardware, software, or both that provide one or more interfaces for communication (e.g., packet-based communication) between the computer system 1000 and one or more other computer systems 1000 or one or more networks. As an example and not by way of limitation, the communication interface 1010 may include a network interface controller (NIC) or network adapter for communicating with an Ethernet or other wired network, or a wireless NIC (WNIC) or wireless adapter for communicating with a wireless network (e.g., a WI-FI network). The present disclosure contemplates any suitable network and any suitable communication interface 1010 for it. As an example and not by way of limitation, the computer system 1000 may communicate with one or more parts of an ad hoc network, a personal area network (PAN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), or the Internet, or a combination of two or more of these. One or more parts of one or more of these networks may be wired or wireless. As an example, the computer system 1000 may communicate with a wireless PAN (WPAN) such as, for example, a Bluetooth WPAN, a WI-FI network, a WI-MAX network, a cellular telephone network such as, for example, a Global System for Mobile Communications (GSM) network, or other suitable wireless networks, or a combination of two or more of these. Where appropriate, the computer system 1000 may include any suitable communication interface 1010 for any of these networks. Where appropriate, the communication interface 1010 may include one or more communication interfaces 1010. Although this disclosure describes and illustrates particular communication interfaces, this disclosure contemplates any suitable communication interface.

[0202] In a particular embodiment, bus 1012 includes hardware, software, or both that couples components of computer system 1000 to each other. By way of example and not limitation, bus 1012 may include an accelerated graphics port (AGP) or other graphics bus, an extended industry standard architecture (EISA) bus, a front side bus (FSB), a HYPERTRANSPORT (HT) interconnect, an industry standard architecture (ISA) bus, an INFINIBAND interconnect, a low pin count (LPC) bus, a memory bus, a micro channel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCIe) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus, or any other suitable bus, or a combination of two or more of these. Where appropriate, bus 1012 may include one or more buses 1012. Although the present disclosure describes and illustrates a particular bus, the present disclosure contemplates any suitable bus or interconnect.

[0203] Herein, where appropriate, one or more computer-readable non-transitory storage media may include one or more semiconductor-based or other integrated circuits (ICs) (such as, for example, field programmable gate arrays (FPGAs) or application-specific ICs (ASICs)), hard disk drives (HDDs), hybrid hard disk drives (HHDs), optical disks, optical disk drives (ODDs), magneto-optical disks, magneto-optical disk drives, floppy disks, floppy disk drives (FDDs), magnetic tapes, solid-state drives (SSDs), RAM drives, secure digital (SECURE DIGITAL) cards or drives, any other suitable computer-readable non-transitory storage media, or any suitable combination of two or more of these. Where appropriate, the computer-readable non-transitory storage media may be volatile, non-volatile, or a combination of volatile and non-volatile.

[0204] Other Miscellaneous

[0205] As used herein, "or" is inclusive and not exclusive, unless expressly indicated otherwise or indicated by context. Thus, herein, "A or B" means "A, B, or both," unless expressly indicated otherwise or indicated by context. Furthermore, "and" is both conjunctive and several, unless expressly indicated otherwise or indicated by context. Thus, herein, "A and B" means "A and B, jointly or severally," unless expressly indicated otherwise or indicated by context.

[0206] The scope of the present disclosure includes all changes, substitutions, variations, alterations and modifications to the example embodiments described or shown herein that will be understood by those of ordinary skill in the art. The scope of the present disclosure is not limited to the example embodiments described or shown herein. In addition, although the present disclosure describes and illustrates the corresponding embodiments herein as including specific parts, elements, features, functions, operations or steps, any of these embodiments may include any combination or permutation of any parts, elements, features, functions, operations or steps described or shown anywhere herein that will be understood by those of ordinary skill in the art. In addition, references to devices or systems or parts of devices or systems that are suitable for, arranged to, capable of, configured to, implemented to, operable to, or operated to perform specific functions in the appended claims include the device, system, component, whether it or that specific function is activated, turned on or unlocked, as long as the device, system or component is adjusted, arranged, enabled, configured, implemented, operable, or operated in this way. In addition, although the present disclosure describes or illustrates specific embodiments as providing specific advantages, specific embodiments may provide some, all or none of these advantages.

Claims

1. A method for generating a customized user profile, the method comprising: accessing a plurality of content objects associated with the first user from an online social network; accessing a baseline profile, wherein the baseline profile is based on ontology data from one or more information graphs, the one or more information graphs comprising a knowledge graph and / or a concept graph; accessing conversation data between the first user and the assistant XBot of the assistant system; determining one or more principals associated with the first user based on the plurality of content objects and the session data; and The customized user profile is generated for the first user based on the baseline profile, wherein the user profile includes one or more confidence scores associated with corresponding one or more subjects, and the corresponding one or more subjects are associated with the first user, wherein the one or more confidence scores are calculated based on multiple content objects associated with the first user and session data associated with the first user.

2. The method of claim 1 , wherein the plurality of content objects comprises one or more of: News Feed posts; News Feed comments; or Search historical data. The method according to claim 1 , wherein the accessed content object is created within a pre-specified time window. The method of claim 1 , wherein the conversation data comprises one or more messages created within a pre-specified time window.

5. The method of claim 1 , wherein determining one or more subjects associated with the first user is based on one or more machine learning models, wherein the one or more machine learning models respectively calculate one or more probabilities that the session data is associated with the one or more subjects.

6. The method of claim 1 , further comprising determining one or more sentiment indicators associated with the conversation data, wherein the determining is based on one or more long short-term memory (LSTM) networks, and wherein, The one or more LSTM networks respectively calculate one or more probabilities that the conversation data is associated with the one or more emotion indicators.

7. The method of claim 1 , further comprising determining one or more domains associated with the session data, wherein the determination is based on one or more machine learning models, and wherein The one or more machine learning models respectively calculate one or more probabilities that the session data is associated with the one or more domains.

8. The method of claim 1 , wherein the session data comprises a plurality of messages, and wherein: The method also includes processing the conversation data based on a sliding window analysis of the plurality of messages.

9. The method of claim 1, further comprising determining contextual information associated with the first user based on the session data.

10. The method of claim 9, wherein determining contextual information associated with the first user comprises one or more of: processing metadata associated with the session data based on a machine learning model, wherein the machine learning model calculates a probability that the metadata is associated with the contextual information; or The session data is processed based on the machine learning model, wherein the machine learning model calculates a probability that the session data is associated with the contextual information. The method of claim 9 , wherein the context information comprises one or more of location information, a timestamp, or a social connection.

12. The method of claim 1, wherein the customized user profile is based on a tree structure. The method of claim 12 , wherein the tree structure comprises one or more layers.

14. The method of claim 13, wherein the one or more layers are organized into a hierarchical structure, the hierarchical structure comprising: (1) Thematic layer, which includes one or more themes; (2) a category layer comprising one or more categories associated with each topic of the topic layer; and (3) An entity layer, which includes one or more entities associated with each category of the category layer.

15. The method of claim 1, further comprising calculating one or more confidence scores for the one or more subjects based on a frequency of the corresponding subject in the plurality of content objects and the session data.

16. The method of claim 1, wherein each of the one or more subjects comprises a subject, a category, or an entity.

17. The method of claim 1, further comprising determining entity linking information based on the session data.

18. One or more computer-readable non-transitory storage media embodying software that, when executed, is operable to: accessing a plurality of content objects associated with the first user from an online social network; accessing a baseline profile, wherein the baseline profile is based on ontology data from one or more information graphs, the one or more information graphs comprising a knowledge graph and / or a concept graph; Accessing conversation data between the first user and the assistant XBot of the assistant system; determining one or more principals associated with the first user based on the plurality of content objects and the session data; and A customized user profile is generated for the first user based on the baseline profile, wherein the user profile includes one or more confidence scores associated with corresponding one or more subjects, wherein the corresponding one or more subjects are associated with the first user, wherein the one or more confidence scores are calculated based on multiple content objects associated with the first user and session data associated with the first user.

19. A system comprising: one or more processors; and a non-transitory memory coupled to the processor, the non-transitory memory comprising instructions executable by the processor, the processor, when executing the instructions, being operable to: accessing a plurality of content objects associated with the first user from an online social network; accessing a baseline profile, wherein the baseline profile is based on ontology data from one or more information graphs, the one or more information graphs comprising a knowledge graph and / or a concept graph; Accessing conversation data between the first user and the assistant XBot of the assistant system; determining one or more principals associated with the first user based on the plurality of content objects and the session data; and A customized user profile is generated for the first user based on the baseline profile, wherein the user profile includes one or more confidence scores associated with corresponding one or more subjects, wherein the corresponding one or more subjects are associated with the first user, wherein the one or more confidence scores are calculated based on multiple content objects associated with the first user and session data associated with the first user.

20. A method for use in an assistant system for assisting a user in obtaining information or services by enabling the user to interact with the assistant system in a conversation using user input to obtain assistance, wherein the user input comprises voice, text, images, or video, or any combination thereof, the assistant system being implemented via a combination of a computing device, an application programming interface (API), and application proliferation on a user device. The method includes, by a user context engine of the assistant system: accessing a plurality of content objects associated with the first user from an online social network; accessing a baseline profile, wherein the baseline profile is based on ontology data from one or more information graphs, the one or more information graphs comprising a knowledge graph and / or a concept graph; accessing conversation data between the first user and the assistant XBot of the assistant system; determining one or more principals associated with the first user based on the plurality of content objects and the session data; and A customized user profile is generated for the first user based on the baseline profile, wherein the user profile includes one or more confidence scores associated with corresponding one or more subjects, wherein the corresponding one or more subjects are associated with the first user, wherein the one or more confidence scores are calculated based on multiple content objects associated with the first user and session data associated with the first user.

21. The method of claim 20, wherein the plurality of content objects comprises one or more of: News Feed posts; News Feed comments; or Search historical data.

22. The method of claim 20, wherein the accessed content object is created within a pre-specified time window.

23. The method of claim 21, wherein the accessed content object is created within a pre-specified time window.

24. A method according to any one of claims 20 to 23, wherein the conversation data comprises one or more messages created within a pre-specified time window.

25. The method according to any one of claims 20 to 23, wherein determining the one or more subjects associated with the first user is based on one or more machine learning models, wherein the one or more machine learning models respectively calculate one or more probabilities that the session data is associated with the one or more subjects, wherein, Use support vector machines (SVM), regression models, or deep convolutional neural networks (DCNN).

26. The method of any one of claims 20 to 23, further comprising determining one or more sentiment indicators associated with the conversation data, wherein the determining is based on one or more long short-term memory (LSTM) networks, and wherein, The one or more LSTM networks respectively calculate one or more probabilities that the conversation data is associated with the one or more emotion indicators.

27. The method of any one of claims 20 to 23, further comprising determining one or more domains associated with the session data, wherein the determination is based on one or more machine learning models, and wherein, The one or more machine learning models respectively calculate one or more probabilities that the session data is associated with the one or more domains.

28. A method according to any one of claims 20 to 23, wherein the session data comprises a plurality of messages, and wherein: The method also includes processing the conversation data based on a sliding window analysis of the plurality of messages.

29. The method of any one of claims 20 to 23, further comprising determining contextual information associated with the first user based on the session data.

30. The method of claim 29, wherein determining contextual information associated with the first user comprises one or more of: processing metadata associated with the session data based on a machine learning model, wherein the machine learning model calculates a probability that the metadata is associated with the contextual information; or The session data is processed based on the machine learning model, wherein the machine learning model calculates a probability that the session data is associated with the contextual information.

31. The method of claim 29, wherein the contextual information comprises one or more of location information, a timestamp, or a social connection.

32. The method of claim 30, wherein the contextual information comprises one or more of location information, a timestamp, or a social connection.

33. The method of any one of claims 20-23 and 30-32, wherein the customized user profile is based on a tree structure. The method of claim 33 , wherein the tree structure comprises one or more layers.

35. The method of claim 34, wherein the one or more layers are organized into a hierarchical structure, the hierarchical structure comprising: (1) Thematic layer, which includes one or more themes; (2) a category layer comprising one or more categories associated with each topic of the topic layer; and (3) An entity layer, which includes one or more entities associated with each category of the category layer.

36. The method of any one of claims 20-23, 30-32, and 34-35, further comprising calculating one or more confidence scores for the one or more subjects based on a frequency of the corresponding subject in the plurality of content objects and the session data.

37. The method of any one of claims 20-23, 30-32, and 34-35, wherein each of the one or more subjects comprises a subject, a category, or an entity.

38. The method of any one of claims 20-23, 30-32, and 34-35, further comprising determining entity link information based on the session data.

39. One or more computer-readable non-transitory storage media embodying software operable, when executed, to perform the method according to any one of claims 20 to 38.

40. An assistant system for assisting a user in obtaining information or services by enabling the user to interact with the assistant system in a conversation using user input to obtain assistance, wherein the user input comprises voice, text, images, or video, or any combination thereof, the assistant system being implemented via a combination of a computing device, an application programming interface (API), and application proliferation on the user device. The assistant system includes: one or more processors; and a non-transitory memory coupled to the processor, the non-transitory memory comprising instructions that the processor is capable of executing, The processor is operable to perform a method according to any one of claims 20 to 38 when executing the instructions.

41. The assistant system of claim 40, configured to assist a user by performing at least one or more of the following features or steps: Create and store a user profile that includes personal and contextual information associated with the user Analyzing the user input using natural language understanding, where the analysis can be based on the user profile to obtain a more personalized and context-aware understanding Resolving an entity associated with the user input based on the analysis Interact with different agents to obtain information or services associated with the resolved entity Generate responses for users regarding said information or services by using natural language generation Through interaction with users, use dialogue management technology to manage and forward the conversation flow with users. By summarizing information, help users digest the information obtained effectively and efficiently. Help users better participate in online social networks by providing tools that help users interact with them Help users manage different tasks, Proactively perform pre-authorized tasks related to the user's interests and preferences based on the user profile at a time relevant to the user and without user input Check privacy settings whenever necessary to ensure that accessing a user profile and performing different tasks adhere to the user's privacy settings Automatically identify a user's intent and language domain based on user input, generate communication content for the user that is appropriate for such intent and language domain, detect changes in the user's intent and language domain, and dynamically adjust generation of the communication content to accommodate the changed intent and language domain.

42. The assistant system according to claim 40, comprising at least one or more of the following components: A messaging platform for receiving user input in a text-based modality and / or receiving user input in an image or video modality from a client system associated with a user, and processing the user input in the image or video modality using optical character recognition technology within the messaging platform to convert the user input into text, an audio speech recognition (ASR) module for receiving user input based on an audio modality from the client system associated with the user and converting the user input based on the audio modality into text, An assistant xbot is configured to receive an output of the messaging platform or the ASR module.

43. The assistant system according to claim 41, comprising at least one or more of the following components: A messaging platform for receiving user input in a text-based modality and / or receiving user input in an image or video modality from a client system associated with a user, and processing the user input in the image or video modality using optical character recognition technology within the messaging platform to convert the user input into text, an audio speech recognition (ASR) module for receiving user input based on an audio modality from the client system associated with the user and converting the user input based on the audio modality into text, An assistant xbot is configured to receive an output of the messaging platform or the ASR module.

44. The assistant system according to any one of claims 40-43, further comprising a user context engine (UCE) (225), wherein the user context engine (225) stores a user profile of a user, and wherein, The user context engine (225) accesses a plurality of content objects (401) associated with the first user from a social networking system or online social network (160).

45. The assistant system according to any one of claims 40-43, further comprising a dialogue engine (235), The dialog engine (235) manages the dialog state and conversation flow between the user and the assistant xbot (215).

46. ​​A system comprising: at least one client system (130), wherein the at least one client system is an electronic device, At least one assistant system (140) according to any one of claims 40-45, The client system and the assistant system are connected to each other via a network (110), wherein the client system includes an assistant application (136) that allows a user at the client system (130) to interact with the assistant system (140), wherein the assistant application (136) transmits the user input to the assistant system (140), and the assistant system (140) generates a response based on the user input and sends the generated response to the assistant application (136), and the assistant application (136) presents the response to the user at the client system (130), The user input may be audio or verbal, and the response may be textual or also audio or verbal.

47. The system of claim 46, further comprising a social networking system (160), The client system includes a social networking application (134) for accessing the social networking system (160).

Citation Information

Patent Citations

  • Predicting labels using a deep-learning model

    US10387464B2

  • Search ranking and recommendations for online social networks based on reconstructed embeddings

    US10579688B2

  • Entity Linking to Query Terms on Online Social Networks

    US20180144051A1

  • Embedding-based Parsing of Search Queries on Online Social Networks

    US20180150551A1

  • Using Related Mentions to Enhance Link Probability on Online Social Networks

    US20190163836A1