Scientific Programming

Scientific Programming / 2016 / Article

Research Article | Open Access

Volume 2016 |Article ID 8048246 |

Honglong Xu, Rui Mao, Hao Liao, He Zhang, Minhua Lu, Guoliang Chen, "Index Based Hidden Outlier Detection in Metric Space", Scientific Programming, vol. 2016, Article ID 8048246, 14 pages, 2016.

Index Based Hidden Outlier Detection in Metric Space

Academic Editor: Michele Risi
Received30 Nov 2015
Revised30 May 2016
Accepted07 Jun 2016
Published26 Jul 2016


Useless and noise information occupies large amount of big data, which increases our difficulty to extract worthy information. Therefore outlier detection attracts much attention recently, but if two points are far from other points but are relatively close to each other, they are less likely to be detected as outliers because of their adjacency to each other. In this situation, outliers are hidden by each other. In this paper, we propose a new perspective of hidden outlier. Experimental results show that it is more accurate than existing distance-based definitions of outliers. Accordingly, we exploit a candidate set based hidden outlier detection (HOD) algorithm. HOD algorithm achieves higher accuracy with comparable running time. Further, we develop an index based HOD (iHOD) algorithm to get higher detection speed.

1. Introduction

In recent years, the rapid growth of multidimensional data brings about increasing demand for knowledge discovery, in which outlier detection is an important task with wide applications, such as credit card fraud detection [1], online video detection [2], and network intrusion detection [3].

As a matter of necessity, the wide use of outlier detection has aroused enthusiasm in many researchers. Over the past few decades, many outlier definitions and detection algorithms have been proposed in the literature [46]. Among these, statistics-based outlier detection [7, 8], which initiated a new era for data mining, has attracted an intensive study. Nevertheless, statistics-based outlier detection always depends on the probability distribution of the dataset, which is always priorly unknown.

In order to overcome shortcoming of statistics-based method, Knorr and Ng et al. proposed distance-based definition and the corresponding detection method [9, 10]. According to his definition, an object O in a dataset T is outlier if at least fraction p of the objects in T lies greater than distance D from O [10]. Soon afterwards, a number of distance-based definitions had been presented [4, 6]. Based on these definitions and their relevant detection methods, many researches significantly improved both outlier detection accuracy and speed.

However, by existing definitions, outliers tend to be far from their nearest neighbors. As a result, if a small number of outliers are close to each other but are far from other points, which also known as outlier cluster, they are not likely to be determined as outliers because of their adjacency to each other. In this case, these points are hidden by each other. In other words, outlier itself has bad influence on detection accuracy [11]. In this paper, we propose a new perspective of hidden outlier that can uncover those hidden ones by traditional definitions and also design a new detection algorithm. Specifically, we make the following contributions:(1)A more accurate definition of outlier taking hidden outliers into consideration.(2)An effective detection algorithm for the definition proposed, with higher accuracy only at the cost of a little more time.(3)An index based HOD (iHOD) algorithm and getting much higher detection speed.(4)A simple but effective algorithm to select pivot for iHOD algorithm to avoid selecting outliers as pivots.

The rest of this paper is organized as follows. In Section 2, we will discuss several commonly used outlier definitions and relevant detection algorithms, along with their efficiency variants. Section 3 proposes the definition of hidden outlier and Section 4 proposes its detection algorithms. Experimental results are presented in Section 5, followed by conclusion and future work in Section 6.

As mentioned in the introduction, there are many definitions and detection algorithms for outliers, among which Hawkins’s work [12] stands out as the first. Following this work, three major distance-based definitions of outliers have been proposed, namely, k-R outlier [9, 10], k-distance-based outlier [13], and distance sum-based outlier [14].

k-R outlier [9, 10] in a dataset is a point that no more than k points are within distance R to it, denoted as [15]. Please note that the definition of k-R outlier is essentially equivalent to definition [9, 10], by which a point in a dataset T is an outlier if at least a fraction p of all points in T is beyond distance D to it.

k-distance-based [13] outlier in a dataset is the point whose distance to its kth nearest neighbor is the largest among all points. Usually, the distance of a point to its kth nearest neighbor is considered as its outlier degree, and the n points with the largest outlier degrees are determined as outliers, denoted as [15].

The definition of distance sum-based outlier [14] considered the sum of distances from a point to its k nearest neighbors as its outlier degree, and the n points with the largest sums are determined as outliers which can be denoted as . Similarly, distance average-based outlier, an equivalent definition in which the average distance to k nearest neighbors is considered, can be defined and denoted as [15]. Because kNN method is easy to implement [16], the above three distance-based definitions become popular.

In addition, density-based outlier is actually distance-based outlier; for example, LOF [17], the most famous density-based definition, was accomplished in detecting outliers from a dataset with different densities, while ordinary definitions are not qualified for this work.

