Movement ecology, behavioural classification and EEZ classification from GPS tracking data in the Southern Ocean
Grey-headed albatrosses are one of the world's most threatened seabird groups, with populations in long-term decline. Campbell Island, in New Zealand's subantarctic, hosts one of the largest breeding colonies — and is the source of the GPS tracking dataset underpinning this project.
Satellite tracking data can tell us where these birds go. But to understand what drives their decisions — why some birds range 746 km from the colony while others reach 2,713 km; why some areas attract dense foraging activity while others are traversed quickly — requires classifying behaviour from raw movement signals and linking it to the oceanographic environment those birds encounter.
The question here is where foraging fixes fall relative to exclusive economic zone boundaries and the 60°S line. Longline fisheries, which set lines carrying thousands of baited hooks, are the primary source of albatross bycatch. A bird in active foraging mode — flying slowly, circling, responsive to any food signal — is far more likely to be attracted to a vessel's bait than one in directed transit.
This project analyses GPS tracking data from 24 grey-headed albatrosses, recorded as incubating adults, between 14 October and 12 December 2013, using a four-phase pipeline: movement metric extraction, Hidden Markov Model behavioural classification, oceanographic driver modelling, and a point-in-polygon EEZ test. The result is a data-driven picture of where, when, and how these birds forage.
Birds from the same colony, tracked between 14 October and 12 December 2013, show a 3.6-fold difference in maximum distance from the colony (746 km to 2,713 km) and a near-doubling in the foraging share of fixes (33% to 59%). Total distance covered ranges from 3,465 km to 12,285 km per bird.
Foraging-strategy groups A, B and C are k-means clusters of four foraging metrics and use no fishing data. Group A has 13 birds, group B has 8, and group C has 3: birds 2, 89518 and 90493, with maximum distances of 2,319 to 2,713 km and total distances of 9,713 to 12,285 km.
A Random Forest classifier trained on five predictors (SST, chlorophyll-a, latitude, longitude, and distance from colony) predicts foraging behaviour with 65.2% accuracy on a random split and 56.4% when whole birds are held out. The largest-class share is 58.96%. Feature importances: distance from colony 0.30, latitude 0.24, longitude 0.20, SST 0.16, chlorophyll-a 0.10.
Of 38,379 foraging fixes from 24 incubating adults tracked in 2013, 97.3% fell outside every country's exclusive economic zone and 2.7% fell inside New Zealand's. 99.1% fell north of 60°S, outside the CCAMLR Convention Area. No fishing effort data for New Zealand's EEZ or the high seas (FAO Area 81 / SPRFMO Convention Area) was available for this analysis.
Data correction (8 November 2026). Bird 90494's timestamps in the source file, as downloaded from the Movebank Data Repository, had day and month swapped on 3,056 of 93,474 fixes (3.3%). The deployment date recorded for that bird in the Movebank reference data (2013-01-11) is also inconsistent with its tracking period. The swap was repaired using event-id order, the source file is unchanged, and the pipeline was rerun. The colony reference point is now the deployment site in the Movebank reference data (52.474°S, 169.224°E). An earlier version of this page reported a 274-day trip and a complete breeding year, both artefacts of the swap. It also reported that 99.1% (and 97.5%) of foraging was within New Zealand's EEZ. Those figures came from latitude bands, not an EEZ test. Tested against World EEZ v12, 2.7% of foraging fixes fell inside New Zealand's EEZ and 97.3% fell outside every country's EEZ.
GPS tracking data (93,474 fixes across 24 birds) loaded from the Thompson et al. (2017) Movebank dataset. For each GPS fix, the following metrics were calculated:
Tracks were segmented into foraging trips using a 50 km colony threshold. Each bird made one away trip, except bird 90282, which made two. Away trips of 1 day or more lasted 7.6 to 21.8 days (mean 14.8 days).
A 3-state Gaussian Hidden Markov Model was fitted to log-transformed step length and absolute turning angle across all 24 birds simultaneously using hmmlearn. The model identifies the most likely hidden state at each GPS fix without any pre-labelled training data — the patterns emerge purely from the movement signal.
# Fit HMM to log step length + absolute turning angle
model = hmm.GaussianHMM(
n_components=3, # resting / foraging / transiting
covariance_type='full',
n_iter=200,
random_state=42
)
model.fit(features, lengths) # lengths = GPS points per bird
States were labelled by ranking on mean step length. Mean step length and turning angle for each state: resting (0.14 km, 6.9° turning), foraging area-restricted search (1.38 km, 62.2° turning), and transiting (4.04 km, 9.9° turning). The foraging signal is particularly clean, with a mean turning angle of 62.2° against 9.9° for transit.
HMM results: spatial distribution of states (top left), distance from Campbell Island over time for bird 89518, the most-tracked bird (top right), step length distributions (bottom left), and per-bird time budget (bottom right).
Monthly sea surface temperature (NASA JPL MUR SST) and chlorophyll-a (ESA CCI Ocean Colour) downloaded via NOAA CoastWatch ERDDAP and matched to each GPS fix using nearest-neighbour lookup in space and time. A Random Forest classifier was then trained on five features to test whether oceanographic conditions predict foraging behaviour.
Feature importance ranks spatial position above environmental variables. Mean SST was 6.31°C at foraging locations and 6.42°C at non-foraging locations.
Foraging hotspots mapped using 2D kernel density estimation on foraging-state GPS points, with longitudes converted to a Campbell Island-centred coordinate system to avoid dateline artefacts. Fixes classified by point-in-polygon against World EEZ v12 and by the 60°S line.
CCAMLR longline fishing effort (2013, LLS gear) analysed monthly and summarised with a temporal synchrony index (0.30), computed against all CCAMLR longline effort with no area filter. It is not a measure of overlap. Individual birds clustered into foraging-strategy groups A, B and C using k-means on four foraging strategy metrics: maximum distance, proportion foraging, forage centre latitude, and total distance.
Foraging hotspot KDE (top left; shading marks the smallest areas holding 50%, 75% and 90% of the density), foraging fixes by zone (top right: 2.72% inside the New Zealand EEZ, 96.34% outside all EEZs north of 60°S, 0.94% south of 60°S and outside all EEZs), foraging fixes by month against all CCAMLR longline effort (bottom left; not a measure of overlap), and foraging-strategy groups A, B and C (bottom right; 13, 8 and 3 birds).
Folium web map with a minimap. Layers: individual bird tracks (togglable, coloured by foraging-strategy groups A, B and C), foraging heatmap, EEZ outlines (World EEZ v12), approximate CCAMLR Convention Area boundary. CCAMLR fishing effort circles are not drawn.
A key technical challenge: grey-headed albatrosses cross the international dateline, which causes standard Folium polylines to render incorrectly (a straight line drawn across the full map width). Solved by normalising all coordinates to a Campbell Island-centred system — shifting the coordinate break far from any albatross data. Leaflet renders coordinates beyond ±180° correctly in adjacent tiles, producing continuous flight path display.
The HMM is appropriate here because albatross behaviour at any moment depends partly on the previous moment — a bird that was foraging a few minutes ago is more likely to still be foraging than to have switched to transit. The HMM captures this temporal dependency through transition probabilities between states, making it more ecologically realistic than treating each GPS fix as independent.
The alternative — threshold-based classification using fixed speed or turning angle cutoffs — requires manually chosen thresholds that may not generalise across individuals with different body sizes, wing morphologies, or environmental conditions. The HMM learns these thresholds from the data itself.
Spatial features rank above environmental features in feature importance.
Kernel density estimation on longitude data spanning −180° to +180° produces a spurious discontinuity at the dateline. Since the tracks cross the 180° meridian, the solution is to shift all longitudes into the range [−11°, 349°] — placing Campbell Island at the centre and moving the coordinate break to where no data exists:
CENTER_LON = 169 # Campbell Island longitude
def normalize_lon(lon):
# Shift coordinate system so Campbell Island is at centre.
# Break point moves to 169 - 180 = -11°.
return ((lon - CENTER_LON + 180) % 360) + CENTER_LON - 180
forage_lon_360 = foraging_pts['location-long'].apply(normalize_lon)
The CCAMLR Statistical Bulletin Vol. 37 (used for fishing effort) contains no spatial coordinates — only area codes referencing statistical subdivisions, so fishing effort is not spatially matched to the tracks and effort circles are not drawn on the map. No fishing effort data for New Zealand's EEZ or the high seas (FAO Area 81 / SPRFMO Convention Area) was available for this analysis.
Single tracking period: Data covers 14 October to 12 December 2013 only.
Environmental resolution: SST and chlorophyll-a are both monthly products, SST on a grid of about 0.1° and chlorophyll-a on a grid of about 0.125°. Fine-scale oceanographic features — fronts, mesoscale eddies, upwelling filaments — that may drive local foraging decisions are not captured.
Colony threshold: The 50 km boundary used to separate colony time from foraging trips is an approximation. All 24 birds came within 5.1 to 7.8 km of the colony reference point, but fine-scale breeding phase dynamics are not captured.
Fishing data: No fishing effort data for New Zealand's EEZ or the high seas (FAO Area 81 / SPRFMO Convention Area) was available for this analysis.
Thompson, D.R., Torres, L.G., Sagar, P.M., Kroeger, C.E. and Orben, R.A. (2017). Grey-headed albatross, New Zealand (data from Torres et al. 2017). Movebank Data Repository. doi:10.5441/001/1.694p666h/1.
Torres, L.G., Orben, R.A., Tolkova, I. and Thompson, D.R. (2017). Classification of Animal Movement Behavior through Residence in Space and Time. PLOS ONE 12(1): e0168513. doi:10.1371/journal.pone.0168513.
Flanders Marine Institute (2023). Maritime Boundaries Geodatabase: Maritime Boundaries and Exclusive Economic Zones (200NM), version 12. Available online at https://www.marineregions.org/. https://doi.org/10.14284/632 (licence CC BY 4.0).
Languages: Python 3.13
Key Libraries: hmmlearn (HMM fitting), scikit-learn (Random Forest, k-means), scipy (KDE, statistics), folium (interactive mapping), xarray + netCDF4 (environmental raster handling), pandas, numpy, matplotlib
Data Sources: Movebank Data Repository (Thompson et al. 2017 GPS tracks), NASA JPL MUR SST monthly (NOAA CoastWatch ERDDAP), ESA CCI Ocean Colour monthly (NOAA CoastWatch ERDDAP), GEBCO 2026 bathymetry, CCAMLR Statistical Bulletin Vol. 37, World EEZ v12 (Flanders Marine Institute 2023)
Methods: Gaussian Hidden Markov Model, Random Forest classification, kernel density estimation, k-means clustering, haversine distance calculation, Leaflet/Folium interactive cartography
Open to collaboration on environmental data science projects and actively seeking opportunities in geospatial analysis and conservation science