1. Introduction
The wide-range acceptance of cutting-edge techniques like the Internet of Things (IoT), big data (BD), and the flexible computing and storage source of cloud computing (CC) has been directed to the domain perceiving data overflow, the significance of the concurrent huge data generation by IoT and humans [1]. Therefore, altering society and the domain of business in several features. According to McKinsey, the reasonable power in the inclusive market is presently focused on connecting effectual and creative BD and cutting-edge techniques [2]. So, creating these setups will not only draw consideration from the business and government industries but similarly from illegal efforts to approach these complex and valued data [3]. However, these valuable data are normally restricted in numerous BD and applications of the real world, which are classified into symmetric and asymmetric data distributions. For example, the symmetric relations between the data of social systems and the asymmetric prospect supply of regular and malicious network traffic. The lost data within these real uses are quite rich in unseen patterns and data [4]. So, creating effectual and actual measures of filtering these valued patterns is important.
Similarly, the rising reliance on the internet and its amenities has headed a determined danger against computer systems [5]. For example, numerous types of cyberattacks have been changed radically since the origin of the internet and the fast increase of innovative technologies. Regardless of the tireless struggles of safety professionals in terms of defence mechanisms, hackers have constantly originated methods to acquire away directed sources from valued and most reliable resources globally by beginning sophisticated, flexible, and automatic cyberattacks [6]. As an outcome, this creates a great disaster for businesses, governments, and for people. For example, the authors have been enchantingly present a brief of numerous cyberattacks and their values. At first, the paper emphasizes the prediction of 6 trillion US dollars of cybercrimes and the numerous worldwide innovative cybercrimes that main to the damage of one billion US dollars worldwide [7]. At last, an enormous 1.5 trillion US dollars of cyberattack profits result from 2 to 5 million computers negotiated every day. Then, the past few years have seen the high reputation of Intrusion Detection Systems (IDS) as an outcome of their characteristic aptitude to perceive an intrusion. With the upsurge in the use of the Internet, a massive amount of data is swapped between dissimilar communication devices [8]. The data must be communicated firmly among the collaborating devices and so, network safety is one of the leading study fields for the present network scenario. IDS are generally utilized along with other safety devices like access control and firewalls. The leading safety challenge in CC is the recognition and frustration of network attacks [9]. Currently, network intrusions have increased owing to inadequate countermeasures, and an IDS can able to tackle these safety concerns [10]. But, before using any IDS technique in a cloud atmosphere, it is vital to certify that the projected method is well developed and implemented.
This study proposes an improved Arithmetic Optimization Algorithm with an Extended Fuzzy Neutrosophic Classifier technique for Accurate Intrusion Detection and Classification. The main goal of AOA-EFNSC method is to recognize the presence of intrusions effectually. In the AOA-EFNSC technique, a min-max scalar is applied to normalize the input data. Besides, the AOA-EFNSC technique employs AOA-based feature selection technique to select a subset of feature. For intrusion detection, the AOA-EFNSC technique uses the FNSC technique for the recognition and identification of the intrusions. The experimental values pointed out that the AOA-EFNSC technique gains enhanced detection results over other models. The contribution of this study can be summarized as follows:
- An improved binary variant of AOA algorithm is proposed to enhance the global search ability of AOA.
- The novel AOA algorithm can escape from the local optimal solutions and seek for the best set of features for the classification and detection tasks.
- The EFNSC algorithm is utilized as a classifier along with the improved AOA for the classification problem in intrusion detection system.
- A set of comprehensive experiments are conducted to validate and assess the performance of the proposed AOA-EFNSC for feature selection in intrusion detection problem. 2. Literature Review
This section presents a set of recent related works applied to the feature selection problem in intrusion detection domain to highlight the research gap of the proposed work.
Park et al. [11] presented a graph-based intrusion detection and classification system termed as G-IDCS, which derives to improve the security of in-vehicle controller area network (CAN) protocol. Presenting IDSs utilizing graph model suffer from limitations like require a huge amount of CAN messages for recognition and being ineffectual for classifying attack types despite analysing several messages. In the meantime, ML or DL-based approaches are restricted sensitivity to environmental alterations like attack type alter because of the model overfitting and are ineffective give explanations for classification decisions. Fayed et al. [12] implemented a wideranging occupancy recognition model that trusts on an innovative fusion method for combining heterogeneous sensor data that extremely increases occupancy recognition effectiveness. By employing Neutrosophy, the developed method controls the sensor information uncertainty. Moreover, it enhances dependability by combining various sensor data. Since, it employs a single feature produced from combining numerous sensors data, testing, and training time will be minimized. In [13], an improved technique was presented employing an extreme gradient boosting (XGB) method with correlation-based FS for precise IDSs. The XGB method was employed, and it utilizes the max-depth factor as a given standard for minimizing the trees and increasing the efficiency considerably. The developed method chooses the preeminent value of the max-depth factor by exploiting a comprehensive search optimization method.
Zainudin et al. [14] examined federated learning (FL)-based low-complexity intrusion detection and classification in SDN-enabled industrial CPS. This method employs Chi-square and Pearson correlation coefficient (PCC) FS approaches for selecting potential features that support to decrease the model’s complexity and improve result. Prasad et al. [15] projected an improved IDS for the mobile ad-hoc network. This technique mostly produces 11 sub-datasets as well as assesses their quality employing a fuzzy logic (FL) model. A probabilistic method was proposed for feature ranking. The following method extracts ineffectual features in the training and testing sets. The technique implemented a Bayesian rough set method that categorizes the behavior of mobile nodes employing received packets. The Bayes algorithm was also exploited.
Mojtaba Eskandari et al. [26] developed an anomaly-based Intrusion Detection System (IDS) model for IoT edge devices called Passban. This efficient IDS is designed to connect directly to IoT devices and can be deployed on inexpensive IoT gateways, which is a unique feature of the proposed system. By leveraging the full potential of the edge computing structure, Passban effectively detects cyber threats from related data sources. It is capable of accurately identifying various types of malicious traffic, including SYN flood attacks, HTTP attacks, port scanning, and SSH brute force attacks, while maintaining a low false-positive rate.
Bakro et al. [27] developed an improved cloud-based Intrusion Detection System (IDS) incorporating Synthetic Minority Over-sampling Technique (SMOTE) to tackle issues with imbalanced data. For feature selection (FS), they utilized a hybrid approach that integrates three models: Particle Swarm Optimization (PSO), Chi-Square (CS), and Information Gain (IG). Finally, they employed the Random Forest (RF) algorithm to detect and classify various types of attacks.
In [16], a method to identify animals was presented employing establishments in DL system. Utilizing this DL technology, it has the potential to detect animals and ensure adequate security measures are in place to mitigate the risk of animals gaining entry and causing harm. This work contains image pre-processing and AI for animal recognition, species classification, and automatic animal detection utilizing CNN, alarm unit, and animal repellent circuit format. Abdelhafeez et al. [17] developed a new hybrid DL-based layer-fusion and neutrosophic-set (NS) method having two phases. Primarily, improving the classification accuracy of the trained models separately. This developed feature fusion technique was employed. The error-correcting output codes (ECOC) model has been deployed for making a category of trained true and false SVM algorithms by using integrated GoogleNet and DarkNet feature maps, correspondingly. The coding matrices of ECOC have been developed for training all true classifiers and their opponent in one to another way.
In [28], Alkanhel et al. introduced a hybrid optimization method for feature selection in Intrusion Detection Systems (IDS). This approach combines dipper-throated optimization (DTO) with grey wolf (GW) techniques and is referred to as GWDTO. The proposed model achieves a better balance between the exploitation and exploration phases of the optimization process, leading to enhanced performance.
Hassan et al. [29] created an Intrusion Detection (ID) model using an enhanced Binary Manta-Ray Foraging (BMRF) Optimizer, which is based on the S-shape function and Random Forest (RF) approach. The BMRF is primarily aimed at identifying important features and eliminating irrelevant or redundant ones in ID datasets. The RF technique is then used to evaluate these features and build the ID model. In [15], an efficient wrapper feature technique was developed to improve results and reduce computation time for IDS. This method utilizes a differential evaluation technique to select effective features, followed by an Extreme Learning Machine (ELM) classification model to analyze the chosen features.
Kareem et al. [30] developed an effective feature selection (FS) method by improving the performance of the Gorilla Troops Optimizer (GTO) using the Bird Swarm Algorithm (BSA). The BSA is utilized to enhance efficiency, leveraging the GTO in the newly designed GTO-BSA, which excels at identifying optimal solutions. Zhao et al. [18] created a hybrid Intrusion Detection (ID) system based on weighted stacking classification and the CFS-DE FS method. To reduce feature dimensions, they designed the CFS-DE algorithm to find the optimal feature subset. Subsequently, the weighted stacking technique is used to enhance the weights of the bestperforming base classification models and reduce the influence of underperforming ones, thus improving classification performance.
Subramani and Selvi [31] introduced a resilient Intrusion Detection System (IDS) aimed at identifying intruders within IoT-enabled wireless sensor networks to manage security breaches. Their approach involved developing an intelligent IDS using a rule-based model combined with a Multi-Objective Particle Swarm Optimization (PSO) enabled Feature Selection (FS) technique. Additionally, they proposed an enhanced multiclass Support Vector Machine (SVM) classifier, which leverages intelligent rules to accurately detect intrusions.
Kamalesh and Muthukrishnan [32] proposed a Dictionary-based Sparse Regression Learning method enhanced with Golden Jackal Optimization (DSRL-GJO) to monitor healthcare data within an IoT-based context-aware architecture. This approach, referred to as DSRL-GJO-HD-CAA-IOT, employs structural interval gradient filtering (SIGF) for processing. Features are extracted using a structured optimal graph-based sparse feature extraction technique. These extracted features are then fed into the Dictionary-based Sparse Regression Learning model, which is optimized using the GJO method.
Alshehri [18] introduces a 2-stage hybrid multi-stage decision-making model that is depends on type-2 neutrosophic numbers (T2NNs). Primarily, this method is defining the weights of condition by the AHP methodology in the T2NN environment. Secondary, the T2NN-based Multi-Attributive Border Approximation Area Comparison (MABAC) system was utilized for ranking the several fog security methods that work on IoT environments. Chinnasamy and Rajasekaran [19] manage uncertainty data by presenting a multi-valued neutrosophic ConvLSTM (MVN-ConvLSTM) that extracts distinct deep features. MVN-ConvLSTM utilizes a neutrosophic set (NS) that assumed as truth (𝑇), indeterminacy (𝐼), and falsity (𝐹) memberships of all the features. Mirza and Samak [20] develops a unique system to accurately classify X-ray imageries of chest in COVID19 forecast by integrating Neutrosophic FL (NFL) with Hybrid CNN and LSTM framework. Medical image analysis contains uncertainty and imprecise data that is managed using NFL. Dias et al. [21] introduces the Rule Generator (RUGE) structure that automates the rule mining and selective method utilizing a GA with single-valued neutrosophic cross-entropy fitness operator.
Based on the review, it is evident that various metaheuristic optimization and machine learning algorithms have been employed for network intrusion detection. However, these algorithms often face challenges, such as getting trapped in local optima. Additionally, according to the No Free Lunch theorem by Ebrahimpour and Eftekhari [33], no single algorithm can solve all optimization problems. Therefore, this study proposes an Improved Binary Arithmetic Optimization Algorithm (BMRF) based attribute selection method combined with a EFNSC classifier for network intrusion detection.
3. Research Background
A. Arithmetic Optimization Algorithm
Abualigah et. al. introduced a new population-based meta-heuristic algorithm called AOA that exploits four arithmetical operators such as Addition (𝐴𝜀+ 𝜀), Multiplication (𝑀𝜀× 𝜀), Division (𝐷𝜀÷ 𝜀), and Subtraction (𝑆𝜀−𝜀) [23]. Using the following expression, the initial population is randomly generated in AOA:
In Eq. (1), 𝑥 denotes the solution of population. The upper and lower boundaries of the search range are represented as 𝑈 and 𝐿, correspondingly. 𝜕 denotes the randomly generated parameter lies within [0,1].
The selection of exploitation and exploration is performed based on the result of 𝑀𝑂𝐴 (Math Optimizer Accelerated) function before the commencement of AOA that can be evaluated as follows:
In Eq. (2), 𝑀𝑂𝐴(𝐶−𝐼𝑡𝑒𝑟) denotes the functional outcome at 𝑡𝑡ℎiteration. 𝐶−𝐼𝑡𝑒𝑟 shows the existing iteration that lies within 1 and the maximal iteration count (𝑀−𝐼𝑡𝑒𝑟). The minimum and maximum values of MOA are represented by Min and Max. The global search or exploration in AOA is implemented by applying Multiplication (M) and Division (D) operators‐based search approaches as follows:

