An anomaly detector based on Wavelet Packet Transform