An effective early warning mechanism for earthquakes plays a vital role in reducing casualties and damage. One practical example is Japan's Earthquake Early Warning (EEW) system, which utilizes a network of seismometers to detect seismic waves. When an earthquake occurs, the system calculates the magnitude and epicenter, and it can send alerts to citizens via mobile phones, television, and public announcement systems moments before the shaking