Discovery of patterns preceding earthquakes in Chilean time series