Weakly Supervised Segmentation of Macroalgae Through Gradient Analysis in Convolutional Neural Networks and Segment Anything Model

Segmenting marine macroalgae from optical imagery typically requires pixel-level annotations that are costly and hard to scale. This work proposes a weakly supervised pipeline that derives segmentation masks from image-level classification labels alone, eliminating manual spatial annotations. The method has three stages: (1) training a six-layer convolutional classifier from scratch, without weight transfer, on 1818 images of three macroalgae genera (Fucus, Laminaria, and Ulva); (2) analyzing the gradients of the classifier’s output with respect to all intermediate convolutional layers to build spatial heatmaps of the most decision-relevant regions; and (3) extracting keypoints via non-maximum suppression and using them as prompts for Segment Anything Model 2 (SAM2). We compare two importance metrics—sensitivity (gradient only) and contribution (gradient times activation)—and show that the former distributes importance more evenly across layers, preserving the resolution of early layers and yielding more precise localizations. The classifier reaches 94.5% accuracy with under 15 min of training on conventional hardware. On 42 manually annotated validation images used exclusively for evaluation, the complete pipeline achieves a mean IoU of 0.44, Dice coefficient of 0.51, precision of 0.70, and recall of 0.54, while 80% of the extracted keypoints fall inside the annotated algae.

Authors

Institutions

Publication Details

Journal
Applied Sciences
Published
2026-08-25
DOI
https://doi.org/10.3390/app16178470
Primary Topic
Marine and coastal plant biology
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Weakly Supervised Segmentation of Macroalgae Through Gradient Analysis in Convolutional Neural Networks and Segment Anything Model

Fernando Aguado Agelet, Pedro Orgeira-Crespo, Pablo Magariños-Docampo, Áurea Genoveva Carballo Carballo Pérez
Applied Sciences
Marine and coastal plant biology
article

Weakly Supervised Segmentation of Macroalgae Through Gradient Analysis in Convolutional Neural Networks and Segment Anything Model

Fernando Aguado Agelet, Pedro Orgeira-Crespo, Pablo Magariños-Docampo, Áurea Genoveva Carballo Carballo Pérez
article en

Abstract

Segmenting marine macroalgae from optical imagery typically requires pixel-level annotations that are costly and hard to scale. This work proposes a weakly supervised pipeline that derives segmentation masks from image-level classification labels alone, eliminating manual spatial annotations. The method has three stages: (1) training a six-layer convolutional classifier from scratch, without weight transfer, on 1818 images of three macroalgae genera (Fucus, Laminaria, and Ulva); (2) analyzing the gradients of the classifier’s output with respect to all intermediate convolutional layers to build spatial heatmaps of the most decision-relevant regions; and (3) extracting keypoints via non-maximum suppression and using them as prompts for Segment Anything Model 2 (SAM2). We compare two importance metrics—sensitivity (gradient only) and contribution (gradient times activation)—and show that the former distributes importance more evenly across layers, preserving the resolution of early layers and yielding more precise localizations. The classifier reaches 94.5% accuracy with under 15 min of training on conventional hardware. On 42 manually annotated validation images used exclusively for evaluation, the complete pipeline achieves a mean IoU of 0.44, Dice coefficient of 0.51, precision of 0.70, and recall of 0.54, while 80% of the extracted keypoints fall inside the annotated algae.

Applied SciencesVol. 16(17)
Universidade de Vigo (ES)
Life below water
Openalex Percentile: Top 12%
Marine and coastal plant biology
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.