<?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="1046"/><title>Gazpacho and summer rash: lexical relationships from temporal patterns of web search queries</title><author surname="Alfonseca" givenname="Enrique"><org  name="Google Zürich" country="Switzerland"/></author><author surname="Ciaramita" givenname="Massimiliano"><org  name="Google Zürich" country="Switzerland"/></author><author surname="Hall" givenname="Keith"><org  name="Google Zürich" country="Switzerland"/></author></firstpageheader><frontmatter><p><b>Gazpacho and summer rash: lexical relationships from temporal patterns of web search queries</b></p><p><b>Enrique Alfonseca     Massimiliano Ciaramita     Keith Hall</b></p><p>Google Zürich, Switzerland</p><p>ealfonseca@google.com,  massi@google.com, kbhall@google.com</p></frontmatter><abstract>In this paper we investigate temporal pat­terns of web search queries. We carry out several evaluations to analyze the proper­ties of temporal profiles of queries, reveal­ing promising semantic and pragmatic re­lationships between words. We focus on two applications: query suggestion and query categorization. The former shows a potential for time-series similarity mea­sures to identify specific semantic relat-edness between words, which results in state-of-the-art performance in query sug­gestion while providing complementary information to more traditional distribu­tional similarity measures. The query cat­egorization evaluation suggests that the temporal profile alone is not a strong in­dicator of broad topical categories. </abstract></header><body><section number="1" title="Introduction"><p>The temporal patterns of word occurrences in hu­man communication carry an implicit measure of their relationship to real-world events and behav­ioral patterns. For example, when there is an event affecting a given entity (such as a natural disaster in a country), the entity name will turn up more frequently in human conversation, newswire arti­cles and web documents; and people will search for it more often. Two entities that are closely related in the real world, such as the name of a country and a prominent region inside the coun­try are likely to share common events and there­fore be closely associated in human communica­tion. Finally, two instances of the same class are also likely to share common usage patterns. For example, names of airlines or retail stores are more likely to be used by day rather than by night (Chien, 2005).</p><p>In this paper we explore the linguistic relation­ship between phrases that are judged to be similar based on their frequency time series correla­tion in search query logs. For every <i>phrase<footnote anchor="1"/> </i>avail­able in WordNet 3.0<footnote anchor="2"/> (Miller, 1995), we have ob­tained its temporal signature from query logs, and calculated all their pairwise correlations. Next, we study the relationship in the top-ranked pairs with respect to their distribution in WordNet and a human-annotated labelling.</p><p>We also discuss possible applications of this data to solve open problems and present the results of two experiments: one where time series corre­lations turned out to be highly discriminative; and another where they were not particularly informa­tive but shed some light on the nature of temporal semantics and topical categorization:</p><p><i>• Query suggestion, i.e. </i>given a query, generate a ranked list of alternative queries in which the user may be interested.</p><p><i>• Query categorization, </i>i.e. given a predefined set of categories, find the top categories to which the query can be assigned.</p><p>Finally, we illustrate with an example another ap­plication of time series in solving information ex­traction problems.</p><p>Although query logs are typically proprietary data, there are ongoing initiatives, like the Lemur toolbar<footnote anchor="3"/>, which make this kind of information available for research purposes. Other work (Bansal and Koudas, 2007b; Bansal and Koudas, 2007a) shows that temporal information can also be extracted from public data, such as blogs. More traditional types of text, such as news, are also typ­ically associated with temporal labels; e.g., dates and timestamps.</p><p>This paper is structured in the following way:</p><p>!We use the term <i>phrase </i>to refer to any single word or multi-word expression that belongs to a synset in WordNet. Examples of phrases are <i>person, causal entity </i>or <i>william Shakespeare. </i>We focused on the nouns hierarchy only. <footnote anchor="2"/>http://wordnet.princeton.edu <footnote anchor="3"/>http://www.lemurproject.org/ querylogtoolbar/ <i>Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, </i>pages 1046-1055, Singapore, 6-7 August 2009. ©2009 ACL and AFNLP<page local="2" global="1047"/></p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1046</doubt><p>Section 2 summarizes the related work. Section 3 describes the correlation analysis between all pairs of phrases from WordNet. Next, Section 4 de­scribes the application to query suggestion, and Section 5 the application to labelling queries in topical categories. Section 7 summarizes the con­clusions and outlines ideas for future research.</p></section><section number="2" title="Related work"><p>The study of query time series explores a particu­lar instance of the so-called <i>wisdom of the crowds </i>effect. Within this area, we can distinguish two kinds of phenomena. Knowledge and resources assembled by people explicitly, either individu­ally, such as the case of blogs, or in a collabora­tive way, as in forums or wikis. These resources are valuable for human-consumption and can also be exploited in order to learn computational re­sources (Medelyan et al., 2008; Weld et al., 2008; Zesch et al., 2008b; Zesch et al., 2008a). On the other hand, it is possible to acquire useful re­sources and knowledge from aggregating behav­ioral patterns of large groups of people, even in the absence of a conscious effort. There is exten­sive ongoing research on the use of web search usage patterns to develop knowledge resources. Some examples are clustering co-click patterns to learn semantically related queries (Beeferman and Berger, 2000), combining co-click patterns with hitting times (Mei et al., 2008), analyzing query revisions made by users when querying search en­gines (Jones et al., 2006), replacing query words with other words that have the highest pointwise mutual information (Terra and Clarke, 2004), or using the temporal distribution of words in docu­ments to improve ranking of search results (Jones and Diaz, 2007).</p><p>Within this second category, an important area is dedicated to the study of time-related features of search queries. News aggregators use real-time frequencies of user queries to detect spikes and identify news shortly after the spikes occur (Mu-rata, 2008). Web users' query patterns have also proved useful for building a real-time surveillance system that accurately estimates region-by-region influenza activity with a lag of one day (Ginsberg et al., 2009). Search engines specifically devel­oped for real-time searches, like Twitter search, will most likely provide new use cases and sce­narios for quickly detecting trends in user search query patterns.</p><figure caption="Figure 1: Time series obtained for the queries [gazpacho] and [summertime] (normalized scales)."></figure><p>Our study builds upon the work of Chien (2005), who observed that queries with highly-correlated temporal usage patterns are typically semantically related, and described a procedure for calculating the correlations efficiently. We have extended the analysis described in this work, by performing a more extensive evaluation of the kinds of semantic relationships that we can find among temporally-similar queries. We also pro­pose, to our knowledge for the first time, areas of applications in solving well-established prob­lems which shed some light on the nature of time-based semantic similarity. This work is also re­lated to the analysis of temporal properties of information streams in data mining (Kleinberg, 2006) and information retrieval from time series databases (Agrawal et al., 1993).</p></section><section number="3" title="Time-based similarities between phrases"><p>Similarly to the method described in Chien (2005), we take a time interval, divide it into equally spaced subintervals, and represent each phrase of interest as the sequence of frequencies with which the phrase was observed in the subintervals. In our experiments, we have used as source data the set of fully anonymized query logs from the Google search engine between January 1st, 2004 and March 1st, 2009.<footnote anchor="4"/>.</p><p>These data have been aggregated on a daily ba­sis so that we have the daily frequency of the queries of interest for over five years.<page local="3" global="1048"/> The frequen­cies are then normalized with the total number of queries that happened on that day. The normaliza­tion is necessary to avoid daily and seasonal varia­tions as there are typically more queries on week­days than on weekends and fewer queries during holiday seasons than in the rest of the year. It also helps reducing the effect deriving from the fact that the population with Internet access is still monotonically growing, so we can expect that the number of queries will become higher and higher over time.</p><footnote label="4">Part of this data is publicly available from http://  www.google.com/trends</footnote><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1047</doubt><p>Given two phrases and their associated time se­ries, the similarity metric used is the correlation coefficient between the two series (Chien, 2005). For illustration, Figure 1 shows the time series ob­tained for two sample queries, <i>gazpacho </i>and <i>sum­mertime, </i>whose time series yield a correlation of 0.92. Similar high correlations can be observed with other queries related to phenomena that oc­cur mainly in summer in the countries from which most queries come, like <i>summer rash.</i></p><subsection number="3.1" title="WordNet-based evaluation"><p>In this section, we describe a study carried out with the purpose of discovering the traditional lexico-semantic relationships which hold between the queries that are most strongly related accord­ing to their temporal profiles.</p><p>For this evaluation, we have taken the nomi­nal phrases appearing in WordNet 3.0. Given that users, when writing queries, typically do not pay attention to punctuation and case, we have normal­ized all phrases by lowercasing them and remov­ing all punctuation. Next, we collected the time se­ries for each phrase by computing the normalized daily frequency of each of them as exact queries in the query logs. The computation of the pair-wise correlations was performed in parallel using the MapReduce infrastructure running over 2048 cores with 500 MB of RAM each. The total ex­ecution (including data shuffling and networking time) took approximately three hours.</p><p>Next, we represented the data as a complete graph where phrases are nodes and the edge be­tween each pair of nodes is weighted by their time series correlation. Using a simple graph-cut we obtained clusters of related terms. A minimum weight threshold equal to 0.9 was applied;<footnote anchor="5"/> thus, two phrases belong to the same cluster if there is a path between them only via edges with weight over 0.9.</p><footnote label="5">This threshold is the same used by Chien (2005), and was confirmed after a manual inspection of a sample of the data</footnote><p>The previous procedure produced a set of 604 clusters, with highly different sizes. The first ob­servation is that 70% of the phrases in WordNet do not have a correlation over 0.9 with any other phrase, so they are placed alone in singleton clus­ters. There are several reasons for this. The clus­ters obtained are very specific: only phrases that have a very strong temporal association have tem­poral correlations exceeding the threshold. This is combined with the fact that we are using a very restricted vocabulary, namely the terms included in WordNet, which is many orders of magnitude smaller than the vocabulary of all possible queries from the users. Few phrase pairs in WordNet have a temporal association and popularity strong enough to be clustered together. Finally, many of the phrases in WordNet are rare, including scien­tific names of animals and plants, genuses or fami­lies, which are not commonly used. Therefore, the clusters extracted here correspond to very salient sets of phrases. If, instead of WordNet, we choose a vocabulary from known user queries (cf. Sec­tion 4), there would be many fewer singleton clus­ters, as the options of similar phrases to choose from would be much larger.</p><p>From the phrases that belong to clusters, 25% of the WordNet phrases do not have strong daily temporal profiles. The typical pattern for these terms is an almost flat time series, usually with small drops at summertime and Christmas (when seasonal leisure-related queries dominate). There­fore, these phrases were collected in just one clus­ter containing them all. Typical examples of the elements of this set are names of famous scientists and mathematicians (Gauss, Isaac Newton, Al­bert Einstein, Thomas Alva Edison, Hipprocrates, Gregor Mendel, ...), common terms (fertilization, famine, macroeconomics, genus, nationalism, ...), numbers and common first names, among other things. It is possible that using sub-day intervals might help to discriminate within this cluster.</p><p>The items in this big cluster contrast with pe­riodical events, which display recurring patterns (e.g., queries related to elections or tax-returns), and names of famous people and other entities which appeared in the news in the past few years. All of these are associated with irregular, spiky time series. These constitute the final 5% of the<page local="4" global="1049"/></p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1048</doubt><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">Type</doubt><p><b>Pairs Examples</b></p><doubt alpha="66.7" length="12" tooSmall="False" monospace="0.0">Synonyms 283</doubt><p>Hyponym/hyperonyms 86</p><p>Siblings in hyponym taxonomy 611</p><p>Meronym/holonyms 53</p><p>Siblings in meronymy taxonomy 7</p><doubt alpha="66.7" length="15" tooSmall="False" monospace="0.0">Other paths 471</doubt><p>Not structurally related 1009 (angel cake, angel food cake), (thames, river thames), (armistice day, Nov 11) (howard hughes, aviator), (muhammad, prophet), (olga korbut, gymnast) (hiroshima, nagasaki), (junior school, primary school), (aids, welt) (everglades, everglades national park), (mississipi, Orleans) (maundy thursday, maundy money), (tap water, water tap), (gren party, liberal) (poppy, veterans day), (Olympic games, gimnast), (belmont park, horse racing)</p><doubt alpha="66.7" length="57" tooSmall="False" monospace="0.0">(tutsi, rwanda), (July 4, july), (Pyongyang, north korea)</doubt><p>Table 1 : Relationships between pairs of WordNet phrases belonging to the same cluster.</p><p>phrases belonging to small, highly focused, clus­ters.</p><p>Table 1 shows the relationships that hold be­tween all pairs of phrases belonging to any of the smaller clusters. Out of 2520 pairs, 283 belong to the same synset, 697 are related via hyponymy links, 60 via meronymy links, and 471 by alternat­ing hyponymy and meronymy links in the path. When the phrases were polysemous, the short­est path between any of their meaning was used. About 40% of the relations do not have a clear structural interpretation in WordNet.</p><p>The majority of pairs are related via more or less complex paths in the WordNet graph. Inter­estingly, even the structurally unrelated terms are characterized by transparent relations in terms of world knowledge, as it is the case between <i>poppy </i>and <i>veteran day. </i>Note as well that sometimes a WordNet term is used with a meaning not present in WordNet or in a different language, which may explain why <i>aids </i>has a very high correlation with <i>welt </i>(AIDS and welt are both hyponyms of <i>health problem, </i>but the correlation may be explained bet­ter by the AIDS World Day, <i>Welt Aids Tag </i>in Ger­man), and it also has a very high correlation with <i>sida, </i>defined in WordNet as a genus of tropical herbs, but which is in fact the translation of AIDS into Spanish. These observations motivated an ad­ditional manual labelling of the extracted pairs.</p></subsection><subsection number="3.2" title="Hand labelled evaluation"><p>As can be seen in Table 2, most of the terms that constitute a cluster are related to each other, al­though the kinds of semantic relationships that hold between them can vary significantly. Exam­ples of the following kinds can be observed:</p><p><b>• True synonyms, </b>as in the case of <i>november </i>and <i>nov, </i>or <i>architeuthis </i>and <i>giant squid.</i></p><p><b>• Variations of people names, </b>especially if a person's first name or surname is typically used to refer to that person, as in the case of <i>john lennon </i>and <i>lennon, </i>or <i>janis joplin </i>and</p><p><i>joplin. </i>Sometimes the variations include per­sonal titles, as it is the case of <i>president carter </i>and <i>president nixon, </i>which are highly corre­lated with <i>jimmy carter </i>and <i>richard nixon.</i></p><p><b>• Geographically-related terms, </b>referring to locations which are located close to each other, as in the clusters <i>{korea, north ko-rean, south korea, Pyongyang, north korea} </i>and <i>{Strasbourg, grenoble, toulouse, poitiers, lyon, lille, nantes, reims}.</i></p><p><b>• Synonyms of location names, </b>like <i>bahrain </i>and <i>bahrein.</i></p><p><b>• Derived words, </b>like <i>north korea </i>and <i>north korean, </i>or <i>lebanese </i>and <i>lebanon.</i></p><p><b>• Generic word optionalizations, </b>which hap­pen when one word in a multi-word phrase is very correlated to the phrase, as in the case of <i>Spanish inquisition </i>and <i>inquisition, </i>or <i>red bone marrow </i>and <i>red marrow, </i>where the most common interpretation for the short­ened version of the phrase is the same as for the long version.</p><p><b>• Word reordering, </b>where the two related phrases have the same words in a different or­der, as in the case of <i>maple sugar </i>and <i>sugar maple, </i>or <i>oil palm </i>and <i>palm oil.</i></p><p><b>• Morphological variants: </b>WordNet does not contain many morphological variants in the main dataset, but there are a few, like <i>station of the cross </i>and <i>stations of the cross.</i></p><p><b>• Acronyms, </b>like <i>federal emergency manage­ment agency </i>and <i>fema.</i></p><p><b>• Hyperonym-hyponym, </b>like <i>fern </i>and <i>plant.</i></p><p><b>• Sibling terms </b>in a taxonomy, as in the clus­ter <i>{lutheran, methodist, presbyterian, united methodist church, lutheran church, methodist church, presbyterian church,baptist, baptist church}, </i>which contains mostly names of Christian denominations.</p><p><b>• Co-occurring events in time, </b>as is the case of <i>hitch </i>and <i>pacifier, </i>both titles of movies which were launched at almost the same</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1049</doubt><page local="5" global="1050"/><p>hydrant, Are hydrant inauguration day,inauguration,swearing,investiture,inaugural address,inaugural,benediction,oath indulgence,self indulgence insulation,heating interstate highway,interstate, intestine, small intestine iq,iq test irish people,irish,irish potato,irish gaelic,gaelic,irish soda bread,irish stew,st patrick,saint patrick,leprechaun,</p><p>march 17,irish whiskey,shillelagh ironsides,old ironsides jamesjoycejames joyce janis joplinjoplin jesus christ,pilate,pontius pilate,passion of christ,passion,aramaic jewish new year,rosh hashana,rosh hashanah,shofar john lennon,lennon julep,mint julep,kentucky derby,kentucky keynote,keynote address kickoff,time off korea,north korean,south korea,pyongyang,north korea</p></subsection></section><section number="1" title="ron hubbard,scientology"><p>leap,leap year,leap day,february 29 left brain,right brain leftover,leftovers,turkey stew linseed oil,linseed listeria,listeriosis,maple leaf lobster tail,lobster,tails lohan,lindsay loire,rhone,rhone alpes looking,looking for lutheran,methodist,presbyterian,united methodist church,lutheran church,methodist church,presbyterian church,</p><p>baptist,baptist church mahatma gandhi,mahatma malignant hyperthermia,hyperthermia maple sugar,sugar maple martin luther,martin luther king,luther,martin,martin luther king day matzo,matzah,matzoh,passover,seder,matzo meal,pesach,haggadah,gefllte fish mestizo,half blood,half and half meteorology,weather bureau moslem,muslim,prophet,mohammed,mohammad,muhammad,mahomet movie star, star,revenge, film star,menace,george lucas mt st helens,mount saint helens,mount st helens myeloma,multiple myeloma ness,loch ness,loch ness monster,loch,nessie new guinea,papua new guinea,papua november,nov pacifler,hitch papa,pope,Vatican,Vatican city,karol wojtylajohn paul ii,holy see,pius xii,papacy,paul vijohn xxiii,the holy see,</p><p>Vatican ii,pontiff,gulp,pater,nostradamus,ii,pontifex parietal lobe,glioma,malignant tumor particle accelerator,atom smasher,hadron,large,tallulah bankhead,bankhead,tanner pledge,allegiance president carterjimmy carter president nixon,richard nixon,richard m nixon sept 11,September ll,sep 11,twin towers,wtc,ground zero,world trade center slum,millionaire,pinto strasbourg,grenoble,toulouse,poitiers,lyon,lille,nantes,reims valentine,valentine day,february 14,romantic aeon,flux alien,predator anne hathaway,hathaway architeuthis,giant squid basal temperature,basal body temperature execution,saddam hussein,hussein,saddam,hanging,husain flood,flooding george herbert walker bush,george walker bush intifada,palestine may 1 ,may day,maypole<page local="6" global="1051"/></p><table caption="Table 2: Sample of clusters obtained from the temporal correlations."></table><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1050</doubt><p><b>Type Clusters</b></p><p>True synonyms 19</p><p>Variations of people names 42</p><p>People names with and without titles 4 First name and surname from the same person 4</p><p>Geographically-related terms 18</p><p>Synonyms of location names 4</p><p>Derived words 4</p><p>Word optionalizations 87</p><p>Word reordering 7</p><p>Morphological variants 1</p><p>Acronyms 1</p><p>Cross-language synonyms 3</p><p>Hyperonym/hyponym 10</p><p>Sibling terms 10</p><p>Co-ocurring events in time 8</p><p>Topically related 38</p><p>Unrelated 72</p><table caption="Table 3: Results of the manual annotation of 2-item clusters."></table><p>time. A particular example of this is when the two terms are part of a named entity, as in the case of <i>quantum </i>and <i>solace, </i>which have a similar correlation because they appear to­gether in a movie title. <b>• Topically-related terms, </b>as the cluster <i>{jesus christ, pilate, pontius pilate, passion of christ, passion, aramaic], </i>or the cluster con­taining popes and the Vatican. A similar ex­ample, <i>execution </i>is highly correlated to <i>sad-dam hussein, </i>because his execution attracted more interest worldwide during this time pe­riod than any other execution. Interestingly, topical correlation emerges at very specific granularity.</p><p>For the manual analysis of the results, we ran­domly selected 332 clusters containing only two items (so that 664 phrases were considered in to­tal). Each of these pairs has been classified in one of the previous categories. The results of this anal­ysis are shown in Table 3.</p></section><section number="4" title="Application to query suggestion"><p>Query suggestion is a feature of search engines that helps users reformulate queries in order to bet­ter describe their information need with the pur­pose of reducing the time needed to find the de­sired information (Beeferman and Berger, 2000; Kraft and Zien, 2004; Sahami and Heilman, 2006; Cucerzan and White, 2007; Yih and Meek, 2008). In this section, we explore the application of a sim­ilarity metric based on time series correlations for finding related queries to suggest to the users. As a test set, we have used the query suggestion dataset from (Alfonseca et al., 2009). It con­tains a set of 57 queries and an average of 22 can­didate query suggestions for each of them. Each suggestion was rated by two human raters using the 5-point Likert scale defined in (Sahami and Heilman, 2006), from irrelevant to highly relevant. The task involves providing a ranking of the sug­gestions that most closely resembles the human scores. The evaluation is based on standard IR metrics: precision at 1, 3 and 5, and mean average precision. In order to compute the precision- and recall-based metrics, we infer a binary distinction from the ratings: related or not related. The inter-annotator agreement for this dataset given the bi­nary classification as computed by Cohen's Kappa is 0.6171.</p><p>We used three baselines: the average values that would be produced by a random scorer of the can­didate suggestions, Sahami and Heilman (2006)'s system (based on calculating similarities between the retrieved snippets), and a recent competitive ranker based on calculating standard distributional similarities (Alfonseca et al., 2009) between the original query and the suggestion. Please refer to the referenced work for details.</p><p>In order to produce the ranked lists of candi­date suggestions for each query, due to the lack of training data, we have opted for the unsupervised procedure described in the previous section:</p><p>1. Collect the daily time series of each of the queries and the candidate suggestions.</p><p>2. Calculate the correlation between the original query and each of the candidate suggestions provided for it, and use it as the candidate's score.</p><p>3. For each query, rank its candidate sugges­tions in decreasing order of correlation.</p><p>Finally, taking into account that the source of similarity is very different to the one used for dis­tributional similarity, we tested the hypothesis that a combination of the two techniques would be ben­eficial to capture different features of the queries and suggestions.<page local="7" global="1052"/> We have trained a linear mixture model combining both scores (time series and dis­tributional similarities), using 10-fold cross vali­dation.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1051</doubt><table caption="Table 4: Results for the query suggestion task." class="main" frame="box" rules="all" border="0" 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><b>Method</b></p></td><td class="cell"><p><b>P@l</b></p></td><td class="cell"><p><b>P@3</b></p></td><td class="cell"><p><b>P@5</b></p></td><td class="cell"><p><b>mAP</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Random</p></td><td class="cell"><p>0.37</p></td><td class="cell"><p>0.37</p></td><td class="cell"><p>0.37</p></td><td class="cell"><p>0.43</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Web Kernel</p></td><td class="cell"><p>0.51</p></td><td class="cell"><p>0.47</p></td><td class="cell"><p>0.42</p></td><td class="cell"><p>0.51</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Dist. simil.</p></td><td class="cell"><p>0.72</p></td><td class="cell"><p>0.63</p></td><td class="cell"><p>0.60</p></td><td class="cell"><p>0.64</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Time series</p></td><td class="cell"><p>0.74</p></td><td class="cell"><p>0.63</p></td><td class="cell"><p>0.53</p></td><td class="cell"><p>0.67</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Combination</p></td><td class="cell"><p>0.79</p></td><td class="cell"><p>0.68</p></td><td class="cell"><p>0.60</p></td><td class="cell"><p>0.69</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><p>The results are displayed in Table 4. For eval­uating the results, whenever a system produced a tie between several suggestions, we generated 100 random orderings of the elements in the tie, and report the average scores.</p><p>Using distributional similarities and the tempo­ral series turned out to be indistinguishable for the precision scores at 0.95 confidence, and both are significantly better than the similarity metric based on the web kernel. The combination produced an improvement across all metrics, although not sta­tistically significant at p=0.05.</p><p>This is quite a positive finding as the time series method relies on stored information requiring only simple and highly optimized lookups.</p></section><section number="5" title="Application to query categorization"><p>The results from the manual evaluation in Sec­tion 3.2 support the conclusion that time series from query logs provide powerful signals for clus­tering at a fine-grained level, in some cases un­covering synonyms (may 1st, may day) and even causal relations (insulation, heating). A natural question is if temporal information is correlated with other types of categorizations. In this sec­tion we carry out a preliminary exploration of the relation between query time series and query cat­egorization. To this extent we adapt the data from the KDD 2005 CUP (Li et al., 2005), which pro­vides a set of queries classified into 67 broad topi­cal categories. Since the datais rather sparse (678 queries) we applied Fourier analysis to "smooth" the time series.</p><subsection number="5.1" title="The KDD CUP data"><p>The KDD Cup 2005 <footnote anchor="6"/> introduced a query catego­rization task and dataset consisting of 800,000 un­labeled queries for unsupervised training, and an evaluation set of 911 queries, 111 for development and 800 for the final evaluation. The systems sub­mitted for this task can be quite complex and made full use of the large unlabeled set. Our goal here is not to provide a comparative evaluation, but only</p><footnote label="6">http://www.sigkdd.org/kdd2 0 0 5/kddcup. html</footnote><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">TIME</doubt><p>Figure 2: RDFT reconstruction for the query "brush cutters" using the first 25 Fourier coeffi­cients. The squares represent the original time series datapoints, while the continuous line repre­sents the reconstructed signal.</p><p>to use the labelled data<footnote anchor="7"/> in a simplified manner to better understand the semantic properties of query time series. Each query in the dataset is assessed by three editors who can assign multiple topic la­bels from a set of 67 categories belonging to seven broad topics: Computers, Entertainment, Informa­tion, Living, Online Community, Shopping and Sports. We merged the KDD Cup development and test set, out of the 911 queries we were able to retrieve significant temporal information for 678 queries. We joined the sets of labels from each as­sessor for each query. On average, each query is assigned five labels.</p></subsection><subsection number="5.2" title="DFT analysis"><p>Assessing the similarity of data represented as time series has been addressed mostly my means of Fourier analysis; e.g., Agrawal et al. (1993) in­troduce a method for efficiently retrieving time series from databases based on Discrete Fourier Transform (DFT). Several other methods have been proposed, e.g., Discrete Wavelet Trans­form (DWT), however DFT provide a competitive benchmark approach (Wu et al., 2000).</p><p>We use DFT to generate the Fourier coefficients of the time series and Reverse DFT (RDFT) to re­construct the original signal using only a subset of the coefficients. This analysis effectively com­presses the time series producing a smoother ap­proximate representation. DFT can be computed efficiently via Fast Fourier Transform (FFT), with <b>Method Accuracy   ± std-err</b><page local="8" global="1053"/></p><footnote label="7">The KDD Cup dataset is probably the only public query log providing topical categorization information.</footnote><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1052</doubt><p>Table 5 : Results of the KDD dataset exploration.</p><p>complexity <i>0(n </i>log <i>n) </i>where <i>n </i>is the length of the sequence. The approximate representation is use­ful not only to address sparsity but can also be used to efficiently estimate the similarity of two time series using only a small subset of coefficients as in (Agrawal et al., 1993). As an example, Fig­ure 2 shows the original time series for the query "brush cutters" and its reconstructed signal using only the first 25 Fourier coefficients. The recon­structed signal captures the essence of the period­icity of the query and highlights the yearly peaks registered for the query in spring and summer.</p></subsection><subsection number="5.3" title="Experiment and discussion"><p>To explore the correlation between the structured temporal representation of queries provided by the time series and topical categorization we run the following experiment. Each KDD Cup query was reconstructed via RDFT using a variable number of coefficients. The set of 679 queries was parti­tioned in 10 sets and a 10-fold evaluation was per­formed. For each fold we trained a classifier on the remaining 9 folds. We used an average multi-class perceptron (Freund and Schapire, 1999) adapted to multi-label learning (Crammer and Singer, 2003). Each model was trained on a fixed number of 10 iterations. The accuracy of each model was eval­uated as the fraction of test items for which the selected highest scoring class was in the gold stan­dard set provided by the editors. As a lower bound we estimated the accuracy of randomly choosing a label for each test instance, and as a baseline we used the most frequent label. The latter is a pow­erful predictor: baselines based on class frequency outperform most of the systems that participated in the KDD Cup (Lin and Wu, 2009). Table 5 reports the average accuracy over the</p><p>10 runs with relative standard errors. Each DFT-based model is characterized by the number of co­efficients used for the reconstruction. Two main patterns are noticeable. First, none of the differ­ences between the frequency-based baseline and the DFT models is significant, this seems to indi­cate that temporal structure alone is not a good dis­criminator of topic, at least of broad categories. In retrospect, this is somewhat predictable. The tem­poral dimension is a basic semantic component of lexical meaning and world knowledge which is not necessarily associated with any broad, and to some extent subjective, categorization. An inspection of the patterns found in each category shows in fact that similar patterns often emerge in different cat­egories; e.g., "Halloween costume" and "cheese­cake recipe" have a similar yearly periodical pat­tern with spikes in early winter, while monotoni-cally decaying patterns are shared across all cate­gories; e.g., between computer hardware and kids toys.</p><p>The second interesting finding is the trend of the DFT system results, higher at low-intermediate values, providing some initial promising evidence that DFT analysis generates useful compressed representations which could be indexed and ap­plied efficiently. Notice that the sequences recon­structed using 1,000 coefficients reproduce almost identically the original signals.</p></subsection></section><section number="6" title="Applications in information extraction"><p>Time series from query logs are particularly rel­evant for phrases that refer to entities which are involved in recent events. Therefore, we expect them to be useful for solving other applications that require handling entities, such as named en­tity recognition and classification, relation extrac­tion or disambiguation.</p><p>To illustrate this point, we mention an example of relation extraction between actors and movies: movies usually have spikes when they are re­leased, and then the frequency again drops sharply. At the same times, when a movie is released, the search engine users have a renewed interest in their actors. Figure 3 displays the time series for the five most recent movies by Jim Carrey (as of march 2009), and the time series for Jim Carrey. As can be seen, the spikes are at exactly the same points in time. If we add up the series (a) through (e) into a single series and calculate the correlation with (f), it turns out to be very high (0.88).</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1053</doubt><table class="main" frame="box" rules="all" border="0" 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>Random</p></td><td class="cell"><p>0.107</p></td><td class="cell"><p>0.03</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MostFrequent</p></td><td class="cell"><p>0.490</p></td><td class="cell"><p>0.07</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>DFT-clO</p></td><td class="cell"><p>0.425</p></td><td class="cell"><p>0.06</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>DFT-C50</p></td><td class="cell"><p>0.456</p></td><td class="cell"><p>0.05</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>DFT-clOO</p></td><td class="cell"><p>0.502</p></td><td class="cell"><p>0.05</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>DFT-C200</p></td><td class="cell"><p>0.456</p></td><td class="cell"><p>0.04</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>DFT-C400</p></td><td class="cell"><p>0.506</p></td><td class="cell"><p>0.05</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>DFT-C600</p></td><td class="cell"><p>0.481</p></td><td class="cell"><p>0.06</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>DFT-C800</p></td><td class="cell"><p>0.478</p></td><td class="cell"><p>0.04</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>DFT-clOOO</p></td><td class="cell"><p>0.466</p></td><td class="cell"><p>0.05</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><page local="9" global="1054"/><p>Figure 3: Time series obtained for the five most recent movies with Jim Carrey, and (f) time série for the query [jim carrey] (normalized scales).</p><p><b>System       Precision   Recall F-measure</b></p><doubt alpha="47.8" length="23" tooSmall="False" monospace="0.0">Random Ö24      ÖT4 ÖT7</doubt><doubt alpha="32.3" length="31" tooSmall="False" monospace="0.0">Time series 0.53      0.66 0.57</doubt><table caption="Table 6: Results for the query suggestion task."></table><p>To validate the hypothesis that this data should be useful for identifying related entities, we have performed a small experiment in the following way: by choosing five popular actors<footnote anchor="8"/> and the cin­ema movies in which they appear since the year 2004, obtained from IMDB<footnote anchor="9"/>. Using the time se­ries, for each actor we choose the combination of movies such that, by adding up the time series of those movies, we maximise the correlation with the actor's time series. It has been implemented with a greedy beam search, with a beam size of 100. The results are shown in Table 6. The random baseline randomly associates the movies from the dataset with the five actors.</p><p>We do not believe this to be a perfect feature as, for example, actors may have a peak in the time se­ries related to their personal lives, not necessarily to movies. However, the high correlations that can be obtained when the pairing between actors and movies is correct, and the improvement with re­spect a random baseline, indicates this is a feature which can probably be integrated with other re­lation extraction systems when handling relation­ships between entities that have big temporal de­pendencies.</p></section><section number="7" title="Conclusions and future work"><p>This paper explores the relationships between queries whose associated time series obtained from query logs are highly correlated. The use of time series in semantic similarity has been dis­cussed by Chien (2005), but only a very prelimi­nary evaluation was described, and, to our knowl­edge, they had never been applied and evaluated in solving existing problems. Our results indicate that, for a substantial percentage of phrases in a thesaurus, it is possible to find other highly-related phrases; and we have categorized the kind of se­mantic relationships that hold between them.</p><p>We have found that in a query suggestion task, somewhat surprisingly, results are compara­ble with other state-of-the-art techniques based on distributional similarities. Furthermore, informa­tion obtained from time series seems to be com­plementary with them, as a simple combination of similarity metrics produces an important increase in performance..</p><p>From an analysis on a query categorization task the initial evidence suggests that there is no strong correlation between broad topics and temporal profiles. This agrees with the intuition that time provides a fundamental semantic dimension possi­bly orthogonal to broad topical classification. This issue however deserves further investigation. An­other issue which is worth a deeper investigation is the application of Fourier transform methods which offer tools for studying the periodic struc­ture of the temporal sequences.</p><p>Ben Stiller, Edward Norton, Jim Carrey, Leonardo Di-caprio, and Tom Hanks, 'www . imdb . com.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1054</doubt><page local="10" global="1055"/></section><references><p>R. Agrawal, C. Faloutsos, and A.N. Swami. 1993. Ef­ficient similarity search in sequence databases. In <i>Proceedings of the 4th International Conference on Foundations of Data Organization and Algorithms, </i>pages 69-84.</p><p>E. Alfonseca, K. Hall, and S. Hartmann. 2009. Large-scale computation of distributional similarities for queries. In <i>Proceedings of North American Chap­ter of the Association for Computational Linguistics - Human Language Technologies conference.</i></p><p>N. Bansal and N. Koudas. 2007a. BlogScope: a sys­tem for online analysis of high volume text streams.</p><p>In <i>Proceedings of the 33rd international conference on Very large data bases, </i>pages 1410-1413.</p><p>N. Bansal andN. Koudas. 2007b. BlogScope: Spatio-temporal analysis of the blogosphere. In <i>Proceed­ings of the 16th international conference on World Wide Web, </i>pages 1269-1270.</p><p>D. Beeferman and A. Berger. 2000. Agglomerative clustering of a search engine query log. In <i>Proceed­ings of the sixth ACM SIGKDD international con­ference on Knowledge discovery and data mining, </i>pages 407^116.</p><p>S. Chien. 2005. Semantic similarity between search engine queries using temporal correlation. In <i>Pro­ceedings of the 14th international conference on World Wide Web, </i>pages 2-11.</p><p>K. Crammer and Y. Singer. 2003. Ultraconservative online algorithms for multiclass problems. <i>Journal of Machine Learning Research, </i>3:951-991.</p><p>S. Cucerzan and R.W. White. 2007. Query sugges­tion based on user landing pages. In <i>Proceedings of the 30th annual international ACM SIGIR confer­ence on Research and development in information retrieval, </i>pages 875-876.</p><p>Y. Freund and R.E. Schapire. 1999. Large margin clas­sification using the perceptron algorithm. <i>Machine Learning, </i>37:277-296.</p><p>J. Ginsberg, M.H. Mohebbi, R.S. Patel, L. Brammer, M.S. Smolinski, and L. Brilliant. 2009. Detecting influenza epidemics using search engine query data. <i>Nature, </i>457, February.</p><p>R. Jones and F. Diaz. 2007. Temporal profiles of queries. <i>ACM Transactions on Information Systems, </i>25(3): 14.</p><p>R. Jones, B. Rey, O. Madani, and W. Greiner. 2006. Generating query substitutions. In <i>Proceedings of the 15th international conference on World Wide Web, </i>pages 387-396.</p><p>J. Kleinberg. 2006. Temporal dynamics of on-line in­formation streams. In <i>Data Stream Management: Processing High-Speed Data. </i>Springer.</p><p>R. Kraft and J. Zien. 2004. Mining anchor text for query refinement. In <i>Proceedings of the 13th inter­national conference on World Wide Web, </i>pages 666-674.</p><p>Y Li, Z. Zheng, and H. Dai. 2005. KDD Cup-2005 report: Facing a grat challenge. <i>SIGKDD Explor. New si., </i>7(2):91-99.</p><p>D. Lin and X. Wu. 2009. Phrase clustering for dis­criminative learning. In <i>Proceedings of the Annual Meeting of the Association for Computational Lin­guistics and the International Joint Conference on Natural Language Processing of the Asian Federa­tion of Natural Language Processing.</i></p><p>O. Medelyan, C. Legg, D. Milne, and LH. Witten. 2008. <i>Mining meaning from Wikipedia. </i>Dept. of Computer Science, University of Waikato.</p><p>Q. Mei, D. Zhou, and K. Church. 2008. Query sug­gestion using hitting time. In <i>Proceeding of the 17th ACM conference on Information and knowl­edge management, </i>pages 469^178.</p><doubt alpha="65.3" length="98" tooSmall="False" monospace="0.0">G.A. Miller. 1995. WordNet: a lexical database for English.Communications of the ACM,38(11):39— 4L</doubt><p>T. Murata. 2008. Detection of breaking news from online web search queries. <i>New Generation Com­puting, </i>26(l):63-73.</p><p>M. Sahami and T.D. Heilman. 2006. A web-based ker­nel function for measuring the similarity of short text snippets. In <i>Proceedings of the 15th international conference on World Wide Web, </i>pages 377-386.</p><p>E. Terra and C.L.A. Clarke. 2004. Scoring missing terms in information retrieval tasks. In <i>Proceedings of the thirteenth ACM international conference on Information and knowledge management, </i>pages 50-58.</p><p>D.S. Weld, F. Wu, E. Adar, S. Amershi, J. Fogarty, R. Hoffmann, K. Patel, and M. Skinner. 2008. In­telligence in Wikipedia. In <i>Proceedings of the 23rd Conference on Artificial Intelligence.</i></p><p>Y Wu, D. Agrawal, and A. El Abbadi. 2000. A com­parison of DFT and DWT based similarity search in time-series databases. In <i>Proceedings of the 9th International ACM Conference on Information and Knowledge Management, </i>pages 488^195.</p><p>W. Yih and C. Meek. 2008. Consistent Phrase Rel­evance Measures. <i>Workshop on Data Mining and Audience Intelligence for Advertising, </i>page 37.</p><p>T. Zesch, C. Muller, and I. Gurevych. 2008a. Extract­ing lexical semantic knowledge from Wikipedia and Wiktionary. In <i>Proceedings of the Conference on Language Resources and Evaluation.</i></p><p>T. Zesch, C. Muller, and I. Gurevych. 2008b. Using Wiktionary for computing semantic relatedness. In <i>Proceedings of the Conference on Artificial Intelli­gence, </i>pages 861-867.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1055</doubt></references></body></article>