CFP last date
22 December 2025
Call for Paper
January Edition
IJCA solicits high quality original research papers for the upcoming January edition of the journal. The last date of research paper submission is 22 December 2025

Submit your paper
Know more
Random Articles
Reseach Article

Machine Learning Driven Anomaly Detection in Wireless Sensor Networks under Varying Traffic Patterns

by M. Karthik, M. Vijayakumar, P. Mohanraj, P. Thenmozhi
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
Volume 187 - Number 54
Year of Publication: 2025
Authors: M. Karthik, M. Vijayakumar, P. Mohanraj, P. Thenmozhi
10.5120/ijca2025925917

M. Karthik, M. Vijayakumar, P. Mohanraj, P. Thenmozhi . Machine Learning Driven Anomaly Detection in Wireless Sensor Networks under Varying Traffic Patterns. International Journal of Computer Applications. 187, 54 ( Nov 2025), 22-29. DOI=10.5120/ijca2025925917

@article{ 10.5120/ijca2025925917,
author = { M. Karthik, M. Vijayakumar, P. Mohanraj, P. Thenmozhi },
title = { Machine Learning Driven Anomaly Detection in Wireless Sensor Networks under Varying Traffic Patterns },
journal = { International Journal of Computer Applications },
issue_date = { Nov 2025 },
volume = { 187 },
number = { 54 },
month = { Nov },
year = { 2025 },
issn = { 0975-8887 },
pages = { 22-29 },
numpages = {9},
url = { https://ijcaonline.org/archives/volume187/number54/machine-learning-driven-anomaly-detection-in-wireless-sensor-networks-under-varying-traffic-patterns/ },
doi = { 10.5120/ijca2025925917 },
publisher = {Foundation of Computer Science (FCS), NY, USA},
address = {New York, USA}
}
%0 Journal Article
%1 2025-11-18T21:10:47.343182+05:30
%A M. Karthik
%A M. Vijayakumar
%A P. Mohanraj
%A P. Thenmozhi
%T Machine Learning Driven Anomaly Detection in Wireless Sensor Networks under Varying Traffic Patterns
%J International Journal of Computer Applications
%@ 0975-8887
%V 187
%N 54
%P 22-29
%D 2025
%I Foundation of Computer Science (FCS), NY, USA
Abstract

Wireless Sensor Networks (WSNs) are a critical technology for applications ranging from environmental monitoring to industrial automation and smart city infrastructure. However, the reliability of these systems is frequently compromised by anomalies, which can arise from hardware malfunctions, deliberate cyber-attacks, or sudden environmental shifts. These irregularities corrupt the collected data, leading to flawed analytics and unsound decision-making. To address this challenge, we propose a novel, hierarchical machine learning framework designed for robust and efficient anomaly detection that adapts to diverse network traffic conditions. Our hybrid architecture operates across three distinct tiers to balance detection performance with resource constraints. At the sensor node level, we employ lightweight algorithms for initial feature extraction. This minimizes the computational and energy burden on individual, resource-limited nodes. The extracted features are then sent to the network edge, where a more powerful Long Short-Term Memory (LSTM) model is deployed. This model is trained to identify complex temporal patterns indicative of faults or attacks. To enhance data privacy and reduce communication overhead, the LSTM is trained using a federated learning approach; instead of raw data, only model updates are periodically aggregated from multiple edge devices. Finally, at the cloud tier, an ensemble classifier integrates outputs from various edge-level LSTM models. This global perspective enables the system to perform a comprehensive analysis and make a final anomaly classification, improving overall accuracy and resilience against localized disruptions. In this research evaluated our framework using a mixed dataset combining real-world WSN traces with synthetically generated workload variations. The results demonstrate the system's effectiveness, achieving a high detection accuracy exceeding 94% across different traffic regimes while maintaining a low false positive rate. The analysis also confirms moderate energy consumption and acceptable latency, making it suitable for practical, long-term deployments. The federated learning component further provides a significant privacy benefit by keeping raw sensor data localized.

References
  1. A. K. Tripathi, A. K. Sharma, and M. Mittal, "A Systematic Review of Machine Learning Techniques for Anomaly Detection in Wireless Sensor Networks," Journal of Network and Computer Systems, vol. 215, 2023.
  2. S. Li et al., "Lightweight Autoencoder for Anomaly Detection in Resource-Constrained IoT Devices," IEEE Internet of Things Journal, vol. 9, no. 15, pp. 13405-13418, 2022.
  3. Y. Liu et al., "Spatio-Temporal Anomaly Detection in Wireless Sensor Networks Using Deep Echo State Networks," IEEE Transactions on Industrial Informatics, vol. 18, no. 9, pp. 6324-6333, 2022.
  4. R. Zhao et al., "Federated Learning with Adaptive Privacy for Resource-Constrained IoT Devices," in Proc. ACM SenSys, 2021.
  5. R. Alghamdi and A. Alshamrani, "Machine Learning for Anomaly Detection in Wireless Sensor Networks: A Survey," ACM Computing Surveys, 2023.
  6. M. Al-azzawi et al., "A FedLSTM Approach for Fault Diagnosis in Industrial IoT," IEEE Transactions on Industrial Informatics, vol. 19, no. 1, 2023.
  7. X. Wang and H. Wang, "A Hybrid Deep Metric Learning Model for Few-Shot Anomaly Detection in Sensor Networks," Engineering Applications of Artificial Intelligence, vol. 124, 2023.
  8. Haque A., Chowdhury M.N.-U.-R., Soliman H., Hossen M.S., Fatima T., Ahmed I., "Wireless Sensor Networks anomaly detection using Machine Learning: A Survey", arXiv:2303.08823, 2023.
  9. Khan R., et al., "FedLSTM: A Federated Learning Framework for Sensor Fault Detection in WSNs", Electronics, 2024.
  10. Gayathri S., et al., "Unified ensemble federated learning with cloud computing for anomaly detection", Journal of Cloud Computing, 2024.
  11. Wang Z., et al., "An Anomaly Node Detection Method for Wireless Sensor Networks", Sensors (MDPI), 2025.
  12. Chinnasamy R., et al., "Deep learning-driven methods for network-based intrusion detection", 2025.
Index Terms

Computer Science
Information Sciences

Keywords

Wireless Sensor Networks (WSNs) Anomaly Detection Machine Learning Federated Learning LSTM (Long Short-Term Memory) Ensemble Classifier