I. Introduction
Wireless sensor networks (WSNs), comprising a group of spatially dispersed sensor nodes, are crucial in a variety of industries considering that they provide cost-effective, scalable, and adaptable solutions [1], [2], [3]. However, the distinct characteristics of WSNs, such as limited computing power, bandwidth, and vulnerability in hostile environments, make robust security measures essential to ensure their successful operation [4], [5]. Especially, denial-of-service (DoS) attacks are a persistent threat that demands effective approaches for detection and mitigation [6], [7]. While traditional network security has been considerably investigated, WSNs demand specialized and adaptive solutions, specifically due to the increasing data volume and relevance [8]. However, implementing an intrusion detection system (IDS) in WSNs raises further challenges compared to other systems due to their resource constraints [11]. Considering these challenges, gaining high detection accuracy while minimizing computational overhead is a high priority for WSN security [13].