Adaptive data stream mining for wireless sensor networks