Distance-based outlier detection algorithm was always designed for one or several definitions. Over the past decades, many detection algorithms were proposed since the above definitions emerged, in which the most famous one is ORCA [18]. ORCA has been honoured as the state-of-art algorithm [18] because of its simplicity and efficiency. What is more, it supports any outlier definitions with monotonically decreasing function of the nearest neighbor distances such as or . After that, many variants appeared in the literature, including solving set algorithm [19], MIRO [20], RCS [21], and iORCA [22]. It should be noted that not all the variants support the same definitions as ORCA [18]; for instance, iORCA [22] could not support definition.

For speeding up kNN search [16], some researchers exploit other research methods, for example, index based algorithm. Knorr et al. first bring forward index based method. According to their description, R-tree and k-d tree can be applied [10]. After that, k-d tree based method was proposed and had got a time complexity of [23]. Other detection algorithms, including HilOut based algorithm [24], P tree based algorithm [25], LSH based algorithm [26, 27], and SFC index [28], use different index structure to speed up detection. Besides, sample method was applied to reduce distance computations [29].

k-R outlier also attracted many researchers since Knorr and Ng et al. proposed outlier definition and three relevant algorithms (nested-loop, index based, and cell-based algorithm) [9, 10]. For example, Tao et al.’s SNIF algorithm [30] can detect all outliers by scanning the dataset at most twice and even once in some cases. DOLPHIN algorithm [31] is also an efficient method to detect k-R outlier. However, k-R outlier has a shortcoming that parameters are difficult to set [13].

Similarly, the research works for density-based detection algorithm started from their incipient definition, which is LOF [17]. The variants or improved algorithms included COF [32], MDEF [33], Ensemble method [34], and so forth.

Since this paper aimed at outlier definition, we just took three most popular and simplest algorithms as comparison algorithm: ORCA [18], which is the state-of–art distance-based outlier detection algorithm, LOF [17], the most representative density-based outlier detection method, and iORCA [22], latest index based outlier detection algorithm in metric space. For ORCA and iORCA, and were used as outlier definition, respectively.

3. Definition of Hidden Outlier

In this section, we propose the new perspective of hidden outlier. The basic idea is that once an outlier is detected, exclude it from the nearest neighbors of other points.

3.1. Cause of Hidden Outlier

As is shown in Figure 1, points A and B are outliers, but point C is not. In this case, if we set and detect TOP 2 outliers by distance sum-based outlier definition, A and C will be detected as outliers, other than B, which is a real outlier. However, A and C will be detected as outliers, other than B, which is a real outlier. The reason is that the existence of A reduces the outlier degree of B, leading to the mistake in detection.

3.2. Definition of Hidden Outlier

If a small number (e.g., equal to or greater than 2) of points are close to each other but are far to other points, they are usually deemed as outliers. However, traditional distance-based definitions of outliers determine an outlier by its distances to its nearest neighbors. As a result, those small number of points close to each other are usually not outliers according to traditional definitions. In this situation, outliers seem to be hidden by each other, and they can be called hidden outliers.

Our definition of outliers which include hidden ones, denoted as , is extended from the definition of distance-based outlier. Here we take distance sum-based outlier, , as example to give detailed description. Notation summarizes the notations and their description.

Let D be a dataset, let dist be a distance function, let p be a point, and let be the ith nearest neighbor of p in D. Please note that a point is not considered as a nearest neighbor of itself. Further, let be the ith outlier by definition, let be the outlier degree of , and let -outlier be the set of outliers of the largest values of outlier degree. According to the definition of , is given by

Let be the ith outlier by our new definition, let be p’s outlier degree, and let -outlier be the set of first n outliers.

Definition 1. The definition of outliers include hidden ones, , defines the outliers in an iterative way:

Definition 2. The outlier degree of p by definition, , is defined as

In other words, is still the sum of distances from p to its k nearest neighbors, while outliers already detected are not considered as p’s nearest neighbors. Please note that the sequence of , might not be in descending order.

The other definition of outliers may be deduced by analogy. For example, , we can simply displace the outlier degree of as that of , which is

Then we can give the same definition of hidden outlier and its degree as Definitions 1 and 2. It is worth mentioning that, for simplicity, based hidden outlier will be called ksum hidden outlier, while hidden outlier will be called kmax hidden outlier. Though both HOD (Section 4.1) and iHOD (Section 4.2) can apply these two definitions, for the limited space, they will only use one definition, respectively, in our experiments.

4. Hidden Outlier Detection Algorithm

In this section, the detection algorithms designed for hidden outlier are proposed, together with several theorems and definitions.

4.1. Hidden Outlier Detection Algorithm

The detection algorithm of is presented in this section. We start from a few theorems and concepts together which can be used to speed up the detection.

Theorem 3. The hidden outlier degree is always no less than the outlier degree or .

The proof is straightforward from the definitions of both outlier degrees and is thus omitted.

Theorem 4. The ith hidden outlier’s outlier degree is no less than that of the ith outlier by ; that is, .

