1. Introduction
Wireless sensor network (WSN) is guaranteed effective working with ongoing information handling in complex conditions. WSN is comprised of the nodes where nodes are associated with at least one a few sensor nodes. These nodes are utilized in numerous applications like observing climate conditions, production line execution, and persistent correspondence for military [1]. All these applications require node is more solid and steady. The life of the node has relied upon the battery force of node. In the event that the node consumes more battery power, the presentation of the organization is debasing. Sensor networks utilizing circulated remote innovation are used in numerous applications, for example, wellbeing observing framework, building or foundation access frameworks, debacle help, and wave cautioning frameworks [2]. A portion of these applications needs security because of asset requirements, in this manner, bringing about diminished Quality of Service (QoS). In asset obliged organizations, for example, WSN, conventional security plans can't be applied. Henceforth, need for new security measures to keep up with network usefulness without forfeiting execution turns into a need [3]. Figure 1 showcases the structure of WSN.
Energy utilization is a major question as the sensors are ordinarily minuscule and remote with restricted memory and usefulness giving way that the batteries(y) have a restricted power supply. Subsequently, challenges emerge during computation [4]. An organization or node can be impacted by numerous sorts of DoS attacks including those, constraining nodes to be out of gear or reserve mode. This influences the presentation of the node and the organization. In most pessimistic scenarios, the attacked node keeps on conveying to its neighbors lastly exhausts generally its power and pronounces itself dead, which decreases the organization's inclusion region [5]. Thus, WSN should be versatile with insignificant stand by periods (network set up should be altered). The correspondence joins in such an eccentric climate (node disappointments) are kept utilitarian by applying a powerful steering calculation. In this paper, a clever methodology is proposed. The specialists utilize the sensor node's data to foresee or expect to stick attacks by utilizing key execution boundaries [6].
Denial of service (DoS) attack alludes to the utilization of client/server innovation to consolidate numerous PCs as an attack stage to send off attacks on at least one focus to expand the force of the attack [7]. Appropriated disavowal of-administration attack has changed the conventional shared attack mode, so there is no measurable rule for attack conduct, also, normal conventions and administrations are utilized in the attack. It is challenging to recognize attack or ordinary conduct just through the sorts of conventions and administrations. The conveyed refusal of administration attack isn't difficult to detect [8]. As of now, the examination on guard innovation against DDoS attacks at home and abroad is for the most part founded on the strategy for network interruption discovery. As indicated by the qualities of many-to-one attacks during the time spent DDoS attack, three characteristics [9] including the quantity of source IP addresses, the quantity of objective ports, and the stream thickness were utilized to depict the attributes of attack. These strategies can separate whether the greater part of the attack streams is objective, yet just utilize less message data, the majority of which just utilize the source IP address and objective port data, and cannot decide the particular attack type, so the identification rate isn't high. AI assumes a significant part in expectation. DDoS attack location in view of AI additionally has gained some headway. The AI calculations utilized for DDoS attack discovery primarily incorporate credulous Bayesian calculation stowed away Markov model and backing vector machine [10].
Security is a fundamental problem in wireless sensor networks of real time applications. The researchers in [11] aim are to introduce denial of service attack and responds to wireless sensor network for enhancing privacy by detection of the enemy. Distinct types of layer in the existence of WSN. These two kinds of ML techniques, NN, identify an SVM, a MAC layer attack. The researchers compared both technologies. The distributed attack is determined by the system that is attacked by attacker. This kind of attack causes additional problems in network function when compared to attacks included in a single node. Redemption of the system from the threat of DoS attack, an optimized ML approach should be developed in [12]. To identify DoS in WMSN an improved DNN approach has been introduced. The parameter needed is elected from adoptive PSO approach. The researches in [13] contain personalized data for intelligent underwater network.
This study introduces an artificial flora optimization algorithm with functional link neural network (AFOA-FLNN) model for DoS attack classification in WSN. The presented AFOA-FLNN model initially undergoes data pre-processing to transform the data into meaningful way. Secondly, the FLNN model is utilized for the effective recognition and classification of intrusions in WSN. Finally, the AFOA is exploited for optimally tuning the parameters involved in the FLNN model and results in enhanced performance. In order to demonstrate the better outcomes of the AFOA-FLNN model, a wide-ranging experimental analysis is carried out on benchmark dataset.
2. The Proposed Model
In this study, a novel AFOA-FLNN model has been developed for DoS attack classification in WSN. The presented AFOA-FLNN model originally experiences data pre-processing to convert the data into meaningful way. Then, the FLNN model is utilized for the effective recognition and classification of intrusions in WSN. Lastly, the AFOA is exploited for optimally tuning the parameters involved in the FLNN model and results in enhanced performance.
2.1 FLNN based Classification
For DoS attack recognition and classification, the FLNN model is exploited. At addressing the problems compared with typical NN, the single layer NN (SLNN) was considered as alternative method [14]. But, the SLNN being linear by its nature one of the repeated fails to map the complex nonlinear problem. Thus, resolving challenges from single layer feed forward ANN is closely a complex task. In order to bridge the gap amongst the linearity in SLNN and very complex and estimation intensive MLNN, the FLNN infrastructure was projected [15]. The FLNN infrastructure employs an SLFF-NN to address the linear mapping. Consider that every element of input proposal beforehand expansion be signified as z(i),1 < i < d whereas every element z(i) was functionally extended as zn (i),1 < n < N , Assume 𝑁 = count of extended values for every input elements. An improvement of every input design was completed as:
Consider z(i),1 < i < d, d refers the set of features. This extended input design was later provided to SLNN and the network is trained to attain the selected output [16]. Figure 2 illustrates the structure of FLNN.
2.2 AFOA based Parameter Optimization
At the final stage, the AFOA is exploited for optimally tuning the parameters involved in the FLNN model and results in enhanced performance. The process of detection of an optimum survival position is employed in this method for discovery of an optimal solution subset of difficulties. The original plant, Offspring plant, plant place, and propagation distance are the 4 important components in AFOA approach. Evolution, selection, and Spreading behaviors are 3 most important behavioural patterns. Each plant location represents to solution, and fitness of the position is exploited for representing the solution quality. At first, this technique generates the original plant at random. Finally, roulette is employed to decide survival seed. Survival seed becomes an original plant. Frequently iterated until the termination condition is met. This technique comprises exterior documents for saving the finest solution [17].
Initialization
All the decision parameters of testing function functioned in our work comprise lower limit 𝑋⃗$%& = [𝑋 ()* , 𝑋 ()* , … , 𝑋+
(/0 ],. Firstly, this technique produces 𝑁 original plants according to lower and upper limits of the decision parameters. This technique exploits 𝑖 rows and 𝑗 columns matrix 𝑃%1 for denoting the position of original plant, in which 𝑖= 1,2, … , 𝐷 represents the dimension, 𝑗= 1,2, … , 𝑁 denotes the amount of original plant:
Now, 𝑟𝑎𝑛𝑑(0, 1) represents the arbitrary number within [0,1].
Evolution Behavior
The original plant spread offspring to a particular range with radius viz. grandparent plant, propagation distance, and novel propagation distance imitates the propagation distance of parent [18]:
Here 𝑐! & 𝑐" indicates learning coefficient, 𝑑21 and 𝑑"1 signifies propagation distance of grandparent and parent plants, rand (𝑂, 1) shows arbitrary distribution number within [0,1]. The parent propagation distance becomes a novel grandparent propagation distance:
The standard AF optimization technique employs SD amongst the location of the original plant and offspring plant as novel parent propagation distance:

To remember the data of an ideal solution, AFO optimization method employs plants from the exterior document. The novel parent propagation distance is the variation amongst the location of plant in exterior documents 𝑃%!
∗ and offspring plant 𝑃%!
Spreading Behavior
This method generates offspring plant according to the novel propagation distance and original plant location:
Now 𝑏= 1,2, … , 𝐵, 𝐵 characterizes quantity of offspring plant that one original plant might propagate, 𝑃%,1⋅8
3 characterizes place of offspring plant, 𝑃),9 shows place of original plant, 𝐺%,1⋅8 characterizes arbitrary value with Gaussian distribution using mean 0 & variance 𝑗. Produce novel original plant that there are no offspring plant lives.
Select Behavior
In typical AF system, the survival possibility describes the offspring plant endured. It can be shown in the following:
Now 𝑄> is electing possibility range within [0,1]. 𝐹 (/0 represents fitness of offspring plant with maximal fitness. 𝐹(𝑃%,1⋅8
3 ) represents fitness of (𝑗⋅𝑏)𝑡ℎ solution. The assessment equation of fitness is the process of objective problem. In AFO technique, the Pareto dominance relation has been employed. It can be shown in the following:
In which domi (𝑗⋅𝑏) represents amount of the solution that subjects with solution (𝑗⋅𝑏). 𝐵 symbolizes the amount of offspring plant that one original plant might propagate.
3. Results and Discussion
In this section, a brief experimental validation process is carried out using three benchmark datasets. The dataset details are given in Table 1.
Figure 3 shows the confusion matrices produced by the AFOA-FLNN model. With 70% of training set on dataset-1, the AFOA-FLNN model has identified 127594 samples into normal and 13168 samples into attacked. Also, with 70% of training set on dataset-2, the AFOA-FLNN approach has identified 83438 samples into normal and 8844 samples into attacked. In line with, with 70% of training set on dataset-3, the AFOA-FLNN system has identified 16736 samples into normal and 2473 samples into attacked. At the same time, with 30% of testing set on dataset-1, the AFOA-FLNN algorithm has identified 54494 samples into normal and 5794 samples into attack. Moreover, with 30% of testing set on dataset-2, the AFOA-FLNN technique has identified 35803 samples into normal and 3780 samples into attacked. Furthermore, with 30% of testing set on dataset-3, the AFOA-FLNN methodology has identified 7171 samples into normal and 1071 samples into attacked.
Table 2 and Figure 4. provide a detailed result analysis of the AFOA-FLNN model on 70% of training dataset. The experimental values indicated that the AFOA-FLNN model has reached effectual DoS attack classification performance. On applied dataset-1, the AFOA-FLNN model has resulted in average 𝑎𝑐𝑐𝑢?, 𝑝𝑟𝑒𝑐&, 𝑟𝑒𝑐𝑎2, and 𝐹@ABCD of 97.71%, 94.08%, 93.51%, and 93.79% respectively. Along with that, on applied dataset-2, the AFOA-FLNN approach has resulted in average 𝑎𝑐𝑐𝑢?, 𝑝𝑟𝑒𝑐&, 𝑟𝑒𝑐𝑎2, and 𝐹@ABCD of 98.84%, 96.07%, 97.53%, and 96.78% correspondingly. In line with, on applied dataset-3, the AFOAFLNN technique has resulted in average 𝑎𝑐𝑐𝑢?, 𝑝𝑟𝑒𝑐&, 𝑟𝑒𝑐𝑎2, and 𝐹@ABCD of 99.45%, 98.23%, 99.38%, and 98.79% correspondingly.
Table 3 and Figure 5 offer a detailed result analysis of the AFOA-FLNN system on 30% of testing dataset. The experimental values exposed that the AFOA-FLNN method has reached effectual DoS attack classification performance. On applied dataset-1, the AFOA-FLNN model has resulted in average 𝑎𝑐𝑐𝑢?, 𝑝𝑟𝑒𝑐&, 𝑟𝑒𝑐𝑎2, and 𝐹@ABCD of 97.65%, 92.85%, 93.68%, and 93.77% correspondingly. Likewise, on applied dataset-2, the AFOA-FLNN model has resulted in average 𝑎𝑐𝑐𝑢?, 𝑝𝑟𝑒𝑐&, 𝑟𝑒𝑐𝑎2, and 𝐹@ABCD of 98.92%, 96.40%, 97.61%, and 97% correspondingly. Eventually, on applied dataset-3, the AFOA-FLNN model has resulted in average 𝑎𝑐𝑐𝑢?, 𝑝𝑟𝑒𝑐&, 𝑟𝑒𝑐𝑎2, and 𝐹@ABCD of 99.57%, 98.60%, 99.51%, and 99.05% correspondingly.
Table 4 and Figure 6 highlight the comparative accuracy examination of the AFOA-FLNN model on three datasets [19]. The results implied that the AFOA-FLNN model has gained effective performance with maximum accuracy values on each dataset. For instance, with dataset-1, the AFOA-FLNN model has offered higher accuracy of 97.65% whereas the KNN, LOR, SVM, Gboost, DT, NB, LSTM, and MLP models have obtained 96.53%, 94.42%, 92.31%, 95.58%, 96.63%, 81.78%, 95.12%, and 96.88%. Moreover, with dataset-2, the AFOA-FLNN model has offered higher accuracy of 98.92% whereas the KNN, LOR, SVM, Gboost, DT, NB, LSTM, and MLP algorithms have obtained 96.53%, 98.33%, 85.29%, 97.58%, 97.23%, 97.23%, 97.93%, and 98.28%. In line with, with dataset-3, the AFOA-FLNN system has offered higher accuracy of 99.57% whereas the KNN, LOR, SVM, Gboost, DT, NB, LSTM, and MLP techniques have reached 97.93%, 96.53%, 83.89%, 97.93%, 94.07%, 94.07%, 96.88%, and 96.88%.
Table 5 and Figure 7 examine the comparative F-score analysis of the AFOA-FLNN model on three datasets. The outcomes revealed that the AFOA-FLNN model has gained effective performance with maximal F-score values on each dataset. For instance, with dataset-1, the AFOA-FLNN model has offered higher F-score of 93.77% whereas the KNN, LOR, SVM, Gboost, DT, NB, LSTM, and MLP models have obtained 90.14%, 82.82%, 61.56%, 92.91%, 91.28%, 57.52%, 80.98%, and 78.88%. Furthermore, with dataset-2, the AFOA-FLNN model has accessible maximum F-score of 97% whereas the KNN, LOR, SVM, Gboost, DT, NB, LSTM, and MLP techniuqes have obtained 92.71%, 91.61%, 79.88%, 96.38%, 96.11%, 87.95%, 91.98%, and 92.35%. Also, with dataset-3, the AFOA-FLNN approach has obtainable supeiror F-score of 99.05% whereas the KNN, LOR, SVM, Gboost, DT, NB, LSTM, and MLP approaches have reached 95.28%, 89.05%, 92.71%, 96.38%, 97.11%, 83.55%, 87.58%, and 89.05%.
4. Conclusion
In this study, a novel AFOA-FLNN model has been developed for DoS attack classification in WSN. The presented AFOA-FLNN model originally experiences data pre-processing to convert the data into meaningful way. Then, the FLNN model is utilized for the effective recognition and classification of intrusions in WSN. Lastly, the AFOA is exploited for optimally tuning the parameters involved in the FLNN model and results in enhanced performance. In order to demonstrate the better outcomes of the AFOA-FLNN model, a wide-ranging experimental analysis is carried out on benchmark dataset and the results pointed out the improved outcomes of the AFOA-FLNN model. Thus, the AFOA-FLNN model has been utilized for the recognition and classification of DoS attacks in WSN. In future, the detection rate of the AFOA-FLNN model can be enhanced by feature selection models.