60
On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Embed Size (px)

Citation preview

Page 1: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

On-line Novelty Detection

With Application to Mobile Robotics

Stephen Marsland

Imaging Science and Biomedical Engineering

University of Manchester

Page 2: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Novelty Detection

Highlighting inputs that differ in some way from the ‘normal’ stream of inputs

Page 3: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Novelty Detection in Animals

• Detect unusual stimuli– reduce the amount of

information that needs to be processed

– enables the animal to focus on important information

– helps avoid predators

Page 4: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Novelty Detection in Artificial Learning Systems

• Detect unusual stimuli– reduce the amount of information that needs

to be processed– enables the learner to focus on important

information– helps avoid predators!

Page 5: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Novelty Detection in Artificial Learning Systems

• Detect unusual stimuli– Reduce the amount the system has to learn

• Detect anomalies in a datastream

• Detect when class pdfs or mixture ratios change

• Detect when a new class appears

Page 6: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Statistical Outlier Detection

Page 7: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Statistical Outlier Detection

Page 8: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Statistical Outlier Detection

Page 9: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Statistical Outlier Detection

Page 10: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Novelty Detection in Artificial Learning Systems

• Applications include:

– Machine fault monitoring

– Medical diagnosis

– Inspection agent

– Pre-processing for inputs

Page 11: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Approach

• Learn a representation of normality

• Evaluate how well each input fits into the acquired model

• Highlight those inputs that are not well represented by the model

p(x|C1)P(C1)

p(x|C2)P(C2)

Page 12: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Requirements

• Learning algorithm

• Method of evaluating the novelty of a new input

• Some parameter tuning (how much should the learning algorithm generalise)

Page 13: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Possible Approaches:Auto-assocative network

Page 14: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Possible Approaches: Auto-assocative network

• Learn to reproduce inputs at the outputs, so that the bottleneck learns a lower dimensional representation - principal components

• After training, will settle to a trained input, and subtracting the input from the output shows the novelty in the current input

Page 15: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Possible Approaches: Mixtures of Gaussians

• Train a Gaussian Mixture Model to represent the training data (simple using EM)

• Look for input points that are not contained within any of the mixtures

Page 16: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

How Do Animals Detect Novelty?

• Habituation• Reduction in synaptic efficacy when a

stimulus is seen repeatedly without ill effect

Page 17: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Habituation

• Simple to model

• Gives a method of deciding how familiar an input is – how frequently has it been seen before

• This is what is needed for novelty detection

Page 18: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Habituation

Page 19: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Novelty Detection Using Habituation

• Some form of clustering algorithm• Learn a model of inputs• Habituate those nodes that fire frequently

and therefore recognise familiar features

• If an input causes an unhabituated node to fire it is novel

• If an input is not represented by the network it is novel

Page 20: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Focus: Inspection

• Train a robot to recognise all of the normal features of some environment, as perceived by the robot’s sensors

• Any features that are not recognised by the system (novelties) are possible faults

Page 21: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Requirements for Novelty Detection Inspection

• On-line learning

• Robustness to some ‘novel’ inputs

• Quantification of the amount of novelty in each input

• Environment specificity

Page 22: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

The ‘Grow When Required’ Network

• A self-organising neural network that can operate on-line

• Produces perfectly-topology preserving maps

• Has novelty detection capability built in through habituating synapses

• Is similar to, but derived independently from, FOSART – Baraldi & Alpaydin

Page 23: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

The ‘Grow When Required’ Network

Page 24: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

The ‘Grow When Required’ Network

Page 25: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

The ‘Grow When Required’ Network

Page 26: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

The ‘Grow When Required’ Network

Page 27: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Topology Preservation

Page 28: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Topology Preservation

5,000 inputs 15,000 inputs

Page 29: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Topology Preservation

25,000 inputs 35,000 inputs

Page 30: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Using the GWR as a Novelty Filter

Page 31: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Using the GWR as a Novelty Filter

Page 32: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Using the GWR as a Novelty Filter

Page 33: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Training a Filter

• Start with an empty GWR network

• As the robot travels down the corridor, sensory perceptions as taken as inputs to the network

• The network adapts to learn about each new input and assesses them for novelty

• It may take a few runs to learn about an environment

Page 34: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Inspection Using Novelty Detection

16 sonar sensors

16 IR sensors

Bumpers

Monochrome camera

Page 35: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Inspection Using Novelty Detection

Environment A

Page 36: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Inspection Using Novelty Detection

Page 37: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Inspection Using Novelty Detection

Page 38: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Inspection Using Novelty Detection

Page 39: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Inspection Using Novelty Detection

Environment B Environment C

Page 40: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Inspection Using Novelty Detection

Page 41: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Inspection Using Novelty Detection

Page 42: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Forgetting

Page 43: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Why Not Just Use the Self-Organising Map?

Page 44: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Small SOM

Page 45: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Large SOM

Page 46: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

GWR

Page 47: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Using Visual Input

• Sonar inputs are fairly low dimensional, and do not provide that much information about the environment

• Can also consider using a camera

• The camera mounted on the robot is a low resolution monochrome camera

Page 48: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

The Visual Magnet

• Ensure that the robot faces in the same direction each time that it is one position

• Perform edge detection, generate a histogram and rotate the turret of the robot to centre the largest element of the histogram

• Works approximately 75% of the time

Page 49: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Generating an Input Vector

• Plenty of choice:– Edge detection histograms– Principal component filters– Raw image– ‘Fingerprint’ – subset of image pixels chosen

in some way

• All are essentially hacks

Page 50: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Visual Inspection

Principal Component Filters Spiral ‘Fingerprint’

Page 51: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Visual Inspection

Spiral ‘Fingerprint’

Page 52: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

“…the novelty of the wife in the best friend’s bed lies neither in the wife, the friend, nor the bed, but in the conjunction of the three.”

O’Keefe and Nadel, 1978

Requirements for Novelty Detection Inspection

Page 53: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Selecting Different Novelty Filters

• A bank of novelty filters are used, with each one trained in a different environment

• A set of familiarity vectors keep a record of how well each novelty filter recognises the current perceptions

Page 54: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Selecting Different Novelty Filters

• For each input:– For each filter:

• Compute the output of each novelty filter• Reduce the element of the familiarity vector

for the filter proportional to the output• Increase the elements of the familiarity

vector for every other filter so that the sum remains normalised

Page 55: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Selecting a Filter

Page 56: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Adding New Filters

• What if none of the filters represents an environment well?– Total novelty is very high– Several of the filters have similar familiarity

scores

• Can then automatically add a new filter and train it in that environment

Page 57: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Adding New Filters

Page 58: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Other Applications

• Ball-bearings• Medical• Landmark selection

Page 59: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

Conclusions• Novelty detection is a useful capability for

learning systems• The GWR network enables on-line novelty

detection and hence, robot inspection• Several filters trained in different

environments provides environment-specific novelty detection, with the system deciding which environment it is currently in

• The system can train new filters as required

Page 60: On-line Novelty Detection With Application to Mobile Robotics Stephen Marsland Imaging Science and Biomedical Engineering University of Manchester

On-line Novelty Detection

With Application to Mobile Robotics

Stephen Marsland Imaging Science and Biomedical Engineering

University of [email protected]

http://www.isbe.man.ac.uk/~srm/