| | | |

Outlier Detection Methods

Outlier Detection Methods

Version 34 | Created: 2026-08-25 | Updated: 2026-11-07 13:46 UTC

Methods that find observations departing from the pattern the rest of the data follows, arranged by what each one assumes, so that a method follows from the shape of the data rather than from the rule practice reaches for first.

1. Scope

An outlier is an observation inconsistent with the model the rest of the sample follows. The flag states inconsistency with that model, not error, so detection and treatment stay separate: a flag opens an investigation rather than closing one.

Every method buys its answer with an assumption. Where the data violate it, the flags record the violation rather than a departure. Two properties of the data fix which assumptions are available.

  • Dimension. One variable, a handful, or a space too large for distances to stay meaningful.
  • Distribution. Whether a parametric shape can be assumed, normality above all.

Section 2 sorts the kinds of outlier into the axes that name them, and section 3 sorts the methods into the families that answer them. Sections 4 to 6 take those families in turn, each method stated as what it assumes, what is set, what breaks it, and where it is met. The appendices carry the derivations, the constants, the benchmark figures, the two industrial standards, and the order in which practice meets the rules (Appendix F).

Fig 1 lays the two out.

Outlier detection
|
+-- Taxonomy of outliers (section 2) - eight axes, one position on each at once
|   +-- Form ............ point | contextual | collective
|   +-- Reference set ... global | local
|   +-- Cause ........... error | foreign population | genuine rare event
|   +-- Discordancy ..... discordant | contaminant
|   +-- Regression ...... residual | leverage | influential
|   +-- Labels .......... supervised | semi-supervised | unsupervised
|   +-- Count ........... single | multiple
|   +-- Time series ..... additive | innovational | level shift | temporary change
|
+-- Hierarchy of methods (section 3) - each step gives up an assumption
    +-- Statistical (section 4) - assumes a distributional form, buys a stated error rate
    |   +-- z-score | interquartile range | Hampel | generalized ESD | Mahalanobis
    +-- Machine learning (section 5) - gives up the form, keeps the geometry
    |   +-- isolation forest | one-class SVM | local outlier factor | ECOD
    +-- Deep (section 6) - gives up the raw geometry, learns a representation
        +-- autoencoder | adversarial and diffusion | patch feature memory

Fig 1. The taxonomy of outliers and the hierarchy of methods

2. Taxonomy of Outliers

The eight subsections are the eight axes of Fig 1, not eight categories: an observation has a position on every one at once. One measurement can be a point outlier, local rather than global, caused by a recording error, discordant without being a contaminant, and high-leverage in its regression.

A method answers one axis and says nothing on the others. Section 3.2 places every method here on these axes.

2.1. Form

Chandola, Banerjee and Kumar (2009) split anomalies by the form they take in the data.

  • Point. One observation is extreme on its own. A temperature of minus 100 degrees in a record of ordinary weather.
  • Contextual. The value is ordinary in the sample and extreme in its context. Two degrees is unremarkable in a year of readings and wrong for August.
  • Collective. No single value is extreme, but a run of them together is. A stretch of low voltage in an electrocardiogram, where every reading is inside the normal range.

Contextual and collective anomalies need something the value does not carry, a context variable and an ordering. A method reading only the marginal distribution finds neither.

2.2. Reference Set

An observation is extreme relative to the whole sample or to a neighbourhood.

  • Global. Extreme against the sample as a whole.
  • Local. Ordinary against the whole sample, extreme against the group it sits in.

This axis is independent of section 2.1, so pairing point with global as one label is a mistake. Breunig, Kriegel, Ng and Sander (2000) built the local outlier factor for the local point outlier, the case of section 5.3.

2.3. Cause

A flagged value arrives three ways, and what to do with it differs in each.

  • Error. A mistake in measuring, transcribing or transmitting. The value describes the process that recorded it, not the process being studied.
  • Foreign population. A correct measurement of something else, such as a part from another lot mixed into the batch.
  • Genuine rare event. A correct measurement of the process under study, sitting in a tail it really has.

No statistic tells these apart. Detection produces a candidate, and the record behind it settles the cause.

2.4. Discordancy and Contamination

Barnett and Lewis (1994) separate two things. A contaminant came from a different distribution. A discordant observation looks statistically inconsistent with the rest.

Neither implies the other: a contaminant can hide inside the bulk, and a clean heavy-tailed sample produces discordant observations at a predictable rate. Every test here tests discordancy. Contamination is what the investigation of section 2.3 establishes.

2.5. Position in a Regression

Fitting a model rather than a distribution splits one axis into three, and the three come apart.

  • Residual outlier. Far from the fitted surface in the response.
  • Leverage point. Extreme in the predictors, which gives the observation the power to move the fit whether or not it does.
  • Influential observation. Removing it changes the fit materially, which Cook (1977) measured with the distance that carries his name.

High leverage without influence is common, and so is influence without a large residual, where the point has dragged the line onto itself. Belsley, Kuh and Welsch (1980) collect the diagnostics that separate them.

2.6. Labels

What is known before the search starts fixes what can be done.

  • Supervised. Labelled examples of both classes. This is a classification problem with severe class imbalance rather than an outlier problem.
  • Semi-supervised. A training set known to be clean, with new observations to judge against it. This is novelty detection.
  • Unsupervised. One unlabelled sample that may already contain outliers.

Sections 4 to 6 are unsupervised or semi-supervised, labelled outliers being rare. A training set assumed clean and not clean teaches the method to treat its outliers as normal.

2.7. Count

How many outliers are expected changes the procedure, not just the threshold.

  • Single. One test, one stated error rate.
  • Multiple. Several, in unknown number, which is where masking and swamping appear. Both are defined below.

Masking is one outlier inflating the centre or the scale until a second no longer looks extreme. Swamping is the reverse: the distortion is large enough that clean observations are flagged with it. Hawkins (1980) treats the many-outlier problem, and section 4.4 is the procedure built for it.

2.8. Time Series Type

With ordered data the form axis of section 2.1 refines into how the departure enters the series. Fox (1972) introduced the first two, and Chen and Liu (1993) settled the standard four.

  • Additive. One reading is displaced and the series returns immediately.
  • Innovational. A shock enters the process, so the displacement propagates through the readings that follow.
  • Level shift. The series moves to a new level and stays there.
  • Temporary change. The series moves and decays back over several readings.

All four are one collective anomaly under section 2.1, which is why that axis is too coarse for a machine trace. A chamber that drifted permanently and one that recovered on its own differ as level shift against temporary change.

3. Hierarchy of Methods

The three families of Fig 1 form a hierarchy of assumptions given up. Each step down handles data the step above cannot read, and each step down weakens what the answer may claim.

3.1. The Three Families

Statistical methods (section 4) assume a distributional form and measure departure from it, and that assumption buys a stated error rate. Machine learning methods (section 5) give up the form and keep the geometry of the data, which buys several variables at once and pays with a score that carries no rate. Deep methods (section 6) give up the geometry of the raw coordinates and learn a representation first, which buys data whose structure no distance reads and pays with clean training data and cost.

The hierarchy is not a ranking. A method one step down answers a wider class of data and a narrower class of questions, so the family is fixed by what the data are, and the axes of section 2 fix which method inside that family is being asked for.

3.2. Comparison on the Axes

Table 2 places every method of sections 4 to 6 on the axes of section 2, and says which of those questions each one actually answers.

Table 2. Where each method sits on the axes of section 2

# Method Form (2.1) Reference set (2.2) Labels (2.6) Count (2.7)
1 Z-Score Point Global Unsupervised Single
2 Interquartile Range Point Global Unsupervised Uncontrolled
3 Hampel Identifier Point Global Unsupervised Uncontrolled, but masking cannot occur
4 Generalized ESD Point Global Unsupervised Multiple, at a stated level
5 Mahalanobis Distance Point Global Unsupervised Single
6 Isolation Forest Point Global Unsupervised Uncontrolled
7 One-Class SVM Point Global Semi-supervised Uncontrolled
8 Local Outlier Factor Point Local Unsupervised Uncontrolled
9 ECOD Point Global Unsupervised Uncontrolled
10 Autoencoder Point or collective Global Semi-supervised Uncontrolled
11 Adversarial and diffusion Point or collective Global Semi-supervised Uncontrolled
12 Patch feature memory Collective in space Global Semi-supervised Uncontrolled

The two bold cells are the only departures. The local outlier factor alone changes the reference set, and the generalized ESD alone controls how many outliers it looks for; single and uncontrolled differ in what a method was built for rather than in any count it holds to.

The deep methods reach a collective anomaly by changing the data rather than the method. A window over a series, or a patch of an image, becomes one vector, and the collective anomaly becomes a point anomaly in it. Nothing in section 5 scores a run of observations directly.

Four axes are missing from the table, three because no method here answers them and one because every method answers it the same way.

  • Cause (2.3). No statistic separates an error from a rare event, which that section says outright.
  • Discordancy and contamination (2.4). Every method here tests discordancy and none judges contamination, so the axis sorts how a result is read rather than which method produces it.
  • Position in a regression (2.5). Leverage and influence need a fitted model, and this document fits distributions and regions instead.
  • Time series type (2.8). A windowed method can flag a level shift, but nothing here tells a level shift from a temporary change.

A contextual anomaly is out of reach on the form axis as well: it needs a context variable, and no method here takes one.

3.3. Comparison by the Shape of the Data

Table 1 reads the same comparison from the other side, from the shape of the data to the method whose assumptions that shape satisfies.

Table 1. Method by the shape of the data

# Data Method Why
1 One variable, distribution unknown Interquartile Range It assumes no shape, and the fences carry a breakdown point of 25%.
2 One variable, approximately normal, clean Z-Score The threshold carries a stated error rate, provided the sample is large enough for the ceiling of section 4.1 to sit above it.
3 One variable, contamination expected Hampel Identifier The median and the MAD are not moved by the outliers being looked for, so nothing masks itself.
4 One variable, several outliers, approximately normal Generalized ESD It states a level for the whole search rather than for one test, and reads the last passing stage rather than the first.
5 A few variables, correlated Mahalanobis Distance It is the only entry that reads the covariance, and it needs a robust centre and scale to be trusted.
6 Many variables, no labels to tune against ECOD It is the one entry with no hyperparameter at all, and it says which variables made an observation extreme.
7 Many variables, and many observations Isolation Forest It is linear in the sample size, works on subsamples, and assumes no distribution.
8 Clusters of differing density Local Outlier Factor It compares an observation against its neighbourhood rather than the whole sample.
9 A known region, new points to test One-Class SVM The problem is a boundary, which is what the method fits.
10 Audio, long time series, machine traces Autoencoder Reconstruction error survives where a distance in raw coordinates does not.
11 Images of a repeated product Patch feature memory The pretrained features of section 6.3 already carry what a defect looks like, and scoring is fast enough to run inline.
12 Parts within a production lot Part average testing A standard names the rule, so the limit can be audited rather than argued.
13 Equipment sensor traces Multivariate control chart Splitting the score into $T^2$ and $Q$ says which sensor to look at, not only that something moved.

4. Statistical Methods

The cheapest family to compute and the easiest to defend, and the right default while its assumption holds.

4.1. Z-Score

The z-score divides the deviation of an observation from the sample mean by the sample standard deviation.

$$z_i = \frac{x_i - \bar{x}}{s}$$
  • $z_i$ — the z-score of observation $i$.

  • $x_i$ — the $i$-th observation of a sample of $n$ values.

  • $\bar{x}$ (x bar) — the mean of that sample.

  • $s$ — its standard deviation, formed by dividing the sum of squared deviations by $n-1$.

  • Assumption. Normality, and a sample clean enough that the mean and the standard deviation are not moved by what is being looked for.

  • Setting. An absolute score above 3, which about 0.27% of a normal sample exceeds by chance.

  • Breaks when. Contamination is present, since the outlier inflates the scale it is measured against and masks itself, or the sample is small: the score has a ceiling of $(n-1)/\sqrt{n}$, so a rule at 3 cannot fire below 11 observations (Appendix D).

  • Met at. A single parameter already known to be near normal, on data screened for gross errors.

4.2. Interquartile Range

Tukey's rule flags an observation outside the interval below. Its two ends are the fences the whiskers of a box plot draw.

$$\left[ \ Q_1 - 1.5 \cdot \mathrm{IQR}, \quad Q_3 + 1.5 \cdot \mathrm{IQR} \ \right], \qquad \mathrm{IQR} = Q_3 - Q_1$$
  • $Q_1$ — the first quartile, the value a quarter of the sample falls below.

  • $Q_3$ — the third quartile, the value three quarters of the sample falls below.

  • $\mathrm{IQR}$ — the distance between them, which is the spread of the middle half.

  • Assumption. No distributional shape, but symmetry: the fences are placed at the same multiple on both sides.

  • Setting. An inner fence at 1.5 IQR and an outer fence at 3 IQR (Appendix B).

  • Breaks when. The sample is skewed. The long tail is a property of the distribution, and the rule reads it as a stream of outliers (Appendix B).

  • Met at. A first look at any single parameter, which is what the whiskers of a box plot already draw.