In Eq. (3), 𝑥𝑖(𝑡+ 1) characterizes the 𝑖𝑡ℎ solution of (𝑡+ 1)𝑡ℎ iteration, 𝑥𝑖,𝑗(𝑡) signifies the 𝑗𝑡ℎ location of the 𝑖𝑡ℎ individuals at the existing generation. 𝑏𝑒𝑠𝑡(𝑥𝑗) denotes the 𝑗𝑡ℎ position of the best solution obtained. 𝜖 indicates the small positive integer, the lower and upper bounds of 𝑗𝑡ℎ location is signified as 𝐿𝑗 and 𝑈𝑗, correspondingly. A control parameter 𝜇 is fixed as 0.5. The Math Optimizer Probability (𝑀𝑜𝑃𝑟) is a coefficient that evaluated by Eq. (4):

Where 𝑀𝑜𝑃𝑟(𝑡) shows the value of 𝑀𝑜𝑃𝑟 at 𝑡𝑡ℎ iteration. 𝑀−1𝑡𝑒𝑟 represents the maximal iteration count. 𝜃 is a crucial variable that control the exploitation efficacy over the iteration.
In AOA, the exploitation approach is performed by using Addition (𝐴) or Subtraction (𝑆) operators.

Where a constant 𝜇 is set as 0.5. Fig. 2 demonstrates the steps involved in AOA and presented in Algorithm 1.
B. Proposed binary Arithmetic Optimization Algorithm (BAOA)
The proposed binary Arithmetic Optimization Algorithm optimization algorithm utilizes an adaptive S-shaped transfer function. Below is a detailed description of the proposed algorithm.
The original Arithmetic Optimization Algorithm (AOA), introduced by [23], addresses continuous optimization problems. However, in attribute selection, attributes are binary (selected or not selected), necessitating a binary representation for the attribute space [34]. Therefore, we propose the binary Arithmetic Optimization Algorithm (AOA) algorithm, which is more suitable for binary attribute spaces. This transformation is achieved by using an adaptive S-shaped transfer function (ASSTF), making the BAOA appropriate for feature selection tasks [35]-[37].
In the BAOA algorithm, each agent (M) is represented by a sequence of binary values, forming a candidate solution. Here, 𝑛 is the dimension, and each element is either 1 (attribute selected) or 0 (attribute not selected). Unlike the AOA, which updates positions through continuous stages, the BAOA algorithm updates positions by adjusting probabilities. The S-shaped transfer function is a fundamental and effective method for converting continuous values to binary states [38]. Example, take the first function, the common conversion method is as in Eq. (6) and Eq. (7)
This paper introduces the proposed Binary Arithmetic Optimization Algorithm (BAOA) algorithm, enhanced with an adaptive S-shaped transfer function (ASSTF). The ASSTF adjusts based on the iterations of the BAOA algorithm, dynamically modifying the gradient to achieve a refined turnover probability. The ASSTF at the current position (𝑥) can be represented by Eqs. (8) and (9), with the new position being computed using Eq. (9).


