Event-driven wireless sensor networks (EWSNs) often operate in harsh environments and are susceptible to selective forwarding attacks, where malicious nodes selectively drop packets. These attacks are difficult to detect due to similarities with normal node behavior under adverse conditions. To address this, we propose a detection scheme combining Variable Autoencoder (VAE) and Gaussian Mixture Model (GMM) with an Autoencoder (AE). The scheme extracts features from the node's single round forwarding rate (SFR), with VAE generating latent variables and GMM clustering them to differentiate behaviors. The AE model, trained on data representing normal behavior, uses reconstruction error to identify malicious nodes. Simulation results show that our scheme improves network throughput and achieves low False Detection Rate (FDR) and Missed Detection Rate (MDR), with both rates as low as 0.5% in normal conditions and below 2% in mobile harsh environments. With a computational complexity of O(n), this method is suitable for resource-constrained environments, demonstrating superior robustness compared to existing approaches.