4.3. Hampel Identifier

The Hampel identifier keeps the form of the z-score and replaces both estimates: the median for the mean, and the rescaled median of the deviations from it for the standard deviation.

$$\mathrm{MAD} = \mathrm{median}\left( \left| x_1 - \tilde{x} \right|, \ldots, \left| x_n - \tilde{x} \right| \right)$$ $$M_i = \frac{x_i - \tilde{x}}{\mathrm{MAD} / \Phi^{-1}(0.75)}$$
  • $x_1, \ldots, x_n$ — the sample, and $x_i$ its $i$-th observation, as in section 4.1.

  • $\tilde{x}$ (x tilde) — the median of the sample, which the deviations are taken from and which the score is centred on.

  • $\mathrm{MAD}$ — the median of those absolute deviations, which is the raw robust scale before any rescaling.

  • $\Phi^{-1}(0.75) = 0.674490$ — the third quartile of the standard normal distribution, which the MAD is divided by.

  • $M_i$ — the modified z-score of observation $i$, read on the same scale as $z_i$ of section 4.1.

  • Assumption. Nothing about the data. Normality enters only through the constant that puts the score on the z-score scale (Appendix D).

  • Setting. An absolute modified z-score above 3.5, the value recommended by Iglewicz and Hoaglin (1993).

  • Breaks when. More than half the sample takes one value, where the MAD is 0 and no score is defined.

  • Met at. A single parameter judged within its own lot, where the outliers being looked for are in the sample.

4.4. Generalized ESD

Repeating a single-outlier test on what is left does not hold the significance level, since each repetition spends it again. The generalized extreme studentized deviate procedure declares an upper bound $r$ first, then runs $r$ stages of the same statistic, with the level stated for the whole search.

$$R_i = \frac{\max_j \left| x_j - \bar{x}_i \right|}{s_i}, \qquad i = 1, \ldots, r$$
  • $R_i$ — the extreme studentized deviate at stage $i$.

  • $x_j$ — an observation of the sample, indexed by $j$ to keep it apart from the stage number.

  • $\bar{x}_i$ and $s_i$ — the mean and the standard deviation of what remains of the sample once the $i-1$ observations removed at earlier stages are gone.

  • $\max_j$ — a maximum over the observations still remaining. The one attaining it is removed before stage $i+1$.

  • $r$ — the declared upper bound on the number of outliers, fixed before the data are read.

  • Assumption. The uncontaminated part of the sample is approximately normal, and an upper bound $r$ on the outlier count is fixed before the data are read.

  • Setting. $r$, a significance level for the whole search, and the critical values $\lambda_i$ of Rosner (1983) (Appendix D).

  • Breaks when. $r$ is set below the true count, or the stages are read from the first failure rather than the last passing one, which lets masking survive.

  • Met at. A decision that has to be defended against a standard, which is the many-outlier method of ISO 16269-4.

4.5. Mahalanobis Distance

For multivariate data the Mahalanobis distance measures how far an observation lies from the centre in units that account for the covariance between variables.

$$d^2(x) = \left( x - \mu \right)^{T} \Sigma^{-1} \left( x - \mu \right)$$
  • $x$ — one observation, written as a vector with one entry per variable.

  • $\mu$ — the centre of the sample, the vector of per-variable means.

  • $\Sigma$ — the covariance matrix of the variables, and $\Sigma^{-1}$ its inverse.

  • $d^2(x)$ — the squared distance, which reduces to $z_i^2$ of section 4.1 when there is one variable.

  • Assumption. Multivariate normality, and a centre and covariance that the outliers have not moved.

  • Setting. A chi-square cut-off with one degree of freedom per variable (Appendix D).

  • Breaks when. $\mu$ and $\Sigma$ come from contaminated data, since a cluster of outliers inflates $\Sigma$ in the direction that hides it. A robust pair repairs it (Appendix D).

  • Met at. A few correlated parameters read together, such as the summary parameters of one process step.

5. Machine Learning Methods

The normal region is learned from unlabelled data, so the output is a score to rank rather than a test to pass.

Isolation Forest builds trees by splitting on a random variable at a random threshold, and records how many splits an observation needs before it sits alone. An observation in a sparse region is separated by few splits, so a short average path length across the forest is the anomaly score.

  • Assumption. Outliers are few and sit in sparse regions. No distribution is assumed.
  • Setting. The number of trees and the subsample size. The output is a rank, not an error rate.
  • Breaks when. The departure exists only in the combination of variables, or a contamination rate is set from a guess.
  • Met at. Wide tables with many rows, where a first ranking is wanted cheaply.

One-Class SVM learns a boundary enclosing the region the training data occupy, and calls anything outside that boundary an outlier. The kernel decides how the boundary may bend, and the parameter $\nu$ sets an upper bound on the fraction of training data allowed to fall outside it.

  • Assumption. A training set known to be clean, which makes the problem novelty detection (section 2.6).
  • Setting. A kernel, its bandwidth, and $\nu$, the upper bound on the training fraction outside the boundary.
  • Breaks when. The training set was not clean, the variables are on different scales, or the sample is large: the fit is quadratic or worse in the sample size.
  • Met at. A known-good region fixed earlier, with new material to judge against it.

5.3. LOF (Local Outlier Factor)

Local Outlier Factor compares the density around an observation with the density around each of its $k$ nearest neighbours. A factor near 1 means the observation is as densely surrounded as its neighbours are, and a factor well above 1 means it sits in a sparser place than they do.

  • Assumption. Density is meaningful, so a distance in the raw coordinates is meaningful.
  • Setting. The neighbourhood size $k$. A factor near 1 is ordinary and well above 1 is sparse.
  • Breaks when. The variables are many enough that distances stop separating, or $k$ reaches across a cluster boundary.
  • Met at. Data holding groups of different density, such as several tools or chambers pooled in one table.

5.4. ECOD (Empirical Cumulative Distribution)

ECOD takes the view that an outlier is a rare event in a tail, and measures tail rarity without fitting anything. It builds the empirical cumulative distribution of each variable separately, reads off the left and right tail probability of every observation, and aggregates those probabilities across variables into one score.

  • Assumption. An outlier is a tail event in at least one variable.
  • Setting. None. It is the one method here with nothing to set.
  • Breaks when. The departure exists only in the combination of variables, which is the case of section 4.5.
  • Met at. Wide tables with no labels to tune against, where the flag has to name the variable responsible.

6. Deep Learning Methods

The departure is read off the failure to reproduce a learned representation. Audio, long time series, machine traces and above all images are what these are for, and they need enough clean data to train on. Images have a recipe of their own in section 6.3.

6.1. Autoencoder

An autoencoder compresses its input to a narrow code and reconstructs the input from it. Trained on normal data alone, it learns a representation that spends its capacity on normal structure, and the reconstruction error then serves as the anomaly score.

  • Assumption. Clean training data, and a bottleneck narrow enough that the network cannot learn to copy its input.
  • Setting. The code width, and a cut on the reconstruction error.
  • Breaks when. Capacity is too large, so unseen anomalies are reconstructed as faithfully as normal data, or the training set was not clean (section 2.6).
  • Met at. Equipment traces and other long ordered records that a per-point limit cannot read.

6.2. Generative Adversarial Network

An adversarial approach trains a generator to produce samples indistinguishable from normal data. Scoring means finding the closest generated sample and reading the residual: a normal observation lies on the learned manifold and is matched closely, an anomalous one is not.

AnoGAN, the first of the kind, adds a discriminator feature term to that residual, and scores one observation by an iterative search in the latent space rather than a forward pass. Diffusion models have since taken the same role, scoring an observation by how far denoising has to move it, at a cost higher again.

  • Assumption. The same as section 6.1, with a generator that has learned the manifold the normal data occupy.
  • Setting. The latent search budget for scoring, and a cut on the residual.
  • Breaks when. The latent search does not converge, or the scoring cost per observation exceeds what the line allows.
  • Met at. The data of section 6.1 where a generative model is already in place and its cost is accepted.

6.3. Industrial Image Inspection

Visual defect inspection has converged on one recipe: run a pretrained network over the image, keep the patch features of defect-free examples, and score a new patch by its distance to that memory. Appendix E gives the reported detection rates and latencies.

  • Assumption. Defect-free examples cover the normal appearance, and the product repeats.
  • Setting. A pretrained backbone, the patch size, the memory size, and a distance cut.
  • Breaks when. Lighting and defect variation exceed what the memory holds, where reported localization falls off sharply (Appendix E).
  • Met at. Inline image inspection of a repeated product, at the latency a line needs.

References

[1] Tukey, J. W. (1977). Exploratory Data Analysis. Addison-Wesley, Reading. ISBN 978-0-201-07616-5.
[2] Barnett, V., & Lewis, T. (1994). Outliers in Statistical Data, 3rd edition. Wiley, Chichester. ISBN 978-0-471-93094-5.
[3] Fox, A. J. (1972). Outliers in Time Series. Journal of the Royal Statistical Society: Series B, 34(3), 350–363.
[4] Cook, R. D. (1977). Detection of Influential Observation in Linear Regression. Technometrics, 19(1), 15–18.
[5] Hawkins, D. M. (1980). Identification of Outliers. Monographs on Applied Probability and Statistics. Chapman and Hall, London. ISBN 978-94-015-3996-8.
[6] Belsley, D. A., Kuh, E., & Welsch, R. E. (1980). Regression Diagnostics: Identifying Influential Data and Sources of Collinearity. Wiley, New York. ISBN 978-0-471-05856-4.
[7] Chen, C., & Liu, L.-M. (1993). Joint Estimation of Model Parameters and Outlier Effects in Time Series. Journal of the American Statistical Association, 88(421), 284–297.
[8] Chandola, V., Banerjee, A., & Kumar, V. (2009). Anomaly Detection: A Survey. ACM Computing Surveys, 41(3), Article 15.
[9] Brys, G., Hubert, M., & Struyf, A. (2004). A Robust Measure of Skewness. Journal of Computational and Graphical Statistics, 13(4), 996–1017.
[10] Hubert, M., & Vandervieren, E. (2008). An Adjusted Boxplot for Skewed Distributions. Computational Statistics and Data Analysis, 52(12), 5186–5201.
[11] Mahalanobis, P. C. (1936). On the Generalised Distance in Statistics. Proceedings of the National Institute of Sciences of India, 2(1), 49–55.
[12] Shiffler, R. E. (1988). Maximum Z Scores and Outliers. The American Statistician, 42(1), 79–80.
[13] Rosner, B. (1983). Percentage Points for a Generalized ESD Many-Outlier Procedure. Technometrics, 25(2), 165–172.
[14] Iglewicz, B., & Hoaglin, D. C. (1993). How to Detect and Handle Outliers. The ASQC Basic References in Quality Control: Statistical Techniques, Vol. 16. ASQC Quality Press, Milwaukee. ISBN 978-0-87389-247-6.
[15] ISO 16269-4:2010, Statistical interpretation of data — Part 4: Detection and treatment of outliers. International Organization for Standardization.
[16] Rousseeuw, P. J., & Van Driessen, K. (1999). A Fast Algorithm for the Minimum Covariance Determinant Estimator. Technometrics, 41(3), 212–223.
[17] Breunig, M. M., Kriegel, H.-P., Ng, R. T., & Sander, J. (2000). LOF: Identifying Density-Based Local Outliers. ACM SIGMOD Record, 29(2), 93–104.
[18] Schölkopf, B., Platt, J. C., Shawe-Taylor, J., Smola, A. J., & Williamson, R. C. (2001). Estimating the Support of a High-Dimensional Distribution. Neural Computation, 13(7), 1443–1471.
[19] Liu, F. T., Ting, K. M., & Zhou, Z.-H. (2008). Isolation Forest. Proceedings of the Eighth IEEE International Conference on Data Mining, 413–422.
[20] Schlegl, T., Seeböck, P., Waldstein, S. M., Schmidt-Erfurth, U., & Langs, G. (2017). Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discovery. Information Processing in Medical Imaging, Lecture Notes in Computer Science 10265, 146–157.
[21] Li, Z., Zhao, Y., Hu, X., Botta, N., Ionescu, C., & Chen, G. H. (2022). ECOD: Unsupervised Outlier Detection Using Empirical Cumulative Distribution Functions. IEEE Transactions on Knowledge and Data Engineering, 35(12), 12181–12193.
[22] Han, S., Hu, X., Huang, H., Jiang, M., & Zhao, Y. (2022). ADBench: Anomaly Detection Benchmark. Advances in Neural Information Processing Systems 35, Datasets and Benchmarks Track.
[23] Roth, K., Pemula, L., Zepeda, J., Schölkopf, B., Brox, T., & Gehler, P. (2022). Towards Total Recall in Industrial Anomaly Detection. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 14318–14328.
[24] Batzner, K., Heckler, L., & König, R. (2024). EfficientAD: Accurate Visual Anomaly Detection at Millisecond-Level Latencies. Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 128–138.
[25] AEC-Q001 Rev-D (2011), Guidelines for Part Average Testing. Automotive Electronics Council.
[26] Hsu, C.-Y., Chien, C.-F., & Lin, K.-Y. (2012). Semiconductor Fault Detection and Classification for Yield Enhancement and Manufacturing Intelligence. Flexible Services and Manufacturing Journal, 24(3), 358–378.


