Method & data

Everything runs on free, open data and free tools. All code is on GitHub.

flowchart LR
  T["cron-job.org timer
every 10 min"] --> C["Collector
GitHub Actions"] A["Digitraffic AIS
ship positions"] --> C W["Winter navigation API
icebreakers, routes"] --> C C --> P["Parquet files
data branch"] C --> L["Live map
this website"] P --> D["DuckDB
SQL over Parquet"] I["FMI ice charts
Copernicus"] --> D H["History 2006–2024
EMODnet, HELCOM"] --> D D --> AN["Analysis
clustering, comparison"] AN --> R["Results
this website"]

How it works, step by step

Collect

Every 10 minutes a Python script on GitHub Actions downloads all ship positions in the Gulf of Bothnia (17–25.8°E, 60.3–66°N) from Fintraffic's open AIS service. Once an hour it also saves ship names and types, plus icebreaker information and routes ("dirways"). Each run is stored as one small Parquet file.

Publish live

Each run also writes a small JSON file with every ship's position and 2-hour trail, which the live map reads.

Store & back up

The data lives on a separate data branch on GitHub (about 300–400 MB per winter), is pulled to a laptop for analysis, and is backed up to university cloud storage.

Measure ship behaviour

Each ship's track is cut into 1-hour segments. For each segment: average and variability of speed, share of time stopped, distance, straightness, turning and distance to the nearest icebreaker. K-means clustering then groups the segments into behaviour types such as free sailing, convoy, waiting, or slowed by ice.

Compare winters

For 20 winters, the daily FMI ice charts give each winter a severity score (ice area, ice days and total ice volume). It is compared with monthly EMODnet vessel-hours, yearly HELCOM traffic maps and icebreaker waiting times.

Data sources

DataSourcePeriodLicence
Ship positions (AIS), ship detailsFintraffic Digitrafficlive, Dec 2026 →CC 4.0 BY
Icebreakers, routes (winter navigation)Fintraffic Digitrafficlive, Dec 2026 →CC 4.0 BY
Daily ice charts (area, thickness)Finnish Meteorological Institute via Copernicus Marine2006–2026Copernicus Marine licence (free)
Monthly vessel density (cargo, tanker)EMODnet Human Activities2017–2024CC BY 4.0
Yearly shipping traffic mapsHELCOM2006–2024HELCOM data policy
Icebreaker season resultsArctia, Fintraffic newsselected seasonscited per season

Tools

PythonpandasDuckDBParquet scikit-learnxarrayrasteriomatplotlib GitHub ActionsGitHub PagesLeafletpytest

Related work

This project builds on earlier research. Unlike most of it, it uses only open data and runs continuously.