Proof. () if , the equation clearly holds.
() If , one has the following.
(a) If , there must exist t, such that . From Theorem 3 and the definition of , (b) Otherwise, there must exist t, such that -outlier, . From Definition 2, Theorem 3, and the definition of ,

For convenience, we introduce two more definitions, maximum possible outlier degree and hidden outlier candidate set, and related theorems to show their properties.

Definition 5. The maximum possible outlier degree of  p, , is the hidden outlier degree of p assuming that all the first nearest neighbors of p are detected as outliers and thus are excluded from contributing to p’s hidden outlier degree. That is,From Definition 5, we give the following obvious theorem without proof.

Theorem 6.

Definition 7. The hidden outlier candidate set, (D), is a subset of D such that, for each .

The following theorem shows the purpose in defining hidden outlier candidate set.

Theorem 8. The hidden outlier candidate sets, (D), contains all of the outliers defined by .

Proof. For an arbitrary outlier p defined by , from definition and from Theorem 4, .
From Theorem 6, .
As a result, ; that is, .

Our hidden outlier detection (HOD) algorithm (Algorithm 1) is based on the ORCA algorithm [18]. HOD searches nearest neighbors (in consideration of performance, n must be small) of every data block (lines ). Once an object is impossible to become an outlier, it will be removed from data block (line ). After processing a data block, HOD gets current -outlier (line ) and updates cutoff value c (line ) and then maintains hidden outlier candidate set at the same time (lines ), including deleting the objects with smaller MPW than c (lines -) and adding the objects with larger MPW than c (lines -). Finally the candidate set is filtered to get the final results (Algorithm 2).

Input: , ,
Output: -outlier
(1)   ;
(2)  ;
(3)  ; // is a data block of dataset
(4)  while   get-next-block()  
(5)   for each in   
(6)    for each in   
(7)      ); update .NN
(8)      if   remove from ;
(9)   for each in   
(10)    //update ;
(11)      //update ;
(12)    for each cs in   
(13)     if ()
(14)      delete cs from ;
(15)    if ()
(16)     insert to ;
(17)   process();
(18)  return ;
Input:  ,
(1)  , delete from ;
(2)  Set ;
(3)  for each cso in   
(4)   if  () update cso.NN and ;  
(5)  ++; (), delete it from and insert to -outlier;
(6)  if  ()  do   line (3)
(7)  return -outlier;

Algorithm 2 shows how the candidate set is filtered to get the final results. is first moved from (D) to -outlier (line ), because the first outlier of -outlier and first outlier -outlier are the same. Then the last outlier of -outlier is checked to see whether it is a nearest neighbor of some objects in (D). If yes, it is deleted from that object’ nearest neighbors and the hidden outlier degree (lines ) is updated. Next, the object with the largest hidden outlier degree in (D) is moved to -outlier (line ), and the process goes back to line until there are n outliers (line ).

As Bay and Schwabacher indicated, ORCA [18] has time complexity on average and in the worst case. In contrast to ORCA [18], HOD searches more nearest neighbors and thus costs more time and memory space. Further, HOD prunes less normal objects and results in more distance computations. However, these do not increase HOD’s time complexity because as more data blocks have been processed, the cutoff value c becomes larger and more normal objects will be pruned. In other words, the pruning mechanism is the same as ORCA [18]. After searching a data block’s nearest neighbors, HOD maintains an outlier candidate set and updates it after updating c, which can be implemented by a fast priority queue. In addition, experimental results show that the candidate set size keeps constant as a whole with various dataset sizes, limiting the overhead of filtering process described in Algorithm 2.

4.2. Index Based Hidden Outlier Detection Algorithm

In order to speed up HOD algorithm, we draw on the experience of iORCA and develop a simple index based hidden outlier detection algorithm. As we discussed in Section 2, iORCA is a very excellent distance-based improvement from ORCA, which is the state-of-the-art method in outlier detection. It is worth mentioning that the build index process (Algorithm 3) of iORCA is very simple and almost costs little time. However, the only fly in the ointment is that iORCA is short of pivot selection method. Addressing this shortcoming, we propose a simple but efficient pivot selection algorithm (Algorithm 4).

Input: , pivot
Output: index
(1) ;
(2) for each in
(3) ;
(4) sort(); //sorted by the distance value in
      //descending order
(5) return ;
Input: ,
(1) ;
(2) (); // is usually a data block of dataset
(3) blockIndex buildIndex();
(4) divide blockIndex into partNum equal segments; //
  and 10, every segment has the same number of points
(5) get pivotNum segments with smallest skip distance;
(6) pivot middle object of every smallest segment;
(7) return pivot;

The most important idea of iORCA is to update the cutoff value faster. In Algorithm 3, we can see that, in order to achieve this goal, iORCA simply calculates the distance between every object to pivot (lines -) and then sort them from large to small (line ). Obviously, both the time and memory consuming of this index are very small.