Appendix A. Terminology

  • adjusted boxplot — A box plot whose fences are moved by the skewness of the sample, so that a long tail is not read as a stream of outliers.
  • anomaly score — A number ranking observations by how far they depart from the normal pattern, without a stated error rate attached to any particular value of it.
  • AU-PRO — Area under the per-region overlap curve, which scores how well a method localizes a defect rather than whether it detects one.
  • AUROC — Area under the receiver operating characteristic curve, the probability that a randomly chosen anomaly is scored above a randomly chosen normal observation.
  • box plot — A summary drawing in which a box spans the interquartile range and lines called whiskers reach the most extreme observation still within one and a half interquartile ranges of the box, with anything past that drawn as a separate point.
  • breakdown point — The fraction of a sample that has to be corrupted before an estimate stops describing the rest of the data. The mean has 0% and the median has 50%.
  • chi-square distribution — The distribution of a sum of squared independent standard normal variables, carrying one degree of freedom per term. It is what turns a squared distance into a probability.
  • consistency constant — A factor applied to a robust scale estimate so that it converges to the standard deviation under an assumed distribution. It is 0.674490 for the MAD and 1.349 for the interquartile range, which AEC-Q001 rounds to 1.35.
  • contaminant — An observation that came from a distribution other than the one the rest of the sample follows, as opposed to one that merely looks inconsistent with it.
  • contamination — The fraction of a sample that does not come from the assumed distribution.
  • critical value — The value a test statistic has to exceed to be called significant. It follows from the significance level and the sample size rather than from the data under test.
  • cumulative distribution function — The function giving, for each value, the probability of falling at or below it. The standard normal one is written $\Phi$, and its inverse turns a probability back into a number of standard deviations.
  • degrees of freedom — The number of independent quantities a statistic is free to vary over. It fixes which chi-square distribution a squared distance is read against, one per variable here.
  • discordant observation — An observation that looks statistically inconsistent with the rest of the sample. A test of discordancy reports this and not contamination.
  • discriminator — The network trained alongside a generator to tell generated samples from real ones. Its internal features can be reused to compare an observation against what the generator produced.
  • ECOD — Empirical-cumulative-distribution-based outlier detection, the method of section 5.4.
  • ESD — Extreme studentized deviate, abbreviated in the name of the generalized ESD procedure of section 4.4.
  • extreme studentized deviate — The largest absolute deviation from the sample mean, divided by the sample standard deviation. It is the statistic each stage of the generalized ESD procedure computes.
  • false positive rate — The fraction of normal observations that a rule flags. It is the price paid for whatever detection rate the rule reaches.
  • generator — The network trained to produce samples a discriminator cannot tell from the training data. Once trained it stands in for the distribution the normal data came from.
  • Hotelling's T-squared — The multivariate analogue of a squared z-score, measuring the distance of an observation from the centre inside the structure a model has fitted.
  • hyperparameter — A setting fixed before a method runs rather than estimated from the data, such as a neighbourhood size or a kernel bandwidth. Without labels there is nothing to tune one against.
  • influential observation — An observation whose removal changes a fitted model materially, measured by Cook's distance.
  • interquartile range — The distance from the first quartile to the third, which is the spread of the middle half of a sample. On a normal sample it is 1.349 standard deviations.
  • IQR — The abbreviation used throughout for the interquartile range.
  • kernel — The function that fixes the geometry a one-class SVM works in, and with it the shapes its learned boundary is allowed to take.
  • latent space — The compressed coordinates a generative model maps to and from, in which a point stands for a whole reconstructed observation.
  • leverage — How extreme an observation is in the predictors of a fitted model, which sets how far it could move the fit whether or not it does.
  • loading — The weight a principal component gives to one original variable, by which a flag raised in component space is traced back to a sensor.
  • lot — A batch of parts processed together and carried through manufacturing as one unit. It is the group that part average testing judges a part against.
  • manifold — The lower-dimensional surface inside the full space that the data actually occupy. A generative model that has learned it reproduces points on it and not points off it.
  • masking — The effect by which an outlier inflates the centre or the scale it is measured against far enough that it, or a second outlier, no longer looks extreme.
  • medcouple — A robust measure of skewness, between minus one and one and zero for a symmetric sample, built from a median of comparisons between observations on either side of the median.
  • median absolute deviation (MAD) — The median of the absolute deviations of the observations from the sample median, used as a scale estimate that a minority of extreme observations cannot inflate.
  • minimum covariance determinant — A robust estimate of a multivariate centre and covariance, taken from the subset of observations whose covariance matrix has the smallest determinant.
  • MVTec AD — A public benchmark of photographs of manufactured objects, defect-free for training and defective for testing, with the defective region marked. MVTec AD 2 is a later set built to be harder.
  • novelty detection — Judging new observations against a training set assumed to be free of outliers, as opposed to searching one sample that may already contain them.
  • order statistic — An observation identified by its rank in the sorted sample rather than by its value, such as the median or a quartile. Moving an extreme observation further out does not move it.
  • outlier — An observation inconsistent with the distribution the rest of the sample follows. The label concerns consistency with a model and does not by itself establish that the observation is wrong.
  • physical limit — A bound a measured quantity cannot cross because of what it measures, such as a negative pressure or a yield above 100%. It is known before the sample is read, so a value outside it is wrong rather than merely inconsistent.
  • pretrained network — A network fitted on a large general dataset and then used without further training, for the features its intermediate layers produce rather than for its own output.
  • principal component — A direction fitted to the data along which the variance is largest, subject to being uncorrelated with the directions already fitted. A few of them usually carry most of the variation among correlated sensors.
  • reconstruction error — The distance between an input and the output a model produces when it compresses and rebuilds that input.
  • robust — Describing an estimate that a minority of contaminating observations cannot move far. The breakdown point says how large that minority may be.
  • significance level — The probability of flagging an observation when the sample is in fact clean, fixed before the data are seen. Repeating a test without accounting for the repetition raises it above the value chosen.
  • specification limit — The boundary a measured parameter must stay inside for a part to be sold, set from the design rather than from the sample. A part can pass it and still be an outlier within its lot.
  • squared prediction error (Q statistic) — The part of an observation that a fitted model does not explain, measured as the squared distance from the observation to its reconstruction in the model's space.
  • SVM — Support vector machine, a classifier that separates classes by the widest margin available in the geometry a kernel fixes. The one-class variant of section 5.2 has no second class and encloses the one it has instead.
  • swamping — The effect by which an outlier distorts the centre or the scale far enough that clean observations are flagged alongside it.
  • winsorizing — Replacing every observation past a chosen quantile with the value at that quantile, so that a fixed share of the sample is pulled in rather than tested. It is a treatment and not a detection rule.

Appendix B. Tukey's Rule

Section 4.2 states the rule in one line. This appendix records where the multiple of 1.5 comes from, what it costs against a z-score, and where the rule stops working.

B.1. Inner and Outer Fences

Tukey (1977) drew two pairs of fences rather than one. The inner pair is the rule of section 4.2, and the outer pair sits at three interquartile ranges instead of one and a half.

$$Q_1 - c \cdot \mathrm{IQR} \ \le \ x_i \ \le \ Q_3 + c \cdot \mathrm{IQR}$$
  • $c$ — the multiple that places the fences, 1.5 for the inner pair and 3 for the outer pair.
  • $Q_1$, $Q_3$, $\mathrm{IQR}$ — as in section 4.2.

An observation past an inner fence Tukey called outside, and one past an outer fence far out. The whiskers reach the last observation inside the inner fences, so every separate point in the plot is at least outside.

The two are read together: outside deserves a look, far out is extreme by any reading. A single cut- off cannot make that distinction.

B.2. What the Multiple Costs

The multiple of 1.5 was chosen for convenience, not derived. Section 4.2 calls the rule comparable to a z-score at 3, and the two are not identical.

Table 4. Where each fence sits on a normal sample

Rule Position Share of a normal sample flagged
Inner fence, $c = 1.5$ 2.6980 $\sigma$ 0.6977%
Outer fence, $c = 3$ 4.7214 $\sigma$ 0.0002%
Classical rule at 3 3.0000 $\sigma$ 0.2700%

The inner fence is looser than the classical rule at 3 by a factor of 2.6, and a multiple of 1.724 would put it exactly there. The outer fence is stricter than either by three orders of magnitude.

Comparable rather than equal: both flag a fraction of a percent where a rule at two standard deviations flags five, and the choice between them turns on contamination.

B.3. Skewed Samples

The fences are symmetric, the same multiple below $Q_1$ as above $Q_3$. On a skewed sample the long tail is a property of the distribution, and the rule reads it as a stream of outliers while flagging nothing on the short side.

On 200,000 lognormal draws with no contamination in them, the standard fences flag 6.22% above the upper fence and nothing at all below the lower one.

The adjusted boxplot of Hubert and Vandervieren (2008) repairs this by moving each fence according to how skewed the sample is, measured by the medcouple of Brys, Hubert and Struyf (2004).

$$\left[ \ Q_1 - 1.5 e^{a \cdot \mathrm{MC}} \cdot \mathrm{IQR}, \quad Q_3 + 1.5 e^{b \cdot \mathrm{MC}} \cdot \mathrm{IQR} \ \right]$$
  • $\mathrm{MC}$ — the medcouple, a robust skewness measure between $-1$ and $1$ that is 0 for a symmetric sample.
  • $a$, $b$ — $-4$ and $3$ when $\mathrm{MC} \ge 0$, and $-3$ and $4$ when it is negative, so the fence on the long side moves out and the one on the short side moves in.

On that sample the medcouple is 0.3264, and the adjusted fences flag 1.10% above and 0.42% below in place of 6.22% and nothing. Still more than a normal sample gives, but no longer the shape of the distribution reported as a list of outliers.

Appendix C. Semiconductor Practice

A fab runs the methods a standard names, an auditor can check, and a technician can act on. Two of them are constructions already covered in sections 4 to 6.

C.1. Part Average Testing

Part average testing removes parts abnormal for their own lot even when every measurement passes its specification limit. AEC-Q001 defines it for automotive components on the plan of section 4.3: the robust mean is the median, and the robust sigma is the interquartile range divided by 1.35. A part is retained inside the interval below.

$$\tilde{x} \pm k \cdot \frac{\mathrm{IQR}}{1.35}$$
  • $\tilde{x}$ — the median of the parameter across the parts being judged, which the standard calls the robust mean.
  • $\mathrm{IQR}$ — their interquartile range, and $\mathrm{IQR}/1.35$ is what the standard calls the robust sigma.
  • $k$ — the multiple of that sigma the limits are set at, 6 by convention.

That divisor is the $1.349 \sigma$ of section 4.2, rounded, and it does for the quartile spread what $\Phi^{-1}(0.75)$ does for the MAD. The standard picks the quartiles over the MAD and 6 over 3.5, but the construction is the same: a robust centre, a robust scale in normal units, and a multiple of that scale.

Static limits are computed once from historical data and applied to every lot. Dynamic limits are recomputed from each lot, catching a lot that is uniformly shifted yet internally tight. They need a minimum sample per lot, 30 parts in the standard, before the quartiles mean anything.

C.2. Fault Detection and Classification

Equipment sensors report pressure, flow, power and temperature through a process step. Fault detection and classification reduces each trace to summary parameters per wafer and monitors them together, since a per-variable limit misses a departure that only the combination shows.

The standard construction is the multivariate control chart of section 4.5 in a reduced space. Principal components are fitted on normal production, and an observation is scored by Hotelling's $T^2$ inside that space and by the squared prediction error, the $Q$ statistic, for the part the components do not explain. $T^2$ says the process moved within the structure it normally has, and $Q$ says it left that structure.

The split makes the flag actionable: the loading contributing most to a $T^2$ or a $Q$ names the sensor to look at.

Appendix D. Estimator Constants and Bounds

The settings of sections 4.1 to 4.5 rest on constants and bounds that the body states without deriving. This appendix records where each comes from.

D.1. The Ceiling on a Z-Score

Both estimates of the z-score come from the sample under test, so an outlier inflates the scale it is measured against. The same self-reference caps the score: in a sample of size $n$ no absolute z-score can exceed $(n-1)/\sqrt{n}$, a bound due to Shiffler (1988). A rule at 3 therefore cannot fire below 11 observations, and one at 3.5 cannot fire below 15.

D.2. The MAD Consistency Constant

