Negative selection algorithms on strings with efficient training and linear-time classification

  • Authors:
  • Michael Elberfeld;Johannes Textor

  • Affiliations:
  • -;-

  • Venue:
  • Theoretical Computer Science
  • Year:
  • 2011

Quantified Score

Hi-index 5.23

Visualization

Abstract

A string-based negative selection algorithm is an immune-inspired classifier that infers a partitioning of a string space @S^@? into ''normal'' and ''anomalous'' partitions from a training set S containing only samples from the ''normal'' partition. The algorithm generates a set of patterns, called ''detectors'', to cover regions of the string space containing none of the training samples. Strings that match at least one of these detectors are then classified as ''anomalous''. A major problem with existing implementations of this approach is that the detector generating step needs exponential time in the worst case. Here we show that for the two most widely used kinds of detectors, the r-chunk and r-contiguous detectors based on partial matching to substrings of length r, negative selection can be implemented more efficiently by avoiding generating detectors altogether: for each detector type, training set S@?@S^@? and parameter r@?@? one can construct an automaton whose acceptance behaviour is equivalent to the algorithm's classification outcome. The resulting runtime is O(|S|@?r|@S|) for constructing the automaton in the training phase and O(@?) for classifying a string.