bioRxivBioinformaticsPreprint
N-Power AI: A Specialized Agent Framework for Automated Sample Size and Power Analysis in Clinical Trial Design
Peifeng RuaniD, Ismael Villanueva-MirandaiD, Jialiang LiuiD, Donghan M. YangiD, Qi ZhouiD, Guanghua XiaoiD, Yang XieiD
Abstract
BackgroundSample size and power analysis are essential in biomedical research and investigations, particularly in clinical trial design, as they ensure sufficient statistical power to detect meaningful effects. However, the complexity of these calculations often requires specialized statistical expertise, making the process inconvenient and limiting accessibility for researchers during early-stage study planning. MethodsWe developed N-Power AI, an agentic framework leveraging large language models (LLMs) to perform sample size and power calculations across diverse study designs. The framework consists of three specialized agents: the Function Agent, a perception and reasoning module that identifies appropriate statistical tests and corresponding R functions; the Calculation Agent, an action module that extracts parameters and executes precise computations; and the Reporting Agent, a presentation module that generates comprehensive, downloadable reports. N-Power AI and advanced LLMs (e.g., GPT-o1, Claude 3.5, Gemini 1.5 Pro) were evaluated against ground truths from statistical software (R) across six common clinical trial scenarios. ResultsDirect LLM outputs showed significant deviations from ground-truth values, particularly in complex scenarios like the Chi-Square Test and Cox Proportional Hazards Model. In contrast, N-Power AI achieved 100% agreement with ground truths across all scenarios. This accuracy is attributed to the Function Agents correct selection of statistical methods, the Calculation Agents accurate computations, and the Reporting Agents ability to produce clear and comprehensive summaries. ConclusionN-Power AI automates sample size and power analysis, offering an effective, efficient, and accessible solution for early-stage study planning. While human expertise remains crucial for high-level statistical planning, N-Power AI enhances accessibility and efficiency, streamlining the analysis process to generate reliable and reproducible results for a wide range of research scenarios.
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Evaluating open LLMs for agentic analysis orchestration in a typical biomedical lab
Anton Nekrutenko·bioRxiv·May 18, 2026
- Real Science Is Harder Than Benchmarks: Evaluating Advanced AI Frameworks on Published Studies. I. Uncertainty Quantification, ML on Therapeutic Data Commons, and Agent-Based Modeling
Mohammed O. Ahmed, Sahil Anil Amale, … Anton V. Sinitskiy·bioRxiv·Jun 27, 2026
- Can AI Conduct Autonomous Scientific Research? Case Studies on Two Real-World Tasks
Shreyansh Agrawal, Harsh Anadkat, … Anton V. Sinitskiy·bioRxiv·Jan 6, 2026
- PromptBio: An Agentic Platform for End-to-End Computational Biomedical Research
Minzhe Zhang, Wenhao Gu, … Xiao Yang·bioRxiv·Sep 6, 2026
- Practical Use of Advanced AI Frameworks on Real-Life Scientific Problems: Three Case Studies
Halime Sadiye Alagoz Gulluoglu, Jibin Baby, … Anton V. Sinitskiy·bioRxiv·Jun 29, 2026
- Enhancing Statistical Power While Maintaining Small Sample Sizes in Behavioral Neuroscience Experiments Evaluating Success Rates
Theo Desachy, Marc Thévenet, … Nicola Kuczewski·Peer Community JournalPeer-reviewed·Oct 23, 2025