Expert optimal correlation: contamination factor identification for unsupervised anomaly detection

By dynamically identifying pollution factors in the data set and utilizing the correlation of the unsupervised anomaly detection model, the anomaly detection errors caused by unknown pollution factors in the existing technology are solved, and efficient and accurate automatic identification of pollution factors is achieved, which is suitable for different data sets. .

CN118871920APending Publication Date: 2024-10-29ORACLE INT CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380027544.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-12-06
Filing Date
2023-06-29
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing anomaly detection methods are difficult to accurately identify anomalies in data sets when the contamination factors are unknown, resulting in false positive or false negative errors. Moreover, most methods require users to provide default contamination factor values, which cannot adapt to the actual situation of different data sets.

Method used

Automatically identify contamination factors by dynamically discovering the overall correlation of anomaly scores predicted by the K best unsupervised anomaly detection models, using similarity measures such as F1 score or AUROC, etc., and iteratively selecting the contamination factors that lead to the highest average similarity between models , to realize the identification of pollution factors.

Benefits of technology

No need for labeled data or historical information, it can run in polynomial time, select the best model, provide accurate contamination factor estimates, and is suitable for any type of similarity measure, improving the accuracy and versatility of anomaly detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118871920A_ABST
    Figure CN118871920A_ABST
Patent Text Reader

Abstract

Each of a plurality of anomaly detectors infer an anomaly score for each of a number of tuples. For each tuple, a composite tag is generated that indicates, for each anomaly detector, the anomaly detector, an anomaly score inferred by the anomaly detector for the tuple, and, for each of a plurality of contamination factors, a binary category that indicates the contamination factor and an anomaly score based on the contamination factor. For each particular anomaly detector excluding the best anomaly detector, a similarity score is measured for each contamination factor. The similarity score indicates a degree of similarity of a binary category of tags having the contamination factor between the particular anomaly detector and the best anomaly detector. For each pollution factor, a combined similarity score is calculated based on the similarity score for that pollution factor. An additional anomaly detector is detected as inaccurate based on the contamination factor with the highest combinatorial similarity score.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to anomaly detector testing for machine learning (ML).Herein is contamination factor identification (CFI) automation for unsupervised validation of anomaly detectors using unlabeled test tuples. Background Art

[0002] Unsupervised anomaly detection (UAD) is the task of detecting anomalies or rare data points in a dataset without any ground-truth annotations of the data. This problem is much more difficult than classical supervised learning because there is no universal definition of anomaly and any definition may vary from dataset to dataset.

[0003] Given an unlabeled dataset, most existing methods for UAD output an anomaly score for each data point. If a data point is detected as an anomaly, the predicted anomaly score is high. Alternatively, if the point is detected as normal (i.e., non-anomalous), the anomaly score is low. If it is assumed that the count A of anomalies in the dataset is already known, a set of points can be predicted as anomalies by ranking (i.e., sorting) the points in the dataset by anomaly score and selecting the A data points with the largest anomaly scores. However, the true percentage of abnormal data points in the dataset (also called the contamination factor) is usually unknown. In fact, most methods require the user to provide the contamination factor, otherwise they resort to an arbitrary default percentage (e.g., 0.1, i.e., 10%), which is certainly incorrect for most datasets.

[0004] As a general rule, if an anomaly detector identifies a certain percentage of data points in the test corpus as anomalies that is significantly different from the actual contamination factor of the test corpus, then the anomaly detector should fail the validation test. However, this general rule does not apply to the state of the art if the actual contamination factor is unknown. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] In the attached picture:

[0006] Figure 1 is a block diagram depicting an example computer that provides anomaly detector testing based on contaminant factor identification (CFI) automation for unsupervised validation of anomaly detectors utilizing unlabeled test tuples;

[0007] Figure 2 is a flow chart depicting an example process that a computer may use for anomaly detector testing based on CFI automation for unsupervised validation of anomaly detectors utilizing unlabeled test tuples;

[0008] Figure 3 is a block diagram illustrating a computer system upon which embodiments of the present invention may be implemented;

[0009] Figure 4 is a block diagram illustrating a basic software system that may be used to control the operation of a computing system. DETAILED DESCRIPTION

[0010] In the following description, for ease of explanation, numerous specific details are set forth to provide a thorough understanding of the present invention. However, it will be apparent that the present invention can be practiced without these specific details. In other cases, well-known structures and devices are shown in block diagram form to avoid unnecessarily obscuring the present invention.

[0011] General Overview

[0012] The present invention relates to anomaly detector testing for machine learning (ML). Contaminant factor identification (CFI) requires detecting contaminants in unlabeled datasets. The consensus technique in this paper exploits complementary information from a set of unsupervised anomaly detection (UAD) models. This method dynamically discovers the contaminant that maximizes the overall relevance of anomaly scores predicted by the K best UAD models. This method is the first to solve CFI without requiring access to any labeled data or historical information, and is general enough to be used with any kind of correlation, such as F1 or mean squared error.

[0013] UAD is the problem of predicting a set of anomalies in an unlabeled dataset. Given a dataset consisting of n data points, anomaly detection methods usually consist of two stages:

[0014] 1. Predict an anomaly score for each data point, i.e., how abnormal the method characterizes a given point (a high anomaly score means the method infers that the point is highly abnormal, while a low score means the method infers that the point is normal).

[0015] 2. Assuming the contamination factor (CF) as the percentage of anomalies in the dataset is known, the set of anomalies is predicted as the n*CF data points with the maximum anomaly score.

[0016] In order to predict a set of anomalies in the above stage (2), anomaly detection models usually use a threshold (T), which can be the 1-CF quantile of the anomaly score, that is, the value of CF such that the percentage of data points with anomaly scores greater than T is CF. In other words, in the above stage (2), all data points with anomaly scores greater than T should be considered anomalies, while data points with anomaly scores less than T will be normal. Given a series of anomaly scores, T and CF are complementary quantities that sum to 1 or 100%, and when one of the quantities is given, the other quantity can be derived.

[0017] However, in practice, the actual CF is unknown. In fact, most anomaly detection methods assume that the CF is fixed to some value (usually 0.1). This assumption may not be correct and, in key practical application scenarios, may lead to a large number of false positives (i.e., normal points are incorrectly labeled as anomalies), or often worse, a large number of false negatives (i.e., anomalies are incorrectly labeled as normal points).

[0018] Contamination Factor Identification (CFI) is the problem of determining the percentage of anomalies in a given dataset without giving any ground truth labels (and thus without giving any information about what anomalies should look like). This problem has not been solved in the literature nor by industry-leading independent software vendors (ISVs) and original equipment manufacturers (OEMs).

[0019] Early approaches make assumptions that are often not validated for general real-life scenarios. In particular, the distribution of anomaly scores can vary widely across datasets, and examples of outliers are often not accessible on demand through techniques such as positive unlabeled learning, since anomalies are, by definition, unexpected.

