Accuracy-latency Trade-offs in Machine and Deep Learning Models for Real‐time Smart Grid Intrusion Detection
Keywords:
Deep Learning,, Machine Learning, Cyber-physical Systems, Smart Grid, Intrusion Detection, Pareto frontier, Real-time SystemAbstract
Models that are fast enough to keep up with operational traffic and accurate enough to safeguard vital control functions are needed for real-time smart-grid intrusion detection. The accuracy-latency trade-offs of nine machine learning and deep learning model, namely, Random Forest (RF), K-Nearest Neighbors (KNN), Extreme Gradient Boosting (XGBoost), Gated Recurrent Unit (GRU), Deep Belief Network (DBN), Convolutional Neural Network (CNN), Recurrent Neural Network (RNN), Deep Neural Network (DNN), and Long Short-Term Memory (LSTM) were evaluated in an emulated multilayer cyber-physical smart grid intrusion detection system. The study reports accuracies from 98.32% to 100% and inference latencies from values rounded to 0.0000 ms to 0.056879 ms. Among positive-latency models, XGBoost and DNN form the principal non-dominated accuracy-latency frontier: XGBoost reports 99.9% accuracy at 0.000671 ms, while DNN reports 99.49% at 0.001156 ms and the best Layer 3 error profile. KNN is dominated because it matches XGBoost accuracy but is 84.77 times slower. RNN is the fastest Layer 3 model at 0.001133 ms, but DNN is only 2.03% slower and gains 1.17 accuracy points. RF and DBN values rounded to zero are treated as below timer resolution, not literal zero. New Pareto, normalized utility, throughput, and alarm-cost analyses are derived. Additionally, a reporting audit finds an incompatible GRU F1 value and inconsistent confusion-matrix prose, necessitating regeneration from raw predictions. Subject to capture-grouped validation and end-to-end percentile latency tests, the results support XGBoost for first-line screening, a calibrated GRU/DBN intermediate stage, and DNN for final classification.