The raw MAD does not estimate $s$. On a normal sample it converges to $0.674490 \sigma$, about a third short of the spread, and $0.674490$ is the third quartile of the standard normal distribution. Dividing by it, which is multiplying by 1.482602, puts the modified z-score on the scale the z-score is read on. Without that step no threshold carries between the two rules. The constant is a calibration rather than an assumption: changing it rescales every score by the same factor and reorders nothing.

D.3. Critical Values of the Generalized ESD

Each $R_i$ is compared against a critical value $\lambda_i$ derived for that stage and tabulated by Rosner (1983). The count of outliers is the largest $i$ for which $R_i \gt \lambda_i$, not the first. Reading it that way is what defeats masking: a stage can fail while a later stage, with the masking observation already removed, succeeds.

D.4. The Chi-Square Cut-Off and a Robust Covariance

Under multivariate normality, with the centre and the covariance known rather than estimated, the squared Mahalanobis distance follows a chi-square distribution with one degree of freedom per variable, and the cut-off comes from there. Estimating the pair from a contaminated sample breaks that reading, since a cluster of outliers inflates $\Sigma$ in exactly the direction that hides them. The minimum covariance determinant of Rousseeuw and Van Driessen (1999) supplies a robust centre and covariance and restores it.

Appendix E. Benchmarks

Published comparisons fix how much a method can be expected to give. The figures below belong to the benchmarks that produced them.

E.1. Tabular Data

The published comparisons name no winner. Across the 30 algorithms and 57 datasets of ADBench, no unsupervised method is statistically superior to the rest; Isolation Forest and ECOD are consistently among the better ones without dominating, and several deep methods built for tabular data fall below them. Newer is not by itself a reason to switch.

The exception is raw coordinates that carry no usable distance, where the deep methods earn their cost. Images are the clearest instance.

E.2. Images

PatchCore established the patch feature memory of section 6.3 and reports up to 99.1% detection AUROC on the MVTec AD benchmark. EfficientAD reaches 95.4% detection AUROC across 32 datasets at 2.2 ms per image, the latency that makes inline inspection possible.

On MVTec AD 2, built to carry the lighting and defect variation of real inspection, no published method exceeds 31% localization AU-PRO at a 5% false positive rate. A method that separates the older benchmark cleanly is not thereby ready for a line.

Appendix F. What Practice Actually Runs

A survey ranks methods by what they assume. Practice ranks them by what is already on the screen, and the two orders are not the same.

F.1. The Order Practice Meets Them

Table 3. What practice actually runs, most common first

Rank Rule Why it is reached for
1 Interquartile range, the Tukey fence of section 4.2 The box plot is usually the first drawing made, and its whiskers already are the rule.
2 Z-score cut at 3, of section 4.1 Habit. It is the rule everyone was taught, and it is the wrong one whenever the sample is neither normal nor clean.
3 Modified z-score on the MAD, of section 4.3 Where the work moves the moment the data are at all dirty.
4 Quantile clipping, winsorizing at the 1st and the 99th percentile Cheap, and it needs no test at all. It fixes a share of the sample rather than a property of it.
5 🌳A domain physical limit It should be first. A negative pressure or a yield above 100% is settled before any statistic is computed.

The last two entries are of a different kind from the first three. Winsorizing decides nothing: it is a treatment applied to a fixed share of the sample whether or not that share is discordant, and section 1 keeps treatment apart from detection. A physical limit is knowledge held before the sample is read, and the one rule here that calls an observation wrong rather than inconsistent.

So the fifth entry belongs first. Bounds the process cannot cross are applied before anything in sections 4 to 6 runs, since a value outside them corrupts every estimate that follows.

F.2. Two Habits

Two habits matter more than which method is used. Fix the threshold before the data are seen, so it is not tuned to a preferred answer. Then read the margin rather than the verdict: only a statistic that clears its cut-off by a wide gap survives a change in the choices above.

Outlier Detection Methods

Version 17 | Created: 2026-09-09 | Updated: 2026-11-07 13:46 UTC

나머지 데이터가 따르는 pattern 에서 벗어난 관측을 찾는 방법들을, 각각이 무엇을 가정하는지에 따라 정리했다. 방법이 관행이 아니라 데이터의 모양에서 따라 나오게 하려는 것이다.

1. Scope

Outlier 는 나머지 표본이 따르는 model 과 어긋나는 관측이다. Flag 는 그 model 과의 부정합을 말할 뿐 틀렸다는 판정이 아니므로, 검출과 처리는 따로 둔다. Flag 는 조사를 닫는 것이 아니라 여는 것이다.

모든 방법은 가정을 치르고 답을 산다. 데이터가 그 가정을 어기면 flag 는 이탈이 아니라 가정 위반을 기록한다. 어떤 가정을 쓸 수 있는지는 데이터의 두 성질이 정한다.

  • Dimension. 변수 하나, 몇 개, 아니면 거리가 의미를 잃을 만큼 큰 공간.
  • Distribution. 모수적 형태를, 무엇보다 정규성을 가정할 수 있는지 여부.

꼭지 2 는 outlier 의 종류를 그것을 이름 대는 축으로 정리하고, 꼭지 3 은 방법을 그 축에 답하는 family 로 정리한다. 꼭지 4 부터 6 까지는 그 family 를 차례로 다루며, 방법마다 무엇을 가정하고 무엇을 정하고 무엇에 무너지고 어디에서 만나는지를 적는다. 유도와 상수, benchmark 값, 산업 표준 둘, 그리고 현장이 규칙을 마주치는 순서 (Appendix F) 는 appendix 에 둔다.

Fig 1 이 그 둘을 펼쳐 놓은 것이다.

Outlier detection
|
+-- Taxonomy of outliers (section 2) - eight axes, one position on each at once
|   +-- Form ............ point | contextual | collective
|   +-- Reference set ... global | local
|   +-- Cause ........... error | foreign population | genuine rare event
|   +-- Discordancy ..... discordant | contaminant
|   +-- Regression ...... residual | leverage | influential
|   +-- Labels .......... supervised | semi-supervised | unsupervised
|   +-- Count ........... single | multiple
|   +-- Time series ..... additive | innovational | level shift | temporary change
|
+-- Hierarchy of methods (section 3) - each step gives up an assumption
    +-- Statistical (section 4) - assumes a distributional form, buys a stated error rate
    |   +-- z-score | interquartile range | Hampel | generalized ESD | Mahalanobis
    +-- Machine learning (section 5) - gives up the form, keeps the geometry
    |   +-- isolation forest | one-class SVM | local outlier factor | ECOD
    +-- Deep (section 6) - gives up the raw geometry, learns a representation
        +-- autoencoder | adversarial and diffusion | patch feature memory

Fig 1. The taxonomy of outliers and the hierarchy of methods

2. Taxonomy of Outliers

아래 여덟 꼭지는 category 가 아니라 Fig 1 의 여덟 개 축이며, 한 관측은 그 모두에 동시에 자리를 가진다. 한 번의 측정이 point outlier 이면서 global 이 아니라 local 이고, 기록 오류에서 왔으며, contaminant 는 아니면서 discordant 이고, 자기 regression 에서 leverage 가 높을 수 있다.

방법은 한 축에 답하고 나머지 축에 대해서는 아무 말도 하지 않는다. 꼭지 3.2 가 이 문서의 모든 방법을 그 축 위에 놓는다.

2.1. Form

Chandola, Banerjee and Kumar (2009) 는 anomaly 를 데이터에서 취하는 형태로 나눈다.

  • Point. 관측 하나가 그 자체로 극단적이다. 평범한 날씨 기록에 섞인 영하 100 도.
  • Contextual. 값 자체는 표본 안에서 평범하고 맥락에서 극단적이다. 2 도는 한 해의 측정값 가운데서는 눈에 띄지 않지만 8 월의 값으로는 틀렸다.
  • Collective. 어느 값 하나도 극단적이지 않지만 그것들이 이어진 구간이 함께 극단적이다. 모든 측정값이 normal 범위 안에 있는 심전도의 저전압 구간.

Contextual anomaly 와 collective anomaly 는 값이 담고 있지 않은 것을, 곧 context 변수와 순서를 요구한다. 주변 분포만 보는 방법은 어느 것도 찾지 못한다.

2.2. Reference Set

관측은 표본 전체에 견주어, 또는 이웃에 견주어 극단적이다.

  • Global. 표본 전체에 견주어 극단적.
  • Local. 표본 전체에 견주면 평범하고, 자기가 속한 group 에 견주면 극단적.

이 축은 꼭지 2.1 과 독립이므로 point 와 global 을 한 label 로 묶는 것은 잘못이다. Breunig, Kriegel, Ng and Sander (2000) 이 local outlier factor 를 만든 것은 local point outlier 를 위해서이며, 꼭지 5.3 이 다루는 경우이다.

2.3. Cause

Flag 가 붙은 값이 도착한 경로는 셋이고, 무엇을 해야 하는지는 경로마다 다르다.

  • Error. 측정, 전사, 전송에서 생긴 실수. 그 값은 연구 대상 process 가 아니라 그것을 기록한 process 를 기술한다.
  • Foreign population. 다른 것을 옳게 측정한 값. 예를 들어 batch 에 섞여 들어온 다른 lot 의 부품.
  • Genuine rare event. 연구 대상 process 를 옳게 측정한 값으로, 그 process 가 실제로 가진 꼬리에 놓여 있다.

어느 통계량도 이 셋을 가르지 못한다. 검출은 후보를 내놓고, 원인은 그 뒤의 기록이 밝힌다.

2.4. Discordancy and Contamination

Barnett and Lewis (1994) 는 둘을 갈라 둔다. Contaminant 는 다른 분포에서 온 관측이다. Discordant observation 은 나머지와 통계적으로 어긋나 보이는 관측이다.

둘은 서로를 함의하지 않는다. Contaminant 가 본체 안에 숨을 수 있고, 오염되지 않은 heavy-tailed 표본도 예측 가능한 비율로 discordant 관측을 낸다. 이 문서의 모든 검정은 discordancy 를 검정하며, contamination 은 꼭지 2.3 의 조사가 밝힌다.

2.5. Position in a Regression

분포가 아니라 model 을 적합하면 축 하나가 셋으로 갈라지고, 그 셋은 서로 어긋난다.

  • Residual outlier. 반응에서 적합된 면으로부터 멀다.
  • Leverage point. 예측변수에서 극단적이며, 실제로 적합을 움직이든 아니든 움직일 힘을 가진다.
  • Influential observation. 제거하면 적합이 눈에 띄게 바뀌며, Cook (1977) 이 자기 이름이 붙은 거리로 재었다.

영향 없는 높은 leverage 는 흔하고, 큰 잔차 없는 영향도 마찬가지로 점이 직선을 자기 쪽으로 끌어다 놓은 경우이다. Belsley, Kuh and Welsch (1980) 이 그 둘을 가르는 진단 지표를 모아 놓았다.

2.6. Labels

찾기를 시작하기 전에 무엇을 알고 있는지가 무엇을 할 수 있는지를 정한다.

  • Supervised. 두 class 모두의 label 이 붙은 예시. 이것은 outlier 문제라기보다 class 불균형이 심한 classification 문제이다.
  • Semi-supervised. 깨끗하다고 알려진 training set 과, 그것에 견주어 판정할 새 관측. 이것은 novelty detection 이다.
  • Unsupervised. Label 이 없는 표본 하나이며, 이미 outlier 를 담고 있을 수 있다.

꼭지 4 부터 6 까지는 unsupervised 이거나 semi-supervised 이며, label 붙은 outlier 가 드물기 때문이다. 깨끗하다고 가정했지만 깨끗하지 않은 training set 은 그 안의 outlier 를 정상으로 여기도록 방법을 가르친다.

2.7. Count

Outlier 를 몇 개 예상하는지는 문턱값만이 아니라 절차 자체를 바꾼다.

  • Single. 검정 하나, 명시된 오류율 하나.
  • Multiple. 개수를 모르는 여럿이며, masking 과 swamping 이 나타나는 자리이다. 둘은 아래에서 정의한다.

Masking 은 outlier 하나가 중심이나 척도를 부풀려 두 번째 outlier 가 더는 극단적으로 보이지 않게 하는 것이다. Swamping 은 그 반대로, 일그러짐이 커서 깨끗한 관측까지 함께 flag 되는 것이다. Hawkins (1980) 이 다수 outlier 문제를 다루었고, 꼭지 4.4 가 그것을 위해 만들어진 절차이다.

2.8. Time Series Type

순서가 있는 데이터에서는 꼭지 2.1 의 form 축이 이탈이 series 에 들어오는 방식으로 갈라진다. Fox (1972) 가 앞의 둘을, Chen and Liu (1993) 이 표준이 된 넷을 정리했다.

  • Additive. 측정값 하나가 밀려나고 series 는 곧바로 돌아온다.
  • Innovational. 충격이 process 안으로 들어와, 뒤따르는 측정값들로 이탈이 전파된다.
  • Level shift. Series 가 새 수준으로 옮겨 가 그대로 머문다.
  • Temporary change. Series 가 움직였다가 여러 측정값에 걸쳐 되돌아온다.

