Development of an algorithm for the detection of seismic events based on GPS records