Pairing AIS with RF: Analysis of a Markovian Approach for Maritime Data Fusion
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. Accepted at the 13th IEEE Special Session Privacy and Security of Big Data of IEEE BigData 2026.
Pairing AIS with RF: Analysis of a Markovian Approach for Maritime Data Fusion Daniel Grimm∗ , Kyra Jongman† , Renato Cordeiro Ferreira∗ , Giuseppe Cascavilla∗ , Alfredo Cuzzocrea‡ , Willem-Jan Van Den Heuvel∗ ∗† Department of Intelligent Systems, Tilburg University, Tilburg, The Netherlands ‡ University of Calabria, Rende, Italy ∗ {D.M.Grimm,R.CordeiroFerreira,g.cascavilla,W.J.A.M.vdnHeuvel}@tilburguniversity.edu
arXiv:2611.18563v1 [cs.LG] 13 Nov 2026
‡ alfredo.cuzzocrea@unical.it
Abstract—Monitoring maritime activities is important for safety and security, particularly for detecting illegal activities, but remains challenging due to the size and complexity of the maritime domain. The Automatic Identification System (AIS) is commonly used for this purpose, despite its known vulnerabilities. In contrast, space-based radio frequency (RF) observations provide an independent source of vessel activity but lack ship identification and therefore cannot identify vessels on their own. Following the CRISP-DM process, this study applies a Pair Hidden Markov Model (PHMM) to align individual RF detections with AIS trajectories, using temporal and spatial information while modeling noise and timing discrepancies. We evaluate it on NOAA AIS data with synthetic RF detections against nearestneighbor baselines and analyze its errors with bias tests on trajectory length, sampling density, stationarity and AIS–RF distance. The length-corrected Forward score reaches a top-1 precision of 0.7776 on the validation split of multi-candidate detections, where errors are possible, and an AUC of 0.637 for detecting dark vessels among the detections that pass the prefilter. With a single RF detection, the score mostly reflects the AIS trajectory itself, and its errors favor longer and more stationary trajectories. A log-odds score, which compares the full model with a null model without match transitions, raises precision to 0.8580 and AUC to 0.852. Its length-corrected variant no longer shows a significant bias towards stationary trajectories and short intermessage distances, but still favors candidates farther from the RF detection. A time-weighted nearest-neighbor baseline without fitting remains ahead (precision 0.9013, AUC 0.904), so this single-detection, hand-designed PHMM formulation approaches but does not beat it. Index Terms—AIS, dark vessels, maritime domain awareness, pair hidden Markov model, RF geolocation, sensor fusion
I. I NTRODUCTION Global trade has relied on maritime transport for centuries. Today, an estimated 90% of all international goods, ranging from raw materials to everyday products such as fruit and clothing, are transported by sea [1]. Maritime transport is attractive because vessels can carry large volumes of cargo over long distances at relatively low cost. However, the growing reliance on this mode of transportation, combined with other maritime traffic, has led to increased congestion at sea [2]. This is particularly evident near ports and in narrow waterways, where dense traffic heightens the risk of accidents. In addition to congestion, the vast and largely unregulated nature of the oceans facilitates illicit activities such as smuggling, unreported fishing, and sanctions evasion.
Although initially designed as a collision-avoidance tool, authorities rely heavily on the Automatic Identification System (AIS) [3], [4] for continuous vessel tracking. AIS transponders broadcast information such as a vessel’s Maritime Mobile Service Identity (MMSI) number, type, position, and course to nearby ships and coastal authorities. Despite its essential role, AIS is widely recognized to have significant limitations, including incomplete coverage and vulnerabilities to deliberate manipulation [5]. Spoofing AIS messages to falsify identity or location, as well as intentionally deactivating transmissions, referred to as “dark vessels”, are wellknown tactics of manipulation. For example, in July 2023, a Malaysian-flagged oil tanker was found to have spoofed its AIS signals to mask its true location, a tactic used for loading and transferring Iranian oil in violation of US sanctions [6]. Similarly, in late 2024, the Finnish Coast Guard reported that tankers had spoofed their location data to conceal visits to Russian ports [7]. As such, recent technical advances have introduced spacebased radio frequency (RF) detections as a promising complementary data source for vessel tracking. As integrating AIS and space-based RF data appears highly valuable, the use of statistical techniques for their data fusion should be explored. Therefore, the main research question behind this study is: How can AIS and RF data be matched to enhance ship identification? To address this question, this research proposes using a Pair Hidden Markov Model (PHMM). The goal is to evaluate the potential of this statistical model for linking AIS data with space-based RF detections to improve vessel identification. This prompted the following two sub-questions: RQ1: How can a PHMM be designed to match AIS and RF data?
RQ2: How does a PHMM compare with a tuning-free nearest-neighbor baseline for matching AIS and RF data on synthetic RF data, both in top-1 precision and in detecting dark vessels?
To address the research questions, this study adopts the Cross-Industry Standard Process for Data Mining (CRISPDM) as a systematic methodology [8]. The framework comprises six phases: (1) Business Understanding, (2) Data Understanding, (3) Data Preparation, (4) Modeling, (5) Evaluation, and (6) Deployment. The sub-questions are mapped to the relevant phases of the CRISP-DM framework, which form the basis for the study’s structure. These phases are not strictly sequential, allowing revisions to earlier steps. The Deployment phase is not included, as it falls outside the scope of this research. As a result, we contribute (i) a PHMM for matching a single RF detection to AIS trajectory candidates, scored by the raw Forward score and by a log-odds score against a null model, (ii) a comparison with nearest-neighbor baselines, in top-1 precision and in detecting dark vessels, on NOAA AIS data with synthetic RF detections, and (iii) a bias analysis of the matching errors. The hand-designed, single-detection formulation approaches but does not beat a tuning-free timeweighted nearest-neighbor baseline. All code developed for this study is available as a reproduction package on GitHub1 . II. BACKGROUND A. Space-based Radio Frequency (RF) RF signals are electromagnetic waves emitted by electronic devices [9]. Ships continuously or intermittently emit such signals through their communication and navigation systems [10]. While these emissions can be detected by shipborne or shorebased receivers, this study focuses on space-based detections, where satellites in Low Earth Orbit (LEO) capture RF signals from vessels at sea. By analyzing the signals, the geolocation of the source can be determined, even if the transmitting vessel attempts to be invisible [9]. A key advantage of space-based RF detection is its resilience, as signals can be captured at any time of the day and under all weather conditions [9]. However, a significant limitation is the absence of ship identification. The data is limited to geolocation, timestamp, and signal features [10]. These features can characterize an emitter across detections, but not reveal which ship it belongs to [9], necessitating the fusion with other sources (e.g., optical/SAR imagery and AIS) [11], [12]. Another challenge is that vessels typically carry multiple electronic devices, each potentially emitting RF signals simultaneously [11]. This can result in multiple detections originating from the same vessel. B. Pair Hidden Markov Model (PHMM) A Pair Hidden Markov Model (PHMM) [13] extends an HMM to supports tasks such as biological sequence alignment and named entity matching [13], [14]. It takes two input sequences X = {x1 , . . . , xn } and Y = {y1 , . . . , ym } over a common alphabet O. Moreover, it uses a set of hidden states: B (non-emitting start), IX (emits xi , gap in Y ), IY (emits yj , gap in X), M (emits a pair (xi , yj )) and E (non-emitting 1 https://github.com/grimmmbo/AIS RF matching
end). In a standard PHMM, each emission distribution (eIX , eIY , eM ) sums to 1. The Forward algorithm sums the weight of all alignments of X and Y over pairs (i, j) [13], with S the set of states: 1) Initialization: a matrix A of size (n + 1) × (m + 1) × k for k states, with A0,0 (B) = 1 and all other entries 0 (index 0 is the empty prefix). 2) Recursion: for each position (i, j) and each emitting state c ∈ {IX , IY , M }, X Ai,j (c) = Ai′ ,j ′ (p) · tpc · ec (oi,j ), p∈S ′
′
with (i , j ) = (i − 1, j) for IX , (i, j − 1) for IY and (i − 1, j − 1) for M ; oi,j is a single symbol (for gap states IX and IY ) or a pair (for state M ). 3) Termination: the total score is X P (X, Y | λ) = An,m (p) · tp,end , (1) p∈S
which is a probability when the model is normalized. In this context, λ denotes the model parameters (transition and emission distributions). III. R ELATED WORK Because of the inherent limitations of AIS, numerous studies have explored methods to detect falsified AIS messages [15] and to augment AIS with complementary data. A common approach involves combining AIS signals with satellite imagery, including optical data [16] and Synthetic Aperture Radar (SAR) [17], [18]. More recently, AIS has also been fused with radio frequency (RF) detections from both shore-based and space-based systems. Shore-based systems use radar stations that capture reflections of their own transmitted RF signals, while space-based systems rely on satellites that passively collect emissions from ships. Yang et al. [19] employed a graph matching-based deep neural network to align AIS data with shore-based radar tracks, whereas Zhang et al. [20] introduced a trajectory association method (D-TRAP) based on spatial proximity and directional consistency to improve matching robustness in multi-ship environments. The effectiveness of space-based RF systems has been demonstrated in case studies from UnseenLabs [21] and HawkEye 360 [22], two commercial providers of satellite-based RF data. Although space-based RF has proven its practical value, its fusion with AIS remains a relatively new field of research. Initial studies by Yang et al. [23], [24] applied linear interpolation and dead reckoning to temporally align AIS signals with RF detections. Other studies have extended this approach by incorporating SAR imagery as a third data source [11], [12]. In these multi-source data fusion methods, AIS positions are interpolated to align with both the timestamps of RF detections and the acquisition times of SAR imagery. One advantage of shore-based radar systems is their highly frequent measurements, typically at intervals of about two seconds [19], which generate dense tracking data that enable accurate matching with AIS data. However, since such systems
are generally stationed near ports and coastlines, they are located in areas with heavy traffic and are therefore subject to interference, which increases the likelihood of misclassifications. In contrast, space-based RF systems offer far greater geographic coverage (up to 300, 000 km2 per satellite pass [25]), but provide only sparse coverage with long gaps between observations. This significantly complicates temporal and spatial synchronization with AIS. Nevertheless, space-based RF data offer considerable potential for detecting AIS manipulation on the high seas, where limited surveillance to date increases the likelihood of illegal activities. For this reason, this study focuses on the integration of AIS and space-based RF observations. While interpolation is straightforward to implement, representing the actual movements of ships, such as changes in course and speed or the intentional deactivation of AIS, is difficult. The longer the interval between AIS signals, the greater the potential error in the estimated positions [26]. For this reason, this study focuses on statistical methods by using a Pair Hidden Markov Model (PHMM) to evaluate entire AIS trajectories, consisting of hundreds or thousands of signals, against individual RF detections using a probabilistic model. IV. DATA U NDERSTANDING The goal of the Data Understanding phase of the CRISPDM framework is to collect the relevant data and explore its quality and structure. Because commercial providers such as UnseenLabs and HawkEye 360 do not offer public access to RF data, we generate synthetic RF detections from AIS data, based on publicly documented characteristics of real RF systems (Section V). The AIS dataset comes from NOAA’s Marine Cadastre [27] and contains transmissions from vessels operating along the United States coastline between 1 and 31 January 2024. It includes roughly 222 million AIS messages sent by 33,635 unique vessels, grouped into 83 vessel categories such as fishing, military, and cargo ships. Each AIS message contains identification fields (e.g., MMSI and IMO number), position, speed, and course. The presence of unique identifiers allows to group messages by vessel and reconstruct trajectories, defined as continuous sequences of AIS messages for a given ship between a start and end time. Pleasure crafts, yachts, and fishing vessels form the largest share of trajectories, but they mainly use Class B AIS transponders which transmit less frequently than Class A and lead to sparser and less accurate tracks (91% of pleasure crafts, 75% of fishing vessels). In contrast, 99% of cargo vessels use Class A transponders. For this reason, the analysis focuses on cargo vessels, yielding 2,400 trajectories. An exploratory analysis of these cargo vessel trajectories produced three main insights. First, more than 600 cargo vessels transmit between 5,000 and 10,000 messages per voyage, while a small group records fewer than five messages. This likely indicates incomplete records or very short trips. Second, the most frequently observed mean time interval between consecutive AIS messages falls between 150 and
180 seconds (2.5-3 minutes). This is longer than the nominal Class A reporting intervals (2 to 10 seconds underway, 3 minutes at anchor or moored), possibly due to resampling or limited reception. Many trajectories, however, contain mean intervals above 600 seconds (10 minutes), which can point to data quality issues, equipment problems, or deliberate AIS deactivation. Third, the vessel speeds, computed from the geographic distance and time between successive AIS messages, are for most cargo vessels between 5 and 20 km/h. This is plausible given the port and coastal segments in the data. A considerable share of the trajectories averages below 5 km/h and some contain very high speeds, so both groups merit closer inspection in later preprocessing. V. DATA PREPARATION The Data Preparation stage involves cleaning and structuring of the AIS data as a time-ordered sequence suitable for use in a PHMM and generating synthetic RF data from the processed AIS dataset. A. AIS Data Preprocessing Pipeline As the RF detections are generated synthetically and anchored to AIS tracks, the AIS data serves as ground truth for the matching task. It must therefore contain only plausible, continuously transmitted vessel behavior. Implausible kinematics or transmission gaps would make the ground-truth label of a synthetic RF point ambiguous, regardless of whether their underlying cause is a data-quality artifact or a dark vessel. The raw cargo AIS data (2, 400 unique cargo trajectories) is accordingly preprocessed with a multi-step pipeline that removes such cases and structures the remaining data for sequence alignment. Four steps were applied. a) Step 1: Removal of Short Trajectories: The first step is to remove trajectories with five or fewer AIS messages. The aim is to retain only trajectories with sufficient information value and a reasonable likelihood of temporal alignment with synthetic RF detections, which are typically acquired at relatively long intervals. In total, 80 trajectories were excluded, leaving 2, 320 for subsequent filtering. As a result, the average number of AIS messages per trajectory increased by 3.45%, rising from approximately 6, 117 to 6, 328. b) Step 2: Removal of Speed Outliers: The second step addresses outliers in vessel speed values. First, trajectories with unrealistically high-speed samples are removed using the interquartile range (IQR) method, with trajectories exceeding Q3 + 1.5 × (Q3 − Q1) considered outliers. This aims to preserve trajectories exhibiting plausible movement patterns. Second, trajectories with an average speed below 5 km/h are removed, as they are assumed to represent stationary vessels not considered in this study. In total, 952 trajectories (high-speed outliers and trajectories with an average speed below 5 km/h) were excluded, leaving 1, 368 trajectories. The majority of cargo vessels maintained average speeds between 7 and 20 km/h, with a mean of 14.03 km/h. Only a few trajectories exhibited average speeds above 35 km/h, with a maximum of 40 km/h, which still is a plausible operating speed under certain conditions [28].
c) Step 3: Segmentation of Trajectories: The third step addresses substantial temporal gaps in trajectories. Trajectories containing gaps longer than 551 seconds (approximately nine minutes, corresponding to the 99th percentile of all intermessage time gaps pooled across the Step 2 output) are segmented into shorter trajectories. The aim is to enhance continuity and minimize interruptions caused by extended periods without recorded positions. Each newly created segment is additionally subject to the same minimum-length (Step 1) and minimum-average-speed (Step 2) criteria. The segmentation increased the dataset size from 1, 368 to 16, 727 trajectories. Segments of the same vessel are treated as distinct candidates. Since the temporal preselection (Sec. VI-B) requires a candidate to cover the RF timestamp, and segments split at gaps are disjoint in time, only 10 of 17, 081 RF points have another segment of the true vessel in their candidate set, so this has a negligible effect on the reported precision. d) Step 4: Sampling and Sequence Preparation: The fourth step prepares the trajectories for subsequent analysis. This step aims to reduce computational time by creating a smaller yet representative dataset while preserving trajectory diversity. To this end, a sample of 5, 000 trajectories is selected using Kernel Density Estimation (KDE). Rather than uniform random sampling, KDE assigns selection probabilities based on selected features of an AIS track (total number of AIS messages, voyage duration, average speed, geographical displacement latitude and longitude, average time interval between consecutive messages). This ensures a balance between common and rare trajectory patterns. Each trajectory in this sample is then converted into a sequence of tuples (timestampUTC , (latitude, longitude)) and ordered chronologically to maintain temporal consistency. B. RF Data Generation In the absence of publicly available RF data, synthetic RF detections were generated from the AIS data. To enable PHMM-based sequence alignment, these detections adopted the same data structure as the AIS records, with each RF detection represented as a tuple (timestampUTC , (latitude, longitude)). Unlike AIS sequences, which typically contain hundreds to thousands of observations, each RF sequence comprises only a single detection, consistent with the study’s objective of associating individual RF observations with complete AIS trajectories. Commercial specifications (e.g., UnseenLabs) indicate two defining characteristics of current satellite constellations: (1) a revisit time of approximately three hours (the interval between consecutive detections), and (2) a geolocation accuracy of roughly one kilometer (km) under optimal conditions [25]. Based on these characteristics, the process was organized into three sequential steps, applied to the 5, 000 AIS trajectories after preprocessing. On average, this procedure generated 3.42 synthetic RF detections per AIS trajectory in the dataset. a) Step 1: Build Sampling Schedule: First, a 24-hour sampling schedule is constructed to mimic the temporal characteristics of satellite observations. A random initial timestamp
Fig. 1: Graphical representation of the PHMM.
is drawn from a predefined time window, after which subsequent timestamps are generated at three- to four-hour intervals with uniform distribution. Note that all generated RF-points will sample from the same schedule, replicating the revisit patterns of UnseenLabs satellites. b) Step 2: Align RF Timestamps to AIS Trajectories: The second step aligns the simulated RF timestamps with the temporal range of AIS trajectories. To allow for detections slightly outside the original trajectory boundaries, this range is extended by a fixed buffer (five minutes at both the start and the end). RF timestamps that fall within the extended window are then matched to the closest AIS message in time. c) Step 3: Generate Synthetic RF Coordinates: Finally, synthetic RF coordinates are generated by introducing noise to the associated AIS position. AIS positions are offset by sampling from a two-dimensional (east, north) normal distribution N (0, σ) with σ = 800m to simulate satellite geolocation uncertainty. The RF position is thus the position of the closest AIS message plus this offset, and vessel movement between the AIS and RF timestamps is not modeled. Assuming that north- and east errors are uncorrelated and have the same variance, then the magnitude of the error follows a Rayleigh p distribution. Then, the mean error is µ = σ π/2 ≈ 1000m, reflecting UnseenLabs’ reported geolocation accuracy of approximately one kilometer under optimal conditions. VI. M ODELING A. PHMM This section addresses the Modeling phase of the CRISPDM framework by formally defining the PHMM. The two input sequences X and Y of the PHMM are AIS (AIS messages from a candidate trajectory), and RF (the RF detection to be associated with that trajectory). AIS has n messages and RF consists of a single detection, so the length of the second sequence is m = 1. The respective state architecture (cf. transition architecture in Figure 1) therefore consists of B (begin), E (end), M (match), IAIS (insert in AIS), and IRF (insert in RF ) states. We define each observation o as a tuple (timestampUTC , (latitude, longitude)), where values are unconstrained within their natural bounds.
TABLE I: PHMM transition parameters. π and τ are uniform values; ε and δ are hand-designed functions of ∆t and ∆d . Matrix element
Explanation
Value/distribution
π
Initial state distribution: transition from B to an emitting state (IAIS , IRF , M ). Transitions from an emitting state (IAIS , IRF , M ) to termination state E. Transitions into IAIS and IRF . Transitions into M .
Uniform, 1/3.
τ ε δ
Uniform, 0.05. fε (∆t , ∆d ), see Figure 2. fδ (∆t , ∆d ), see Figure 3.
Transition weights specify the strength of moving from one hidden state to another during sequence alignment. While classical (P)HMMs assume stationary probabilities independent of the observations, we model the transition matrix T as depending on the spatio-temporal context (cf. Table I): B
IAIS
IRF
M
E
0 IAIS 0 T = IRF 0 M 0 0 E
π ϵ1 ϵ2 ϵ3 0
π ϵ4 ϵ5 ϵ6 0
π δ1 δ2 δ3 0
0 τ τ τ 0
B
(2)
Each ϵ· is fε and each δ· is fδ , evaluated at the corresponding pair of observations. With m = 1, the transitions ϵ5 , ϵ6 , δ2 and δ3 cannot occur, since they would require a second RF symbol. The remaining weights depend on the time difference ∆t (in seconds) and the haversine distance ∆d (in kilometers) between consecutive observations. For the IAIS and IRF transitions (fε ), negative ∆t values (i.e., backward time transitions) are assigned zero weight to enforce chronological ordering. The M -state function fδ instead depends on the absolute difference |∆t | and therefore does not distinguish a forward from a backward AIS–RF pairing. Both functions are hand-designed. The cut-offs of 120 s and 2 km in fδ were set with knowledge of the generator (σ = 800 m, Sec. V-B).
Fig. 3: Weight surface of fδ (∆t , ∆d ). This function is zero beyond predefined temporal (120 seconds) and spatial (2 kilometers) thresholds, so pairs outside these thresholds cannot transition into the M state
At each alignment step, the transition weights from the previous state to all possible current states are scaled to sum to 0.95, with the remaining 0.05 allocated to transitions to the termination state (τ ). An exponent κ = (κAIS , κRF ) = (0.5, 2) is then applied to these weights, with κAIS for transitions into an AIS state and κRF for transitions into IRF or M . These values were set by informal exploration, possibly on data overlapping the evaluation set, and α (Sec. VI-D) was tuned conditional on them. The rows of T therefore no longer sum to 1, and we call the model PHMM-style. With κ = (1, 1) and α re-tuned, the length-corrected Forward score drops from 0.7776 to 0.6934 in precision and from 0.637 to 0.556 in AUC, while the two log-odds variants change by at most 0.0009 and 0.0063. Part of the Forward baseline’s performance is thus due to κ. The emission weights define what an IAIS or IRF state emits for a single symbol or what an M state emits for a pair of aligned symbols. IAIS and IRF states emit the respective aisi and rf symbols with weight 1. In the M state, a pair (aisi , rf) is emitted with a weight given by the degree of spatio-temporal correspondence between aisi and rf, defined by the function fδ (∆t , ∆d ). The function fδ therefore enters twice, as the weight of the transition into M and as the (normalized) emission weight of M , with κRF = 2 applied to the transition weight. B. AIS-RF Preselection
Fig. 2: Weight surface of fε (∆t , ∆d ). This function attains its maximum value for observations that occur nearly simultaneously and at the same location (point a), suggesting a high probability that they originate from the same vessel. The probability decays sharply with increasing temporal (point b) or spatial (point c) separation, reaching its minimum when both differences are substantial (point d)
Many AIS-RF combinations are unlikely to align meaningfully due to clear temporal and spatial discrepancies, so a preselection procedure is applied. The number of candidate pairs after preselection is identical for all methods. Each RF detection is compared against AIS trajectories using three successive filtering steps. Pairs that satisfy all three criteria are retained as a candidate dataset. First, we employ a temporal filtering step: the timestamp of an RF detection must fall within the temporal window of a given AIS trajectory, defined as the interval between the first and last AIS timestamps, extended by ten minutes at both ends to account for small temporal deviations.
Second, bounding box filtering limits the location of the RF detection to be included within the trajectory’s bounding box, determined by the minimum and maximum latitude/longitude of all AIS points in the trajectory, expanded by 6 km in all directions to account for small spatial deviations. Third, the proximity filtering restricts the relevant AIS trajectories to messages recorded within ± 3 hours of the RF detection timestamp. The RF-AIS pair is retained only if at least one AIS point lies within a 6 km radius of the RF detection’s location. Both the ± 3-hour temporal window and the 6 km spatial threshold follow the methodology outlined in prior work [23]. C. Alignment via Forward Algorithm
Ai,j (c) = LSEp∈Pred(c) Ai′ ,j ′ (p) (3)
Termination (Eq. 1) yields the raw Forward score log Pfull = LSEp An,1 (p) + log tp,E , and the candidate with the highest score is predicted. This value is not a probability, because the I-state emissions are 1, fδ is a bounded similarity function, the transitions depend on the observations and are row-scaled to 0.95, and κ is applied after normalization, so the rows of T no longer sum to 1. a) Log-odds score.: With m = 1, the AIS→AIS transition weights before row scaling do not depend on the RF point. The raw score therefore mostly reflects the AIS trajectory itself (a trajectory prior) and contains no null hypothesis. The RF point enters through the paths that visit IRF or M and, via the row scaling, through the AIS→AIS transitions. We therefore also score each candidate by the log-odds of the full model against a null model, as in profile HMMs [13] (a log-likelihood ratio), s = log Pfull − log Pnull ,
The log Forward score decreases with trajectory length. Scores are therefore divided by nα , where n is the number of AIS messages: scoreα =
log Pfull . nα
(5)
α = 1 is the length-normalized score; a tuned α gives the length-corrected score. α is chosen for precision on a 20% tuning split and evaluated on the remaining 80% validation split. Applied to the log-odds score, the same correction (s/nα ) is a secondary variant, with α tuned separately for s on the same tuning split (α = 1.27). E. Nearest-Neighbor Baselines
For each RF detection, the Forward algorithm of Sec. II-B is applied to every candidate AIS trajectory, with X the trajectory (n messages, varying per candidate), Y the single RF detection (m = 1) and k = 5 states. For numerical stability the recursion runs in log space. All cells are initialized to −∞ (log 0) except A0,0 (B) = 0, and the sum over predecessor states becomes a log-sum-exp (LSE):
+ log tpc + log ec (oi,j ) .
D. Length correction
(4)
where Pnull is the Forward score of a null model. The null model has the same transitions as the full model, except that every transition into M is set to zero after the row scaling to 0.95 and the exponent κ have been applied. The other transition weights are left unchanged. No path of the null model can visit M , so s ≥ 0. This null model differs from the random model of Durbin et al. [13], which has its own emission distribution. The fraction of the Forward weight that lies on paths through M , 1 − e−s , increases monotonically with s, so ranking by it gives the same ranking and ROC curve as s. We use raw s as the primary variant and s/nα (Sec. VI-D) as a secondary variant.
Since the suitability of a method depends on trade-offs such as accuracy and computational cost [29], we compare the PHMM scores against two nearest-neighbor (NN) baselines on the same pre-filtered candidate set. For an RF observation at position pRF and time tRF , and a candidate AIS track T = (s1 , . . . , sn ) with timestamps t1 , . . . , tn , each baseline reduces T to one distance, and the predicted match is the candidate that minimizes it. The geometric baselines take the minimum distance from pRF to the track points (Euclidean on latitude/longitude degrees, or Haversine great-circle) or to the track’s n−1 consecutive-point segments (point-to-segment, in a local flatearth plane centered on pRF ). For segment i, di is the distance from pRF to its closest point si + t∗ (si+1 − si ), where (pRF − si ) · (si+1 − si ) , 0, 1 (6) t∗ = clip ∥si+1 − si ∥2 is its fractional position along the segment. All three were tried and differ little, by at most 0.0081 in precision and 0.0033 in AUC. We report point-to-segment, which has the highest AUC of the three but the lowest precision. The time-weighted baseline adds a time term at the interpolated AIS timestamp t̂i = ti + t∗ (ti+1 − ti ): di |tRF − t̂i | dtw (pRF , T ) = min +w , (7) i dthr Tw where dthr = 6 km and Tw = 3 h normalize the two terms to the scale of the preselection window whereas w = 1 weights them equally. VII. E VALUATION A. Experimental Setup Table II lists the data used in this section. The 5,000 sampled trajectories yield 17,081 RF detections. For 10,903 of them (single-candidate) the prefilter leaves only the true trajectory as candidate, so the match is trivial. The other 6,178 are multicandidate detections with two to nine candidates (usually two or three). Only these detections discriminate between scores. The length-correction exponent α is tuned on a random 20% of these (1,236 detections) and precision is reported on the remaining 80% (4,942). The nearest-neighbor comparison
TABLE II: Evaluation populations. Top: RF detections used for top-1 precision, the bias experiments and the baseline comparison, with the precision of PHMM Forward at each stage. Bottom: vessels (MMSIs), trajectories and RF detections used for the dark-vessel test. n
RF detections All Single-candidate Multi-candidate Tuning split (20%) Validation split (80%)
17,081 10,903 6,178 1,236 4,942
Precision 0.8899a 1.0000 0.6955a,b 0.7921 (α = 0.90) 0.6938 → 0.7776c
Dark-vessel test
MMSIs
Trajectories
Detections
Known (positives) Dark (negatives) All
818 204 1,022
2,517 686 3,203
13,751 3,330 17,081
a length-normalized (α = 1, Sec. VI-D). The tuned α = 0.90 correction is fit and evaluated only on the tuning and validation splits below, not on this row. b Multi-candidate = tuning split + validation split (1,236 + 4,942 = 6,178). c Before → after length correction.
and the bias experiments use the same 4,942 detections. Precision is top-1 accuracy. Each detection yields one prediction, the highest-scoring candidate, so precision equals Recall@1. Recall@3 and Recall@5 are above 0.98 and 0.99 for every score, so we report only precision. The dark-vessel test evaluates whether a score recognizes detections from vessels without an AIS trajectory. The 3,203 trajectories that are the source or a candidate of at least one detection (out of the 5,000 sampled) belong to 1,022 vessels, identified by their MMSI. We split these vessels at random into a known group (80%) and a dark group (20%), which keeps all trajectories of a vessel together. Only the 2,517 trajectories of known vessels are offered as candidates. The 13,751 detections from known vessels have their true trajectory among the candidates and form the positive class. The 3,330 detections from dark vessels have no correct candidate and form the negative class. A score separates the classes if the score of the top-ranked candidate is high for positives and low for negatives. We report the AUC of this separation, which needs no threshold. The spatio-temporal prefilter already rejects 2,346 (70.45%) of the dark detections because no candidate is close enough. They are left out of the AUC, which is computed on the positives and the remaining 984 dark detections, where the decision depends on the score alone. The AUC reuses the α tuned for precision (Sec. VI-D) without re-tuning and applies it to all detections. B. Results a) Precision: PHMM Forward’s precision falls from 0.8899 on the full dataset to 0.6955 once restricted to multicandidate detections, and length correction raises it from 0.6938 to 0.7776 on the validation split (Table II). The logodds score reaches 0.8580 on the same split (0.8571 with nα ). For raw log-odds, 203 of the 4,942 validation detections have
TABLE III: Bias experiments, validation split. Cells give the direction (chosen vs. should-be) and the two-sided p-value where the test is significant at p < 0.05 (Welch for 1–3, paired for 4a–4b), and n.s. otherwise. The log-odds column is the nα variant. NN time-weighted (not shown) has no significant bias except in the AIS–RF time gap (4a), which is expected, since its score contains the time difference directly. Experiment 1. Track length 2a. Intra-track time gap 2b. Intra-track distance gap 3. Stationarity 4a. AIS–RF time gap 4b. AIS–RF distance gap
Forward (corrected)
Log-odds (nα )
longer, 2.2×10−14 shorter, 1.0×10−20 n.s.
larger, 0.040
closer, 7.2×10−8
n.s.
higher, 2.0×10−5 n.s. farther, 1.8×10−3 n.s. farther, 5.9×10−30 farther, 3.8×10−14
several top-scoring candidates. Ties are resolved by selecting the candidate with the lowest trajectory ID. b) Bias Experiments: For the detections a score gets wrong, we compare the trajectory it ranks highest (chosen) with the true trajectory (should-be). The correct group contains the detections where the true trajectory ranks highest. We test whether the score favors longer trajectories (Experiment 1), densely sampled trajectories (Experiment 2, gaps between consecutive AIS positions), stationary vessels (Experiment 3, share of AIS messages below 5 km/h) or candidates close to the RF detection in time and space (Experiment 4). Table III reports the results for the corrected Forward score and the log-odds score. For corrected Forward, chosen trajectories are longer than should-be (p = 2.2 × 10−14 ). The correction reduces this bias but does not remove it (t = 27.96 before, 7.70 after). They have shorter gaps between consecutive AIS positions but not shorter time gaps, and are more stationary. Their closest AIS point is also farther from the RF detection, in both time and distance. The bias tests for the log-odds score were run on the nα variant only (Fig. 4). There, the differences in intra-track distance gap, stationarity and AIS–RF time gap are no longer significant, while the AIS–RF distance gap difference persists (p = 3.8 × 10−14 , versus 5.9 × 10−30 ). Chosen trajectories are now shorter than should-be (p = 1.0 × 10−20 ) and have larger intra-track time gaps (p = 0.040, uncorrected for multiple tests). c) Baseline Comparison: In Table IV, precision is measured on the validation split and the AUC on the dark-vessel test (Fig. 5). The log-odds score raises the AUC from 0.637 (corrected Forward) to 0.852, and to 0.878 with nα . Corrected Forward exceeds NN point-to-segment in precision (0.7776 vs. 0.6333) but not in AUC (0.637 vs. 0.651). Both log-odds variants exceed it on both metrics. NN time-weighted requires no fitting and combines distance with a linear time penalty. It outperforms the PHMM scores on both metrics (precision 0.9013 vs. 0.8580, AUC 0.904 vs. 0.852 and 0.878 for raw and nα ). For precision, the difference between raw log-odds
(a) PHMM Forward, corrected
(b) PHMM log-odds (nα variant)
(c) NN time-weighted
Fig. 4: AIS messages per trajectory for the Correct, Chosen and Should-be groups. The numbers next to the boxes are the means (orange) and medians (blue), and the legend in (c) applies to all panels. TABLE IV: Precision (validation split, n = 4,942) and AUC of the dark-vessel test (detections not rejected by the prefilter). Model PHMM Forward (α = 1) PHMM Forward (corrected) PHMM log-odds (raw) PHMM log-odds (nα ) NN point-to-segmenta NN (time-weighted) Random baseline
Precision
AUC (dark-vessel)
0.6938 0.7776 0.8580 0.8571 0.6333 0.9013 0.4141
0.604 0.637 0.852 0.878 0.651 0.904 –
a Selected from Euclidean, Haversine and point-to-segment (Sec. VI-E). The three differ by at most 0.0081 in precision and 0.0033 in AUC. The random baseline is the expected top-1 precision when a candidate is chosen uniformly at random.
and NN time-weighted is significant (McNemar χ2 = 65.9, p < 10−15 ). NN time-weighted alone is correct on 451 detections and raw log-odds alone on 237. For the nα variant, χ2 = 69.0 and p < 10−15 . The AUC gap is reported without a significance test. VIII. D ISCUSSION
Fig. 5: ROC of the dark-vessel test on the detections not rejected by the prefilter, for PHMM Forward (α = 1 and corrected), PHMM log-odds (raw and nα ), NN point-tosegment and NN time-weighted. Legend AUC values match Table IV.
A. Experimental Outcomes With a single RF detection, the raw Forward score is largely a trajectory prior (Sec. VI-C). The errors of the corrected Forward score reflect trajectory-level characteristics. It favors longer, more stationary trajectories with shorter inter-message distances, and the closest AIS point of its chosen candidate is farther from the RF detection in both time and distance. Length correction (α = 0.90) reduces the length bias but does not remove it. In the nα variant, the log-odds score no longer shows significant differences in intra-track distance gap, stationarity and AIS–RF time gap. The raw log-odds score raises precision from 0.7776 to 0.8580 and AUC from 0.637 to 0.852, but NN time-weighted stays ahead on both metrics (0.9013 and 0.904). Because the model structure was not varied, the effect of the scoring rule cannot be compared with the effect of the structure. The evidence supports only that this single-detection, hand-designed PHMM formulation
approaches but does not beat a tuning-free NN time-weighted baseline. The AIS–RF distance gap difference persists under the log-odds score. One hypothesis is that the hand-designed fδ does not match the generator’s noise density and underrewards the spatially closer candidate. Per candidate, the PHMM Forward recursion costs O(nk 2 ) with k = 5 states and a single RF detection, and the logodds score needs two passes (full and null model). NN timeweighted costs O(n) with no state recursion. B. Threats to Validity Reliance on synthetic RF data limits how far the findings generalize to real-world conditions. We reproduced UnseenLabs’ revisit patterns and introduced a Gaussian position error calibrated to UnseenLabs’ reported geolocation accuracy (σ = 800 m, Sec. V-B), but the generator uses one global
revisit schedule, no missed detections or false alarms, and an isotropic Gaussian error. fε and fδ were designed with knowledge of the generator, which may overstate performance on real noise. Several design choices weaken the evidence. The log-odds score was introduced after inspecting validation-split results. It was not tuned on them, but the design choice was motivated by them. κ was set informally, and the Forward baseline partly depends on it (Sec. VI-A). The bias tests use only misclassified detections, the log-odds score has fewer errors than corrected Forward and thus less power, and Experiments 1–3 use Welch’s test, which ignores the pairing by detection. A third limitation arises from the preprocessing of AIS data. Because trajectories were segmented at gaps longer than 551 seconds, the analysis is restricted to continuous tracks, which excludes vessels that go dark mid-voyage except near the start or end of the resulting segment. The dark-vessel test introduced in this study covers a related but different scenario, a vessel that has no AIS trajectory among the candidates, and does not address this limitation directly. Finally, the transition functions were hand-designed without input from maritime domain experts and are based solely on cargo vessels, so the model cannot be directly applied to other vessel types without retuning. IX. C ONCLUSION AND F UTURE W ORK To answer the question of how AIS and RF data can be matched to enhance ship identification, a Pair Hidden Markov Model (PHMM) was applied to align single RF detections with AIS trajectories, and compared with nearestneighbor baselines in matching and in detecting dark vessels. On synthetic RF detections generated from NOAA AIS data, the length-corrected Forward score reached a precision of 0.7776 on detections with multiple candidate AIS trajectories and a dark-vessel AUC of 0.637. The correction reduced but did not remove the length bias. With a single RF detection, the corrected Forward score is largely a trajectory prior. A log-odds score, which compares the full model with a null model without match transitions, raised precision to 0.8580 and AUC to 0.852. A time-weighted nearest-neighbor baseline that requires no fitting remained ahead (precision 0.9013, AUC 0.904). This single-detection, hand-designed PHMM formulation therefore approaches but does not beat the baseline. A bias towards candidates with a larger AIS–RF distance remains under the length-corrected log-odds score (nα variant). The identified limitations suggest directions for future research on the PHMM. Calibrating fδ to the noise model should come first, since the persistent AIS–RF distance bias may stem from a mismatch between the two. Although the length correction improved alignment performance, substantial differences remain between short and much longer trajectories. The other biases of the Forward score, such as the preference for stationary trajectories, should be reduced as well. Applying weighting factors to adjust transition weights or improving the preselection strategy could reduce them. Recognizing that no true match exists deserves particular attention, since it is
central to detecting the dark or AIS-manipulated vessels that motivate the use of RF data. Finally, additional AIS features not considered in this study should be incorporated into the model. For instance, vessel heading and status could be integrated into the transition weight functions or preselection approach. ACKNOWLEDGMENT The MARIT-D project has received co-funding from the Internal Security Fund - Police programme under grant agreement n° 101114216. During the preparation of this work, the authors used Claude Sonnet 5.5 (Anthropic) to refactor existing code and to partially generate new code in the accompanying GitHub repository. The authors reviewed and edited the code and take full responsibility for the content of the publication. R EFERENCES [1] A. Pirozhnikov and H. Schaminée, “Maritime’s Smart Tech Revolution,” IEEE Software, vol. 40, no. 3, pp. 89–94, 2023. [2] J. M. Mou, C. Van der Tak, and H. Ligteringen, “Study on collision avoidance in busy waterways by using AIS data,” Ocean Engineering, vol. 37, no. 5–6, pp. 483–490, 2010. [3] R. Meyer and W. Kleynhans, “Vessel classification using AIS data,” Ocean Engineering, vol. 319, 2025. [4] International Maritime Organization, “Guidelines for the installation of a shipborne Automatic Identification System (AIS),” IMO Circular SN/Circ.227, Jan. 2003, accessed: Nov. 11, 2026. [Online]. Available: https://wwwcdn.imo.org/localresources/en/OurWork/Safety/Documents/ AIS/SN.1-Circ.227.pdf [5] M. Balduzzi, A. Pasta, and K. Wilhoit, “A security evaluation of AIS automated identification system,” in Proceedings of the 30th Annual Computer Security Applications Conference (ACSAC). New York, NY, USA: Association for Computing Machinery, 2014, pp. 436–445. [6] Lloyd’s List Intelligence, “The Case of the Shanaye Queen,” May 2026. [Online]. Available: https://www.lloydslistintelligence.com/resou rces/blog/the-case-of-the-shanaye-queen [7] A. Kauranen, “Finland detects satellite navigation jamming and spoofing in Baltic Sea,” Reuters, Oct. 2024. [Online]. Available: https://www.reuters.com/world/europe/finland-detects-satellite-navigat ion-jamming-spoofing-baltic-sea-2024-10-31/ [8] A. M. Shimaoka, R. C. Ferreira, and A. Goldman, “The Evolution of CRISP-DM for Data Science: Methods, Processes and Frameworks,” SBC Reviews on Computer Science, vol. 4, no. 1, pp. 28–43, Oct. 2024. [9] Unseenlabs, “Space-based RF detection: The new benchmark for Maritime Domain Awareness,” White paper (e-book), 2026, free registration required; accessed: Nov. 11, 2026. [Online]. Available: https://contents.unseenlabs.space/en/ebook-download [10] D. Pigasse, “A new space-based Radio Frequency (RF) detection technology for maritime surveillance,” Presentation at the International Union of Marine Insurance (IUMI) Annual Conference 2024, Berlin, Germany, Sep. 2024, archived 5 Aug. 2025 by the Internet Archive; accessed 11 Nov. 2026. [Online]. Available: https://web.archive.org/web/20250805082304/https://iumi2024.com/w p-content/uploads/2024/09/1045 Damien-Pigasse Back-to-the-future V 01 FOR-ORGANIZER.pdf [11] E. Morando, F. C. Daffinà, T. Stahl, M. M. Corvino, and C. Pratola, “Multi-sensor data fusion to enhance maritime situational awareness,” in IGARSS 2023 - 2023 IEEE International Geoscience and Remote Sensing Symposium, 2023, pp. 6829–6831. [12] K. A. Sørensen, M. Veicherts, H. Pedersen, P. Heiselberg, and H. Heiselberg, “RF, SAR, and AIS data fusion for improved Arctic maritime surveillance,” SSRN preprint, 2024. [13] R. Durbin, S. R. Eddy, A. Krogh, and G. Mitchison, Biological Sequence Analysis: Probabilistic Models of Proteins and Nucleic Acids. Cambridge University Press, 1998.
[14] P. Nabende, J. Tiedemann, and J. Nerbonne, “Pair hidden Markov model for named entity matching,” in Innovations and Advances in Computer Sciences and Engineering, T. Sobh, Ed. Dordrecht: Springer Netherlands, 2010, pp. 497–502. [15] M. Louart, J.-J. Szkolnik, A.-O. Boudraa, J.-C. Le Lann, and F. Le Roy, “Detection of AIS messages falsifications and spoofing by checking messages compliance with TDMA protocol,” Digital Signal Processing, vol. 136, 2023. [16] O. Ballinger, “Automatic detection of dark ship-to-ship transfers using deep learning and satellite imagery,” in IGARSS 2024 - 2024 IEEE International Geoscience and Remote Sensing Symposium, 2024, pp. 8943–8948. [17] M. Rodger and R. Guida, “Classification-Aided SAR and AIS Data Fusion for Space-Based Maritime Surveillance,” Remote Sensing, vol. 13, no. 1, 2021. [18] A. Galdelli, A. Mancini, C. Ferrà, and A. N. Tassetti, “A synergic integration of AIS data and SAR imagery to monitor fisheries and detect suspicious activities,” Sensors, vol. 21, no. 8, 2021. [19] Y. Yang, F. Yang, L. Sun, T. Xiang, and P. Lv, “Multi-target association algorithm of AIS-radar tracks using graph matching-based deep neural network,” Ocean Engineering, vol. 266, 2022. [20] T. Zhang, S. Zhao, B. Cheng, and J. Chen, “Detection of AIS closing behavior and MMSI spoofing behavior of ships based on spatiotemporal data,” Remote Sensing, vol. 12, no. 4, 2020. [21] The Maritime Executive, “Satellite RF Tracking Follows the “Dark” Ships That AIS Can’t See,” Jul. 2022. [Online]. Available: https: //maritime-executive.com/article/satellite-rf-tracking-follows-the-dark-s hips-that-ais-can-t-see [22] HawkEye 360, “Locating Dark Ships in the Era of Spacebased RF Geolocation,” Apr. 2022, archived 6 Aug. 2025 by the Internet Archive; accessed 11 Nov. 2026. [Online]. Available: https://web.archive.org/web/20250806080155/https://www.he360.com/ resource/locating-dark-ships-in-the-era-of-space-based-rf-geolocation/ [23] C.-S. Yang and J. Cho, “Matching Method for Ship Identification Using Satellite-Based Radio Frequency Sensing Data,” Korean Journal of Remote Sensing, vol. 40, no. 2, pp. 219–228, 2024. [24] C.-S. Yang and S. J. K. Chowdhury, “Frequency-based analysis of matching accuracy between satellite radio frequency and AIS data for ship identification,” Journal of Marine Science and Engineering, vol. 13, no. 2, 2025. [25] European Space Agency, “UnseenLabs overview,” 2026, accessed: Nov. 11, 2026. [Online]. Available: https://earth.esa.int/eogateway/missions /unseenlabs/description [26] B. Zaman, D. Marijan, and T. Kholodna, “Interpolation-Based Inference of Vessel Trajectory Waypoints from Sparse AIS Data in Maritime,” Journal of Marine Science and Engineering, vol. 11, no. 3, Mar. 2023. [27] NOAA Office for Coastal Management, “Nationwide Automatic Identification System 2024,” Feb. 2025. [Online]. Available: https: //www.fisheries.noaa.gov/inport/item/73064 [28] S. Wang and Q. Meng, “Sailing speed optimization for container ships in a liner shipping network,” Transportation Research Part E: Logistics and Transportation Review, vol. 48, no. 3, pp. 701–714, 2012. [29] F. Pistorius, D. Grimm, F. Erdösi, and E. Sax, “Evaluation matrix for smart machine-learning algorithm choice,” in 2020 1st International Conference on Big Data Analytics and Practices (IBDAP), 2020, pp. 1–6.
Related documents
- Pairing AIS with RF: Analysis of a Markovian Approach for Maritime Data Fusion#1678782
- Harbormaster: Evidence-Gated, Replay-Safe Maritime Anomaly Detection on AWS#1155454
- Artificial Intelligence for Safety-Critical Systems in Industrial and Transportation Domains: A Survey#260306
- On the Need for Collaborative Intelligence in Cybersecurity#1178820
- Using automatic identification system technology to improve maritime border security#1653605
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive