Can shared code make medical prediction studies easier to check?
Idiocracy Medical research By What The Future Newsroom · November 19, 2026 · 3 min read

Can shared code make medical prediction studies easier to check?

An AI-assisted review of almost 4,000 clinical prediction studies found that only about 1 in 8 reported sharing code. The findings are helping shape TRIPOD-Code, guidance on what researchers should provide so others can understand and reuse that code.

When a clinical prediction study estimates a patient’s risk, the published result is only part of the story. The data and code behind it can show how researchers selected patients, handled missing values, and evaluated a model. An AI-assisted review of almost 4,000 studies found that code sharing remains uncommon, and a public repository does not always include what others need to reuse the work.

“The story describes AI helping audit research transparency, with only a mild concern that scarce shared code limits reproducibility.”Why it scores Idiocracy

Finding code across thousands of studies

The international team, led by researchers at MIT and Dana-Farber Cancer Institute, examined studies that developed, updated, or validated clinical prediction models. These models estimate patient outcomes, such as the risk of developing a disease, and can inform decisions about patient care. Researchers need to be able to inspect how a model was built and tested.

The review focused on almost 4,000 papers citing TRIPOD or TRIPOD+AI, reporting checklists for clinical prediction models. The papers had full texts available through PubMed Central’s open-access collection. Since authors describe code availability and link to repositories in many different ways, the team used a large language model (LLM) to screen papers, find statements about code, and extract links.

Software then retrieved the linked repositories—online collections of code and related files—for assessment. The team looked beyond whether a link existed, considering documentation, software requirements, and terms of reuse. Human reviewers checked the automated work: two researchers independently reviewed 500 papers and a separate sample of repositories, resolving disagreements before comparing their assessments with the system’s results.

A link does not guarantee reusable code

Only about 1 in 8 studies reported sharing code. Among the studies that did, repository contents varied widely. Some were well organized and documented; others offered little guidance about what the code did or how to run it.

That gap matters because code can reveal practical choices that a methods section may not fully describe. Sharing a repository makes closer inspection possible, but readers still need enough information to understand the files and reproduce the reported results. Documentation, software requirements, and reuse terms all help determine whether sharing serves that purpose.

The automated review was more reliable for concrete checks, such as whether a license file was present, than for judgments about the quality of documentation. The authors therefore emphasize overall patterns rather than treating every count as exact. The review offers a broad picture, while recognizing that some classifications may be wrong.

Policies and practices vary

Code-sharing rates differed substantially across journals and countries. Among journals, the share of studies reporting code ranged from zero to more than 70 percent. Some journals with low sharing rates had written code-sharing policies, suggesting that a policy on its own may not be enough to prompt authors to share.

The review also surfaced useful ways to support reuse when data cannot be made public. Some researchers provided synthetic datasets so others could work with the code even when the original patient records were unavailable. This example shows that code and data access are related, but that a repository can still be made more useful when patient records cannot be shared.

Researchers in clinical prediction bring together medicine, statistics, and computer science, fields that may have different expectations for documenting and sharing analytical code. A common standard could make those expectations clearer for authors and the journals that publish their work.

Developing guidance for researchers and journals

The findings are informing TRIPOD-Code, a reporting guideline being developed through an expert review process. It builds on TRIPOD and TRIPOD+AI and aims to establish which elements of shared analytical code should be considered essential.

The goal is practical: to give researchers clearer direction about what to include and help journals communicate expectations to authors. By showing where current repositories fall short—and where sharing is already effective—the review gives those discussions evidence to work from. More consistent guidance could make code easier to inspect, understand, and reuse across clinical prediction research.

Medical researchArtificial intelligenceOpen science
← Back to the wire

Read next