International Journal of Wireless and Ad Hoc Communication

Hybrid Metaheuristics with Deep Learning Assisted Intrusion Detection on Cyber-Physical Smart Grid Environment

Manal M. Nasir, Salim M. Hebrisha
Volume 8, Issue 2, pp. 29–34 (2024)
DOI: https://doi.org/10.54216/IJWAC.080206
Online: https://americaspg.com/journal/20/article/2872

Abstract

Smart grids (SGs) offer can ensure that users with a continuous power supply, decreased line losses, improved renewable output and storing, user participation in current electricity, and demand-side responsiveness. The development of cyberphysical SG (CPSG) systems has transformed the standard power grid by allowing bi-directional energy flow among utilities and users. But, because of increased data change among consumers, it is presented a major problem to the firewall systems for the transmission networks at either cyber or physical planes. Intrusion Detection Systems (IDSs) can role an essential play in maintaining SGs systems against cyber threats by generating a second wall of defense, complementing conventional preventive security procedures (for instance, authorization, encryption, and authentication). Therefore, this article concentrates on the design and development of Hybrid Metaheuristics with Deep Learning Assisted Intrusion Detection in a Cyber-Physical Smart Grid (HMDL-IDCPSG) infrastructure. The major objective of the HMDL-IDCPSG system provides the effectual recognition of the intrusions using feature selection and classification processes in the CPSG infrastructure. In the presented HMDL-IDCPSG method, a binary dragonfly algorithm with the hybrid directed differential operator (BDA‐DDO) algorithm could be implemented for the feature selection (FS) method. Besides, attention-based bi-directional long short-term memory (ABiLSTM) algorithm could be carried out for the recognition and classification of the intrusions. At last, the sparrow search algorithm (SSA) can be exploited for highest chosen the hyperparameter values of the ABiLSTM algorithm which supports in achieving a better solution. For demonstrating the greater outcome of the HMDL-IDCPSG technique, a comprehensive simulation value can be executed. The obtained results reported the supremacy of the HMDL-IDCPSG methodology with other existing approaches

Keywords: Cybersecurity; Intrusion detection; Feature selection; Deep learning; Smart grids; Cyber-physical systems

1. INTRODUCTION

acquisition (SCADA) systems to monitor and control applications, CPSG systems utilize the latest technologies such as phasor measurement units (PMUs) for complex control functions and higher-resolution monitoring [2].

An advanced power grid, extensively identified as a smart grid (SG), includes a bi-directional interchange of data and energy among end users [1]. It contains improved measuring and communication technologies and control methods executed at the cyber plane of cyber-physical smart-grid (CPSG) systems, providing grid digitalization and robustness. Although the standard power grid depends on supervisory control and data

Since network size and attack types continue to grow, communication networks can be susceptible to cyber vulnerabilities. Users now interact directly with the grid through smart appliances, increasing the possibility of cyberattacks in CPSG platforms [3]. Additionally, interventions occurring at cyber and physical planes may be caused by manual or natural attacks. Therefore, differentiating power-system interventions is essential for supporting cyberattack identification and control abilities [4].

Intrusion detection systems monitor traffic data flow and identify suspicious activities or attacks by detecting unauthorized access and generating alarms for administrators [5]. IDSs are commonly classified into anomaly-based and signaturebased systems. Anomaly-based IDSs detect attacks based on deviations from normal activity, whereas signature-based IDSs compare traffic with known attack models [6]. Depending on location, IDSs can be host-based or network-based. In smart-grid platforms, the chosen IDS architecture must match whether the system is centralized, decentralized, or distributed [7].

As a cyber-physical system, failure to detect interventions in SGs may create physical effects on power systems, including loss of control, major blackouts, and system failure [8]. Machine learning and deep learning are therefore important tools for improving IDS efficiency, but high-dimensional data, feature redundancy, and the requirement for optimized hyperparameters remain key challenges. This work proposes the HMDL-IDCPSG method, combining BDA-DDO feature selection, ABiLSTM intrusion detection, and SSA-based hyperparameter tuning.

Several recent studies have investigated IDS techniques for smart grids and industrial cyber-physical systems. Kaur et al. [9] presented a Bayesian technique incorporated with deep CNNs (CNN-Bayesian) to differentiate CPS intrusions from normal activities in binary and multiclass settings. Goyel and Swarup [10] offered optimization methods to build false data injection attacks (FDIA) against state-prediction techniques at the control center. Sakhnini et al. [11] introduced an intelligent attack-identification and localization method based on an ensemble of machine-learning techniques.