[0020] UAD in this paper has a similarity measure as the following function, which accepts a set of predictions and a corresponding set of labels as input and returns a score corresponding to some distance between the predictions and the labels. The score can be any of the following: validation score, accuracy, total number of errors, or similarity or dissimilarity measure. Any of these scores can be used as a similarity score ranging from a low value of 0 to a high value of 1 or 100%, with a high value of 1 or 100% indicating perfect agreement between a set of test inferences and a corresponding set of test labels.

[0021] Similarity in this paper can be any of the following mutually exclusive categories of metrics.

[0022] Binary - Binary metrics require the model's predictions and labels to be binary predictions (0 or 1). This includes the F1 score or balanced accuracy.

[0023] Continuous-binary metrics require only that the labels are binary predictions, while the predictions can be probabilities (any real number between 0 and 1). These include the area under the precision-recall curve (AUPRC), the area under the receiver operating characteristic curve (AUROC), or the precision at n (PAN).

[0024] Continuous - Continuous metrics require neither labels nor predictions to be binary. This includes mean squared error (commonly used for regression) or normalized discounted cumulative gain (NDCG).

[0025] The distinction between the various similarity measures listed above can be important when the predictions of anomaly detectors are probabilities, which can prevent accurate binary predictions if the contamination factor is unknown. The scores given by binary-binary measures tend to be very low and do not provide useful information in UAD. Therefore, continuous-binary measures or continuous-continuous measures can be used instead to evaluate the model.

[0026] Given an unlabeled data set, to identify contamination factors, the embodiment first runs the N-1 expert model selection phase of the Oracle AutoML pipeline as proposed in the related U.S. patent application 18 / 075,667. This outputs a set of models ranked by their prediction performance (i.e., fitness, accuracy) for a given data set. From these models, the best model B is selected according to the N-1 experts, as well as a set S of the K best remaining models (K is typically between 1 and 4). However, any method for selecting these sets of high-quality models can be used.

[0027] The general idea of ​​this approach is to iterate over the contamination factor (usually between 0.01 and 0.5) and select the contamination factor that results in the highest average similarity between model B and every model in the set S.

[0028] For a given contamination factor and an arbitrary binary-binary similarity measure (e.g. F1 score 'binary' or F1 score 'macro', also discussed later in this article using continuous-binary similarity measures), the similarity score between the two models is calculated by converting the anomaly scores predicted by each model into binary scores using the given contamination factor. The similarity score is then calculated as an evaluation of the similarity measure on these two binary scores.

[0029] The following is a reasonable explanation that the contamination factor with the highest average similarity across models should be close to the ground truth (ie, actual) contamination factor.

[0030] 1. The model is obtained from the N-1 expert model selection phase and should therefore have an accurate and relevant intrinsic definition of anomalies.

[0031] 2. The model is more consistent with points with more extreme anomaly scores than with milder anomaly scores (extreme refers to scores at the two ends of the distribution; mild refers to scores in the middle). This has been verified in practice. Therefore, as more points with milder anomaly scores are considered anomalies for increasing contamination factors, the similarity should decrease.

[0032] 3. The F1 score provides implicit regularization in the sense that it prevents small contaminants from having too large a similarity score. This is because the F1 score is usually low for very imbalanced classes.

[0033] 4. Points (2) and (3) above imply that the F1 score should increase as the contamination factor increases, until the model starts to disagree about what looks abnormal, which tends to correspond to when the points start to look more normal. After this point, the F1 score should start to decrease as the contamination factor increases.

[0034] This method has at least the following advantages.

[0035] No access to ground truth labels is required.

[0036] It does not require access to historical information from other anomaly detection datasets, including knowledge of ground truth labels / contamination factors of these datasets. From this perspective, it is not affected by possible data mislabeling of previous datasets.

[0037] Runs in polynomial time with respect to the number of records in the training dataset, and in linear time with respect to the number K of best models chosen.

[0038] This approach includes at least the following innovations.

[0039] The first and only method for estimating the contamination factor of a dataset that does not require any labels or any similar historical datasets.

[0040] For the first time, the contamination factor is predicted based on the correlation of anomaly scores predicted by anomaly detection models.

[0041] General enough to be applied with any kind of similarity measure, including both binary-binary measures and continuous-binary measures such as AUROC.

[0042] In an embodiment in a computer, each of a plurality of anomaly detectors infers a corresponding anomaly score for each of a plurality of tuples in a test corpus. For each tuple, a corresponding composite label is generated, the composite label indicating, for each anomaly detector: the anomaly detector, the anomaly score inferred by the anomaly detector for the tuple, and for each of a plurality of contamination factors, the contamination factor and a binary category based on the anomaly score of the contamination factor. The best anomaly detector with the highest fitness is selected. For each specific anomaly detector excluding the best anomaly detector, a corresponding similarity score is measured for each contamination factor. The similarity score indicates how similar the binary category with the corresponding label of the contamination factor is between the specific anomaly detector and the best anomaly detector. For each contamination factor, a corresponding combined similarity score is calculated based on the similarity score of the contamination factor. Based on the contamination factor with the highest combined similarity score, the computer detects that an additional anomaly detector that is not one of the plurality of anomaly detectors is inaccurate.

[0043] 1.0 Sample Computer

[0044] Figure 1 is a block diagram depicting an example computer 100. In an embodiment, the computer 100 provides an anomaly detector test based on contamination factor identification (CFI) automation for unsupervised validation of an anomaly detector utilizing unlabeled test tuples T1-T2. The computer 100 may be one or more of a rack-mounted server such as a blade, a personal computer, a mainframe, or a virtual computer.

[0045] 1.1 Anomaly Detection

[0046] This example lacks training, and each anomaly detector AC is not a machine learning (ML) model, or is an already trained machine learning (ML) model. Another example may also require training some or all of the anomaly detectors AC based on a training corpus that contains or does not contain tuples T1-T2. The corresponding feature vector accepted as input by the anomaly detector AC is one of the tuples T1-T2, or is filled with encoded feature values ​​from the tuples T1-T2. In one example, the anomaly detector BC has different corresponding values ​​for the same set of hyperparameters of the ML algorithm. In other words, the anomaly detector BC can be a model instance of a different configuration of the same ML algorithm.

[0047] In batches or successively, each anomaly detector AC accepts tuples T1-T2 as separate inputs, which causes anomaly detector AC to generate corresponding inferences I1A-I2A, I1B-I2B, and I1C-I2C. For example, anomaly detector C infers inferences I1C-I2C from corresponding tuples T1-T2. Depending on the embodiment, the inference can be an anomaly score such as a unit normalized probability, or can be a binary category such as anomaly or non-anomalous. Numerical thresholds can be used to convert numerical anomaly scores to binary categories.

[0048] 1.2 Unsupervised Testing

[0049] This example requires an unsupervised testing phase of the software development life cycle (SDLC) of a target anomaly detector (not shown), which may or may not be one of the anomaly detectors AC, depending on the embodiment. Unsupervised testing means that validation of the target anomaly detector occurs even if the test tuples T1-T2 are not labeled. In an embodiment, some or all of the target anomaly detector and anomaly detectors AC are unsupervisedly trained using an unlabeled training corpus. In an embodiment, anomaly detectors AC and target anomaly detectors are trained using the same or different training corpora. Labels are binary categories or anomaly scores for tuples that are known to be correct.