넷 모두 꼭지 2.1 아래에서는 하나의 collective anomaly 이며, 그래서 그 축은 장비 trace 에 쓰기에 너무 성기다. Chamber 가 영구히 drift 한 것과 스스로 회복한 것의 차이가 level shift 와 temporary change 이다.

3. Hierarchy of Methods

Fig 1 의 세 가지 방법 family 는 가정을 하나씩 내려놓는 계층을 이룬다. 한 단계 내려갈 때마다 위 단계가 읽지 못하는 데이터를 다룰 수 있게 되고, 그만큼 답이 주장할 수 있는 것이 약해진다.

3.1. The Three Families

통계적 방법 (꼭지 4) 은 분포의 형태를 가정하고 그로부터의 이탈을 재며, 그 가정이 명시된 오류율을 사 온다. Machine learning 방법 (꼭지 5) 은 형태를 내려놓고 데이터의 기하만 남기며, 여러 변수를 한꺼번에 다루는 대신 오류율이 붙지 않은 점수를 받는다. Deep 방법 (꼭지 6) 은 원래 좌표의 기하마저 내려놓고 표현을 먼저 배우며, 어떤 거리도 읽지 못하는 구조의 데이터를 다루는 대신 깨끗한 training 데이터와 비용을 치른다.

이 계층은 순위가 아니다. 한 단계 아래의 방법은 더 넓은 데이터에 답하고 더 좁은 질문에 답하므로, family 는 데이터가 무엇인지가 정하고, 그 family 안에서 어느 방법이 필요한지는 꼭지 2 의 축이 정한다.

3.2. Comparison on the Axes

Table 2 는 꼭지 4 부터 6 까지의 모든 방법을 꼭지 2 의 축 위에 놓고, 각 방법이 그 질문 가운데 어느 것에 실제로 답하는지를 말한다.

Table 2. Where each method sits on the axes of section 2

# Method Form (2.1) Reference set (2.2) Labels (2.6) Count (2.7)
1 Z-Score Point Global Unsupervised Single
2 Interquartile Range Point Global Unsupervised 통제하지 않음
3 Hampel Identifier Point Global Unsupervised 통제하지 않으나 masking 이 일어날 수 없음
4 Generalized ESD Point Global Unsupervised Multiple, 명시된 수준에서
5 Mahalanobis Distance Point Global Unsupervised Single
6 Isolation Forest Point Global Unsupervised 통제하지 않음
7 One-Class SVM Point Global Semi-supervised 통제하지 않음
8 Local Outlier Factor Point Local Unsupervised 통제하지 않음
9 ECOD Point Global Unsupervised 통제하지 않음
10 Autoencoder Point 또는 collective Global Semi-supervised 통제하지 않음
11 Adversarial and diffusion Point 또는 collective Global Semi-supervised 통제하지 않음
12 Patch feature memory Collective, 공간에서 Global Semi-supervised 통제하지 않음

굵게 쓴 두 칸만이 이탈이다. Local outlier factor 만이 reference set 을 바꾸고, generalized ESD 만이 outlier 를 몇 개 찾을지를 통제한다. Single 과 통제하지 않음의 차이는 그 방법이 무엇을 위해 만들어졌는가일 뿐 어떤 개수를 지킨다는 뜻이 아니다.

Deep 방법들은 방법이 아니라 데이터를 바꾸어 collective anomaly 에 닿는다. Series 의 window 나 image 의 patch 가 vector 하나가 되고, collective anomaly 가 그 vector 에서 point anomaly 가 된다. 꼭지 5 의 어느 것도 관측의 연속을 직접 채점하지 않는다.

네 개의 축이 표에서 빠져 있는데, 셋은 여기 있는 어느 방법도 답하지 않기 때문이고 하나는 모든 방법이 똑같이 답하기 때문이다.

  • Cause (2.3). 어느 통계량도 오류와 드문 사건을 가르지 못하며, 그 꼭지가 그것을 그대로 말한다.
  • Discordancy and contamination (2.4). 여기 있는 모든 방법이 discordancy 를 검정하고 어느 것도 contamination 을 판정하지 않으므로, 이 축은 어느 방법이 결과를 내놓는가가 아니라 결과를 어떻게 읽는가를 가른다.
  • Position in a regression (2.5). Leverage 와 influence 는 적합된 model 을 요구하는데, 이 문서는 그 대신 분포와 영역을 적합한다.
  • Time series type (2.8). Window 를 쓰는 방법이 level shift 에 flag 를 붙일 수는 있지만, 여기 있는 어느 것도 level shift 와 temporary change 를 가르지 못한다.

Contextual anomaly 도 form 축에서 손에 닿지 않는다. 견줄 context 변수를 요구하는데 여기 있는 어느 방법도 그것을 받지 않는다.

3.3. Comparison by the Shape of the Data

Table 1 은 같은 비교를 반대쪽에서 읽어, 데이터의 모양에서 그 모양이 가정을 만족시키는 방법으로 간다.

Table 1. Method by the shape of the data

# Data Method Why
1 변수 하나, 분포 미상 Interquartile Range 형태를 가정하지 않고, fence 가 25% 의 breakdown point 를 가진다.
2 변수 하나, 근사적으로 정규, 깨끗함 Z-Score 문턱값이 명시된 오류율을 가진다. 단 꼭지 4.1 의 상한이 그 위에 놓일 만큼 표본이 커야 한다.
3 변수 하나, 오염이 예상됨 Hampel Identifier Median 과 MAD 는 찾고 있는 outlier 가 움직이지 못하므로, 스스로를 가리는 것이 없다.
4 변수 하나, outlier 여럿, 근사적으로 정규 Generalized ESD 검정 하나가 아니라 탐색 전체에 대한 수준을 명시하고, 첫 단계가 아니라 마지막으로 통과한 단계를 읽는다.
5 변수 몇 개, 서로 상관 Mahalanobis Distance 공분산을 읽는 유일한 항목이며, 믿으려면 robust 한 중심과 척도가 필요하다.
6 변수 다수, 조율할 label 없음 ECOD Hyperparameter 가 아예 없는 유일한 항목이며, 어느 변수가 그 관측을 극단적으로 만들었는지 말해 준다.
7 변수도 많고 관측도 많음 Isolation Forest 표본 크기에 선형이고, 부분표본에서 동작하며, 분포를 가정하지 않는다.
8 밀도가 서로 다른 cluster Local Outlier Factor 관측을 표본 전체가 아니라 그 이웃에 견준다.
9 알려진 영역과 판정할 새 점 One-Class SVM 문제가 경계이고, 경계는 이 방법이 적합하는 것이다.
10 Audio, 긴 time series, 장비 trace Autoencoder 원래 좌표의 거리가 통하지 않는 곳에서도 재구성 오차는 살아남는다.
11 되풀이 생산되는 제품의 image Patch feature memory 꼭지 6.3 의 pretrained feature 가 결함의 모습을 이미 담고 있고, 채점이 inline 으로 돌릴 만큼 빠르다.
12 생산 lot 안의 부품 Part average testing 표준이 규칙을 이름 지어 두어, 한계값을 다투는 대신 감사할 수 있다.
13 장비 sensor trace Multivariate control chart 점수를 $T^2$ 와 $Q$ 로 나누면 무엇인가 움직였다는 것만이 아니라 어느 sensor 를 보아야 하는지를 말해 준다.

4. Statistical Methods

계산이 가장 싸고 근거를 대기가 가장 쉬운 family 이며, 가정이 성립하는 동안은 옳은 기본값이다.

4.1. Z-Score

Z-score 는 관측과 표본 평균의 편차를 표본 표준편차로 나눈다.

$$z_i = \frac{x_i - \bar{x}}{s}$$
  • $z_i$ — 관측 $i$ 의 z-score.

  • $x_i$ — $n$ 개 값으로 이루어진 표본의 $i$ 번째 관측.

  • $\bar{x}$ (x bar) — 그 표본의 평균.

  • $s$ — 그 표본의 표준편차로, 편차 제곱의 합을 $n-1$ 로 나누어 만든다.

  • Assumption. 정규성, 그리고 찾고 있는 것이 평균과 표준편차를 움직이지 못할 만큼 깨끗한 표본.

  • Setting. 절대값 3 초과. 정규 표본에서 우연히 이를 넘는 것은 약 0.27% 이다.

  • Breaks when. 오염이 있을 때. Outlier 가 자기가 견주어지는 척도를 부풀려 스스로를 가린다. 표본이 작을 때도 무너진다. 점수에는 $(n-1)/\sqrt{n}$ 의 상한이 있어 3 의 규칙은 관측 11 개 아래에서 발동하지 않는다 (Appendix D).

  • Met at. 정규에 가깝다고 이미 알려진 단일 parameter 로, 큰 오류를 걸러 낸 데이터.

4.2. Interquartile Range

Tukey 의 규칙은 아래 구간을 벗어나는 관측에 flag 를 붙인다. 구간의 두 끝은 box plot 의 수염이 그리는 fence 이다.

$$\left[ \ Q_1 - 1.5 \cdot \mathrm{IQR}, \quad Q_3 + 1.5 \cdot \mathrm{IQR} \ \right], \qquad \mathrm{IQR} = Q_3 - Q_1$$
  • $Q_1$ — 1 사분위수로, 표본의 4 분의 1 이 그 아래에 놓이는 값.

  • $Q_3$ — 3 사분위수로, 표본의 4 분의 3 이 그 아래에 놓이는 값.

  • $\mathrm{IQR}$ — 그 둘 사이의 거리로, 가운데 절반의 퍼짐이다.

  • Assumption. 분포의 형태는 가정하지 않되 대칭은 가정한다. Fence 가 양쪽에 같은 배수로 놓이기 때문이다.

  • Setting. 안쪽 fence 는 1.5 IQR, 바깥쪽 fence 는 3 IQR (Appendix B).

  • Breaks when. 표본에 왜도가 있을 때. 긴 꼬리는 분포의 성질인데 규칙은 그것을 outlier 의 연속으로 읽는다 (Appendix B).

  • Met at. 단일 parameter 를 처음 들여다볼 때. Box plot 의 수염이 이미 이 규칙이다.

4.3. Hampel Identifier

Hampel identifier 는 z-score 의 형태를 두고 두 추정값을 바꾼다. 평균 자리에 median 이, 표준편차 자리에 median 으로부터의 편차의 median 을 다시 잰 값이 들어간다.

$$\mathrm{MAD} = \mathrm{median}\left( \left| x_1 - \tilde{x} \right|, \ldots, \left| x_n - \tilde{x} \right| \right)$$ $$M_i = \frac{x_i - \tilde{x}}{\mathrm{MAD} / \Phi^{-1}(0.75)}$$
  • $x_1, \ldots, x_n$ — 표본이고 $x_i$ 는 그 $i$ 번째 관측으로, 꼭지 4.1 과 같다.

  • $\tilde{x}$ (x tilde) — 표본의 median 으로, 편차를 그로부터 재고 점수를 그에 맞추어 중심에 놓는다.

  • $\mathrm{MAD}$ — 그 절대편차들의 median 으로, 다시 재기 전의 raw robust 척도이다.

  • $\Phi^{-1}(0.75) = 0.674490$ — 표준정규분포의 3 사분위수로, MAD 를 이 값으로 나눈다.

  • $M_i$ — 관측 $i$ 의 modified z-score 로, 꼭지 4.1 의 $z_i$ 와 같은 척도에서 읽는다.

  • Assumption. 데이터에 대해서는 아무것도 가정하지 않는다. 정규성은 점수를 z-score 척도에 올리는 상수로만 들어온다 (Appendix D).

  • Setting. Modified z-score 의 절대값 3.5 초과로, Iglewicz and Hoaglin (1993) 이 권한 값이다.

  • Breaks when. 표본의 절반이 넘게 한 값을 취할 때. MAD 가 0 이 되어 점수가 정의되지 않는다.

  • Met at. 자기 lot 안에서 판정하는 단일 parameter. 찾는 outlier 가 표본 안에 들어 있는 경우이다.

4.4. Generalized ESD

단일 outlier 검정을 남은 표본에 되풀이하는 방식은 유의수준을 지키지 못한다. 되풀이할 때마다 수준을 다시 쓰기 때문이다. Generalized extreme studentized deviate 절차는 상한 $r$ 을 먼저 선언하고 같은 통계량을 $r$ 단계에 걸쳐 돌리며, 수준은 탐색 전체에 대해 명시한다.

