Published August 31, 2026 | Version v1

TrainTrack Dataset

  • 1. ROR icon Berlin Institute for the Foundations of Learning and Data
  • 2. ROR icon Technische Universität Berlin

Description

The TrainTrack Dataset is a collection of smartphone inertial sensor recordings captured by passengers during real train journeys. It was collected for the paper "On the Same Track: Privacy Leaks in Electric Rail Transport via Magnetic Fields" (CCS '26), which studies how the magnetic field of electric trains leaks through the smartphone magnetometer.

What the dataset contains

The dataset consists of two parts:

traintrack-dataset/ — 487.5 hours of labeled train travel. Recordings from participants who regularly commute by train, covering 217 journeys, 342 trips, and 2,001 station-to-station segments across 246 unique stations. The data is organized hierarchically: a journey is one continuous recording session of a participant's travel, a trip is a single train ride between two changes within a journey, and a segment is one station-to-station leg of a trip. 357 segments were recorded by two or more devices simultaneously aboard the same train, making them usable for colocation studies.

Every segment is annotated with the train type and whether the train runs on a 16.7 Hz AC overhead line. The distribution by train type, given as total hours and segments with the 16.7 Hz electric share in parentheses:

  • Long distance — 420.1 h, 862 segments (thereof 16.7 Hz electric: 408.0 h, 840 segments)
  • Regional — 43.5 h, 346 segments (thereof 16.7 Hz electric: 36.4 h, 281 segments)
  • Urban — 19.7 h, 586 segments (thereof 16.7 Hz electric: 3.7 h, 88 segments)
  • Metro — 4.2 h, 201 segments (thereof 16.7 Hz electric: none)
  • Tram — 0.1 h, 6 segments (thereof 16.7 Hz electric: none)
  • Total — 487.5 h, 2,001 segments (thereof 16.7 Hz electric: 448.1 h, 1,209 segments)

no-trainride-dataset/ — everyday activity outside of trains. Recordings collected by the same participants while carrying their smartphones through ordinary daily life, serving as negative examples for transport mode detection. These traces are annotated with activity labels from Google's Activity Recognition API and cover roughly 78 hours in total, distributed over stationary periods (~108,000 s), walking (~33,000 s), cycling (~22,000 s), automotive travel (~30,000 s), and unclassified intervals (~90,000 s).

Sensors

Recordings were made with the Sensor Logger app. Each recording is a set of CSV files, one per sensor, sharing a common journey-relative time base:

  • Magnetometer (calibrated and uncalibrated)
  • Accelerometer (calibrated, uncalibrated, and total acceleration)
  • Gyroscope (calibrated and uncalibrated)
  • Gravity, Orientation, Game Orientation, Geomagnetic Orientation, Compass
  • Barometer
  • Per-recording device metadata (model, platform, app version, sensor list, sample rates)

Code and documentation

Detailed instructions for downloading, extracting, and working with the dataset, along with the full implementation and experiments from the paper, are available at:

https://github.com/mlsec-group/magtrack

Citation

@inproceedings{czybik2026magtrack,
  title     = {On the Same Track: Privacy Leaks in Electric Rail Transport via Magnetic Fields},
  author    = {Czybik, Stefan and Hanfeld, Pia and Rieck, Konrad},
  booktitle = {Proceedings of the 33rd ACM Conference on Computer and Communications Security (CCS)},
  year      = {2026}
}

Files

md5sums.txt

Files (164.5 GB)

Name Size
md5:684ffc86f6172ac6e5782106be117cef
1.2 kB Preview Download
md5:83ada9adbc191c847f5b51945ba83953
536 Bytes Download
md5:0e837448a21d42a90708adf21da44b87
9.7 GB Preview Download
md5:ccbe9856531532bd357b42aa39512b0f
9.9 GB Preview Download
md5:23472b34eeeebc81f296a1d85ad7e3c9
1.6 GB Preview Download
md5:20a7571feacd158b37ac18c4f248daaa
1.9 kB Preview Download
md5:65b4edc34a919bee499f308790db9e34
447.3 kB Download
md5:c5c156ca1eb3c407bd4ec0c14e065774
9.7 GB Preview Download
md5:76107d71a32a4d45fe4a7bb8c648ed3f
9.7 GB Preview Download
md5:706efabacf5a294e24830395b8088da2
9.5 GB Preview Download
md5:cd54269bd659c792ea41df7b9eed5a13
9.3 GB Preview Download
md5:94f5af0fa3f1878d62fa573fb4d0b3d6
8.9 GB Preview Download
md5:4f0014399726cfbf70198c7adfce7608
9.9 GB Preview Download
md5:b5b65d30f3f31a4fc4c66798b6c76aab
9.3 GB Preview Download
md5:34593956f2a39047f81f81fb27dc65a1
9.9 GB Preview Download
md5:fbd0820b7545bb9f3d6af42f7d582bf4
9.6 GB Preview Download
md5:daf93f7a1ba275451778a703a5091828
9.6 GB Preview Download
md5:cfa3f0fdb980923522cbce3ea4d567f4
9.2 GB Preview Download
md5:224cbc12a1662d21b1fb0eaa72874f67
9.9 GB Preview Download
md5:d3d44ce2de99a6553a6cbf9bf718357a
9.9 GB Preview Download
md5:58a7f68dcdba5e2df68d294b0071e523
9.5 GB Preview Download
md5:6b71644ff5efc026e32b542cdc354c12
9.3 GB Preview Download
md5:639c070784b57960010a7399866ebdb7
2.1 kB Download
md5:abd5eed7f965e62f700dc49c1efc2acd
4.4 kB Download

Additional details

Funding

European Commission
MALFOY - Machine Learning for Offensive Computer Security 101043410
Federal Ministry of Education and Research
AIGENCY 16KIS1142K