Fast Attack Detection Method for Imbalanced Data in Industrial Cyber-Physical Systems

Meng Huang, Tao Li, Beibei Li, Nian Zhang, Hanyuan Huang

Abstract

Industrial Cyber-Physical Systems (ICPSs) are increasingly vulnerable to cyberattacks as they transition from isolated environments to interconnected networks. This paper presents the ALLKNN-LightGBM framework, designed to provide fast and accurate intrusion detection in high-dimensional, imbalanced industrial datasets. The approach combines information-theoretic feature selection with All K-Nearest Neighbor (ALLKNN) undersampling to clarify decision boundaries between normal and malicious traffic. Experimental results on three benchmark datasets—Gas Pipeline, SWaT, and ToN_IoT—demonstrate that the proposed method achieves over 99% accuracy while being significantly faster than traditional deep learning and ensemble methods.

Introduction

Modern Industrial Cyber-Physical Systems (ICPSs), such as smart grids and automated manufacturing plants, rely on the seamless integration of physical processes with digital control systems. While this connectivity enhances efficiency, it expands the attack surface for malicious actors. Traditional Intrusion Detection Systems (IDS) often struggle with the unique characteristics of industrial data, specifically the extreme imbalance between normal operations and rare attack events, as well as the high dimensionality of sensor-generated data.

Architecture of ICPS layers and associated security components.

Problem Statement: The Challenges of ICPS Security

Two primary hurdles impede effective intrusion detection in industrial environments:

  1. Data Imbalance: In real-world scenarios, malicious traffic constitutes a tiny fraction of total network activity. Standard machine learning models tend to favor the majority class (normal traffic), leading to high false-negative rates for critical attacks.
  2. High Dimensionality and Latency: Industrial sensors produce vast amounts of data. Processing hundreds of features in real-time requires significant computational resources. In time-sensitive industrial processes, high detection latency can lead to catastrophic physical failures.

Proposed Methodology: The ALLKNN-LightGBM Framework

The authors propose a three-stage pipeline to optimize both detection performance and speed.

The proposed ALLKNN-LightGBM intrusion detection framework, illustrating feature selection, data reduction, and classification stages.

1. Hybrid Feature Selection

To reduce dimensionality without losing critical information, the framework employs three information-theory metrics: Joint Mutual Information (JMI), Conditional Mutual Information Maximization (CMIM), and Double Input Symmetrical Relevance (DISR). This ensemble approach ensures that only the most relevant and non-redundant features are retained.

2. ALLKNN Undersampling

To address data imbalance, the All K-Nearest Neighbor (ALLKNN) algorithm is used for "boundary cleaning." Unlike random undersampling, ALLKNN identifies and removes majority-class (normal) samples that are ambiguous or too close to the minority-class (attack) samples. This process sharpens the decision boundary, making it easier for the classifier to distinguish between classes.

3. LightGBM Classification

The final stage utilizes LightGBM, a high-performance gradient-boosting framework. LightGBM’s leaf-wise growth and histogram-based optimization make it exceptionally fast and memory-efficient, which is crucial for real-time industrial monitoring.

Experimental Evaluation

The framework was tested on three major industrial benchmarks:

  • Gas Pipeline Dataset: 97,019 samples, 27 features.
  • SWaT (Secure Water Treatment): 94,672 samples, 51 features.
  • ToN_IoT: 46,104 samples, 44 features.

Results and Discussion

The ALLKNN-LightGBM method consistently outperformed Random Forest, SVM, and deep learning models like CNNs and LSTMs.

  • Accuracy: The model achieved 99.77% on the Gas Pipeline, 99.65% on SWaT, and 99.98% on ToN_IoT.
  • Computational Efficiency: On the Gas Pipeline dataset, the proposed method completed detection in just 1.71 seconds, compared to 601.3 seconds for a CNN. This represents a massive speedup, making it suitable for real-time deployment.
  • Robustness: High F-scores across all datasets confirmed that the model effectively handles imbalanced data without sacrificing the detection of rare attacks.

Conclusion

The ALLKNN-LightGBM framework provides a robust solution for securing modern ICPSs. By prioritizing boundary quality over data quantity and leveraging efficient gradient boosting, the method achieves a superior balance of accuracy and speed. Future work will focus on adapting the system for zero-day attack detection and deployment on resource-constrained edge devices.

Summary updated

BibTeX
@article{huang2023fast,
  author = {Meng Huang and Tao Li and Beibei Li and Nian Zhang and Hanyuan Huang},
  title = {{Fast Attack Detection Method for Imbalanced Data in Industrial Cyber-Physical Systems}},
  journal = {J. Artif. Intell. Soft Comput. Res.},
  year = {2023},
  doi = {10.2478/jaiscr-2023-0017},
}
Figure