OSCR

Dynamic expert routing with boundary-aware decoding for accurate brain tumor segmentation from incomplete MRI data.

Code ↔ Paper

1 match between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 1 match
  1. [1] § Experimental results › Experimental setup and evaluation metrics ↔ train.py, lines 9–47 · score 0.55 · weight decay, CUDA, validation, epoch, metrics, PyTorch

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Python · 50 lines · 2.3 KB · CC-BY-4.0 · 1 match

  1. import argparse, os, torch
  2. from pathlib import Path
  3. from lora_moe_hgd.utils import seed_all, load_yaml, save_checkpoint, to_device
  4. from lora_moe_hgd.datasets import build_loaders
  5. from lora_moe_hgd.model.seg_model import SegModel
  6. from lora_moe_hgd.engine import train_one_epoch, validate
  7. from lora_moe_hgd.schedule import curriculum_stage
  8. def main():
  9. ap = argparse.ArgumentParser()
  10. ap.add_argument('--config', type=str, default='configs/brats2018.yaml')
  11. ap.add_argument('--epochs', type=int, default=None)
  12. ap.add_argument('--num-workers', type=int, default=2)
  13. args = ap.parse_args()
  14. cfg = load_yaml(args.config)
  15. if args.epochs is not None:
  16. cfg['train']['epochs'] = int(args.epochs)
  17. device = 'cuda' if torch.cuda.is_available() else 'cpu'
  18. seed_all(42)
  19. model = SegModel(in_ch=len(cfg['data']['modalities']),
  20. embed_dim=cfg['model']['embed_dim'],
  21. depth=tuple(cfg['model']['depth']),
  22. num_heads=tuple(cfg['model']['num_heads']),
  23. lora_r=cfg['model']['lora_r'],
  24. num_experts=cfg['model']['moe']['num_experts'],
  25. top_k=cfg['model']['moe']['top_k'],
  26. out_ch=cfg['model']['out_channels']).to(device)
  27. opt = torch.optim.Adam(filter(lambda p: p.requires_grad, model.parameters()),
  28. lr=cfg['train']['lr'], weight_decay=cfg['train']['weight_decay'])
  29. milestones = cfg['train']['curriculum_epochs']
  30. best = {'WT':0,'TC':0,'ET':0,'mean':0}
  31. for epoch in range(cfg['train']['epochs']):
  32. stage = curriculum_stage(epoch, milestones) # 0,1,2
  33. tr_loader, va_loader = build_loaders(cfg, stage_idx=stage, num_workers=args.num_workers)
  34. loss, sec = train_one_epoch(model, tr_loader, opt, device, stage)
  35. metrics = validate(model, va_loader, device)
  36. mean_d = (metrics['WT']+metrics['TC']+metrics['ET'])/3.0
  37. if mean_d > best['mean']:
  38. best = {'WT':metrics['WT'],'TC':metrics['TC'],'ET':metrics['ET'],'mean':mean_d}
  39. save_checkpoint("checkpoints/best.pt", model, opt, epoch, best)
  40. print(f"Epoch {epoch:03d} | stage={stage+1} | loss={loss:.4f} | WT={metrics['WT']:.3f} TC={metrics['TC']:.3f} ET={metrics['ET']:.3f} | best={best['mean']:.3f}")
  41. print('Done. Best:', best)
  42. if __name__ == "__main__":
  43. main()

train.py, under CC-BY-4.0 · at the source

Overview

Authors: Abdullah G M Almansour1, Faisal Alshomrani2,3
  1. Radiology and Medical Imaging Department, Prince Sattam Bin Abdulaziz University, 11942 Al-Kharj, Saudi Arabia
  2. Department of Diagnostic Radiology Technology, Taibah University, 41477 Madinah, Saudi Arabia
  3. Health and Life Research Center, Taibah University, Madinah, Saudi Arabia
Institutions: Prince Sattam Bin Abdulaziz University (Saudi Arabia); Taibah University (Saudi Arabia)
Journal: Scientific reports, volume 16, issue 1, article 16921
Dates: received 20 January 2026; accepted 7 April 2026; published online 11 April 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41598-026-48187-x · PMID 41965874 · PMCID PMC13230987 · OpenAlex W7153549719
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: structural MRI / diffusion (modality), human (organism), other condition (population), methods / tools (subfield)
Methods: Connectivity, Machine learning
Keywords: Brain tumor segmentation, Missing modality MRI, Mixture-of-experts, Low-rank adaptation, Cross-modality consistency, Uncertainty-aware decoder, Cancer, Computational biology and bioinformatics, Medical research, Oncology
MeSH: Brain Neoplasms*, Image Interpretation, Computer-Assisted*, Image Processing, Computer-Assisted*, Magnetic Resonance Imaging*, Algorithms, Humans (* major topic)
Topic: Medical Image Segmentation Techniques (Computer Vision and Pattern Recognition, Computer Science), according to OpenAlex
Funding: Taibah University (1110-15-447)
Citations: not cited yet (Europe PMC); 47 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repository

Its files are read in the Code ↔ Paper reader above, with 1 match between paragraphs and lines of code.

Zenodo 18331077

