In the realm of wireless sensor networks (WSNs), precise localization of sensor nodes and attack detection has emerged as a significant challenge. Accurate localization of sensor nodes and detection of attacks is crucial for enhancing the network lifetime and preventing the data from unauthorized access. However, prior research has encountered various obstacles, such as high localization error, more time consumption, and poor detection performance. To overcome these difficulties, this research proposes a novel Recurrent Crossover-based Dynamic Differential (RC-DD) algorithm for effective localization and attack detection in WSN. The proposed model utilizes a weighted K-Nearest Neighbor (KNN) with Mahalanobis distance for accurately localizing the position of the sensor nodes within the network. Moreover, the Recurrent Neural Network (RNN) is employed for effectively detect multiple attacks, and Dynamic Differential Annealed Optimization (DDAO) with crossover strategy is implemented for fine-tuning the RNN’s hyperparameter, thereby enhancing the attack detection accuracy. The experimental outcome shows that the proposed RC-DD framework effectively localizes the sensor nodes and detects the attacks with a higher accuracy of 98.9% compared to existing methodologies. Additionally, the proposed framework minimizes localization error and energy consumption, underscoring its potential to enhance the security and lifetime of the network.
Read full abstract