Landsat-Sentinel-2 floating algal bloom mapping using Vision Transformers: Model description, implementation, and examples
Abstract
Coastal algal bloom monitoring requires frequent, spatially detailed, and globally consistent observations provided by Landsat-8/9 and Sentinel-2 A/B/C. Together, these missions provide more than a decade of high-resolution multispectral imagery with near-global coverage every 2–3 days, enabling detection of fragmented bloom structures not resolvable by coarse ocean-color sensors. However, their use in aquatic environments remains challenging due to limited spectral coverage and the lack of harmonized reflectance products. As an alternative to traditional bio-optical methods, deep learning-based image classification provides a data-driven approach that can overcome many of these limitations. This study presents implementation and systematic evaluation of vision transformer-based coastal algal bloom mapping using 30-m Landsat-Sentinel-2 images. A globally distributed algal bloom patch dataset (24,265 training and 12,255 validation patches, each 30 m 256 × 256 pixels) was generated in coastal algal bloom-prone hotspots worldwide. Four transformer-based architectures, Vanilla Vision Transformer, Swin Transformer, SegFormer, and Masked Autoencoders, were implemented and compared against a standard convolutional baseline model (ResUNet) for fine-scale bloom detection. The models were evaluated across diverse optical water types, atmospheric states, and surface environments. Under strict pixel-wise evaluation, F1-scores ranged from 0.50 (Vanilla ViT) to 0.58 (ResUNet), with the Swin Transformer following closely at 0.57. When accounting for a one-pixel error margin, performance improved significantly, ranging from 0.62 for MAE (Prithvi) to 0.73 for the Swin Transformer, highlighting architecture-specific strengths and limitations across scenarios. The models did not produce glint-induced false positives, which are common to fixed-threshold spectral indices under thin cloud cover and specular reflection, but algae obscured by severe glint frequently went undetected. Additionally, a comparison with MODIS-derived products highlighted the benefits and limitations of a higher spatial resolution algal bloom product in detecting fragmented and irregularly affected bloom areas. These results identify the conditions under which each architecture is suited for 30-m floating algal bloom mapping and provide a benchmark and reference dataset for future operational development.
// Source
Authors: Thainara Munhoz Alexandre de Lima, Vitor Martins
Institutions: Mississippi State University