risk_modeling.tex 67 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. \documentclass[11pt]{iopart}
  2. % a hack for using amsmath & iopart
  3. \expandafter\let\csname equation*\endcsname\relax
  4. \expandafter\let\csname endequation*\endcsname\relax
  5. \usepackage{amsmath}
  6. \usepackage{amsfonts}
  7. \usepackage{graphicx}
  8. \usepackage{subfig}
  9. \usepackage{hyperref}
  10. \usepackage{siunitx}
  11. \usepackage{array} % For creating new column types
  12. \captionsetup[subfigure]{
  13. position=top,
  14. captionskip=-1em,
  15. singlelinecheck=false,
  16. }
  17. \graphicspath{{./figs/}}
  18. \bibliographystyle{iopart-num}
  19. \newcommand{\nc}{\mathrm{NC}}
  20. \renewcommand{\ae}{\mathrm{AE}}
  21. \newcommand{\ave}[1]{\left\langle #1 \right\rangle}
  22. % Author's guide:
  23. % https://publishingsupport.iopscience.iop.org/journals/physics-in-medicine-biology/
  24. %
  25. \begin{document}
  26. \title[Quantifying Risk Assessment in Immune Checkpoint Inhibitors]{Quantifying Risk Assessment in Immune Checkpoint Inhibitors Treatment of Malignant Melanoma}
  27. %[Modelling the probability of toxicity with discussion of uncertainties]
  28. %{Modelling the probability of toxicity with the discussion of uncertainties in the therapy treatment of malignant melanoma}
  29. \author{Marija Delić$^{2}$, Martin Horvat$^{1}$, Katja Strašek$^1$, Daniel Huff$^{3}$, Robert Jeraj$^{1,3}$}
  30. \address{%
  31. $^1$Department of Physics, Faculty of Mathematics and Physics, University of Ljubljana, Jadranska cesta 19, 1000 Ljubljana, SI\\
  32. $^2$ Faculty of Technical Sciences, University of Novi Sad, Trg Dositeja Obradovića 6, 21102 Novi Sad, SR \\
  33. $^3$ Department of Medical Physics, School of Medicine and Public Health, University of Wisconsin-Madison, Madison, WI, USA}
  34. \ead{marijadelic@uns.ac.rs}
  35. \begin{abstract}
  36. %
  37. Immune Checkpoint Inhibitors (ICI) have significantly improved cancer treatment outcomes but are associated with a substantial risk of immune-related adverse events (irAEs). Accurate quantification of this risk is essential for timely intervention and improved patient outcomes. Our study aims to develop a predictive model for quantifying risk of irAEs before their clinical diagnosis, utilizing biomarkers derived from medical imaging. Such an approach should provide a framework for continuous risk assessment throughout cancer treatment. To achieve this, we employ logistic regression and Bayes theorem to model risk probabilities, focusing on the transition between biomarker values that predict irAE onset and those that do not.
  38. %
  39. Using quantitative imaging features extracted from 18F-FDG PET/CT images of 58 metastatic melanoma (MM) patients treated with anti-PD-1 and/or anti-CTLA-4 ICIs, we identified biomarker values as independent variables in our risk prediction models. Our analysis targets three organs frequently affected by irAEs: the bowel, lungs, and thyroid. For each method, we calculated optimal and median models, along with $95\%$ confidence intervals, using maximum likelihood estimation (MLE) and bootstrapping to address the small sample size.
  40. %
  41. Our results demonstrate that both models produce meaningful risk quantification, visualized as S-shaped curves, with an inflection point representing the critical threshold between low and high irAE risk. The optimal models (for each organ separately) meaningfully describe the data within the range of biomarker values. The methods presented offer a robust means of quantifying irAE risk in real-time, enabling proactive patient monitoring and by integrating such predictive tools into clinical practice, we aim to enhance early detection of irAEs and improve treatment outcomes for cancer patients undergoing ICI therapy. This approach holds the potential to improve clinical outcomes significantly.
  42. \end{abstract}
  43. \noindent{\it Keywords\/:} risk quantification, immune-related adverse events (irAE), biomarker value, SUV percentile, modelling, toxicity, uncertainty
  44. \submitto{\PMB}
  45. \maketitle
  46. \section{Introduction}
  47. This research is focused on developing a methodology that quantifies the risk of the therapeutic process with an analysis of the uncertainty of the input data and presented methods.
  48. Quantitative risk assessment (QRA) is a systematic approach to evaluating risks by assigning numerical values to different potential risks, typically involving probabilities of events and their associated impacts. It’s used in fields like finance, engineering, environmental science, and health and safety to assess the likelihood and consequences of risk scenarios and make informed decisions. QRA can include different techniques, such as mathematical modeling, numerical data, and statistical analysis, that can evaluate the probability and impact of different factors on the outcome. The development of risk models dates back to the mid-20th century when their application was more prominent in other disciplines. Several measures for evaluating risk model performance have been developed across fields such as meteorology, economics, and psychology \cite{brier1950verification, murphy1973new, yates1982external, wilks2011statistical, toma2014quantitative}. Our focus is primarily on the application and implementation of developed models in medicine \cite{pepe2003statistical, zhou2014statistical, steyerberg, bellazzi2008predictive}. However, this was not so common in branches of medicine, specifically not in cancer treatment analysis, aimed at the risks of treatment. The most developed example of the use of quantitative information for risk assessment in medicine is drug approval practice, where different frameworks have been developed to improve transparency in decision-making \cite{guo2010review, kurzinger2020structured, lineberry2016recommendations}. Also, several studies have been conducted on risk prediction models aimed at determining whether a patient is likely to develop cancer or experience a recurrence in the future \cite{richter2018review, kim2012development, yu2016development}. In such a case, the risk model is a statistical approach used to estimate an individual's probability of experiencing a future adverse outcome within a specified time frame, based on clinical biomarkers, demographic, and lifestyle information. These models are becoming increasingly significant in medical practice as clinical care shifts towards greater personalization based on individual characteristics and needs. Recent literature provides valuable insights into the development, application, and evaluation of such risk models \cite{janes2008assessing, cook2008statistical, pepe2010potential, huang2009parametric}. Modeling disease risk or recurrence is naturally approached as a survival analysis problem, with many studies employing survival analysis techniques to develop predictive models. The Cox Proportional Hazards model \cite{cox2018analysis} is commonly used for this purpose, as it accommodates time censoring and supports multivariate analysis.
  49. %This regression model generates a time-dependent function based on baseline covariate values, estimating the probability of an event occurring at any future point in time.
  50. Logistic regression (LR) is another widely used statistical model, particularly suited for binary outcome prediction \cite{khoshgoftaar1999logistic, nick2007logistic}. This method supports multivariate analysis by building a linear regression model based on the covariates and applying a logistic function to distinguish between the two output classes. It is particularly appropriate for models involving disease states (diseased or healthy) and decision-making (yes or no), and therefore is widely used in studies in the health sciences \cite{shipe2019developing, boateng2019review, schober2021logistic}. Comparing the occurrence of adverse events based on a covariate of interest (e.g., treatment) is a common question in drug safety analysis \cite{pillans2008clinical, murff2003detecting}. Regarding the statistical aspects of adverse event (AE) analysis, guidelines rarely address this topic in depth, instead primarily concentrating on the collection and reporting of data \cite{lineberry2016recommendations}. A recent publication by Coz et al. \cite{coz2024overview} provides an overview of existing regression models suitable for comparing adverse events and discusses the selection of models in relation to the specific characteristics of the adverse events under consideration, where logistic regression and Hazards model stand out as the most prevalent.
  51. Uncertainty estimation is essential for generating confidence evaluations alongside model predictions. The nature of uncertainties and the approaches to addressing them have long been subjects of discussion among statisticians, scientists, engineers, and other specialists \cite{benjamin2014probability, faber2005treatment, lindley2000philosophy, pate1996uncertainties}. This is especially significant in medical imaging, where assessing uncertainty in the model's predictions can help identify areas of concern or offer supplementary information to clinicians \cite{zou2023review}. Uncertainty estimation provides a confidence score, enabling users to assess the reliability of the model's output and recognize instances where the model's performance may be suboptimal \cite{abdar2021review}. Incorporating uncertainty information improves the decision-making process, mitigates risk, and ensures the appropriate involvement of medical professionals in critical cases. There are two main types of uncertainty to be quantified: data uncertainty (aleatoric), which comes from noise in data, including measurement inaccuracies or labeling errors, and model uncertainty (epistemic), which comes from a lack of knowledge or information about the underlying model or data distribution, or from an inadequate model structure \cite{zou2023review, der2009aleatory}. Most of the problems include both types of uncertainties. Aleatoric uncertainty can be quantified by training the model to produce a distribution of possible predictions instead of a single-point estimate, while epistemic uncertainty can (theoretically) be minimized by employing more complex models, gathering additional data, or applying regularization techniques \cite{zou2023review, der2009aleatory, field2007model, kiureghian1989measures}.
  52. Immune Checkpoint Inhibitors (ICI) have significantly improved outcomes and the median overall survival (OS) rate in patients with metastatic melanoma and a variety of other malignancies \cite{wolchok2017overall}, with the cost of high risk of severe serious side effects, named immune-related adverse events (irAE), \cite{gandy2020immunotherapy, lang2019clinical, eshghi201818f, wang2018fatal}. Early detection of irAE is critical to enable optimal treatment planning, minimize treatment interventions, avoid unwanted complications, and improve clinical outcomes. Disease status and treatment responses to ICI are monitored with whole-body 18F-fluorodeoxyglucose positron emission tomography/computed tomography (18F-FDG PET/CT) \cite{aide2022PETmelanoma,filippiRolePET}, which is also sensitive to inflammation of the pathogenesis of irAE \cite{aide2022PETmelanoma}.
  53. %Several studies have tried to identify imaging or clinical biomarkers extracted from lesions to assess patient's response to immunotherapy \cite{anwar2018, basler2020, flaus2021, dirks2023, peisen2024os, hindie2020, kudura2021} and correlation of organ uptake and response \cite{sachpekidis2023, iravani2020}.
  54. For the assessment of irAE, clinical biomarkers for the prediction of irAE have been explored in \cite{nadaraja2024}. Besides that, the study by Hribernik et al. \cite{Hribernik2021} appears to investigate imaging biomarkers of immune-related adverse events (irAE). They have developed percentiles of organ FDG uptake distribution as possible biomarkers of irAE, to identify, monitor and manage irAEs in patients undergoing immunotherapy, which have been found to be robust by Huff et al.\cite{Huff2021}.
  55. %To the best of our knowledge, no other study has looked at imaging biomarkers as predictors of irAE.
  56. %Currently, there are no methodologies to make timely predictions of the occurrence of clinically significant adverse events and assessment of patient-specific treatment risks.
  57. The process of immunotherapy treatment requires constant supervision and timely decision-making to ensure that the therapy risk for the patient will not significantly affect the quality of his life. Most studies consider risk by assessing different adverse events arising from therapy \cite{wang2018fatal, puzanov2017managing}. However, there is a lack of quantification of this risk, encompassing mathematical interpretation, and the ability to stop or modify therapy in a timely manner when potentially life-threatening circumstances arise.
  58. %A model for this purpose could provide valuable insights by establishing thresholds or risk levels that indicate when treatment modifications or discontinuations are necessary to prevent severe impacts on patient quality of life.
  59. %Furthermore, such an approach would support decision-making by enabling continuous reassessment based on patient response, thereby allowing the therapy to adapt dynamically to individual needs.
  60. %Consequently, there is a critical need for risk quantification to facilitate timely responses to therapy adverse events.
  61. In this paper, we aim to propose modeling the probability of developing irAE (risk/toxicity) based on the values of biomarkers that were extracted from patient's images before and during the therapeutic process. The main idea behind this is to develop a model that could predict the appearance of side effects of therapy (irAE) before they are clinically diagnosed, which will support doctors and patients during the therapeutic treatment. Using data from a retrospective study, we make a predictor model for probabilities based on imaging findings (biomarkers) and evaluate its uncertainties. This model should make a reasonable bound between biomarker values that correspond to healthy tissue and the ones that predict the irAE. While our methodologies will be generally applicable in risk analysis, we will focus on the assessment of immunotherapy risks in metastatic melanoma, as a case study.
  62. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  63. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  64. \section{Method}
  65. \subsection{Patient data}
  66. We analyzed retrospectively collected patient data and $^{18}$F-FDG PET/CT imaging of patients with metastatic melanoma (MM) who were treated per standard of care with ICI (anti-CTLA-4 or/and anti-PD1) at two institutions: the Institute of Oncology Ljubljana (OIL), Slovenia or at the University of Wisconsin Carbone Cancer Centre (UW), Madison, WI, USA. The date of clinical diagnosis and grade of irAE were acquired via chart review.
  67. Images of 58 MM patients were retrospectively analyzed for modeling the risk assessment, by following the occurrence of irAE and biomarker selection. We analyzed three target organs, which are most commonly affected by irAE: the lung, bowel, and thyroid. All patients were divided into two groups for each organ of interest; they were assigned to the NC (Normal Control) group, if they did not experience irAE in the organ of interest, or to the AE (Adverse Event) group if they experienced an adverse event in the organ of interest. More about patient data and information on image acquisition can be found in the past work by Hribernik et al. \cite{Hribernik2021}, where the same patient population was used.
  68. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  69. \subsection{[18]F-FDG PET/CT image acquisition and analysis}
  70. In this patient cohort, 18F-FDG PET/CT were primarily acquired for treatment response assessment. Images were acquired on five PET/CT scanners; after reconstruction, images were normalized by patient weight and injected dose to compute standardized uptake values (SUV).
  71. %More information on image acquisition can be found in \cite{Hribernik2021}.
  72. To detect adverse event in an organ of interest, Quantitative Imagining Biomarkers (QIB) extracted from patient's $^{18}$F-FDG PET/CT need to be developed. In our study, we utilized percentiles of organ FDG uptake distribution (SUV percentiles) as potential biomarkers for identifying, monitoring, and managing irAEs in patients undergoing immunotherapy, as these have been demonstrated to be effective descriptors in previously published studies \cite{Hribernik2021, Huff2021}.
  73. The organs of interest in this paper (bowel, thyroid, lung) were segmented using a Convolutional Neural network (CNN) to enable $^{18}$F-FDG organ uptake quantification \cite{Hribernik2021}. Percentiles of standardized uptake value ($SUV_\%$) distribution were extracted from each $^{18}$F-FDG PET for all three organs of interest. We focused on the following percentiles, that were found optimal to detect irAE in Hribernik et al. \cite{Hribernik2021}: $SUV_{95\%}$ for bowel and lungs, and $SUV_{75\%}$ for thyroid. For patients who had multiple $^{18}$F-FDG PET/CT scans, the maximum value of ($SUV_\%$) for each organ of interest was used as a predictor of irAE. To model the probability prediction of a patient experiencing an adverse event, $SUV_\%$ in three organs of interest, and their associated clinical data, were analyzed independently. The number of patients in each group sorted by organs of interest is shown in Table \ref{tab:data_sum}.
  74. \begin{table}[!htb]
  75. \centering
  76. \begin{tabular}{c|c|c}
  77. Organ & $\nc$ group ($N_\nc$) & $\ae$ group ($N_\ae$) \\
  78. \hline
  79. bowel & 52 & 6 \\
  80. lung & 53 & 5 \\
  81. thyroid & 49 & 9
  82. \end{tabular}
  83. \caption{Patient population ($N=58$) used in the study, separated into normal control ($\nc$) and adverse event ($\ae$) group for each analysed organ, $N=N_\nc + N_\ae$.}
  84. \label{tab:data_sum}
  85. \end{table}
  86. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  87. \subsection{Mathematical modelling probability of toxicity and its uncertainty }\label{sec:matmodel}
  88. We consider a random variable $(X,Y)$, where $X$ represents a biomarker value and $Y \in \{\nc, \ae\}$ its binary associated organ's state: normal control and adverse event case. In the process of measurements, we obtained a sample of this random variable:
  89. %
  90. \begin{equation}
  91. {\cal S} = \left\{(x_i,y_i) : y_i \in \{\ae,\nc\},~i = 1,\ldots,N\right\}\>,
  92. \end{equation}
  93. %
  94. where $N$ represents number of patients (in our case $N=58$), $x_i$ is the biomarker value ($SUV_\%$) for the $i$th patient and the considered organ, while $y_i$ is the organ state (NC or AE).
  95. In our model, prior information on which we based conditional probability is the value of biomarker ($SUV_{\%}$), denoted by $X$. We are interested in the probability of adverse events based on the value of the selected biomarker obtained from $^{18}$F-FDG PET/CT images. These biomarker values should be specific to the observed disease and differ in the case of diseased and healthy tissue, \cite{Hribernik2021, Huff2021}. As our study includes irAE in three organs, the lung, bowel, and thyroid, for each of them a specific $SUV_{\%}$ was used, found optimal to detect irAE in Hribernik et al. \cite{Hribernik2021}.
  96. The conditional probability of encountering adverse events as a function of biomarker value, can be denoted as $P(Y = \ae \mid X = x)$.
  97. Let us denote a particular model for conditional probability as $f(x \mid \boldsymbol{\beta})$, where $\boldsymbol{\beta}$ is a vector of parameters. The optimal model or its associated parameters $\boldsymbol{\hat\beta}$ are found using the maximum likelihood estimation (MLE) approach. Due to sample finiteness, the model parameters $\boldsymbol{\beta}$ can be determined up to their probability distribution, because we are considering only a sample from the population \cite{Efron1982}. The latter is obtained by a combination of parametric and non-parametric bootstrapping techniques \cite{Efron1982}.
  98. We see that values of model parameters $\boldsymbol{\beta}$ is a random vector and consequently, the model value $f(x \mid \boldsymbol{\beta})$ at given $x$ is a random variable. The uncertainty of model values is represented by their confidence intervals (CIs). The CI of model values $[L_\alpha(x), U_\alpha(x)]$ with significance level $\alpha$ at a specific biomarker value $x$ is determined by the condition:
  99. %
  100. \begin{equation}
  101. {\rm Prob}\left[L_\alpha(x) \le f(x \mid \boldsymbol{\beta}) \le U_\alpha(x)\right]
  102. = 1 - \alpha \>,
  103. \label{eq:conf_int}
  104. \end{equation}
  105. %
  106. where $ {\rm Prob}[]$ denotes the probability of events satisfying the condition stated in brackets. Here we focus only on equal-tail CI that fulfil additional constraints:
  107. %
  108. \begin{equation}
  109. {\rm Prob}\left[f(x \mid \boldsymbol{\beta}) \le L_\alpha(x)\right] =
  110. {\rm Prob}\left[f(x \mid \boldsymbol{\beta}) \ge U_\alpha(x)\right] = \frac{\alpha}{2} \>.
  111. \end{equation}
  112. %
  113. Another interesting quantity is the median of model values, denoted by $M(x)$, and is determined by the condition:
  114. %
  115. \begin{equation}
  116. {\rm Prob}[f(x \mid \boldsymbol{\beta}) \le M(x) ] = \frac{1}{2} \>.
  117. \end{equation}
  118. %
  119. Median $M(x)$ is typically near to optimal model $f(x \mid \boldsymbol{\hat\beta})$, but diverges, where $f(x \mid \boldsymbol{\hat\beta})$ is near $0$ or $1$, i.e. boundaries of the model value domain. CIs are numerically determined using parametric (estimating distribution of parameters) and non-parametric (sample with replacements) bootstrapping techniques via basics percentile method, see e.g. \cite[Ch.~5.3.1]{DavisonHinkley1997}.
  120. The bootstrapping technique often estimates a population's properties by resampling with replacing the original data and fitting the model to it. So each new sample is associated with corresponding model parameters, and we end up with a set of model parameters. In the non-parametric bootstrapping approach, the set of model parameters is used directly to calculate model values at conserving values of independent variables, and the confidence interval (CI) of model values is obtained as quantiles of the model values, i.e. basics percentile method. On the other hand, in the parametric bootstrapping approach, we approximate an analytical distribution of parameters for the set of model parameters and use a random generator for that analytical distribution to generate parameters and corresponding model values. Based on this, we calculate the CI using the basic percentile method.
  121. We considered two fundamentally different mathematical models, i.e. logistic/logit regression and binary group Bayesian modeling. In the latter, within Bayesian modeling, the groups (NC and AE) are modeled using normal and log-normal distributions. For these model types, we report on optimal model $f(x \mid \boldsymbol{\hat\beta})$, model median $M(x)$, and confidence intervals/bands ${\rm CI}(x)$.
  122. \subsubsection{Logistic regression modeling} \label{sec:log_met}
  123. Logistic regression is a statistical method used to model the relationship between independent variables and a binary outcome. In this study, the binary outcome is defined as the presence or absence of adverse events. The logistic regression framework establishes a linear relationship between the independent variables and the natural logarithm of the odds of the outcome, which corresponds to a sigmoid relationship between the independent variables and the probability of the outcome being 1. This ensures that the predicted probabilities remain constrained within the interval [0, 1].
  124. The model assumes that the odds of experiencing adverse events are a linear function of the biomarker values, defined by the intercept and rate parameters.
  125. Our objective is to determine the conditional probability $P(Y = \ae \mid X = x)$ using logistic regression performed via the MLE method. To address this, we make use of a logistic function, defined as:
  126. %
  127. \begin{equation}
  128. f(x \mid \boldsymbol{\beta}) = \frac{1}{1 + e^{-\beta_0 - \beta_1 x}}\>,
  129. \label{eq:logistic_fun}
  130. \end{equation}
  131. %
  132. with parameter vector $\boldsymbol{\beta} = [\beta_0, \beta_1]^\mathsf{T}$, where $\beta_0$ and $\beta_1$ represent the intercept and rate parameter, respectively, and the conditional probability of irAE occurrence is $P(Y = \ae \mid X = x)=f(x \mid \boldsymbol{\beta})$.
  133. The optimal parameter $\boldsymbol{\beta}$ is obtained using MLE method, i.e., by maximizing the log-likelihood function of the given problem:
  134. %
  135. \begin{equation}
  136. \log L(\boldsymbol{\beta})
  137. = \sum_i
  138. \left[ \delta_{y_i, \ae}\log(f(x_i \mid \boldsymbol{\beta})) +
  139. (1-\delta_{y_i, \ae})\log(1-f(x_i \mid \boldsymbol{\beta}))
  140. \right] \>,
  141. \label{eq:logistic_llnf}
  142. \end{equation}
  143. %
  144. where $\delta_{i,j} = (1:i = j;~0:\textrm{otherwise})$ is Kronecker delta. The local optimum $\boldsymbol{\hat \beta}$ satisfies the zero gradient equation
  145. %
  146. \begin{equation}
  147. \nabla_{ \boldsymbol{\hat\beta}}
  148. \log L(\boldsymbol{\hat\beta})
  149. = \sum_i \left[\delta_{y_i, \ae} - f(x_i \mid \boldsymbol{\hat\beta})\right]
  150. \begin{bmatrix} 1 \\ x_i \end{bmatrix}
  151. = \mathbf{0} \>,
  152. \end{equation}
  153. %
  154. and has a Hessian matrix given by
  155. %
  156. \begin{equation}
  157. \begin{split}
  158. {\bf H}(\boldsymbol{\hat\beta})
  159. &= \nabla_{\boldsymbol{\hat \beta}} \nabla_{\boldsymbol{\hat \beta}}^\mathsf{T} \log L( \boldsymbol{\hat\beta}) \>,\\
  160. &= -\sum_i \left[1 - f(x_i \mid \boldsymbol{\hat\beta})\right]
  161. f(x_i \mid \boldsymbol{\hat \beta})
  162. \begin{bmatrix}
  163. 1 & x_i \\
  164. x_i & x_i^2
  165. \end{bmatrix} \>.
  166. \end{split}
  167. \label{eq:logistic_hessian}
  168. \end{equation}
  169. %
  170. In our study, we find the global optimal parameters $\boldsymbol{\hat \beta}$ using L-BFGS algorithm \cite{Nocedal2006} with a meaningful initial guess. The inverse of the Hessian matrix ${\bf H}(\boldsymbol{\hat\beta})$, Eq.~\eqref{eq:logistic_hessian}, is an asymptotic estimate of the variance-covariance matrix of parameters $\boldsymbol{\Sigma}_{\rm log}$ in MLE method (for details, see \cite{Newey1994} and \cite[Chapters 7.2 and 7.3]{Lehmann2004}). This means that for large sample sizes, we expect that the parameters are approximately normally distributed as
  171. %
  172. \begin{equation}
  173. \boldsymbol{\beta} \sim N(\boldsymbol{\hat\beta}, \boldsymbol{\hat\Sigma}_{\rm log}),\qquad
  174. \boldsymbol{\hat\Sigma}_{\rm log} = -{\bf H}(\boldsymbol{\hat\beta})^{-1} \>,
  175. \label{eq:mvn_log}
  176. \end{equation}
  177. %
  178. where $N(\boldsymbol{\mu}, \boldsymbol{\Sigma})$ represents a multivariate normal distribution with mean $\boldsymbol{\mu}$ and variance-covariance matrix $\boldsymbol{\Sigma}$. %
  179. %
  180. The uncertainty estimation is determined through model confidence intervals, which are constructed using a bootstrapping technique, with several known variants available \cite{Efron1982}. This was done by applying the bootstrapping technique to estimate the parameters of the distribution, which subsequently resulted in uncertainties within the resulting model estimation (see \cite{Efron1994} and \cite[Chapter 15.6]{Press1992}). Due to the small sample size of group $\ae$, non-parametric bootstrapping (resampling with replacement) produces a parameter distribution with multiple competing peaks. Consequently, parametric bootstrapping is required, as described in detail below.
  181. In the case of logistic regression modeling, the non-parametric bootstrapping results in a distribution of parameters with several peaks, which are similarly probable and one dominant. This can be seen in Figure \ref{fig:logit_boots}.a and its zoom into dominant peak \ref{fig:logit_boots}.b. Each peak corresponds to a different number of AE patients in the samples obtained via resampling with replacement technique. The dominant peak is associated with the case described by original data, and at approximately its position we find the MLE parameter $\boldsymbol{\hat\beta}$ marked by a big red dot. The red lines in side figured of \ref{fig:logit_boots}.b represent the marginalized probability density of the parameters Eq.~\eqref{eq:mvn_log}, which only captures the general position and roughly the shape of the bootstrapped peak.
  182. %
  183. \begin{figure}[!htb]
  184. \centering
  185. \includegraphics[width=7cm]{logit_boots}
  186. \includegraphics[width=7cm]{logit_boots_sel}
  187. \caption{Distribution of logistic regression parameters for lung data obtain via non-parametric bootstrapping (a) and zoom into the region of the highest peak (b). In the latter, the red dot marks the MLE parameter, and the red lines in the side figures represent the marginalized asymptotic normal multivariate distribution of the parameters.}
  188. \label{fig:logit_boots}
  189. \end{figure}
  190. %
  191. Because the distribution of parameters obtained by bootstrapping has a lot of finite sample size anomalies, which are difficult to interpret and should vanish in large sample size, we instead use asymptotic limit results and approximate the distribution of parameters $f_{\boldsymbol{B}}(\boldsymbol{\beta})$ as a multivariate normal distribution given by Eq.~\eqref{eq:mvn_log}. This is then used in parametric bootstrapping: sampling parameters from approximated distribution and observe resulting model values.
  192. \subsubsection{Bayesian probability modeling}
  193. The other approach includes Bayesian modeling to access the required probability, which makes this model more complicated than the logistic regression modeling. Bayesian modeling, with its formal use of prior information and iterative updates based on accumulating knowledge, naturally supports decision theory. Bayes' theorem enables modeling depending on previous outcomes and thus provides complete information in such types of modeling of patients’ conditions, the so-called conditional probabilities whose realizations are dependent and induced by previous events. Bayesian modeling uses Bayes' theorem to describe the conditional probability of an event based on data as well as prior information or beliefs about the event or different conditions that are related to the event.
  194. The joint probability distribution of the pair of variables $(X, Y)$ is
  195. %
  196. \begin{equation}
  197. p_{X,Y}(x,y) = p_X(x \mid y) P_Y(y) \>,
  198. \end{equation}
  199. %
  200. where $p_X(x \mid y)$ is the conditional probability density function, and $P_Y(y)$ is the discrete value, respectively represents the probability that the patient is in one of the observed groups $y \in \{\ae, \nc\} $, based on data from a retrospective study.
  201. The total probability law gives the probability density function of $X$:
  202. %
  203. \begin{equation}
  204. p_X (x) = p_X(x \mid \ae) P_Y(\ae) + p_X(x \mid \nc) P_Y(\nc) \>.
  205. \label{eq:tot_prob}
  206. \end{equation}
  207. Namely, we are interested in the conditional probability that a person will experience irAE, i.e. $Y=\ae$, if we know the biomarker $X$ value observed from PET images ($SUV_\%$ specific for each organ of interest). By using the Bayesian formula, this could be modeled as:
  208. %
  209. \begin{equation}
  210. P(Y= \ae \mid X = x) =
  211. \frac{P_Y(\ae) p_X(x \mid \ae)}{ p_X(x \mid \ae) P_Y(\ae) + p_X(x \mid \nc) P_Y(\nc)}\> ,
  212. \label{eq:cond_prob1}
  213. \end{equation}
  214. %
  215. where the denominator equals total probability, Eq.~\eqref{eq:tot_prob}. By introducing ratio between probability densities $r(x)$ and the odds for a patient to be in $\nc$ group $O$ given by
  216. %
  217. \begin{equation}
  218. r(x) = \frac{p_X(x \mid \nc)}{p_X(x \mid \ae)} \quad \textrm{and}\quad
  219. O = \frac{P_Y(\nc)}{P_Y(\ae)} \>,
  220. \end{equation}
  221. %
  222. the conditional probability can be rewritten compactly to
  223. %
  224. \begin{equation}
  225. P(Y= \ae \mid X = x) = \frac{1}{1 + O\, r(x) } \>.
  226. \label{eq:cond_prob2}
  227. \end{equation}
  228. %
  229. This form is particularly convenient to simplify further analysis.
  230. The challenge here is to model the probability density function of SUV percentiles for both groups, $p_X(x \mid \ae)$ and $p_X(x \mid \nc)$, with the proper distribution.
  231. The probabilities for a patient being in each of the groups, i.e. $P_Y(\nc)$, $P_Y(\ae)$, are fixed for our study case and are calculated
  232. using the data in Table~\ref{tab:data_sum} as
  233. %
  234. \begin{equation}
  235. P_Y(\nc) = \frac{N_\nc}{N} \quad\textrm{and}\quad P_Y(\ae) = \frac{N_\ae}{N} \>.
  236. \end{equation}
  237. %
  238. %$N_\nc$ and $N_\ae$ are the numbers of patients in the normal control and adverse effect group, respectively, and $N=N_\nc+N_\ae$ is the number of all patients.
  239. %[{\bf Katja: How do the values in the table compare to other cases reported in the literature}]
  240. \paragraph{Gaussian type of distributions.} Let us model the conditional probability densities associated with both groups, i.e., $p_X(x \mid \ae)$ and $p_X(x \mid \nc)$, as Gaussian distributions:
  241. %
  242. \begin{equation}
  243. p_X(x \mid y) =
  244. \frac{1}{\sqrt{2 \pi} \sigma_y}
  245. \exp\left(-\frac{(x - \mu_y)^2}{2 \sigma_y^2}\right) \qquad
  246. y \in \{\ae, \nc\} \>,
  247. \end{equation}
  248. %
  249. where $\mu_y$ and $\sigma_y$ are the mean and standard deviation of the observed group $y \in \{\ae, \nc\} $. Then we can write the requested conditional probability as
  250. %
  251. \begin{equation}
  252. P(Y = \ae \mid X = x) = \frac{1}{1 + \exp\left(F_{\rm norm}(x)\right)} \>,
  253. \label{eq:prob_gauss}
  254. \end{equation}
  255. %
  256. where $F_{\rm norm}$ is given by
  257. %
  258. \begin{align}
  259. F_{\rm norm}(x) &= \ln\frac{P_Y(\nc)\sigma_\ae}{P_Y(\ae)\sigma_\nc}
  260. -\frac{(x - \mu_\nc)^2}{2\sigma_\nc^2} +
  261. \frac{(x - \mu_\ae)^2}{2\sigma_\ae^2} \>,
  262. \label{eq:Fgauss}
  263. \end{align}
  264. %
  265. Function $F_{\rm norm}$ is a quadratic polynomial in variable $x$ and so by writing $F_{\rm norm}(x) = a_0 + a_1 x + a_2 x^2$ its coefficients are
  266. %
  267. \begin{align}
  268. a_0 &= \ln \left [\frac{P_Y(\nc)\sigma_\ae}{P_Y(\ae)\sigma_\nc} \right]+
  269. \frac{1}{2} \left [-\frac{\mu_\nc^2}{\sigma_\nc^2} + \frac{\mu_\ae^2}{\sigma_\ae^2}\right] \>, \\
  270. a_1 &= \frac{\mu_\nc}{\sigma_\nc^2} - \frac{\mu_\ae}{\sigma_\ae^2}\>, \\
  271. a_2 &= \frac{1}{2}\left [-\frac{1}{\sigma_\nc^2} + \frac{1}{\sigma_\ae^2}\right] \>.
  272. \label{eq:gauss_coeff}
  273. \end{align}
  274. %
  275. Notice that the conditional probability has only three independent parameters, but the total number of parameters is four. The formula for conditional probability, Eq.~\eqref{eq:prob_gauss}, has a similar form as the logistic function, Eq.~\eqref{eq:logistic_fun}, but has significantly different properties. Generally, standard deviations $\sigma_\ae$ and $\sigma_\nc$ are different and in this case asymptotic behavior is determined by the sign of coefficients $a_2$:
  276. %
  277. \begin{equation}
  278. \lim_{x\to\pm \infty} P(Y = \ae \mid X = x) =
  279. \left \{
  280. \begin{array}{lll}
  281. 1 & :& \sigma_\nc < \sigma_\ae \\
  282. 0 &: & \sigma_\nc > \sigma_\ae
  283. \end{array} \right. \>.
  284. \label{eq:bayes_normal_asymp}
  285. \end{equation}
  286. %
  287. This means generally conditional probability $P(Y=\ae \mid X = x)$ has either 1 or 0 asymptote and so it is not an S-shaped curve. If the standard deviations are identical, i.e. $\sigma_\nc = \sigma_\ae \equiv \sigma$, $F(x)$ becomes linear function and conditional probability $P(Y=\ae \mid X = x)$ is translated to a logistic model:
  288. %
  289. \begin{equation}
  290. P(Y = \ae \mid X = x) = \frac{1}{1 + O \exp[b (x - a)]}\>,
  291. \end{equation}
  292. %
  293. with parameters $a = (\mu_\nc + \mu_\ae)/2$, $b = (\mu_\nc - \mu_\ae)/\sigma^2$. In order to have an expected behavior of a monotonically increasing S-shaped curve from 0 to 1 values with increasing value of $x$, parameter $b$ should be negative. %
  294. \paragraph{Log-normal type of distributions.}
  295. In probability theory, a log-normal distribution is a continuous probability distribution of a random variable whose logarithm is normally distributed. If the random variable $X$, in our case SUV percentile, is log-normally distributed, then $ln(X)$ has a normal distribution, \cite{scarpelli2016we,thie2000diagnostic}. Mainly, normal distributions can allow for negative random variables while log-normal distributions include all positive variables. The values of the mentioned biomarker that we are considering through this paper (SUV percentile) can only be positive, which implies that this fact can justify the use of the log-normal distribution for modeling the probability density function of the conditional SUV percentile distribution ($p_X(x \mid \ae), p_X(x \mid \nc)$). The probability density function for log-normal is slightly different from the Gaussian.
  296. If we model the conditional probability densities associated with both groups, i.e., $p_X(x \mid \ae)$ and $p_X(x \mid \nc)$, as log-normal distributions:
  297. %
  298. \begin{equation}
  299. p_X(x \mid y) =
  300. \frac{1}{x\sqrt{2 \pi} \sigma_y}
  301. \exp\left(-\frac{(\ln x - \mu_y)^2}{2 \sigma_y^2}\right) \qquad
  302. y \in \{\ae, \nc\} \>,
  303. \end{equation}
  304. %
  305. where $\mu_y$ and $\sigma_y$ are the mean and standard deviation of the observed group $y \in \{\ae, \nc\} $, then we can write the requested conditional probability as
  306. %
  307. \begin{equation}
  308. P(Y = \ae \mid X = x) = \frac{1}{1 + \exp\left(F_{\rm norm}(\ln x)\right)} \>,
  309. \label{eq:prob_log_normal}
  310. \end{equation}
  311. %
  312. where $F_{\rm norm}(x),$ defined in Eq. \eqref{eq:Fgauss}, represents a quadratic polynomial derived from the normal distribution to describe groups. In this case, the conditional probabilities are identical to those obtained in the normal distribution scenario, except that the argument is replaced by its natural logarithm, $\ln x$. This correspondence implies that the conditional probability exhibits similar asymptotic behavior:
  313. %
  314. \begin{equation}
  315. \lim_{x\to 0, \infty} P(Y = \ae \mid X = x) =
  316. \left \{
  317. \begin{array}{lll}
  318. 1 & :& \sigma_\nc < \sigma_\ae \\
  319. 0 &: & \sigma_\nc > \sigma_\ae
  320. \end{array} \right. \>.
  321. \label{eq:bayes_lognor_asymp}
  322. \end{equation}
  323. %
  324. Additionally, similar to the previous case, the conditional probability is generally not an S-shaped curve. It takes an S-shape only when the spreads are equal, i.e. $\sigma_\nc = \sigma_\ae \equiv \sigma$:
  325. %
  326. $$
  327. P(Y = \ae \mid X = x) = \frac{1}{1 + O \exp(-a b) x^b}\>.
  328. $$
  329. %
  330. The derived formula is functionally equivalent to a logistic model in which the logarithm $\ln x$ serves as the argument. The conditional probability exhibits an S-shaped curve that transitions from 0 to 1 as the argument increases, only for negative values of $b$.
  331. \subsubsection{Properties of the Bayesian approach}
  332. \label{sec:Properties of the Bayesian approach}
  333. In our Bayesian probability modeling, we adopt a two-step process to estimate the conditional probability distribution:
  334. %
  335. \begin{enumerate}
  336. \item Group-wise fitting: We first fit a probability distribution to each group separately, obtaining parameter estimates for each group.
  337. \item Combining parameters: The obtained parameters are then combined to express the conditional probability distribution.
  338. \end{enumerate}
  339. %
  340. To approximate the distribution of the parameters of the conditional probability function, we extend this approach by employing a bootstrapping strategy:
  341. \begin{enumerate}
  342. \item Non-parametric bootstrapping: We perform non-parametric bootstrapping to repeatedly sample data within each group and refit the distributions to obtain sets of bootstrapped parameters for each group.
  343. \item Parameter combination: We then take the Cartesian product (or equivalently, the outer product with a join operation) of the parameter sets from each group. This step results in a combined set of parameters that characterize the conditional distribution.
  344. \end{enumerate}
  345. %
  346. This approach strongly resembles stratified non-parametric bootstrapping, with the difference that stratification is applied during the fitting of the distributions for each group and not during the fitting of the conditional distribution.
  347. It is important to note that any Bayesian model based on normal or log-normal distributions for describing both groups results in conditional probabilities defined by three independent parameters. Without additional constraints on these parameters, the resulting probabilities are not S-shaped on the domain argument. Imposing these constraints transforms the conditional probability model into a logistic model.
  348. To achieve an $S$-shaped conditional probability that transitions from 0 to 1 as the argument increases, it is often necessary to use less commonly employed distributions, which typically have a greater number of parameters. These distributions can be challenging to justify, especially in scenarios with limited data, as the additional parameters may not be supported statistically. Below, we provide two simple examples of distributions defined on the domain $[0, \infty)$:
  349. \begin{enumerate}
  350. \item Beta-prime (inverted Beta) distribution \cite{Johnson1995}: Consider the beta-prime distribution with the probability density function:
  351. %
  352. \begin{equation}
  353. f_{\text{beta'}}(x \mid \alpha, \beta) =
  354. \frac{x^{\alpha - 1} (1 + x)^{-\alpha - \beta}}{\mathrm{B}(\alpha, \beta)}
  355. \qquad \alpha, \beta > 0,
  356. \end{equation}
  357. %
  358. where $\mathrm{B}(\alpha, \beta)$ is the beta function. This distribution can be used to express the probability densities for the two groups as follows:
  359. %
  360. \begin{equation}
  361. p_X(x \mid y) = f_{\text{beta'}}(x \mid \alpha_y, \beta_y) \qquad
  362. y \in \{\ae, \nc\} \>.
  363. \end{equation}
  364. %
  365. The conditional probability $P(Y = \ae \mid X = x)$ takes an $S$-shaped form if the parameters satisfy the following conditions:
  366. %
  367. \begin{equation}
  368. \alpha_\nc < \alpha_\ae \quad \text{and} \quad \beta_\nc > \beta_\ae.
  369. \end{equation}
  370. \item Gamma distribution \cite{Johnson1994}: Next, consider the gamma distribution with the probability density function:
  371. %
  372. \begin{equation}
  373. f_{\text{gamma}}(x \mid \alpha, \lambda) =
  374. \frac{\lambda^\alpha}{\Gamma(\alpha)} x^{\alpha - 1} e^{-\lambda x}
  375. \qquad \alpha, \lambda > 0,
  376. \end{equation}
  377. %
  378. where $\Gamma(\alpha)$ is the gamma function. This distribution can be used to describe the probability densities for the two groups as:
  379. %
  380. \begin{equation}
  381. p_X(x \mid y) = f_{\text{gamma}}(x \mid \alpha_y, \lambda_y) \qquad
  382. y \in \{\ae, \nc\} \>.
  383. \end{equation}
  384. %
  385. The conditional probability $P(Y = \ae \mid X = x)$ is $S$-shaped if the parameters satisfy the conditions:
  386. %
  387. \begin{equation}
  388. \alpha_\nc < \alpha_\ae \quad \text{and} \quad \lambda_\nc > \lambda_\ae.
  389. \end{equation}
  390. \end{enumerate}
  391. %
  392. In the two mentioned distributions, additional parameters—location and scale—are also involved. As a result, the modeling would depend on four parameters, which, given our problem and the available data size, is impractical.
  393. For further information about univariate distributions in use, see e.g. \cite{Johnson1995} and \cite{Johnson1994}.
  394. \section{Results}
  395. %We present two different approaches, logistic and Bayesian, to model the probability of encountering adverse effects as a function of biomarker value, $SUV_\%$.
  396. We are focused on two problems: obtaining the optimal model in the MLE sense and estimating the confidence intervals of the model values.
  397. \subsection{Logistic regression modeling}
  398. We find the optimal value in the MLE sense, and this gives a sigmoid-shaped relationship between the biomarker value $SUV_\%$ (independent variable) and the probability of risk (dependent variable). The optimal model, median model, and 95\% confidence intervals for our data's model values are computed as explained in Sec.~\ref{sec:log_met}. The results are presented in Figure \ref{fig:logit_mvn} and optimized parameter values for each organ in Table \ref{tab:logit_res}. In all cases, lung, bowel, and thyroid data, the optimal solutions were successfully obtained and matched the median of the distribution of model values.
  399. %
  400. \begin{table}[!htb]
  401. \sisetup{round-mode=places,round-precision=3}
  402. \caption{Parameters of the optimal logistic regression model.}
  403. \label{tab:logit_res}
  404. \centering
  405. \begin{tabular}{l|l|l}
  406. organ & $\hat \beta_0$ & $\hat\beta_1$ \\
  407. \hline
  408. lung & \num{-11.683978} & \num{5.687027} \\
  409. bowel & \num{-3.474206} & \num{0.337083} \\
  410. thyroid & \num{-4.387076} & \num{1.163232}
  411. \end{tabular}
  412. \end{table}
  413. The optimal solution aligns with meaningful interpretations of the logistic model to discriminate between groups based on biomarker values ($SUV_\%$). The width of the confidence intervals (CIs) is influenced by the clarity with which patients can be assigned to groups (NC and AE). Thus, the width of the CIs reflects the degree of separation between the groups within the dataset. Consequently, in the lung dataset, where the $\nc$ and $\ae$ groups are most distinctly separated, the CIs are the narrowest.
  414. The disadvantage of this method is that the classes are not pre-separated; data from both groups (NC and AE) are analyzed collectively, and the model determines the division based on the data while optimizing the parameters. On the one hand, this approach simplifies the model, but on the other hand, it impacts the optimization of the parameters.
  415. %
  416. \begin{figure}[!htb]
  417. \centering
  418. \includegraphics[width=0.49\textwidth]{logit_mvn_lung}%
  419. \includegraphics[width=0.49\textwidth]{logit_mvn_bowel}\\
  420. \includegraphics[width=0.49\textwidth]{logit_mvn_thyroid}
  421. \caption{Results for the conditional probability $P(Y=\ae \mid X=x)$ obtain via logistic regression and estimated model uncertainty -- 95\% two-sided confidence intervals of model values for data connected to lungs (top left), bowel (top right) and thyroid (bottom). }
  422. \label{fig:logit_mvn}
  423. \end{figure}
  424. \subsection{Bayesian probability modeling}
  425. Compared to the previously mentioned logistic modeling, Bayesian modeling represents a more advanced theoretical approach. It incorporates assumptions about the distributions of biomarker values within each group (NC and AE) individually, as well as the parameters defining these distributions. These parameters are subject to constraints, making the optimization process numerically sensitive. The primary challenge lies in modeling these distributions, as the dataset of biomarker values available for analysis is very limited - particularly in the AE group, which contains only 6-9 values, depending on the organ of interest. Consequently, we restricted our analysis to distributions with a maximum of two parameters.
  426. \begin{table}[!htb]
  427. \sisetup{round-mode=places,round-precision=3}
  428. \caption{Parameters of the optimal Bayesian model with normal distribution describing conditional probability of groups.}
  429. \label{tab:bayesian_gauss}
  430. \centering
  431. \begin{tabular}{l|l|l|l|l}
  432. organ & $\hat \mu_\nc$ & $\hat\sigma_\nc$ & $\hat \mu_\ae$ & $\hat\sigma_\ae$\\
  433. \hline
  434. lung & \num{1.30761063} & \num{0.25845619} &
  435. \num{2.44364713} & \num{0.88137532} \\
  436. bowel & \num{3.29019878} & \num{1.61425312} &
  437. \num{4.86590897} & \num{2.14788649} \\
  438. thyroid & \num{1.93133207} & \num{0.86266287} &
  439. \num{3.07875405} & \num{0.80272582}
  440. \end{tabular}
  441. \end{table}
  442. %
  443. \begin{figure}[!htb]
  444. \centering
  445. \includegraphics[width=0.49\textwidth]{Bayes_bs_Gauss_lung}%
  446. \includegraphics[width=0.49\textwidth]{Bayes_bs_Gauss_bowel}\\
  447. \includegraphics[width=0.49\textwidth]{Bayes_bs_Gauss_thyroid}
  448. \caption{Results for the conditional probability $P(Y=\ae \mid X=x)$ obtain via Bayesian probability modeling and Gaussian type of distribution for both conditional density functions ($p_X(x \mid \ae), p_X(x \mid \nc)$), with estimated model uncertainty by plotting $95\%$ two-sided confidence intervals of model values for data connected to lungs (top left), bowel (top right) and thyroid (bottom). }
  449. \label{fig:Gauss_bs}
  450. \end{figure}
  451. We compute the optimal model, median model, and $95\%$ confidence intervals of the model values for our data connected with three organs of interest. The results are shown in Figure \ref{fig:Gauss_bs} and optimized parameter values in Table \ref{tab:bayesian_gauss}. From the graphs in Figure \ref{fig:Gauss_bs}, it can be seen that for all cases, lung, bowel, and thyroid data, the optimal solutions were obtained, and the model curve is not completely aligned with the median of distribution values. The width of the model value CI is determined by the unambiguity of attributing a patient into groups based on the biomarker value. Therefore, the width of CIs reflects how well the groups are separated in data. Consequently, in the lung dataset, where $\nc$ and $\ae$ groups are the most separated, the CIs are the narrowest in the part of the graph where we have samples, and going further right it becomes wider because there are no values to direct it. The huge reverse back at the beginning of the lung graph is a consequence of quadratic polynomial function $F_{\rm norm}(x)$, Eq.~\eqref{eq:Fgauss}. In the remaining two organs we are considering, the classes overlap a lot, which causes the model line and median to differ significantly. In all three cases, the right side of the graphs is characterized by a wide confidence interval due to the lack of biomarker values that would better determine it.
  452. Figure \ref{fig:Log_normal_bs} represents results for Bayesian modeling and log-normal distribution type of conditional probability density functions. As in previous cases, we compute the optimal model, median model, and 95\% confidence intervals for the model values for our data. Table \ref{tab:bayesian_lognormal} gives the optimized parameter values for each organ of interest. The optimal solution resembles meaningful solutions for discriminating between groups based on biomarker value. In lung data, the optimal solution was successfully obtained and matched the median distribution of model values. In this class, $\nc$ and $\ae$ groups are the most separated, which results in the narrowest CIs. Again, there is a reverse back at the beginning of the graph, for SUV values close to zero, which is attributed to the form of the quadratic function, $F_{\rm norm}(\ln x)$. %Eq. \eqref{eq:Fgauss} with argument $\ln x$.
  453. The width of CIs reflects how well the groups are separated in data. Consequently, in the bowel and thyroid datasets, where $\nc$ and $\ae$ groups overlap, the CIs are significantly wider. Also, in these groups, especially in bowel data, the median of distribution of model value deviates from the optimal solution.
  454. \begin{table}[!htb]
  455. \sisetup{round-mode=places,round-precision=3}
  456. \caption{Parameter of the optimal Bayesian model with log-normal distribution estimating conditional probability associated to the groups.}
  457. \label{tab:bayesian_lognormal}
  458. \centering
  459. \begin{tabular}{l|l|l|l|l}
  460. organ & $\hat \mu_\nc$ & $\hat\sigma_\nc$ & $\hat \mu_\ae$ & $\hat\sigma_\ae$\\
  461. \hline
  462. lung & \num{0.25012563} & \num{0.18862822} &
  463. \num{0.84495162} & \num{0.3054373} \\
  464. bowel & \num{1.11554438} & \num{0.35077778} &
  465. \num{1.49665276} & \num{0.40295539} \\
  466. thyroid & \num{0.59700658} & \num{0.32538502} &
  467. \num{1.0869074} & \num{0.28239909}
  468. \end{tabular}
  469. \end{table}
  470. \begin{figure}[!htb]
  471. \centering
  472. \includegraphics[width=0.49\textwidth]{Bayes_bs_log_normal_lung}%
  473. \includegraphics[width=0.49\textwidth]{Bayes_bs_log_normal_bowel}\\
  474. \includegraphics[width=0.49\textwidth]{Bayes_bs_log_normal_thyroid}
  475. \caption{Results for the conditional probability $P(Y=\ae \mid X=x)$ obtain via Bayesian probability modeling and log-normal type of distribution for both conditional density functions $(p_X(x \mid \ae), p_X(x \mid \nc))$, with estimated model uncertainty by plotting $95\%$ two-sided confidence intervals of model values for data connected to lungs (top left), bowel (top right) and thyroid (bottom). }
  476. \label{fig:Log_normal_bs}
  477. \end{figure}
  478. We naturally aim for $95\%$ confidence intervals (CIs) or bands to be as narrow as possible. However, in our analysis, the CIs across all datasets and models are generally wide. The narrowest CIs occur for biomarker values near the centers of the two groups. Within this range, the median model values align closely with the optimal model. Outside this range, the CIs become significantly wider, rendering them practically ineffective for uncertainty estimation. The overall width of the CIs can be attributed to the inherent characteristics of the data: the AE group is typically very small (6-9 values), resulting in considerable uncertainty in the group discriminators, and there is substantial overlap between the AE and NC groups. The narrowest CIs are observed in the lung dataset, where group separation is the most distinct. In contrast, the CIs are wider in the bowel and thyroid datasets. It is worth noting that, in the logistic regression approach, parametric bootstrapping was employed, with sampled parameters centered around the maximum likelihood estimate (MLE) solution. In contrast, Bayesian modeling utilized non-parametric bootstrapping to derive confidence intervals for the model values.
  479. \section{Discussion}
  480. Our study explores two approaches for modeling the probability of immune-related adverse events based on biomarker values: logistic regression, a common method for binary outcomes, and Bayesian modeling, which can sometimes reduce to logistic regression. We address two key problems: obtaining the optimal model using maximum likelihood estimation (MLE) and quantifying uncertainties through confidence intervals.
  481. There is a notable lack of empirical evaluations for such models and their uncertainty estimation methods, particularly in real clinical scenarios. This limitation makes it challenging to compare and assess different methods and to identify which approaches are most effective and efficient for specific tasks.
  482. \paragraph{Obtaining the optimal model:}
  483. Let's return to our probabilistic model $P(Y = \ae \mid X = x) = f(x \mid \boldsymbol{\beta})$ typically selected by fitting a theoretical distribution to data. While standard goodness-of-fit tests assess overall fit, they often fail to ensure accuracy in the tail, which is critical in structural reliability and risk analysis. Different well-fitted distributions can yield varying probability estimates, introducing epistemic (model) uncertainty. To address this, we parameterize distribution selection, representing model uncertainty through parameter uncertainty. This is achieved using bootstrapping techniques to estimate parameters in our probabilistic approach.
  484. This study examined two theoretically distinct models, yielding results that may seem unexpected at first glance. Although the Bayesian method is more complex and theoretically expected to perform better, logistic regression proved more effective in producing a monotonically increasing S-shaped curve, accurately assigning probabilities to biomarker values, where higher values indicate a greater likelihood of developing irAEs.
  485. We conclude that all presented models effectively describe the data within the observed range of biomarker values. By 'effectively,' we mean that the optimal model follows an S-shaped curve with an inflection point between the expected centers of the two groups. However, Bayesian models lack predictive power outside the observed range, as meaningful predictions cannot be made without supporting data.
  486. Notably, in Bayesian modeling, the function exhibits a sharp reversal near zero. This fundamental drawback, thoroughly explained in previous sections, arises from the nature of the modeling process and, given the distribution used in our modeling, cannot be mitigated by numerical adjustments. While it could be reduced or even eliminated with alternative distributions, as mentioned at the end of Sec.~\ref{sec:Properties of the Bayesian approach}, this would typically require a greater number of parameters, which, in this case, is neither justified nor feasible with such a limited dataset.
  487. Therefore, we favor logistic regression, which, despite its simplicity and long-standing use, aligns more closely with the expected function behavior. Furthermore, in the special case where the dispersion of observed data classes is equal, Bayesian modeling reduces to logistic regression.
  488. Beyond selecting the optimal model, an equally critical aspect of our study is understanding the uncertainties associated with these models. While logistic regression demonstrated superior predictive performance within the observed data range, its reliability depends on how well the underlying assumptions hold. To better assess these limitations, we now turn to an in-depth analysis of uncertainty sources and their impact on prediction accuracy.
  489. \paragraph{Quantifying uncertainties:}
  490. The presented models are imperfect mathematical idealizations of reality, containing uncertainties classified as aleatory (data) or epistemic (model). Data uncertainty arises from noise, such as measurement errors, and remains irreducible.
  491. Model uncertainty stems from limited knowledge, inadequate model structure, or data distribution gaps and can be reduced with more data, complex models, or regularization.
  492. In this study, epistemic uncertainty has the greatest impact, primarily due to data limitations and the model of the data distribution. Model parameters are estimated by fitting to observed data. Key uncertainties affecting our model include:
  493. \begin{enumerate}
  494. \item Data uncertainty, stemming from variations across scans, noise, and measurement errors.
  495. \item Model uncertainty, arising from the chosen probabilistic model structure for conditional density functions $p_X(x \mid \ae)$ and $p_X(x \mid \nc)$.
  496. \item Statistical uncertainty, in estimating parameters of the probabilistic models.
  497. \end{enumerate}
  498. \paragraph{How to use the results:}
  499. Logistic regression is the most widely used modeling approach, as demonstrated by numerous literature reviews on the topic \cite{shipe2019developing, boateng2019review, schober2021logistic}. However, uncertainty analysis, particularly the calculation of confidence intervals or bands, is commonly neglected in the reviewed studies. In this paper, our aim is to address this gap by fitting different binary classification probability models and estimating their uncertainties. The confidence intervals in the resulting model offer valuable insights into the reliability and applicability of the fitted model across different biomarker regimes.
  500. To provide a concrete example, let us consider a hypothetical patient with the value of biomarker $SUV_{\%}$, $x=2$ and discuss the probability of having adverse events based on obtained results.
  501. We analyze the results from different models used to predict the likelihood of adverse events.
  502. The optimal values represent the best predictions of the model, while the median provides the central value of the predicted distribution, which can be useful for assessing the most likely outcome. Additionally, the confidence interval offers insight into the precision of the predictions and encompasses potential variations of the model, allowing us to evaluate the uncertainty in the predictions. By analyzing these values, we gain a broader understanding of the reliability and applicability of the models, as well as the varying degrees of uncertainty present in certain cases.
  503. It is important to note that the results are based on $95\%$ confidence intervals, which, in the context of predicting medical outcomes, represent a relatively high standard. This level of uncertainty is often considered a stringent requirement in medical prediction models, as it ensures a higher degree of reliability in the results, but also highlights the inherent variability and complexity involved in predicting clinical events.
  504. By looking the plots, represented in Result section, concretely at Figures \ref{fig:logit_mvn}, \ref{fig:Gauss_bs} and \ref{fig:Log_normal_bs}, we can collect results for probability of irAE in lungs at biomarker value $x=2$ in Table~\ref{tab:example}.
  505. %
  506. \begin{table}[!htb]
  507. \caption{Collecting results for conditional probability to encounter irAE in lungs, for biomarker value $x=2$. For simpler interpretation probabilities are presented in percentages. $95\%$ confidence intervals $CI = [L_\alpha(x), U_\alpha(x)]$ are formed with significance level $\alpha = 0.05$ as explained by Eq.~\eqref{eq:conf_int}. }
  508. \label{tab:example}
  509. \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
  510. %\sisetup{round-mode=places,round-precision=3}
  511. \newcommand\perc[2][round-precision = 2]{% default precision: 2
  512. \SI[round-mode = places,
  513. scientific-notation = fixed, fixed-exponent = 0,
  514. output-decimal-marker={.}, #1]{#2e2}{\percent}%
  515. }
  516. \centering
  517. \begin{tabular}{c|C{3.5cm}|C{3.5cm}|C{4cm}|}
  518. Value type & Logistic regression (\%) & Bayesian-normal model (\%) & Bayesian-lognormal model (\%)\\ \hline
  519. optimal & \perc{0.4233901220524278} & \perc{0.4699474053976193} & \perc{0.4482002564354698} \\
  520. median & \perc{0.42470951308011934} & \perc{0.623216859317194} & \perc{0.5459891837691182} \\
  521. $L_\alpha(x)$ & \perc{0.11738712465726915} & \perc{0.1197384899797259} & \perc{0.18154603727740523} \\
  522. $U_\alpha(x)$ & \perc{0.8032612583732215} & \perc{0.9942089585927604} & \perc{0.9247083133161718}
  523. \end{tabular}
  524. \end{table}
  525. The logistic regression model predicts a $42.34\%$ probability of adverse events at the given biomarker value, while the median probability $42.47\%$ is very close to the optimal, indicating that the model's predictions do not vary greatly from the central tendency. The $CI = (11.74\%,80.33\%)$ is very wide, suggesting huge uncertainty in the logistic regression model.
  526. The Bayesian models, with optimal predictions of $46.99\%$ and $44.82\%$ (for the normal and lognormal distributions, respectively), yield slightly higher probabilities of adverse events compared to the logistic regression model. Furthermore, the median predictions of $62.32\%$ and $54.60\%$ for the Bayesian-normal and Bayesian-lognormal models are significantly higher than the median of the logistic regression model, reflecting the Bayesian models' tendency to assign greater probabilities to adverse events.
  527. The confidence intervals, $CI = (11.97\%, 99.42\%)$ for the Bayesian-normal model and $CI = (18.15\%, 92.47\%)$ for the Bayesian-lognormal model, are notably wider than those of the logistic regression model. This highlights a higher degree of uncertainty, especially considering the upper bounds reaching almost $100\%$, suggesting that the Bayesian-normal model is more sensitive to variability in the data. While the Bayesian-lognormal model’s predictions are less extreme than the Bayesian-normal model’s, they still exhibit considerable variation when compared to the logistic regression model, which offers more stable predictions.
  528. The broader intervals in the Bayesian models indicate that, while they provide a wider range of potential outcomes, they also capture more variability and uncertainty.
  529. The logistic regression model provides more conservative and stable predictions with narrower confidence intervals, suitable when lower uncertainty is preferred, but with potentially less sensitivity to higher risk.
  530. These results highlight the trade-off between model complexity, risk sensitivity, and degree of uncertainty, which is crucial when making medical predictions. We can conclude that all models are characterized by a high degree of uncertainty and requiring $95\%$ confidence intervals in such cases may be overly stringent, especially given the limited sample size. This substantial uncertainty is clearly reflected in the presented results, where the wide confidence intervals suggest considerable variability in the predictions. The small sample size further exacerbates this issue, as it limits the model's ability to reliably capture the true underlying distribution and make precise predictions.
  531. While uncertainty quantification provides valuable insights into model reliability, it also highlights the limitations inherent in the current modeling approach. The primary constraints stem from data availability and the choice of biomarkers, both of which influence the robustness of our findings. We highlight two main challenges and limitations encountered during our research in more detail and suggest potential improvements for future research:
  532. \begin{enumerate}
  533. \item The amount of data available when fitting distributions is one of the most significant limiting factors which stems from the specificity of the real-world data we are working with and the inability to expand the modeled dataset significantly. It influences both the choice of model and the optimization of the parameter values within the distribution, leading to the introduction of substantial uncertainties into the modeling process.
  534. A potential avenue for expanding the dataset may allow for the analysis of more complex distributions and the inclusion of additional parameters, leading to a more comprehensive understanding.
  535. We anticipate that the expansion of the database would greatly enhance the model's efficiency, contributing to improved reliability, better fit, and narrower confidence intervals. Currently, the limited dataset poses a significant constraint, making the method somewhat imprecise.
  536. However, the primary objective of this work is not the results derived from this small dataset but rather the introduction of a novel approach to data access and modeling methodology within the context of cancer treatment practices.
  537. \item In addition, some of the model's imperfections may stem from the choice of biomarker used as the primary predictive feature. Although previous studies \cite{Hribernik2021, Huff2021}, have shown that the biomarker $SUV_\%$ can be used to predict irAEs - specifically, that its increased activity is associated with the occurrence of irAEs, we believe that a significant focus of future research should be on the development of biomarkers. The investigation may explore in more detail the distributions of biomarker values, such as $SUV_\%$ and potential $maxSUV$. Additionally, there is potential for incorporating multiple distinct biomarkers and exploring appropriate aggregation functions to combine them into a unified predictive feature.
  538. We strongly believe that the model can be improved by enhancing its predictive power through the inclusion of more variables in the formation of the biomarker, i.e., the value of the independent variable.
  539. \end{enumerate}
  540. \section{Conclusions}
  541. In this paper, we have implemented two different mathematical approaches for risk quantification of therapeutic process with specific likelihoods, in the treated group of 58 melanoma patients. We have shown that some of the well-known mathematical methods can be used successfully for risk prediction, with an analysis of the effectiveness and uncertainty of the input data and model. The increased activity of 18F-FDG detected in PET/CT images and measured through a biomarker $SUV_\%$, was shown to be useful in the detection and monitoring of irAE. The mathematical models implemented to quantify information, obtained from 18F-FDG images, should be viewed as powerful tools with great potential to guide personalized treatment strategies in immunotherapy and other cancer therapy treatments. It could represent the beginning of a new era of data analysis in healthcare practice and should open up opportunities for further work and development in monitoring the therapeutic process, all to avoid potentially life-threatening treatment-related complications.
  542. \section{Acknowledgements}
  543. This research was supported by the Science Fund of the Republic of Serbia, GRANT No 9393, Optimization and prediction in therapy treatments of cancer - OPTIC, by the Ministry of Science, Technological Development and Innovation (Contract No. 451-03-137/2025-03/200156) and the Faculty of Technical Sciences, University of Novi Sad through project “Scientific and Artistic Research Work of Researchers in Teaching and Associate Positions at the Faculty of Technical Sciences, University of Novi Sad 2025” (No. 01-50/295), and by Slovenian Research Agency ARIS, research program P1-0389 and project N1-0197.
  544. \section{Ethical statement}
  545. The study was conducted following the ethical standards defined by the Declaration of Helsinki. It was approved by the Institutional Review Board Committee of both Institutions (Approval number: 2016-0418 in Madison, USA; ERIDKE-0005/2020 in Ljubljana, Slovenia).
  546. All included subjects consented to being included in the study. At OIL, patients signed informed consent for treatment and consent allowing the usage of their data for scientific purposes. At the UWCCC, the study was approved with a waiver of informed consent.
  547. %\nocite{*}
  548. \section*{References}
  549. \bibliography{refs}
  550. \end{document}