# Based a machine learning approach to investigate the factors influencing nirmatrelvir/ritonavir exposure in human plasma: a multicenter, observational study

**Authors:** Yue Zhang, Xiner Yang, Liang Sun, Runcong Zhang, Weibin Fan, Nengming Lin, Bin Lin

PMC · DOI: 10.3389/fcimb.2026.1744619 · 2026-03-06

## TL;DR

This study uses machine learning to identify factors affecting how nirmatrelvir/ritonavir concentrations vary in patients, aiming to improve personalized treatment for COVID-19.

## Contribution

A machine learning model is developed and validated to predict nirmatrelvir/ritonavir plasma concentrations based on clinical variables.

## Key findings

- Nirmatrelvir trough concentration was not predictive of patient outcomes (AUC = 0.467).
- Six factors (eGFR, CK, AST, ALT, Lymph, PCT) were identified as key determinants of drug exposure.
- The XGBoost model achieved an R-squared of 0.779, indicating strong predictive performance.

## Abstract

Nirmatrelvir/ritonavir (N/R) is an effective antiviral for treating COVID-19. However, evidence supporting therapeutic drug monitoring (TDM) for N/R remains limited, potentially increasing the risk of adverse reactions and compromising efficacy. This study aims to identify factors influencing N/R plasma exposure and to develop and internally validate a machine learning model for predicting N/R concentrations, thereby supporting individualized therapy.

We retrospectively analyzed data from 139 patients who received N/R at two centers. Baseline clinical and laboratory variables were collected, and steady-state trough concentrations of nirmatrelvir and ritonavir were measured on day 3 of treatment. Logistic regression was used to examine the association between drug concentration and prognosis. After excluding highly correlated features, a random forest model identified key factors affecting drug exposure. An XGBoost regression model was then constructed with the selected features, and its predictive performance was evaluated using mean absolute error (MAE), mean squared error (MSE), root mean squared error (RMSE), and R². Five-fold cross−validation was applied for internal validation.

Nirmatrelvir trough concentration was not predictive of patient outcomes (AUC = 0.467). Six factors were consistently identified as important determinants of N/R exposure: estimated glomerular filtration rate (eGFR), creatine kinase (CK), aspartate aminotransferase (AST), alanine aminotransferase (ALT), lymphocyte count (Lymph), and procalcitonin (PCT). Ultimately, the evaluation of the predictive model resulted in a mean absolute error (MAE) of 0.717, mean squared error (MSE) of 1.328, root mean squared error (RMSE) of 1.152, and coefficient of determination (R-squared) of 0.779. The prediction model performs well and can provide risk prediction for medication management for N/R, as well as assist in personalized medication.

We identified a set of variables that affect the treatment of N/R through therapeutic drug monitoring and established a machine learning model capable of predicting N/R concentrations with satisfactory performance. These findings provide a basis for integrating TDM with multivariable prediction tools to personalize N/R dosing and improve medication safety.

## Linked entities

- **Chemicals:** nirmatrelvir (PubChem CID 155903259), ritonavir (PubChem CID 5076)
- **Diseases:** COVID-19 (MONDO:0100096)

## Full-text entities

- **Genes:** CMPK1 (cytidine/uridine monophosphate kinase 1) [NCBI Gene 51727] {aka CK, CMK, CMPK, UMK, UMP-CMPK, UMPK}, GPT (glutamic--pyruvic transaminase) [NCBI Gene 2875] {aka AAT1, ALT, ALT1, GPT1, SGPT}, SLC17A5 (solute carrier family 17 member 5) [NCBI Gene 26503] {aka AST, ISSD, NSD, SD, SIALIN, SIASD}
- **Diseases:** COVID-19 (MESH:D000086382)
- **Chemicals:** N/R (MESH:C000719967), Nirmatrelvir (MESH:C000718217), ritonavir (MESH:D019438)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Figures

6 figures with captions in the complete paper: https://tomesphere.com/paper/PMC13002785/full.md

---
Source: https://tomesphere.com/paper/PMC13002785