In this context, 𝑖𝑡𝑒𝑟 represents the current iteration of the algorithm, while 𝑀𝑎𝑥𝐼𝑡𝑒𝑟 denotes the maximum number of iterations allowed. During the initial iterations, a larger value of 𝑘 leads to a smaller gradient in the curve, resulting in a lower probability of change. This behavior enhances the algorithm's focus on exploitation, aiming to exploit the current solutions effectively. As the algorithm progresses to later iterations and 𝑘 decreases, the gradient of the curve steepens. This causes the change probability to increase, shifting the algorithm's focus towards exploration, enabling it to escape from suboptimal local solutions and potentially find better global solutions.
C. Fundamentals of Neutrosophic Logic
A fuzzy set (FS) differs from a traditional set in that it assigns a membership level to each of its components. Based on traditional set, the logic depends on the real values such as “true” and “false” are sometimes not enough for determining the human choices. On the other hand, assumed only 2 real values, FL takes the total range from 1 (‘true’) and 0 (‘false’) for higher outcome. A FS allows its members or elements to take several levels of membership from the range of zero and one. But FS model, it needs that detected that the clarification of sets varies depends on context. Then the fuzzy morphological word ‘tall’ takes one classify of FS but determining the height of construction and second classify of FS once determining the human height.
Definition1. Let 𝑋 refers the group of universal and 𝑥∈𝑋, then FS 𝐴̂ in 𝑋 is defined as 𝐴̂ = {(𝑥, 𝜇𝐴̂(𝑥)) ∶𝜇𝐴̂(𝑥) ∈ [0,1], 𝑥∈𝑋}, the 𝜇𝐴̂(𝑥) is named as level of membership of 𝑥 in 𝐴̂. Then, 𝜇𝐴̂(𝑥) represents the membership level of 𝑥 to 𝐴̂ or holding level some incorrect property defined as 𝐴̂.
By executing the Zadeh’s min-max method, complement function, FS union, and intersection are defined. The union of 2 FSs 𝐶̂ and 𝐷̂ is a FS in 𝑋, represented by 𝐶̂ ∪𝐷̂, the level of membership are provided as 𝜇𝐶̂∪𝐷̂ = 𝜇𝐶̂(𝑥) ∨𝜇𝐷̂(𝑥) = max{𝜇𝐶̂(𝑥), 𝜇𝐷̂(𝑥)} for every 𝑥∈𝑋.
D. Neutrosophic FS and the application for taking decision
Assume 𝐷̂ is a FS defining over 𝑋. Afterward its complement, 𝐷̂𝑐, is represented in terms of membership degree as 𝜇𝐷̂𝑐(𝑥) = 1 −𝜇𝐷̂(𝑥) for every 𝑥∈𝑋.
This presents the NFS that the fuzzy membership degree of each component is compared with neutrosophic components such as truth, falsity, and indeterminacy membership levels. The integration of neutrosophic constituents to FS was needed to control the real-time data that take either unreliable or unpredictable. In different real-time problems, the level of membership of FS isn’t completely ensured due to inaccurate and unreliable features of individual excellence. Therefore, it is more sensible to contain neutrosophic components to elect the membership level. The authors present the NFS. In other words, the level of membership of the neutrosophic components are defined by NFS.
Definition 2. Let 𝑌 is objects set and 𝐴̂ = {(𝑦, 𝜇𝐴̂(𝑦)), 𝜇𝐴̂(𝑦) ∈[0,1], 𝑦∈𝑌} be a FS. Then, a NFS 𝐴 in 𝑌 is represented by 𝐴= {𝑦, 𝜇𝐴(𝑦), 𝑇𝐴(𝑦, 𝜇), 𝐼𝐴(𝑦, 𝜇), 𝐹𝐴(𝑦, 𝜇)}, 𝑦∈𝑌, each membership rate is indicated by falsity, indeterminacy, and truth membership function are defined as 𝑇𝐴(𝑦, 𝜇), 𝐼𝐴(𝑦, 𝜇), and 𝐹𝐴(𝑦, 𝜇) . Moreover 𝑇𝐴, 𝐼𝐴 and 𝐹𝐴 take the real standard or nonstandard subsets of ]0−, 1+[ 𝑇𝐴:𝑌→ ]0−, 1+[, 𝐼𝐴: 𝑌→]0−, 1+[, and 𝐹𝐴: 𝑌→]0−, 1+[. Without restriction, the sum of 𝑇𝐴, 𝐼𝐴, and 𝐹𝐴. So, 0−≤𝑠𝑢𝑝𝑇𝐴+ sup 𝐼𝐴+ sup 𝐹𝐴≤3+. To set ∈𝑌, {𝜇𝐴(𝑦), 𝑇𝐴(𝑦), 𝐼𝐴(𝑦), 𝐹𝐴(𝑦)}, i.e., in simple procedure, {𝜇𝐴, 𝑇𝐴, 𝐼𝐴, 𝐹𝐴} is called as neutrosophic fuzzy number (NFN).
Besides 𝑇𝐴, 𝐼𝐴 and 𝐹𝐴 defines true nonstandard and standard subsets of]0−, 1+[, it is hard to execute NFS in engineering and scientific utilizes. It offers the single valued NFS (SVNFS) as further discussion.
![Definition 3. Let use 𝑌 is object set of and 𝑆̂ = {(𝑦, 𝜇𝑆̂(𝑦)), 𝜇𝑆̂(𝑦) ∈[0,1], 𝑦∈𝑌} be a FS. Afterward, the SVNFS 𝑆 in 𝑌 is signified stated by 𝑆= {𝑦, 𝜇𝑆(𝑦) , 𝑇𝑆(𝑦, 𝜇), 𝐼𝑆(𝑦, 𝜇), 𝐹𝑆(𝑦, 𝜇)}, 𝑦∈𝑌, in which 𝑇𝑆(𝑦, 𝜇), 𝐼𝑆(𝑦, 𝜇) , 𝐹𝑆(𝑦, 𝜇) ∈[0,1] and 0 ≤𝑇𝑆(𝑦, 𝜇) + 𝐼𝑆(𝑦, 𝜇) + 𝐹𝑆(𝑦, 𝜇) ≤3.](https://americaspg.com/storage/fulltext/2880/3bc650b1be89dead/eq-15.png)
4. The Proposed Method
In this paper, we have developed a new AOA-EFNSC approach for accurate intrusion detection and classification. The purpose of the AOA-EFNSC method is to recognize the presence of intrusions effectually. Fig. 1 depicts the entire workflow of the AOA-EFNSC system.
A. Data preprocessing
In a machine learning study, conducting exploratory data analysis and observing the data are essential to ensure that the dataset is well-suited for classification. These steps also play a crucial role in reducing the complexity and error rate of the classification model. This paper utilizes the UNSW and AIMD datasets, which undergo three preprocessing steps. These steps comprise encoding and normalization, sampling using k-means, and class oversampling using SMOTE. The following sections describe each step-in detail.
i. Min-Max Normalization
At the primary level, the AOA-EFNSC model, min-max scalar is applied to standardize the input data. Min-Max Scaling, better known as Min-Max normalization, it is a data pre-processing algorithm most frequently used in ML and statistics algorithms [22]. It includes converting arithmetical data features to a certain range, usually ranges within [0,1]. The process can be obtained by dividing the range (the variance among the minimum and maximum values) and subtracting the least value from the data point. This normalization technique is useful for ensuring that each feature contributes equally to the analyses, which prevents the big impact of variables on a large scale. Minmax scaling is increasingly being used to standardize data, which makes it suitable for algorithms that are sensitive to the scale of input features, ultimately improving the performance and convergence of ML techniques over different datasets.
ii. Dataset sampling using k-means
Training Machine Learning Algorithms (MLA) on large network datasets can be impractical due to the time and computational resources required, especially when fine-tuning hyperparameters, which often involves training the MLA multiple times. To enhance training efficiency, sampling is commonly used to reduce the dataset size. This approach involves selecting a subset of the dataset to make training more manageable [39], [40]. In the proposed intrusion detection model, a cluster sampling method based on the k-means clustering procedure is used to obtain a good dataset subset. This method involves grouping the initial dataset instances into clusters and selecting a fraction of the dataset from each cluster to form the dataset subset [39]. Unlike random sampling, where instances are selected randomly with equal probability, clustering-based sampling can produce a better dataset subset by removing redundant instances.
Among clustering algorithms, k-means is widely used for dataset subset selection due to its simplicity, computational efficiency, and ability to produce meaningful clusters [40]. The k-means algorithm divides the data into clusters based on distance metrics such as Euclidean, Mahalanobis, or Manhattan distances [41], [42]. Since instances within the same cluster are similar, selecting instances from different clusters can significantly reduce the dataset size without losing important information. The primary objective of k-means is to minimize the sum of squared distances between dataset instances and their respective centroids, as shown in Eq. (10).
In the equation, (𝑦1, 𝑦2, . . . , 𝑦𝑚) represents the dataset instance matrix; 𝑐𝑗 is the center of cluster 𝑀𝑝; and 𝑚𝑝 is the number of instances in cluster 𝑀𝑝. The algorithm has a time complexity of 𝑂(𝑚𝑝𝑡), where 𝑚 is the total number of instances in the dataset, 𝑝 is the number of clusters, and t is the algorithm's stopping iteration [39]. After applying the k-means algorithm to divide the datasets into clusters, 10% of the instances in each cluster are selected using random sampling. The selected subsets from each cluster are then combined to form the final subset of the original dataset used in this study. The choice of 10% is based on resource constraints.
iii. Class imbalance handling
After normalizing and sampling the datasets, the study addresses class imbalances commonly found in network traffic flow datasets. These imbalances arise because genuine traffic flow instances significantly outnumber attack traffic flow instances in real-world scenarios. This imbalance can lead to biased models and poor detection rates [44]. Class imbalance challenges are typically mitigated using resampling strategies such as random sampling and Synthetic Minority Over-sampling Technique (SMOTE), which generate new instances to balance the dataset [44]-[45]. Unlike random sampling, which simply duplicates instances and can lead to overfitting, SMOTE [46] generates high-quality synthetic instances based on the k Nearest Neighbors (KNN) approach. Therefore, SMOTE is selected in this study to effectively address the class imbalance problem, resulting in high-quality minority class examples. Equation (11) is used to generate the new instances in the minority classes.
For instance, if 𝑋 is an instance in the smaller class and 𝑌 is an instance selected randomly from the neighbours of 𝑋, an artificial instance 𝑍 is generated using Eq. (11). The balanced datasets using SMOTE represents the final dataset used for feature selection and subsequently for building the proposed intrusion detection model.
B. Feature Selection
Feature selection plays a crucial role in developing network intrusion detection models by selecting important attributes and eliminating irrelevant and redundant ones. It helps reduce the complexity and difficulty of the model. In this study, we select features using the proposed Binary Arithmetic Optimization Algorithm (AOA) optimization algorithm as the search strategy and the EFNSC as the learning algorithm in the wrapper feature selection method, following the preprocessing procedure. The goal of our study is to decrease the number of features while ensuring the classification accuracy of the machine learning model. To guide the BAOA algorithm search, we use the fitness function shown in Eq. (12).
Whereas ErrorRate denotes the error rate of classifier utilizing the nominated feature. ErrorRate is intended as the ratio of improper categorized to the integer of classification prepared, stated as a value amongst 0 and 1. (ErrorRate is the complement of the classifier accuracy), #𝑆𝐹 is the number of nominated features and #𝐴𝑙𝑙_𝐹 designates the total amount of attributes in the original database. 𝛼 is employed to switch the significance of classification excellence and subset length. In our tests, 𝛼 is set to 0.9.
C. Intrusion Detection using FNSC
For intrusion detection, the AOA-EFNSC technique uses the FNSC technique for the recognition and identification of the intrusions. Fuzzy logic (FL) was developed by Prof. L.A. Zadeh [24]. However, by weak acceptance firstly, gradually it is presented as one of the significant soft calculating methods to perfect uncertainty. Real data is filled with gaps, inconsistent and uncertain information. The uncertainty can meet in diverse methods such as in the result of tossing a coin; whether it is a tail or head is an instance of standard bivalence whereas uncertainty fades on the conclusion of the result. The main work is devoted to delivering enlargement to the generally utilized fuzzy classifier in the method of the neutrosophic classifier and employs FL. Therefore, this part provides you with brief facts about a fuzzy classifier and FL in its common method. Prof. L. Zadeh developed the area of logic by presenting a new FL, where every element has a grade of membership in a fuzzy set.
Definition 1. Fuzzy set and membership function
Assume that 𝑍 is an assortment of objects that are signified by 𝑧, then a fuzzy set 𝐴 in 𝑍 is definite as a set of wellordered:
𝜇𝐴(𝑧) denotes the membership function (MF) of 𝑧. It maps every element of 𝑍 to a constant membership value among (0,1). Also, it has the condition of permitting linguistic variables whose truth value may differ amongst 0 and 1; in reverse to dual values of traditional logic.
Then the start of the fuzzy set model, the classifier area is a vital theoretic and real-world fuzzy application area. Crisp classes signify an impractical simplification of realism that the fuzzy technique seems to control very effortlessly. A fuzzy classifier uses 𝐶 a set of classes. Then, the issue is determined for each object 𝑧 below concern, 𝑧∈𝑍, the degree 𝜇𝐶(𝑧) to object 𝑧 that fits to class 𝑐∈𝐶.
A fuzzy classifier employs familiar information about the issue area for classification. It is handled by generating fuzzy-type ML that changes accurate computable parameters to group membership that are utilized for fuzzy classifier. MF denotes to corresponding intervals of feature value. In an 𝑛‐dimensional actual space 𝑅𝑛, assume that 𝑧 be a vector and 𝐶= {𝑐1, 𝑐2, … , 𝑐𝑐} is a set of class labels. Bezdek et al. have a definite fuzzy and crisp classifier. A crisp classifier is as follows:
A fuzzy classifier utilizes fuzzy sets either at the time of training or its process. It employs a fuzzy if‐then inference method that produces class labels for 𝑧.
So, rather than allocating a class label from 𝐶, 𝑂𝐹 gives 𝑧∈𝑅𝑛 to a soft class label with grades of membership in every class.

The next section explains you about neutrosophic logic (NL). Currently, NL is dependent upon the analysis of non‐standard. It has been presented to signify mathematical techniques of vagueness, uncertainty, imprecision, ambiguity, inconsistency, contradiction, redundancy, and incompleteness. NL is a logic where the plan is assessed to have the ratio of indeterminacy in a subset 𝐼, the ratio of truth in a subset 𝑇, and the ratio of falsity in a subset 𝐹, whereas 𝑇, 𝐼, 𝐹 denotes the non‐standard or standard real subsets of ]−0, 1+[:
with
The 𝑇, 𝐼, and 𝐹 are not certain intervals but might be real sub‐unitary subsets: separate or nonstop; single element, limited, or infinite; union or connection of many subsets; etc. We employ a subset of truth, indeterminacy, or falsity in its place of an integer only, because numerous cases are not capable of precisely defining the ratios but estimate them. Entire factors are specified by NL, which are extremely essential to human thought, as it is unusual that we are inclined to complete in certain surroundings, the roughness of human methods might be owing to the limitation of data that human obtains from the exterior world. Indeterminacy is the area of ignorance of a proposition’s value, among falsehood and truth, where certainly neutrosophic modules fit in the demonstrating of imitation of human brain cognitive.
Definition 2. Neutrosophic set: Assume that 𝑍 is a space of points by a generic element in 𝑍 represented by 𝑧.
A neutrosophic set 𝐴 in 𝑍 is categorized by MFs of truth 𝑇𝐴, an indeterminacy‐ 𝐼𝐴 and a falsity 𝐹𝐴. 𝑇𝐴(𝑧), 𝐼𝐴(𝑧) and 𝐹(𝑧) denotes the real non‐standard or standard subsets of ]−0, 1+[. That is
It has no constraint on the calculation of 𝑇𝐴(𝑧), 𝐼(𝑧) and 𝐹𝐴(𝑧) , so
This classifier is nothing but an algorithm that forecasts the class labels on the foundation of the object descriptor. The generally utilized classifier in the easy-calculating area is a fuzzy classifier. It employed fuzzy sets or logic during its training or process. This paper suggests fuzzy classifier because it is a neutrosophic classifier that will employ NL because it is a superset of fuzzy logic.
Definition 3. Neutrosophic classifier: It employs NL values and sets for the identification. It integrates an easy and neutrosophic rule-based technique such as IF X and Y THEN 𝑍, for resolving the issue rather than trying to perfect a method arithmetically parallel to the fuzzy classifier. Assume let 𝑧 be a vector in an 𝑛‐dimensional realspace 𝑅𝔫 and let 𝐶= {𝑐1, 𝑐2, … , 𝑐𝑐} is a class label. It is definite as:
The output of 𝑂𝑁 is signified as
where
![[ 𝑡𝑐1(𝑧) [ 𝑖𝑐1(𝑧) 𝑡𝑐2(𝑧) 𝑖𝑐2(𝑧) (27) [𝑇𝐶(𝑧)] = , [𝐼𝐶(𝑧)] = ∙ ∙ 𝑡𝑐𝐶(𝑧)] ∙ ∙ 𝑖𝑐𝒞(𝑧)]](https://americaspg.com/storage/fulltext/2880/3bc650b1be89dead/eq-36.png)
![[ 𝑓𝑐1(𝑧) 𝑓𝑐2(𝑧) (28) [𝐹𝐶(𝑧)] = ∙ ∙ 𝑓𝑐𝑐(𝑧)]](https://americaspg.com/storage/fulltext/2880/3bc650b1be89dead/eq-37.png)
𝑇, 𝐼, and 𝐹 are independent of each other and have no constraint on the amount of 𝑇𝐶(𝑧), 𝐼𝐶(𝑧) and 𝐹𝐶(𝑧) , so
The non‐standard unit range ]−0, 1+[ is just employed for logical uses, particularly when difference is needed among relative and absolute indeterminacy/falsehood/truth/. But for practical uses of NL and set, the area of description and range of 𝑇, 𝐼, and 𝐹 can be controlled to the usual standard unit range of [0 and1] that is very simple to utilize.
D. Evaluation metrics
In assessing the network intrusion detection model, we employed five evaluation metrics commonly used in evaluating similar research in intrusion detection systems, as seen in studies by [46]-[48].
- Accuracy: Is the ratio of the number of intrusions ( 𝑇Positive ) and normal activities ( 𝑇Negative ) that are identified effectively to the number of the instances in the dataset as depicted in Eq.(30)
𝑇Positive +𝑇Negative
- Recall: Is the proportion of the number of intrusions that are identified effectively (i. e. True positive ( 𝑇positive )) to the sum of the amount of intrusions that are recognized as intrusion ( 𝑇positive ) and the amount of normal activities that are recognized as normal (i.e. True negative ( 𝐹Negative ) as depicted in Eq.(31).
Recall =
𝑇positive
𝑇positive +𝐹Negative (31)
- Precision: Is the proportion of the number of intrusions ( 𝑇positive ) that are identified to the total amount of intrusion ( 𝑇positive ) and normal ( 𝐹positive ) activities identified that as depicted in Eq.(32).
𝑇positive
Precision =
- F-measure: Define as the harmonic mean of recall and precision metrics which is depicted in Eq.(33).
2∗ Preciion ∗ Recall
5. Experimental Validation
In this section, various tests and experiments were conducted to assess the effectiveness of the proposed network intrusion detection model. The hardware and software used are detailed below.
A. Experimental Setup
The experiments were conducted on a system with an Intel® Pentium® CPU 10750 @ 2.60, 16.00 GB of RAM, and a 64-bit Operating System. The tests were performed using the Python programming language in Jupyter Notebook.
B. Result discussion
The performance analysis of the AOA-EFNSC approach takes place using UNSW-NB15 and AWID datasets. Table 1 demonstrates the details of the UNSW_NB15 dataset, which contains 2000 samples under two classes.
Accuracy =
𝑇positive +𝐹positive (32)
Precision + Recall (33)
Fig. 3 establishes the classifier outcomes of the AOA-EFNSC model below the UNSW_NB15 dataset. Figs. 3a-3b portrays the confusion matrices presented by the AOA-EFNSC technique on 70:30 of TRAPH/TESPH. The figure indicated that the AOA-EFNSC method has familiar and classified all 2 class labels exactly. Similarly, Fig. 3c proves the PR analysis of the AOA-EFNSC technique. The figure specified that the AOA-EFNSC technique has attained maximum PR performance under all classes. Lastly, Fig. 3d exemplifies the ROC study of the AOAEFNSC approach. The figure represented that the AOA-EFNSC technique has resulted in proficient outcomes with the greatest ROC values below separate class labels.
Table 2 represents the detection results of the AOA-EFNSC technique on the UNSW_NB15 dataset. The results imply that the AOA-EFNSC technique reaches optimal normal and attack recognition. With 70%TRAPH, the AOA-EFNSC technique gains an average 𝑎𝑐𝑐𝑢𝑦 of 95.59%, 𝑝𝑟𝑒𝑐𝑛 of 95.79%, 𝑟𝑒𝑐𝑎𝑙 of 95.59%, 𝐹1𝑠𝑐𝑜𝑟𝑒 of 95.63%, and 𝑅𝑂𝐶𝑠𝑐𝑜𝑟𝑒 of 95.59%. Additionally, with 30%TESPH, the AOA-EFNSC method attains average 𝑎𝑐𝑐𝑢𝑦 of 95.81%, 𝑝𝑟𝑒𝑐𝑛 of 95.69%, 𝑟𝑒𝑐𝑎𝑙 of 95.81%, 𝐹1𝑠𝑐𝑜𝑟𝑒 of 95.66%, and 𝑅𝑂𝐶𝑠𝑐𝑜𝑟𝑒 of 95.81%.
Table 3 determines the details of AWID dataset, includes 2000 samples below two classes. Fig. 4 determines the classifier outcomes of the AOA-EFNSC approach below the AWID dataset. Figs. 4a-4b portrays the confusion matrices presented by the AOA-EFNSC technique on 70:30 of TRAPH/TESPH.
Figure 4 shows that the AOA-EFNSC system has well-known and classified all 2 class labels accurately. Similarly, Fig. 4c establishes the PR study of the AOA-EFNSC approach. The figure described that the AOA-EFNSC system has increased the greatest performance of PR under all classes. Lastly, Fig. 4d clarifies the ROC study of the AOAEFNSC method. The figure defined that the AOA-EFNSC methodology has resulted in capable outcomes with the maximum ROC values below separate class labels.
Table 4 signifies the recognition results of the AOA-EFNSC method on the AWID dataset. The outcomes indicate that the AOA-EFNSC system extents optimum normal and attack detection. With 70%TRAPH, the AOA-EFNSC method attains average 𝑎𝑐𝑐𝑢𝑦 of 95.20%, 𝑝𝑟𝑒𝑐𝑛 of 95.58%, 𝑟𝑒𝑐𝑎𝑙 of 95.20%, 𝐹1𝑠𝑐𝑜𝑟𝑒 of 95.20%, and 𝑅𝑂𝐶𝑠𝑐𝑜𝑟𝑒 of 95.20%. Moreover, with 30%TESPH, the AOA-EFNSC procedure attains average 𝑎𝑐𝑐𝑢𝑦 of 96.20%, 𝑝𝑟𝑒𝑐𝑛 of 96.36%, 𝑟𝑒𝑐𝑎𝑙 of 96.20%, 𝐹1𝑠𝑐𝑜𝑟𝑒 of 96.16%, and 𝑅𝑂𝐶𝑠𝑐𝑜𝑟𝑒 of 96.20%.
Table 5 and Fig. 5 illustrate the comparison results of the AOA-EFNSC technique [25]. The results indicate that the SVM, NB-Bagging, NB-Adaboost, GCNSE, and CNN-Adaboost techniques have shown worse performance. In the meantime, the BBAFS-DRL model has tried to exhibit reasonable performance. However, the AOA-EFNSC technique demonstrates superior performance with increased 𝑎𝑐𝑐𝑢𝑦 of 96.20%, 𝑝𝑟𝑒𝑐𝑛 of 96.36%, 𝑟𝑒𝑐𝑎𝑙 of 96.20%, and 𝐹1𝑠𝑐𝑜𝑟𝑒 of 96.16%. Thus, the AOA-EFNSC technique can be applied for an enhanced intrusion recognition process.
6. Conclusion
In this study, we have developed a novel AOA-EFNSC system for accurate intrusion detection and classification. The purpose of the AOA-EFNSC method is to recognize the presence of intrusions effectually. In the AOAEFNSC technique, a min-max scalar is applied to normalize the input data. Besides, the AOA-EFNSC technique employs AOA based FS technique to select a subset of feature. For intrusion detection, the AOA-EFNSC technique uses the FNSC technique for the recognition and classification of the intrusions. An experimentations were involved to validate the superior performance of AOA-EFNSC technique. The experimental values pointed out that the AOA-EFNSC model gains enhanced detection results over other models.
Funding: “This research received no external funding”
Conflicts of Interest: “The authors declare no conflict of interest.”