How AI Detects Earthquakes and Powers Early Warnings
How AI detects earthquakes and powers early warning systems is a story about seconds. When an earthquake starts, it sends out fast, weak P-waves before the slower, stronger S-waves that cause the shaking. If a system can spot the P-waves quickly, it can warn people before the shaking arrives.
That warning is usually measured in seconds, not minutes, but seconds matter. They are enough to drop, cover and hold on, to stop a train, to shut off gas, or to step away from a window. AI makes the warning faster and more accurate than older methods could.
This guide explains how earthquake detection works, how ShakeAlert, MyShake and Google’s system use AI, and what the limits are. It also clears up a common confusion: detection is not prediction, and no system can predict an earthquake before it starts.
The Short Answer
AI detects earthquakes by analysing seismic sensor data in real time, spotting the fast P-waves that arrive before the damaging S-waves, and estimating the earthquake’s location and magnitude within seconds. That estimate triggers an alert to phones and systems in the shaking zone.
The US ShakeAlert system, the MyShake app and Google’s Android Earthquake Alerts all use this approach. Warning times range from a few seconds to nearly a minute, depending on distance from the epicentre, and the systems are improving as AI models get better at picking out real earthquakes from noise.
Key Takeaways
P-waves travel at about 6 kilometres per second, while damaging S-waves travel at about 4.
ShakeAlert v3 went live in March 2024, using three algorithms together for the first time.
The December 2024 Cape Mendocino earthquake triggered about 5 million alerts.
MyShake turns ordinary phones into seismic sensors, using their accelerometers and AI.
AI detects earthquakes; it does not predict them before they start.
How Earthquake Detection Works
P-Waves, S-Waves and Seconds
An earthquake releases energy in waves. The first to arrive are P-waves, or primary waves, which travel at about 6 kilometres per second and cause a small, fast jolt. The damaging waves are S-waves, or secondary waves, which travel at about 4 kilometres per second and cause the strong shaking.
The gap between them is the warning window. If you are 100 kilometres from the epicentre, the P-wave arrives in about 17 seconds and the S-wave in about 25 seconds, giving you roughly eight seconds of warning. If you are closer, the warning is shorter; if you are further away, it is longer.
Traditional systems detected earthquakes by looking for a sudden increase in shaking, which is slow and can miss small events. AI systems learn the shape of a real earthquake from thousands of examples, so they can spot the P-wave faster and with fewer false alarms.
ShakeAlert, MyShake and Google Alerts
Three Systems, One Idea
ShakeAlert is the US Geological Survey’s early warning system for the West Coast. Version 3 went live on 18 March 2024, combining three algorithms, EPIC, FinDer and GFAST, to locate earthquakes faster and more accurately. It sends alerts through phones, apps and public systems.
The system proved itself on 5 December 2024, when a magnitude 7.0 earthquake struck off Cape Mendocino. The first EPIC solution came 15 seconds after the origin, and about 5 million alerts went out, giving people from 5 to 55 seconds of warning depending on their distance.
MyShake takes a different approach: it turns ordinary phones into seismic sensors. The app uses the phone’s accelerometer to detect shaking, and machine learning filters out everyday movement, such as a phone in a pocket on a bus. Google’s Android Earthquake Alerts does something similar, using millions of Android phones as a distributed sensor network.
The core AI task is phase picking: spotting the exact moment a P-wave arrives in a noisy seismic record. Deep learning models trained on thousands of earthquakes can pick phases faster and more accurately than older threshold methods, especially for small or overlapping events.
AI also helps with location and magnitude. By combining data from many sensors, a model can estimate where an earthquake started and how big it is within seconds, which is what the warning system needs to decide who should be alerted and how strong the shaking will be.
A newer technique uses fibre-optic cables as sensors. Distributed acoustic sensing, or DAS, turns an existing fibre cable into thousands of seismic sensors along its length. In Monterey Bay, DAS added up to six seconds of extra warning, because the cable detected the earthquake sooner than the nearest land sensor.
Detection Is Not Prediction
The Limits and the Gaps
The most important limit is that AI detects earthquakes, it does not predict them. No system can say when or where an earthquake will happen before it starts. Claims of prediction are usually about detecting foreshocks or patterns, and they have not proved reliable.
False alarms are another limit. A system that warns too often will be ignored, while one that warns too rarely will miss real events. The balance is delicate, and the systems are tuned conservatively, which means some small earthquakes do not trigger an alert at all.
Coverage is the third gap. Early warning systems need dense sensor networks, and many earthquake-prone countries have few sensors. Phone-based systems help, because phones are everywhere, but they are no substitute for a proper seismic network. Expanding coverage to developing countries is the biggest remaining challenge.
Earthquake Early Warning Systems Compared
This table compares the main earthquake early warning systems on coverage, warning time and how they work.
System
Coverage
How it works
Warning time
ShakeAlert
US West Coast
Seismic sensors plus AI
Seconds to a minute
MyShake
Global, via app
Phone accelerometers plus AI
Seconds
Google Android Alerts
Many countries
Phone sensors as network
Seconds
Japan J-Alert
Japan
Seismic sensors
Seconds to a minute
Mexico SASMEX
Mexico
Coastal sensors
Up to a minute
Checklist: Are You Covered by Earthquake Alerts?
Use this checklist to make sure you will get an earthquake warning if one is available where you live.
Check whether your region has an early warning system.
Enable earthquake alerts in your phone settings.
Install the MyShake app if you live in a quake-prone area.
Know what to do when an alert sounds: drop, cover, hold on.
Practise the response with your family, so it is automatic.
Do not expect a warning for every earthquake: small ones may not trigger one.
Frequently Asked Questions
How does AI detect earthquakes?
AI detects earthquakes by analysing seismic sensor data in real time, spotting the fast P-waves that arrive before the damaging S-waves, and estimating the location and magnitude within seconds.
Deep learning models trained on thousands of earthquakes can pick out the P-wave faster and with fewer false alarms than older methods.
Can AI predict earthquakes?
No. AI can detect an earthquake seconds after it starts and warn people before the shaking arrives, but it cannot predict when or where an earthquake will happen before it starts.
Claims of prediction usually involve detecting foreshocks or patterns, and they have not proved reliable.
What is ShakeAlert?
ShakeAlert is the US Geological Survey’s earthquake early warning system for the West Coast. Version 3 went live in March 2024, combining three algorithms to locate earthquakes faster.
It sends alerts through phones, apps and public systems, giving people seconds to a minute of warning depending on distance.
How does the MyShake app work?
MyShake turns your phone into a seismic sensor. It uses the phone’s accelerometer to detect shaking, and machine learning filters out everyday movement such as walking or riding a bus.
When many phones in an area detect shaking at once, the system can confirm an earthquake and warn others nearby.
How much warning do earthquake alerts give?
It depends on distance. If you are close to the epicentre, you may get only a few seconds; if you are further away, you may get up to a minute.
In the December 2024 Cape Mendocino earthquake, people received between 5 and 55 seconds of warning.
Do earthquake alerts work everywhere?
No. Early warning systems need dense sensor networks, and many earthquake-prone countries have few sensors. Phone-based systems help, but they are no substitute for a proper network.
Check whether your region has a system, and enable alerts in your phone settings if one is available.
One detail worth knowing is that the warning time depends on distance, not on the earthquake’s size. A large earthquake far away gives more warning than a small one nearby, because the waves have further to travel.
Fibre-optic sensing is a promising new direction. Existing telecom cables can be turned into seismic sensors, which could bring early warning to places that cannot afford a dedicated sensor network.
If you live in a quake-prone area, the most useful thing you can do is not just enable alerts but practise the response. Drop, cover and hold on should be automatic, not something you have to think about when the alert sounds.
For schools and hospitals, early warning systems can trigger automatic actions: stopping lifts, shutting off gas, or opening fire station doors. Those automated responses are where seconds matter most.
One detail worth knowing is that ShakeAlert’s three algorithms, EPIC, FinDer and GFAST, work together: one locates the quake fast, another estimates the shaking, and the third refines the magnitude. That is why version 3 is more accurate than earlier versions.
Another development is the use of AI to detect earthquakes in ocean data, where sensors are sparse. Models trained on land data are being adapted for offshore events, which matter for tsunami warnings.
For travellers, it is worth enabling earthquake alerts before you visit a quake-prone country. The settings are in your phone, and the alert may be the only warning you get in an unfamiliar place.
False alarms are rare but real, and they usually come from small events that the system overestimates. The systems are tuned conservatively, which is why some small earthquakes do not trigger an alert at all.
Researchers are now using AI to analyse aftershock patterns, which helps emergency services decide where to send help first. That is a different use from early warning, but it saves lives in the hours after a quake.
One detail worth knowing is that the warning time also depends on the earthquake’s depth. A deep earthquake gives less warning than a shallow one at the same distance, because the waves travel differently through the earth.
Another development is the use of AI to improve building codes, by modelling how different structures respond to shaking. That helps engineers design safer buildings, which matters more than any warning system.
For emergency services, the first minutes after an earthquake are critical, and AI helps by mapping the shaking intensity across a city in real time, so responders know where the damage is worst.
Conclusion
AI detects earthquakes by spotting P-waves seconds before the shaking arrives, and that small window saves lives. ShakeAlert, MyShake and Google’s system all use the same idea, and they are getting faster and more accurate as the AI improves.
The honest picture is that detection is not prediction, warning times are measured in seconds, and coverage is uneven. But for people in a quake-prone area, those seconds are worth having, and the systems are only getting better.
Ayesha is the co-founder of occcy and the editor behind its entertainment and lifestyle coverage. She believes good writing should feel like a conversation with a smart friend, clear, warm, and genuinely helpful.