Determining earthquake magnitude and location through fast, automated methods is fundamental for seismic monitoring. Recent studies have shown that Large Language Models (LLMs) can operate as pattern-recognition systems capable of handling novel domains and purely numerical tasks. Here, we assess the utility of LLMs for earthquake characterization and propose a novel approach based on a small LLM called TinyLlama. We adapt the LLM for seismology through fine-tuning on a subset of Italian earthquakes using the LoRA technique, which involves retraining only about (Formula presented.) of the model parameters. Our method takes station coordinates, P-wave arrival times, and peak ground velocities in a small window (0.2 s) around the P-wave and accurately estimates earthquake magnitude, location, and origin time without using a seismic velocity model. To explore the potential for rapid characterization, we consider only stations where the P-wave arrives within 5 s of the first triggered station. Compared to standard automatic methods currently used by INGV in Italy our model achieves comparable performance in magnitude estimation and superior accuracy in epicenter, hypocenter and origin time estimation. Validation using both P- and S-waves shows only a slight performance improvement that does not justify the additional latency. We explored a range of data splitting strategies and found that the LLM-based seismic method is robust. Our results highlight the ability of LLMs to function as effective tools in seismology and suggest their potential for advancing data-driven approaches to rapid earthquake characterization.

Adapting a Pretrained LLM to Rapidly Recover Earthquake Magnitude and Location / Bassani, A., Trappolini, D., Poggiali, G., Tinti, E., Galasso, F., Michelini, A., Marone, C.. - In: JOURNAL OF GEOPHYSICAL RESEARCH. MACHINE LEARNING AND COMPUTATION. - ISSN 2993-5210. - 3:5(2026). [10.1029/2026jh001578]

Adapting a Pretrained LLM to Rapidly Recover Earthquake Magnitude and Location

Bassani, Aurora
Primo
;
Trappolini, Daniele
Secondo
;
Poggiali, Giulio;Tinti, Elisa;Galasso, Fabio;Marone, Chris
2026

Abstract

Determining earthquake magnitude and location through fast, automated methods is fundamental for seismic monitoring. Recent studies have shown that Large Language Models (LLMs) can operate as pattern-recognition systems capable of handling novel domains and purely numerical tasks. Here, we assess the utility of LLMs for earthquake characterization and propose a novel approach based on a small LLM called TinyLlama. We adapt the LLM for seismology through fine-tuning on a subset of Italian earthquakes using the LoRA technique, which involves retraining only about (Formula presented.) of the model parameters. Our method takes station coordinates, P-wave arrival times, and peak ground velocities in a small window (0.2 s) around the P-wave and accurately estimates earthquake magnitude, location, and origin time without using a seismic velocity model. To explore the potential for rapid characterization, we consider only stations where the P-wave arrives within 5 s of the first triggered station. Compared to standard automatic methods currently used by INGV in Italy our model achieves comparable performance in magnitude estimation and superior accuracy in epicenter, hypocenter and origin time estimation. Validation using both P- and S-waves shows only a slight performance improvement that does not justify the additional latency. We explored a range of data splitting strategies and found that the LLM-based seismic method is robust. Our results highlight the ability of LLMs to function as effective tools in seismology and suggest their potential for advancing data-driven approaches to rapid earthquake characterization.
2026
LLM; Seismology; EEW
01 Pubblicazione su rivista::01a Articolo in rivista
Adapting a Pretrained LLM to Rapidly Recover Earthquake Magnitude and Location / Bassani, A., Trappolini, D., Poggiali, G., Tinti, E., Galasso, F., Michelini, A., Marone, C.. - In: JOURNAL OF GEOPHYSICAL RESEARCH. MACHINE LEARNING AND COMPUTATION. - ISSN 2993-5210. - 3:5(2026). [10.1029/2026jh001578]
File allegati a questo prodotto
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11573/1780945
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact