<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="1413"/><title>Finding Problem Solving Threads in Online Forum</title><pubinfo>Proceedings of the 5th International Joint Conference on Natural Language Processing,pages 1413-1417, Chiang Mai, Thailand, November 8 - 13, 2011. ©2011 AFNLP</pubinfo><author surname="Qu" givenname="Zhonghua"><org  name="University of Texas at Dallas" country="USA" city="Richardson"/></author><author surname="Liu" givenname="Yang"><org  name="University of Texas at Dallas" country="USA" city="Richardson"/></author></firstpageheader><frontmatter><p><b>Finding Problem Solving Threads in Online Forum</b></p><p><b>ZhonghuaQu </b>and <b>Yang Liu</b></p><p>The University of Texas at Dallas {qzh,yangl}@hlt.utdallas.edu</p></frontmatter><abstract>Online forum is an important source that people use to find answers to questions. Most search engines simply retrieve "rele­vant" threads, but those are not necessarily good threads in terms of providing qual­ity answers. In this paper we propose a two-step approach to classify online forum threads according to their informativeness in terms of question answering. We use statistical models to first categorize posts inside a thread. Then, a variety of features including post level information and other meta-data information are used to classify the thread. We show promising results us­ing the online support forum data we have collected. </abstract></header><body><section number="1" title="Introduction"><p>Online forums often contain useful information, such as answers to questions. When people use search engines to search the forum for answers, the returned threads can be of very low quality in terms of providing informative answers. Some threads are either long conversations without any final conclusive answers or contain answers that do not work. This is especially the case in tech­nical forums. There has been some work on ex­tracting information from online forums. For ex­ample, Cong et al. (Cong et al., 2008) used la­beled sequential patterns to detect question sen­tences in online forums. Ding et al. (Ding et al., 2008) used Conditional Random Fields to extract context of questions for answer detection. Huang et al. (Huang et al., 2007) used SVM to automati­cally extract and rank title-reply pairs from online discussion forums for chatbot knowledge. These previous studies provide a relatively good founda­tion for answer finding and extraction. In online environments like mailing list or forums, question answering is carried out in conversations. In this paper we take advantage of the structure of con­versation and language cues to answer a basic yet important question: Does the thread actually solve the problem?</p><p>We will make use of the conversation within the thread to determine how users think of the an­swers. To classify the usefulness of a thread, we propose a two-step approach using statistical mod­els. First we classify the posts inside a thread into different categories (e.g., problem description, so­lution, feedback). Different models using both content and contextual information are evaluated. Then, we develop features generated from the post categories together with forum meta-data to clas­sify a thread's usefulness. In our collection of fo­rum threads, we show that our proposed methods achieve good results, significantly better than the rule-based baseline.</p></section><section number="2" title="Data Collection and Annotation"><p>We created our own data collection and annota-tion.<footnote anchor="1"/> We crawled 20,000 threads from an ac­tive online forum (Oracle database support forum - general section). As an initial study, we se­lected 200 threads randomly and asked two anno-tators to label the threads and posts in them. The two annotators are computer science students with adequate knowledge to understand the content of those posts. For thread level annotation, we asked the annotators to label the thread based on whether they think it solves the problem and to what ex­tent. We did not give annotators detailed instruc­tions, but rather let them read the threads and make their own judgment. Each thread is given a score from 1 to 5, 1 being least helpful and 5 being most helpful. In the 200 threads we used, 50 have a use­fulness score of 1, 19 with 2, 7 with 3, 61 with 4, and 83 with a score of 5. The distribution has a U shape - many threads are annotated as absolutely solved the problem (usefulness of5), orabsolutely not helpful at all (usefulness of 1).<page local="2" global="1414"/> This also shows that the confidence of annotators is very high.</p><footnote label="1">Please contact the authors for data sharing.</footnote><p>Another annotation we performed is for the posts inside each thread. We defined four classes for the posts based on their main purpose. The cat­egories and brief explanation for them are shown in Table 1, along with the number of posts for each category. Note that sentences inside a post may have different purposes, however, we instructed the annotators to label it with its main purpose. The post classes are very imbalanced in the an­notated corpus. The feedback classes account for only about 10% of all the posts, while the majority classes are problems and solutions.</p><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">Table 1:</doubt><p>threads.</p><p>Annotated categories for posts inside</p><p>Table 2 shows the Kappa statistics on thread and post annotation using 20 threads that we randomly selected and let both annotators label them. For the thread annotation agreement, we use binary la­bels - usefulness greater than 3 is considered as 1, and usefulness less than 3 is considered as 0. The Kappa scores are very reasonable, suggesting that humans do not have much trouble with this task definition.</p></section><section number="3" title="Approaches"><p>For the ultimate goal of classifying how likely a thread provides a good solution (its usefulness), we propose to use a two-step approach. First we determine the categories for the posts, then we classify the threads using information from the first step along with other information.</p><subsection number="3.1" title="Post Level Classification"><p>We use the content of a post as well as its context for post classification. First we used Naive Bayes classifier with a bag-of-word model for post classi­fication. Naive Bayes classifiers have been proved to be robust and perform well in document classifi­cation. After performing tokenization using space, we use the top 600 words from the training set as the dictionary.<footnote anchor="2"/> Each post is thus represented by a feature vector of tokens that appear in the dic­tionary. We use binary features for these words. This has been shown to perform better than using word frequency information for many classifica­tion tasks. We use the implementation of multi­nomial Naive Bayes classifier provided by Weka (Hall et al., 2009).</p><p>We expect that posts in a thread, like turns in di­alogs, are very dependent on the context. For ex­ample, a "problem description" post is more likely to be followed by "solution" posts than a "feed­back" one. People are more likely to give "feed­back" after some "answers" are provided rather af­ter a "question" is asked. Hence we evaluate using an HMM for this post categorization task, in order to take advantage of context information. Figure 1 shows a first order HMM for this setup.</p><p>Figure 1: Illustration of HMM for post categoriza­tion. An observation di is a post, and <i>ci </i>corre­sponds to its category.</p><p>The generative process is as follows. The cat­egory of current post is generated according to a multinomial distribution P (ci|ci_i ) conditioned on its previous post category. Then, given the category of current post, words in the post are generated according to multinomial distribution P(d<b>i| </b>C<b>i) </b>based on the post's category.</p><p>The problem can be formulated to find the most likely state sequence C (post categories) given all the words in all the posts D.<page local="3" global="1415"/> The posterior proba­bility of C given D is:</p><footnote label="2">We varied the dictionary size, but observed performance degradation.</footnote><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Post category</p></td><td class="cell"><p>Description</p></td><td class="cell"><p>number</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Problem</p></td><td class="cell"><p>Ask a question or ask for answer clarification.</p></td><td class="cell"><p>399</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Solution</p></td><td class="cell"><p>Give answers/clarifications to previous questions.</p></td><td class="cell"><p>557</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Good Feedback</p></td><td class="cell"><p>State that the problem is solved.</p></td><td class="cell"><p>78</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Bad Feedback</p></td><td class="cell"><p>State that the answer did not solve the problem.</p></td><td class="cell"><p>18</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table caption="Table 2: Kappa statistics between two annotators for thread and post category annotation." class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Classes</p></td><td class="cell"><p>Kappa Coefficient</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Thread Usefulness</p></td><td class="cell"><p>0.93</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Post - Problem Post - Solution Post - Good Feedback</p></td><td class="cell"><p>0.86 0.70 0.93</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><doubt alpha="38.7" length="31" tooSmall="False" monospace="0.0">P (C |D) = P(ci,..,cn\di,..,dn)</doubt><doubt alpha="41.5" length="41" tooSmall="False" monospace="0.0">OCP (di, .., dn|Ci,.., Cn) XP (Ci,.., Cn)</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">n</doubt><doubt alpha="48.3" length="29" tooSmall="False" monospace="0.0">=11P(di\Ci) XP(Ci|Cj_i)(1)i=i</doubt><p>The last equation is due to the first order HMM assumption where a post document is only depen­dent on its category (in a generative process), and a post category is only dependent on its previous category. For parameters in this HMM, the tran­sition probabilities are estimated from the training set, similar to training a bigram language model (LM) for the post categories.</p><p>It is possible to use an n-gram language model to model the generation of text in posts given its category. However, since our data set is rather small, there is a data sparsity issue for these n-gram LMs. Hence, we only use a unigram-like model for a subset of the words (same as those in the Naive Bayes model), and each word is repre­sented in binary form: whether or not it appeared.</p><p>In practice, when combining the state transition probabilities and emission probabilities, we use a weighting factor 7 that is determined empirically. This is needed because the two scores are in dif­ferent scales and contribute to the final hypothesis differently.</p></subsection><subsection number="3.2" title="Thread Level Classification"><p>The second step in our system is thread level clas­sification, where the system determines whether a thread is useful or not. Using our annotated threads, we grouped them into binary classes: use­ful when the label is equal to or greater than 3; and not useful otherwise. We use a variety of features for thread level classification. Table 3 lists all the features we use for thread classification.</p><p>Since the post level classifier is optimized for the classification accuracy for that particular task, its hypotheses might not be optimal for subse­quent thread classification. For example, if a post "looks" like both a "good feedback" and a "prob­lem", we may prefer "good feedback" to "prob­lem" since the former is more related to our final decision for the thread usefulness. To achieve this, we adjust the priors in the post classification pro­cess for different categories. We found that by increasing the prior for "good feedback" by 1.5 times, the final performance is improved - even though the classification precision decreases, the improved recall seems to be helping.</p><p>Table 3: Features used for thread level classifica­tion. 'Author' means the user who first posted the problem and started the thread.</p><p>We use a maximum entropy model for thread classification. This classifier is chosen because of its good performance in many language process­ing tasks, as well as our own preliminary experi­ments when comparing to other classifiers includ­ing decision trees and SVMs.</p></subsection></section><section number="4" title="Experiments"><subsection number="4.1" title="Post Level Classification Results"><p>We performed leave-one-out-cross-validation (us­ing threads as the units) for post classification. Table 4 shows the results using different meth­ods. We developed a rule-based baseline system for this task. Posts containing typical question words like "what","where" are classified as "prob­lem" posts. Those containing cue words for pos­itive feedbacks, like "thanks", "solved", and hav­ing length of less than 50 words are classified as "positive feedback" posts. The rest are classified as solutions.</p><p>The results shown in the table include the <i>Fi</i>score for 3 individual post categories: problem (F-P), solution (F-S), and good feedback (F-F), as well as the micro averaged Fi score. Here we ig­nored the classification results for "bad feedback" category since it is not very useful in later thread classification.</p><p>We can see that the basic Naive Bayes (NB) classifier can achieve reasonable performance al­ready. It is significantly better than the base­line. This shows that lexicon features (bag-of-word model) are strong and reliable in classify­ing post type. We also tried using an SVM (with linear kernels) for post level classification, but its performance is worse than the Naive Bayes clas-<page local="4" global="1416"/></p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Name</p></td><td class="cell"><p>Description</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>num_solution</p></td><td class="cell"><p>The number of solution posts</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>feedback_p</p></td><td class="cell"><p>Number of positive feedbacks</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>num_prob_sol</p></td><td class="cell"><p>Times of back and forth be­tween problem and solutions</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>author_post</p></td><td class="cell"><p>Number of posts posted by au­thor</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>author_postend</p></td><td class="cell"><p>How far the author's last post is from the end</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>length</p></td><td class="cell"><p>Length of a thread (measured using number of posts)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>Table 4: Post classification results using different methods. Results are the F-measures for problem, solution, and good feedback categories, and the overall performance.</p><p>sifier. After using context information through HMM, post level classification performance in­creased substantially. There is consistent improve­ment for all the categories. In particular, there is a relatively larger gain for the "feedback" class, which we expect may have a great impact on sub­sequent thread level classification. This perfor­mance gain using HMM demonstrates that con­textual information is useful and HMM can well model such information (e.g., an 'answer' post is likely to follow a 'problem' one). We also in­creased HMM to higher order in order to model the transitions using more previous post cate­gories, but found there is no additional improve­ment. In fact, it is slightly worse than using the first order HMM. This can be explained by either that the long distance relationship is not very cru­cial for this task, or more likely that we do not have a large training set to learn high order transi­tion information reliably.</p><p>In general, we can see that the classifiers per­form relatively well for the majority categories, such as problems and solutions. However, for mi­nority classes, e.g., "feedback" (that is only 9.8% among all the posts), the classifiers are not able to learn well. We also observe that many "problem" types are classified as "solutions". This may be explained by two reasons. First, problem descrip­tion posts use very similar vocabulary as solution posts. Second, there are more solution posts in the training data.</p></subsection><subsection number="4.2" title="Thread Level Classification Results"><p>For thread level classification, we use a binary setup, useful vs. not. We used leave-one-out-cross-validation for the 200 labeled threads. In­side each fold, first we use the training set to train the post level classifiers. Then we relabel all the posts in the training set as well as in the testing set with the classifier just trained to obtain the post category hypotheses. After the post level labeling, we extract features for thread classification as described in Section 3. We then train the maximum entropy classifier and test it for the final classi­fication of threads. We use the precision, recall, and Fi score as the evaluation metrics. Results are shown in Table 5. For a comparison, we also show the performance when using reference post labels for both training and test sets (last row). This is expected to give an upper bound performance re­garding the use of post level information for thread classification.</p><p>Table 5: Thread level binary classification results using features extracted from output of different post level classifiers.</p><p>We can see from Table 5 that in general thread classification results depend heavily on the perfor­mance of post level classification. HMM achieves the best performance. Using reference post cat­egory shows the upper bound of how post level classification could affect thread level classifica­tion. We also evaluated using the reference post tags in training the thread classifier, and automatic tags for testing, but that did not perform as well as using automatically obtained tags for both train­ing and testing, suggesting a matched training and testing condition is better. Overall we achieved very good performance - an Fi score of about 85% using HMM for post categorization. This is a promising result given that we have a quite small data set for training.</p></subsection></section><section number="5" title="Conclusion"><p>In this paper, we described a two-step classifi­cation approach to determine whether a thread is helpful to users seeking solutions. We per­form post level classification in the first step, then use the generated post tag information with other global features for thread level classification. We showed in the experiment that our approach worked well in a technical support online forum. For future work, we plan to use joint optimization for the two tasks. In addition, instead of using pre­defined categories for posts, we may derive post categories automatically from the corpus that suit better for the thread classification task.</p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Method</p></td><td class="cell"><p><b><i><footnote anchor="1"/> micro</i></b></p></td><td class="cell"><p>F<b>i</b>-P</p></td><td class="cell"><p>F<b>i</b>-S</p></td><td class="cell"><p>F<b>i</b>-F</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Baseline: rule</p></td><td class="cell"><p>44.58</p></td><td class="cell"><p>49.59</p></td><td class="cell"><p>46.53</p></td><td class="cell"><p>18.58</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NB HMM</p></td><td class="cell"><p>77.57 83.17</p></td><td class="cell"><p>76.81 83.21</p></td><td class="cell"><p>85.52 87.75</p></td><td class="cell"><p>28.57 36.04</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Post Classifier</p></td><td class="cell"><p>Precision</p></td><td class="cell"><p>Recall</p></td><td class="cell"><p>F<b>i</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Baseline: rule</p></td><td class="cell"><p>68.50</p></td><td class="cell"><p>97.16</p></td><td class="cell"><p>80.35</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NB HMM</p></td><td class="cell"><p>78.21 79.14</p></td><td class="cell"><p>86.52 91.32</p></td><td class="cell"><p>82.15 84.97</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Ref</p></td><td class="cell"><p>84.62</p></td><td class="cell"><p>93.62</p></td><td class="cell"><p>88.89</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="5" global="1417"/></section><references><p>Gao Cong, Long Wang, Chin-Yew Lin, Young-In Song, and Yueheng Sun. 2008. <i>Finding question-answer pairs from online forums. </i>In <i>SIGIR, </i>pages 467—474.</p><p>Shilin Ding, Gao Cong, Chin-Yew Lin, and Xiaoyan Zhu. 2008. <i>Using conditional random fields to ex­tract contexts and answers ofQuestions from online forums. </i>In ACL.</p><p>Mark Hall, Eibe Frank, Geoffrey Holmes, Bernhard Pfahringer, Peter Reutemann, and Ian H. Witten. 2009. The weka data mining software: an update. <i>SIGKDD Explorations, </i>11(1):10-18.</p><p>Jizhou Huang, Ming Zhou, and Dan Yang. 2007. <i>Ex­tracting Chatbot Knowledge from Online Discussion Forums. </i>In <i>SIGIR, </i>pages 423—428.</p></references></body></article>