SAM2Flow: Interactive Optical Flow Estimation with Dual Memory for in vivo Microcirculation Analysis

Luo-Jie Huang, Ryan Zhang, M. Morakis, Michaela Taylor-Williams, G. McKay +1 more
1/1/2025

No confident code implementation found for this paper.

Abstract

Analysis of noninvasive microvascular blood flow can improve the diagnosis, prognosis, and management of many medical conditions, including cardiovascular, peripheral vascular, and sickle cell disease. This paper introduces SAM2Flow, an interactive optical flow estimation model to analyze long Oblique Back-illumination Microscopy (OBM) videos of in vivo microvascular flow.

Show full abstract

Inspired by the Segment Anything Model (SAM2), SAM2Flow enables users to specify regions of interest through user prompts for focused flow estimation. SAM2Flow also incorporates a dual memory attention mechanism, comprising both motion and context memory, to achieve efficient and stable flow estimations over extended video sequences. According to our experiments, SAM2Flow achieves SOTA accuracy in foreground optical flow estimation on both microvascular flow and public datasets, with a fast inference speed of over 20 fps on 512 × 512 inputs. Based on the temporally robust flow estimation, SAM2Flow demonstrated superior performance in downstream physiological applications compared to existing models. The code is available at: https://github.com/DurrLab/SAM2Flow .

DOISemantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{huang2025samflow,
  title  = {SAM2Flow: Interactive Optical Flow Estimation with Dual Memory for in vivo Microcirculation Analysis},
  author = {Luo-Jie Huang and Ryan Zhang and M. Morakis and Michaela Taylor-Williams and G. McKay and Nicholas J. Durr},
  year   = {2025},
  doi    = {10.52202/085713-1059},
  url    = {https://doi.org/10.52202/085713-1059},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/085fe443f706599e5140c2972e867e49b83a15e7.svg)](https://codeofpaper.com/paper/085fe443f706599e5140c2972e867e49b83a15e7)

Discussion