Medical Research

Only 1 in 8 Clinical Prediction Studies Shares Code, MIT Review Finds

An MIT- and Dana-Farber-led review of nearly 4,000 studies in Nature Medicine found only about 1 in 8 clinical prediction model papers shared code, and shared code often lacked documentation for reuse.

4 min read

Public code is not always reusable: Review uncovers gaps in medical study documentation
Public code is not always reusable: Review uncovers gaps in medical study documentationPexels / pixabay

Only about one in eight clinical prediction model studies reports sharing code, and published code frequently lacks the documentation needed to reuse it. Those are the headline findings of an AI-assisted scoping review published in Nature Medicine (DOI: 10.1038/s41591-026-04691-1), conducted by an international team led by researchers at MIT and Dana-Farber Cancer Institute.

The review examined almost 4,000 studies that developed, updated or validated prediction models and whose full texts were available through PubMed Central's open-access collection. The team restricted the sample to studies citing TRIPOD or TRIPOD+AI, the existing checklists for reporting how clinical prediction models were developed and evaluated. The findings are now informing TRIPOD-Code, a reporting guideline under development to define what researchers should share.

Why code sharing matters for prediction models

Clinical prediction models estimate patient outcomes, such as the risk of developing a disease, and directly inform decisions about patient care. Access to the underlying data and code allows researchers to verify how patients were selected, how missing values were handled and how results were evaluated.

"Studies involve many choices about how to prepare data, develop models and evaluate performance. These are sometimes called 'researcher degrees of freedom,'" said Tom Pollard, a research scientist at MIT's Laboratory for Computational Physiology and Computer Science and Artificial Intelligence Laboratory, and a senior author of the study. "The choices we make affect the results, and a methods section in a paper can only capture so much detail."

In short: the methods section alone cannot document the analytic choices that drive results.

How the review worked

The researchers used large language models (LLMs, text-processing AI systems) to screen papers, identify statements about code availability and extract links. Software then retrieved the linked repositories — online collections of code and related files — for further assessment.

The workflow went beyond verifying that a link existed. It assessed repositories for completeness of documentation, software requirements and terms of reuse.

"The real benefit of LLMs is their ability to process unstructured information such as text," Pollard said. "These models helped us work with information that was scattered across papers and software repositories, rather than neatly organized in a table."

Two researchers independently checked 500 papers and a separate sample of repositories, resolving disagreements before comparing their assessments with the automated results. Agreement was stronger for concrete characteristics, such as the presence of a license file, than for judgments about documentation adequacy. Because classification errors remain possible, the authors emphasize overall patterns rather than exact counts.

In short: the LLM pipeline scaled the review, but human verification still mattered.

What the gaps look like

The review surfaced two structural problems:

  • Code sharing remains uncommon — roughly 1 in 8 studies.
  • Making code public does not consistently mean providing the documentation and supporting information needed for reuse.

Repository quality varied widely. Some were "extremely well organized and documented, while others gave almost no guidance at all," said Thomas Sounack, the study's first author. Good code sharing, he said, means "giving enough information to understand what the code does and be able to run it to reproduce the results reported in the paper."

Practices also varied substantially across journals and countries. Among journals, the proportion of studies sharing code ranged from zero to more than 70%. Notably, some journals with low sharing rates had written code-sharing policies, suggesting policies alone may not be sufficient to change author behavior.

The review also identified effective practices worth emulating. Some researchers provided synthetic datasets to support code reuse where original patient records could not be shared publicly.

In short: publication of code and usability of code are separate problems, and journal policy is no guarantee of either.

What TRIPOD-Code will do

Clinical prediction research draws together researchers from medicine, statistics and computer science, whose expectations for documenting and sharing code differ. TRIPOD-Code aims to establish a consensus through an expert review process that determines which elements of shared analytical code are essential.

"We want to give researchers practical guidance on how to share code, and give journals clearer expectations to communicate to authors," Pollard said. "The review gives us evidence to inform those discussions."

In short: a minimum standard for shared analysis code is coming, built on this evidence base.

Source: Medical Xpress

Share this article:

More from Marcus Bennett

Marcus Bennett

Show full bio

Staff writer covering companies, deals and strategy in Doctors' Insider is a professional daily at Doctors' Insider.

64 articles

Related articles

« Previous articleNext article »