Bitirgen and Filik [12] presented an optimized CNN-LSTM with particle swarm optimization (PSO) for FDIA detection in SG systems. Mukherjee et al. [13] suggested a real-time FDIA detection algorithm through a deep-learning-based state-prediction method and an intrusion-detection method using error covariance matrices. Dairi et al. [14] developed two semi-supervised hybrid deep-learning anomaly-detection techniques for IDS in ICS traffic of SGs: AE-GRU and GANRNN.

Gupta et al. [15] recommended an Intelligent Loop Based ANN (IL-ANN) identification method that compares abnormalities in the model with load profiles under architecture nodes. Mhmood et al. [16] introduced an intelligent IDS that combines CGAN, game theory, Aquila Optimization for feature selection, RGB image encoding of selected features, and optimized meta-parameters.

3. THE PROPOSED MODEL

This article concentrates on the HMDL-IDCPSG algorithm for the SG platform. The major aim is effective recognition of intrusions using feature-selection and classification processes in the CPSG environment. The presented method includes three processes: BDA-DDO-based feature selection, ABiLSTM-based intrusion detection, and SSA-based parameter tuning. Figure 1 portrays the complete procedure.

Figure 1. Overall process of the HMDL-IDCPSG method.
Figure 1. Overall process of the HMDL-IDCPSG method.

3.1 Feature Selection Using BDA-DDO Algorithm

The BDA-DDO method is designed for choosing an optimum feature set. In BDA-DDO, a directed differential operator fuses BDA-generated individuals with a differential operator, leading to fast convergence [17]. The fitness function evaluates solution quality. Mutation of the ith individual generates the mutation vector:

Vi = Xi +F ×(XFood −XEnemy). (1)

Here, XEnemy is the position of enemies, Xi denotes the updated BDA individual location, XFood characterizes the better position, and F is the scaling factor.

The binomial crossover operator is:

( Vi,j, rand < CR or randi(1,d) = j, Xi,j, rand > CR or randi(1,d)̸ = j. (2)

Ui,j =

Using transfer function T1, the resultant vector is transformed into a discrete space:

T1 = 1

, (3)

1+e−Ud i

( 0, rand < T1, 1, rand > T1. (4)

Ui,j =

Selection determines survival in the next generation:

( Ui, f(Ui) ≤f(Xi), Xi, otherwise. (5) Xi =

The time-varying differential vector is:

F = 0.5 1+(−0.5)e−0.5×iter , (6)

and the adaptive step update is:

∆X = F ×∆X. (7)

Feature selection is modeled as a multiobjective problem balancing minimum subset size and maximum classification accuracy:

fitness = α ×ERR+β × R

N . (8)

Here, ERR denotes classifier error rate, R is the number of selected features, N is the total number of features, and α and β = 1−α balance classification performance and feature subset size.

3.2 Intrusion Detection Utilizing ABiLSTM Model

The ABiLSTM model is implemented for detection and classification of intrusions. LSTM is widely employed in network intrusion detection to resolve gradient-vanishing problems caused by recurrent neural networks [18]. It contains forget, input, and output gates that preserve long-term memory. Figure 2 depicts the ABiLSTM framework.

Figure 2. Architecture of ABiLSTM model.
Figure 2. Architecture of ABiLSTM model.

The forget gate computation is:

 . (9)

Wf ·[ht−1,xt]+bf ft = σ

The input gate and candidate cell state are:

it = σ (Wi ·[ht−1,xt]+bi), (10) eCt = tanh(Wc ·[ht−1,xt]+bc). (11)

The final cell state is:

Ct = ft ×Ct−1 +it × eCt. (12)

The output gate and hidden state are:

Ot = σ (Wo ·[ht−1,xt]+bo), (13)

ht = Ot ×tanh(Ct). (14)

Assuming the final hidden layer of the ith BLSTM is hit, the attention mechanism is computed as follows [19]:

hit = [hf t ,hb t ], (15) eit = tanh(Wahit +ba), (16) ait = exp(eit) j=1 exp(ej), (17)

T ∑ t=1

ait ·hit. (18)

3.3 Parameter Tuning Utilizing SSA

SSA is implemented to choose the hyperparameter values of the ABiLSTM method. It is a population optimizer that updates the positions of discoverers, followers, and vigilantes during foraging, where the position of optimal food corresponds to the optimal solution [20]. When there are n sparrows in the population, the population matrix and fitness vector are:

X = [x1,x2,...,xn], (19) F = [f(x1), f(x2),..., f(xn)]. (20)

The discoverer position is renewed by:

    xt , R2 < ST, xt+1 ij = (21) xt ij +Q·L, R2 ≥ST. 

− i α ×itermax ij exp

The follower position is updated by:

! xt    ij i2 , i > n/2, xt+1 ij = (22) p |·Z+ ·L, i ≤n/2.   xt+1

worst −xt

Q·exp p +|xij −xt+1

The vigilante position is updated as:

best +β ·|xij −xt

best|, fi̸ = fg, (23)

xt+1 ij −xt best |fi −fw|+ε , fi = fg.

best +k ·

The optimized fitness is defined by classifier error rate:

fitness(xi) = ClassifierErrorRate(xi) (24)

= No. of misclassified instances

Total no. of instances ×100. (25)

4. RESULTS AND DISCUSSION

This section explains the intrusion-detection outcome of the HMDL-IDCPSG system on the ICS dataset [21]. Experiments are examined using binary-class and multiclass datasets. From the available 129 features, the HMDLIDCPSG system selected 76 features for the binary-class experiment.

Table 1. Details on binary class database.
Table 1. Details on binary class database.

Class No. of Instances Normal 115 Attacks 1046 Total Instances 1161

Figure 3 illustrates classifier performance on the binary-class database, including confusion matrices, PR curve, and ROC curve. Table 2. Detection outcome of HMDL-IDCPSG model at binary class dataset.

Class Accuy Precn Recal FScore AUCScore

Training Phase (70%) Normal 94.32 53.85 94.59 68.63 94.45 Attacks 94.32 99.35 94.29 96.75 94.45 Average 94.32 96.60 94.32 95.43 94.32 Testing Phase (30%) Normal 89.92 39.13 93.10 55.10 91.22 Attacks 89.92 99.25 89.68 94.22 91.22 Average 89.92 95.87 89.92 92.62 89.92

The training and validation accuracy/loss behavior of the HMDL-IDCPSG algorithm on the binary dataset is shown in

Figure 3. Binary class dataset of (a–b) confusion matrices, (c) PR curve, and (d) ROC.
Figure 3. Binary class dataset of (a–b) confusion matrices, (c) PR curve, and (d) ROC.
Figure 4. Average of HMDL-IDCPSG algorithm on a binary class dataset.
Figure 4. Average of HMDL-IDCPSG algorithm on a binary class dataset.

Figures 5 and 6. The curves show improvement in training and validation accuracy with increased epochs, while loss tends to decrease.

Figure 5. Accuracy curve of HMDL-IDCPSG algorithm on a binary class dataset.
Figure 5. Accuracy curve of HMDL-IDCPSG algorithm on a binary class dataset.

For the multiclass database, the dataset includes natural, attack, and no-event samples, as shown in Table 4. Figure 8 presents the multiclass confusion matrices, PR curve, and ROC curve.

Figures 10 and 11 show the training and validation behavior for the multiclass dataset. Accuracy improves with epochs,

Figure 6. Loss curve of HMDL-IDCPSG algorithm on a binary class dataset.
Figure 6. Loss curve of HMDL-IDCPSG algorithm on a binary class dataset.
Table 3. Comparative result of HMDL-IDCPSG model with other techniques at binary class database.
Table 3. Comparative result of HMDL-IDCPSG model with other techniques at binary class database.
Figure 7. Comparative result of HMDL-IDCPSG model on a binary class dataset.
Figure 7. Comparative result of HMDL-IDCPSG model on a binary class dataset.
Table 4. Details on multi-class database.
Table 4. Details on multi-class database.

Class No. of Instances Natural 115 Attack 556 No Events 490 Total Instances 1161

Table 5. Detection outcome of HMDL-IDCPSG model on multiclass dataset.
Table 5. Detection outcome of HMDL-IDCPSG model on multiclass dataset.

Training Phase (70%) Natural 96.70 84.15 93.24 88.46 96.36 Attack 96.70 96.15 97.66 96.90 96.91 No Events 96.70 99.12 96.30 97.69 96.93 Average 96.70 96.77 96.70 96.72 96.70 Testing Phase (30%) Natural 94.49 67.50 93.10 78.26 94.74 Attack 94.49 95.04 91.62 93.30 93.61 No Events 94.49 96.88 98.58 97.72 96.32 Average 94.49 89.16 81.48 84.48 87.66

Figure 8. Multi-class dataset of (a–b) confusion matrices, (c) PR curve, and (d) ROC.
Figure 8. Multi-class dataset of (a–b) confusion matrices, (c) PR curve, and (d) ROC.
Figure 9. Average of HMDL-IDCPSG algorithm on multi-class dataset.
Figure 9. Average of HMDL-IDCPSG algorithm on multi-class dataset.

and loss values decrease, indicating the ability of HMDLIDCPSG to model relationships and generate correct classifications.

Figure 10. Accuracy curve of HMDL-IDCPSG algorithm on multiclass dataset.
Figure 10. Accuracy curve of HMDL-IDCPSG algorithm on multiclass dataset.

These outcomes confirm the stronger solution of the HMDLIDCPSG technique for the intrusion-detection procedure. For the binary dataset, the method provides average accuracy, precision, recall, F-score, and AUC score of 89.92%, 95.87%, 89.92%, 92.62%, and 89.92%, respectively, in testing. For the multiclass dataset, the HMDL-IDCPSG method outperforms

Figure 11. Loss curve of HMDL-IDCPSG algorithm on multi-class dataset.
Figure 11. Loss curve of HMDL-IDCPSG algorithm on multi-class dataset.
Table 6. Comparative result of HMDL-IDCPSG model with another algorithm under multi-class database.
Figure 12. Comparative result of HMDL-IDCPSG algorithm on multi-class dataset.
Figure 12. Comparative result of HMDL-IDCPSG algorithm on multi-class dataset.

other recent systems with accuracy, precision, recall, and Fscore of 94.49%, 89.16%, 81.48%, and 84.48%, respectively.

5. CONCLUSION

In this article, the HMDL-IDCPSG algorithm for the smartgrid platform has been presented and developed. The primary aim is efficient intrusion recognition using feature selection and classification processes in the CPSG environment. The presented technique includes BDA-DDO-based feature selection, ABiLSTM-based intrusion detection, and SSA-based parameter tuning. The SSA is utilized to choose optimal hyperparameter values of the ABiLSTM system, supporting enhanced performance. Comprehensive simulation results report the supremacy of the HMDL-IDCPSG system compared with existing approaches.

Funding: This research received no external funding.

Conflicts of Interest: The authors declare no conflict of interest.

References

[1]     Li, X.J., Ma, M. and Sun, Y., 2023. An Adaptive Deep Learning Neural Network Model to Enhance Machine-Learning-Based Classifiers for Intrusion Detection in Smart Grids. Algorithms, 16(6), p.288.

[2]     Mohanty, D., Sethi, K., Prasath, S., Rout, R.R. and Bera, P., 2021, June. Intelligent intrusion detection system for smart grid applications. In 2021 International Conference on Cyber Situational Awareness, Data Analytics and Assessment (CyberSA) (pp. 1-8). IEEE.

[3]     Ossama H. Embarak, Raed Abu Zitar, Securing Wireless Sensor Networks Against DoS attacks in Industrial 4.0, Journal of Intelligent Systems and Internet of Things, Vol. 8 , No. 1 , (2023) : 66-74 (Doi   :  https://doi.org/10.54216/JISIoT.080106)

[4]     Khder Alakkari, Alhumaima Ali Subhi, Hussein Alkattan, Ammar Kadi, Artem Malinin, Irina Potoroko, Mostafa Abotaleb, El-Sayed M El-kenawy, A Comprehensive Approach to Cyberattack Detection in Edge Computing Environments, Journal of Cybersecurity and Information Management, Vol. 13 , No. 1 , (2024) : 69-75 (Doi   :  https://doi.org/10.54216/JCIM.130107)

[5]     Gao, Y., Chen, J., Miao, H., Song, B., Lu, Y. and Pan, W., 2022. Self-learning spatial distribution-based intrusion detection for industrial cyber-physical systems. IEEE Transactions on Computational Social Systems, 9(6), pp.1693-1702.

[6]     Althobaiti, M.M., Kumar, K.P.M., Gupta, D., Kumar, S. and Mansour, R.F., 2021. An intelligent cognitive computing-based intrusion detection for industrial cyber-physical systems. Measurement, 186, p.110145.

[7]     Santoso, F. and Finn, A., 2022. A Data-Driven Cyber–Physical System Using Deep-Learning Convolutional Neural Networks: Study on False-Data Injection Attacks in an Unmanned Ground Vehicle Under Fault-Tolerant Conditions. IEEE Transactions on Systems, Man, and Cybernetics: Systems, 53(1), pp.346-356.

[8]     Li, Y., Xue, W., Wu, T., Wang, H., Zhou, B., Aziz, S. and He, Y., 2021. Intrusion detection of cyber physical energy system based on multivariate ensemble classification. Energy, 218, p.119505.

[9]     Faya Safar, Raddad Al King, Data Security in Cloud Computing, International Journal of Wireless and Ad Hoc Communication, Vol. 7 , No. 1 , (2023) : 50-61 (Doi   :  https://doi.org/10.54216/IJWAC.070105)

[10]   Song, C., Sun, Y., Han, G. and Rodrigues, J.J., 2021. Intrusion detection based on hybrid classifiers for smart grid. Computers & Electrical Engineering, 93, p.107212.

[11]   Kaur, D., Anwar, A., Kamwa, I., Islam, S., Muyeen, S.M. and Hosseinzadeh, N., 2023. A Bayesian Deep Learning Approach With Convolutional Feature Engineering to Discriminate Cyber-Physical Intrusions in Smart Grid Systems. IEEE Access, 11, pp.18910-18920.

[12]   Goyel, H. and Swarup, K.S., 2022. Data Integrity Attack Detection Using Ensemble-Based Learning for Cyber–Physical Power Systems. IEEE Transactions on Smart Grid, 14(2), pp.1198-1209.

[13]   Sakhnini, J., Karimipour, H., Dehghantanha, A. and Parizi, R.M., 2021. Physical layer attack identification and localization in cyber–physical grid: An ensemble deep learning based approach. Physical Communication, 47, p.101394.

[14]   Bitirgen, K. and Filik, Ü.B., 2023. A hybrid deep learning model for discrimination of physical disturbance and cyber-attack detection in smart grid. International Journal of Critical Infrastructure Protection, 40, p.100582.

[15]   Mukherjee, D., Chakraborty, S., Abdelaziz, A.Y. and El-Shahat, A., 2022. Deep learning-based identification of false data injection attacks on modern smart grids. Energy Reports, 8, pp.919-930.

[16]   Dairi, A., Harrou, F., Bouyeddou, B., Senouci, S.M. and Sun, Y., 2023. Semi-supervised deep learning-driven anomaly detection schemes for cyber-attack detection in smart grids. In Power Systems Cybersecurity: Methods, Concepts, and Best Practices (pp. 265-295). Cham: Springer International Publishing.

[17]   Gupta, P.K., Singh, N.K. and Mahajan, V., 2021. Intrusion detection in cyber-physical layer of smart grid using intelligent loop based artificial neural network technique. International Journal of Engineering, 34(5), pp.1250-1256.

[18]   Mhmood, A.A., Ergül, Ö. and Rahebi, J., 2023. Detection of Cyber Attacks on Smart Grids Using Improved VGG19 Deep Neural Network Architecture and Aquila Optimizer Algorithm.

[19]   Chen, Y., Gao, B., Lu, T., Li, H., Wu, Y., Zhang, D. and Liao, X., 2023. A Hybrid Binary Dragonfly Algorithm with an Adaptive Directed Differential Operator for Feature Selection. Remote Sensing, 15(16), p.3980.

[20]   Yousaf, K. and Nawaz, T., 2022. A deep learning-based approach for inappropriate content detection and classification of youtube videos. IEEE Access, 10, pp.16283-16298.

[21]   Du, J., Yang, K., Hu, Y. and Jiang, L., 2023. Nids-cnnlstm: Network intrusion detection classification model based on deep learning. IEEE Access, 11, pp.24808-24821.

[22]   Du, Y., Yuan, H., Jia, K. and Li, F., 2023. Research on Threshold Segmentation Method of Two-dimensional Otsu Image Based on Improved Sparrow Search Algorithm. IEEE Access.

[23]   https://sites.google.com/a/uah.edu/tommy-morris-uah/ics-data-sets