Underwater Image Feature Extraction and Classification Using a Multi-Scale Vision Transformer with Cross-Scale Biased Attention Fusion
Source abstract
Abstract
Underwater image analysis is affected by light scattering, wavelength-dependent attenuation, low contrast, and suspended particles, which reduce the discriminative visual features. Current multi-scale Vision Transformers are not well-suited to these degradations because they cannot effectively fuse features across scales to achieve accurate classification. Although Vision Transformers (ViTs) can model long-range interactions, single-scale patch tokenization remains suboptimal for underwater images, where both fine-grained textures and global structures are important. This study proposes a Multi-Scale Vision Transformer (MS-ViT) with Cross-Scale Biased Attention Fusion (CSBAF) for underwater image classification. Before transformer encoding, the CSBAF introduces a learnable source–target scale-pair bias and an input-dependent scale-reliability gate. This differs from standard multi-scale fusion and cross-attention methods, which mainly concatenate features or exchange information between scale branches. The proposed design enables the model to emphasize reliable scales while suppressing degraded-scale responses. A hybrid dataset containing 14,000 images from the Roboflow Aquarium and RUIE datasets across five classes was used for evaluation. MS-ViT with CSBAF achieved 88.9% accuracy and an 88.8% F1-score, outperforming the CNN baseline by 7.6% and state-of-the-art transformer models, including UWFormer, DP-ViT, and CvT, by 2.3–4.2%. Ablation studies showed a 1.7% accuracy improvement over simple multi-scale concatenation, whereas cross-dataset testing achieved 84.4% accuracy, indicating reasonable cross-dataset robustness. These results demonstrate that explicit scale–aware fusion can improve transformer-based underwater visual understanding.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Image Enhancement Techniques · Advanced Image Fusion Techniques · Advanced Neural Network Applications
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
State Key Laboratory of Extreme Environment Optoelectronic Dynamic Measurement Technology and Instrument, North University of China, Taiyuan 030051, China
Shanxi Key Laboratory of Intelligent Detection Technology & Equipment, North University of China, Taiyuan 030051, China
Funding
provincial Natural Science Foundation of Shanxi · National Nature Science Foundation of China · Shanxi Key Research and Development Program · China Postdoctoral Science Foundation
References (37)
Show source-provided references
1. Salhaoui, M., Molina-Molina, J.C., Guerrero-González, A., Arioua, M., and Ortiz, F.J. (2020). Autonomous Underwater Monitoring System for Detecting Life on the Seabed by Means of Computer Vision Cloud Services. Remote Sens., 12.10.3390/rs12121981 ↗
2. Underwater image enhancement using colour balancing and morphological residual processing through gamma correction10.1038/s41598-025-33170-9 ↗
3. Tian, S., Sirikham, A., Konpang, J., and Wang, C. (2026). A Deep Feature Fusion Underwater Image Enhancement Model Based on Perceptual Vision Swin Transformer. J. Imaging, 12.10.3390/jimaging12010044 ↗
4. Lightweight underwater object detection method based on multi-scale edge information selection10.1038/s41598-025-13566-3 ↗
5. Xie, L., Chen, H., and Shu, J. (2026). Degradation-Aware Multi-Stage Fusion for Underwater Image Enhancement. J. Imaging, 12.10.3390/jimaging12010037 ↗
6. Color correction model for underwater images using a lightweight truncated U-Net10.1007/s10791-025-09808-7 ↗
7. Ma, Y., Cheng, Y., and Zhang, D. (2025). Comparative analysis of traditional and deep learning approaches for underwater remote sensing image enhancement: A quantitative study. J. Mar. Sci. Eng., 13.10.3390/jmse13050899 ↗
8. Jibinsingh, B.R. (2025). Recent Developments in Convolutional Neural Networks for Image-Based Tasks. Archives.
9. Gupta, N., Priya R, V., and Verma, C. (2025). Convolutional Neural Networks: Architecture, Feature Learning, and Evolution. SSRN Electron. J.10.2139/ssrn.5404121 ↗
10. A multi-scale attention-based Swin transformer model for medical images segmentation10.1038/s41598-025-22649-0 ↗
11. Seeing Through the Haze: A Comprehensive Review of Underwater Image Enhancement Techniques10.1109/ACCESS.2024.3465550 ↗
12. Remote sensing of coral reef habitats in Madagascar using Sentinel-2 satellite images10.4314/wiojms.v23i2.4 ↗
13. Are vision transformers replacing convolutional neural networks in scene interpretation? A review10.1007/s42452-025-07574-1 ↗
14. Vision Transformers in Medical Imaging: A Comprehensive Review of Advancements and Applications Across Multiple Diseases10.1007/s10278-025-01481-y ↗
15. A token efficient vision framework using patch residual transformer for Alzheimer’s disease diagnosis10.1038/s41598-025-33965-w ↗
16. Review of Underwater Machine Vision Technology and Its Applications10.4031/MTSJ.51.1.8 ↗
17. A Vision Transformer Based CNN for Underwater Image Enhancement ViTClarityNet10.1038/s41598-025-91212-8 ↗
18. Chen, W., Lei, Y., Luo, S., Zhou, Z., Li, M., and Pun, C.-M. (2024). UWFormer: Underwater Image Enhancement via a Semi-Supervised Multi-Scale Transformer. Proceedings of the 2024 International Joint Conference on Neural Networks (IJCNN), IEEE.10.1109/IJCNN60899.2024.10651366 ↗
19. Underwater dam image enhancement based on CNN-transformer fusion10.1038/s41598-025-23746-w ↗
20. Sun, Y., Zheng, H., Zhang, G., Ren, J., Xu, H., and Xu, C. (2022). DP-ViT: A Dual-Path Vision Transformer for Real-Time Sonar Target Detection. Remote Sens., 14.10.3390/rs14225807 ↗
21. Underwater image enhancement using hybrid transformers and evolutionary particle swarm optimization10.1038/s41598-025-14439-5 ↗
22. Advances in underwater image and video enhancement systematic review of conventional and deep learning-based method10.1007/s44352-025-00023-0 ↗
23. CATNet: Cascaded Attention Transformer Network for Marine Species Image Classification10.1016/j.eswa.2024.124932 ↗
24. FishAI: Automated Hierarchical Marine Fish Image Classification with Vision Transformer
25. Fuad, T.R., Ahmed, S., and Ivan, S. (2025). AQUA20: A Benchmark Dataset for Underwater Species Classification under Challenging Conditions. arXiv.10.1007/s13369-026-11231-z ↗
26. Rost, T.M. (2026). Label-efficient underwater species classification with semi-supervised learning on frozen foundation model embeddings. arXiv.
27. PE-Transformer: Path enhanced transformer for improving underwater object detection10.1016/j.eswa.2024.123253 ↗
28. Tan, C., Liu, J., Zhao, Z., Liu, R., Tan, P., Yao, A., Pan, S., and Dong, J. (2025). ETAFHrNet: A Transformer-Based Multi-Scale Network for Asymmetric Pavement Crack Segmentation. Appl. Sci., 15.10.3390/app15116183 ↗
29. MHF-UIE: A multi-task hybrid fusion method for real-world underwater image enhancement10.1038/s41598-025-02942-8 ↗
30. Fine-scale interplay between decline and growth determines the spatial recovery of coral communities within a reef10.1111/ecog.06818 ↗
31. Zhu, J., Yu, M., Wang, F., Zhou, G., Jiao, N., Xiang, Y., and You, H. (2025). Graph-Based Multi-Resolution Cosegmentation for Coarse-to-Fine Object-Level SAR Image Change Detection. Remote Sens., 17.10.3390/rs17223736 ↗
32. Underwater acoustic classification across diverse sea environments using adaptive regularization and knowledge encoding10.1007/s44443-025-00110-6 ↗
33. Underwater sign language recognition using convolutional and transformer models: A comparative study in clear and murky conditions10.1007/s11760-026-05314-5 ↗
34. Zhu, W., Wang, P., and Luan, K. (2025). CDSANet: A CNN-ViT-Attention Network for Ship Instance Segmentation. J. Imaging, 11.10.3390/jimaging11110383 ↗
35. Underwater fish image recognition based on knowledge graphs and semi-supervised learning feature enhancement10.1038/s41598-025-29396-2 ↗
36. Domain-Adaptive Faster R-CNN for Non-PPE Identification on Construction Sites from Body-Worn and General Images10.1038/s41598-026-35148-7 ↗
37. Domain Adaptation Using Transformer Models for Automated Detection of Exterior Cladding Materials in Street View Images10.1038/s41598-025-32524-7 ↗