
02Live demo
Aftershock
A real-time data lake that watches earthquake magnitudes get revised
Jul 2026 - Aug 2026 · solo
01ProofThe single statement
What it proves
7,939 archived versions of 2,128 earthquakes. One first published at 3.6 was revised to 5.2.
02FiguresEach figure and its file
The figures, with their sources
7,939
archived magnitude versions
+1.60
largest magnitude revision
1,151
earthquakes that changed ID between versions
0.83
ROC AUC, should the first magnitude be trusted
Source Spark MLlib GBT classifier, notebook output · 27 Aug 2026
largest magnitude revision
One first published at 3.6 was revised to 5.2. Kafka · Spark Structured Streaming · Delta Lake
Three USGS sources into a Bronze, Silver and Gold lake on HDFS
03ProductThe real app
The product, screen by screen
A real-time data lake that watches earthquake magnitudes get revised

Guided tour
- 01
The same file at the other screen size: one earthquake, version by version, from its first published magnitude to its revised one.
Real capture, the committed dashboard site/aftershock.html, Aftershock repository, 28 Nov 2026
- 02
The live view: what USGS publishes enters Kafka, crosses Spark and settles in the lake. Captured with the live service offline, as the page itself says.
Real capture, the committed dashboard site/aftershock.html, Aftershock repository, 27 Nov 2026
- 03
The revision
Illustration. The pen draws the tremor as first published, then redraws it as revised, while the first trace stays as a ghost.
04ArchitectureThe flow, from the summary
How the data flows
Three USGS sources into a Bronze, Silver and Gold lake on HDFS: Kafka in KRaft mode, Spark Structured Streaming with Delta Lake, four Airflow DAGs chained by Datasets, replay after a hard kill proven free of duplicates.
The flow, as text
- Three USGS sources → Kafka
- Kafka → Spark Structured Streaming
- Spark Structured Streaming → Delta Lake
- Delta Lake → Bronze
- Bronze → Silver
- Silver → Gold
- Gold → Spark MLlib
- Kafka: KRaft mode
- Airflow: four DAGs chained by Datasets
- on HDFS
04bHow it worksAftershock
How it works
Aftershock keeps every version of an earthquake the networks publish, to show how its magnitude was corrected.

01
An earthquake hits
13 km WSW of Takotna, Alaska, on 30 January 2025.

02
First magnitude in minutes
The first version said M3.6, 2.9 min after the shock, computed automatically.

03
Revised again and again
15 versions later the magnitude is M5.2, reviewed, 76 days after the shock.
Where the numbers come from
- Repository
- Ayoubhm07/Aftershock
- Commit
- 66cd8032
05StackEach tool and its role
What it is built with
Kafka
- in KRaft mode
Spark Structured Streaming
- with Delta Lake
- Delta Lake
- a Bronze, Silver and Gold lake
Airflow
- four Airflow DAGs chained by Datasets
HDFS
- the lake on HDFS
Spark MLlib
- GBT classifier: should the first magnitude be trusted
06ExitThe next door
