I. Introduction
The continuous advancement of WSNs and their associated technologies has led to their widespread application in various industrial sectors. However, WSNs face challenges in countering network attacks due to their inherent limitations. Researchers have proposed various IDSs focusing on identifying suspicious activities through strategies such as anomaly detection and misuse detection [1]. The emergence of ML has offered more possibilities for IDS in WSNs. Leveraging the inherent strengths of ML, these approaches have demonstrated enhanced performance in detecting network attacks, thus becoming a prominent focus in network security research. Through its capacity to train models with extensive relevant data, ML facilitates efficient, highly accurate, and automated risk assessment and intrusion detection [2].