Picture a hotel room in Tokyo, late at night. You are half asleep when your phone starts making a noise you have never heard from it before: a harsh, buzzing alarm, loud enough to fill the room. On some phones a voice follows: jishin desu, “earthquake”. The screen fills with a warning. You sit up, wondering what you are supposed to do. Then, a few seconds later, the bed starts to move.
The strange part is the order. The warning came first. Nobody can predict earthquakes, so how did anyone know about the shaking before the shaking reached the room? The trick is that the warning and the earthquake are in a race, and the warning has a head start.
Two waves, one fast and one strong
When an earthquake starts, it sends out more than one kind of wave through the ground. The first to arrive is a fast, fairly gentle one, called the P wave. It travels through rock at around 7 kilometres a second. Behind it comes the strong one, the S wave, which moves at around 4 kilometres a second. That is the wave that does the real shaking: it knocks things off shelves and makes buildings sway.
So every earthquake gives a small warning of its own. The gentle wave arrives first, and the strong one follows. Close to where the quake began, the gap between them is tiny. The farther away you are, the more the slow wave falls behind.
Japan has covered the country with seismometers, instruments that measure how the ground moves. There are nearly 1,700 of them, run by the Japan Meteorological Agency and a national research institute. When the stations nearest the quake pick up the first, gentle wave, computers at the agency, the same government body that runs the weather forecast, work out within seconds where the quake started, how big it is, and how hard it will shake each area when the strong wave gets there. If at least two stations have caught the wave and the forecast says the shaking will be strong somewhere, a warning goes out to the areas expected to feel it.
Faster than the ground
This is where the head start comes in. The waves move through rock at a few kilometres a second. The warning travels by radio and data networks, at close to the speed of light, which by comparison is instant. So the alert can overtake the strong wave and arrive at a town far from the quake before the shaking does.
For phones, the alert does not go out like a normal text message. The mobile networks send it to every phone in the warning area at once, so a hotel full of guests gets it at the same moment, and it arrives with that buzzer instead of the usual message tone. Television and radio break into their programmes with an alert tone of their own and the same warning. The service has been open to everyone since October 2007.
When the warning can’t win
The race isn’t always winnable. Reading the first wave and sending the alert takes a moment. If you are very close to where the quake starts, the strong shaking can reach you in that moment, and the alert arrives when the room is already moving, or after. The warning helps most in the places a little farther away.
It is also a forecast made in seconds from the first few readings, so it can be wrong. Sometimes it expects strong shaking that turns out mild. On 5 January 2018, two small quakes struck at almost the same time in different parts of Japan. The system read them as one much larger quake and warned of strong shaking in the area north-east of Tokyo. In fact both quakes were mild. And for small quakes that are not expected to shake hard, there is no alert at all, so a phone staying quiet does not mean nothing is happening.
It is worth being clear about what the alert is not. It is not a prediction. Nobody knew the earthquake in the hotel room was coming. The system only noticed that it had already started, and got the news to you faster than the ground could.
Back in the hotel room
So when your phone shrieks in the dark, it is reporting an earthquake that has already begun somewhere else. The fast, gentle wave reached a seismometer near it, a computer guessed how hard the slow, strong wave would hit, and the warning, travelling by radio, got to you first.
When the alert does beat the shaking, the Japan Meteorological Agency says the lead is short: a few seconds, or a few tens of seconds at most. Its advice is simple. Protect your head. Get away from things that could fall or tip over, and if there is a sturdy table, get under it. Don’t rush outside. On a train or bus, hold on tight to a strap or a handrail. In a lift, stop at the nearest floor and get out.
That night in the hotel, the seconds between the alarm and the swaying were the system working as it was meant to. The gap was the time it had won for you.