Abstract
The commercial cloud offers on-demand computational resources that could be revolutionary for the seismological community, especially as seismic datasets continue to grow. However, there are few educational examples for cloud use that target individual seismological researchers. Here, we present a reproducible earthquake detection and association workflow that runs on Microsoft Azure. The Python-based workflow runs on continuous time-series data using both template matching and machine learning. We provide tutorials for constructing cloud resources (both storage and computing) through a desktop portal and deploying the code both locally and remotely on the cloud resources. We report on scaling of compute times and costs to show that CPU-only processing is generally inexpensive, and is faster and simpler than using GPUs. When the workflow is applied to one year of continuous data from a mid-ocean ridge, the resulting earthquake catalogs suggest that template matching and machine learning are complementary methods whose relative performance is dependent on site-specific tectonic characteristics. Overall, we find that the commercial cloud presents a steep learning curve but is cost-effective. This report is intended as an informative starting point for any researcher considering migrating their own processing to the commercial cloud.
Introduction
Seismology has officially entered the "Big Data" era. With global seismic data archives approaching the Petabyte scale, individual researchers are increasingly hitting a wall with local hardware. While the commercial cloud (Azure, AWS, Google Cloud) offers virtually infinite "horizontal scaling"—the ability to run thousands of tasks simultaneously—the barrier to entry remains high. Most researchers face a steep learning curve involving containerization, virtual networking, and cloud-specific APIs. This paper addresses that gap by providing a documented, step-by-step framework and open-source tutorials specifically tailored for the seismological community.
A Reproducible Cloud Workflow
The authors developed a dual-branch Python workflow for earthquake detection and association, leveraging modern cloud infrastructure to handle heavy data-processing workloads.
Methods and Tech Stack
The workflow consists of two primary detection methods:
- Template Matching (TM): Utilizes the
EQcorrscanlibrary to identify events similar to known "master" earthquakes. - Machine Learning (EQT): Employs
SeisBenchto deploy the EQTransformer model for phase picking, followed byGaMMAfor associating those picks into discrete events.
To ensure portability and scalability, the researchers utilized a modern tech stack:
- Docker: Packages code and dependencies (e.g., ObsPy) into containers for consistent execution across environments.
- Azure Blob Storage: Provides scalable, pay-as-you-go data storage.
- Azure Batch: Manages virtual machine pools to distribute tasks across multiple CPU cores.
Validation Dataset
The workflow was validated using one year (2017) of continuous waveform data (~600 GB) from the Ocean Networks Canada NEPTUNE array (network code NV). This four-station ocean-bottom seismometer network is located on the Juan de Fuca mid-ocean ridge, an area characterized by frequent small earthquakes and complex noise environments.
Key Insights: The CPU Advantage
A significant finding of this study is the "GPU Paradox." While GPUs are typically preferred for machine learning, the authors found that for inference (applying pre-trained models to data), CPUs were the superior choice. Azure GPU instances were over three times more expensive, and the added complexity of managing CUDA drivers and larger Docker images outweighed marginal speed gains.
Furthermore, the two detection methods proved complementary. Template matching excelled at finding tiny, repeating events buried in noise, while the ML approach (EQT) captured a broader range of signals that did not match specific templates.
Results and Economic Viability
The transition to the cloud proved remarkably cost-effective. Processing the entire year of data for the 4-station network cost less than $5 USD on Azure.
Scaling tests using pools from 4 to 256 CPUs showed significant reductions in compute time. While scaling was not perfectly linear—due to the intentional avoidance of complex inter-node communication to maintain accessibility for individual researchers—the performance gains were substantial. The pipeline identified 3,543 (TM) and 924 (EQT) earthquakes, with 62% of ML picks matching existing high-quality manual catalogs, validating the system's reliability.
Conclusion and Future Directions
While the "point-and-click" portal approach used in this study is accessible for beginners, it lacks the robustness of "Infrastructure as Code" (IaC) methods used by professional DevOps engineers. Current limitations include a lack of parallelization across different cloud nodes, which may affect efficiency for global-scale datasets. Future work will focus on refining tutorials to include automated data streaming directly from archives like IRIS, further streamlining the migration of seismic processing to the commercial cloud.
Summary updated