BaggingRandomMiner is an ensemble of weak one-class classifiers based on dissimilarities. In the training phase, every weak classifier is built using Bagging and computing a threshold of dissimilarities. In the classification phase, the classification scores of the weak classifiers are averaged, and every weak classifier computes its score based on the dissimilarity to the nearest neighbor and the threshold computed in the training phase.
Project description
Bagging Random Miner (BRM)
- Training phase:
- Input:
- T: training dataset;
- τ: number of classifiers in the ensemble;
- μ: size of training dataset to bootstrap.
- Output:
- P: the set of classifiers parameters (selected objects and dissimilarity thresholds).
- Training:
- Set P initially empty; i.e., P←{}.
- for i=1..τ do
- Let T_i contains a sample with a replacement of μ objects from T.
- Let δ_i contains the average dissimilarity between all the pairs of instances in T_i.
- P←P⋃{(T_i, δ_i )}
- return P.
- Classification phase:
- Input:
- x: instance to be classified;
- P: the set of parameters computed in the training phase.
- Q: queue with past classification results;
- σ: number of past objects to consider in the current classification.
- Output:
- Anomaly score.
- Classification:
- Let s←0 be the score computed by the classifiers.
- for each (T_i, δ_i ) in P do
- Let d_min be the dissimilarity between x and its nearest neighbor in T_i.
- Update the score as follows s←s+e^(-0.5(d_min∕δ_i )^2 )
- Average the score as follows s←s∕|P|
- Let s′ be the average of values in Q.
- if |Q|=σ then
- dequeue(Q)
- enqueue(s, Q)
- return (s′+s)/2
- Input:
For more information: J. Benito Camiña, M.A. Medina-Pérez, R. Monroy, O. Loyola-González, L. A. Pereyra-Villanueva, L. C. González-Gurrola "Bagging-RandomMiner: A one-class classifier for file access-based masquerade detection," Machine Vision and Applications, vol. 30, no. 5, pp. 959-974, 2019.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.