Anomaly detection with time-series
How our subscribers at SCANIA use the chambers to test anomaly detection algorithms.
[We believe the setup is useful for anyone testing anomaly detection and root-cause analysis, and we've written this research guide so you can do the same]
The problem
[A live system (truck / engine / bioreactor, etc). we have a stream (time-series) of data from different variables: actuators, control inputs and sensor outputs. There is some causal relationship between these variables: actuators and control inputs drive the sensor measurements, which are also affected by external, unmeasured influences). The goal of an anomaly detection algorithm is to monitor the stream of data, and detect when an anomaly has happened; for extra credit, what was the cause of this anomaly (root cause analysis).]
[Testing these algorithms outside of a computer simulation is difficult in practice for two reasons: (1) we don't know when anomalies happened, and (2) we don't know the underlying causal structure. This means we can't really check the answers that our algorithm gave us. As with many other fields, the gap between simulation and real, deployment scenarios is huge, making it difficult to properly test and refine our algorithms.]
As always, this is the gap that the chambers fill. They provide a real but controlled environment where (1) we can introduce anomalies at will, (2) we know the causal structure, and (3) there are still external, unmeasured influences that make the problem complicated enough.
Of course, an algorithm that works on the chambers does not necessarily work outside. But as one of the researchers at SCANIA told us "if it doesn't work on the Chamber it won't work on the real thing".
A testbed for anomaly detection

Because it produces time-series data from a dynamical system, the Wind Tunnel Mk2 was the obvious choice for this problem.
The chamber exposes data from 44 variables, from sensor measurements to control inputs. We can pick subsets of these to make up our data stream and use the rest to introduce anomalies.
Building a task
[To build a task, we pick variables: sensor measurements and control inputs that will drive them; then we pick other inputs and sensor parameters to act as 3rd variables, which modulate the relationships between our task variables, allowing us to introduce anomalies with a high degree of control.
An example
Let's start with a simple example [produce data for an anomaly detection algorithm: goal -> decide at which point in time the anomaly has occurred] using only a few variables:
Control inputs: fan loads
load_inandload_outSensor measurements: fan speeds (
rpm_in/out), fan currents (current_in/out_raw), air pressure (pressure_upwind/downwind/intake/ambient) and global chamber current (supply_current).
As anomalies
Leak in the system: hatch; at random or related to the rest of the system -> at high inner pressure (downwind), probability is higher.
Sensor drift: reference voltages -> fluctuations at random with low probability.
Below is the experimental data with the code to collect it from the Remote Lab.
Anomaly index
[To help you design different tasks, we find this map useful].
[Reformulation of the map of physical effects (causal ground-truth) of the Wind Tunnel Mk2].
[We reformulate the graph as] relationships (gray lines / arrows) in the Wind Tunnel Mk2 and the 3rd variables that modulate them (green arrows). See the relationship index below for complete details and accompanying experiments and plots.
[TODO: update graph: remove pressure_ambient, add edges from hatch/rpm_* to load_*->rpm_* relationships]
For each of the relationships in the graph (gray lines / arrows), you can find detailed description of each relationship and modulation, together with a visualization and the code to reproduce it.
Note: Each relationship (gray and green lines/arrows) can be seen independently in the index of physical effects for this chamber.
Last updated