[0050] Since the test tuples T1-T2 are unlabeled, direct measurement of the accuracy of the target anomaly detector is more or less impossible. In this paper, the accuracy is instead measured indirectly by comparison of the inferred contamination factors. The best estimation of the unknown contamination factor occurs by comparing the inference of the best anomaly detector A with the inferences of the other anomaly detectors BC.

[0051] 1.3 Multiple Anomaly Detectors

[0052] Anomaly detectors AC are best-of-breed anomaly detectors of independent pedigrees to increase the diversity of analysis. For example, each of anomaly detectors AC may have a different architecture (e.g., a neural network or a decision tree) and / or be provided in a different software library (e.g., scikit-learn or TensorFlow).

[0053] In an embodiment, anomaly detectors AC are so different that they have no common hyperparameters, meaning that their respective sets of hyperparameters are disjoint (i.e., non-overlapping). For example, a neural network may have per-layer neuron hyperparameters that a random forest will not have. In an embodiment, and unlike the targeted anomaly detectors, anomaly detectors AC do not operate for actual detection of anomalies that occur in a production environment.

[0054] 1.4 Similarity with the Best Anomaly Detectors

[0055] The best anomaly detector A is selected as the most accurate among anomaly detectors AC, which does not mean that the best anomaly detector A is more or less accurate than the target anomaly detector. Each of the similarity scores 121-122 is a measure of how similar the inference of the best anomaly detector A is to the corresponding inference of anomaly detectors B or C.

[0056] For example, when inferences I1A and I1B are the same and inferences I2A and I2B are the same anomaly score or binary category, a maximum value of similarity score 121 occurs. Alternatively, when inferences I1A and I1B are opposite binary categories (or very dissimilar anomaly scores) and inferences I2A and I2B are also opposite binary categories, a minimum value of similarity score 121 occurs. When inferences for the same tuple are similar, similarity score 121 increases, and when inferences for the same tuple are dissimilar, similarity score 121 decreases.

[0057] 1.5 Contamination Factor Identification (CFI)

[0058] Here, CFI requires comparing a set of inferences of anomaly detector BC and the best anomaly detector A for the same set of test tuples T1-T2 to measure similarity scores 121-122. The similarity scores are remeasured under various assumed (e.g., predefined) contamination factors, which are potential contamination factors and not necessarily the (e.g., unknown) actual contamination factors of the test corpus (i.e., tuples T1-T2). The binary category of the anomaly score (e.g., anomaly or non-anomalous) depends on the assumed contamination factor. For example, an assumed contamination factor of 10% means that only the tenth of the tuples in the test corpus with the highest anomaly scores should be classified as anomalies. For example, anomaly score I1A may be classified as non-anomalous under a lower contamination factor C1, but may be classified as anomaly under a higher contamination factor C2.

[0059] 1.6 The binary category of the generated labels depends on the assumed contamination factor

[0060] In preparation for generating similarity scores 121-122, computer 100 automatically generates corresponding so-called labels for each inference of anomaly detector AC for each of tuples T1-T2. Generated labels are also referred to herein as synthetic labels, which are not ground truth labels as described below.

[0061] Since the binary category of the anomaly score depends on the assumed contamination factor, embodiments may or may not generate separate labels for each contamination factor C1-C2. In this example, a label 140 is generated for anomaly score I1A under contamination factor C1, but another label (not shown) may exist instead for the same anomaly score I1A under contamination factor C2.

[0062] 1.7 Generated Label Granularity and Structure

[0063] The tag 140 is logical, and the data fields shown therein may or may not be merged into a single data structure. In particular, the tag 140 references (e.g., identifies or contains) a contamination factor C1, an anomaly score I1A, a binary category B1 of the anomaly score I1A under the contamination factor C1, a tuple T1, and an optimal anomaly detector A that inferred the inference I1A for the tuple T1. In an embodiment, generating similarity scores 121-122 requires comparing the corresponding binary categories of the tags, such as the binary category B1 in the tag 140.

[0064] Each generated label references exactly one tuple and exactly one of the anomaly detectors AC. In the illustrated embodiment, each generated label references exactly one of each of the following: contamination factor, binary category, and anomaly score. In various embodiments with other annotation granularities not shown, the generated labels may reference one or more contamination factors, one or more anomaly scores, and one or more binary categories.

[0065] 1.8 Types of Labels and Lack of Supervision

[0066] The accuracy of the binary class B1 in the generated label 140 is unknown. However, the label 140 is not a weak label, which is a label whose accuracy is unknown but is attributed to it and may be correct but is still used. Unlike weak labels, the technology in this article neither assumes nor evaluates the accuracy of the binary class B1 in the label 140. Unlike weak labels, the labels generated in this article are used for testing rather than for training.

[0067] Herein, unlabeled (or unsupervised) means that the test tuple or test corpus lacks a ground truth label that is considered correct. The binary category B1 in the generated label 140 is not known to be correct. Therefore, the generated label is not actually a label according to the prior art that only has a ground truth label. For example, according to the prior art, tuple T1 is unlabeled because even if tuple T1 has multiple generated labels including the generated label 140, tuple T1 does not have a ground truth label.

[0068] For each pollution factor C1-C2, a similarity score is generated and combined. For example, for pollution factor C1, similarity scores 121-122 are measured and combined to calculate a combined similarity score 131. Each pollution factor C1-C2 has its own combined similarity score. For example, pollution factor C2 has a combined similarity score 132.

[0069] CFI needs to select which of the contamination factors C1-C2 has the highest combined similarity score, which is the contamination factor with the most consistent agreement between the binary classes in the labels generated by the anomaly detector AC. Example uses of the automatically identified optimal contamination factor will be discussed later in this article.

[0070] 2.0 Example Unsupervised Testing Process

[0071] Figure 2 is a flow chart depicting an example process that the computer 100 may use to conduct anomaly detector testing based on contamination factor identification (CFI) automation for unsupervised validation of anomaly detectors utilizing unlabeled test tuples T1-T2. Figure 1 Let's discuss Figure 2 .

[0072] All of steps 201-207 can occur without ground truth labels, and the test corpus (i.e., tuples T1-T2) can be unlabeled. In step 201, each of the anomaly detectors AC infers a corresponding anomaly score for each of the tuples T1-T2. Step 201 requires neither assumed nor actual contamination factors. The anomaly scores are retained for processing as described below.

[0073] For each tuple T1-T2, at each contamination factor C1-C2, step 202 generates a corresponding label indicating the inference details of each anomaly detector AC. For example, step 202 generates labels 140 as previously described herein.

[0074] Based on the similarity scores between the unlabeled tuples and / or anomaly detectors, step 203 selects the best anomaly detector A with the highest fitness among the anomaly detectors AC. In an embodiment, the selection of the best anomaly detector A is based on unsupervised testing using unlabeled tuples in a test corpus as proposed in the related U.S. patent application Ser. No. 18 / 075,667. Depending on the embodiment, the selection step 203 may or may not occur before the labeling step 202 and / or the inference step 201.

[0075] In an embodiment, the optimal anomaly detector A is not an artificial neural network (ANN). In an embodiment, the optimal anomaly detector A does not have a contamination factor hyperparameter.

[0076] For each of the anomaly detectors BC excluding the best anomaly detector A, step 204 measures the corresponding similarity score between the anomaly detector and the best anomaly detector A for each of the contamination factors C1-C2. For example, when step 204 measures the similarity score 121, the binary category in the label for the contamination factor C1 for the anomaly detector B can be compared with the binary category in the label (such as label 140) for the best anomaly detector A for the contamination factor C1.

[0077] For each of the pollution factors C1-C2, step 205 calculates a corresponding combined similarity score based on the similarity score for the pollution factor. For example, for pollution factor C1, step 205 calculates the combined similarity score 131 based on applying an aggregation operation, such as any one of the average, median, maximum, and sum, to the similarity scores 121-122. The best (i.e., most accurate) estimated pollution factor is the pollution factor with the highest combined similarity score. Therefore, step 205 can perform CFI.

[0078] In an embodiment, anomaly detector AC does not include additional anomaly detectors for production anomaly detection. In this document, target anomaly detector and additional anomaly detector are synonymous. In step 206, the additional anomaly detector infers a corresponding anomaly score for each of tuples T1-T2. For example, steps 201 and 206 differ more or less only in which anomaly detector is used.

[0079] Based on the contamination factor with the highest combined similarity score, step 207 detects that the additional anomaly detector is inaccurate. For example, according to the previous step 205, the optimal contamination factor C1 may be 10%. In other words, the additional anomaly detector should generate an anomaly score in the aforementioned step 206 that should cause exactly 10% of the test corpus (i.e., tuples T1-T2) to be classified as anomalies based on the additional anomaly detector's own production anomaly threshold.

[0080] In an embodiment, the tolerance threshold defines how much difference there is between the optimal contamination factor C1 and the effective contamination factor of the additional anomaly detector. For example, the tolerance threshold may be 1%, in which case the additional anomaly detector is accurate (i.e., passes the validation test) if the effective contamination factor of the additional anomaly detector is between 9% and 11%. In this context, the effective contamination factor is what is empirically observed by a given anomaly detector.

[0081] For example, if 5% or 15% of tuples T1-T2 receive anomaly scores from the additional anomaly detector that exceed the additional anomaly detector's production threshold, then the effective contamination factor is 5% or 15%, which is outside the 1% tolerance of 10%. In this case, the additional anomaly detector fails its validation test. The effective contamination factor is not necessarily the actual contamination factor, which may be unknown.

[0082] Therefore, validation testing of the additional anomaly detector is performed: a) without comparing the single or average anomaly score of the additional anomaly detector with the single or average anomaly score of another anomaly detector, b) without ground truth labels of the test corpus, and c) without ever knowing the actual contamination factor of the test corpus.

[0083] In an embodiment, Figure 2 The process does not involve meta-learning, meta-model, meta-features, supervised training, or cross-validation. In an embodiment, Figure 2 The process of occurs in linear time with respect to the count of anomaly detectors and in polynomial time with respect to the count of tuples. In an embodiment, Figure 2 The process of learning happens in the ML pipeline.

[0084] 4.0 Exemplary CFI Embodiments

[0085] The following exemplary contamination factor identification (CFI) embodiment may incorporate aspects of the embodiments previously presented herein. The design choices in this exemplary CFI embodiment are exemplary and do not limit the previous embodiments.

[0086] Similarity in this paper can be any of the following mutually exclusive categories of metrics.

[0087] Binary - Binary metrics require the model's predictions and labels to be binary predictions (0 or 1). This includes the F1 score or balanced accuracy.

[0088] Continuous-binary metrics require only that the labels are binary predictions, while the predictions can be probabilities (any real number between 0 and 1). These include the area under the precision-recall curve (AUPRC), the area under the receiver operating characteristic curve (AUROC), or the precision at n (PAN).

[0089] Continuous - Continuous metrics require neither labels nor predictions to be binary. This includes mean squared error (commonly used for regression) or normalized discounted cumulative gain (NDCG).

[0090] The metric categories listed above are alternative configurations for this exemplary CFI embodiment. For demonstration purposes, this example uses a binary-binary metric to measure similarity. Depending on the embodiment, the similarity measure may alternatively use any of the following: balanced accuracy measure, area under the precision-recall curve (AUPRC), area under the receiver operating characteristic curve (AUROC), precision at n (PAN), mean square error, normalized discounted cumulative gain (NDCG), mutual information, cross entropy, logistic loss, logarithmic loss, and Kullback-Leibler (KL) divergence.

[0091] The exemplary CFI process expects the following inputs.

[0092] A training set of size N.

[0093] • The model B with the highest predictive performance (eg, the best anomaly detector A) given by the N-1 expert model selection stage as proposed in the related US patent application Ser. No. 18 / 075,667.

[0094] • The set S of K highest predictive performing models excluding B as given after running N-1 expert model selection phases (eg, anomaly detectors BC). For example, K=1.

[0095] Binary - Binary metrics, such as the F1 score. For example, an F1 score with a 'binary' mean.

[0096] • A set of contamination factors C to be considered during the process, such as 50 different values ​​evenly spaced in the interval [0.0 1, 0.5].

[0097] The CFI process implements the following pseudo-code algorithm.

[0098] 1. For each model m in the union of S and {B} and each contamination factor c in C, construct a set of artificial labels L(m,c) for the training set by labeling the N*c training points with the highest anomaly scores (as given by model m) as anomalies and labeling the rest as normal.

[0099] 2. For each contamination factor c in C:

[0100] a. For each model m in S, compute the similarity score as given by the similarity measure applied to the binary predictions L(B,c) and the binary labels L(m,c).

[0101] b. Average all K similarity scores (by taking the mean, median, etc.) to produce an average similarity score for the contamination factor c.

[0102] 3. Select the contamination factor with the largest average similarity score.

[0103] A continuous-binary metric such as AUROC, AUPRC, or PAN as described above may be used instead. In this case, only the anomaly scores for model B or model m need to be converted to binary scores. In practice, performance is poor when using such metrics, which may be attributed to the elimination of the implicit regularization contained in the F1 score.

[0104] Hardware Overview

[0105] According to one embodiment, the technology described herein is implemented by one or more special-purpose computing devices. The special-purpose computing device can be hard-wired to implement the technology, or can include a digital electronic device that is permanently programmed to implement the technology, such as one or more application-specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs), or can include one or more general-purpose hardware processors that are programmed to implement the technology according to program instructions in firmware, memory, other storage devices, or a combination thereof. Such a special-purpose computing device can also combine customized hard-wired logic, ASICs or FPGAs with customized programming to implement the technology. The special-purpose computing device can be a desktop computer system, a portable computer system, a handheld device, a networking device, or any other device that contains hard-wired and / or program logic to implement the technology.

