Skip to main content
Log in

Handling dynamic network behavior and unbalanced datasets for WSN anomaly detection

  • Original Research
  • Published:
Journal of Ambient Intelligence and Humanized Computing Aims and scope Submit manuscript

Abstract

In this paper an extreme learning machine (ELM) based approach is presented for the anomaly detection in dynamic wireless sensor network (WSN) under extremely imbalanced class distribution conditions. The imbalanced class distribution and dynamic nature of the network result in the classifier's inferior performance. The proposed approach tackles the imbalanced classification of datasets by dividing the class with the majority of samples into multiple sub-classes. This is achieved by splitting the majority-class samples evenly into multiple segments using Affinity Propagation (AP). The initial preferences for AP are set to influence the total number of segments such that the number of samples in any segment closely matches with the numbers of minority-class samples. Such sections of the dataset together with the minor class are then viewed as different classes and used to train the ELM. The synthetic datasets required to evaluate the performance of the proposed technique are generated using network simulator version 2 (NS2). The dynamic WSN is simulated for different attacks (considering only one attack at a time) using network simulator version 2 (NS2). During the simulation, all required network data is dumped into trace files. These dumped trace files are later processed through MATLAB to extract the required features in a usable format to generate a proper dataset. This process is repeated for two different WSN configurations, one with lower node density, and the other with higher node density, and the generated datasets for these two WSN configurations are denoted as Dataset-1, and Dataset-2 respectively. The experimental findings support the substantial improvement in performance from previous approaches by the new technique.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13

Similar content being viewed by others

References

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ranjit Kumar.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Kumar, R., Tripathi, S. & Agrawal, R. Handling dynamic network behavior and unbalanced datasets for WSN anomaly detection. J Ambient Intell Human Comput 14, 10039–10052 (2023). https://doi.org/10.1007/s12652-021-03669-w

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s12652-021-03669-w

Keywords

Navigation