one way to predict earthquakes is by looking at a seismic gap which is an active fault that produces significant earthquakes that hasnt slipped in a long time.
another way to predict them is by using a satellite. satellites can pick up small ground movements or changes in ground electricity or heat
the best way to predict earthquakes is by detecting P waves but this gives less than a minutes warning.