Adaptive Filtering for Event Recognition from Noisy Signal: an Application to Earthquake Detection