SPOT-Net: Selective State-Space Scanning for Accurate and Efficient Skin Lesion Segmentation in Resource-Constrained Settings

Razan Alharith, Zaid Al-Huda, Mugahed A. Al-antari, Yeong Hyeon GuBHI 2026

TL;DR

Melanoma is highly treatable if caught early, but long dermatology referral waits can turn a curable lesion fatal. SPOT-Net is a sub-million-parameter (0.52 M) segmentation model designed to run offline on a commodity tablet's CPU, giving home-care nurses accurate lesion boundary masks—and a simple on-device triage score—in about a quarter of a second.

What Problem Does This Paper Address?

Home healthcare nurses see high-risk patients weekly and are well positioned to spot suspicious skin lesions early. However, automating skin lesion segmentation at the bedside is tricky: dermoscopic images have irregular, diffuse borders, hair occlusion, and specular reflections.

Existing deep learning models fall into a frustrating trade-off:

  • Convolutional networks (like U-Net) are lightweight, but their bounded receptive fields struggle with large, irregular lesions—the exact ones most likely to be malignant.
  • Transformers and Mamba-based models capture global context well, but typically require tens of millions of parameters and GPU acceleration, ruling out offline tablet deployment.

SPOT-Net aims to bridge this gap: delivering global-context segmentation under a sub-million-parameter budget suitable for CPU-class hardware.

Methods

SPOT-Net is a hierarchical encoder–decoder (four encoder stages E1–E4, three decoder stages D1–D3) built around a unified residual block called SPOTBlock.

Fig. 1. Overview of the SPOT-Net architecture. The encoder (E1–E4) progressively extracts features using SPOTBlocks with S2CAN and BEA; the MSCP bottleneck aggregates multi-scale context at the deepest stage. Skip connections feed the decoder (D1–D3), which refines features via CRA-equipped upsampling stages with deep supervision. The Multi-scale Feature Refiner (MFR) fuses all encoder and decoder levels before the final segmentation head. An on-device module computes an ABCD-derived triage signal directly from the output mask without cloud connectivity.

Three custom components carry the design:

  1. S²CAN (Selective Spatial Scanner): A four-directional Mamba state-space scan (along rows and columns) that captures global context in linear $O(L)$ time. To fit the sub-million-parameter budget, it shares a single state-space operator between the forward and backward passes of each axis (using two operators instead of four) and is omitted at the full-resolution E1 stage to avoid overhead.
  2. BEA (Border-aware Edge Attention): A boundary-sharpening module that applies fixed Gaussian, Laplacian-of-Gaussian (LoG), and Difference-of-Gaussians (DoG) kernels. It uses DoG maps as queries, LoG maps as keys, and original features as values in scaled dot-product attention—steering attention toward lesion margins for only ~0.01 M trainable parameters.
  3. MFR (Multi-scale Feature Refiner) & MSCP: An atrous-convolution bottleneck (MSCP) aggregates multi-scale context at E4, while MFR fuses all five encoder and decoder levels (D1, E1–E4) at full input resolution before the final prediction head.

From the predicted binary mask, an on-device module also computes a lightweight ABCD-derived triage signal averaging three geometric cues: area, border irregularity, and asymmetry.

Datasets

SPOT-Net was trained from scratch and evaluated on three public dermoscopy benchmarks:

  • ISIC-2017: 2,000 images (1,250 train / 150 validation / 600 test).
  • ISIC-2018: 3,694 images (2,594 train / 100 validation / 1,000 test).
  • PH²: 202 images (142 train / 40 validation / 20 test) from an independent institution, testing generalisation in a data-limited regime.

To test cross-domain transfer beyond medical imaging, the authors also trained and evaluated SPOT-Net from scratch on ECSSD (1,000 complex natural images: 700 train / 100 validation / 200 test).

Key Insights and Ideas

  • Inductive biases beat raw parameter count: By pairing linear-complexity global scanning (S²CAN) with fixed-kernel edge priors (BEA), a 0.52 M-parameter model can match or outperform architectures over $50\times$ larger.
  • Smart compute allocation: Rather than spending parameters on heavy weights, SPOT-Net spends its 4.30 GFLOPs where parameters are cheap—full-resolution local convolutions in E1, one SSM state update per pixel, and full-resolution multi-level fusion in MFR.
  • General boundary-aware operators: Without any medical-specific tuning, SPOT-Net still segments cluttered natural scenes on ECSSD (0.7507 F1 / 0.7540 mIoU), showing that S²CAN and BEA act as general-purpose boundary-aware operators.

Key Results

Across nine evaluated models, SPOT-Net sets a new accuracy–efficiency frontier:

  • ISIC-2018: Ranks 1st in F1 (0.8828), mIoU (0.8504), and Recall (0.9284), beating the 27.43 M-parameter VM-UNet by 0.0169 F1 with $53\times$ fewer parameters.
  • PH²: Ranks 1st in F1 (0.9298) and mIoU (0.8850), staying stable on the 142-image training set where heavier models like EMCADNet-b0 drop to 0.6396 F1.
  • ISIC-2017: Achieves the highest Precision (0.9238) and mIoU (0.8266), and second-best F1 (0.8410).
Fig. 4. Accuracy–efficiency frontier: mIoU vs. parameter count on (a) ISIC- 2017 and (b) PH2.
  • Stability & Edge Deployment: Across three random seeds on PH² (single-pass, no test-time augmentation), F1 is 0.9272 ± 0.0033. On an Apple Silicon ARM64 CPU, inference takes 258.0 ± 10.7 ms per image (3.9 FPS) within 612.2 ± 2.6 MB peak memory, with a 2.2 MB model footprint.

Limitations and Future Work

  • Dermoscopic vs. consumer cameras: All evaluations use dermoscopic images; validating on tablet-captured, consumer-camera photos is the next step toward real bedside use.
  • Triage border artifact: While the triage signal's area and asymmetry cues are internally reliable (Pearson $r > 0.79$), the border component is not ($r = -0.22$ at worst), likely due to a digital-perimeter measurement artifact that needs a smoother contour estimator.
  • INT8 quantisation: PyTorch's CPU backends do not yet support INT8 post-training quantisation for this architecture (dynamic quantisation converts no layers on ARM, and static graph-mode is blocked by the selective scan's data-dependent recurrence).
  • Clinical validation: Real-world referral and workload benefits are projected from segmentation accuracy and require a prospective study with home-care nurses.

Summary updated

BibTeX
@inproceedings{alharith2026spot,
  author = {Razan Alharith and Zaid Al-Huda and Mugahed A. Al-antari and Yeong Hyeon Gu},
  title = {{SPOT-Net: Selective State-Space Scanning for Accurate and Efficient Skin Lesion Segmentation in Resource-Constrained Settings}},
  booktitle = {BHI},
  year = {2026},
  url = {https://openreview.net/forum?id=Ic52jG2bi9},
}
Figure