Anomaly detection; Industrial control systems; convolutional neural networks

Moshe Kravchik, Asaf Shabtai

Abstract

This study investigates the efficacy of 1D Convolutional Neural Networks (CNNs) for unsupervised anomaly detection in Industrial Control Systems (ICS). Using the Secure Water Treatment (SWaT) dataset, researchers demonstrate that 1D CNNs significantly outperform traditional Recurrent Neural Networks (RNNs) in both detection accuracy and computational efficiency. The proposed approach successfully identified 32 out of 36 cyberattacks while maintaining training speeds up to 40 times faster than LSTM-based alternatives.

Introduction

Industrial Control Systems (ICS) serve as the critical backbone of modern infrastructure, managing essential services such as power grids, oil refineries, and water treatment plants. Historically, these systems relied on "security through obscurity" by remaining air-gapped. However, increasing connectivity has exposed them to sophisticated cyber threats, such as Stuxnet, which can manipulate physical processes with devastating consequences.

Protecting these systems is challenging because their physical complexity makes manual mathematical modeling nearly impossible. While machine learning offers a solution by learning "normal" operational behavior to flag deviations, previous research has leaned heavily on Long Short-Term Memory (LSTM) networks. These recurrent models are often computationally expensive, difficult to optimize, and can struggle to detect rapid, short-lived anomalies.

The SWaT Dataset

To validate their approach, the researchers utilized the Secure Water Treatment (SWaT) dataset, which represents a scaled-down but fully operational six-stage water purification plant.

Schematic of the six-stage Secure Water Treatment (SWaT) process.

The dataset includes 11 days of continuous operation: seven days of normal behavior for training and four days of attack scenarios for testing. The system logs data from 51 sensors and actuators—including flow meters, pH sensors, and valves—every second. During the test phase, 36 distinct cyberattack scenarios were introduced, ranging from sensor spoofing to malicious commands sent via the SCADA system.

Anomaly Detection Methodology

The authors propose an unsupervised framework centered on 1D CNNs. Unlike classification models, this system is trained exclusively on "normal" data to predict the next state of the system based on a sliding window of previous sensor readings.

Sensor LIT101 readings showing a deviation during a simulated attack period.

By applying 1D convolutions across the time dimension, the model efficiently extracts local temporal patterns. To identify an attack, the system calculates a Z-score of the prediction error (the delta between the model's expectation and the actual sensor reading). If this error exceeds a predefined threshold for a specific duration, an anomaly is flagged. The researchers explored various architectures, including basic CNNs, VGG-style stacks, and ResNet blocks, to find the optimal configuration for ICS data.

Key Insights and Results

1. Superior Detection Performance

The 1D CNN ensemble successfully detected 32 out of 36 attacks, a significant improvement over previous LSTM-based studies that failed to detect 23 of the same 36 attacks. The model achieved an F1 score of 0.9206 with a precision of 1.0 in ensemble evaluations, indicating zero false positives.

2. Computational Efficiency

Efficiency is a critical security feature in industrial environments. The 1D CNNs were 15–40x faster to train and 10–20x faster to test than LSTMs. Furthermore, the CNN models were approximately 30 times smaller than their LSTM counterparts, making them ideal for deployment on edge industrial hardware with limited resources.

3. Temporal Feature Extraction

The study suggests that 1D CNNs are better suited for capturing the "locality" of industrial time-series data. They can identify the immediate physical consequences of an attack more reliably than recurrent networks, which may over-complicate the temporal dependencies found in these specific physical processes.

Conclusion and Future Work

While 1D CNNs excel at detecting local patterns and offer massive gains in efficiency, they may face limitations in identifying very long-term dependencies spanning several hours. Future research should focus on "stealthy" attacks that remain within normal ranges but manipulate the system over extended periods. Additionally, developing "cross-stage" correlation models could help identify how a subtle anomaly in an early stage of a process manifests as a failure in a later stage, further improving the resilience of critical infrastructure.

Summary updated

BibTeX
@inproceedings{kravchik2018anomaly,
  author = {Moshe Kravchik and Asaf Shabtai},
  title = {{Anomaly detection; Industrial control systems; convolutional neural networks}},
  booktitle = {CPS-SPC@CCS},
  year = {2018},
  doi = {10.1145/3264888.3264896},
}
Figure