The largest difference between similarity search and outlier detection is that similarity search procedure may be used many times, for searching different object, while outlier detection procedure may be used for only several times, even just one time. That is a decision that their pivot selection method for building index will be different. Since similarity search always follows the rules of Offline Construction and Online Search [35, 36], it can spend more time to select pivots and build index, other than outlier detection to save time in this stage.

As Bhaduri et al. said that if we select inlier points as pivots, the points farthest from them will be more likely to be the outliers [22]. To benefit from this, the goal of our pivot selection algorithm is to select density points as pivots. However, the accurate search of density points is too expensive. So, in our pivot selection algorithm, we only find out the approximate density regions (lines -) and then choose the middle point of these regions (line ).

In addition, we only take a part of dataset to select pivots, and usually a data block is enough. Due to the small percentage of outliers, it is almost impossible to select outliers as pivots via this subset using our method. The flowchart of iHOD algorithm is shown in Figure 2.

The stopping rule (Theorem 9) of iORCA can be applied in iHOD as well to quickly stop updating the cutoff value.

Theorem 9 (iORCA stopping rule [22]). Let be the dataset, let be the cutoff value, let be the pivot, and let be any test point currently being tested by iORCA (or iHOD); if then iORCA (or iHOD) can terminate with the correct -outlier and cutoff value.
In addition, we propose other rules to reduce the distance computing times.

Theorem 10. If , then iHOD can stop updating hidden outlier candidate set.

Theorem 10 can be proved similar to Theorem 9.

Theorem 11. Ifthen is no longer the k nearest neighbors of .

Proof. Using Triangle Inequality, there isso we have In other words, is faster than the th nearest neighbor of . So is no longer the nearest neighbors of .

Our index based hidden outlier detection algorithm (Algorithm 5) combines iORCA (lines ) and HOD (lines (24)) algorithms and updates them with pivot selection algorithm (line ) and Theorem 11 (line ()), finally resulting in its high performance.

Input: , ,
(1)  ; ; ; // is a data block of dataset
(2)  pivot pivotSelection();
(3)  (); // is a data block of dataset
(4)  while  
(5)   if (Theorem 10 holds for ) then break;
(6)   else
(7)    ;
(8)    ;
(9)    (, startID);
(10)    for each in with order
(11)    for each in   
(12)      if (Theorem 11 doesn’t hold for and )  
(13)       ; update .NN
(14)       if   remove from ;
(15)    for each in   
(16)    if (Theorem 9 doesn’t holds for )
(17)     ()  //update ;
(18)      //update ;
(19)    for each cs in   
(20)     if ()
(21)      delete cs from ;
(22)    if ()
(23)     insert to ;
(24)   process();
(25)  return ;

5. Experimental Results

In this section, we compare HOD and iHOD algorithm with ORCA [18], iORCA [22], and LOF [17], three popular distance-based outlier detection algorithms, in both accuracy and efficiency.

5.1. Test Suite

We follow a common way [37] in constructing the test suite. Four popular real world classification datasets are picked from the UCI Machine Learning Repository [38], and then a few objects from a class of small cardinality together with other larger classes are finally picked as the test suite. The first dataset is from the KDD Cup 1999 dataset, used by Yang [37]. The first 20,000 TCP data of its ten percent version, which has 76 abnormal connections or outliers, are picked. The second dataset is from the Optdigits (short for Optical Recognition of Handwritten Digits) dataset. The first 10 records from class 0, served as outliers, together with other 3,447 records are picked. The third one is from the Breast Cancer Wisconsin (Diagnostic) dataset. The first 10 records of the malignant ones, served as outliers, are picked, making 367 as the total number of records. The last one is from the Heart Disease dataset. All records in class 4, serving as outliers, together with other records except in classes 1–3 are picked. Altogether, there are 203 records with 15 outliers in dataset 4.

After a simple constructing, these four datasets are match for Hawkins’s outlier definition [12], which is generally acceptable.

5.2. Evaluation Methodology

In statistics, a receiver operating characteristic (ROC) or ROC curve is a graphical plot that illustrates the performance of a binary classifier system as its discrimination threshold is varied. The curve is created by plotting the true positive rate (TPR) against the false positive rate (FPR) at various threshold settings. Calculate the Area Under Curve (AUC), and the larger it is, the better it is.

With regard to outlier detection, as mentioned before, let be the dataset, let be the dataset size, and let be the various threshold setting parameter. In other words, when is set as a specific value, the top-n outliers will be identified as outliers, and other points in the dataset are regarded as inliers. So, for a specific , we can get a couple value of TPR and FPR. Vary from 0 to ; we can easily get the ROC curve and then calculate the AUC value.

Obviously, the above calculation is in the case that neighbor number k is specific. If we vary it, then we can get the AUC-k graphical plot, which make us easily see the outlier detection accuracy with regard to parameter k.

5.3. Experimental Results