License: CC-BY-4.0
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Data availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: PyTorch (15 files), NumPy (5 files)
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
  • 29 September 2026: the link answers (HTTP 200)
19 files

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 18 scripts, each with its path and the digest of its content;
  • 1 match between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data availability statement

The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

  • no repository, dataset or request procedure was recognized in it

Read it in the paper: doi.org/10.1038/s41598-026-48187-x.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 29 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 2 authors, 10 keywords, 6 MeSH terms, 1 funder, 12 references.

Cite

This paper

Almansour, A. G. M., & Alshomrani, F. (2026). Dynamic expert routing with boundary-aware decoding for accurate brain tumor segmentation from incomplete MRI data. Scientific reports, 16(1), 16921. https://doi.org/10.1038/s41598-026-48187-x

BibTeX

@article{almansour2026dynamic,
author = {Almansour, Abdullah G M and Alshomrani, Faisal},
title = {{Dynamic expert routing with boundary-aware decoding for accurate brain tumor segmentation from incomplete MRI data}},
journal = {Scientific reports},
year = {2026},
month = apr,
volume = {16},
number = {1},
pages = {16921},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/s41598-026-48187-x},
url = {https://doi.org/10.1038/s41598-026-48187-x},
pmid = {41965874},
pmcid = {PMC13230987}
}

RIS

TY - JOUR
AU - Almansour, Abdullah G M
AU - Alshomrani, Faisal
TI - Dynamic expert routing with boundary-aware decoding for accurate brain tumor segmentation from incomplete MRI data
T2 - Scientific reports
J2 - Sci Rep
PY - 2026
DA - 2026/04/11
VL - 16
IS - 1
SP - 16921
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/s41598-026-48187-x
UR - https://doi.org/10.1038/s41598-026-48187-x
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41598-026-48187-x",
"type": "article-journal",
"title": "Dynamic expert routing with boundary-aware decoding for accurate brain tumor segmentation from incomplete MRI data",
"container-title": "Scientific reports",
"author": [
{
"family": "Almansour",
"given": "Abdullah G M"
},
{
"family": "Alshomrani",
"given": "Faisal"
}
],
"container-title-short": "Sci Rep",
"volume": "16",
"issue": "1",
"page": "16921",
"DOI": "10.1038/s41598-026-48187-x",
"PMID": "41965874",
"PMCID": "PMC13230987",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41598-026-48187-x",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
11
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1038/s41598-026-35627-x [code]
Distilling population specific expertise into a unified model for generalizable brain tumor segmentation.
Journal: Scientific reports
In common: PyTorch, NumPy, methods / tools, structural MRI / diffusion, other condition, 2 references
[2] doi:10.21037/qims-2026-0792 [code]
An nnU-Net-based framework with adaptive feature representation for 3D brain tumor segmentation.
Journal: Quantitative imaging in medicine and surgery
In common: PyTorch, NumPy, methods / tools, structural MRI / diffusion, other condition, 2 references
[3] doi:10.1038/s41598-026-54446-8 [code]
Deep learning-based Desikan-Killiany parcellation of the brain using diffusion MRI.
Journal: Scientific reports
In common: PyTorch, NumPy, methods / tools, structural MRI / diffusion, 2 references
[4] doi:10.1038/s41598-026-50475-5 [code]
Segmentation and classification of hippocampal subregions using multi-task generative adversarial networks.
Journal: Scientific reports
In common: PyTorch, NumPy, methods / tools, 2 references
[5] doi:10.1038/s41598-026-45675-y [code]
Multi-class classification of brain tumor using a ResNet101 backbone integrated with multi-scale deformable attention module and advanced data augmentations.
Journal: Scientific reports
In common: PyTorch, NumPy, structural MRI / diffusion, other condition, 1 reference
[6] doi:10.3390/s26154963
NeuroSPFNet: Vision-Language Semantic Prior-Guided Frequency-Enhanced Network for Brain Tumor Segmentation in Multimodal MRI.
Journal: Sensors (Basel, Switzerland)
In common: methods / tools, structural MRI / diffusion, other condition, 2 references
[7] doi:10.3390/diagnostics16111588 [code]
Bridging Annotation Gaps: Hierarchical Self-Support Learning for Brain Tumor Segmentation.
Journal: Diagnostics (Basel, Switzerland)
In common: PyTorch, NumPy, methods / tools, structural MRI / diffusion, other condition, 1 reference
[8] doi:10.1038/s41598-026-50158-1 [code]
NeXtSwin-X: dual-branch cross-attention fusion of ConvNeXt and swin transformer for accurate brain tumor classification from MRI and CT.
Journal: Scientific reports
In common: PyTorch, NumPy, structural MRI / diffusion, other condition, 1 reference
[9] doi:10.1002/hbm.70497 [code]
A Digital Anatomical Atlas of the Human Cerebellum at Subfolial Resolution.
Journal: Human brain mapping
In common: PyTorch, NumPy, methods / tools, structural MRI / diffusion, 1 reference
[10] doi:10.1371/journal.pone.0354511 [code]
TokenUNet: A new case for transformers integration in efficient and interpretable 3D UNets for brain imaging segmentation.
Journal: PloS one
In common: PyTorch, NumPy, methods / tools, other condition, 1 reference

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.