[0106] For example, Figure 33 is a block diagram illustrating a computer system 300 upon which embodiments of the present invention may be implemented. Computer system 300 includes a bus 302 or other communication mechanism for communicating information, and a hardware processor 304 coupled to bus 302 for processing information. Hardware processor 304 may be, for example, a general purpose microprocessor.

[0107] Computer system 300 also includes a main memory 306, such as a random access memory (RAM) or other dynamic storage device, coupled to bus 302 for storing information and instructions to be executed by processor 304. Main memory 306 may also be used to store temporary variables or other intermediate information during execution of instructions to be executed by processor 304. When stored in a non-transitory storage medium accessible to processor 304, such instructions render computer system 300 into a special-purpose machine customized for performing the operations specified in the instructions.

[0108] Computer system 300 also includes a read only memory (ROM) 308 or other static storage device coupled to bus 302 for storing static information and instructions for processor 304. A storage device 310, such as a magnetic disk, optical disk, or solid state drive, is provided and coupled to bus 302 for storing information and instructions.

[0109] The computer system 300 may be coupled to a display 312, such as a cathode ray tube (CRT), via the bus 302 for displaying information to a computer user. An input device 314, including alphanumeric and other keys, is coupled to the bus 302 for communicating information and command selections to the processor 304. Another user input device is a cursor controller 316, such as a mouse, trackball, or cursor direction keys, for communicating direction information and command selections to the processor 304, and for controlling cursor movement on the display 312. The input device typically has two degrees of freedom in two axes, a first axis (e.g., x) and a second axis (e.g., y), which enables the device to specify a position in a plane.

[0110] Computer system 300 may implement the techniques described herein using custom hardwired logic, one or more ASICs or FPGAs, firmware, and / or program logic that is combined with the computer system to make or program computer system 300 into a special purpose machine. According to one embodiment, computer system 300 performs the techniques described herein in response to processor 304 executing one or more sequences of one or more instructions contained in main memory 306. Such instructions may be read into main memory 306 from other storage media, such as storage device 310. Execution of the sequences of instructions contained in main memory 306 causes processor 304 to perform the processing steps described herein. In alternative embodiments, hardwired circuitry may be used in place of or in combination with software instructions.

[0111] The term "storage medium" as used herein refers to any non-transitory medium that stores data and / or instructions that cause a machine to operate in a particular manner. Such storage media may include non-volatile media and / or volatile media. Non-volatile media include, for example, optical disks, magnetic disks, or solid-state drives, such as storage device 310. Volatile media include dynamic memory, such as main memory 306. Common forms of storage media include, for example, floppy disks, flexible magnetic disks, hard disks, solid-state drives, magnetic tapes or any other magnetic data storage media, CD-ROMs, any other optical data storage media, any physical media with a pattern of holes, RAM, PROM, EPROM, FLASH-EPROM, NVRAM, any other memory chip, or cassette memory.

[0112] Storage media are distinct from transmission media, but can be used in conjunction with transmission media. Transmission media participate in the transfer of information between storage media. For example, transmission media include coaxial cables, copper wires, and optical fibers, including the wires that make up bus 302. Transmission media can also take the form of sound or light waves, such as those generated during radio wave and infrared data communications.

[0113] When one or more sequences of one or more instructions are transmitted to the processor 304 for execution, various forms of media may be involved. For example, the instructions may initially be carried on a disk or solid-state drive of a remote computer. The remote computer may load the instructions into its dynamic memory and then send the instructions over a telephone line using a modem. A modem local to the computer system 300 may receive the data over the telephone line and convert the data into an infrared signal using an infrared transmitter. An infrared detector may receive the data carried in the infrared signal, and appropriate circuitry may place the data on the bus 302. The bus 302 transmits the data to the main memory 306, from which the processor 304 retrieves and executes the instructions. The instructions received by the main memory 306 may be optionally stored on the storage device 310 before or after being executed by the processor 304.

[0114] Computer system 300 also includes a communication interface 318 coupled to bus 302. Communication interface 318 provides bidirectional data communication coupled to network link 320, and network link 320 is connected to local network 322. For example, communication interface 318 can be an integrated services digital network (ISDN) card, a cable modem, a satellite modem, or a modem that provides a data communication connection with a corresponding type of telephone line. As another example, communication interface 318 can be a local area network (LAN) card that provides a data communication connection with a compatible LAN. Wireless links can also be implemented. In any such implementation, communication interface 318 sends and receives electrical signals, electromagnetic signals, or optical signals that carry digital data streams representing various information.

[0115] The network link 320 typically provides data communications through one or more networks to other data devices. For example, the network link 320 can provide a connection through a local network 322 to a host computer 324 or to data equipment operated by an Internet Service Provider (ISP) 326. The ISP 326, in turn, provides data communication services through the global packet data communication network now commonly referred to as the "Internet" 328. Both the local network 322 and the Internet 328 use electrical, electromagnetic, or optical signals that carry digital data streams. The signals through the various networks, as well as the signals on the network link 320 and through the communication interface 318 that carry the digital data to and from the computer system 300, are example forms of transmission media.

[0116] Computer system 300 can send messages and receive data, including program code, through the network, network link 320 and communication interface 318. In the Internet example, server 330 can transmit the code for the requested application through Internet 328, ISP 326, local network 322 and communication interface 318.

[0117] The received code may be executed by processor 304 as it is received, and / or stored in storage device 310 or other non-volatile storage for later execution.

[0118] Software Overview

[0119] Figure 4 4 is a block diagram of a basic software system 400 that can be used to control the operation of computing system 300. Software system 400 and its components (including their connections, relationships, and functions) are merely exemplary and are not intended to limit implementation of the example embodiments. Other software systems suitable for implementing the example embodiments may have different components, including components with different connections, relationships, and functions.

[0120] Software system 400 is provided to direct the operation of computing system 300. Software system 400 includes a kernel or operating system (OS) 410, which may be stored in system memory (RAM) 306 and on fixed storage (eg, hard disk or flash memory) 310.

[0121] OS 410 manages low-level aspects of computer operation, including managing the execution of processes, memory allocation, file input and output (I / O), and device I / O. One or more applications, represented as 402A, 402B, 402C ... 402N, may be "loaded" (e.g., transferred from fixed storage 310 to memory 306) for execution by system 400. Applications or other software intended for use on computer system 300 may also be stored, for example, as a set of downloadable computer-executable instructions for downloading and installation from an Internet location (e.g., a Web server, application store, or other online service).

[0122] The software system 400 includes a graphical user interface (GUI) 415 for receiving user commands and data in a graphical manner (e.g., "clicks" or "touch gestures"). The system 400 can, in turn, act on these inputs according to instructions from the operating system 410 and / or the applications 402. The GUI 415 is also used to display the results of the operations from the OS 410 and the applications 402, so that the user can provide additional input or terminate the session (e.g., log out).

