[Paper Review] TRAKNN: Efficient Trajectory Aware Spatiotemporal kNN for Rare Meteorological Trajectory Detection
TRAKNN is an unsupervised, exact kNN-based framework that detects geometrically rare short spatiotemporal trajectories in gridded climate data, enabling exhaustive multi-decadal analysis on standard hardware.
Extreme weather events, such as windstorms and heatwaves, are driven by persistent atmospheric circulation patterns that evolve over several consecutive days. While traditional circulation-based studies often focus on instantaneous atmospheric states, capturing the temporal evolution, or trajectory, of these spatial fields is essential for characterizing rare and potentially impactful atmospheric behavior. However, performing an exhaustive similarity search on multi-decadal, continental-scale gridded datasets presents significant computational and memory challenges. In this paper, we propose TRAKNN (TRajectory Aware KNN), a fully unsupervised and data-agnostic framework for detecting geometrically rare short trajectories in spatio-temporal data with an exact kNN approach. TRAKNN leverages a recurrence-based algorithm that decouples computational complexity from trajectory length and efficient batch operations, maximizing computational intensity. These optimizations enable exhaustive analysis on standard workstations, either on CPU or on GPU. We evaluate our approach on 75 years of daily European sea-level pressure data. Our results illustrate that rare trajectories identified by TRAKNN correspond to physically coherent atmospheric anomalies and align with independent extreme-event databases.
Motivation & Objective
- Motivate detection of geometrically rare atmospheric trajectories rather than instantaneous states.
- Provide a fully unsupervised, data-agnostic framework independent of physical thresholds or labels.
- Develop an exact, recurrence-based algorithm whose cost is decoupled from trajectory length for continental-scale data.
- Enable exhaustive analysis on standard hardware (CPU and CPU+GPU) for multi-decadal gridded datasets.
Proposed method
- Formulate rare trajectories as those with high mean distance to their k-nearest non-overlapping neighbors using Euclidean distance over trajectory space.
- Derive a recurrence-based update to compute trajectory distances in O(1) per step, making cost independent of trajectory length.
- Precompute a spatial pairwise distance matrix S via batch-wise GeMM to maximize hardware efficiency.
- Compute all-pairs spatial distances with symmetry optimization to reduce computations.
- Retrieve top-k nearest neighbors for each trajectory to estimate rarity scores s_t as the average distance to its kNN.
- Provide CPU and GPU implementations with a batch-wise processing strategy and discuss memory usage.
Experimental results
Research questions
- RQ1Do geometrically rare short spatio-temporal trajectories correspond to coherent atmospheric anomalies?
- RQ2Is Euclidean distance meaningful for high-dimensional trajectory data in this climate context?
- RQ3Can TRAKNN exhaustively detect rare trajectories on multi-decadal continental-scale data with standard hardware?
- RQ4Do detected rare trajectories align with independent extreme-event databases?
Key findings
- Rare trajectories identified by TRAKNN correspond to physically coherent atmospheric anomalies.
- Intrinsic dimensionality of trajectory space is much lower than ambient dimension and saturates with longer trajectories.
- PCA-based dimension reduction preserves top rare trajectories with high rank correlation (Spearman 0.99 for q=100 components).
- On 75 years of European mean sea level pressure data, TRAKNN scales to d up to 5 days with modest memory (6 GB) vs FAISS which uses more memory and struggles at longer d.
- Longer trajectory durations improve detection for meteorological wind storms, while some extreme-event databases show varying sensitivity across datasets.
- Top-100 rare trajectories exhibit coherent large-scale circulation patterns upon composite analysis.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.