Abstract
Time-series classification is the common denominator in many real-world pattern recognition tasks. In the last decade, the simple nearest neighbor classifier, in combination with dynamic time warping (DTW) as distance measure, has been shown to achieve surprisingly good overall results on time-series classification problems. On the other hand, the presence of hubs, i.e., instances that are similar to exceptionally large number of other instances, has been shown to be one of the crucial properties of time-series data sets. To achieve high performance, the presence of hubs should be taken into account for machine learning tasks related to time-series. In this chapter, we survey hubness-aware classification methods and instance selection, and we propose to use selected instances for feature construction. We provide detailed description of the algorithms using uniform terminology and notations. Many of the surveyed approaches were originally introduced for vector classification, and their application to time-series data is novel, therefore, we provide experimental results on large number of publicly available real-world time-series data sets.
Access provided by Autonomous University of Puebla. Download chapter PDF
Similar content being viewed by others
Keywords
1 Introduction
Time-series classification is one of the core components of various real-world recognition systems, such as computer systems for speech and handwriting recognition, signature verification, sign-language recognition, detection of abnormalities in electrocardiograph signals, tools based on electroencephalograph (EEG) signals (“brain waves”), i.e., spelling devices and EEG-controlled web browsers for paralyzed patients, and systems for EEG-based person identification, see e.g. [34, 35, 37, 45]. Due to the increasing interest in time-series classification, various approaches have been introduced including neural networks [26, 38], Bayesian networks [48], hidden Markov models [29, 33, 39], genetic algorithms, support vector machines [14], methods based on random forests and generalized radial basis functions [5] as well as frequent pattern mining [17], histograms of symbolic polynomials [18] and semi-supervised approaches [36]. However, one of the most surprising results states that the simple \(k\)-nearest neighbor (\(k\)NN) classifier using dynamic time warping (DTW) as distance measure is competitive (if not superior) to many other state-of-the-art models for several classification tasks, see e.g. [8] and the references therein. Besides experimental evidence, there are theoretical results about the optimality of nearest neighbor classifiers, see e.g. [12]. Some of the recent theoretical works focused on a time series classification, in particular on why nearest neighbor classifiers work well in case of time series data [10].
On the other hand, Radovanović et al. observed the presence of hubs in time-series data, i.e., the phenomenon that a few instances tend to be the nearest neighbor of surprising lot of other instances [43]. Furthermore, they introduced the notion of bad hubs. A hub is said to be bad if its class label differs from the class labels of many of those instances that have this hub as their nearest neighbor. In the context of \(k\)-nearest neighbor classification, bad hubs were shown to be responsible for a large portion of the misclassifications. Therefore, hubness-aware classifiers and instance selection methods were developed in order to make classification faster and more accurate [9, 43, 50, 52–54].
As the presence of hubs is a general phenomenon characterizing many datasets, we argue that it is of relevance to feature selection approaches as well. Therefore, in this chapter, we will survey the aforementioned results and describe the most important hubness-aware classifiers in detail using unified terminology and notations. As a first step towards hubness-aware feature selection, we will examine the usage of distances from the selected instances as features in a state-of-the-art classifier.
The methods proposed in [50, 52–54] were originally designed for vector classification and they are novel to the domain of time-series classification. Therefore, we will provide experimental evidence supporting the claim that these methods can be effectively applied to the problem of time-series classification. The usage of distances from selected instances as features can be seen as transforming the time-series into a vector space. While the technique of projecting the data into a new space is widely used in classification, see e.g. support vector machines [7, 11] and principal component analysis [25], to our best knowledge, the particular procedure we perform is novel in time-series classification, therefore, we will experimentally evaluate it and compare to state-of-the-art time-series classifiers.
The remainder of this chapter is organized as follows: in Sect. 11.2 we formally define the time-series classification problem, summarize the basic notation used throughout this chapter and shortly describe nearest neighbor classification. Section 11.3 is devoted to dynamic time warping, and Sect. 11.4 presents the hubness phenomenon. In Sect. 11.5 we describe state-of-the-art hubness-aware classifiers, followed by hubness-aware instance selection and feature construction approaches in Sect. 11.6. Finally, we conclude in Sect. 11.7.
2 Problem Formulation and Basic Notations
The problem of classification can be stated as follows. We are given a set of instances and some groups. The groups are called classes, and they are denoted as \(C_1, \ldots , C_m\). Each instance \(x\) belongs to one of the classes.Footnote 1 Whenever \(x\) belongs to class \(C_i\), we say that the class label of \(x\) is \(C_i\). We denote the set of all the classes by \(\fancyscript{C}\), i.e., \(\fancyscript{C}=\{C_1,\ldots ,C_m\}\). Let \(\fancyscript{D}\) be a dataset of instances \(x_i\) and their class labels \(y_i\), i.e., \(\fancyscript{D} = \{ (x_1, y_1) \ldots (x_n, y_n) \}\). We are given a dataset \(\fancyscript{D}^{train}\), called training data. The task of classification is to induce a function \(f(x)\), called classifier, which is able to assign class labels to instances not contained in \(\fancyscript{D}^{train}\).
In real-world applications, for some instances we know (from measurements and/or historical data) to which classes they belong, while the class labels of other instances are unknown. Based on the data with known classes, we induce a classifier, and use it to determine the class labels of the rest of the instances.
In experimental settings we usually aim at measuring the performance of a classifier. Therefore, after inducing the classifier using \(\fancyscript{D}^{train}\), we use a second dataset \(\fancyscript{D}^{test}\), called test data: for the instances of \(\fancyscript{D}^{test}\), we compare the output of the classifier, i.e., the predicted class labels, with the true class labels, and calculate the accuracy of classification. Therefore, the task of classification can be defined formally as follows: given two datasets \(\fancyscript{D}^{train}\) and \(\fancyscript{D}^{test}\), the task of classification is to induce a classifier \(f(x)\) that maximizes prediction accuracy for \(\fancyscript{D}^{test}\). For the induction of \(f(x)\), however, solely \(\fancyscript{D}^{train}\) can be used, but not \(\fancyscript{D}^{test}\).
Next, we describe the \(k\)-nearest neighbor classifier (\(k\)NN). Suppose, we are given an instance \(x^* \in \fancyscript{D}^{test}\) that should be classified. The \(k\)NN classifier searches for those \(k\) instances of the training dataset that are most similar to \(x^*\). These \(k\) most similar instances are called the \(k\) nearest neighbors of \(x^*\). The \(k\)NN classifier considers the \(k\) nearest neighbors, and takes the majority vote of their labels and assigns this label to \(x^*\): e.g. if \(k=3\) and two of the nearest neighbors of \(x^*\) belong to class \(C_1\), while one of the nearest neighbors of \(x\) belongs to class \(C_2\), then this \(3\)-NN classifier recognizes \(x^*\) as an instance belonging to the class \(C_1\).
We use \(\fancyscript{N}_k(x)\) to denote the set of \(k\) nearest neighbors of \(x\). \(\fancyscript{N}_k(x)\) is also called as the \(k\)-neighborhood of \(x\).
Abbreviations used throughout this chapter are summarized in Table 11.1.
3 Dynamic Time Warping
While the \(k\)NN classifier is intuitive in vector spaces, in principle, it can be applied to any kind of data, i.e., not only in case if the instances correspond to points of a vector space. The only requirement is that an appropriate distance measure is present that can be used to determine the most similar train instances. In case of time-series classification, the instances are time-series and one of the most widely used distance measures is DTW. We proceed by describing DTW. We assume that a time-series \(x\) of length \(l\) is a sequence of real numbers: \( x = (x[0], x[1], \ldots , x[l-1])\).
In the most simple case, while calculating the distance of two time series \(x_1\) and \(x_2\), one would compare the \(k\)th element of \(x_1\) to the \(k\)th element of \(x_2\) and aggregate the results of such comparisons. In reality, however, when observing the same phenomenon several times, we cannot expect it to happen (or any characteristic pattern to appear) always at exactly the same time position, and the event’s duration can also vary slightly. Therefore, DTW captures the similarity of two time series’ shapes in a way that it allows for elongations: the \(k\)th position of time series \(x_1\) is compared to the \(k'\)th position of \(x_2\), and \(k'\) may or may not be equal to \(k\).
DTW is an edit distance [30]. This means that we can conceptually consider the calculation of the DTW distance of two time series \(x_1\) and \(x_2\) of length \(l_1\) and \(l_2\) respectively as the process of transforming \(x_1\) into \(x_2\). Suppose we have already transformed a prefix (possibly having length zero or \(l_1\) in the extreme cases) of \(x_1\) into a prefix (possibly having length zero or \(l_2\) in the extreme cases) of \(x_2\). Consider the next elements, the elements that directly follow the already-transformed prefixes, of \(x_1\) and \(x_2\). The following editing steps are possible, both of which being associated with a cost:
-
1.
replacement of the next element of \(x_1\) for the next element of \(x_2\), in this case, the next element of \(x_1\) is matched to the next element of \(x_2\), and
-
2.
elongation of an element: the next element of \(x_1\) is matched to the last element of the already-matched prefix of \(x_2\) or vice versa.
As result of the replacement step, both prefixes of the already-matched elements grow by one element (by the next elements of \(x_1\) and \(x_2\) respectively). In contrast, in an elongation step, one of these prefixes grows by one element, while the other prefix remains the same as before the elongation step.
The cost of transforming the entire time series \(x_1\) into \(x_2\) is the sum of the costs of all the necessary editing steps. In general, there are many possibilities to transform \(x_1\) into \(x_2\), DTW calculates the one with minimal cost. This minimal cost serves as the distance between both time series. The details of the calculation of DTW are described next.
DTW utilizes the dynamic programming approach [45]. Denoting the length of \(x_1\) by \(l_1\), and the length of \(x_2\) by \(l_2\), the calculation of the minimal transformation cost is done by filling the entries of an \(l_1~\times ~l_2\) matrix. Each number in the matrix corresponds to the distance between a subsequence of \(x_1\) and a subsequence of \(x_2\). In particular, the number in the \(i\)th row and \(j\)th column,Footnote 2 \(d_0^{DTW}(i,j)\) corresponds to the distance between the subsequences \( x_1'=(x_1[0], \ldots , x_1[i] )\) and \(x_2'=(x_2[0], \ldots , x_2[j] )\). This is shown in Fig. 11.1.
When we try to match the \(i\)th position of \(x_1\) and the \(j\)th position of \(x_2\), there are three possible cases: (i) elongation in \(x_1\), (ii) elongation in \(x_2\), and (iii) no elongation.
If there is no elongation, the prefix of \(x_1\) up to the \((i-1)\)th position is matched (transformed) to the prefix of \(x_2\) up to the \((j-1)\)th position, and the \(i\)th position of \(x_1\) is matched (transformed) to the \(j\)th position of \(x_2\).
Elongation in \(x_1\) at the \(i\)th position means that the \(i\)th position of \(x_1\) has already been matched to at least one position of \(x_2\), i.e., the prefix of \(x_1\) up to the \(i\)th position is matched (transformed) to the prefix of \(x_2\) up to the \((j-1)\)th position, and the \(i\)th position of \(x_1\) is matched again, this time to the \(j\)th position of \(x_2\). This way the \(i\)th position of \(x_1\) is elongated, in the sense that it is allowed to match several positions of \(x_2\). The elongation in \(x_2\) can be described in an analogous way.
Out of these three possible cases, DTW selects the one that transforms the prefix \( x_1'=(x_1[0], \ldots , x_1[i] )\) into the prefix \( x_2'=(x_2[0], \ldots , x_2[j] )\) with minimal overall costs. Denoting the distance between the subsequences \( x_1'\) and \(x_2'\), i.e. the value of the cell in the \(i\)th row and \(j\)th column, as \(d_0^{ DTW}(i,j)\), based on the above discussion, we can write:
In this formula, the first, second, and third terms of the minimum correspond to the above cases of elongation in \(x_1\), elongation in \(x_2\) and no elongation, respectively. The cost of matching (transforming) the \(i\)th position of \(x_1\) to the \(j\)th position of \(x_2\) is \(c^{ DTW}_{tr}(x_1[i],x_2[j])\). If \(x_1[i]\) and \(x_2[j]\) are identical, the cost of this replacement is zero. This cost is present in all the three above cases. In the cases, when elongation happens, there is an additional elongation cost denoted as \(c^{ nDTW}_{el}\).
According to the principles of dynamic programming, Formula (11.1) can be calculated for all \(i,j\) in a column-wise fashion. First, set \(d_0^{ DTW}(0,0) = c^{ DTW}_{tr}(x_1[0],x_2[0])\). Then we begin calculating the very first column of the matrix (\(j=0\)), followed by the next column corresponding to \(j=1\), etc. The cells of each column are calculated in order of their row-indexes: within one column, the cell in the row corresponding \(i=0\) is calculated first, followed by the cells corresponding to \(i=1\), \(i=2\), etc. (see Fig. 11.1). In some cases (in the very-first column and in the very-first cell of each row), in the min function of Formula (11.1), some of the terms are undefined (when \(i-1\) or \(j-1\) equals \(-1\)). In these cases, the minimum of the other (defined) terms are taken.
The DTW distance of \(x_1\) and \(x_2\), i.e. the cost of transforming the entire time series \(x_1 = (x_1[0], x_1[1], \ldots , x_1[l_1-1] ) \) into \(x_2 = (x_2[0], x_2[1], \ldots , x_2[l_2-1] )\) is
An example for the calculation of DTW is shown in Fig. 11.2.
Note that the described method implicitly constructs a mapping between the positions of the time series \(x_1\) and \(x_2\): by back-tracking which of the possible cases leads to the minimum in the Formula (11.1) in each step, i.e., which of the above discussed three possible cases leads to the minimal transformation costs in each step, we can reconstruct the mapping of positions between \(x_1\) and \(x_2\).
For the final result of the distance calculation, the values close to the diagonal of the matrix are usually the most important ones (see Fig. 11.2 for an illustration). Therefore, a simple, but effective way of speeding-up dynamic time warping is to restrict the calculations to the cells around the diagonal of the matrix [45]. This means that one limits the elongations allowed when matching the both time series (see Fig. 11.3).
Restricting the warping window size to a pre-defined constant \(w^{ DTW}\) (see Fig. 11.3) implies that it is enough to calculate only those cells of the matrix that are at most \(w^{ DTW}\) positions far from the main diagonal along the vertical direction:
The warping window size \(w^{ DTW}\) is often expressed in percentage relative to the length of the time series. In this case, \(w^{ DTW} = 100\,\%\) means calculating the entire matrix, while \(w^{ DTW} = 0\,\%\) refers to the extreme case of not calculating any entries at all. Setting \(w^{ DTW}\) to a relatively small value such as 5 %, does not negatively affect the accuracy of the classification, see e.g. [8] and the references therein.
In the settings used throughout this chapter, the cost of elongation, \(c^{ DTW}_{el}\), is set to zero:
The cost of transformation (matching), denoted as \(c^{ DTW}_{tr}\), depends on what value is replaced by what: if the numerical value \(v_A\) is replaced by \(v_B\), the cost of this step is:
We set the warping window size to \(w^{ DTW} = 5\,\% \). For more details and further recent results on DTW, we refer to [8].
4 Hubs in Time-Series Data
The presence of hubs, i.e., some few instances that tend to occur surprisingly frequently as nearest neighbors while other instances (almost) never occur as nearest neighbors, has been observed for various natural and artificial networks, such as protein-protein-interaction networks or the internet [3, 22]. The presence of hubs has been confirmed in various contexts, including text mining, music retrieval and recommendation, image data and time series [43, 46, 49]. In this chapter, we focus on time series classification, therefore, we describe hubness from the point of view of time-series classification.
For classification, the property of hubness was explored in [40–43]. The property of hubness states that for data with high (intrinsic) dimensionality, like most of the time series data,Footnote 3 some instances tend to become nearest neighbors much more frequently than others. Intuitively speaking, very frequent neighbors, or hubs, dominate the neighbor sets and therefore, in the context of similarity-based learning, they represent the centers of influence within the data. In contrast to hubs, there are rarely occurring neighbor instances contributing little to the analytic process. We will refer to them as orphans or anti-hubs.
In order to express hubness in a more precise way, for a time series dataset \(\fancyscript{D}\) one can define the \(k\)-occurrence of a time series \(x\) from \(\fancyscript{D}\), denoted by \(N_{k}(x)\), as the number of time series in \(\fancyscript{D}\) having \(x\) among their \(k\) nearest neighbors:
With the term hubness we refer to the phenomenon that the distribution of \(N_k(x)\) becomes significantly skewed to the right. We can measure this skewness, denoted by \(\fancyscript{S}_{N_{k}(x)}\), with the standardized third moment of \(N_{k}(x)\):
where \(\mu _{N_{k}(x)}\) and \( \sigma _{N_{k}(x)}\) are the mean and standard deviation of the distribution of \(N_{k}(x)\). When \(\fancyscript{S}_{N_{k}(x)}\) is higher than zero, the corresponding distribution is skewed to the right and starts presenting a long tail. It should be noted, though, that the occurrence distribution skewness is only one indicator statistic and that the distributions with the same or similar skewness can still take different shapes.
In the presence of class labels, we distinguish between good hubness and bad hubness: we say that the time series \(x'\) is a good \(k\) -nearest neighbor of the time series \(x\), if (i) \(x'\) is one of the \(k\)-nearest neighbors of \(x\), and (ii) both have the same class labels. Similarly: we say that the time series \(x'\) is a bad \(k\) -nearest neighbor of the time series \(x\), if (i) \(x'\) is one of the \(k\)-nearest neighbors of \(x\), and (ii) they have different class labels. This allows us to define good (bad) \(k\) -occurrence of a time series \(x\), \(GN_k(x)\) (and \(BN_k(x)\) respectively), which is the number of other time series that have \(x\) as one of their good (bad, respectively) \(k\)-nearest neighbors. For time series, both distributions \(GN_k(x)\) and \(BN_k(x)\) are usually skewed, as it is exemplified in Fig. 11.4, which depicts the distribution of \(GN_1(x)\) for some time series data sets (from the UCR time series dataset collection [28]). As shown, the distributions have long tails in which the good hubs occur.
We say that a time series \(x\) is a good (or bad) hub, if \(GN_k(x)\) (or \(BN_k(x)\), respectively) is exceptionally large for \(x\). For the nearest neighbor classification of time series, the skewness of good occurrence is of major importance, because some few time series are responsible for large portion of the overall error: bad hubs tend to misclassify a surprisingly large number of other time series [43]. Therefore, one has to take into account the presence of good and bad hubs in time series datasets. While the \(k\)NN classifier is frequently used for time series classification, the \(k\)-nearest neighbor approach is also well suited for learning under class imbalance [16, 20, 21], therefore hubness-aware classifiers, the ones we present in the next section, are also relevant for the classification of imbalanced data.
The total occurrence count of an instance \(x\) can be decomposed into good and bad occurrence counts: \(N_k(x) = GN_k(x) + BN_k(x)\). More generally, we can decompose the total occurrence count into the class-conditional counts: \(N_k(x) = \sum _{C \in \fancyscript{C}}N_{k,C}(x)\) where \(N_{k,C}(x)\) denotes how many times \(x\) occurs as one of the \(k\) nearest neighbors of instances belonging to class \(C\), i.e.,
where \(y_i\) denotes the class label of \(x_i\).
As we mentioned, hubs appear in data with high (intrinsic) dimensionality, therefore, hubness is one of the main aspects of the curse of dimensionality [4]. However, dimensionality reduction can not entirely eliminate the issue of bad hubs, unless it induces significant information loss by reducing to a very low dimensional space—which often ends up hurting system performance even more [40].
5 Hubness-Aware Classification of Time-Series
Since the issue of hubness in intrinsically high-dimensional data, such as time-series, cannot be entirely avoided, the algorithms that work with high-dimensional data need to be able to properly handle hubs. Therefore, in this section, we present algorithms that work under the assumption of hubness. These mechanisms might be either explicit or implicit.
Several hubness-aware classification methods have recently been proposed. An instance-weighting scheme was first proposed in [43], which reduces the bad influence of hubs during voting. An extension of the fuzzy \(k\)-nearest neighbor framework was shown to be somewhat better on average [54], introducing the concept of class-conditional hubness of neighbor points and building an occurrence model which is used in classification. This approach was further improved by considering the self-information of individual neighbor occurrences [50]. If the neighbor occurrences are treated as random events, the Bayesian approaches also become possible [52, 53].
Generally speaking, in order to predict how hubs will affect classification of non-labeled instances (e.g. instances arising from observations in the future), we can model the influence of hubs by considering the training data. The training data can be utilized to learn a neighbor occurrence model that can be used to estimate the probability of individual neighbor occurrences for each class. This is summarized in Fig. 11.5. There are many ways to exploit the information contained in the occurrence models. Next, we will review the most prominent approaches.
While describing these approaches, we will consider the case of classifying an instance \(x^*\), and we will denote its nearest neighbors as \(x_i\), \(i \in \{1, \ldots , k\}\). We assume that the test data is not available when building the model, and therefore \(N_k(x)\), \(N_{k,C}(x)\), \(GN_k(x)\), \(BN_k(x)\) are calculated on the training data.
5.1 hw-\(k\)NN: Hubness-Aware Weighting
The weighting algorithm proposed by Radovanović et al. [41] is one of the simplest ways to reduce the influence of bad hubs. They assign lower voting weights to bad hubs in the nearest neighbor classifier. In hw-\(k\)NN, the vote of each neighbor \(x_i\) is weighted by \(e^{-h_b(x_i)}\), where
is the standardized bad hubness score of the neighbor instance \(x_i \in \fancyscript{N}_k(x^*)\), \(\mu _{BN_{k}(x)}\) and \( \sigma _{BN_{k}(x)}\) are the mean and standard deviation of the distribution of \(BN_{k}(x)\).
Example 1
We illustrate the calculation of \(N_k(x)\), \(GN_k(x)\), \(BN_k(x)\) and the hw-\(k\)NN approach on the example shown in Fig. 11.6. As described previously, hubness primarily characterizes high-dimensional data. However, in order to keep it simple, this illustrative example is taken from the domain of low dimensional vector classification. In particular, the instances are two-dimensional, therefore, they can be mapped to points of the plane as shown in Fig. 11.6. Circles (instances 1–6) and rectangles (instances 7–10) denote the training data: circles belong to class 1, while rectangles belong to class 2. The triangle (instance 11) is an instance that has to be classified.
For simplicity, we use \(k=1\) and we calculate \(N_1(x)\), \(GN_1(x)\) and \(BN_1(x)\) for the instances of the training data. For each training instance shown in Fig. 11.6, an arrow denotes its nearest neighbor in the training data. Whenever an instance \(x'\) is a good neighbor of \(x\), there is a continuous arrow from \(x\) to \(x'\). In cases if \(x'\) is a bad neighbor of \(x\), there is a dashed arrow from \(x\) to \(x'\).
We can see, e.g., that instance 3 appears twice as good nearest neighbor of other train instances, while it never appears as bad nearest neighbor, therefore, \(GN_1(x_3) = 2\), \(BN_1(x_3) = 0\) and \(N_1(x_3) = GN_1(x_3) + BN_1(x_3) = 2\). For instance 6, the situation is the opposite: \(GN_1(x_6) = 0\), \(BN_1(x_6) = 2\) and \(N_1(x_6) = GN_1(x_6) + BN_1(x_6) = 2\), while instance 9 appears both as good and bad nearest neighbor: \(GN_1(x_9) = 1\), \(BN_1(x_9) = 1\) and \(N_1(x_9) = GN_1(x_9) + BN_1(x_9) = 2\). The second, third and fourth columns of Table 11.2 show \(GN_1(x)\), \(BN_1(x)\) and \(N_1(x)\) for each instance and the calculated means and standard deviations of the distributions of \(GN_1(x)\), \(BN_1(x)\) and \(N_1(x)\).
While calculating \(N_k(x)\), \(GN_k(x)\) and \(BN_k(x)\), we used \(k=1\). Note, however, that we do not necessarily have to use the same \(k\) for the \(k\)NN classification of the unlabeled/test instances. In fact, in case of \(k\)NN classification with \(k=1\), only one instance is taken into account for determining the class label, and therefore the weighting procedure described above does not make any difference to the simple 1 nearest neighbor classification. In order to illustrate the use of the weighting procedure, we classify instance 11 with \(k'=2\) nearest neighbor classifier, while \(N_k(x)\), \(GN_k(x)\), \(BN_k(x)\) were calculated using \(k=1\). The two nearest neighbors of instance 11 are instances 6 and 9. The weights associated with these instances are:
and
As \(w_9 > w_6\), instance 11 will be classified as rectangle according to instance 9.
From the example we can see that in hw-\(k\)NN all neighbors vote by their own label. As this may be disadvantageous in some cases [49], in the algorithms considered below, the neighbors do not always vote by their own labels, which is a major difference to hw-\(k\)NN.
5.2 h-FNN: Hubness-Based Fuzzy Nearest Neighbor
Consider the relative class hubness \(u_C(x_i)\) of each nearest neighbor \(x_i\):
The above \(u_C(x_i)\) can be interpreted as the fuzziness of the event that \(x_i\) occurred as one of the neighbors, \(C\) denotes one of the classes: \(C \in \fancyscript{C}\). Integrating fuzziness as a measure of uncertainty is usual in \(k\)-nearest neighbor methods and h-FNN [54] uses the relative class hubness when assigning class-conditional vote weights. The approach is based on the fuzzy \(k\)-nearest neighbor voting framework [27]. Therefore, the probability of each class \(C\) for the instance \(x^*\) to be classified is estimated as:
Example 2
We illustrate h-FNN on the example shown in Fig. 11.6. \(N_{k,C}(x)\) is shown in the fifth and sixth column of Table 11.2 for both classes of circles (\(C_1\)) and rectangle (\(C_2\)). Similarly to the previous section, we calculate \(N_{k,C}(x_i)\) using \(k=1\), but we classify instance 11 using \(k'=2\) nearest neighbors, i.e., \(x_6\) and \(x_9\). The relative class hubness values for both classes for the instances \(x_6\) and \(x_9\) are:
According to (11.11), the class probabilities for instance 11 are:
and
As \(u_{C_2}(x_{11}) > u_{C_1}(x_{11})\), \(x_{11}\) will be classified as rectangle (\(C_2\)).
Special care has to be devoted to anti-hubs, such as instances 4 and 5 in Fig. 11.6. Their occurrence fuzziness is estimated as the average fuzziness of points from the same class. Optional distance-based vote weighting is possible.
5.3 NHBNN: Naive Hubness Bayesian \(k\)-Nearest Neighbor
Each \(k\)-occurrence can be treated as a random event. What NHBNN [53] does is that it essentially performs a Naive-Bayesian inference based on these \(k\) events
where \(P(C)\) denotes the probability that an instance belongs to class \(C\) and \(P(x_{i} \in \fancyscript{N}_k|C)\) denotes the probability that \(x_i\) appears as one of the \(k\) nearest neighbors of any instance belonging to class \(C\). From the data, \(P(C)\) can be estimated as
where \(|\fancyscript{D}^{train}_{C}|\) denotes the number of train instances belonging to class \(C\) and \(|\fancyscript{D}^{train}|\) is the total number of train instances. \(P(x_{i} \in \fancyscript{N}_k|C)\) can be estimated as the fraction
Example 3
Next, we illustrate NHBNN on the example shown in Fig. 11.6. Out of all the 10 training instances, 6 belong to the class of circles (\(C_1\)) and 4 belong to the class of rectangles (\(C_2\)). Therefore:
Similarly to the previous sections, we calculate \(N_{k,C}(x_i)\) using \(k=1\), but we classify instance 11 using \(k'=2\) nearest neighbors, i.e., \(x_6\) and \(x_9\). Thus, we calculate (11.14) for \(x_6\) and \(x_9\) for both classes \(C_1\) and \(C_2\):
According to (11.12):
As \( P(y_{11}=C_2|\fancyscript{N}_2(x_{11})) > P(y_{11}=C_1|\fancyscript{N}_2(x_{11}))\), instance 11 will be classified as rectangle.
The previous example also illustrates that estimating \(P(x_{i} \in \fancyscript{N}_k|C)\) according to (11.14) may simply lead to zero probabilities. In order to avoid it, instead of (11.14), we can estimate \(P(x_{i} \in \fancyscript{N}_k|C)\) as
where \(\varepsilon \ll 1\).
Even though \(k\)-occurrences are highly correlated, NHBNN still offers some improvement over the basic \(k\)NN. It is known that the Naive Bayes rule can sometimes deliver good results even in cases with high independence assumption violation [44].
Anti-hubs, i.e., instances that occur never or with an exceptionally low frequency as nearest neighbors, are treated as a special case. For an anti-hub \(x_i\), \(P(x_{i} \in \fancyscript{N}_k|C)\) can be estimated as the average of class-dependent occurrence probabilities of non-anti-hub instances belonging to the same class as \(x_i\):
For more advanced techniques for the treatment of anti-hubs we refer to [53].
5.4 HIKNN: Hubness Information \(k\)-Nearest Neighbor
In h-FNN, as in most \(k\)NN classifiers, all neighbors are treated as equally important. The difference is sometimes made by introducing the dependency on the distance to \(x^*\), the instance to be classified. However, it is also possible to deduce some sort of global neighbor relevance, based on the occurrence model—and this is what HIKNN was based on [50]. It embodies an information-theoretic interpretation of the neighbor occurrence events. In that context, rare occurrences have higher self-information, see (11.17). These more informative instances are favored by the algorithm. The reasons for this lie hidden in the geometry of high-dimensional feature spaces. Namely, hubs have been shown to lie closer to the cluster centers [55], as most high-dimensional data lies approximately on hyper-spheres. Therefore, hubs are points that are somewhat less ‘local’. Therefore, favoring the rarely occurring points helps in consolidating the neighbor set locality. The algorithm itself is a bit more complex, as it not only reduces the vote weights based on the occurrence frequencies, but also modifies the fuzzy vote itself—so that the rarely occurring points vote mostly by their labels and the hub points vote mostly by their occurrence profiles. Next, we will present the approach in more detail.
The self-information \(I_{x_i}\) associated with the event that \(x_i\) occurs as one of the nearest neighbors of an instance to be classified can be calculated as
Occurrence self-information is used to define the relative and absolute relevance factors in the following way:
The final fuzzy vote of a neighbor \(x_i\) combines the information contained in its label with the information contained in its occurrence profile. The relative relevance factor is used for weighting the two information sources. This is shown in (11.19).
where \(y_i\) denotes the class label of \(x_i\), for the definition of \(u_C(x_i)\) see (11.10).
The final class assignments are given by the weighted sum of these fuzzy votes. The final vote of class \(C\) for the classification of instance \(x^*\) is shown in (11.20). The distance weighting factor \(d_w(x_{i})\) yields mostly minor improvements and can be left out in practice, see [54] for more details.
Example 4
Next, we illustrate HIKNN by showing how HIKNN classifies instance 11 of the example shown in Fig. 11.6. Again, we use \(k'=2\) nearest neighbors to classify instance 11, but we use \(N_1(x_i)\) values calculated with \(k=1\). The both nearest neighbors of instance 11 are \(x_6\) and \(x_9\). The self-information associated with the occurrence of these instances as nearest neighbors:
The relevance factors are:
The fuzzy votes according to (11.19):
The sum of fuzzy votes (without taking the distance weighting factor into account):
As \(u_{C_2}(x_{11}) > u_{C_1}(x_{11})\), instance \(11\) will be classified as rectangle (\(C_2\)).
5.5 Experimental Evaluation of Hubness-Aware Classifiers
Time series datasets exhibit a certain degree of hubness, as shown in Table 11.3. This is in agreement with previous observations [43].
Most datasets from the UCR repository [28] are balanced, with close-to-uniform class distributions. This can be seen by analyzing the relative imbalance factor (RImb) of the label distribution which we define as the normalized standard deviation of the class probabilities from the absolutely homogenous mean value of \(1/m\), where \(m\) denotes the number of classes, i.e., \(m=|\fancyscript{C}|\):
In general, an occurrence frequency distribution skewness above 1 indicates a significant impact of hubness. Many UCR datasets have \(\fancyscript{S}_{N_1(x)} > 1\), which means that the first nearest neighbor occurrence distribution is significantly skewed to the right. However, an increase in neighborhood size reduces the overall skewness of the datasets, as shown in Fig. 11.7. Note that only a few datasets have \(\fancyscript{S}_{N_{10}(x)} > 1\), though some non-negligible skewness remains in most of the data. Yet, even though the overall skewness is reduced with increasing neighborhood sizes, the degree of major hubs in the data increases. This leads to the emergence of strong centers of influence.
We evaluated the performance of different \(k\)NN classification methods on time series data for a fixed neighborhood size of \(k=10\). A slightly larger \(k\) value was chosen, since most hubness-aware methods are known to perform better in such cases, as better and more reliable neighbor occurrence models can be inferred from more occurrence information. We also analyzed the algorithm performance over a range of different neighborhood sizes, as shown in Fig. 11.8. The hubness-aware classification methods presented in the previous sections (hw-\(k\)NN, NHBNN, h-FNN and HIKNN) were compared to the baseline \(k\)NN [15] and the adaptive \(k\)NN (AKNN) [56], where the neighborhood size is recalculated for each query point based on initial observations, in order to consult only the relevant neighbor points. AKNN does not take the hubness of the data into account.
The tests were run according to the 10-times 10-fold cross-validation protocol and the statistical significance was determined by employing the corrected re-sampled \(t\)-test. The detailed results are given in Table 11.4.
The adaptive neighborhood approach (AKNN) does not seem to be appropriate for handling time-series data, as it performs worse than the baseline \(k\)NN. While hw-\(k\)NN, NHBNN and h-FNN are better than the baseline \(k\)NN in some cases, they do not offer significant advantage overall which is probably a consequence of a relatively low neighbor occurrence skewness for \(k=10\) (see Fig. 11.7). The hubness is, on average, present in time-series data to a lower extent than in text or images [49] where these methods were previously shown to perform rather well.
On the other hand, HIKNN, the information-theoretic approach to handling voting in high-dimensional data, clearly outperforms all other tested methods on these time series datasets. It performs significantly better than the baseline in 19 out of 37 cases and does not perform significantly worse on any examined dataset. Its average accuracy for \(k=10\) is 84.9, compared to 82.5 achieved by \(k\)NN. HIKNN outperformed both baselines (even though not significantly) even in case of the ChlorineConcentration dataset, which has very low hubness in terms of skewness, and therefore other hubness-aware classifiers worked worse than \(k\)NN on this data. These observations reaffirm the conclusions outlined in previous studies [50], arguing that HIKNN might be the best hubness-aware classifier on medium-to-low hubness data, if there is no significant class imbalance. Note, however, that hubness-aware classifiers are also well suited for learning under class imbalance [16, 20, 21].
In order to show that the observed improvements are not merely an artifact of the choice of neighborhood size, classification tests were performed for a range of different neighborhood sizes. Figure 11.8 shows the comparisons between \(k\)NN and HIKNN for \(k \in [1,20]\), on Car and Fish time series datasets. There is little difference between \(k\)NN and HIKNN for \(k=1\) and the classifiers performance is similar in this case. However, as \(k\) increases, so does the performance of HIKNN, while the performance of \(k\)NN either decreases or increases at a slower rate. Therefore, the differences for \(k=10\) are more pronounced and the differences for \(k=20\) are even greater. Most importantly, the highest achieved accuracy by HIKNN, over all tested neighborhoods, is clearly higher than the highest achieved accuracy by \(k\)NN.
These results indicate that HIKNN is an appropriate classification method for handling time series data, when used in conjunction with the dynamic time warping distance.
Of course, choosing the optimal neighborhood size in \(k\)-nearest neighbor methods is a non-trivial problem. The parameter could be set by performing cross-validation on the training data, though this is quite time-consuming. If the data is small, using large \(k\) values might not make a lot of sense, as it would breach the locality assumption by introducing neighbors into the \(k\)NN sets that are not relevant for the instance to be classified. According to our experiments, HIKNN achieved very good performance for \(k \in [5,15]\), therefore, setting \(k=5\) or \(k=10\) by default would usually lead to reasonable results in practice.
6 Instance Selection and Feature Construction for Time-Series Classification
In the previous section, we described four approaches that take hubness into account in order to make time-series classification more accurate. In various applications, however, besides classification accuracy, the classification time is also important. Therefore, in this section, we present hubness-aware approaches for speeding-up time-series classification. First, we describe instance selection for \(k\)NN classification of time-series. Subsequently, we focus on feature construction.
6.1 Instance Selection for Speeding-Up Time-Series Classification
Attempts to speed up DTW-based nearest neighbor classification fall into four major categories: (i) speeding-up the calculation of the distance of two time series (by e.g. limiting the warping window size), (ii) indexing, (iii) reducing the length of the time series used, and (iv) instance selection. The first class of techniques was already mentioned in Sect. 11.3. For an overview of techniques for indexing and reduction of the length of time-series and more advanced approaches for limiting the warping window size, we refer to [8] and the references therein. In this section, we focus on how to speed up time-series classification via instance selection. We note that instance selection is orthogonal to the other speed-up techniques, i.e., instance selection can be combined with those techniques in order to achieve highest efficiency.
Instance selection (also known as numerosity reduction or prototype selection) aims at discarding most of the training time series while keeping only the most informative ones, which are then used to classify unlabeled instances. In case of conventional nearest neighbor classification, the instance to be classified, denoted as \(x^*\), will be compared to all the instances of the training data set. In contrast, when applying instance selection, \(x^*\) will only be compared to the selected instances of the training data. For time-series classification, despite the techniques aiming at speeding-up DTW-calculations, the calculation of the DTW distance is still relatively expensive computationally, therefore, when selecting a relatively small number of instances, such as 10 % of the training data, instance selection can substantially speed-up the classification of time-series.
While instance selection is well explored for general nearest neighbor classification, see e.g. [1, 6, 19, 24, 32], there are only few works for the case of time series. Xi et al. [57] presented the FastAWARD approach and showed that it outperforms state-of-the-art, general-purpose instance selection techniques applied for time-series.
FastAWARD follows an iterative procedure for discarding time series: in each iteration, the rank of all the time series is calculated and the one with lowest rank is discarded. Thus, each iteration corresponds to a particular number of kept time series. Furthermore, Xi et al. argue that the optimal warping window size depends on the number of kept time series. Therefore, FastAWARD calculates the optimal warping window size dependent on the number of kept time series.
In this section, we present a hubness-aware instance selection technique which was originally introduced in [9]. This approach is simpler and therefore computationally much cheaper than FastAWARD while it selects better instances, i.e., instances that allow more accurate classification of time-series than the ones selected by FastAWARD.
In [9] coverage graphs were proposed to model instance selection, and the instance selection problem was formulated as finding the appropriate subset of vertices of the coverage graph. Furthermore, it was shown that maximizing the coverage is NP-complete in general. On the other hand, for the case of time-series classification, a simple approach performed surprisingly well. This approach is called In stance S elect i on based on G raph-coverage and H ubness for T ime-series or INSIGHT.
INSIGHT performs instance selection by assigning a score to each instance and selecting instances with the highest scores (see Algorithm 4), therefore the “intelligence” of INSIGHT is hidden in the applied score function. Next, we explain the suitability of several score functions in the light of the hubness property.
-
Good 1-occurrence Score—INSIGHT can use scores that take into account how many times an instance appears as good neighbor of other instances. Thus, a simple score function is the good 1-occurrence score \(GN_1(x)\).
-
Relative Score—While \(x\) is being a good hub, at the same time it may appear as bad neighbor of several other instances. Thus, INSIGHT can also consider scores that take bad occurrences into account. This leads to scores that relate the good occurrence of an instance \(x\) to either its total occurrence or to its bad occurrence. For simplicity, we focus on the following relative score, however, other variations could be used too: relative score \(RS(x)\) of a time series \(x\) is the fraction of good 1-occurrences and total occurrences plus one (to avoid division by zero):
$$\begin{aligned} RS(x) = \frac{GN_1(x)}{N_1(x)+1} . \end{aligned}$$(11.22) -
Xi’s score—Notably, \(GN_k(x)\) and \(BN_k(x)\) allows us to interpret the ranking criterion used by Xi et al. in FastAWARD [57] as another form of score for relative hubness:
$$\begin{aligned} XI(x) = GN_1(x) - 2 BN_1(x) . \end{aligned}$$(11.23)
As reported in [9], INSIGHT outperforms FastAWARD both in terms of classification accuracy and execution time. The second and third columns of Table 11.5 present the average accuracy and corresponding standard deviation for each data set, for the case when the number of selected instances is equal to 10 % of the size of the training set. The experiments were performed according to the 10-fold cross-validation protocol. For INSIGHT, the good 1-occurrence score is used, but we note that similar results were achieved for the other scores too.
In clear majority of the cases, INSIGHT substantially outperformed FastAWARD. In the few remaining cases, their differences are remarkably small (which are not significant in the light of the corresponding standard deviations). According to the analysis reported in [9], one of the major reasons for the suboptimal performance of FastAWARD is that the skewness degrades during the FastAWARD’s iterative instance selection procedure, and therefore FastAWARD is not able to select the best instances in the end. This is crucial because FastAWARD discards the worst instance in each iteration and therefore the final iterations have substantial impact on which instances remain, i.e., which instances will be selected by FastAWARD.
6.2 Feature Construction
As shown in Sect. 11.6.1, the instance selection approach focusing on good hubs leads to overall good results. Previously, once the instances were selected, we simply used them as training data for the \(k\)NN classifier. In a more advanced classification schema, instead of simply performing nearest neighbor classification, we can use distances from selected instances as features. This is described in detail below.
First, we split the training data \(\fancyscript{D}^{train}\) into two disjoint subsets \(\fancyscript{D}^{train}_1\) and \(\fancyscript{D}^{train}_2\), i.e., \(\fancyscript{D}^{train}_1\cap \fancyscript{D}^{train}_2=\emptyset \), \(\fancyscript{D}^{train}_1\cup \fancyscript{D}^{train}_2=\fancyscript{D}^{train}\). We select some instances from \(\fancyscript{D}^{train}_1\), denote these selected instances as \(x_{sel,1}, x_{sel,2}, \ldots , x_{sel,l}\). For each instance \(x \in \fancyscript{D}^{train}_2\), we calculate its DTW-distance from the selected instances and use these distances as features of \(x\). This way, we map each instance \(x \in \fancyscript{D}^{train}_2\) into a vector space:
The representation of the data in a vector space allows the usage of any conventional classifier. For our experiments, we trained logistic regression from the Weka software package.Footnote 4 We used the mapped instances of \(\fancyscript{D}^{train}_2\) as training data for logistic regression.
When classifying an instance \(x^* \in \fancyscript{D}^{test}\), we map \(x^*\) into the same vector space as the instances of \(\fancyscript{D}^{train}_2\), i.e., we calculate the DTW-distances between \(x^*\) and the selected instances \(x_{sel,1}, x_{sel,2}, \ldots , x_{sel,l}\) and we use these distances as features of \(x^*\). Once the features of \(x^*\) are calculated, we use the trained classifier (logistic regression in our case) to classify \(x^*\).
We used the 10-fold cross-validation to evaluate this feature construction-based approach. Similarly to the case of INSIGHT and FastAWARD, the number of selected instances corresponds to 10 % of the entire training data, however, as described previously, for the feature construction-based approach, we selected the instances from \(\fancyscript{D}^{train}_1\) (not from \(\fancyscript{D}^{train}\)).
We tested several variants of the approach, for two out of them, the resulting accuracies are shown in the last two columns of Table 11.5. The results shown in the fourth column of Table 11.5 (denoted as HubFeatures) refer to the case when we performed hub-based instance selection on \(\fancyscript{D}^{train}_1\) using good 1-occurrence score. The results shown in the last column of Table 11.5 (denoted as RndFeatures) refer to the case when the instances were randomly selected from \(\fancyscript{D}^{train}_1\).
Both HubFeatures and RndFeatures outperform FastAWARD in clear majority of the cases: while they are significantly better than FastAWARD for 23 and 21 data sets respectively, they are significantly worse only for one data set. INSIGHT, HubFeatures and RndFeatures can be considered as alternative approaches, as their overall performances are close to each other. Therefore, in a real-world application, one can use cross-validation to select the approach which best suits the particular application.
7 Conclusions and Outlook
We devoted this chapter to the recently observed phenomenon of hubness which characterizes numerous real-world data sets, especially high-dimensional ones. We surveyed hubness-aware classifiers and instance selection. Finally, we proposed a hubness-based feature construction approach. The approaches we reviewed were originally published in various research papers using slightly different notations and terminology. In this chapter, we presented all the approaches within an integrated framework using uniform notations and terminology. Hubness-aware classifiers were originally developed for vector classification. Here, we pointed out that these classifiers can be used for time-series classification given that an appropriate time-series distance measure is present. To the best of our knowledge, most of the surveyed approaches have not yet been used for time-series data. We performed extensive experimental evaluation of the state-of-the-art hubness-aware classifiers on a large number of time-series data sets. The results of our experiments provide direct indications for the application of hubness-aware classifiers for real-world time-series classification tasks. In particular, the HIKNN approach seems to have the best overall performance for time-series data.
Furthermore, we pointed out that instance selection can substantially speed-up time-series classification and the recently introduced hubness-aware instance selection approach, INSIGHT, outperforms the previous state-of-the-art instance selection approach, FastAWARD, which did not take the presence of hubs explicitly into account. Finally, we showed that the selected instances can be used to construct features for instances of time-series data sets. While mapping time-series into a vector space by this feature construction approach is intuitive and leads to acceptable overall classification accuracy, the particular instance selection approach does not seem to play a major role in the procedure.
Future work may target the implications of hubness for feature construction approaches and how these features suit conventional classifiers. One would for example expect that monotone classifiers [2, 13, 23], benefit from hubness-based feature construction: the closer an instance is to a good hub, the more likely it belongs to the same class. Furthermore, regression methods may also benefit from taking the presence of hubs into account: e.g. hw-\(k\)NN may simply be adapted for the case of nearest neighbor regression where the weighted average of the neighbors’ class labels is taken instead of their weighted vote. Last but not least, due to the novelty of hubness-aware classifiers, there are still many applications in context of which hubness-aware classifiers have not been exploited yet, see e.g. [47] for recognition tasks related to literary texts. Also the classification of medical data, such as diagnosis of cancer subtypes based on gene expression levels [31], could potentially benefit from hubness-aware classification, especially classifiers taking class-imbalance into account [51].
Notes
- 1.
In this chapter, we only consider the case when each instance belongs to exactly one class. Note, however, that the presence of hubs may be relevant in the context of multilabel and fuzzy classification as well.
- 2.
Please note that the numbering of the columns and rows begins with zero, i.e., the very-first column/row of the matrix is called in this sense as the 0th column/row.
- 3.
In case of time series, consecutive values are strongly interdependent, thus instead of the length of time series, we have to consider the intrinsic dimensionality [43].
- 4.
References
Aha, D., Kibler, D., Albert, M.: Instance-based learning algorithms. Mach. Learn. 6(1), 37–66 (1991)
Altendorf, E., Restificar, A., Dietterich, T.: Learning from sparse data by exploiting monotonicity constraints. In: Proceedings of the 21st Annual Conference on Uncertainty in Artificial Intelligence, pp. 18–26. AUAI Press, Arlington, Virginia (2005)
Barabási, A.: Linked: How Everything Is Connected to Everything Else and What It Means for Business, Science, and Everyday Life. Plume, New York (2003)
Bellman, R.E.: Adaptive Control Processes—A Guided Tour. Princeton University Press, Princeton (1961)
Botsch, M.: Machine Learning Techniques for Time Series Classification. Cuvillier, Munchen (2009)
Brighton, H., Mellish, C.: Advances in instance selection for instance-based learning algorithms. Data Min. Knowl. Discov. 6(2), 153–172 (2002)
Burges, C.J.: A tutorial on support vector machines for pattern recognition. Data Min. Knowl. Discov. 2(2), 121–167 (1998)
Buza, K.A.: Fusion Methods for Time-Series Classification. Peter Lang Verlag, New York (2011)
Buza, K., Nanopoulos, A., Schmidt-Thieme, L.: Insight: efficient and effective instance selection for time-series classification. In: Proceedings of the 15th Pacific-Asia Conference on Knowledge Discovery and Data Mining. Lecture Notes in Computer Science, vol. 6635, pp. 149–160. Springer (2011)
Chen, G.H., Nikolov, S., Shah, D.: A latent source model for nonparametric time series classification. In: Advances in Neural Information Processing Systems, vol. 26, pp. 1088–1096. Springer (2013)
Cortes, C., Vapnik, V.: Support vector machine. Mach. Learn. 20(3), 273–297 (1995)
Devroye, L., Györfi, L., Lugosi, G.: A Probabilistic Theory of Pattern Recognition. Springer, New York (1996)
Duivesteijn, W., Feelders, A.: Nearest neighbour classification with monotonicity constraints. In: Machine Learning and Knowledge Discovery in Databases, pp. 301–316. Springer (2008)
Eads, D., Hill, D., Davis, S., Perkins, S., Ma, J., Porter, R., Theiler, J.: Genetic algorithms and support vector machines for time series classification. In: Applications and Science of Neural Networks, Fuzzy Systems, and Evolutionary Computation V, Proceedings of SPIE, vol. 4787, pp. 74–85 (2002)
Fix, E., Hodges, J.: Discriminatory analysis, nonparametric discrimination: consistency properties. Technical Report, USAF School of Aviation Medicine, Randolph Field (1951)
Garcia, V., Mollineda, R.A., Sanchez, J.S.: On the k-NN performance in a challenging scenario of imbalance and overlapping. Pattern Anal. Appl. 11, 269–280 (2008)
Geurts, P.: Pattern extraction for time series classification. In: Principles of Data Mining and Knowledge Discovery, pp. 115–127. Springer (2001)
Grabocka, J., Wistuba, M., Schmidt-Thieme, L.: Time-series classification through histograms of symbolic polynomials. Comput. Res. Repos.- arXiv abs/1307.6365 (2013)
Grochowski, M., Jankowski, N.: Comparison of instance selection algorithms II. Results and comments. In: International Conference on Artificial Intelligence and Soft Computing. Lecture Notes in Computer Science, vol. 3070, pp. 580–585. Springer, Berlin (2004)
Hand, D.J., Vinciotti, V.: Choosing k for two-class nearest neighbour classifiers with unbalanced classes. Pattern Recognit. Lett. 24, 1555–1562 (2003)
He, H., Garcia, E.A.: Learning from imbalanced data. IEEE Trans. Knowl. Data Eng. 21(9), 1263–1284 (2009)
He, X., Zhang, J.: Why do hubs tend to be essential in protein networks? PLoS Genet. 2(6) (2006)
Horváth, T., Vojtáš, P.: Ordinal classification with monotonicity constraints. In: Advances in Data Mining. Applications in Medicine, Web Mining, Marketing, Image and Signal Mining, pp. 217–225 (2006)
Jankowski, N., Grochowski, M.: Comparison of instance selection algorithms I. Algorithms survey. In: Proceedings of the International Conference on Artificial Intelligence and Soft Computing. Lecture Notes in Computer Science, vol. 3070, pp. 598–603. Springer, Berlin (2004)
Jolliffe, I.: Principal Component Analysis. Wiley Online Library, New York (2005)
Kehagias, A., Petridis, V.: Predictive modular neural networks for time series classification. Neural Netw. 10(1), 31–49 (1997)
Keller, J.E., Gray, M.R., Givens, J.A.: A fuzzy k-nearest-neighbor algorithm. IEEE Trans. Syst., Man Cybern. 15(4), 580–585 (1985)
Keogh, E., Shelton, C., Moerchen, F.: Workshop and challenge on time series classification. In: International Conference on Knowledge Discovery and Data Mining (KDD) (2007)
Kim, S., Smyth, P.: Segmental hidden Markov models with random effects for waveform modeling. J. Mach. Learn. Res. 7, 945–969 (2006)
Levenshtein, V.: Binary codes capable of correcting deletions, insertions, and reversals. Sov. Phys. Dokl. 10(8), 707–710 (1966)
Lin, W.J., Chen, J.J.: Class-imbalanced classifiers for high-dimensional data. Brief. Bioinform. 14(1), 13–26 (2013)
Liu, H., Motoda, H.: On issues of instance selection. Data Min. Knowl. Discov. 6(2), 115–130 (2002)
MacDonald, I., Zucchini, W.: Hidden Markov and Other Models for Discrete-Valued Time Series, vol. 1. Chapman & Hall, London (1997)
Marcel, S., Millan, J.: Person authentication using brainwaves (EEG) and maximum a posteriori model adaptation. IEEE Trans. Pattern Anal. Mach. Intell. 29, 743–752 (2007)
Martens, R., Claesen, L.: On-line signature verification by dynamic time-warping. In: Proceedings of the 13th International Conference on Pattern Recognition, vol. 3, pp. 38–42 (1996)
Marussy, K., Buza, K.: Success: a new approach for semi-supervised classification of time-series. In: Rutkowski, L., Korytkowski, M., Scherer, R., Tadeusiewicz, R., Zadeh, L., Zurada, J. (eds.) Artificial Intelligence and Soft Computing. Lecture Notes in Computer Science, vol. 7894, pp. 437–447. Springer, Berlin (2013)
Niels, R.: Dynamic time warping: an intuitive way of handwriting recognition? Master’s Thesis. Radboud University Nijmegen, The Netherlands (2004)
Petridis, V., Kehagias, A.: Predictive Modular Neural Networks: Applications to Time Series. The Springer International Series in Engineering and Computer Science, vol. 466. Springer, Netherlands (1998)
Rabiner, L., Juang, B.: An introduction to hidden Markov models. ASSP Mag. 3(1), 4–16 (1986)
Radovanović, M.: Representations and Metrics in High-Dimensional Data Mining. Izdavačka knjižarnica Zorana Stojanovića, Novi Sad, Serbia (2011)
Radovanović, M., Nanopoulos, A., Ivanović, M.: Nearest neighbors in high-dimensional data: the emergence and influence of hubs. In: Proceedings of the 26th International Conference on Machine Learning (ICML), pp. 865–872 (2009)
Radovanović, M., Nanopoulos, A., Ivanović, M.: Hubs in space: popular nearest neighbors in high-dimensional data. J. Mach. Learn. Res. (JMLR) 11, 2487–2531 (2010)
Radovanović, M., Nanopoulos, A., Ivanović, M.: Time-series classification in many intrinsic dimensions. In: Proceedings of the 10th SIAM International Conference on Data Mining (SDM), pp. 677–688 (2010)
Rish, I.: An empirical study of the naive Bayes classifier. In: Proceedings of the IJCAI Workshop on Empirical Methods in Artificial Intelligence (2001)
Sakoe, H., Chiba, S.: Dynamic programming algorithm optimization for spoken word recognition. Acoust. Speech Signal Process. 26(1), 43–49 (1978)
Schedl, M.F.A.: A Mirex meta-analysis of hubness in audio music similarity. In: Proceedings of the 13th International Society for Music Information Retrieval Conference (ISMIR 12) (2012)
Stańczyk, U.: Recognition of author gender for literary texts. In: Man-Machine Interactions 2, pp. 229–238. Springer (2011)
Sykacek, P., Roberts, S.: Bayesian time series classification. Adv. Neural Inf. Process. Syst. 2, 937–944 (2002)
Tomašev, N.: The Role of Hubness in High-Dimensional Data Analysis. Jožef Stefan International Postgraduate School (2013)
Tomašev, N., Mladenić, D.: Nearest neighbor voting in high dimensional data: learning from past occurrences. Comput. Sci. Inf. Syst. 9, 691–712 (2012)
Tomašev, N., Mladenić, D.: Class imbalance and the curse of minority hubs. Knowl. Based Syst. 53, 157–172 (2013)
Tomašev, N., Mladenić, D.: Hub co-occurrence modeling for robust high-dimensional kNN classification. In: Proceedings of the ECML/PKDD Conference. Springer (2013)
Tomašev, N., Radovanović, M., Mladenić, D., Ivanovicć, M.: A probabilistic approach to nearest neighbor classification: Naive hubness Bayesian k-nearest neighbor. In: Proceedings of the CIKM Conference (2011)
Tomašev, N., Radovanović, M., Mladenić, D., Ivanović, M.: Hubness-based fuzzy measures for high-dimensional k-nearest neighbor classification. Int. J. Mach. Learn. Cybern. 5(3), 445 (2013)
Tomašev, N., Radovanović, M., Mladenić, D., Ivanović, M.: The role of hubness in clustering high-dimensional data. IEEE Trans. Knowl. Data Eng. 99 (PrePrints), 1 (2013)
Wang, J., Neskovic, P., Cooper, L.N.: Improving nearest neighbor rule with a simple adaptive distance measure. Pattern Recognit. Lett. 28(2), 207–213 (2007)
Xi, X., Keogh, E., Shelton, C., Wei, L., Ratanamahatana, C.: Fast time series classification using numerosity reduction. In: Proceedings of the 23rd International Conference on Machine Learning (ICML), pp. 1033–1040 (2006)
Acknowledgments
Research partially performed within the framework of the grant of the Hungarian Scientific Research Fund (grant No. OTKA 108947). The position of Krisztian Buza is funded by the Warsaw Center of Mathematics and Computer Science (WCMCS).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2015 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Tomašev, N., Buza, K., Marussy, K., Kis, P.B. (2015). Hubness-Aware Classification, Instance Selection and Feature Construction: Survey and Extensions to Time-Series. In: Stańczyk, U., Jain, L. (eds) Feature Selection for Data and Pattern Recognition. Studies in Computational Intelligence, vol 584. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-45620-0_11
Download citation
DOI: https://doi.org/10.1007/978-3-662-45620-0_11
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-662-45619-4
Online ISBN: 978-3-662-45620-0
eBook Packages: EngineeringEngineering (R0)