Learning like a radiologist: a medical vision-language model for radiological image analysis via curriculum learning.
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 · 70 lines · 2.3 KB · no license
- import os, sys
- import datetime
- import dotenv
- from pathlib import Path
- from icecream import ic
- dotenv.load_dotenv(override=True)
- def main():
- src_dir = os.path.join(os.path.dirname(__file__), 'src')
- assert os.path.isdir(src_dir), f"error src/ - {src_dir}"
- ic(f"Working Dir: {src_dir}")
- os.chdir(src_dir)
- # region >>>torchrun
- command = (
- f"torchrun "
- f"--nproc_per_node=4 "
- f"--rdzv_endpoint=$HOSTE_NODE_ADDR "
- f"--master_port=29507 "
- f"-m training.main "
- f"--model hf-hub:microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224 "
- f"--train-data=TRUE "
- f"--data=your_data_csv "
- f"--warmup 2000 --lr 1e-4 --beta1 0.9 --beta2 0.98 --wd 0.2 --eps 1e-6 "
- f"--precision amp --workers 32 --grad-clip-norm 1.0 "
- f"--local-loss "
- f"--gather-with-grad "
- f"--batch-size 128 "
- f"--accum-freq 16 "
- f"--epochs 10 "
- f"--name {TRAIN_COMMAND__NAME} "
- f"--logs {TRAIN_COMMAND__LOGS} "
- f"--seed 0 "
- f"--report-to tensorboard "
- # f"2 > {TRAIN_COMMAND_ERR_TO}"
- "--siglip "
- )
- # endregion <<<
- # region >>> Duplicate train call
- # Save the command file(or sh/py) to train log folder
- Path(os.path.join(TRAIN_COMMAND__LOGS, TRAIN_COMMAND__NAME)).mkdir(exist_ok=True, parents=True)
- save_to = os.path.join(TRAIN_COMMAND__LOGS, TRAIN_COMMAND__NAME, "commmand_call_history.txt")
- with open(save_to, 'a') as f:
- f.write(f"{'=' * 40} {datetime.datetime.now()} {'=' * 40}\n")
- f.write(f"Train Session Desc: {Train_Session_Desc}\n\n")
- f.write(f"Command: \n")
- f.write(command.replace(" --", "\n--"))
- f.write("\n\n")
- # endregion <<< Duplicate train call
- os.system(command)
- # subprocess.run(command, shell=True, check=True)
- if __name__ == "__main__":
- SCI_PROJECT_NFS_ROOT = dotenv.dotenv_values()["SCI_PROJECT_NFS_ROOT"]
- ic(SCI_PROJECT_NFS_ROOT)
- N_Nodes = 1
- NPROC_PER_NODE = 4
- TRAIN_COMMAND__LOGS = "./train_log/"
- TRAIN_COMMAND__NAME = f"{N_Nodes}_{NPROC_PER_NODE}"
- TRAIN_COMMAND_ERR_TO = os.path.join(TRAIN_COMMAND__LOGS, TRAIN_COMMAND__NAME, "sci_err.log")
- Train_Session_Desc = ""
- main()
run.py at commit 045ad9e, no license · at the source
Overview
- School of Biomedical Engineering & State Key Laboratory of Advanced Medical Materials and Devices, ShanghaiTech University, Shanghai, China
- Shanghai United Imaging Intelligence Co., Ltd., Shanghai, China
- Beijing United Imaging Research Institute of Intelligent Imaging, Beijing, China
- Shanghai Clinical Research and Trial Center, Shanghai, China
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.
Erickeyan/RadiSim
045ad9e24a7cc426291ae112df0d4107e99afdef, 14 February 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
44 files
- scripts/
run.py , Python, 70 lines - tests/
src/ , Python, 18 linesopen_clip/ __init__.py - tests/
src/ , Python, 582 linesopen_clip/ coca_model.py - tests/
src/ , Python, 11 linesopen_clip/ constants.py - tests/
src/ , Python, 206 linesopen_clip/ convert.py - tests/
src/ , Python, 1,087 linesopen_clip/ factory.py - tests/
src/ , Python, 67 linesopen_clip/ hf_configs.py - tests/
src/ , Python, 193 linesopen_clip/ hf_model.py - tests/
src/ , Python, 464 linesopen_clip/ loss.py - tests/
src/ , Python, 892 linesopen_clip/ model.py - tests/
src/ , Python, 236 linesopen_clip/ modified_resnet.py - tests/
src/ , Python, 90 linesopen_clip/ openai.py - tests/
src/ , Python, 96 linesopen_clip/ pos_embed.py - tests/
src/ , Python, 926 linesopen_clip/ pretrained.py - tests/
src/ , Python, 318 linesopen_clip/ push_to_hf_hub.py - tests/
src/ , Python, 215 linesopen_clip/ timm_model.py - tests/
src/ , Python, 621 linesopen_clip/ tokenizer.py - tests/
src/ , Python, 407 linesopen_clip/ transform.py - tests/
src/ , Python, 1,455 linesopen_clip/ transformer.py - tests/
src/ , Python, 139 linesopen_clip/ utils.py - tests/
src/ , Python, 1 lineopen_clip/ version.py - tests/
src/ , Python, 110 linesopen_clip/ zero_shot_classifier.py - tests/
src/ , Python, 266 linesopen_clip/ zero_shot_metadata.py - tests/
src/ , Python, 1 lineopen_clip_train/ __init__.py - tests/
src/ , Python, 564 linesopen_clip_train/ data.py - tests/
src/ , Python, 218 linesopen_clip_train/ distributed.py - tests/
src/ , Python, 83 linesopen_clip_train/ file_utils.py - tests/
src/ , Python, 26 linesopen_clip_train/ logger.py - tests/
src/ , Python, 555 linesopen_clip_train/ main.py - tests/
src/ , Python, 492 linesopen_clip_train/ params.py - tests/
src/ , Python, 14 linesopen_clip_train/ precision.py - tests/
src/ , Python, 252 linesopen_clip_train/ profiler.py - tests/
src/ , Python, 57 linesopen_clip_train/ scheduler.py - tests/
src/ , Python, 384 linesopen_clip_train/ train.py - tests/
src/ , Python, 86 linesopen_clip_train/ zero_shot.py - tests/
test_download_pretrained , Python, 111 lines.py - tests/
test_hf_model.py , Python, 30 lines - tests/
test_inference.py , Python, 136 lines - tests/
test_inference_simple.py , Python, 51 lines - tests/
test_num_shards.py , Python, 20 lines - tests/
test_training_simple.py , Python, 103 lines - tests/
test_wds.py , Python, 149 lines - tests/
util_test.py , Python, 327 lines - readme.md, Text, 61 lines
The paper's code and data availability statement is in the Data section.
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;
- 43 scripts, each with its path and the digest of its content;
- no match between paragraphs and code yet;
- 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
- kaggle.com/
datasets/ , at Kaggle; found in the referencesahmedhamada0 - kaggle.com/
datasets/ , at Kaggle; found in the referencesjarvisgroot
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: Erickeyan/
RadiSim
Read it in the paper: doi.org/10.1038/s41746-026-02713-3.
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, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 10 authors, 4 keywords, 4 funders, 24 references.
Cite
This paper
Tan, M., Wu, Q., Zhang, B., Ren, G., Nie, J., Xue, Z., Zhan, Y., Zhou, S., Cao, X., & Shen, D. (2026). Learning like a radiologist: a medical vision-language model for radiological image analysis via curriculum learning. NPJ digital medicine, 9(1), 695. https://
BibTeX
@article{tan2026learning
author = {Tan, Minhui and Wu, Qingxia and Zhang, Boyang and Ren, Genqiang and Nie, Jianlong and Xue, Zhong and Zhan, Yiqiang and Zhou, Sean and Cao, Xiaohuan and Shen, Dinggang},
title = {{Learning like a radiologist: a medical vision-language model for radiological image analysis via curriculum learning}},
journal = {NPJ digital medicine},
year = {2026},
month = jun,
volume = {9},
number = {1},
pages = {695},
publisher = {Nature Publishing Group},
issn = {2398-6352},
doi = {10.1038/
url = {https://
pmid = {42249121},
pmcid = {PMC13562648}
}
RIS
TY - JOUR
AU - Tan, Minhui
AU - Wu, Qingxia
AU - Zhang, Boyang
AU - Ren, Genqiang
AU - Nie, Jianlong
AU - Xue, Zhong
AU - Zhan, Yiqiang
AU - Zhou, Sean
AU - Cao, Xiaohuan
AU - Shen, Dinggang
TI - Learning like a radiologist: a medical vision-language model for radiological image analysis via curriculum learning
T2 - NPJ digital medicine
J2 - NPJ Digit Med
PY - 2026
DA - 2026/
VL - 9
IS - 1
SP - 695
SN - 2398-6352
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Learning like a radiologist: a medical vision-language model for radiological image analysis via curriculum learning",
"container-title": "NPJ digital medicine",
"author": [
{
"family": "Tan",
"given": "Minhui"
},
{
"family": "Wu",
"given": "Qingxia"
},
{
"family": "Zhang",
"given": "Boyang"
},
{
"family": "Ren",
"given": "Genqiang"
},
{
"family": "Nie",
"given": "Jianlong"
},
{
"family": "Xue",
"given": "Zhong"
},
{
"family": "Zhan",
"given": "Yiqiang"
},
{
"family": "Zhou",
"given": "Sean"
},
{
"family": "Cao",
"given": "Xiaohuan"
},
{
"family": "Shen",
"given": "Dinggang"
}
],
"container-title-short":
"volume": "9",
"issue": "1",
"page": "695",
"DOI": "10.1038/
"PMID": "42249121",
"PMCID": "PMC13562648",
"ISSN": "2398-6352",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
5
]
]
}
}
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.1016/j.patter.2026.101538 [code]
- A multi-modal foundation model for brain disease diagnosis and medical imaging.Journal: Patterns (New York, N.Y.)In common: Hugging Face Transformers, Pillow, PyTorch, 2 other tools, clinical / translational, 1 reference
- [2] doi:10.1038/s43856-026-01817-x [code]
- Visual prompt engineering for multimodal and irregularly sampled medical data.Journal: Communications medicineIn common: Hugging Face Transformers, Pillow, PyTorch, 2 other tools, clinical / translational, 1 reference
- [3] 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 reportsIn common: PyTorch, pandas, NumPy, kaggle.com/datasets/ahmedhamada0
- [4] doi:10.1093/braincomms/fcag253 [code]
- Disease detection and classification in temporal lobe epilepsy: step-wise versus simultaneous AI decision models in a multisite neuroimaging study.Journal: Brain communicationsIn common: Hugging Face Transformers, Pillow, PyTorch, 2 other tools, clinical / translational
- [5] doi:10.1038/s41598-026-50791-w [code]
- Hybrid Vi+ECNN framework for advanced ADHD diagnostic accuracy in medical imaging.Journal: Scientific reportsIn common: Hugging Face Transformers, Pillow, PyTorch, 2 other tools, clinical / translational
- [6] doi:10.1038/s41531-026-01348-1 [code]
- Pathology-Anchored Transcranial Sonography: A Cascaded Super-Resolution Deep Learning System for Early-Stage Parkinson's Disease Grading.Journal: NPJ Parkinson's diseaseIn common: Hugging Face Transformers, Pillow, PyTorch, 2 other tools, clinical / translational
- [7] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn common: Hugging Face Transformers, Pillow, PyTorch, 2 other tools
- [8] doi:10.1038/s41467-026-76837-1 [code]
- Drug screen and machine learning predict neuroprotective agents in a preclinical human model of childhood dementia.Journal: Nature communicationsIn common: Hugging Face Transformers, Pillow, PyTorch, 2 other tools
- [9] doi:10.1038/s41467-026-76098-y [code]
- A single computational objective can produce specialization of streams in visual cortex.Journal: Nature communicationsIn common: Hugging Face Transformers, Pillow, PyTorch, 2 other tools
- [10] doi:10.1162/imag.a.1326 [code]
- RAVEN: Robust, generalizable, multi-resolution structural MRI upsampling using autoencoders.Journal: Imaging neuroscience (Cambridge, Mass.)In common: Hugging Face Transformers, Pillow, PyTorch, 2 other tools
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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 43 scripts, and 0 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:afdc900e43ba67c7…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