[0123] The OS 410 may execute directly on the bare hardware 420 (e.g., the processor 304) of the computer system 300. Alternatively, a hypervisor or virtual machine monitor (VMM) 430 may be placed between the bare hardware 420 and the OS 410. In this configuration, the VMM 430 acts as a software "buffer" or virtualization layer between the OS 410 and the bare hardware 420 of the computer system 300.

[0124] VMM 430 instantiates and runs one or more virtual machine instances ("guest machines"). Each guest machine includes a "guest" operating system, such as OS 410, and one or more applications designed to execute on the guest operating system, such as application 402. VMM 430 presents a virtual operating platform to the guest operating system and manages the execution of the guest operating system.

[0125] In some cases, VMM 430 can allow a guest operating system to run as if it were running directly on bare hardware 420 of computer system 300. In these cases, the same version of the guest operating system that is configured to execute directly on bare hardware 420 can also execute on VMM 430 without modification or reconfiguration. In other words, in some cases, VMM 430 can provide full hardware and CPU virtualization to the guest operating system.

[0126] In other cases, the guest operating system may be specially designed or configured to execute on VMM 430 for efficiency reasons. In these cases, the guest operating system "knows" that it is executing on a virtual machine monitor. In other words, in some cases, VMM 430 may provide paravirtualization to the guest operating system.

[0127] A computer system process includes an allocation of hardware processor time, and an allocation of (physical and / or virtual) memory for storing instructions executed by the hardware processor, for storing data generated by the hardware processor in executing instructions, and / or for storing hardware processor state (e.g., contents of registers) between allocations of hardware processor time when the computer system process is not running. A computer system process runs under the control of an operating system and may run under the control of other programs executing on the computer system.

[0128] cloud computing

[0129] The term "cloud computing" is generally used herein to describe a computing model that enables on-demand access to a shared pool of computing resources, such as computer networks, servers, software applications, and services, and allows resources to be rapidly provisioned and released with minimal management effort or service provider interaction.

[0130] Cloud computing environments (sometimes called cloud environments or just clouds) can be implemented in a variety of different ways to best suit different needs. For example, in a public cloud environment, the underlying computing infrastructure is owned by an organization that makes its cloud services available to other organizations or the public. In contrast, a private cloud environment is typically used only by or within a single organization. A community cloud is intended to be shared by several organizations within a community; while a hybrid cloud includes two or more types of clouds (e.g., private, community, or public) bound together by data and application portability.

[0131] In general, the cloud computing model enables some of those responsibilities that might previously have been provided by an organization's own information technology department to be delivered as a service layer within the cloud environment for use by consumers (internal or external to the organization, depending on the public / private nature of the cloud). The precise definition of the components or features provided by or within each cloud service layer may vary depending on the specific implementation, but common examples include: Software as a Service (SaaS), where consumers use software applications running on the cloud infrastructure, while the SaaS provider manages or controls the underlying cloud infrastructure and applications. Platform as a Service (PaaS), where consumers can develop, deploy, and otherwise control their own applications using software programming languages ​​and development tools supported by the PaaS provider, while the PaaS provider manages or controls other aspects of the cloud environment (i.e., everything below the runtime execution environment). Infrastructure as a Service (IaaS), where consumers can deploy and run arbitrary software applications, and / or provide processing, storage, networking, and other basic computing resources, while the IaaS provider manages or controls the underlying physical cloud infrastructure (i.e., everything below the operating system layer). Database as a Service (DBaaS), where the consumer uses a database server or database management system running on a cloud infrastructure, while the DBaaS provider manages or controls the underlying cloud infrastructure and applications.

[0132] The above basic computer hardware and software and cloud computing environment are provided to illustrate the basic underlying computer components that can be used to implement the example embodiments. However, the example embodiments are not necessarily limited to any particular computing environment or computing device configuration. Instead, the example embodiments can be implemented in any type of system architecture or processing environment that, in light of this disclosure, those skilled in the art will understand as being capable of supporting the features and functions of the example embodiments presented herein.

[0133] Machine Learning Models

[0134] A machine learning model is trained using a specific machine learning algorithm. Once trained, the input is applied to the machine learning model to make predictions, which may also be referred to herein as predicted outputs or outputs. The attributes of the input may be referred to as features, and the values ​​of the features may be referred to herein as feature values.

[0135] A machine learning model includes a model data representation or model artifact. The model artifact includes parameter values, which may be referred to herein as theta values, and is applied to the input by the machine learning algorithm to generate a predicted output. Training a machine learning model requires determining theta values ​​for the model artifact. The structure and organization of theta values ​​depends on the machine learning algorithm.

[0136] In supervised training, training data is used by a supervised training algorithm to train a machine learning model. The training data includes inputs and "known" outputs. In an embodiment, the supervised training algorithm is an iterative process. In each iteration, the machine learning algorithm applies the model artifacts and inputs to generate a predicted output. The error or variance between the predicted output and the known output is calculated using an objective function. In practice, the output of the objective function indicates the accuracy of the machine learning model based on the specific state of the model artifact in the iteration. By applying an optimization algorithm based on the objective function, the θ value of the model artifact is adjusted. An example of an optimization algorithm is gradient descent. Iterations can be repeated until the desired accuracy is achieved or some other criteria are met.

[0137] In a software implementation, when a machine learning model is referred to as receiving inputs, executing, and / or generating outputs or predictions, a computer system process executing the machine learning algorithm applies the model artifacts to the inputs to generate predicted outputs. The computer system process executes the machine learning algorithm by executing software configured to cause the execution of the algorithm. When a machine learning model is referred to as performing an action, the computer system process executes the machine learning algorithm by executing software configured to cause the performance of the action.

[0138] Inference requires a computer to apply a machine learning model to inputs such as feature vectors to generate inferences by processing the inputs and content of the machine learning model in an integrated manner. Inference is based on the data contained in the machine learning model, such as data driven by learning coefficients. In this article, this is referred to as inference through the machine learning model, which is actually the computer's execution of the machine learning algorithm that processes the machine learning model.

[0139] Classes of problems that machine learning (ML) excels at include clustering, classification, regression, anomaly detection, prediction, and dimensionality reduction (i.e., simplification). Examples of machine learning algorithms include decision trees, support vector machines (SVMs), Bayesian networks, randomized algorithms such as genetic algorithms (GAs), and connectionist topologies such as artificial neural networks (ANNs). Implementations of machine learning may rely on matrices, symbolic models, and hierarchical and / or associative data structures. Parameterized (i.e., configurable) implementations of the best machine learning algorithms can be found in open source libraries such as Google's TensorFlow for Python and C++ or Georgia Tech's MLPack for C++. Shogun is an open source C++ ML library with adapters for several programming languages, including C#, Ruby, Lua, Java, MatLab, R, and Python.

[0140] Artificial Neural Networks