$$R_i = \frac{\max_j \left| x_j - \bar{x}_i \right|}{s_i}, \qquad i = 1, \ldots, r$$
  • $R_i$ — 단계 $i$ 에서의 extreme studentized deviate.

  • $x_j$ — 표본의 관측이며, 단계 번호와 구별하려고 $j$ 로 첨자를 붙였다.

  • $\bar{x}_i$ 와 $s_i$ — 앞선 단계에서 제거한 $i-1$ 개 관측이 빠진 뒤 남은 표본의 평균과 표준편차.

  • $\max_j$ — 아직 남아 있는 관측에 대한 최대값. 그것을 취한 관측은 단계 $i+1$ 전에 제거된다.

  • $r$ — 선언한 outlier 개수의 상한으로, 데이터를 읽기 전에 정한다.

  • Assumption. 표본에서 오염되지 않은 부분이 근사적으로 정규이고, outlier 개수의 상한 $r$ 을 데이터를 읽기 전에 정한다.

  • Setting. $r$, 탐색 전체에 대한 유의수준, 그리고 Rosner (1983) 의 임계값 $\lambda_i$ (Appendix D).

  • Breaks when. $r$ 을 실제 개수보다 작게 잡거나, 마지막으로 통과한 단계가 아니라 첫 실패에서 읽을 때. 그러면 masking 이 살아남는다.

  • Met at. 표준에 견주어 근거를 대야 하는 판정. ISO 16269-4 의 다수 outlier 방법이다.

4.5. Mahalanobis Distance

다변량 데이터에서 Mahalanobis distance 는 변수 사이의 공분산을 감안한 단위로 관측이 중심에서 얼마나 떨어져 있는지를 잰다.

$$d^2(x) = \left( x - \mu \right)^{T} \Sigma^{-1} \left( x - \mu \right)$$
  • $x$ — 관측 하나이며, 변수마다 성분 하나를 가지는 vector 로 쓴다.

  • $\mu$ — 표본의 중심으로, 변수별 평균의 vector 이다.

  • $\Sigma$ — 변수들의 공분산 행렬이고, $\Sigma^{-1}$ 은 그 역행렬이다.

  • $d^2(x)$ — 제곱 거리로, 변수가 하나일 때 꼭지 4.1 의 $z_i^2$ 로 줄어든다.

  • Assumption. 다변량 정규성, 그리고 outlier 가 움직이지 않은 중심과 공분산.

  • Setting. 변수마다 자유도 하나인 chi-square cut-off (Appendix D).

  • Breaks when. $\mu$ 와 $\Sigma$ 가 오염된 데이터에서 나올 때. Outlier 가 뭉쳐 있으면 그것을 감추는 방향으로 $\Sigma$ 를 부풀린다. Robust 한 추정값이 이를 고친다 (Appendix D).

  • Met at. 서로 상관된 몇 개의 parameter 를 함께 읽을 때. 한 공정 단계의 요약 parameter 같은 것이다.

5. Machine Learning Methods

Normal 영역을 label 없는 데이터에서 배우므로, 출력은 통과 여부가 아니라 순위를 매길 점수이다.

Isolation Forest 는 무작위 변수를 무작위 문턱값에서 쪼개어 tree 를 세우고, 한 관측이 홀로 남기까지 몇 번의 분할이 필요한지를 기록한다. 성긴 영역의 관측은 적은 분할로 떨어져 나오므로, forest 전체에 걸친 짧은 평균 경로 길이가 anomaly score 가 된다.

  • Assumption. Outlier 가 적고 성긴 영역에 놓여 있다는 것. 분포는 가정하지 않는다.
  • Setting. Tree 의 개수와 부분표본 크기. 출력은 오류율이 아니라 순위이다.
  • Breaks when. 이탈이 변수들의 조합에만 있을 때, 또는 contamination rate 을 짐작으로 정할 때.
  • Met at. 행이 많고 변수가 넓은 표에서 첫 순위를 싸게 얻고자 할 때.

One-Class SVM 은 training 데이터가 차지하는 영역을 감싸는 경계를 배우고, 그 경계 밖의 것을 outlier 라고 부른다. Kernel 이 경계가 어떻게 휠 수 있는지를 정하고, parameter $\nu$ 가 경계 밖으로 나가도 되는 training 데이터의 비율에 상한을 준다.

  • Assumption. 깨끗하다고 알려진 training set. 그러면 문제는 novelty detection 이다 (꼭지 2.6).
  • Setting. Kernel 과 그 bandwidth, 그리고 경계 밖으로 나가는 training 데이터 비율의 상한 $\nu$.
  • Breaks when. Training set 이 깨끗하지 않을 때, 변수의 척도가 다를 때, 표본이 클 때. 적합이 표본 크기에 대해 이차 이상이다.
  • Met at. 먼저 고정해 둔 normal 영역이 있고, 그에 견주어 판정할 새 자료가 있을 때.

5.3. LOF (Local Outlier Factor)

Local Outlier Factor 는 한 관측 둘레의 밀도를 그 $k$ 개 최근접 이웃 각각의 둘레 밀도와 견준다. 1 에 가까운 factor 는 그 관측이 이웃들만큼 빽빽이 둘러싸여 있다는 뜻이고, 1 보다 크게 높은 factor 는 이웃들보다 성긴 자리에 있다는 뜻이다.

  • Assumption. 밀도가 뜻을 가진다는 것. 곧 원래 좌표의 거리가 뜻을 가진다는 것이다.
  • Setting. 이웃 크기 $k$. Factor 가 1 에 가까우면 평범하고, 1 보다 크게 높으면 성긴 자리이다.
  • Breaks when. 변수가 많아 거리가 더는 가르지 못할 때, 또는 $k$ 가 cluster 경계를 넘어갈 때.
  • Met at. 밀도가 다른 group 이 섞인 데이터. 여러 tool 이나 chamber 를 한 표에 모은 경우이다.

5.4. ECOD (Empirical Cumulative Distribution)

ECOD 는 outlier 를 꼬리의 드문 사건으로 보고, 아무것도 적합하지 않은 채 꼬리의 희소함을 잰다. 변수마다 따로 empirical cumulative distribution 을 만들고, 모든 관측의 왼쪽 꼬리 확률과 오른쪽 꼬리 확률을 읽어 낸 다음, 그 확률들을 변수에 걸쳐 하나의 점수로 모은다.

  • Assumption. Outlier 는 적어도 한 변수의 꼬리 사건이라는 것.
  • Setting. 없다. 여기서 정할 것이 없는 유일한 방법이다.
  • Breaks when. 이탈이 변수들의 조합에만 있을 때. 꼭지 4.5 가 다루는 경우이다.
  • Met at. 조율할 label 이 없는 넓은 표에서, flag 가 어느 변수 때문인지까지 대야 할 때.

6. Deep Learning Methods

이탈은 배운 표현을 재현하지 못하는 정도에서 읽는다. Audio, 긴 time series, 장비 trace, 무엇보다 image 를 위한 것이며 training 에 쓸 깨끗한 데이터가 필요하다. Image 의 처방은 꼭지 6.3 에 있다.

6.1. Autoencoder

Autoencoder 는 입력을 좁은 code 로 압축하고 그로부터 입력을 재구성한다. Normal 데이터만으로 training 하면 자기 용량을 normal 구조에 쓰는 표현을 배우게 되고, 그러면 재구성 오차가 anomaly score 노릇을 한다.

  • Assumption. 깨끗한 training 데이터, 그리고 network 가 입력을 그대로 복사하지 못할 만큼 좁은 bottleneck.
  • Setting. Code 의 너비와 재구성 오차에 두는 cut.
  • Breaks when. 용량이 너무 클 때. 본 적 없는 anomaly 도 정상만큼 충실히 재구성된다. Training set 이 깨끗하지 않을 때도 무너진다 (꼭지 2.6).
  • Met at. 장비 trace 처럼 점마다의 한계값으로는 읽히지 않는 긴 순서 기록.

6.2. Generative Adversarial Network

Adversarial 방식은 normal 데이터와 구별되지 않는 표본을 만들도록 generator 를 training 한다. 채점은 가장 가까운 생성 표본을 찾아 잔차를 읽는 일이다. Normal 관측은 학습된 manifold 위에 놓여 가깝게 맞추어지고 anomaly 는 그렇지 않다.

이런 종류의 첫 방법인 AnoGAN 은 그 잔차에 discriminator feature 항을 더하며, 관측 하나를 forward pass 가 아니라 latent space 의 반복 탐색으로 채점한다. Diffusion model 이 그 뒤 같은 자리를 넘겨받아, 잡음 제거가 관측을 얼마나 옮겨야 하는지로 채점하며 비용은 다시 높다.

  • Assumption. 꼭지 6.1 과 같으며, generator 가 normal 데이터의 manifold 를 배웠다는 것이 더해진다.
  • Setting. 채점에 쓰는 latent 탐색 예산과 잔차에 두는 cut.
  • Breaks when. Latent 탐색이 수렴하지 않을 때, 또는 관측 하나의 채점 비용이 line 이 허용하는 것을 넘을 때.
  • Met at. 꼭지 6.1 의 데이터 가운데 생성 model 이 이미 있고 그 비용을 치를 수 있는 경우.

6.3. Industrial Image Inspection

시각 결함 검사는 하나의 처방으로 모였다. Pretrained network 를 image 위로 돌리고, 결함 없는 예시의 patch feature 를 보관하고, 새 patch 를 그 기억까지의 거리로 채점한다. 보고된 검출률과 지연은 Appendix E 에 있다.

  • Assumption. 결함 없는 예시가 정상의 모습을 덮고 있고, 제품이 되풀이된다는 것.
  • Setting. Pretrained backbone, patch 크기, 기억의 크기, 그리고 거리 cut.
  • Breaks when. 조명과 결함의 변이가 기억이 담은 것을 넘어설 때. 보고된 국소화 성능이 가파르게 떨어진다 (Appendix E).
  • Met at. 되풀이 생산되는 제품의 inline image 검사. Line 이 요구하는 지연 안에서 돈다.

References

[1] Tukey, J. W. (1977). Exploratory Data Analysis. Addison-Wesley, Reading. ISBN 978-0-201-07616-5.
[2] Barnett, V., & Lewis, T. (1994). Outliers in Statistical Data, 3rd edition. Wiley, Chichester. ISBN 978-0-471-93094-5.
[3] Fox, A. J. (1972). Outliers in Time Series. Journal of the Royal Statistical Society: Series B, 34(3), 350–363.
[4] Cook, R. D. (1977). Detection of Influential Observation in Linear Regression. Technometrics, 19(1), 15–18.
[5] Hawkins, D. M. (1980). Identification of Outliers. Monographs on Applied Probability and Statistics. Chapman and Hall, London. ISBN 978-94-015-3996-8.
[6] Belsley, D. A., Kuh, E., & Welsch, R. E. (1980). Regression Diagnostics: Identifying Influential Data and Sources of Collinearity. Wiley, New York. ISBN 978-0-471-05856-4.
[7] Chen, C., & Liu, L.-M. (1993). Joint Estimation of Model Parameters and Outlier Effects in Time Series. Journal of the American Statistical Association, 88(421), 284–297.
[8] Chandola, V., Banerjee, A., & Kumar, V. (2009). Anomaly Detection: A Survey. ACM Computing Surveys, 41(3), Article 15.
[9] Brys, G., Hubert, M., & Struyf, A. (2004). A Robust Measure of Skewness. Journal of Computational and Graphical Statistics, 13(4), 996–1017.
[10] Hubert, M., & Vandervieren, E. (2008). An Adjusted Boxplot for Skewed Distributions. Computational Statistics and Data Analysis, 52(12), 5186–5201.
[11] Mahalanobis, P. C. (1936). On the Generalised Distance in Statistics. Proceedings of the National Institute of Sciences of India, 2(1), 49–55.
[12] Shiffler, R. E. (1988). Maximum Z Scores and Outliers. The American Statistician, 42(1), 79–80.
[13] Rosner, B. (1983). Percentage Points for a Generalized ESD Many-Outlier Procedure. Technometrics, 25(2), 165–172.
[14] Iglewicz, B., & Hoaglin, D. C. (1993). How to Detect and Handle Outliers. The ASQC Basic References in Quality Control: Statistical Techniques, Vol. 16. ASQC Quality Press, Milwaukee. ISBN 978-0-87389-247-6.
[15] ISO 16269-4:2010, Statistical interpretation of data — Part 4: Detection and treatment of outliers. International Organization for Standardization.
[16] Rousseeuw, P. J., & Van Driessen, K. (1999). A Fast Algorithm for the Minimum Covariance Determinant Estimator. Technometrics, 41(3), 212–223.
[17] Breunig, M. M., Kriegel, H.-P., Ng, R. T., & Sander, J. (2000). LOF: Identifying Density-Based Local Outliers. ACM SIGMOD Record, 29(2), 93–104.
[18] Schölkopf, B., Platt, J. C., Shawe-Taylor, J., Smola, A. J., & Williamson, R. C. (2001). Estimating the Support of a High-Dimensional Distribution. Neural Computation, 13(7), 1443–1471.
[19] Liu, F. T., Ting, K. M., & Zhou, Z.-H. (2008). Isolation Forest. Proceedings of the Eighth IEEE International Conference on Data Mining, 413–422.
[20] Schlegl, T., Seeböck, P., Waldstein, S. M., Schmidt-Erfurth, U., & Langs, G. (2017). Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discovery. Information Processing in Medical Imaging, Lecture Notes in Computer Science 10265, 146–157.
[21] Li, Z., Zhao, Y., Hu, X., Botta, N., Ionescu, C., & Chen, G. H. (2022). ECOD: Unsupervised Outlier Detection Using Empirical Cumulative Distribution Functions. IEEE Transactions on Knowledge and Data Engineering, 35(12), 12181–12193.
[22] Han, S., Hu, X., Huang, H., Jiang, M., & Zhao, Y. (2022). ADBench: Anomaly Detection Benchmark. Advances in Neural Information Processing Systems 35, Datasets and Benchmarks Track.
[23] Roth, K., Pemula, L., Zepeda, J., Schölkopf, B., Brox, T., & Gehler, P. (2022). Towards Total Recall in Industrial Anomaly Detection. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 14318–14328.
[24] Batzner, K., Heckler, L., & König, R. (2024). EfficientAD: Accurate Visual Anomaly Detection at Millisecond-Level Latencies. Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 128–138.
[25] AEC-Q001 Rev-D (2011), Guidelines for Part Average Testing. Automotive Electronics Council.
[26] Hsu, C.-Y., Chien, C.-F., & Lin, K.-Y. (2012). Semiconductor Fault Detection and Classification for Yield Enhancement and Manufacturing Intelligence. Flexible Services and Manufacturing Journal, 24(3), 358–378.


