EUVIMEDEUVIMED entdecken
FallberichtOpen Access · CC BY-NC 4.0

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

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

CPT: Pharmacometrics & Systems Pharmacology · 2025-12 · 14 (12) · 1965-1969

DOI: 10.1002/psp4.70125 ↗

Kurz gefasst

Fallbericht in der Zeitschrift CPT: Pharmacometrics & Systems Pharmacology, online erschienen am 04.11.2025. Verfasst von Wenhao Zheng und 5 weiteren Autor:innen. Beteiligte Einrichtung: Department of Computer Science, University of North Carolina at Chapel Hill, Chapel Hill, North Carolina, USA. Hauptthemen laut MEDLINE: Artificial Intelligence, Models, Biological, Pharmacology. Die Arbeit wurde bisher 5-mal zitiert (Crossref) und nennt 12 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY-NC 4.0). Gefördert von: PharmAlliance, University of North Carolina at Chapel Hill.

AbstractSchlagwörterBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

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.

Schlagwörter

MeSH-Schlagwörter (MEDLINE)

Artificial IntelligenceModels, BiologicalPharmacologyHumansPharmacokinetics

Autor:innen und Institutionen

  • Department of Computer Science, University of North Carolina at Chapel Hill, Chapel Hill, North Carolina, USA.
  • Division of Pharmacotherapy and Experimental Therapeutics, Eshelman School of Pharmacy, University of North Carolina at Chapel Hill, Chapel Hill, North Carolina, USA.
  • Department of Biostatistics, University of North Carolina at Chapel Hill, Chapel Hill, North Carolina, USA.
  • Monash Institute of Pharmaceutical Sciences, Monash University, Parkville, Victoria, Australia.
  • School of Data Science and Society, University of North Carolina at Chapel Hill, Chapel Hill, North Carolina, USA.
  • Lineberger Comprehensive Cancer Center, School of Medicine, University of North Carolina at Chapel Hill, Chapel Hill, North Carolina, USA.

ORCID-Profile: Carl M J Kirkpatrick, Cornelia B Landersdorfer, Jiawei Zhou

Förderung

  • PharmAlliance
  • University of North Carolina at Chapel Hill

Zitieren

APA

Zheng, W., Wang, W., Kirkpatrick, C. M. J., Landersdorfer, C. B., Yao, H., & Zhou, J. (2025). AI for NONMEM Coding in Pharmacometrics Research and Education: Shortcut or Pitfall?. CPT: Pharmacometrics & Systems Pharmacology, 14(12), 1965-1969. https://doi.org/10.1002/psp4.70125

Vancouver

Zheng W, Wang W, Kirkpatrick CMJ, Landersdorfer CB, Yao H, Zhou J. AI for NONMEM Coding in Pharmacometrics Research and Education: Shortcut or Pitfall?. CPT: Pharmacometrics & Systems Pharmacology. 2025;14(12):1965-1969. doi:10.1002/psp4.70125

BibTeX
@article{Zheng2025,
  author = {Zheng, Wenhao and Wang, Wanbing and Kirkpatrick, Carl M J and Landersdorfer, Cornelia B and Yao, Huaxiu and Zhou, Jiawei},
  title = {AI for NONMEM Coding in Pharmacometrics Research and Education: Shortcut or Pitfall?},
  journal = {CPT: Pharmacometrics & Systems Pharmacology},
  year = {2025},
  volume = {14},
  number = {12},
  pages = {1965--1969},
  doi = {10.1002/psp4.70125}
}
Kostenlos starten →