OSCR

FMCL: a transformer-based feature-map classifier learning approach for enhanced brain tumor detection in MRI.

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] § Proposed feature-map feature map-based learning model method › Transformer learning ↔ train.py, lines 9–49 · score 0.56 · cross entropy loss, zero, training, feature map, transformer, classification

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 · 49 lines · 1.5 KB · no license · 1 match

  1. import torch
  2. import torch.nn as nn
  3. import torch.optim as optim
  4. from torch.utils.data import DataLoader
  5. from torchvision import datasets, transforms
  6. from model import FeatureMapContrast, TransformerClassifier
  7. import yaml
  8. # Load config
  9. with open("configs/config.yaml") as f:
  10. config = yaml.safe_load(f)
  11. device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
  12. transform = transforms.Compose([
  13. transforms.Resize((224, 224)),
  14. transforms.ToTensor(),
  15. ])
  16. train_dataset = datasets.ImageFolder(config["train_dir"], transform=transform)
  17. train_loader = DataLoader(train_dataset, batch_size=config["batch_size"], shuffle=True)
  18. feature_model = FeatureMapContrast().to(device)
  19. classifier = TransformerClassifier().to(device)
  20. criterion = nn.CrossEntropyLoss()
  21. optimizer = optim.Adam(list(feature_model.parameters()) +
  22. list(classifier.parameters()),
  23. lr=config["learning_rate"])
  24. for epoch in range(config["epochs"]):
  25. feature_model.train()
  26. classifier.train()
  27. total_loss = 0
  28. for images, labels in train_loader:
  29. images, labels = images.to(device), labels.to(device)
  30. features = feature_model(images)
  31. outputs = classifier(features)
  32. loss = criterion(outputs, labels)
  33. optimizer.zero_grad()
  34. loss.backward()
  35. optimizer.step()
  36. total_loss += loss.item()
  37. print(f"Epoch [{epoch+1}/{config['epochs']}], Loss: {total_loss:.4f}")

train.py at commit b2b9678, no license · at the source

Overview

Authors: Turki M Alanazi1
ORCID iDs: Turki M Alanazi
  1. Department of Electrical Engineering, College of Engineering, University of Hafr Al Batin, 39524 Hafr Al Batin, Saudi Arabia
Institutions: University of Hafr Al-Batin (Saudi Arabia)
Journal: Scientific reports, volume 16, issue 1, article 12571
Dates: received 8 November 2025; accepted 25 February 2026; published online 8 March 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41598-026-42450-x · PMID 41796189 · PMCID PMC13086971 · OpenAlex W7134187031
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: structural MRI / diffusion (modality), human (organism), other condition (population)
Methods: Connectivity, Statistics, Machine learning, fMRI & imaging
Keywords: Brain tumor, Feature map, Magnetic resonance imaging, SoftMax function, Transformer learning, Cancer, Computational biology and bioinformatics, Engineering, Mathematics and computing, Medical research
MeSH: Brain Neoplasms*, Image Interpretation, Computer-Assisted*, Image Processing, Computer-Assisted*, Machine Learning*, Magnetic Resonance Imaging*, Classification Algorithms, Convolutional Neural Networks, Humans (* major topic)
Topic: Brain Tumor Detection and Classification (Neurology, Neuroscience), according to OpenAlex
Funding: Deputyship for Research & Innovation, Ministry of Education in Saudi Arabia (0018-1446-S); Deputyship for Research & Innovation, Ministry of Education in Saudi Arabia (0018-1446-S)
Citations: not cited yet (Europe PMC); 51 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.

Repositories

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

Zenodo 18740802

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

