In recent years, web-based micro social behavior application platforms, such as microblogs, have emerged as a completely new interactive messaging environment. A blog is a regularly updated website, web page, or other messaging system in which posted messages may be viewed by subscribers and/or public at large. A microblog differs from a traditional blog in that its content is typically much smaller, in both actual size and aggregate file size. A typical microblog entry may be a short sentence fragment about what a person is doing at the moment or may be related to short comment on a specific topic. A microblog service enables users to send and receive short messages, which may include text, audios, images and/or videos, to and from a recipient or a group of recipients. In one instance, in the case of Twitter, the short messages are text-based messages of up to 140 characters, which are commonly known as “tweets.” A user may act as a microblogger to issue messages related to any topic on his microblog, and may also act as a fan to remark on messages issued by other users on other users' microblogs.
However, an effective communication of the shared content heavily depends on its effective organization. This is particularly important for microblogging websites due to the diverse nature of the content shared. One possible solution to organize the real-time content is to classify it into topics of interest. However, such classification of microblogs poses several challenges. Posts are short (usually 140 characters or less), often with abbreviated terms or grammatical shortcuts, that differ from the language structure on which many supervised models in machine learning and natural language processors are trained and evaluated. Effectively modeling content on microblogs requires techniques that can readily adapt to the data at hand and require little supervision.
Existing topic detection methodologies are generally based on probabilistic language models, such as Probabilistic Latent Semantic Analysis (PLSA) and Latent Dirichlet Allocation. For example, latent variable topic models have been applied widely to problems in text modeling and require no manually constructed training data.
However, the existing models and classification techniques either use external linked content or explicit user profile information to generate the training models, and hence are not reliable. This is because, in the case of Twitter for example, only about 20-25% of tweets contain external links and many times user profile information is not available due to privacy settings. Furthermore, existing topic models typically need to know the number of topics of a document at the beginning of a training procedure utilized for training the topic models. This may have a drawback of making the topic model inflexible and difficult to determine the topics.
The current disclosure discloses a system and method to build supervised trained models for microblog classification that address the above limitations, and use of such models for automated microblog classification.
In an embodiment, a method (and/or system) for assigning a topic to a collection of microblog posts may include receiving a plurality of posts, wherein each of the plurality of posts comprise post content from at least one messaging service server; analyzing the posts and extracting a link with an address to an external document from at least one of the posts; and causing a communications hardware component to initiate a communication via a communications network that accesses the external document at an external server that is associated with the address and fetches external content associated with the document. The method may also include by a generation module: analyzing the post content to identify at least one label for each post, for each post that includes a link, analyzing the external content to identify a topic, and using a topic modeling technique to generate a trained topic model, wherein the trained topic model comprises, for each identified label, a plurality of topics and a plurality of words associated with each of the plurality of topics. In an embodiment, the method may further include saving the trained topic model to a computer-readable memory device.
In certain embodiments, the method may also include receiving a new post associated with a user; and by a classifier module analyzing the new post by applying the trained topic model to a plurality of words in the unlabeled post, and generating a label for the new post. The method may include displaying the label, via a user interface.
In an embodiment, each of the plurality of posts may include a user identifier, and the method may include identifying and outputting one or more topics of interest for a single user by: identifying a set of posts associated with the single user using an associated user identifier for the single user, using the set of posts for generating a user-specific trained topic model such that the user-specific trained topic model is associated with the single user, and using the user-specific trained topic model for identifying and outputting the one or more topics of interest for a single user. In an embodiment, the method may also include updating the user-specific trained topic model for the single user after a pre-determined time.
In some embodiments, identifying the topic for each post also includes analyzing the content of the post to identify the topic.
In an embodiment, the topic modeling technique may include a User-Labeled Latent Dirichlet Allocation (uL-LDA) technique, that utilizes a user's interest variable vector to generate the trained topic model. Alternatively and/or additionally, the topic modeling technique may include a User-Labeled Hierarchical Dirichlet Process (L2-HDP) technique, that utilizes a user's interest variable vector to generate the trained topic model. The user's interest variable vector may be indicative of a topic composition of the set of documents associated with the user. In at least one embodiment, the external document may include a plurality of labels, and the L2-HDP analyzes the link if the plurality of labels includes at least one link label similar to the at least one label.
In some embodiments, the external document may include a plurality of labels, and the plurality of topics in the trained topic model may include a set of topics shared amongst the plurality of labels.
In an embodiment, the at least one label may be selected from one of the following labels: a hashtag label, an emoticon-specific label, an @user label, a reply label, or a question label.
This disclosure is not limited to the particular systems, methodologies or protocols described, as these may vary. The terminology used in this description is for the purpose of describing the particular versions or embodiments only, and is not intended to limit the scope.
As used in this document, any word in singular form, along with the singular forms “a,” “an” and “the,” include the plural reference unless the context clearly dictates otherwise. Unless defined otherwise, all technical and scientific terms used in this document have the same meanings as commonly understood by one of ordinary skill in the art. All publications mentioned in this document are incorporated by reference. Nothing in this document is to be construed as an admission that the embodiments described in this document are not entitled to antedate such disclosure by virtue of prior invention. As used in this document, the term “comprising” means “including, but not limited to.”
A “electronic device” refers to a device or system that includes a processing device and non-transitory, computer-readable memory. The memory may contain programming instructions in the form of a software application (such as a generation module and/or classifier module, described below) that, when executed by the processor, causes the device to perform one or more topic modelling operations. Examples of suitable electronic devices include smartphones, personal digital assistants, cameras, tablet devices, electronic readers, personal computers, desktop computers, servers, and the like.
A “social networking service” is an on-line service, website, and/or platform to build social networks or social relations among people who share similar interests, activities, backgrounds or real-life connections. It enables each user to interact with other users so as to share ideas, activities, interests, etc. Often, social networking services enable a user to construct a representation of his/her persona (e.g., a “wall,” profile, “timeline,” etc.) that is made visible to some or all of the other users of the service, and that may be employed to communicate reflections, thoughts, interests, etc. Many social networking services also provide a platform through which users may interact, such as via messaging, e-mail, and/or other forms of interaction. Relationships between users of social networking services may be formed and/or fostered through the use of these and other features, such that each user maybe connected to other users by one or more specific types of interdependencies. Examples of such interdependencies include friendship, professional profiles, financial exchange, common interest, kinship, relationships, beliefs, knowledge, prestige, dislike, or sexual relationships. Relationships between social networking service users may take any of numerous forms. As examples, the Twitter social networking service allows one user to “follow” (i.e., receive all of the “tweets” sent by) another user, and the Facebook service enables one user to “friend” (i.e., receive all of the posts made by) another user. Some current examples of social networking services may include Facebook, LinkedIn, Twitter, Yelp, Orkut, Google's Social Circle, Instagram, Pinterest, MySpace, etc. While the current disclosure uses social networking services on a website as an example, it will be understood to those skilled in the art that the principles disclosed in this document may be applied to social networking services that may run on other platforms such as mobile application like WhatsApp, SnapChat, etc., gaming applications, or the like.
As used herein, the term “microblog service” refers to a type of messaging service or web publishing system in which user posts are published and made available to the public or to authorized other users, either via a messaging server (such as via a web page) or delivered via a post delivery service (such as an RSS feed delivery service). Microblog posts may be severely constrained in size. For example, Twitter is a microblog service that limits posts to no more than 140 characters. Other examples of microblogging systems and/or services include those known by the trademarks TUMBLR, PLURK, EMOTE.IN, SQUEELR, BEEING, and JAIKU. Certain social networking websites such as those known by the trademarks FACEBOOK, MYSPACE, LINKEDIN and XING also provide a microblogging feature, which is sometimes referred to as “status updates.”
A “post” refers to a single publication by a user on a microblog or other public messaging service, which in turn refers to any socially compact broadcasted form of expression such as messages, micro-posts or tweets (i.e., having a limited number of word, expressions, etc.). Examples of posts may include, without limitation, electronic messages, personal status updates, blog entries, micro-blogging posts (e.g., tweets and/or other status updates associated with Twitter, status updates associated with Google Buzz, status updates associated with Facebook, Sina Weibo feeds, Tencent WeChat feeds, etc.), news headlines, news articles, text, images, audio, video, links, and/or other content items. Languages supported may include, for example, English, traditional/simplified Chinese, French, German, Italian, Spanish, Japanese, Korean, Indonesian, Thai, Vietnamese, Malay, Russian, Portuguese, Turkish, Polish, and Hindi. Posts are not limited to the social website environment and can also comprise other forms of user generated content (UGC) such as: a post on a social networking site; a comment on a news article; a comment or a post on a forum; a comment on a social networking site; and/or a mobile service instant message (e.g., a WhatsApp message). A collection of posts is referred to as a “corpus.”
A “linked document” refers to an external document linked from within a post on a microblog service, such as via a hyperlink.
“Hashtags” refer to a word or a phrase prefixed with a hash symbol, “#”, where there is no space between the hashtag and the associated word or phrases. Short messages on microblogging and social networking services such as Twitter or Instagram may be tagged by putting “#” before a selected word or words, such as when the word appears in a sentence.
It should be appreciated that, although the systems and methods as described herein incorporate the use of Twitter and data thereof, using other available social media data and platforms is envisioned, either singularly or in combination with Twitter. As used herein, a “tweet” can be any data (e.g., comments, links, etc.) posted by a Twitter user via the Twitter platform or associated applications or plug-ins, although other messaging services can be used.
A topic modelling technique typically uses graphical models, such as Latent Dirichlet Allocation (LDA), Labeled LDA, Partially Labeled LDA (PLDA), and/or Hierarchical Dirichlet Process (HDP) to attempt to find latent or hidden topics in the text of a document, as well as to associate words with each of the latent topics. Other topic modelling techniques which may be employed by embodiments of the invention may include, without limitation, latent semantic analysis, probabilistic latent semantic analysis, Gibbs sampling, and na′fve Bayesian classification.
Traditional LDA is an unsupervised model that discovers latent structure in a collection of documents by representing each document as a mixture of latent topics. Each topic is itself represented as a distribution of words that tend to co-occur. LDA is an example of a generative topic model and allows sets of observations (documents, messages, posts) to be explained by unobserved groups (topics) that explain why some parts of the data are similar. In LDA, each document may be viewed as a mixture of various topics, and each topic is characterized by a distribution over words, with the assumption that such mixture or topic distribution has a Dirichlet prior. The LDA technique can be used to discover large-scale trends in language usage (what words end up together in topics) as well as to represent documents in a low-dimensional topic space. The Labeled LDA technique is an extension of traditional LDA that incorporates supervision by incorporating supervision in the form of implied microblog-level labels where available. This enables explicit models of text content associated with labels. In the context of microblogs, these labels include things such as hashtags, replies, emoticons, and the like. Labeled LDA technique allows the freedom of introducing labels that apply to only some subsets of documents so that the model can learn sets of words that go with particular labels.
Referring back to
In an embodiment, a collection of labeled posts {Tt} is indexed by t, each post containing a bag of words Nt from a vocabulary of V and a label ct from a space of labels C.
In an embodiment, the collection of posts may also include a subset of posts with links to external textual content such as news articles, other blog posts or other linked documents). The generation module may assume that the label of the external linked document is same as the label of post that the link is embedded in.
The generation module may identify one or more labels, automatically and/or through input from the user. In an embodiment, a set of potential labels may be provided by the users and/or stored in a computer-readable memory as a data structure. Alternatively, one or more labels may be included in the posts themselves. The labels may help quantify or classify broad trends and help uncover specific, smaller trends such that labels are generic topics of interest, e.g. politics, sports, entertainment, etc. For example, one label is the hashtag label. A hashtag is a microblog convention that is used to simplify search, indexing, and trend discovery. Users include specially-designed terms that start with “#” into the body of each post. For example, a post about a job listing might contain the term “#jobs.” Treating each hashtag as a label applied only to the posts that contain it allows the discovery of words that are uniquely associated with each hashtag.
Several others types of labels may be used to label the data prior to processing. In particular, emoticon-specific labels can be applied to posts that use any of a set of nine canonical emoticons: smile, frown, wink, big grin, tongue, heart, surprise, awkward, and confused. Canonical variations may be collapsed (for example, −] and :-) are mapped to:)). The @user labels can be applied to posts that address any user as the first word in the post. Question labels can be applied to posts that contain a question mark character. Because the emoticons, @user, reply, and question labels are relatively common, each of these labels may be factored into sub-variants (such as “:)-0” through “:)-9”) in order to model natural variation in how each label is used.
The above examples of labels are provided by way of example only and other types and formats of labels are within the scope of this disclosure.
In step 102, a set of posts for a user (Du) is extracted from the collection of posts for training a topic model for the user. Each post in the collection of posts may have an author assigned (via a user identifier) and posts corresponding to a user uε{1, . . . , U} form a set Du.
In step 103, the generation module may determine whether or not a post in the set of posts includes a link to external content (i.e., linked documents). In an embodiment, a post may include more than one link. A link to external content may be in the form of a uniform resource locator (“URL”), a hyperlink, a thumbnail, or other similar links. External content refers to data and/or documents related to the post but outside of the post such as, for example, from websites, blogs, news media, multi-media, posts/links from other users, particular elements within the external content, or other similar sources of information. The generation module may use different algorithms for identifying topics associated with posts that do not include a link to external content and for identifying topics associated with posts that include a link to external content, as discussed below.
In step 104, the generation module may analyze the set of posts (Du) to generate and/or identify one or more topics associated with each of the labels using a user-labeled generative model. The user-labeled generative model assumes that a user's interests do not change frequently and hence may be used to predict a label for her posts, and models user level topic training models that implicitly capture the user's interests over both topics and labels which aid in classification tasks. The system may identify topics based on content of the posts, content of the documents that are linked by the posts, or a combination of the two.
In one embodiment, a novel user-labeled LDA model is presented, in which each word is generated via a mixture of topics corresponding to a label, where the topics and labels can be generated based on the user's preference over labels and topics in a collection of posts.
In an embodiment, User-Labeled-LDA (uL-LDA) is an example generative model for a collection of labeled posts and is an extension of LDA and Labeled LDA to incorporate modeling of labels, links content and user's latent topics. Mathematically, uL-LDA assumes the existence of a set of C labels (indexed by cε{1, . . . , C}), each of which has been assigned some number of topics Kc (indexed by kε{1, 2, . . . , Kc}) and where each topic φc,k is represented as a multinomial distribution over all terms in the vocabulary V drawn from a symmetric Dirichlet prior β. Each user u contains both her label multinomial(mixture) variable cu (a vector of dimensionality C) and her topic multinomial variable, θu which have Dirichlet hyperparameters, i.e. λ and αu respectively. In an embodiment, label mixture variable, cu, indicates users preference over labels in the collection of posts, i.e., her interest in the type of content that she posts about. Also, users have label-specific topic mixture variable, θcu that indicates users topic composition of user's posts.
Topic modelling is performed on microblogs automatically or in a semi-supervised manner. Microblogs are usually very short (e.g. up to 140 characters), and hence the model assumes that each microblog post is generated using only one latent topic. The assumption means that users tend not to mix various topics in a single post, and hence topics are learned from user level word co-occurrences as opposed to post level word co-occurrences.
Next, for each word position w 240 in the post Du 220, the following is performed. First, a topic z 221 is drawn from the label multinomial distribution θu 231, corresponding to a label c 222 of the label mixture variable cu 233. Second, a word is drawn from the word multinomial distribution φc,k 202. Thus, this generative process assumption and approximate inference algorithm is used to reconstruct the per-post distributions over topics and the per-topic (and therefore per-label) distributions over words, starting from only the posts themselves, by analyzing the joint likelihood of the observed words w with the unobserved label and topic assignments, c and z, respectively.
P(w,z,c|λ,β,αu)=∫ΨP(w|z,c)·P(z,c|λ,β,αu)dΨ (1)
Equation 1 may be used to analyze the joint likelihood of the observed words w with the unobserved label and topic assignments, c and z, respectively. Here, the bold face for variables denote a bag of variables for locations in corpus (collection of posts).
Ψ represents the full set (users and topics) of collapsed parameters, i.e. Ψ={θ, φ, cu}.
In an embodiment, the generation module may use a collapsed Gibbs sampler to derive a sampling scheme to infer topic assignments and derive updates for the hyperparameters, as discussed below.
It should be noted that the left term in equation 1 is similar to standard LDA with the difference that a single topic will generate words in a post, i.e.
P(w|z)=πuUπtDuπiNtP(wi|zt) (2)
P(z,c|cu,λ,αu)=πuUπtDuP(zt|ct,αu)·P(ct|cu,λ) (3)
Combining (2) and (3):
P(w,z,c|Ψ)=πuUπtDu(θu,c,k)n
where, nu,c,k,v=number of occurrences of word v with topic kε{1 . . . Kc} that belongs to label c in user u's posts. And, notation, “.” represents sum of the counts, i.e. nu,c,kk,=Σv nu,c,k,v indicates count of all the words that are observed with topic k that belongs to label c in user u's posts.
After integrating Ψ in equation (1), Bayes rule may be applied to obtain following Gibbs update:
where, i indicates that ith variable from aggregate counts is left out. Next, we describe how we extend our models to incorporate content of linked posts.
The above described algorithm is used for identifying topics and word distribution in labeled posts that do not include a link to external content. For posts that include a link to external content, in an embodiment, the above algorithm may be modified as discussed below.
Links to external content may indicate a user's strong interest towards the topic(s) contained in the linked documents.
For a collection of linked documents, mathematically, User-Labeled-LDA assumes the existence of a set of C labels (indexed by cε{1, 2, . . . , C}), each of which has been assigned some number of topics Kc (indexed by kε{1, 2 . . . , Kc}) and where each topic φc,k is represented as a multinomial distribution over all terms in the vocabulary V drawn from a symmetric Dirichlet prior β. In addition to label specific topics, the model also defines a set of topics Kg that are shared among all the classes. Hence, each linked document contains both its label-specific topics as well as general class of shared topics to generate words in the document. Therefore, the total number of parameters, in the uL-LDA for linked documents, increases to Σc Kc+Kg which may be reflected as C+1 repetitions of topic parameters in
The explicit representation of shared topics among all classes is helpful in explaining the general content of the linked document whereas the exclusive set of label-specific topics is helpful for explaining individual labels. Note, that the model only uses the shared topic distribution for modeling linked documents.
Next, for each word position w 240 in the post Du 220, the following is performed. First, a topic z 221 is drawn from the label multinomial distribution θu 231, corresponding to a label c 222 a label mixture variable cu 233. Second, a word is drawn from the word multinomial distribution φc,k 202.
Furthermore, for each linked document D1 250, a shared topic distribution θg1 251 is drawn from a symmetric Dirichlet prior αg 252. A label set c1 253 is also built that describes the linked document from a Dirichlet hyperparameter αc 254, and a label-specific topic distribution θc1 255, selected over the label set c1 253, is obtained by sampling a Dirichlet hyperparameter α1 256. A parameter s 257 for each word token in linked documents is sampled as variable si at location i in each document D1 using document specific Bernoulli parameter φ1 258 which, in turn, has a Beta hyperparameter ω 259.
Next, for each word position w 260 in the document Dl 250, the following is performed. Sampling is done to obtain whether Bernoulli parameter s is a shared topic (s−0) or a label-specific topic (s==1) based on distribution si. If it is an shared topic (s==0), then a topic is obtained by sampling from the shared path. Specifically, a topic z 271 is drawn from the label multinomial distribution θg1 251, and a word is drawn from the word multinomial distribution φc,k 202. However, if it is an label-specific topic (s==1), then a topic is obtained by sampling from the label-specific path. Specifically, a topic z 271 is drawn from the label multinomial distribution θc1255, and a word is drawn from the word multinomial distribution φc,k 202.
P(w,z,c1,s|β,αu,αg,αc,ω)=∫ΨP(w|z)·P(z,c1,s,|β,αu,αg,αc,ω)dΨ (6)
Equation 6 may be used to analyze the joint likelihood of the observed words w with the unobserved label and topic assignments, c1 and z, and s to account for shared versus global topics, respectively.
where, Ψ={θc, θg, φ1},
αc=a proxy parameter trained from labeled linked documents. It should be noted that, during training, parameter cu is not proxy and require explicit modeling.
As discussed above, the model replaces count notations for documents with nl,c,k,v,s=1 as the number of occurrences of word v with topic kε{1 . . . Kc} that belongs to label c in document l. Similarly, nl,g,k,v,s=0 as the number of occurrences of word v with topic kε{1 . . . Kg} that belongs to shared type of topics in document l.
The model may also obtain the following Gibbs updates:
For s==0 for token i:
For s==1 for token i:
For zi for token i with si=0:
Similar updates for label specific topics can be obtained.
Given models 200(a) and 200(b) and the assumptions associated with the models, a generative process may be created. In one embodiment, an algorithm 1 is provided below that provides one way to implement a Gibbs sampling method giving the models 200(a) and 200(b) and to measure the assumptions of variables used. In one embodiment, the algorithm 1 may be represented as follows:
In another embodiment, non-parametric statistics based techniques, such as Hierarchical Dirichlet Process (HDP) may be used to infer the appropriate size of topics. HDP does not pre-specify number of topics and learns through posterior inference. User-Labeled-HDP (uL-HDP) is an example generative model for a collection of labeled posts and is an extension of ul-LDA and HDP to incorporate modeling of labels, links content and user's latent topics.
The model assumes a global set of topics ø where each topic øz, indexed by topic indicator z, has a multinomial distribution over words w. For each user, U, the model further samples a per-user topic proportion θu from the global level Dirichlet Process, i.e. θu˜(DP(τ, αu)). To include supervision while modeling user posts, the model also assumes the existence of a set of labels C in a multi-label setting where each post can have multiple labels from set C labels (indexed by cε{1, . . . , C}). The model extends the topic word distribution, θz to the label level and assigns each label c its own set of topics, i.e. one to one mapping between labels and topics: θz,c. In addition to user level topic mixture θu, the model introduces two more parameters: (i) user level label mixture, cu which has a Dirichlet prior αc. cu represents the assumption that a typical user u is interested in a few of the global level labels and her posts should reflect her preference over labels. (ii) A global label-topic mixture φ, which indicate popularity of a topic in a label. φ signifies that, while generating posts about a label, users prefer popular topics, e.g. hurricanes for label weather.
A global label-topic mixture φ 372, which indicates popularity of a topic in a label C is also sampled using Dirichlet hyperparameter w 371.
Next, for each word position w 340 in the post ut 330, the following is performed. First, a topic z 331 is drawn from the label multinomial distribution θu 331, corresponding to a label c 333 a label mixture variable cu 325, such that zt˜θu. Second, a topic is independently drawn from the popular topic multinomial distribution φ372, and finally a topic is sampled such that z˜θu◯φc, where ◯ represents element-wise product. Finally, words in post ut are repeatedly generated by sampling from topic distribution φz,c.
Similar, to the uL-LDP embodiment, the model then infers its parameters parameters φz,c, φc from labeled tweets using direct assignment by Gibbs sampling and infers the topic assignments for words.
where, the subscript notation is used to indicate counts of observed assignments, i.e. n j/i is the number of times variable i is observed with variable j. Subscript a−i indicates exclusion of ith variable from vector a.
The above described uL-HDP algorithm is used for identifying topics and word distribution in labeled documents that do not include a link to external content. For documents, that include a link to external content, in an embodiment, the above algorithm may be modified as discussed below. Links to external content may indicate a user's strong interest towards the topic(s) contained in the linked content.
The User-Labeled-Linked-HDP (L2-HDP) assumes that an “external corpus” of a collection liked documents (e.g., web pages) of size L exists and each post in the collection of posts can link to one or more linked documents from the external corpus. Mathematically, each linked document 1 may include a set of labels c1 (e.g. politics, war), and a mixture of topics θl. For each word wli, at location I, has an associated topic variable zli, and corresponding label variable cl. To generate a topic assignment zli, L2-HDP picks an existing topic within label cl for word wli in proportion to how often it is used, or generates a new topic with held-out mass parameter γ. Specifically, the topic mixture θl is weighed with the popularity of topics in φ, i.e. z˜θl, ◯φc where ◯ represents element-wise product. The word wli is then generated according to the topic distribution øcl,zli as in User-Labeled-LDA. For every “new” topic sampled, a new topic parameter over vocabulary V is sampled from symmetric Dirichlet distribution with hyperparameter β. Essentially, for each linked external web-document l, a coin biased with probability function is performed, given by link function fx(x1)|zu, zl, ct, ct, γ). Finally, a match between the user's topic and label of interest with the label and topics in the external content is weighted, i.e. if fx (xl=1)>fx(xl=0). The graphical model for the model is shown in
Referring now to
A global label-topic mixture φ 372, which indicates popularity of a topic in a label C is also sampled using Dirichlet hyperparameter ω 371.
Next, for each user post ut 330 belonging to a user U 320, the following is performed. First, for each user U, a topic distribution θu 321 is obtained by from the global level Dirichlet Process, i.e. θu˜(DP(τ, αu)), where αu 323 is drawn from Dirichlet prior λ 324. Second, for each user U, a label mixture variable cu 325 is drawn from a symmetric Dirichlet prior αc 326. Next, for each word position w 340 in the user post ut 330, the following is performed. First, a topic z 331 is drawn from the label multinomial distribution θu 321, corresponding to a label c 333 a label mixture variable cu 325, such that zt˜θu. Second, a topic is independently drawn from the popular topic multinomial distribution φ 372, and finally a topic is sampled such that z˜θu ◯φc, where ◯ represents element-wise product. Finally, words in post ut are repeatedly generated by sampling from topic distribution φz,c.
A similar process is performed for each word position w 350 in the linked document L 360. First, a topic z 351 is drawn from the label multinomial distribution θ1 361 (obtained by from the global level Dirichlet Process, i.e. θl˜(DP(τ, α1)), where α1 363 is drawn from Dirichlet prior λ 364), corresponding to a label c 353 drawn a label mixture variable ci 365 (drawn from a symmetric Dirichlet prior αc 366), such that zl˜θl. Second, a topic is independently drawn from the popular topic multinomial distribution φ 372, and finally a topic is sampled such that z˜θl◯φc, where ◯ represents element-wise product. Finally, words in document u1 are repeatedly generated by sampling from topic distribution φz,c.
Finally, a link function 1390 is used to generate a coin biased probability to weigh a match between the topic distribution of the post-document with that of the linked document, to restrict the learning model to linked documents with at least one label similar to that of the user-post.
The L2-HDP model generates the link function f x(.) as a exponential function:
f
x(xi,l|Zu,Zl,Ct,Ct,γ)=exp((ηT(Zt◯z1)+μ)(ξT(ct◯Cl))) (11)
Here, the exponential link function represents a continuous and exponential increase in probability values for linked documents and user posts that contain similar topic words. The model is restricted to learning from only the links where the linked documents have at least one label in common with the user posts. The model further performs a Gibbs topic update similar to User-Labeled-HDP.
where, (I, below, represents indicator function)
Gibbs update for the link function:
While the above described generative models are described using Gibbs sampling, it is provided as one example of a statistical sampling method that may be used and it will be understood to those skilled in the art that other appropriate sampling methods or algorithms are within the scope of the disclosure. Alternative sampling methods that may be used in lieu of Gibbs sampling include, for example, other Markov chain Monte Carlo methods including, but not limited to, various random walk Monte Carlo methods (e.g., Metropolis-Hastings algorithm, Slice sampling, Multiple-try Metropolis algorithm, and/or the like). Further, in some embodiments, various Bayesian inference techniques, such as, for example, variational Bayes approximation methods, expectation propagation, and/or the like may be used in addition to or in lieu of Gibbs sampling.
Referring back to
Similarly,
Referring back to
Optionally, the system may analyze a collection of posts that are associated with a particular user or group of users to identify one or more topics of interest for that user or group of users 109. For example, each post may include or be associated with a user identifier, which is typically the user who published the post. The system may apply the trained topic model to identify those topics that appear in posts, externally linked documents, or with a specified frequency. The frequency may be a threshold number or percentage of the analyzed posts, a relative ranking (such as a threshold number of most frequently-appearing topics), or anther frequency measure. The frequency measure may optionally limited by a time period. When the system identifies one or more topics of interest to the user (or group of users) based on the content of the user's posts and/or external links, the system may save that information to a profile for the user(s) and use that information to provide the user with information that is relevant to the topic(s), such as news, advertisements, or other content.
For example, if the new unlabeled post includes the following post from a user: “Harry Potter movie tops the IMDB charts with 1.8 million viewers,” the classifier module may extract keywords from the post such as harry, potter, and movie and consult the trained topic model to label the post as “entertainment”. It should be noted that the post also includes some shared topic words such as movie and tops, which suggests that the post is associated with the topic “top movies”.
In an embodiment, the new unlabeled post may be assigned more than one label. For example, for a post containing the following post from a user: “Government increases the budget for library funds in public schools,” the classifier module may assign the post the labels of “politics” (based on the words “government” and “budget”) and “education” (based on the words “library” and “schools”).
In various embodiments, the training model may be user-indifferent, and generated simply for a collection of posts that are received from a particular microblog service, news feed and/or other source. In another embodiment, the system may develop specific training models for each user based on that user's posts. In an embodiment, the training model generated for each user may be static based on a fixed collection of posts. In another embodiment, the training model may be updated at fixed intervals of time to account for the change in user interest over time, using new labeled posts related to the user that may be retrieved in each time interval.
Each of the plurality of servers 501 may be a web server configured to offer a microblogging, social networking and/or similar messaging service, enabling users of send and read other users' posts or microblogs. The messaging servers 501 may access external linked documents 503(a), 503(b) . . . 503(n) (such as web pages or other documents) published on external services at addresses corresponding to the address of the link over the communication network 502 as well.
In an embodiment, a microblog classification system 510 may be in communication with each of the servers 501. The microblog classification system 510 may also access linked documents in microblog posts via the communication network 502.
In an embodiment, the microblog classification system may include an acquisition module 511, a generation module 512, and a classifier module 513. The various modules of the microblog classification system 510 may include any now or hereafter known software and/or hardware configuration, in which one or more processors execute programming instructions to provide the functions of the module. Each module may include its own processor(s), or the modules may share one or more processing devices.
System 500 is not to be limited in scope to any one particular network architecture.
The document classification method and process as described above may be performed and implemented by an operator of a mobile electronic device and/or a print device.
A controller 620 interfaces with one or more optional memory devices 625 that service as date storage facilities to the system bus 600. These memory devices 625 may include, for example, an external or internal disk drive, a hard drive, flash memory, a USB drive or another type of device that serves as a data storage facility. As indicated previously, these various drives and controllers are optional devices. Additionally, the memory devices 625 may be configured to include individual files for storing any software modules or instructions, auxiliary data, incident data, common files for storing groups of contingency tables and/or regression models, or one or more databases for storing the information as discussed above.
Program instructions, software or interactive modules for performing any of the functional steps associated with the processes as described above may be stored in the ROM 610 and/or the RAM 615. Optionally, the program instructions may be stored on a non-transitory, computer readable medium such as a compact disk, a digital disk, flash memory, a memory card, a USB drive, an optical disc storage medium, and/or other recording medium.
An optional display interface 640 may permit information from the bus 600 to be displayed on the display 645 in audio, visual, graphic or alphanumeric format. Communication with external devices may occur using various communication ports 650. A communication port 650 includes communications hardware such as a transmitter and/or receiver, modem, or other communications interface hardware and may be attached to a communications network, such as the Internet, a local area network, wide area network, or a cellular telephone data network.
The hardware may also include an interface 655 which allows for receipt of data from input devices such as an imaging sensor 660 of a scanner or other input device 665 such as a keyboard, a mouse, a joystick, a touchscreen, a remote control, a pointing device, a video input device and/or an audio input device.
The above-disclosed features and functions, as well as alternatives, may be combined into many other different systems or applications. Various presently unforeseen or unanticipated alternatives, modifications, variations or improvements may be made by those skilled in the art, each of which is also intended to be encompassed by the disclosed embodiments.
This patent document claims priority to U.S. Provisional Patent Application No. 62/218,188 filed Sep. 14, 2015. The disclosure of each of the priority applications are fully incorporated into this document by reference.
Number | Date | Country | |
---|---|---|---|
62218188 | Sep 2015 | US |