A straight-line forecast extends a ship's current course and speed. It works for a few minutes in open water. It fails wherever ships turn: in traffic lanes, around headlands and on port approaches. Forecasts that learn the routes from past traffic can follow those turns [2, 3].
The straight-line forecast
The simplest forecast takes a ship's latest speed and course and draws a line ahead. It is also called dead reckoning, or a constant-velocity model. It needs no history and no map, so it is the default in many systems. The closest point of approach that radar plotting reports assumes the same thing: both ships hold their present course and speed.
For a few minutes ahead, in open water, the straight line is hard to beat. A large ship changes course slowly, and over a short time its track is nearly straight.
Where it fails
Ships rarely keep a straight line for long near the coast. The straight-line forecast goes wrong in four common cases.
- Turns. Ships alter course at the waypoints of a traffic separation scheme, around headlands and into ports. The straight line carries on past the turn.
- Speed changes. Ships slow down for a pilot, for traffic or for an anchorage. The straight line assumes the present speed lasts.
- Time. Small errors in course and speed grow with every minute. Studies of long-range prediction show that the straight-line model's uncertainty grows much faster over time than that of models built for longer horizons [1].
- The coast. A straight line can run across land, which no ship will do.
These failures have costs. A collision alarm raises a warning for two ships that would in fact turn apart. It can stay quiet for two ships that turn toward each other. An arrival time computed from straight-line distance ignores the length of the real route.
What learning from past traffic adds
Ships in a given area tend to repeat the same routes. They follow the lanes, round the same headlands and turn at the same waypoints. Research has shown that these routes can be found automatically in historical AIS data [2]. Forecasts can then follow the route a ship is most likely on [3].
Learned forecasts still make errors, and their errors still grow with time. One 2022 deep-learning study reports mean errors of about 1.2 to 2.2 km at 25 minutes ahead. At 75 minutes, its errors grow to about 4 to 5 km [4]. A forecast should therefore come with a range around it, not only a single line [1, 4].
What it changes in practice
| Use | Straight-line forecast | Forecast that follows the usual routes |
|---|---|---|
| Collision alerts | Raises alarms for ships that will turn apart, and can miss ships turning toward each other | Follows the turns, so its warnings fit what the ships will really do |
| Off-route alerts | Has no expected route, so it cannot tell when a ship leaves one | Knows the usual route, so a ship that leaves it stands out |
| Arrival times | Straight distance divided by the present speed | Distance along the likely route, at the speeds ships keep on it |
| Planning ahead | Useful for minutes | Useful further ahead, with a stated range |
The limits
A forecast that learns from past traffic needs that traffic. In waters with little history, it has little to learn from. Rare manoeuvres stay hard to foresee, and a new or changed route takes time to appear in the data.
A good forecast says when it does not know. Outside the waters it was built for, it should fall back to a simpler forecast and say so, rather than guess with false confidence.
Questions to ask of any forecast
- How far ahead does it forecast, and how large is its error at 30 and at 60 minutes?
- How does that error compare with a straight-line forecast in the same waters?
- Does each forecast come with a range, and does the range hold as often as it claims?
- What happens outside the waters the forecast was built for?
- How are its arrival times checked against real arrivals?
Sources
- Modeling vessel kinematics using a stochastic mean-reverting process for long-term prediction (Millefiori, Braca, Bryan, Willett), IEEE Transactions on Aerospace and Electronic Systems 52(5), 2016.
- Vessel Pattern Knowledge Discovery from AIS Data: A Framework for Anomaly Detection and Route Prediction (Pallotta, Vespe, Bryan), Entropy 15(6), 2013.
- Knowledge-based vessel position prediction using historical AIS data (Mazzarella, Arguedas, Vespe), Sensor Data Fusion 2015, European Commission Joint Research Centre.
- Probabilistic Maritime Trajectory Prediction in Complex Scenarios Using Deep Learning (Sørensen, Heiselberg, Heiselberg), Sensors 22(5), 2022.