Learning like a radiologist: a medical vision-language model for radiological image analysis via curriculum learning.
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: 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.1148/ryai.230520 [code]
- Boosting Deep Learning for Interpretable Brain MRI Lesion Detection through the Integration of Radiology Report Information.Journal: Radiology. Artificial intelligenceIn common: Hugging Face Transformers, PyTorch, NumPy, clinical / translational, 3 references
- [2] doi:10.1038/s41746-025-02108-w [code]
- Understanding the robustness of vision-language models to medical image artefacts.Journal: NPJ digital medicineIn common: Hugging Face Transformers, Pillow, PyTorch, 2 other tools, kaggle.com/datasets/ahmedhamada0
- [3] doi:10.1038/s41467-025-57426-0 [code]
- Towards a holistic framework for multimodal LLM in 3D brain CT radiology report generation.Journal: Nature communicationsIn common: Hugging Face Transformers, Pillow, PyTorch, 2 other tools, 2 references
- [4] doi:10.1016/j.isci.2024.109004 [code]
- A self-supervised learning approach for registration agnostic imaging models with 3D brain CTA.Journal: iScienceIn common: Hugging Face Transformers, Pillow, PyTorch, 2 other tools, 2 references
- [5] doi:10.1515/bmt-2024-0396 [code]
- &
lt;i& gt;MedShapeNet& lt;/ i& gt; - a large-scale dataset of 3D medical shapes for computer vision. Journal: Biomedizinische Technik. Biomedical engineeringIn common: Pillow, PyTorch, pandas, 1 other tool, 3 references - [6] doi:10.1038/s41597-024-03337-6 [code]
- SAROS: A dataset for whole-body region and organ segmentation in CT imaging.Journal: Scientific dataIn common: pandas, NumPy, 4 references
- [7] 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
- [8] doi:10.1038/s41746-025-01773-1 [code]
- Detection of epileptic spasms using foundational AI and smartphone videos.Journal: NPJ digital medicineIn common: Hugging Face Transformers, Pillow, PyTorch, 2 other tools, clinical / translational, 1 reference
- [9] 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
- [10] doi:10.1371/journal.pdig.0000874 [code]
- Efficient slice anomaly detection network for 3D brain MRI Volume.Journal: PLOS digital healthIn common: Pillow, PyTorch, pandas, 1 other tool, kaggle.com/datasets/ahmedhamada0
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:8fc8e453d43b16d7…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1038/s41746-026-02713-3)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41746-026-02713-3.svg
:target: https://openscicode.org/badge/doi/10.1038/s41746-026-02713-3
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41746-026-02713-3"><img src="https://openscicode.org/badge/doi/10.1038/s41746-026-02713-3.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge 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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