The experiments were run on a desktop with Intel Core 3.40 GHz processor, 8 GB RAM, running Windows 7 Professional Service Pack 1. The algorithms were implemented in C++ and compiled with Visual Studio 2012 in Release Mode. Unless otherwise specified, both the parameters k in determining nearest neighbors and detecting outlier number n are set as 10. The accuracy is first studied, then the running time and performance of pivot selection algorithm at last.

5.3.1. Accuracy

The accuracy of the five algorithms, namely, HOD, ORCA [18], iHOD, iORCA [22], and LOF [17], is first studied by way of AUC. For each constant value of k, the AUC values of the three algorithms with various values of n are computed. Then the AUC values of various values of k are plotted in Figure 3. Please note that ORCA uses definition, and HOD uses its extensional ksum hidden outlier, while iORCA uses definition, and iHOD uses kmax hidden outlier.

It can be seen that HOD and ORCA achieve higher AUC values than LOF for almost all of the cases, for the four datasets. Further, HOD is better than ORCA for most of the cases. For the cases when ORCA is better than HOD, the values are close to 1, and the difference is thus marginal. Also, we can see the appearance of iHOD and iORCA.

To see the difference more clearly, we further compare the three algorithms by way of true positives (Figure 4). Obviously, iHOD is the best in most cases while LOF is the worst for almost all of the cases. Particularly, the true positives of LOF are close to 0 for the KDD Cup 1999 and Optdigits dataset. In Figure 4(c), we can see that HOD and iHOD have got the true positives similar to ORCA and iORCA, respectively. This is because Breast Cancer Wisconsin (Diagnostic) dataset is free of outliers hidden by other ones.

In order to see more details about the performance of iHOD, we also do some Non-Parametric Tests [39], including Friedman’s test [40] and Hochberg’s procedure [41]. However, even though Hochberg’s testing results show that the difference between iHOD and iORCA is insignificant, it can be seen from Figures 3 and 4 that iHOD has actually made improvements from iORCA, which is an excellent outlier detection algorithm. Table 1, which is the rankings of average true positives from Figure 4, also shows that iHOD outperforms iORCA.



5.3.2. Efficiency

As mentioned earlier, an extra piece of work of HOD and iHOD is to filter through the candidate set, which may cost much time if the candidate set size is too large. The candidate size with respect to values of n (Figure 5) and dataset size (Figure 6) are plotted. The Breast Cancer Wisconsin (Diagnostic) dataset and the Heart Disease dataset are not included due to their tiny sizes. Clearly, the candidate set size is not strongly correlated to the dataset size, making its effect to the running time limited.

The running time of the seven algorithms for the KDD Cup 1999 dataset and the Optdigits dataset is listed in Figure 7, respectively. Please note that HOD has better accuracy than ORCA [18] and LOF [17], while iHOD is better than almost all algorithms, as indicated in last section. To make the comparison fair, we extend ORCA and iORCA [22] to HORCA and HiORCA to achieve the same detection results of HOD and iHOD. That is, run ORCA or iORCA n times, while each time only one outlier is detected and is removed from following runs. The running time of HORCA and HiORCA is also listed in the tables.

The figure shows clearly that the running time of LOF increases dramatically as the dataset size increases. HOD, with better accuracy, takes almost 1.5 times of the time as that of ORCA [18]. However, HORCA, with the equivalent accuracy as that of HOD, takes up to 9 times of the running time as that of HOD. To our surprise, iHOD runs even faster than iORCA [22]. This is because iHOD uses Theorem 10 to get a large reduction of distance calculation times.

5.3.3. Performance of Pivot Selection Algorithm

In order to estimate the performance of pivot selection algorithm, we compare iORCA/iHOD with/without pivot selection algorithm, in both running time and distance calculation times. For the sake of accuracy, we ran every experiment setup for 10 times and then get their standard deviation and mean value.

From Tables 2 and 3, we can see that our pivot selection algorithm makes the experiment results very stable and even gets better results in mean value of running time and distance calculation times.


CategoryStandard deviationMean valueStandard deviationMean valueStandard deviationMean valueStandard deviationMean value

iORCA random16.7697.608.01,363.5021.72,040.6078.52,725.40
iORCA psm4.9688.108.11,379.1034.62,098.2026.12,717.60
iHOD random39.0216.7096.4368.1054.6405.6033.6458.80
iHOD psm21.2232.2035.9309.0083.2402.6022.2441.60


CategoryStandard deviationMean valueStandard deviationMean valueStandard deviationMean valueStandard deviationMean value

iORCA random5.23504.11.391,002.50.2011,502.50.3322,003.3
iORCA psm0.00501.40.0591,002.00.0481,502.50.1572,003.0
iHOD random30.04124.456.23197.728.54209.820.85223.2
iHOD psm15.17137.024.59165.746.41197.610.19211.0

