Building reliable machine learning pipelines with vessel data
A vessel prediction project revealed how repeated records can distort model evaluation. A lakehouse reference implementation separated raw data from cleaned observations and model inputs, while MLflow recorded the trained models. The work showed why checking data and comparing predictions with a simple baseline matter.
The archive contained more than 829,000 rows, but almost 96 per cent were additional copies of existing vessel-and-timestamp records. The volume therefore gave a misleading impression of how much distinct information was available. This finding shaped a bachelor’s thesis at Turku University of Applied Sciences, which examined an Azure-targeted lakehouse design using maritime data as a practical case (Gulcan, 2026).
Giving each processing stage a purpose
Fintraffic’s Digitraffic service provides open vessel location data collected from Automatic Identification System (AIS) messages (Fintraffic, n.d.). An earlier student project had stored these reports in PostgreSQL. The thesis examined how to organise the data for repeated processing and machine learning.
The lakehouse design divided that work into Bronze, Silver and Gold layers using Delta Lake tables. Bronze retained the source records. Silver applied validation and identified distinct reports by vessel identifier and report time. Gold organised the cleaned observations into sequences for model training. Records rejected by validation remained available for inspection.
These boundaries made specific checks possible. Reprocessing the same archive left the Silver table unchanged. The local implementation and Databricks Free Edition produced the same 13,031 model input sequences. This demonstrated consistent processing across the tested environments; it did not establish that a lakehouse was faster or cheaper than a relational database.
Recording how a prediction was produced
Repeatable processing also required a connection between the data and the trained model. Machine learning operations, or MLOps, addresses how models are tracked and managed beyond an individual experiment. In this project, MLflow recorded training runs and registered model versions, including preprocessing.
Training used a specified version of the Gold data. Reloading the registered models reproduced all 2,988 held-out predictions exactly within the recorded environments. This provided a check that the saved model contained what was needed to reproduce its predictions.
Reproducibility did not mean identical results after retraining elsewhere. Some predictions of vessel direction differed after retraining in environments with different software dependencies. Recording those dependencies therefore remained part of the model’s history.
A useful model must beat a simple alternative
A separate evaluation compared the Gradient Boosting model with persistence: predicting that a vessel’s next reported position would be its last known position. In the test using previously unseen vessel identifiers, the model’s average position error was about 2.4 kilometres. Persistence reduced that average to 657 metres.
Many test sequences had low reported speeds, so these figures describe the selected archive rather than vessel prediction in general. Still, persistence also had lower mean and median position error in the separate future-observation test. A high score for latitude prediction alone did not make the trained model suitable for use.
What the implementation established
The work produced a tested reference for connecting data quality, processing stages and model records. Validation covered local execution and Databricks Free Edition. Azure Data Lake Storage Gen2 integration and continuous production operation remained unverified.
The practical contribution was a workflow whose results could be examined: which reports were retained, which data version trained a model, and whether that model improved on a simple alternative. A reliable pipeline needs evidence at each of those steps before its predictions can support operational decisions.
References
Fintraffic. (n.d.). Marine traffic. Digitraffic. Retrieved 16 November 2026 from https://www.digitraffic.fi/en/marine-traffic/
Gulcan, R. (2026). Azure Lakehouse with Databricks and MLOps: Design and implementation of a real-time AIS data pipeline and trajectory prediction model using Digitraffic open maritime data [Unpublished bachelor’s thesis]. Turku University of Applied Sciences.
Image credit: AI-generated illustration created with OpenAI ImageGen, 2026.