pavimounisri-byte/FMCL-Brain-Tumor-MRI

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: b2b967857a30514dcd8d81b40f3ce1220d99ea4d, 18 February 2026
Languages: Python (5)
Size: 9 files, 5 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: environment (requirements.txt)
Not found: README, license file, CITATION.cff, tests, continuous integration, documentation
Tools: PyTorch (4 files), scikit-learn (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
5 files

Code availability statement

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

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

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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 10 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

Datasets cited

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-42450-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, 30 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 1 author, 10 keywords, 8 MeSH terms, 2 funders, 27 references.

Cite

This paper

Alanazi, T. M. (2026). FMCL: a transformer-based feature-map classifier learning approach for enhanced brain tumor detection in MRI. Scientific reports, 16(1), 12571. https://doi.org/10.1038/s41598-026-42450-x

BibTeX

@article{alanazi2026fmcl,
author = {Alanazi, Turki M},
title = {{FMCL: a transformer-based feature-map classifier learning approach for enhanced brain tumor detection in MRI}},
journal = {Scientific reports},
year = {2026},
month = mar,
volume = {16},
number = {1},
pages = {12571},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/s41598-026-42450-x},
url = {https://doi.org/10.1038/s41598-026-42450-x},
pmid = {41796189},
pmcid = {PMC13086971}
}

RIS

TY - JOUR
AU - Alanazi, Turki M
TI - FMCL: a transformer-based feature-map classifier learning approach for enhanced brain tumor detection in MRI
T2 - Scientific reports
J2 - Sci Rep
PY - 2026
DA - 2026/03/08
VL - 16
IS - 1
SP - 12571
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/s41598-026-42450-x
UR - https://doi.org/10.1038/s41598-026-42450-x
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41598-026-42450-x",
"type": "article-journal",
"title": "FMCL: a transformer-based feature-map classifier learning approach for enhanced brain tumor detection in MRI",
"container-title": "Scientific reports",
"author": [
{
"family": "Alanazi",
"given": "Turki M"
}
],
"container-title-short": "Sci Rep",
"volume": "16",
"issue": "1",
"page": "12571",
"DOI": "10.1038/s41598-026-42450-x",
"PMID": "41796189",
"PMCID": "PMC13086971",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41598-026-42450-x",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
8
]
]
}
}

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-50213-x
Neuroimaging and machine learning fusion for improved brain tumor diagnosis and prognosis.
Journal: Scientific reports
In common: kaggle.com/datasets/masoudnickparvar, structural MRI / diffusion, other condition, 2 references
[2] doi:10.1038/s41598-026-51542-7
Brain tumor classification using fractional Laplacian image enhancement and vision transformer.
Journal: Scientific reports
In common: structural MRI / diffusion, other condition, 3 references
[3] doi:10.3389/fonc.2026.1834400
BrainFusionNet: an attention-augmented deep convolutional framework with hybrid loss optimisation and test-time augmentation for multi-class brain tumour detection in magnetic resonance images.
Journal: Frontiers in oncology
In common: kaggle.com/datasets/masoudnickparvar, structural MRI / diffusion, other condition, 1 reference
[4] doi:10.1371/journal.pone.0352353
Deep convolutional GAN and hypernet-based neural architecture search for brain tumor diagnosis detection and classification.
Journal: PloS one
In common: kaggle.com/datasets/masoudnickparvar, structural MRI / diffusion, other condition, 1 reference
[5] doi:10.1371/journal.pone.0344291
Deep learning based two-way feature depiction model for brain tumor detection.
Journal: PloS one
In common: kaggle.com/datasets/masoudnickparvar, structural MRI / diffusion, other condition, 1 reference
[6] doi:10.1038/s41598-026-44957-9
Multimodal deep feature fusion with transformer for brain tumor classification from magnetic resonance imaging.
Journal: Scientific reports
In common: kaggle.com/datasets/masoudnickparvar, structural MRI / diffusion, other condition, 1 reference
[7] doi:10.1002/acm2.70560 [code]
Hybrid CNN-GCN framework for brain tumor MRI classification: A graph-based approach to smart healthcare diagnostics.
Journal: Journal of applied clinical medical physics
In common: kaggle.com/datasets/masoudnickparvar, structural MRI / diffusion, other condition, 1 reference
[8] doi:10.3389/fmed.2026.1905061
Performance trade-offs between dense prediction and sparse query mechanisms for brain tumor MRI detection: a comparative study of YOLOv8 and RT-DETR.
Journal: Frontiers in medicine
In common: kaggle.com/datasets/masoudnickparvar, structural MRI / diffusion, other condition, 1 reference
[9] doi:10.3390/jimaging12060233 [code]
Brain Tumor Classification in MRI Images Using Combined Transfer Learning and Convolutional Neural Networks.
Journal: Journal of imaging
In common: scikit-learn, kaggle.com/datasets/masoudnickparvar, structural MRI / diffusion, other condition
[10] doi:10.1038/s41598-026-63915-z
A novel hybrid transformer-based framework (H-ConvNeXt-Swin) to classify brain tumors using MRI.
Journal: Scientific reports
In common: kaggle.com/datasets/masoudnickparvar, structural MRI / diffusion, other condition

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.