As other popular outlier detection algorithms like ORCA [18], iORCA [22], and LOF [17], both HOD and iHOD have two parameters, which are nearest neighbor number k and outlier number n. However, for these two parameters, it is unwise to decrease their value in order to get improvement in efficiency, because it may seriously reduce the detection quality. In fact, k can be set refer to an so on. Though n is in proportion to candidate set size, thereby increasing the running time. Fortunately, n depends on user’s requirement, so it is usually not large.

5.4. Analysis of Mistakenly Detection

As we all know, HOD and iHOD algorithms detect next outlier after excluding the detected outliers, so that they can detect more real outliers. Is there any possibility that the normal objects are mistakenly detected as outliers?

To analyze easily, we let be the dataset, let be the original outlier definition, and let be the dimension number of datasets; region with radius of consists of objects, which include outlier . Another region, , with the same radius, consists of objects, including normal object . According to distance-based outlier definition, there is .

The expected outlier degree of and , and , is as follows:

After taking out objects from region and separately, the expected outlier degree of and becomes

The variation of and ’s outlier degree should be

For ease of analysis, we can set

So that

Because , , we can compare their value via their ratio

Obviously, from formula (16), there is

Since , there is

As a result, , which is .

In other words, the variation of outlier is larger than normal object, so that it is easier to be detected as outlier. However, owing to the complexity of dataset distribution and the limitations of distance-based outlier definition, it remains possible that a very few normal objects may be mistakenly detected.

6. Conclusions and Future Work

In this paper, we propose a new distance-based outlier definition to detect hidden outliers and design a corresponding detection algorithm, which excludes detected outliers to reduce their influence and improve the accuracy. Candidate set based method also avoids repeating detecting the whole dataset. Experimental results show that our HOD algorithm is more accurate than ORCA [18] and LOF [17]. Further, with better accuracy, HOD is much faster than LOF and is of comparable speed to that of ORCA. In addition, to achieve the same accuracy, ORCA takes up to 9 more times of running time than HOD. With the help of Triangle Inequality to reduce the distance calculation times, iHOD gets a much faster speed than iORCA and HiORCA. Moreover, we develop a pivot selection algorithm to avoid choosing outliers as pivots, and in experiments, we also show that our method can achieve stability of the results.

Our definition and algorithm are extended from two distance-based outlier detection algorithms: ORCA [18] and iORCA [22]. The case of hidden outlier also exists for density-based outlier detection, which we will study in the future. Besides, we will further study how to choose right pivots to speed up our detection algorithm.


:Hidden outlier definition; see details in Definition 1
dist:Distance function
p:An object of dataset
n:Number of outliers to detect
k:Number of neighbors for calculating outlier degree
:The ith nearest neighbor of p in dataset D
:The ith outlier by definition
:Outlier degree of p in dataset D
-outlier:The set of top-n outliers with respect to traditional outlier definition
:The ith outlier by hidden outlier definition
: p’s hidden outlier degree in dataset D; see details in Definition 2
-outlier:The set of top-n hidden outliers
Maximum possible outlier degree of p, with regard to dataset D. See details in Definition 5
:Hidden outlier candidate set, each object of which has larger maximum possible outlier degree than cutoff value c
:Cutoff value, equal to the outlier degree of current th outlier. Namely, or depends on the outlier definition
B:A data block, that is, a set of objects
L:Index, for example, , denotes index of the dataset D
blockIndex:Index of a data block
partNum:Number of segments/partitions
pivotNum:Number of pivots. In this paper, it can only be set as .

Competing Interests

The authors declare that there are no competing interests regarding the publication of this paper.


