3. Results
This section presents an evaluation of the results from both local and global model training. As previously noted, density matrices are inherently sparse due to vessel routes and nearby land areas lacking vessel presence. To address this, Sparse Mean Square Error (Sparse MSE) [
39] was used as the primary accuracy metric, focusing on prediction precision for non-zero cells, providing a more meaningful evaluation of model performance in sparse contexts. First, to demonstrate the quality of the CNN model depicted in
Figure 6, the authors performed a comparison between the chosen model and three other state-of-the-art approaches available in the literature, as presented in
Table 5. The comparison was made by training all models with a month worth of data extracted from the Piraeus dataset. The selected month was the one in which the 4-layer CNN mode of
Figure 7 presented the best result.
Table 5.
Prediction accuracy comparison between the 4-layer CNN model and three other state-of-the-art models. The metric used is Sparse MSE. The ‘*’ means that, although the model presents the best SparseMSE result, it has also really high computing infrastructure requirements.
Table 5.
Prediction accuracy comparison between the 4-layer CNN model and three other state-of-the-art models. The metric used is Sparse MSE. The ‘*’ means that, although the model presents the best SparseMSE result, it has also really high computing infrastructure requirements.
| Model |
Reference |
Sparse MSE (best) |
| 4-layer CNN |
Figure 7 |
0.0028 |
| CNN-LSTM Autoencoder |
[40] |
0.00065* |
| Keras CNN-LSTM Autoencoder |
[41] |
0.0323 |
| Pyramid CNN Autoencoder |
[42] |
0.0079 |
The 4-layer CNN model proposed in this work performs better than two of the state-of-the-art models, in terms of Sparse MSE. The best-performing model is the one proposed in [
40] but it presents severe limitations in terms of model training performance, since it is a 11-layer CNN-LSTM with transformation steps between layers. The proposed 4-layer CNN outperforms most of the models in terms of accuracy and presents a good balance in terms of computing performance and prediction accuracy.
To determine convergence, each local CNN model was trained for 100 epochs.
Figure 8 depicts the Piraeus model’s training results over 100 epochs, with the horizontal axis representing epoch count and the vertical axis showing training/validation loss (right) and Sparse MSE (left). The global federated weights were sent back to local clients, where they were validated and compared with local weights using Sparse MSE.
Table 6 presents the validation results for both local and global Sparse MSE across the three datasets. In the first iteration, the local models for Piraeus and Kystverket outperformed the global model, though the differences were small. Conversely, the global model performed better on the Brest dataset.
Table 6.
Sparse MSE validation results for local and global models for the three datasets (first month of data). Best result for each dataset is marked in bold.
Table 6.
Sparse MSE validation results for local and global models for the three datasets (first month of data). Best result for each dataset is marked in bold.
| Dataset |
Local Sparse MSE (first month) |
Global Sparse MSE (first month) |
| Brest |
0.0312 |
0.0294 |
| Piraeus |
0.0030 |
0.0048 |
| Kystverket |
0.0023 |
0.0030 |
The discrepancy in results for the Brest dataset, along with higher error values for both local and global models, stems from its characteristics. The Brest AoI is significantly larger—nearly four times Piraeus and three times Kystverket—yet it contains only half the monthly AIS records of Kystverket and a quarter of Piraeus (see
Table 2). This results in much sparser density matrices, making accurate VTD prediction more difficult. This situation mirrors the “not enough data” challenge in FL, where clients with limited data benefit from aggregated global weights. This aligns with the results in
Table 6, in which the global model outperforms the local model on Brest data, a trend that becomes more evident in subsequent lifelong learning iterations.
Figure 8.
MSE loss (right) and Sparse MSE (left) values for training and validation of the Piraeus local model.
Figure 8.
MSE loss (right) and Sparse MSE (left) values for training and validation of the Piraeus local model.
After the initial iteration, each subsequent round updated local models with one month of data. Local weights were sent to the server to update the global model, whose new weights were then propagated back to clients and compared against updated local weights using Sparse MSE. The better-performing weights, local or global, were retained for the next iteration. From the second month onward, global weights generally outperformed local ones, with only minor exceptions. This is well expressed in
Table 7, which depicts the validation Sparse MSE results for both local and global models during the best-performing month overall.
Table 7.
Sparse MSE validation results for local and global models for the three datasets (best month). Best result for each dataset is marked in bold.
Table 7.
Sparse MSE validation results for local and global models for the three datasets (best month). Best result for each dataset is marked in bold.
| Dataset |
Local Sparse MSE (best) |
Global Sparse MSE (best) |
| Brest |
0.0276 |
0.0072 |
| Piraeus |
0.0028 |
0.0013 |
| Kystverket |
0.0018 |
0.0016 |
The results indicate that, overall, the global model improves through iterations and eventually outperforms local models in predicting hourly VTD across all AoIs. Still, aside from the Brest case, both local and global models yield low and closely aligned Sparse MSE values, demonstrating strong predictive performance. However, ongoing testing with more data over multiple years is needed to validate these findings, particularly to assess seasonality effects and potential overfitting in both local and global models.
Figure 9 presents the VTD prediction grids for a sample hour in the month of March (i.e., third iteration) for all three AoIs: the left column represents the Brest AoI; the centre column represents the Kystverket AoI; and the right column represents the Piraeus AoI.
Figure 9.
Sample predictions from local and global models for the best-performing month (based on Sparse MSE): ground truth (top), local model prediction (middle), and federated model prediction (bottom) for Kystverket (left), Piraeus (centre), and Brest (right) datasets. The figures use a red-to-white colour gradient, with darker reds denoting lower VTD and lighter shades indicating higher VTD values.
Figure 9.
Sample predictions from local and global models for the best-performing month (based on Sparse MSE): ground truth (top), local model prediction (middle), and federated model prediction (bottom) for Kystverket (left), Piraeus (centre), and Brest (right) datasets. The figures use a red-to-white colour gradient, with darker reds denoting lower VTD and lighter shades indicating higher VTD values.
The top row shows the ground truth for the sample hour, while the middle and bottom rows display the VTD predictions from the local and global models, respectively. The outputs align with the results in
Table 7: (i) predictions for the Brest AoI are generally less accurate, though the federated model outperforms the local one; (ii) for both Kystverket and Piraeus, local and global models provide strong predictions, with the global model performing slightly better. As part of the European Commission-funded VesselAI project, a visualization dashboard was developed using Apache Superset [
43] to analyse and evaluate both models’ results against ground truth data for specific periods (e.g., day, hour).