Appendix A. Terminology

  • adjusted boxplot — 표본의 왜도에 따라 fence 를 옮긴 box plot 으로, 긴 꼬리가 outlier 의 연속으로 읽히지 않게 한다.
  • anomaly score — Normal pattern 에서 얼마나 벗어났는지로 관측의 순위를 매기는 수이며, 그 값 어디에도 명시된 오류율이 붙어 있지 않다.
  • AU-PRO — 영역별 겹침 곡선 아래 면적으로, 결함을 검출했는지가 아니라 얼마나 잘 국소화했는지를 채점한다.
  • AUROC — 수신자 조작 특성 곡선 아래 면적으로, 무작위로 고른 anomaly 가 무작위로 고른 normal 관측보다 높은 점수를 받을 확률이다.
  • box plot — 상자가 interquartile range 를 덮고 수염이라 부르는 선이 상자에서 interquartile range 의 1.5 배 안에 있는 가장 극단적인 관측까지 뻗으며, 그 너머의 것은 따로 점으로 그리는 요약 그림.
  • breakdown point — 추정값이 나머지 데이터를 더는 기술하지 못하게 되기까지 망가뜨려야 하는 표본의 비율. 평균은 0%, median 은 50% 이다.
  • chi-square distribution — 독립인 표준정규 변수의 제곱합이 따르는 분포로, 항마다 자유도 하나를 가진다. 제곱 거리를 확률로 바꾸는 것이 이것이다.
  • consistency constant — Robust 척도 추정값에 곱하거나 나누어, 가정한 분포 아래에서 표준편차로 수렴하게 하는 인자. MAD 에서는 0.674490 이고 interquartile range 에서는 1.349 이며, AEC-Q001 은 뒤의 것을 1.35 로 반올림한다.
  • contaminant — 나머지 표본이 따르는 분포가 아닌 다른 분포에서 온 관측이며, 단지 나머지와 어긋나 보이는 관측과는 다르다.
  • contamination — 가정한 분포에서 오지 않은 표본의 비율.
  • critical value — 검정 통계량이 유의하다고 불리려면 넘어야 하는 값. 검정 대상 데이터가 아니라 유의수준과 표본 크기에서 나온다.
  • cumulative distribution function — 각 값에 대해 그 값 이하로 떨어질 확률을 주는 함수. 표준정규의 것은 $\Phi$ 로 쓰고, 그 역함수는 확률을 다시 표준편차의 개수로 바꾼다.
  • degrees of freedom — 통계량이 자유롭게 변할 수 있는 독립한 양의 개수. 제곱 거리를 어느 chi-square 분포에 견주어 읽을지를 정하며, 여기서는 변수마다 하나이다.
  • discordant observation — 나머지 표본과 통계적으로 어긋나 보이는 관측. Discordancy 의 검정이 보고하는 것은 이것이지 contamination 이 아니다.
  • discriminator — 생성된 표본을 실제 표본과 가르도록 generator 와 나란히 training 하는 network. 그 내부 feature 는 관측을 generator 가 만든 것과 견주는 데 다시 쓸 수 있다.
  • ECOD — Empirical cumulative distribution 에 기반한 outlier 검출로, 꼭지 5.4 의 방법이다.
  • ESD — Extreme studentized deviate 의 줄임말로, 꼭지 4.4 의 generalized ESD 절차의 이름에 쓰였다.
  • extreme studentized deviate — 표본 평균으로부터의 가장 큰 절대편차를 표본 표준편차로 나눈 값. Generalized ESD 절차의 각 단계가 계산하는 통계량이다.
  • false positive rate — 규칙이 flag 를 붙이는 normal 관측의 비율. 그 규칙이 닿는 검출률에 대해 치르는 값이다.
  • generator — Discriminator 가 training 데이터와 가르지 못할 표본을 만들어 내도록 training 하는 network. 일단 training 되면 normal 데이터가 나온 분포를 대신한다.
  • Hotelling's T-squared — 제곱 z-score 의 다변량 대응물로, model 이 적합한 구조 안에서 관측이 중심으로부터 떨어진 거리를 잰다.
  • hyperparameter — 데이터에서 추정하지 않고 방법을 돌리기 전에 정하는 설정값으로, 이웃 크기나 kernel bandwidth 같은 것이다. Label 이 없으면 그것을 맞추어 볼 대상이 없다.
  • influential observation — 제거하면 적합된 model 이 눈에 띄게 바뀌는 관측으로, Cook 의 거리로 잰다.
  • interquartile range — 1 사분위수에서 3 사분위수까지의 거리이며, 표본에서 가운데 절반의 퍼짐이다. 정규 표본에서는 표준편차의 1.349 배이다.
  • IQR — 이 문서에서 interquartile range 를 가리키는 데 쓰는 줄임말.
  • kernel — One-class SVM 이 일하는 기하 구조를 정하는 함수이며, 그와 함께 학습된 경계가 취할 수 있는 모양도 정한다.
  • latent space — 생성 model 이 오가며 대응시키는 압축된 좌표로, 그 안의 한 점이 재구성된 관측 하나를 대신한다.
  • leverage — 적합된 model 의 예측변수에서 관측이 얼마나 극단적인가이며, 그것이 적합을 실제로 움직이든 아니든 움직일 수 있는 폭을 정한다.
  • loading — 주성분이 원래 변수 하나에 주는 가중치로, 성분 공간에서 올라온 flag 를 그것을 통해 sensor 까지 되짚는다.
  • lot — 함께 처리되어 제조 공정을 한 단위로 지나가는 부품의 묶음. Part average testing 이 부품을 견주는 상대가 이 group 이다.
  • manifold — 데이터가 실제로 차지하는, 전체 공간 안의 더 낮은 차원의 면. 그것을 배운 생성 model 은 그 위의 점은 재현하고 그 밖의 점은 재현하지 못한다.
  • masking — Outlier 하나가 자기가 견주어지는 중심이나 척도를 충분히 부풀려, 자기 자신이나 두 번째 outlier 가 더는 극단적으로 보이지 않게 되는 효과.
  • medcouple — 마이너스 1 과 1 사이에 있고 대칭 표본에서 0 이 되는 robust 한 왜도 척도로, median 양쪽 관측들을 견준 비교의 median 으로 만든다.
  • median absolute deviation (MAD) — 관측들이 표본 median 에서 떨어진 절대편차의 median 으로, 소수의 극단적인 관측이 부풀릴 수 없는 척도 추정값으로 쓴다.
  • minimum covariance determinant — 다변량 중심과 공분산의 robust 한 추정값으로, 공분산 행렬의 행렬식이 가장 작은 관측 부분집합에서 얻는다.
  • MVTec AD — 공산품 사진으로 만든 공개 benchmark 로, training 용은 결함이 없고 test 용은 결함이 있으며 결함 영역이 표시되어 있다. MVTec AD 2 는 더 어렵게 만든 뒤의 집합이다.
  • novelty detection — 새 관측을 outlier 가 없다고 가정한 training set 에 견주어 판정하는 것으로, 이미 outlier 를 담고 있을 수 있는 표본 하나를 뒤지는 것과 다르다.
  • order statistic — 값이 아니라 정렬된 표본에서의 순위로 지목되는 관측으로, median 이나 사분위수 같은 것이다. 극단적인 관측을 더 멀리 옮겨도 그것은 움직이지 않는다.
  • outlier — 나머지 표본이 따르는 분포와 어긋나는 관측. 이 label 은 model 과의 정합성에 대한 것이며, 그 자체로 관측이 틀렸음을 밝히지는 않는다.
  • physical limit — 측정 대상이 무엇인가에 따라 측정값이 넘을 수 없는 한계로, 음의 압력이나 100% 를 넘는 수율 같은 것이다. 표본을 읽기 전에 이미 알고 있으므로, 그 밖의 값은 단지 어긋난 것이 아니라 틀린 것이다.
  • pretrained network — 크고 일반적인 dataset 에서 적합한 뒤 더 training 하지 않고 쓰는 network 로, 자기 출력이 아니라 중간 층이 내놓는 feature 를 쓰려는 것이다.
  • principal component — 이미 적합된 방향들과 상관이 없다는 조건 아래, 분산이 가장 큰 쪽으로 데이터에 적합한 방향. 서로 상관된 sensor 들에서는 보통 몇 개가 변동의 대부분을 담는다.
  • reconstruction error — 입력과, model 이 그 입력을 압축했다가 다시 세워 내놓은 출력 사이의 거리.
  • robust — 소수의 오염된 관측이 멀리 움직이지 못하는 추정값을 이르는 말. 그 소수가 얼마나 커도 되는지는 breakdown point 가 말한다.
  • significance level — 표본이 실제로 깨끗한데도 flag 를 붙일 확률로, 데이터를 보기 전에 정한다. 되풀이를 셈에 넣지 않고 검정을 되풀이하면 이것이 고른 값 위로 올라간다.
  • specification limit — 부품이 팔리려면 측정된 parameter 가 그 안에 머물러야 하는 경계로, 표본이 아니라 설계에서 정한다. 부품이 이것을 통과하고도 자기 lot 안에서는 outlier 일 수 있다.
  • squared prediction error (Q statistic) — 적합된 model 이 설명하지 못한 관측의 부분으로, 관측에서 그 model 의 공간 안 재구성까지의 제곱 거리로 잰다.
  • SVM — Support vector machine 으로, kernel 이 정한 기하 구조에서 얻을 수 있는 가장 넓은 여백으로 class 를 가르는 분류기. 꼭지 5.2 의 one-class 변형에는 두 번째 class 가 없어, 가진 하나를 감싼다.
  • swamping — Outlier 가 중심이나 척도를 충분히 일그러뜨려, 깨끗한 관측까지 그것과 함께 flag 되는 효과.
  • winsorizing — 고른 분위수를 넘어가는 모든 관측을 그 분위수의 값으로 바꾸어, 표본에서 고정된 몫을 검정하는 대신 안으로 끌어당기는 것. 검출 규칙이 아니라 처리이다.

Appendix B. Tukey's Rule

꼭지 4.2 는 이 규칙을 한 줄로 진술한다. 이 appendix 는 1.5 라는 배수가 어디에서 왔는지, 그것이 z-score 에 견주어 무엇을 치르는지, 그리고 이 규칙이 어디에서 통하지 않게 되는지를 적는다.

B.1. Inner and Outer Fences

Tukey (1977) 은 fence 를 한 쌍이 아니라 두 쌍 그렸다. 안쪽 쌍이 꼭지 4.2 의 규칙이고, 바깥쪽 쌍은 interquartile range 의 1.5 배가 아니라 3 배에 놓인다.

$$Q_1 - c \cdot \mathrm{IQR} \ \le \ x_i \ \le \ Q_3 + c \cdot \mathrm{IQR}$$
  • $c$ — Fence 를 놓는 배수로, 안쪽 쌍에서는 1.5 이고 바깥쪽 쌍에서는 3 이다.
  • $Q_1$, $Q_3$, $\mathrm{IQR}$ — 꼭지 4.2 와 같다.

안쪽 fence 를 넘어간 관측을 Tukey 는 outside, 바깥쪽 fence 를 넘어간 관측을 far out 이라 불렀다. 수염은 안쪽 fence 안의 마지막 관측까지 뻗으므로, 그림에서 따로 점으로 보이는 것은 모두 적어도 outside 이다.

둘은 함께 읽는다. Outside 는 한 번 보아야 한다는 뜻이고 far out 은 어떻게 읽어도 극단적이라는 뜻이며, cut-off 하나로는 지을 수 없는 구분이다.

B.2. What the Multiple Costs

1.5 라는 배수는 유도된 것이 아니라 편의로 고른 것이다. 꼭지 4.2 는 이 규칙을 3 의 z-score 와 비슷하다고 부르지만 둘은 같지 않다.

Table 4. Where each fence sits on a normal sample

Rule Position Share of a normal sample flagged
Inner fence, $c = 1.5$ 2.6980 $\sigma$ 0.6977%
Outer fence, $c = 3$ 4.7214 $\sigma$ 0.0002%
Classical rule at 3 3.0000 $\sigma$ 0.2700%

안쪽 fence 는 3 의 z-score 보다 2.6 배 느슨하고, 배수가 1.724 였다면 그 자리에 정확히 놓였을 것이다. 바깥쪽 fence 는 그 둘보다 세 자릿수만큼 엄격하다.

같다가 아니라 비슷하다이다. 두 규칙 모두 표준편차 2 의 규칙이 5% 를 flag 할 자리에서 1% 도 되지 않는 몫에 flag 를 붙이며, 둘 사이의 선택은 오염에 달려 있다.

B.3. Skewed Samples

Fence 는 $Q_1$ 아래와 $Q_3$ 위에 같은 배수로, 대칭으로 놓인다. 왜도가 있는 표본에서 긴 꼬리는 분포의 성질인데 규칙은 그것을 outlier 의 연속으로 읽고 짧은 쪽에는 아무것도 flag 하지 않는다.

오염이 전혀 없는 lognormal 표본 200,000 개에서 표준 fence 는 위쪽 fence 너머 6.22% 에 flag 를 붙이고 아래쪽에서는 하나도 붙이지 않는다.

Hubert and Vandervieren (2008) 의 adjusted boxplot 은 Brys, Hubert and Struyf (2004) 의 medcouple 로 잰 표본의 왜도에 따라 각 fence 를 옮겨 이것을 고친다.

$$\left[ \ Q_1 - 1.5 e^{a \cdot \mathrm{MC}} \cdot \mathrm{IQR}, \quad Q_3 + 1.5 e^{b \cdot \mathrm{MC}} \cdot \mathrm{IQR} \ \right]$$
  • $\mathrm{MC}$ — Medcouple 로, $-1$ 과 $1$ 사이에 있고 대칭 표본에서 0 이 되는 robust 한 왜도 척도이다.
  • $a$, $b$ — $\mathrm{MC} \ge 0$ 일 때 $-4$ 와 $3$ 이고 음수일 때 $-3$ 과 $4$ 여서, 긴 쪽의 fence 는 밖으로 나가고 짧은 쪽의 fence 는 안으로 들어온다.

그 표본에서 medcouple 은 0.3264 이고, adjusted fence 는 6.22% 와 없음 대신 위쪽 1.10%, 아래쪽 0.42% 에 flag 를 붙인다. 정규 표본이 줄 것보다는 여전히 많지만, 분포의 모양을 outlier 의 목록으로 보고하지는 않는다.

Appendix C. Semiconductor Practice

Fab 은 표준이 이름을 붙였고, 감사자가 확인할 수 있고, 기술자가 그에 따라 움직일 수 있는 방법을 돌린다. 그 가운데 둘은 꼭지 4 부터 6 까지에서 이미 다룬 구성이다.

C.1. Part Average Testing

Part average testing 은 측정값이 모두 specification limit 을 통과하더라도 자기 lot 에서 비정상인 부품을 걸러 낸다. AEC-Q001 이 자동차 부품에 대해 꼭지 4.3 의 설계 위에 이를 정의한다. Robust mean 은 median 이고 robust sigma 는 interquartile range 를 1.35 로 나눈 것이며, 부품은 아래 구간 안에 들 때 남는다.

$$\tilde{x} \pm k \cdot \frac{\mathrm{IQR}}{1.35}$$
  • $\tilde{x}$ — 판정 대상 부품들에 걸친 그 parameter 의 median 으로, 표준은 이것을 robust mean 이라 부른다.
  • $\mathrm{IQR}$ — 그것들의 interquartile range 이며, $\mathrm{IQR}/1.35$ 가 표준이 robust sigma 라 부르는 것이다.
  • $k$ — 한계값을 그 sigma 의 몇 배에 둘지를 정하는 배수로, 관례상 6 이다.

그 제수는 꼭지 4.2 의 $1.349 \sigma$ 를 반올림한 것이며, $\Phi^{-1}(0.75)$ 가 MAD 에 하는 일을 사분위수의 퍼짐에 한다. 표준은 MAD 대신 사분위수를, 3.5 대신 6 을 고르지만 구성은 같다. Robust 한 중심, 정규 단위의 robust 한 척도, 그 척도의 배수이다.

Static 한 한계값은 과거 데이터에서 한 번 계산하여 모든 lot 에 적용한다. Dynamic 한 한계값은 lot 마다 다시 계산하여, 전체가 고르게 밀려 있으면서 내부는 촘촘한 lot 을 잡아낸다. 다만 사분위수가 뜻을 가지려면 lot 마다 최소 표본이 필요하며, 표준에서는 30 개이다.

C.2. Fault Detection and Classification

장비 sensor 는 한 공정 단계 내내 압력, 유량, 전력, 온도를 보고한다. Fault detection and classification 은 각 trace 를 wafer 마다의 요약 parameter 로 줄이고 그것들을 함께 감시한다. 변수별 한계값은 조합에서만 드러나는 이탈을 놓치기 때문이다.

표준적인 구성은 축소된 공간에서 돌리는 꼭지 4.5 의 multivariate control chart 이다. Normal 생산에서 주성분을 적합하고, 그 공간 안에서는 Hotelling 의 $T^2$ 로, 성분이 설명하지 못한 부분은 squared prediction error 인 $Q$ 통계량으로 채점한다. $T^2$ 는 process 가 평소의 구조 안에서 움직였다고, $Q$ 는 그 구조를 벗어났다고 말한다.

그렇게 나누는 것이 flag 를 움직일 수 있는 것으로 만든다. $T^2$ 나 $Q$ 에 가장 크게 이바지한 loading 이 들여다볼 sensor 를 이름 댄다.

Appendix D. Estimator Constants and Bounds

꼭지 4.1 부터 4.5 까지의 설정값은 본문이 유도 없이 적은 상수와 한계에 기대고 있다. 이 appendix 는 그것들이 어디에서 오는지를 적는다.

D.1. The Ceiling on a Z-Score

Z-score 의 두 추정값은 모두 검정 대상 표본에서 나오므로, outlier 는 자기가 견주어지는 척도를 부풀린다. 같은 자기참조가 점수에 상한을 씌운다. 크기 $n$ 의 표본에서 어떤 z-score 의 절대값도 $(n-1)/\sqrt{n}$ 을 넘지 못하며, Shiffler (1988) 의 한계이다. 그래서 3 의 규칙은 관측 11 개, 3.5 의 규칙은 15 개 아래에서 발동할 수 없다.

D.2. The MAD Consistency Constant

Raw MAD 는 $s$ 를 추정하지 않는다. 정규 표본에서 $0.674490 \sigma$ 로 수렴하여 퍼짐을 3 분의 1 가량 낮추어 말하며, $0.674490$ 은 표준정규분포의 3 사분위수이다. 이 값으로 나누는 것은 1.482602 를 곱하는 것과 같고, modified z-score 를 z-score 를 읽는 척도 위에 올린다. 그 단계가 없으면 어떤 문턱값도 두 규칙 사이를 오가지 못한다. 이 상수는 가정이 아니라 calibration 이다. 바꾸면 모든 점수가 같은 배율로 다시 재어질 뿐 순서는 그대로이다.

D.3. Critical Values of the Generalized ESD

각 $R_i$ 는 그 단계에 맞추어 유도되어 Rosner (1983) 이 표로 만든 임계값 $\lambda_i$ 와 견준다. Outlier 의 개수는 $R_i \gt \lambda_i$ 가 되는 가장 큰 $i$ 이지 첫 번째가 아니다. 그렇게 읽는 것이 masking 을 이긴다. 한 단계가 실패해도, masking 을 일으킨 관측이 이미 제거된 뒤의 나중 단계는 성공할 수 있다.

D.4. The Chi-Square Cut-Off and a Robust Covariance

다변량 정규성 아래에서 중심과 공분산이 추정값이 아니라 알려진 값이면, Mahalanobis 제곱 거리는 변수마다 자유도 하나인 chi-square 분포를 따르고 cut-off 는 거기에서 나온다. 오염된 표본에서 그 둘을 추정하면 이 읽기가 깨진다. Outlier 가 뭉쳐 있으면 그것들을 감추는 바로 그 방향으로 $\Sigma$ 를 부풀리기 때문이다. Rousseeuw and Van Driessen (1999) 의 minimum covariance determinant 가 robust 한 중심과 공분산을 주어 이를 되돌린다.

Appendix E. Benchmarks

발표된 비교가 한 방법에 기대할 수 있는 몫을 정한다. 아래 수치는 그것을 낸 benchmark 에 속한다.

E.1. Tabular Data

발표된 비교들은 승자를 대지 않는다. ADBench 의 알고리즘 30 개와 dataset 57 개에 걸쳐 어느 unsupervised 방법도 나머지보다 통계적으로 우월하지 않다. Isolation Forest 와 ECOD 가 압도하지 않으면서 꾸준히 나은 축에 들고, tabular 용 deep 방법 여럿이 그 아래에 놓인다. 새롭다는 것은 갈아탈 이유가 되지 않는다.

예외는 원래 좌표에 쓸 만한 거리가 없는 경우이며, deep 방법이 비용을 벌어들이는 자리이다. Image 가 가장 뚜렷한 사례이다.

E.2. Images

PatchCore 가 꼭지 6.3 의 patch feature memory 를 세워 MVTec AD benchmark 에서 최고 99.1% 의 검출 AUROC 를 보고했다. EfficientAD 는 32 개 dataset 에 걸쳐 95.4% 의 검출 AUROC 에 image 당 2.2 ms 로 닿으며, 그 지연이 inline 검사를 가능하게 한다.

실제 검사의 조명과 결함 변이를 담으려고 만든 MVTec AD 2 에서는 false positive rate 5% 에서 31% 의 localization AU-PRO 를 넘긴 방법이 아직 없다. 앞의 benchmark 를 깔끔하게 가르는 방법이 그것만으로 line 에 나갈 준비가 된 것은 아니다.

Appendix F. What Practice Actually Runs

Survey 는 방법이 무엇을 가정하는지로 순위를 매긴다. 현장은 이미 화면에 떠 있는 것으로 순위를 매기며, 두 순서는 같지 않다.

F.1. The Order Practice Meets Them

Table 3. What practice actually runs, most common first

Rank Rule Why it is reached for
1 꼭지 4.2 의 Tukey fence, 곧 interquartile range Box plot 이 보통 가장 먼저 그리는 그림이고, 그 수염이 이미 이 규칙이다.
2 꼭지 4.1 의 3 에서 자르는 z-score 관성. 모두가 배운 규칙이지만, 표본이 정규도 아니고 깨끗하지도 않으면 언제나 틀린 규칙이다.
3 꼭지 4.3 의 MAD 로 만든 modified z-score 데이터가 조금이라도 지저분해지면 작업이 옮겨 가는 자리.
4 분위수 절단, 곧 1 백분위수와 99 백분위수에서의 winsorizing 싸고, 검정이 아예 필요 없다. 표본의 성질이 아니라 표본의 몫을 고정한다.
5 🌳도메인의 물리 한계 이것이 첫째여야 한다. 음의 압력이나 100% 를 넘는 수율은 어떤 통계량을 계산하기도 전에 결판난다.

마지막 두 항목은 앞의 셋과 종류가 다르다. Winsorizing 은 아무것도 판정하지 않는다. 고정된 몫에 그 몫이 discordant 하든 아니든 적용하는 처리이고, 꼭지 1 이 처리를 검출과 갈라 놓았다. 물리 한계는 표본을 읽기 전에 가지고 있는 지식이며, 관측을 어긋났다가 아니라 틀렸다고 부를 수 있는 유일한 규칙이다.

그래서 다섯째 항목이 첫째 자리이다. Process 가 넘을 수 없는 한계는 꼭지 4 부터 6 까지의 무엇이 돌기도 전에 적용한다. 그 밖의 값을 남겨 두면 뒤따르는 모든 추정값이 망가진다.

F.2. Two Habits

어느 방법을 쓰느냐보다 중요한 습관이 둘이다. 데이터를 보기 전에 문턱값을 고정하여 좋아하는 답에 맞추지 않는다. 그리고 판정이 아니라 여유를 읽는다. 위의 선택이 바뀌어도 살아남는 것은 cut-off 를 넉넉히 넘긴 통계량뿐이다.

Our Score
Click to rate this post!
[Total: 1 Average: 4]
Visited 40 times, 1 visit(s) today

Leave a Comment

Your email address will not be published. Required fields are marked *