[0141] Artificial neural networks (ANNs) are machine learning models that model, at a high level, a system of neurons interconnected by directed edges. An overview of neural networks is described in the context of hierarchical feedforward neural networks. Other types of neural networks share the characteristics of the neural networks described below.

[0142] In a layered feedforward network such as a multilayer perceptron (MLP), each layer consists of a group of neurons. A layered neural network consists of an input layer, an output layer, and one or more intermediate layers called hidden layers.

[0143] The neurons in the input layer and the output layer are referred to as input neurons and output neurons, respectively. Neurons in the hidden layer or the output layer may be referred to as activation neurons in this article. Activation neurons are associated with activation functions. The input layer does not contain any activation neurons.

[0144] From each neuron in the input and hidden layers, there may be one or more directed edges to the activated neurons in the subsequent hidden or output layers. Each edge is associated with a weight. The edge from a neuron to an activated neuron represents the input from the neuron to the activated neuron adjusted by the weight.

[0145] For a given input to a neural network, each neuron in the neural network has an activation value. For an input neuron, the activation value is simply the input value of the input. For an activation neuron, the activation value is the output of the corresponding activation function that activates the neuron.

[0146] Each edge from a specific neuron to an activated neuron represents that the activation value of the specific neuron is the input to the activated neuron, i.e., the input to the activation function of the activated neuron adjusted by the weight of the edge. Therefore, an activated neuron in a subsequent layer represents that the activation value of the specific neuron is the input to the activation function of the activated neuron adjusted by the weight of the edge. An activated neuron may have multiple edges pointing to the activated neuron, each edge representing that the activation value from the original neuron adjusted by the weight of the edge is the input to the activation function of the activated neuron.

[0147] Each activated neuron is associated with a bias. To generate the activation value of an activated neuron, the neuron's activation function is applied to the weighted activation value and the bias.

[0148] Illustrative Data Structures for Neural Networks

[0149] Artifacts of a neural network may include matrices of weights and biases. Training a neural network may iteratively adjust the matrices of weights and biases.

[0150] For layered feedforward networks, as well as other types of neural networks, the artifacts may include one or more edge matrices W. Matrix W represents the edges from layer L-1 to layer L. Assuming the number of neurons in layers L-1 and L is N[L-1] and N[L] respectively, the dimensions of matrix W are N[L-1] columns and N[L] rows.

[0151] The bias for a particular layer L can also be stored in a matrix B with 1 column and N[L] rows.

[0152] The matrices W and B may be stored in RAM memory as vectors or arrays, or as sets of comma-separated values ​​in memory. When the artifact is persisted in persistent storage, the matrices W and B may be stored as comma-separated values ​​in compressed and / or serialized form or other suitable persistent form.

[0153] The specific input applied to the neural network includes the value of each input neuron. The specific input can be stored as a vector. The training data includes multiple inputs, each input is called a sample in the sample set. Each sample includes the value of each input neuron. The sample can be stored as a vector of input values, and the multiple samples can be stored as a matrix, each row in the matrix is ​​a sample.

[0154] When inputs are applied to a neural network, activation values ​​are generated for the hidden and output layers. For each layer, the activation values ​​can be stored in a column of a matrix A that has a row for each neuron in that layer. In a vectorized approach for training, the activation values ​​can be stored in a matrix that has a column for each sample in the training data.

[0155] Training a neural network requires storing and processing additional matrices. The optimization algorithm generates matrices of derivative values ​​that are used to adjust the weight matrix W and the bias matrix B. Generating derivative values ​​may use and require storing intermediate matrices of values ​​generated when calculating the activation values ​​for each layer.

[0156] The number of neurons and / or edges determines the size of the matrices required to implement a neural network. The fewer the number of neurons and edges in a neural network, the smaller the matrices and the amount of memory required to store them. Additionally, a smaller number of neurons and edges reduces the amount of computation required to apply or train a neural network. Fewer neurons means fewer activation values ​​need to be calculated, and / or fewer derivative values ​​need to be calculated during training.

[0157] The properties of the matrices used to implement the neural network correspond to neurons and edges. A cell in the matrix W represents a particular edge from a neuron in layer L-1 to layer L. An activated neuron represents an activation function for a layer including an activation function. An activated neuron in layer L corresponds to a row of weights in the matrix W for the edge between layer L and layer L-1 and a column of weights in the matrix W for the edge between layer L and layer L+1. During execution of the neural network, a neuron also corresponds to one or more activation values ​​stored in the matrix A for that layer and generated by the activation function.

[0158] ANN is suitable for data parallel vectorization, which can adopt vector hardware such as single instruction multiple data (SIMD), such as using graphics processing units (GPUs). Matrix partitioning can achieve horizontal scaling, such as using symmetric multiprocessing (SMP), such as using multi-core central processing units (CPUs) and or multiple coprocessors, such as GPUs. Feedforward calculations within ANNs can be performed in one step per neural layer. The activation values ​​in one layer are calculated based on the weighted propagation of the activation values ​​of the previous layer, so that the values ​​are calculated in sequence for each subsequent layer, such as through the corresponding iterations of a for loop. Layering imposes a non-parallelizable order of calculations. Therefore, the network depth (i.e., the number of layers) may cause computational delays. Deep learning requires giving many layers to multilayer perceptrons (MLPs). Each layer implements data abstraction, and complex abstractions (i.e., multidimensional abstractions with multiple inputs) require multiple layers of cascaded processing. ANN implementations based on reusable matrices and matrix operations for feed-forward processing are readily available and parallelizable in neural network libraries, such as Google's TensorFlow for Python and C++, OpenNN for C++, and the University of Copenhagen's Fast Artificial Neural Networks (FANN). These libraries also provide model training algorithms such as backpropagation.

[0159] Back Propagation

[0160] The output of an ANN may be more or less correct. For example, an ANN that recognizes letters may mistake an I for an L because the letters have similar features. The correct output may have a specific value, while the actual output may have a slightly different value. The arithmetic or geometric difference between the correct output and the actual output can be measured as an error according to a loss function, such that zero represents error-free (i.e., perfectly accurate) behavior. For any edge in any layer, the difference between the correct output and the actual output is the delta value.

[0161] Backpropagation requires distributing the error backwards through the layers of the ANN to all connected edges within the ANN in varying amounts. The propagation of the error results in adjustments to the edge weights, which depend on the gradient of the error at each edge. The gradient of an edge is calculated by multiplying the edge's error delta by the activation of the upstream neuron. When the gradient is negative, the more error the edge contributes to the network, the more the weight of that edge should be reduced, which is negative reinforcement. When the gradient is positive, then positive reinforcement requires increasing the weights of edges whose activations reduce the error. Edge weights are adjusted based on a percentage of the edge's gradient. The steeper the gradient, the larger the adjustment. Not all edge weights are adjusted by the same amount. As the model continues to be trained with additional input samples, the error of the ANN should decrease. Training can stop when the error stabilizes (i.e. stops decreasing) or disappears below a threshold (i.e. approaches zero). Example mathematical formulas and techniques for feed-forward multilayer perceptrons (MLPs), including matrix operations and back-propagation, are taught in the related reference “EXACT CALCULATION OF THE HESSIAN MATRIX FOR THE MULTI-LAYER PERCEPTRON” by Christopher M. Bishop.

