Flow-guided Localization: Methods & Applications
- Flow-guided Localization is a technique that uses dynamic flow cues instead of static landmarks to infer positions in diverse settings.
- In nanoscale scenarios, FGL leverages circulation time and event detection from energy-harvesting nanodevices operating under strict size and power constraints.
- Recent advances employ graph neural networks and set models to enhance accuracy while managing trade-offs in detection, transmission, and energy consumption.
Searching arXiv for papers on flow-guided localization and related usages. Flow-guided Localization (FGL) refers, in the cited literature, to localization formulations that use flow, motion, or iterative transport as the principal signal for inferring location. In in-body nanoscale localization, FGL associates the location of a sensed biological event with raw reports produced by energy-harvesting nanodevices that drift passively with blood flow and communicate through THz links; a raw report is modeled as , where is a circulation-related time quantity and is an event bit (Bartra et al., 2023, Pascual et al., 2023). In other research lines, the same label or a closely related formulation is used for optical-flow-guided visual sound source localization, VLM-guided flow matching for lesion-mask refinement, flow-field-based robot localization and mapping, and iterative flow prediction for cross-view geolocalization (Singh et al., 2022, Wang et al., 7 Apr 2026, Song et al., 2019, Lehyeh et al., 23 Mar 2026). A common structural feature across these usages is that localization is derived from dynamic observables rather than from static appearance or discrete landmarks alone.
1. In-body nanoscale FGL: system model and observables
In the bloodstream setting, nanodevices are injected into the bloodstream, drift passively with blood flow, and operate under stringent size and power constraints. Their physical size is on the order of red blood cells (), they have no onboard localization sensors, and they rely on pulse-based THz ultra-short-range communication to a single on-body anchor placed at the torso near the heart (Galván et al., 2024). The bloodstream is abstracted either as a directed graph , whose nodes are anatomical regions and edges encode vascular adjacency, or as disjoint regions with fixed per-lap travel times and physiology-determined region-choice probabilities (Galván et al., 2024, Pascual et al., 2023).
The localization target is a single biological event in exactly one region $r^\*$ or 0. Nanodevices periodically sample for a binary diagnostic event, such as the presence or absence of a biomarker, and after each detection cycle emit a single positive-bit impulse if they detected the event (Galván et al., 2024). In the formal definition used for THz-based nanoscale FGL, the on-body anchor collects raw tuples
1
where 2 is the inter-arrival time since the last heart passage and 3 indicates whether the event was detected on that circulation (Bartra et al., 2023). In the standardized benchmarking workflow, anchors log quadruples
4
which are subsequently streamed into a localization algorithm (López et al., 2023).
The observable statistics are shaped by two non-idealities. First, event detection is imperfect because the device turns on only when its harvester reaches a turn-on threshold, which is modeled through a detection probability 5. Second, communication is unreliable because each heart passage only offers a limited upload opportunity, with successful THz transmission probability 6 that accounts for path loss, molecular absorption, self-interference, and energy availability (Pascual et al., 2023). This immediately distinguishes nanoscale FGL from formulations that assume perfect sensing or deterministic communication.
2. Analytical raw-data modeling and standardized benchmarking
The analytical model in "Analytical Modelling of Raw Data for Flow-Guided In-body Nanoscale Localization" represents the observed time field as
7
where 8 is the number of laps through region 9 before upload and 0 captures turbulence and physiological variability (Pascual et al., 2023). The joint probability of 1 conditioned on the event being in region 2 is constructed from a multiset permutation factor
3
a path term
4
a final-lap upload term
5
and event-detection terms
6
For 7, the pmf at exactly 8 laps is
9
whereas for 0,
1
This formulation makes explicit how failed uploads create compound-lap timing and how intermittent sensing creates false negatives (Pascual et al., 2023).
The paper contrasts this model with an ideal scenario in which 2, so every lap is reset at upload, 3 for the first passage through 4, and 5 (Pascual et al., 2023). When 6, failed uploads prolong the reset time and 7 becomes a compound sum over multiple region times; when 8, a device may traverse the true region multiple times without setting the event bit (Pascual et al., 2023). This suggests that raw-data distortion is intrinsic to the sensing-and-link budget, not merely a post-processing artifact.
Validation against the BloodVoyagerS-plus-TeraSim simulator used the Mann–Whitney test for 9 distributions in regions with 0, ECDF maximum vertical distance 1 for 2, KL divergence between per-region 3 ratios, and a convergence test based on MSE between empirical frequencies and the analytical pmf (Pascual et al., 2023). Table II reports that for 4, the fraction of regions where the Mann–Whitney null hypothesis is accepted is 5 at 6, while for 7, it is 8 at 9 (Pascual et al., 2023). The same study states that high agreement is reflected by MW pass rates 0, ECDF distances 1, and 2, with discrepancies concentrated in mid-distribution shifts and in low-probability regions where one or two extra or missing detections strongly skew ratios (Pascual et al., 2023).
Standardized evaluation was proposed in "Toward Standardized Performance Evaluation of Flow-guided Nanoscale Localization" as an end-to-end workflow combining BloodVoyagerS mobility, ns-3/TeraSim THz communication, an energy-harvesting capacitor model, and a Python post-processor (López et al., 2023). The workflow specifies vessel topology, anchors, nanodevice population, target event locations, physical-layer parameters, energy-harvesting rates, antenna gains, SINR thresholds, and simulation duration; generates 3-D trajectories at 3; models capacitor charging and turn-on thresholds; logs raw packet fields; and computes standardized metrics such as point localization error, region detection accuracy, reliability, circulation-based detection time, synchronization accuracy, and energy metrics (López et al., 2023). The illustrative example reports occasional circulation times 4, reliability rising from 5 at 6 to 7 at 8, and region-detection accuracy 9 (López et al., 2023).
3. Learning-based nanoscale FGL: graph models, personalization, and set models
The GNN-based FGL framework casts the vascular topology as a heterogeneous graph whose nodes are anatomical regions plus an anchor node, and whose edges comprise region–region adjacency together with anchor–region links (Bartra et al., 2023). Region nodes use features such as type, travel time, and region-choice probability; anchor-node features are derived from the collected raw data by fitting a Gaussian Mixture Model to positive-bit circulation times and extracting mixture parameters 0 together with the total count 1 (Bartra et al., 2023). Message passing is implemented in Heterogeneous Graph Transformer style with type-specific projections, attention weights, and aggregation, followed by a per-region sigmoid readout trained by weighted cross-entropy to counter class imbalance (Bartra et al., 2023).
This architecture addresses two limitations of earlier neural baselines identified in the bloodstream literature: summary-statistic classifiers do not exploit vascular topology, and shallow models degrade in high-speed regions with highly erroneous raw data. The reported result is a 2 reduction in median point error, for example from 3 to 4 at 5 run time, a region-accuracy increase of 6, and bloodstream coverage extending to regions where a fully connected baseline had essentially zero accuracy; with additional anchors at axillary veins, region accuracy improves by up to another 7–8 (Bartra et al., 2023). A plausible implication is that vascular topology acts as a strong structural prior when individual measurements are sparse or corrupted.
"Tailoring Graph Neural Network-based Flow-guided Localization to Individual Bloodstreams and Activities" extends this graph formulation by adding physiological context. The proposed adaptation pipeline introduces a master node 9 with features 0, optionally augmented by inverses 1, and probability edges from heart regions to all others with Monte-Carlo-estimated weights 2 (Galván et al., 2024). The baseline design, without master node and without probability edges, attains validation region accuracy of approximately 3, whereas the best extended design, "Graph c," reaches approximately 4, corresponding to 5 percentage points and an approximately 6 relative gain (Galván et al., 2024). Across profiles, the reported gains are Tall 7 pp, Short 8 pp, Light 9 pp, Active 0 pp, Big 1 pp, and Small 2 pp, while Heavy is 3 pp and Inactive is slightly below baseline (Galván et al., 2024).
A different architectural direction appears in "Set Transformer Architectures and Synthetic Data Generation for Flow-Guided Nanoscale Localization," which formulates FGL as permutation-invariant set classification over unordered circulation-time sets 4 (Hube et al., 22 Aug 2025). The Set Transformer uses scalar embeddings, two ISAB layers, PMA, a final SAB, and a linear head trained with regularized cross-entropy. In the reported 94-region synthetic vasculature, the best GNN baseline achieves 5 region accuracy and 6 point error, whereas the best Set Transformer achieves 7 and 8, albeit with substantially longer training times of approximately 9–$r^\*$0 versus approximately $r^\*$1–$r^\*$2 (Hube et al., 22 Aug 2025). Conditional synthetic-data augmentation using CVAE slightly improves the best GNN to $r^\*$3 with $r^\*$4 point error, but degrades the best Set Transformer to $r^\*$5 with $r^\*$6 (Hube et al., 22 Aug 2025). The paper attributes this to attention heads already extracting fine-grained patterns that the synthetic samples fail to cover.
4. Design-space exploration, protocol trade-offs, and evaluation practice
The design-space study in "Insights from the Design Space Exploration of Flow-Guided Nanoscale Localization" evaluates two neural FGL solutions under a common simulator configuration that includes THz carrier $r^\*$7, bandwidth $r^\*$8, $r^\*$9, 00, 01, 02, receiver sensitivity 03, one anchor at the heart, and BloodVoyagerS topology with 94 vessels and organs (Lemic et al., 2023). Design variables are the number of nanodevices 04, sampling granularity 05, and event-detection threshold 06 (Lemic et al., 2023).
Both evaluated solutions use the same signaling framework: the anchor near the heart sends a THz beacon every 07 seconds, an active nanodevice backscatters a response containing 08 and 09, and the anchor feeds 10 into a classifier (Lemic et al., 2023). Solution 1 is a fully connected network trained by L-BFGS and predicting among 24 loops; Solution 2 is a three-layer network with PRELU, BatchNorm, Dropout, hidden size 512, LogSoftMax over 25 classes, and Adam with negative log-likelihood (Lemic et al., 2023). The reported outcome is that Solution 2 consistently outperforms Solution 1 in point and region accuracies, with an example median error of approximately 11 versus approximately 12 at 13 (Lemic et al., 2023).
The same study identifies several protocol-level trade-offs. Increasing 14 improves accuracy and accelerates reliability convergence, but gains diminish beyond 15; sampling frequency has only marginal impact because the sensing energy cost is small and detection eventually converges; and 16 drastically degrades point accuracy through spurious detections in adjacent loops (Lemic et al., 2023). The paper summarizes these trade-offs by illustrative regimes: a low-energy regime with 17, 18, 19, reliability around 20 in 21, and median error around 22; a balanced regime with 23, 24, 25, reliability approximately 26 in 27, and median error around 28; and a high-accuracy regime with 29, 30, 31, reliability approximately 32 in 33, and median error around 34 (Lemic et al., 2023).
A recurring theme across the nanoscale literature is that evaluation methodology materially affects conclusions. The standardized-workflow paper argues against early-stage fragmentation in metrics and simulators, explicitly invoking the lessons of indoor-localization benchmarking and ISO/IEC 18305:2016 (López et al., 2023). The design-space study similarly emphasizes heterogeneous metrics, realism in THz propagation and nanodevice energy, and objective comparison under shared assumptions (Lemic et al., 2023). This suggests that, within in-body FGL, methodological standardization is part of the research problem rather than a purely administrative concern.
5. Motion-guided perception: visual sound localization and lesion refinement
In "FlowGrad: Using Motion for Visual Sound Source Localization," Flow-guided Localization extends the RCGrad framework by explicitly incorporating motion cues through optical flow (Singh et al., 2022). The RCGrad backbone uses a ResNet-18 visual encoder pretrained on ImageNet, a ResNet-18 audio encoder, and an InfoNCE contrastive objective on unlabeled videos. Optical flow is computed between consecutive grayscale frames at 35 using Gunnar Farnebäck, converted to a motion-magnitude map 36, and min–max normalized to 37 (Singh et al., 2022). Three variants are defined: FlowGrad-H, where the RCGrad heatmap is multiplied elementwise by 38; FlowGrad-IC, which stacks flow as a fourth image channel; and FlowGrad-EN, which uses three parallel encoders and pairwise contrastive losses 39, 40, and 41, with the fused inference map 42 (Singh et al., 2022).
Evaluation on Urbansas uses 5,704 image–audio pairs in which the sounding vehicle is visible, with consensus IoU at threshold 43 and AUC as metrics (Singh et al., 2022). The reported quantitative results are: Vision-only+CF+TF at IoU 44, AUC 45; optical-flow only at IoU 46, AUC 47; RCGrad at IoU 48, AUC 49; FlowGrad-H at IoU 50, AUC 51; FlowGrad-IC at IoU 52, AUC 53; and FlowGrad-EN at IoU 54, AUC 55 (Singh et al., 2022). The strongest gain is the 56 IoU improvement of FlowGrad-H over RCGrad, while qualitative examples show an important limitation: at traffic signals, vehicles may be sounding but static, so short-term flow can suppress true positives (Singh et al., 2022).
A different but related usage appears in "Unifying VLM-Guided Flow Matching and Spectral Anomaly Detection for Interpretable Veterinary Diagnosis," where FGL denotes an iterative mask-localization process guided by a VLM and trained by conditional flow matching (Wang et al., 7 Apr 2026). The refinement is formulated as the ODE
57
with interpolation path
58
target velocity
59
60
The implementation uses OpenCLIP ViT-B/32 features, a U-Net decoder, a 4-level U-Net-style flow CNN with cross-attention blocks, Adam with learning rate 61, 62 epochs for segmentation, 63 epochs for flow matching, 64 time steps per image, and 65 NVIDIA RTX 4090 GPUs (Wang et al., 7 Apr 2026). On the test set, the best competing Unet-based model, PolypFlow, reports 66, whereas FGL reports 67 and 68 (Wang et al., 7 Apr 2026). Here, as in FlowGrad, the localization signal is refined by dynamics rather than inferred in a single static pass.
6. Flow fields, iterative displacement prediction, and conceptual boundaries
In robotics, "Concurrent Flow-Based Localization and Mapping in Time-Invariant Flow Fields" reformulates localization as simultaneous estimation of robot trajectory and ambient flow field, replacing classical SLAM landmarks with a continuous flow map (Song et al., 2019). The robot state is
69
the flow field is represented on a rectangular mesh, and observations are relative flow velocities
70
A factor graph combines prior, motion, and flow-measurement factors, and the batch objective is minimized by iterated Gauss–Newton with Levenberg–Marquardt damping (Song et al., 2019). In a steady single-gyre flow, dead reckoning accumulates 71–72 drift over a 73 mission, whereas FGL reduces 2D positioning RMS to under 74; in a turbulent double-gyre, dead-reckoning error reaches 75 and FGL reduces it to approximately 76 RMS (Song et al., 2019). The paper also states that residual errors are driven by unmodeled time-varying turbulence.
A further extension of the flow-guided idea appears in cross-view geolocalization. "GeoFlow: Real-Time Fine-Grained Cross-View Geolocalization via Iterative Flow Prediction" learns a conditional displacement distribution 77, decouples displacement into polar coordinates, predicts 78, and refines multiple initial hypotheses through Iterative Refinement Sampling (Lehyeh et al., 23 Mar 2026). The single-step mean update is
79
and the published system uses uniform averaging over the final refined poses. With 80 seeds and 81 rounds on a V100 GPU, the reported inference speed is 82; KITTI Same-Area mean error is 83, median 84; and VIGOR Same-Area mean is 85, median 86 (Lehyeh et al., 23 Mar 2026). Although the paper does not use the same biomedical terminology, it exemplifies the same methodological motif: localization via learned flow-like updates over hypotheses.
A common misconception is that "Flow-guided Localization" names a single architecture or a single application domain. The cited literature does not support that reading. Instead, the term is reused for at least four distinct methodological families: bloodstream localization from circulation-time reports, motion-guided audiovisual localization, flow-matching-based lesion localization, and flow-field-based robot localization and mapping (Bartra et al., 2023, Singh et al., 2022, Wang et al., 7 Apr 2026, Song et al., 2019). Another misconception is that flow cues are sufficient by themselves. The cited results are more nuanced: optical-flow-only heatmaps underperform FlowGrad-H and FlowGrad-EN on Urbansas; short flow windows miss static but sounding vehicles; low-probability vascular regions exhibit higher KL sensitivity; and time-invariant flow assumptions break down under turbulence (Singh et al., 2022, Pascual et al., 2023, Song et al., 2019).
Open directions are correspondingly domain-specific. In nanoscale FGL, the literature points to frequency-selective THz-channel refinement, interference- and MAC-aware 87, adaptive energy management with time-varying duty cycle 88, multi-anchor deployments, online adaptation with sliding windows of heart rate, hybrid graph-plus-set models, and better generative models for rare-region tail behavior (Pascual et al., 2023, Galván et al., 2024, Hube et al., 22 Aug 2025). In audiovisual localization, proposed directions include longer temporal windows, learned flow estimators such as RAFT, binaural or spatial audio cues, and revised evaluation protocols for multi-class, multi-source urban scenes (Singh et al., 2022). In robotic and geolocalization settings, the stated extensions include incremental smoothing, adaptive mesh refinement, Gaussian-process or dynamical flow models, and multi-robot cooperation (Song et al., 2019). Across these lines of work, FGL remains less a single algorithm than a research pattern: localization by exploiting the structure of motion, circulation, or transport.