A multidisciplinary research team has introduced SAMSeeK, an end-to-end artificial intelligence framework that unifies high-precision three-dimensional lesion segmentation with automated clinical report generation for complex central nervous system pathologies. Detailed in the journal Frontiers in Neurology, the system addresses one of the most stubborn hurdles confronting medical vision-language models: background-induced misclassification caused by anatomical distractions in neuroimaging scans. By pairing a geometrically modified Segment Anything Model 2 vision backbone with the Qwen 2.5-VL vision-language model, the framework automates the simultaneous extraction of volumetric pathology descriptors and the generation of structured diagnostic narratives. The investigators demonstrated that grounding language generation in explicit geometric measurements fundamentally changes how artificial intelligence parses cranial magnetic resonance imaging, converting raw pixel data into coherent clinical prose without relying on unconstrained visual associations that frequently trigger diagnostic errors.
Accurate interpretation of multimodal brain magnetic resonance imaging is vital for guiding therapeutic interventions across diverse neurological conditions, including malignant gliomas, ischemic infarctions, intracranial hemorrhages, and epileptogenic foci. In conventional clinical workflows, certified radiologists must manually inspect multiple contrasting acquisition sequences, isolate pathological tissue from surrounding healthy parenchyma, synthesize spatial observations, and draft narrative diagnostic reports. This diagnostic workflow demands extensive time and cognitive effort, leaving less-experienced practitioners vulnerable to diagnostic fatigue and notable inter-observer variability. While automated report generation has long promised to relieve diagnostic backlogs, bridging the gap between raw voxel arrays and nuanced clinical prose has proven exceptionally challenging because neurological lesions frequently present with irregular morphologies, indistinct boundaries, and subtle signal variations across adjacent tissue strata.
The emergence of foundational vision-language models, such as Qwen 2.5-VL and GPT-4o, offered an attractive pathway toward automated medical narrative generation through large-scale image-text pretraining. However, because these architectures were predominantly pretrained on natural-scene photography, they lack intrinsic inductive biases tailored to volumetric medical diagnostics. In clinical neuroimaging, where pathological lesions often occupy localized sub-regions enveloped by convoluted cerebral architecture, off-the-shelf vision-language models struggle to disentangle abnormal focal signals from surrounding anatomical structures. To systematically measure this background interference, the authors conducted a controlled ablation study evaluating Qwen 2.5-VL across two hundred multimodal brain magnetic resonance imaging slices evenly divided between glioma and epileptogenic foci. When presented with unedited raw scans, the standalone vision-language model achieved a diagnostic accuracy of only 62.5 percent, accompanied by a recall of 61.8 percent and a precision of 71.2 percent, confirming that background anatomical clutter severely impairs clinical classification.
To overcome this limitation, incorporating an upstream anatomical localization module emerged as a logical architectural remedy. The Segment Anything Model 2 exhibits exceptional zero-shot segmentation performance across generic natural images, but its direct deployment to volumetric medical scans exposes critical technical shortcomings. Foremost among these is the disruption of three-dimensional neighborhood coherence caused by conventional raster-based sequence flattening, which severs topological continuity between adjacent anatomical voxels. Furthermore, standard vision backbones rely on naive concatenation or late-stage feature fusion when processing multimodal scans, leaving them poorly equipped to capture complementary diagnostic contrasts distributed across fluid-attenuated inversion recovery, T1-weighted, T1 contrast-enhanced, and T2-weighted acquisition sequences. When the authors evaluated an unadapted Segment Anything Model 2 upstream of Qwen 2.5-VL, classification accuracy dropped to 58.0 percent, whereas pairing the model with the domain-adapted MedSAM 2 elevated diagnostic accuracy to 76.0 percent, proving that reliable foreground isolation is essential for downstream reasoning.
SAMSeeK resolves these spatial processing limitations by embedding an optimized hierarchical three-dimensional Hilbert space-filling curve scanning operator directly into its visual processing pipeline. Rather than flattening multidimensional feature volumes using conventional horizontal scanlines or Z-order curves that fracture spatial proximity, the architecture recursively partitions downsampled three-dimensional feature tensors into cubic blocks measuring eight voxels per dimension. Within each block, a bijective mapping generated through a recursive L-system grammar traces a continuous path that visits every voxel exactly once while ensuring that consecutive indices along the linear sequence correspond strictly to Euclidean nearest neighbors. Because the expansion factor of a Hilbert curve remains capped at six—unlike conventional zigzag curves whose expansion factor escalates toward infinity with higher orders—this trajectory strictly preserves local voxel adjacency. Empirically, the researchers observed that this locality-preserving linearization reduced boundary fragmentation errors by up to 23 percent on delicate lesions occupying fewer than 15 voxels.
Operating upon this reorganized sequence representation, the framework replaces the conventional Segment Anything Model 2 encoder with a Hilbert-guided cross-modal agent architecture designed to handle diverse imaging contrasts efficiently. In multimodal neuroimaging, distinct sequences highlight different tissue characteristics; for instance, fluid-attenuated inversion recovery delineates surrounding vasogenic edema, whereas contrast-enhanced T1 scans reveal central necrotic tumor cores. To fuse these disparate streams without incurring quadratic computational complexity, the authors established a compact latent agent space comprising 64 tokens that mediates interactions between query, key, and value representations derived from paired imaging modalities. By executing cross-modal communication across Hilbert-ordered sequences, the agent focuses on spatially coherent anatomical patches rather than globally scattered coordinates. The encoder applies depthwise channel convolutions to prevent feature homogenization, achieving deep cross-contrast refinement across all pairwise modality combinations within linear computational bounds scaling at O(nN) per interaction.
Complementing the upgraded encoder, the authors restructured the segmentation module decoder into a progressive three-dimensional Hilbert Mamba architecture that integrates multi-scale contextual features with temporal memory across slice sequences. The decoder operates through three cascaded refinement stages scaled at relative resolutions of one-sixteenth, one-eighth, and one-quarter of the original input dimensions. At each stage, feature representations from the active slice are integrated with historical slice embeddings retrieved from a dedicated memory bank, while transposed convolutions inject upsampled structural cues from coarser hierarchical levels. Instead of deploying global self-attention mechanisms that dilute subtle signals, each fused feature representation is processed by a local-window Hilbert Mamba block. By confining selective state-space sequence modeling to a sliding window along the Hilbert curve, the decoder enforces continuous topological constraints during upsampling, successfully preserving fine boundary morphology and delineating small pathological lesions that occupy fewer than 10 voxels.
The bridge connecting this geometry-aware perceptual engine to linguistic reasoning is a structured prompt enhancement mechanism that conditions report synthesis on explicit quantitative parameters. Rather than feeding unannotated medical images straight into Qwen 2.5-VL, the system extracts precise quantitative descriptors directly from the Stage I segmentation output, including absolute lesion volume expressed in cubic millimeters, three-dimensional centroid coordinates, boundary smoothness, and spatial extent. These parameters are formatted into structured textual templates—such as lesion volume, centroid location, and morphological boundary descriptors—while binary lesion masks are processed by a lightweight convolutional mask encoder with global pooling. The combined textual embeddings and mask features are projected into the language model’s hidden dimension through a trainable two-layer multilayer perceptron with layer normalization. These conditioned vectors are prepended as soft prompt tokens to the frozen visual token sequence of Qwen 2.5-VL, while a cross-attention adapter aligns segmentation features with the language token space, effectively preventing diagnostic hallucinations.
The research team systematically evaluated the segmentation performance of SAMSeeK across three recognized public neuroimaging benchmarks: the BraTS2021 dataset comprising 1,251 multimodal glioma cases; the FCD2023 collection containing 320 high-resolution scans of focal cortical dysplasia; and the ISLES2022 repository containing 302 acute ischemic stroke cases. Across all three benchmarks, the Stage I HilbertSAM module surpassed existing architectures, achieving an average Dice similarity coefficient of 82.40 percent, an Intersection over Union of 73.50 percent, and a sensitivity of 79.80 percent on BraTS2021. These marks outperformed competitive baselines including UNETR, SwinUNETR, nnFormer, MixUNETR, STUNET, MedSAM, SAM Med 2D, SAM Med 3D, and MedSAM 2, which recorded a Dice coefficient of 76.17 percent.
To evaluate diagnostic classification and narrative synthesis, the authors assembled a curated dataset of 4,800 two-dimensional axial brain magnetic resonance imaging slices evenly distributed across glioma, epilepsy associated with focal cortical dysplasia, and cerebral infarction. In multi-class pathology classification against prominent medical vision-language models including R2Gen, XrayGPT, XrayPULSE, Med-PaLM M, and MiniGPT-4, SAMSeeK achieved state-of-the-art results, recording an overall accuracy of 81.20 percent, a precision of 83.60 percent, a recall of 83.90 percent, and an F1-score of 0.852. Component-wise ablation confirmed that introducing Hilbert Mamba Cross-Attention boosted baseline classification accuracy by 11.8 percentage points, adding the Decoder Hilbert Mamba increased recall to 81.20 percent, and incorporating structured prompt enhancement elevated the final F1-score to 0.852. Utilizing this unified pipeline, the framework successfully synthesized 4,800 clinically plausible diagnostic reports enriched with quantitative anatomical metrics, demonstrating how geometric spatial grounding and state-space sequence modeling can establish reliable, interpretable clinical neuroimaging workflows.
Subject of Research: Automated central nervous system lesion segmentation and multimodal brain MRI diagnostic report generation
Article Title: SAMSeeK: nervous centralis lesion diagnostic report generation via SAM 2 and vision-language models
Article References: Tian, Y., Wang, L., Kang, Y., Yang, X., Yang, C., Xu, X., Xue, B., & Li, S. (2026). SAMSeeK: nervous centralis lesion diagnostic report generation via SAM 2 and vision-language models. Frontiers in Neurology, 17, Article 1979682. https://doi.org/10.3389/fneur.2026.1979682
Image Credits: AI Generated
DOI: 10.3389/fneur.2026.1979682
Keywords: brain MRI, vision-language models, SAMSeeK, Segment Anything Model 2, Hilbert curve, Mamba architecture, lesion segmentation, report generation, glioma, cerebral infarction, focal cortical dysplasia, state space models, multimodal neuroimaging, structured prompting, medical image analysis, BraTS2021, spatial locality
News Source: Ophelia Keating. (November 26, 2026). Unified Vision Language Framework Generates Quantitative Diagnostic Reports for Brain Lesions. Scienmag.



