Machine Learning Approach to Search Query Classification

Machine Learning Approach to Search Query Classification

Isak Taksa, Sarah Zelikovitz, Amanda Spink
Copyright: © 2009 |Pages: 16
DOI: 10.4018/978-1-59904-974-8.ch016
OnDemand:
(Individual Chapters)
Available
$37.50
No Current Special Offers
TOTAL SAVINGS: $37.50

Abstract

Search query classification is a necessary step for a number of information retrieval tasks. This chapter presents an approach to non-hierarchical classification of search queries that focuses on two specific areas of machine learning: short text classification and limited manual labeling. Typically, search queries are short, display little class specific information per single query and are therefore a weak source for traditional machine learning. To improve the effectiveness of the classification process the chapter introduces background knowledge discovery by using information retrieval techniques. The proposed approach is applied to a task of age classification of a corpus of queries from a commercial search engine. In the process, various classification scenarios are generated and executed, providing insight into choice, significance and range of tuning parameters.
Chapter Preview
Top

Introduction

Machine learning for text classification is an active area of research, encompassing a variety of learning algorithms (Sebastiani, 2002), classification systems (Barry et al., 2004) and data representations (Spink and Jansen, 2004). Classification of search queries is one example of text classification that is particularly complex and challenging. Typically, search queries are short, reveal very few features per single query and are therefore a weak source for traditional machine learning. This chapter focuses on two specific areas of machine learning: short text classification problems and using a small set of labeled documents. We examine the issues of non-hierarchical (Cesa-Bianchi et al., 2006) classification and introduce a method that combines limited manual labeling, computational linguistics and information retrieval to classify a large collection of search queries. We discuss classification proficiency of the proposed method on a large search engine query log, and the implication of this approach on the advancement of short-text classification.

For this discussion we view query logs as sets of textual data on which we perform classification (Jansen, 2006). Observed in this way, each query in a log can be seen as a document that is to be classified according to some pre-defined set of labels, or classes. The approach described in this chapter classifies a corpus of search queries from the Excite search engine, by retrieving from the Web a set of background knowledge to learn additional features that are indicative of the classes. Viewing the initial log with the search queries as a document corpus D = {d1, d2,…di,...dn}, we create a set of classes that indicate a personal demographic characteristic of the searcher, C = {c1, c2,…cj,...cm}. We present an approach that allows classification or the assignment of a class from the set C to many of the documents in the set D. This approach consists of the following five steps:

  • I.

    Select (from the print and the online media) a short set of manually chosen terms Tinit = {t1, t2,…,tj,…,tm} consisting of terms tj that are known a priori to be descriptive of a particular class cj

  • II.

    Use this initial set T to classify a small subset of (search queries) set D thereby creating an initial set of classified queries Qinit = {q1, q2,…qj...ql}

  • III.

    Submit these queries qj to a commercial search engine and use the returned search results to build a temporary corpus of background knowledge Btemp = {b1, b2,…bj...bl*10}

  • IV.

    Use an algorithm to select from B more class related terms T

  • V.

    Use this newly created set T to classify more documents (search queries) in corpus D thereby adding more classified queries to set Q.

While steps I and II are executed only once, steps III through V are repeated continuously until the classification process is terminated (Figure 1).

Figure 1.

Steps in a classification process

978-1-59904-974-8.ch016.f01

We focus on validating our approach to the classification of a set of short documents, namely search queries. This approach uses a combination of techniques: we first look at developing a method to obtain relevant background knowledge for a set of web queries; then we build the background knowledge to acquire ranked terms for improved information retrieval; we then investigate the impact of the new terms’ selection algorithms on the effectiveness of the classification process.

Key Terms in this Chapter

Information Gain: The amount of information in a given set of data can be defined as (1 – entropy). If any observation about the given data is made, new information can then be recomputed. The difference between the two information values is the “information gain”. In other words, the change of entropy is the information that is gained by the observation. If we partition a set T into T1 and T0, based upon some characteristic of the data then the information gain of that partition can be defined as .

Machine Learning: The area of artificial intelligence that studies the algorithms and processes that allow machines to learn. These algorithms use a combination of techniques to learn from examples, from prior knowledge, or from experience.

Text Classification: Process of assigning classes (or labels) to textual data. Textual data can range from short phrases to much longer documents. Sometimes referred to as “text categorization”, a text classification task can be defined as follows: Given a set of documents D = {d1, d2,…,dn} and a set of classes C = {c1,c2,…,cm} assign a label from the set C to each element of set D.

Background Knowledge: Body of text, images, databases, or other data that is related to a particular machine learning classification task. The background knowledge may contain information about the classes; it may contain further examples; it may contain data about both examples and classes.

Labeled Set: Set of item-label pairs. The item consists of an actual example that can be classified, and the label is the classification. In a supervised learning paradigm this set is sometimes referred to as the “training set”.

Entropy: Measurement that can be used in machine learning on a set of data that is to be classified. In this setting it can be defined as the amount of uncertainty or randomness (or noise) in the data. If all data is classified with the same class, the entropy of that set would be 0. The entropy of a set T that has a probability distribution of classes {p1, p2,…pn} can be defined as .

Unlabeled Set: Set of examples whose labels or classes are unknown. If the class of an unlabeled example is learned, it can then be added to a “labeled set”.

Complete Chapter List

Search this Book:
Reset