Suvarna Garge (Editor)

Classifier chains

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

Classifier chains is a machine learning method for problem transformation in multi-label classification. It combines the computational efficiency of the Binary Relevance method while still being able to take the label dependencies into account for classification.

Contents

Problem transformation

Problem transformation methods transform a multi-label classification problem in one or more single-label classification problems. In such a way existing single-label classification algorithms such as SVM and Naive Bayes can be used without modification.

Several problem transformation methods exist. One of them is Binary Relevance method (BR). Given a set of labels L and a data set with instances of the form ( x , Y ) where x is a feature vector and Y L is a set of labels assigned to the instance. BR transforms the data set into | L | data sets and learns | L | binary classifiers H : X { l , ¬ l } for each label l L . During this process the information about dependencies between labels is not preserved. This can lead to a situation where a set of labels is assigned to an instance although these labels never co-occur together in the data set. Thus, information about label co-occurrence can help to assign correct label combinations. Loss of this information can in some cases lead to decrease of the classification performance.

Other approach, which takes into account label correlations is Label Powerset method (LP). Each different combination of labels in a data set is considered to be a single label. After transformation a single-label classifier H : X P ( L ) is trained where P ( L ) is the power set of all labels in L . The main drawback of this approach is that the number of label combinations grows exponentionally with the number of labels. For example, a multi-label data set with 10 labels can have up to 2 10 = 1024 label combinations. This increases the run-time of classification.

Classifier Chains method is based on the BR method and it is efficient even on a big number of labels. Furthermore, it considers dependencies between labels.

Method description

For a given a set of labels L Classifier Chain model (CC) learns | L | classifiers as in Binary Relevance method. All classifiers are linked in a chain through feature space.

Given a data set where i -th instance has the form ( x i , Y i ) where Y i is a subset of labels, x i is a set of features. The data set is transformed in | L | data sets where instances of the j -th data set has the form ( ( x i , l 1 , . . . , l j 1 ) , l j ) , l j { 0 , 1 } . If the j -th label was assigned to the instance then l j is 1 , otherwise it is 0 . Thus, classifiers build a chain where each of them learns binary classification of a single label. The features given to each classifier are extended with binary values that indicate which of previous labels were assigned to the instance.

By classifying new instances the labels are again predicted by building a chain of classifiers. The classification begins with first classifier C 1 and processes to the last one C | L | by passing label information between classifiers through the feature space. Hence, the inter-label dependency is preserved. However, the result can vary for different order of chains. For example, if a label often co-occur with some other label only instances of one of the labels, which comes later in the label order, will have information about other one in its feature vector. In order to solve this problem and increase accuracy it is possible to use ensemble of classifiers.

In Ensemble of Classifier Chains (ECC) several CC classifiers can be trained with random order of chains (i.e. random order of labels) on a random subset of data set. Labels of a new instance are predicted by each classifier separately. After that, the total number of predictions or "votes" is counted for each label. The label is accepted if it was predicted by a percentage of classifiers that is bigger than some threshold value.

Another extension of CC, related to ECC, is the Monte Carlo CC (MCC), which employs Monte Carlo methods for finding a good chain sequence and performing efficient inference. Other variants of CC, using different random search methods or considering different dependence structure of classifiers, have been proposed in literature.

References

Classifier chains Wikipedia