Dr. Minhua Lu is the corresponding author. This research was supported by the following Grants: China 863: 2015AA015305; NSF-China: U1301252 and 61471243; Guangdong Key Laboratory Project: 2012A061400024; NSF-Shenzhen: JCYJ20140418095735561, JCYJ20150731160834611, JCYJ20150625101524056, and SGLH20131010163759789; Educational Commission of Guangdong Province: 2015KQNCX143.


  1. W.-F. Yu and N. Wang, “Research on credit card fraud detection model based on distance sum,” in Proceedings of the International Joint Conference on Artificial Intelligence (JCAI '09), pp. 353–356, IEEE, Hainan Island, China, April 2009. View at: Publisher Site | Google Scholar
  2. L. Chen, Y. Zhou, and D. M. Chiu, “Analysis and detection of fake views in online video services,” The ACM Transactions on Multimedia Computing, Communications, and Applications, vol. 11, no. 2, pp. 1–20, 2015. View at: Google Scholar
  3. N. A. M. Hassim, “Rough outlier method for network intrusion detection,” International Journal of Information Processing and Management (IJIPM), vol. 4, no. 7, pp. 39–50, 2013. View at: Google Scholar
  4. M. A. F. Pimentel, D. A. Clifton, L. Clifton, and L. Tarassenko, “A review of novelty detection,” Signal Processing, vol. 99, pp. 215–249, 2014. View at: Publisher Site | Google Scholar
  5. M. Albayati and B. Issac, “Analysis of intelligent classifiers and enhancing the detection accuracy for intrusion detection system,” International Journal of Computational Intelligence Systems, vol. 8, no. 5, pp. 841–853, 2015. View at: Publisher Site | Google Scholar
  6. J. Singh and S. Aggarwal, “Survey on outlier detection in data mining,” International Journal of Computer Applications, vol. 67, no. 19, pp. 29–32, 2013. View at: Publisher Site | Google Scholar
  7. V. Barnett and T. Lewis, Outliers in Statistical Data, vol. 3, Wiley, New York, NY, USA, 1994. View at: MathSciNet
  8. P. J. Rousseeuw and M. Hubert, “Robust statistics for outlier detection,” Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, vol. 1, no. 1, pp. 73–79, 2011. View at: Publisher Site | Google Scholar
  9. E. M. Knorr and R. T. Ng, “Algorithms for mining distancebased outliers in large datasets,” in Proceedings of the International Conference on Very Large Data Bases, New York, NY, USA, 1998. View at: Google Scholar
  10. E. M. Knorr, R. T. Ng, and V. Tucakov, “Distance-based outliers: algorithms and applications,” The VLDB Journal, vol. 8, no. 3-4, pp. 237–253, 2000. View at: Publisher Site | Google Scholar
  11. H. Liao, A. Zeng, and Y.-C. Zhang, “Predicting missing links via correlation between nodes,” Physica A: Statistical Mechanics and Its Applications, vol. 436, pp. 216–223, 2015. View at: Google Scholar
  12. D. M. Hawkins, Identification of Outliers, vol. 11, Springer, New York, NY, USA, 1980. View at: MathSciNet
  13. S. Ramaswamy, R. Rastogi, and K. Shim, “Efficient algorithms for mining outliers from large data sets,” ACM SIGMOD Record, vol. 29, no. 2, pp. 427–438, 2000. View at: Publisher Site | Google Scholar
  14. F. Angiulli and C. Pizzuti, “Outlier mining in large high-dimensional data sets,” IEEE Transactions on Knowledge and Data Engineering, vol. 17, no. 2, pp. 203–215, 2005. View at: Publisher Site | Google Scholar
  15. L. Cao, D. Yang, Q. Wang, Y. Yu, J. Wang, and E. A. Rundensteiner, “Scalable distance-based outlier detection over high-volume data streams,” in Proceedings of the 30th IEEE International Conference on Data Engineering (ICDE '14), pp. 76–87, Chicago, Ill, USA, March 2014. View at: Publisher Site | Google Scholar
  16. R. Mao, P. Xiang, and D. Zhang, “Precise transceiver-free localization in complex indoor environment,” China Communications, vol. 13, no. 5, pp. 28–37, 2016. View at: Publisher Site | Google Scholar
  17. M. M. Breuniq, H.-P. Kriegel, R. T. Ng, and J. Sander, “LOF: identifying density-based local outliers,” ACM SIGMOD Record, vol. 29, no. 2, pp. 93–104, 2000. View at: Publisher Site | Google Scholar
  18. S. D. Bay and M. Schwabacher, “Mining distance-based outliers in near linear time with randomization and a simple pruning rule,” in Proceedings of the 9th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD '03), pp. 29–38, ACM, August 2003. View at: Publisher Site | Google Scholar
  19. F. Angiulli, S. Basta, and C. Pizzuti, “Distance-based detection and prediction of outliers,” IEEE Transactions on Knowledge and Data Engineering, vol. 18, no. 2, pp. 145–160, 2006. View at: Publisher Site | Google Scholar
  20. N. H. Vu and V. Gopalkrishnan, “Efficient pruning schemes for distance-based outlier detection,” in Machine Learning and Knowledge Discovery in Databases, pp. 160–175, Springer, Berlin, Germany, 2009. View at: Google Scholar
  21. C.-C. Szeto and E. Hung, “Mining outliers with faster cutoff update and space utilization,” Pattern Recognition Letters, vol. 31, no. 11, pp. 1292–1301, 2010. View at: Publisher Site | Google Scholar
  22. K. Bhaduri, B. L. Matthews, and C. R. Giannella, “Algorithms for speeding up distance-based outlier detection,” in Proceedings of the 17th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD '11), pp. 859–867, ACM, San Diego, Calif, USA, August 2011. View at: Publisher Site | Google Scholar
  23. A. Chaudhary, A. S. Szalay, and A. W. Moore, “Very fast outlier detection in large multidimensional data sets,” in Proceedings of the ACM SIGMOD Workshop on Research Issues in Data Mining and Knowledge Discovery (DMKD '02), 2002. View at: Google Scholar
  24. F. Angiulli and C. Pizzuti, “Fast outlier detection in high dimensional spaces,” in Proceedings of the 6th European Conference on Principles of Data Mining and Knowledge Discovery (PKDD '02), pp. 15–27, Springer. View at: Google Scholar
  25. D. Ren, I. Rahal, W. Perrizo, and K. Scott, “A vertical distance-based outlier detection method with local pruning,” in Proceedings of the 13th ACM International Conference on Information and Knowledge Management (CIKM '04), pp. 279–284, ACM, November 2004. View at: Publisher Site | Google Scholar
  26. Y. Wang, S. Parthasarathy, and S. Tatikonda, “Locality sensitive outlier detection: a ranking driven approach,” in Proceedings of the IEEE 27th International Conference on Data Engineering (ICDE '11), pp. 410–421, Hannover, Germany, April 2011. View at: Publisher Site | Google Scholar
  27. M. R. Pillutla, N. Raval, P. Bansal, K. Srinathan, and C. V. Jawahar, “LSH based outlier detection and its application in distributed setting,” in Proceedings of the 20th ACM Conference on Information and Knowledge Management (CIKM '11), pp. 2289–2292, ACM, Glasgow, Scotland, October 2011. View at: Publisher Site | Google Scholar
  28. M. Radovanović, A. Nanopoulos, and M. Ivanović, “Reverse nearest neighbors in unsupervised distance-based outlier detection,” IEEE Transactions on Knowledge and Data Engineering, vol. 27, no. 5, pp. 1369–1382, 2015. View at: Publisher Site | Google Scholar
  29. M. Wu and C. Jermaine, “Outlier detection by sampling with accuracy guarantees,” in Proceedings of the 12th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD '06), pp. 767–772, ACM, Philadelphia, Pa, USA, August 2006. View at: Google Scholar
  30. Y. Tao, X. Xiao, and S. Zhou, “Mining distance-based outliers from large databases in any metric space,” in Proceedings of the 12th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD '06), pp. 394–403, August 2006. View at: Google Scholar
  31. F. Angiulli and F. Fassetti, “DOLPHIN: an efficient algorithm for mining distance-based outliers in very large datasets,” ACM Transactions on Knowledge Discovery from Data, vol. 3, no. 1, article 4, 2009. View at: Publisher Site | Google Scholar
  32. J. Tang, Z. Chen, A. W. Fu, and D. W. Cheung, “Enhancing effectiveness of outlier detections for low density patterns,” in Advances in Knowledge Discovery and Data Mining, vol. 2336 of Lecture Notes in Computer Science, pp. 535–548, Springer, Berlin, Germany, 2002. View at: Publisher Site | Google Scholar
  33. S. Papadimitriou, H. Kitagawa, P. B. Gibbons, and C. Faloutsos, “LOCI: fast outlier detection using the local correlation integral,” in Proceedings of the 19th International Conference on Data Ingineering, pp. 315–326, IEEE, Bangalore, India, March 2003. View at: Publisher Site | Google Scholar
  34. H.-P. Kriegel, M. Schubert, and A. Zimek, “Subsampling for efficient and effective unsupervised outlier detection ensembles,” in Proceedings of the 19th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 444–452, ACM, August 2008. View at: Publisher Site | Google Scholar
  35. R. Mao, P. Zhang, X. Li, X. Liu, and M. Lu, “Pivot selection for metric-space indexing,” International Journal of Machine Learning and Cybernetics, vol. 7, no. 2, pp. 311–323, 2016. View at: Publisher Site | Google Scholar
  36. R. Mao, H. Xu, W. Wu, J. Li, Y. Li, and M. Lu, “Overcoming the challenge of variety: big data abstraction, the next evolution of data management for AAL communication systems,” IEEE Communications Magazine, vol. 53, no. 1, pp. 42–47, 2015. View at: Publisher Site | Google Scholar
  37. M. Yang, Research on Algorithms for Outlier Detection, Huazhong University of Science & Technology, 2012.
  38. UCI Machine Learning Repository: Data Sets,
  39. S. García, A. Fernández, A. D. Benítez, and F. Herrera, “Statistical comparisons by means of non-parametric tests: a case study on genetic based machine learning,” in II Congreso Español de Informática (CEDI '07), pp. 95–104, Zaragoza, Spain, September 2007. View at: Google Scholar
  40. D. J. Sheskin, Handbook of Parametric and Nonparametric Statistical Procedures, CRC Press, Boca Raton, Fla, USA, 2003. View at: MathSciNet
  41. Y. Hochberg, “A sharper Bonferroni procedure for multiple tests of significance,” Biometrika, vol. 75, no. 4, pp. 800–802, 1988. View at: Publisher Site | Google Scholar | MathSciNet

Copyright © 2016 Honglong Xu et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Related articles

No related content is available yet for this article.
 PDF Download Citation Citation
 Download other formatsMore
 Order printed copiesOrder

Related articles

No related content is available yet for this article.

Article of the Year Award: Outstanding research contributions of 2020, as selected by our Chief Editors. Read the winning articles.