[0162] Model training can be either supervised or unsupervised. For supervised training, the desired (i.e., correct) output is known for each example in the training set. The training set is pre-configured by assigning classification labels to each example (e.g., by a human expert). For example, a training set for optical character recognition might have blurred photos of a single letter, and an expert could pre-label each photo according to the letter shown. Error computation and back-propagation occur as described above.

[0163] Autoencoder

[0164] Unsupervised model training is more complex because the desired output needs to be discovered during training. Unsupervised training may be easier to adopt because no human experts are required to pre-label training examples. Therefore, unsupervised training saves manpower. A natural way to implement unsupervised training is to use an autoencoder, which is a type of ANN. The autoencoder acts as an encoder / decoder (codec) with two sets of layers. The first set of layers encodes the input examples into compressed codes that need to be learned during model training. The second set of layers decodes the compressed codes to regenerate the original input examples. These two sets of layers are trained together as a combined ANN. The error is defined as the difference between the original input and the regenerated input after decoding. After sufficient training, the decoder outputs more or less accurately no matter what the original input is.

[0165] Autoencoders rely on a compressed code as an intermediate format for each input example. It may be counterintuitive that the intermediate compressed code does not exist initially but emerges through model training. Unsupervised training can implement a vocabulary of intermediate codes based on features and distinctions of unexpected correlations. For example, which examples and which labels are used during supervised training may depend on a somewhat unscientific (e.g., hearsay) or incomplete understanding of the problem space by human experts. However, unsupervised training finds an appropriate intermediate vocabulary that is more or less entirely based on internal feedback attributed to the regenerated decoding, reliably converging to a statistical trend of optimality through sufficient training. In the non-patent literature (NPL), Jinwon An et al., "VARIATIONAL AUTOENCODER BASED ANOMALY DETECTION USING RECONSTRUCTION PROBABILITY", Special Lecture on IE. 2015Dec 27; 2(1): 1-18, unsupervised training techniques for autoencoders for anomaly detection based on reconstruction errors are taught.

[0166] Principal component analysis

[0167] Principal Component Analysis (PCA) provides dimensionality reduction by leveraging and organizing mathematical correlation techniques such as normalization, covariance, eigenvectors, and eigenvalues. PCA incorporates various aspects of feature selection by eliminating redundant features. PCA can be used for prediction. PCA can be combined with other ML algorithms.

[0168] Random Forest

[0169] A random forest or random decision forest is a group of learning methods that construct a collection of randomly generated nodes and decision trees during the training phase. The different decision trees of the forest are constructed so that each is randomly restricted to only a specific subset of the feature dimensions of the dataset, such as using feature bootstrapping (bagging). As a result, the decision trees gain accuracy as they grow, without being forced to overfit the training data as they would if the decision trees were forced to learn all the feature dimensions of the dataset. The prediction can be calculated based on the average (or other integral such as soft maximum) of the predictions from the different decision trees.

[0170] Random forest hyperparameters may include: number-of-trees-in-the-forest, maximum-number-of-features-considered-for-splitting-a-node, number-of-levels-in-each-decision-tree, minimum-number-of-data-points-on-a-leaf-node, method-for-sampling-data-points, etc.

[0171] In the above specification, embodiments of the present invention are described with reference to numerous specific details that may vary from implementation to implementation. Therefore, the specification and drawings should be regarded as illustrative rather than restrictive. The sole and exclusive indicator of the scope of the present invention, and what the applicant intends to be the scope of the present invention, is the literal and equivalent range of the set of claims issuing from this application in terms of the specific form in which the claims issue (including any subsequent amendments).

Claims

1. A computer-implemented method, include: Inferring, by each of the plurality of anomaly detectors, a corresponding anomaly score for each of the plurality of tuples; generating a corresponding label for each tuple in the plurality of tuples, the label indicating, for each anomaly detector in the plurality of anomaly detectors: the anomaly detector, an anomaly score inferred by the anomaly detector for the tuple, and, for each contamination factor in the plurality of contamination factors, a binary category indicating the contamination factor and an anomaly score based on the contamination factor; selecting an optimal anomaly detector having the highest fitness among the plurality of anomaly detectors; For each specific anomaly detector among the plurality of anomaly detectors excluding the best anomaly detector, measuring a corresponding similarity score for each contamination factor among the plurality of contamination factors, wherein the similarity score indicates a degree of similarity of the binary classes having corresponding labels of the contamination factor between the specific anomaly detector and the best anomaly detector; For each of the plurality of contamination factors, calculating a corresponding combined similarity score, the combined similarity score being based on the similarity score for the contamination factor; as well as Based on the contamination factor having the highest combined similarity score among the plurality of contamination factors, detecting that an additional anomaly detector is not among the plurality of anomaly detectors is inaccurate.

2. The method of claim 1, wherein the selecting the best anomaly detector is based on at least one item selected from the group consisting of unlabeled tuples and a similarity score between the best anomaly detector and another anomaly detector among the plurality of anomaly detectors.

3. The method of claim 1, wherein the selecting an optimal anomaly detector occurs before at least one step selected from the group consisting of the inferred anomaly scores and the generated labels. 4 . The method of claim 1 , wherein detecting that the additional anomaly detector is inaccurate comprises the additional anomaly detector inferring a corresponding anomaly score for each tuple in the plurality of tuples. The method of claim 1 , wherein actual contamination factors of the plurality of tuples are unknown.

6. The method of claim 1, wherein said measuring said similarity score comprises applying at least one selected from the group consisting of: F1 score, balanced accuracy measure, area under the precision-recall curve (AUPRC), area under the receiver operating characteristic curve (AUROC), precision at n (PAN), mean square error, normalized discounted cumulative gain (NDCG), mutual information, cross entropy, logistic loss, logarithmic loss, and Kullback-Leibler (KL) divergence.

7. The method of claim 1, wherein each anomaly detector of the plurality of anomaly detectors has a disjoint set of hyperparameters.

8. The method of claim 1, wherein the method is subject to at least one constraint selected from the group consisting of: a) the method does not use at least one item selected from the group consisting of meta-learning, meta-model, meta-feature, supervised training and cross-validation, b) the method occurs in polynomial time with respect to the count of at least one item selected from the group consisting of the plurality of anomaly detectors and the plurality of tuples, and c) The described method takes place entirely within a machine learning (ML) pipeline. 9 . The method of claim 1 , wherein the calculating the combined similarity score comprises calculating at least one item selected from the group consisting of an average, a median, a maximum, and a sum.

10. The method of claim 1, wherein the optimal anomaly detector does not include at least one item selected from the group consisting of an artificial neural network (ANN) and a contamination factor hyperparameter.

11. One or more computer-readable non-transitory media storing instructions which, when executed by one or more processors, cause the steps of any one of claims 1-10 to be performed.