Evidence map›Paper›PMID 41187068›Full record

ArticleCPT: pharmacometrics & systems pharmacology2025

AI for NONMEM Coding in Pharmacometrics Research and Education: Shortcut or Pitfall?

Wenhao Zheng, Wanbing Wang, Carl M J Kirkpatrick, Cornelia B Landersdorfer, Huaxiu Yao, Jiawei Zhou

Abstract readCase Reports
In one paragraph

Article in CPT: pharmacometrics & systems pharmacology, 2025. The graph could read no effect estimate from its abstract, so it casts no vote on the map. Cited by 4 papers.

0numbers the graph read from it
0cells of the map it votes in
4citing papers in PubMed
–field-weighted citation impact
1 · What the graph read from it

What it found

Each row is one number read from the abstract, on the scale the paper reported it, with its interval. Left of the dashed line favours the treatment, right favours the comparator. Under each row is the sentence it came from. New to these charts? A ten-minute tutorial.

The abstract states no effect estimate the extractor could read, or names no intervention and outcome on the map, so this paper lights no cell and moves no belief. It is still indexed, cited and linked below.

2 · The registry

The trial behind it

Trials whose registry record cites this paper, or whose number appears in the abstract. A trial that started after this paper was published is citing it as background, not reporting it.

Neither the registry nor the abstract names a trial number. If this is a trial report, that itself is worth knowing.

3 · Its place in the literature

Who cites it

4 citing papers in PubMed.

  1. Context Engineering for AI-Assisted Pharmacometrics: A Practical Tutorial.CPT: pharmacometrics & systems pharmacology · 2026
    Article
  2. Article
  3. Article
  4. Article
4 · The record

Corrections and comments

PubMed lists nothing against this paper. Absence here is not a guarantee, only a check that was made.

5 · Who and what money

Authors and funding

6 authors.

Wenhao ZhengDepartment of Computer Science, University of North Carolina at Chapel Hill, Chapel Hill, North Carolina, USA.
Wanbing WangDivision of Pharmacotherapy and Experimental Therapeutics, Eshelman School of Pharmacy, University of North Carolina at Chapel Hill, Chapel Hill, North Carolina, USA.
Carl M J KirkpatrickMonash Institute of Pharmaceutical Sciences, Monash University, Parkville, Victoria, Australia.ORCID 0000-0002-5715-1534
Cornelia B LandersdorferMonash Institute of Pharmaceutical Sciences, Monash University, Parkville, Victoria, Australia.ORCID 0000-0003-0928-4743
Huaxiu YaoDepartment of Computer Science, University of North Carolina at Chapel Hill, Chapel Hill, North Carolina, USA.
Jiawei ZhouDivision of Pharmacotherapy and Experimental Therapeutics, Eshelman School of Pharmacy, University of North Carolina at Chapel Hill, Chapel Hill, North Carolina, USA.ORCID 0009-0000-3317-0311

Funding

PharmAllianceUniversity of North Carolina at Chapel Hill
6 · The paper itself

Abstract

Artificial intelligence (AI) is increasingly being explored as a tool to support pharmacometric modeling, particularly in addressing the coding challenges associated with NONMEM. In this study, we evaluated the ability of seven Large Language Models (LLMs) to generate NONMEM codes across 13 pharmacometrics tasks, including a range of population pharmacokinetic (PK) and pharmacodynamic (PD) models. We further developed a standardized scoring rubric to assess code accuracy and created an optimized prompt to improve LLM performance. Our results showed that the OpenAI o1 and gpt-4.1 models achieved the best performance, both generating codes with great accuracy for all tasks when using our optimized prompt. Overall, LLMs performed well in writing basic NONMEM model structures, providing a useful foundation for pharmacometrics model coding. However, user review and refinement remain essential, especially for complex models with special dataset alignment or advanced coding techniques. We also discussed the applications of AI in pharmacometrics education, particularly strategies to prevent overreliance on AI for coding. This work provides a benchmark for current LLMs' performance in NONMEM coding and introduces a practical prompt that can facilitate more accurate and efficient use of AI in pharmacometrics research and education.

Indexed as

Artificial IntelligenceModels, BiologicalPharmacologyHumansPharmacokinetics

Identifiers

PMID41187068
PMCPMC12706393

What OpenQuestion holds

Textmetadata
LicenceCC BY-NC
Read underepoch 390

Registered trials

None linked

Read under generation 80e0d062 · epoch 390. Bibliography from PubMed, PubMed Central and OpenAlex; grants from NIH RePORTER; trial links from ClinicalTrials.gov; estimates, votes and beliefs from the OpenQuestion graph.