Artificial intelligence for maritime security comparing convolutional neural network and vision transformer architectures under model specific preprocessing
This study aims to enhance maritime security by using Artificial Intelligence (AI) and Computer Vision (CV) techniques. For this purpose, we built and assessed image classification systems that decide whether a ship is present on the sea surface under varying real-world conditions. A maritime image dataset of 6104 images (2,860 containing a ship and 3244 background-only images) was used, covering different weather conditions such as cloudy, foggy, rainy, and sunny environments. Six deep learning architectures were evaluated, including a base Convolutional Neural Network (CNN) model, four transfer learning models (Xception, VGG16, MobileNetV2, and EfficientNetV2L), and a Vision Transformer (ViT) model. Each transfer learning model received inputs prepared with its own preprocessing function, and data augmentation was applied only to the training split, so that every architecture was trained under the input conditions it was designed for. The models were compared using multiple performance indicators, including accuracy, Type I and Type II errors, model size, FLOPs, and inference throughput and latency measured in a common runtime on the same GPU. On the binary ship-presence task, the six models reached accuracies between 0.9926 and 0.9972 on the same 1077 test images, and the differences between them are best read through their error counts rather than accuracy alone. MobileNetV2 gave the highest accuracy (0.9972) and the fewest misclassifications, with three false alarms and no missed vessels, using only 2.3 million parameters. To test whether these near-perfect results reflect the separability of the presence task rather than an artefact of training, the same six models and the same preprocessing pipeline were re-run on two independent public datasets: the Game of Deep Learning: Ship dataset as a five-class ship-type classification task and the SeaShips dataset as a six-class task. Accuracy fell to between 0.83 and 0.92 on the five-class dataset, with the Vision Transformer highest (weighted F1 0.9244), while on SeaShips the Base CNN achieved the highest accuracy (0.9612) and weighted F1-score (0.9613). The per-class pattern on the five-class dataset matched previously published results, in which Cargo and Tanker are the hardest categories. These results indicate that the relative performance of the architectures varies across datasets and vessel taxonomies. The preprocessing procedures reported for each architecture also give later researchers a reproducible reference for applying transfer learning to maritime imagery.
Authors
- Raza Hasan (ORCID: https://orcid.org/0000-0002-8089-837X)
- İsmet Göçer (ORCID: https://orcid.org/0000-0001-6050-1745)
- Zakirul Bhuiyan (ORCID: https://orcid.org/0000-0003-3745-376X)
- Shakeel Ahmad
Institutions
- Southampton Solent University (GB)
Publication Details
- Journal
- Discover Informatics
- Published
- 2026-11-25
- DOI
- https://doi.org/10.1007/s44564-026-00047-6
- Primary Topic
- Advanced Neural Network Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00