Temporal Point Process Modeling of Aggressive Behavior Onset in Psychiatric Inpatient Youths with Autism
Extracted source text · arXiv 2503.15821
\documentclass[fleqn,10pt]{wlscirep}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{appendix}
\usepackage{hyperref}
\usepackage{xr}
\usepackage{lineno}
% \linenumbers
\usepackage[explicit]{titlesec}
\titleformat{\section}{\normalfont\Large\bfseries}{}{0em}{#1}
\titleformat{\subsection}{\normalfont\large\bfseries}{}{0em}{#1}
\titleformat{\subsubsection}{\normalfont\normalsize\bfseries}{}{0em}{#1}
\titlespacing\section{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 4pt}
\titlespacing\subsection{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 4pt}
\titlespacing\subsubsection{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 4pt}
\setlength{\parskip}{0em}
\usepackage[capitalise,noabbrev,nameinlink]{cleveref}
% Redefine caption labels for tables and figures
\crefalias{figure}{figc}%
\crefname{figc}{Fig.}{Figs.}
\Crefname{figc}{Figure}{Figure}
\crefname{subfigure}{Fig.}{Figs.}
\Crefname{subfigure}{Figure}{Figures}
\Crefname{section}{Section}{Sections}
\crefname{section}{Section}{Sections}
% \creflabelformat{equation}{#2\textup{(\textcolor{black}{#1})}#3}
\Crefname{subsection}{Subsection}{Subsections}
\crefname{subsection}{Subsection}{Subsections}
\newcommand{\secref}[1]{\textcolor{blue}{Section} \textcolor{blue}{``\nameref{#1}''}}
% customize for supplement
\newcommand{\beginsupplement}{%
\setcounter{table}{0}%
\setcounter{figure}{0}%
\setcounter{equation}{0}%
\renewcommand{\theequation}{S\arabic{equation}}%
\renewcommand{\thetable}{S\arabic{table}}%
\renewcommand{\thefigure}{S\arabic{figure}}%
% Redefine caption labels for tables and figures
\renewcommand{\tablename}{Supplementary Table}%
\renewcommand{\figurename}{Supplementary Figure}%
\crefalias{table}{apptab}%
\crefalias{figure}{appfig}%
\crefalias{section}{appsec}
\crefalias{equation}{appeq}
}
\renewcommand{\appendixpagename}{Supplementary Information}
% Define custom names for appsectab type
\crefname{appfig}{Supplementary Fig.}{Supplementary Figs.}
\Crefname{appfig}{Supplementary Figure}{Supplementary Figure}
\crefname{apptab}{supplementary table}{supplementary tables}
\Crefname{apptab}{Supplementary Table}{Supplementary Tables}
\crefname{appsec}{supplementary section}{supplementary sections}
\Crefname{appsec}{Supplementary Section}{Supplementary Sections}
\crefname{appeq}{supplementary equation}{supplementary equations}
\Crefname{appeq}{Supplementary Equation}{Supplementary Equations}
\newcommand{\suppref}[1]{\textcolor{blue}{Supplementary} \textcolor{blue}{``\nameref{#1}''}}
\usepackage[makeroom]{cancel}
\usepackage{bbm}
\usepackage{amssymb,bm} % assumes amsmath package installed
\usepackage{enumitem}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage[acronyms,nonumberlist,nopostdot,nomain,nogroupskip,acronymlists={hidden}]{glossaries}\renewcommand*{\glstextformat}[1]{\textcolor{black}{#1}}
\newglossary[algh]{hidden}{acrh}{acnh}{Hidden Acronyms}
\newcommand{\colorunderbrace}[3][red]{
\colorlet{currentcolor}{.}
{
\color{#1}
\underbrace{\color{currentcolor}{#2}}_{#3}
}
}
%% MATH NOTATION
\newcommand{\h}{H} % Defines \H to represet the history of the TPP
\newcommand{\Sset}{\mathbb{S}} % Define \S to define the set of sessions
\newcommand{\Tset}{\mathbb{T}} % Define \S to define the set of sessions
\newcommand{\U}{\mathcal{U}} % Define \S to define the set of sessions
%TC:ignore
\title{Temporal Point Process Modeling of Aggressive Behavior Onset in Psychiatric Inpatient Youths with Autism}
\author[1,*]{Michael Potter}
\author[1]{Michael Everett}
\author[1]{Ashutosh Singh}
\author[1]{Georgios Stratis}
\author[2]{Yuna Watanabe}
\author[1]{Ahmet Demirkaya}
\author[1]{Deniz Erdogmus}
\author[3,+]{Tales Imbiriba}
\author[2,+]{Matthew S. Goodwin}
\affil[1]{Northeastern University, Electrical and Computer Engineering, Boston, 02115, USA}
\affil[2]{Northeastern University, Bouvé College of Health Sciences and Khoury College of Computer Sciences, Boston, 02115, USA}
\affil[3]{University of Massachusetts - Boston, Computer Science, Boston, 02125, USA}
\affil[*]{potter.mi@northeastern.edu}
\affil[+]{these authors contributed equally to this work}
\keywords{Autism Spectrum Disorder, Temporal Point Processes, Aggressive Behavior Onset}
% \externaldocument{supplementary_npj_r1}
%TC:endignore
\begin{document}
\input{acronyms}
\begin{abstract}
\par
\vspace{-2em}
Aggressive behavior, including aggression towards others and self-injury, occurs in up to 80\% of children and adolescents with autism, making it a leading cause of behavioral health referrals and a major driver of healthcare costs. Predicting when autistic youth will exhibit aggression can be challenging due to their communication difficulties. Many are minimally verbal or have poor emotional insight. Recent advances in Machine Learning and wearable biosensing demonstrate the ability to predict aggression within a limited future window (typically one to three minutes) in autistic individuals. However, existing works don't estimate aggression onset probability or the expected number of aggression onsets over longer periods, nor do they provide interpretable insights into onset dynamics. To address these limitations, we apply \glspl{tpp} -- particularly self-exciting Hawkes processes -- to model the timing of aggressive behavior onsets in psychiatric inpatient autistic youth. We benchmark several \gls{tpp} models by evaluating their goodness-of-fit and predictive metrics. Our results demonstrate that self-exciting \glspl{tpp} more accurately captures the irregular and clustered nature of aggression onsets, especially compared to traditional Poisson models. These incipient findings suggest that \glspl{tpp} can provide interpretable, probabilistic forecasts of aggression onset along a time continuum, supporting future clinical decision-making and preemptive intervention.
\end{abstract}
\flushbottom
\maketitle
% * <john.hammersley@gmail.com> 2015-02-09T12:07:31.197Z:
%
% Click the title above to edit the author information and abstract
%
\thispagestyle{empty}
\glsresetall
\vspace{-3em}
\section{Introduction}
Autism is one of the most prevalent childhood disorders, affecting approximately 1 in 36 children \cite{maenner2023prevalence}. A significant proportion (up to 80\%) of autistic children and adolescents exhibit aggressive behaviors, including \gls{sib}, tantrums, meltdowns, property destruction, and \gls{ato}. \cite{hattier2011occurrence,kanne2011aggression,matson2014assessing}. These behaviors are among the leading causes of referral to behavioral health services \cite{arnold2003parent} and contribute substantially to healthcare costs \cite{croen2006comparison}. Many autistic youth struggle with emotional regulation and self-reporting of their internal states \cite{mazefsky2013emotion}. Thirty to forty percent are minimally verbal, and others experience difficulties with emotional insight and self-awareness \cite{tager2017conducting}. As a result, aggressive behaviors appear unpredictable, occur at irregular, seemingly random times, and thus create barriers to accessing community resources, therapy, education, and clinical services. Families caring for children with autism often face increased stress, social isolation, and financial strain due to concerns about unexpected aggressive behaviors in different environments \cite{davis2008parenting,hodgetts2013home}. In addition, these behaviors can negatively affect support professionals, leading to increased compensation for work-related injuries, higher absenteeism, and staff turnover \cite{kiely1998violence}. The cumulative effect of these challenges can demoralize caregivers and clinicians, disrupt patient care trajectories, and, in severe cases, require home-bound or residential placement, reducing quality of life while increasing costs.
\gls{tpp} models capture irregular stochastic event times in various domains. \gls{tpp} methods are widely applied in seismology \cite{ogata1988statistical}, finance \cite{filimonov2015apparent}, and epidemiology \cite{gatrell1996spatial}. In seismology, \glspl{tpp} model earthquake occurrences by capturing the stochastic nature of event times and locations while accounting for aftershock sequences and spatial clustering to estimate the probability of future seismic activity. In finance, they capture the irregular timing of discrete price changes, trade executions, and market orders while accounting for serial dependence of events, offering insight into market stability and volatility. In epidemiology, \glspl{tpp} model the spread of disease by treating infections as stochastic events that trigger secondary infections, helping to estimate transmission rate, predict outbreaks, and evaluate interventions.
Despite their broad applicability, \glspl{tpp} have not yet been used to model aggressive behavior onsets in inpatient youths with autism. These onsets exhibit irregular timing and temporal clustering, where bursts of aggressive behavior occur within short intervals. Compared to point-estimate classifier methods, \glspl{tpp} offer several key advantages. They generate probabilistic forecasts by sampling entire trajectories, account for irregular inter-onset intervals, and support causal inference and knowledge discovery \cite{yan2019recent}.
% Unlike point-estimate approaches that yield only single-value predictions, \glspl{tpp} quantify uncertainty in event timing, enabling more nuanced analyses.
Applying \gls{tpp} to aggressive behavior onsets in inpatient youths with autism allows us to address questions such as ``How many aggressive behavior onsets will occur between 5–10 minutes of an observation session?'' and ``Do inpatient youths with autism exhibit self-excitation in aggressive behavior onsets?'' \cite{shchur2021neural}.
Several studies have explored automated aggressive behavior detection in youths with autism using time-series data. \gls{cnn}-based models analyzing video streams \cite{fadhel2023detecting} have linked the likelihood of aggressive behavior to hand movement speed, while hybrid \gls{cnn}-\gls{lstm} models leveraging physiological signals from wearable biosensors \cite{khullar2021meltdown} have been used to detect meltdowns and tantrums. While these methods improve aggressive behavior detection in autistic youth, they do not improve safety for clinicians, caregivers, or patients. Predicting when a subsequent aggressive behavior will occur before it happens could enable just-in-time preventive interventions to mitigate harm.
Recent advances in \gls{ml} and \gls{dl} demonstrate promising capabilities predicting imminent aggressive behavior in inpatient youths with autism. Studies have employed \gls{lr}, \gls{svm}, and \glspl{nn} to forecast aggressive behavior one to three minutes into the future using three minutes of prior real-time peripheral physiological data from wearable biosensors \cite{imbiriba2023wearable,10.1145/3240925.3240980,imbiriba2020biosensor}. While the results are promising, these methods do not estimate the probability of aggressive behavior onsets over longer future time windows and only utilize partial histories of physiological data and behavior onsets during prediction. Forecasting larger future time windows requires modeling the physiological data autoregressively. Additionally, using only three minutes of prior physiological data and onset information disregards potentially valuable historical data. Enabling long-term and adaptable forecasting of aggressive behaviors could improve resource allocation and intervention planning for clinicians and caregivers who support autistic youths.
This paper uses \glspl{tpp} to forecast the number of proximal aggressive behavior events over longer periods than currently explored in the literature. Unlike discrete-time representations commonly used in time series applications, \gls{tpp} modeling handles time between aggressive behaviors as random variables. This approach enables precise temporal modeling without requiring a fixed time window to aggregate events, which can introduce discretization errors \cite{xiao2017wasserstein}. Prior work has applied a discretized \gls{nhpp} model to analyze skin conductance responses alongside observed regulatory behaviors, identifying statistical differences in the physiological states of autistic youth \cite{chaspari2014non}. The study examined self, co-, and combined regulatory behaviors to assess dyadic physiological regulation patterns. However, it focuses on statistical hypothesis testing relating to observed interpersonal regulatory behaviors rather than modeling or predicting future behaviors.
The present work applies \glspl{tpp} to model and predict aggressive behavior onsets in inpatient youths with autism. We evaluate modeling assumptions using \gls{gof} statistics such as \gls{qq} plots, raw residual plots, and \gls{wd}. Model performance is assessed through predictive performance metrics such as \gls{psis-loo} \gls{elpd} and \gls{mape}. Additionally, we interpret \gls{tpp} model parameters for knowledge discovery, focusing on the branching factor of the \gls{hwkpp} to understand the degree of self-excitation. This foundational study analyses different \gls{tpp} strategies, including homogeneous, non-homogeneous, and self-exciting \glspl{tpp}, demonstrating the potential of \glspl{tpp} in addressing complex questions about aggressive behavior onset in inpatient youths with autism. % \textit{An important clarification is that all subsequent modeling, insights, and conclusions pertain exclusively to inpatient youths with \gls{asd} within the clinical environment.}
%TC:ignore
\section{Methods}
\subsection{Data and Participants}
\label{subsec:datapartitipants}
\noindent \textit{Sites and study protocol}:
This study is a secondary analysis of data reported in \cite{imbiriba2023wearable} acquired from psychiatric inpatients serially enrolled at clinical inpatient sites (Bradley Hospital, Providence, Rhode Island; Cincinnati Children’s Hospital, Cincinnati, Ohio; Western Psychiatric Hospital, Pittsburgh, Pennsylvania; and Spring Harbor Hospital, Portland, Maine) participating in the Autism Inpatient Collection (AIC). This prognostic study was designed to estimate and validate a predictive model and is reported following the Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis (TRIPOD) reporting guidelines. The Institutional Review Board (IRB) at each participating site reviewed and approved the study, including the AIC protocols and aggressive behavior prediction protocols. The sites and their IRBs are: Bradley Hospital (Providence, RI), Cincinnati Children's Hospital (Cincinnati, OH), Spring Harbor Hospital (Portland, ME), and Western Psychiatric Hospital (Pittsburgh, PA). IRB approval of the AIC extended to this study with an amendment. Guardians of all study participants provided informed consent and were remunerated. The IRB approved this retrospective study in compliance with the Health Information Portability and Accountability Act. All methods were performed in accordance with relevant guidelines and regulations following the Declaration of Helsinki.
\\ \\
\noindent \textit{Inclusion/Exclusion criteria}: In total, 86 inpatients were enrolled. Inclusion criteria included confirmation of autism via research-reliable administration of the Autism Diagnostic Observation Schedule-2 (ADOS-2) (see \cite{imbiriba2023wearable}) and parent-reported, staff-reported, or staff-observed physical aggression or self-injurious behavior. Exclusion criteria included not having a parent proficient in English or the individual with autism having prisoner status. Of the 86 participants enrolled in the study, 16 (18\%) were excluded from the analysis: 8 were unable to wear the physiological biosensor, and 8 were discharged before any behavioral observation could occur. The final analytic sample consisted of 70 participants.
\\ \\
\noindent \textit{Participant statistics}: Participants ranged in age from 5 to 19 years (M = 11.85, SD = 3.5), and were predominantly male (88\%), white (90\%), and non-Hispanic (92\%)~\cite{imbiriba2023wearable}. Nearly half of the participants (46\%) were minimally verbal, as determined by ADOS-2 Module 1 or 2, and 57\% met criteria for intellectual disability based on Leiter-3 global IQ scores (M = 72.96, SD = 26.12). The length of inpatient stay varied from 8 to 201 days (M = 37.28, SD = 33.95).
\\ \\
\noindent \textit{Observational procedures and behavioral coding}: Research staff performed observational coding in the inpatient units. At the same time, inpatient study participants with autism wore the commercially available and regulatory-compliant E4 biosensor by Empatica, Inc. on their non-dominant wrist. In the present study, we focus solely on annotations of operationally defined (see \cite{imbiriba2023wearable}) aggressive behavior (i.e., \gls{sib}, \gls{ed}, \gls{ato}) episode's start (onset) and stop (offset) times within observation periods using a custom mobile application.
A total of 429 behavioral observation sessions were conducted between March 2019 and March 2020, with a median of 5 sessions per participant (IQR = 6). These sessions totaled approximately 497 hours of observation time (Median = 4.4 hours, IQR = 4.9 hours per session).
Across these sessions, 6,665 aggressive behavior episodes were annotated:
\begin{itemize}
\item \textbf{Self-injurious behavior (SIB)}: 3,983 episodes (60\%); Median = 2 per participant (IQR = 23); Median duration = 1.97 sec (IQR = 4.25 sec)
\item \textbf{Emotional Dysregulation (ED)}: 2,063 episodes (31\%); Median = 8 per participant (IQR = 27); Median duration = 10.09 sec (IQR = 20.08 sec)
\item \textbf{Aggression towards others (ATO)}: 619 episodes (9\%); Median = 1 per participant (IQR = 8); Median duration = 2.31 sec (IQR = 3.75 sec)
\end{itemize}
To assess inter-rater reliability, 20\% of the total dataset was randomly selected and independently double-coded by two trained research staff members at each inpatient site. Agreement was high across all categories: SIB ($\kappa$ = .93), ED ($\kappa$ = .95), and ATO ($\kappa$ = .86).
Additional details on the dataset are available in~\cite{imbiriba2023wearable} and summarized in
\textcolor{blue}{Supplementary Table S7}.
% \Cref{apptab:datastatistic}.
% \subsection{Modeling}
\subsection{Temporal Point Processes}
\glspl{tpp} provide a principled statistical framework for modeling the generative process of events over continuous time. In this study, we leverage \glspl{tpp} to model the timing of aggressive behavior onsets in autistic youth. A \gls{tpp} is a stochastic process that represents the occurrence of discrete events (in our case, aggressive behavior onsets) over a fixed time window $[0, T]$ \cite{bae2023meta}. A session, or realization, of a \gls{tpp}, is an ordered sequence of aggressive behavior onset times, denoted as $S_i = \{ t_1^{(i)}, t_2^{(i)}, \dots, t_{J_i}^{(i)} \}$, where $J_i$ is the number of onsets in session $i$, and $t_j^{(i)}$ represents the time elapsed since session $i$'s start when the $j$-th aggressive behavior onset occurred. Equivalently, a \gls{tpp} can be formulated as a counting process $N(t)$, representing the cumulative number of aggressive behavior onsets up to time $t$ in a given observation session. Formally, we define this as:
\begin{equation}
N(t) = \max \{ j : t_j \leq t , t_j \in S \},
\end{equation}
where $N(t)$ tracks the number of onsets within $[0, t]$. For a realization \(S=\{t_1,t_2,\dots,t_J\}\) of a \gls{tpp}, the history up to (but not including) time \(t\) is $H_t = \{\, t_j \in S \mid t_j < t \,\}$. When an event at time \(t_j\) is included in the history we write \(H_{t_j^+} = \{t_1,\dots,t_j\}\), and when it is excluded we write \(H_{t_j^-} = \{t_1,\dots,t_{j-1}\}\).
A \gls{tpp} is completely characterized by the conditional intensity function \(\lambda(t \mid H_t)\): it defines the cumulative intensity, the \gls{pdf} and \gls{cdf} of the next event time, and the likelihood function of observed events. The conditional intensity function gives the instantaneous expected rate of events at time \(t\) given the past history. Formally, for $t>t_j$ in an interval following the last observed event,
\begin{align}
\lambda(t \mid H_{t_j^+})
&= \lim_{\Delta t \to 0} \frac{\mathbb{E}\big[N(t+\Delta t)-N(t)\mid H_{t_j^+}\big]}{\Delta t}.
\end{align}
Equivalently, in terms of the conditional density \(f(\cdot\mid H_{t_j^+})\) and distribution \(F(\cdot\mid H_{t_j^+})\) of the next event time,
\begin{align}
\lambda(t \mid H_{t_j^+}) &= \frac{f(t \mid H_{t_j^+})}{1 - F(t \mid H_{t_j^+})} \qquad\text{for } t>t_j.
\end{align}
Intuitively, for an infinitesimal interval \(\Delta t\), \(\lambda(t\mid H_t)\,\Delta t\) is the approximate probability (or expected count) of an event occurring in \([t,t+\Delta t)\) conditional on the observed history up to $t$.
The conditional cumulative intensity function (\cref{eqn:condcumint}) is the integral of the conditional intensity function and represents the expected number of aggressive behavior onsets within the time window \( (t_j, t]\), conditioned on the history of onsets up to (and including) \(t_j\), where the last onset occurred at \(t_j\). The cumulative intensity function (\cref{eqn:cum}) is the average number of aggressive behavior onsets that occur within the observation session $[0,t]$.
\noindent\begin{minipage}{.5\linewidth}
\begin{equation}
\Lambda(t | H_{t_j^+}) = \int_{t_j}^{t} \lambda(s| H_s) ds \label{eqn:condcumint}
\end{equation}
\end{minipage}%
\begin{minipage}{.5\linewidth}
\begin{equation}
\Lambda(t) = \int_{0}^{t} \lambda(s| H_s) ds \label{eqn:cum}
\end{equation}
\end{minipage}
The conditional \gls{pdf} (\cref{eqn:condpdf}) and conditional \gls{cdf} (\cref{eqn:condcdf}) of an aggressive behavior onset occurring at and before time $t > t_j$, respectively, given the past history of aggressive behavior onsets within an observation session, is described by the conditional intensity function:
\noindent\begin{minipage}{.5\linewidth}
\begin{equation}
f(t|H_{t_j^+}) = \lambda(t|H_{t_j^+}) \exp \left( -\int_{t_j}^t \lambda(s|H_s) ds \right) \label{eqn:condpdf}
\end{equation}
\end{minipage}%
\begin{minipage}{.5\linewidth}
\begin{equation}
F(t|H_{t_j^+}) = 1 - \exp \left( -\int_{t_j}^t \lambda(s|H_s) ds \right), \label{eqn:condcdf} \\
\end{equation}
\end{minipage}
The conditional \gls{pdf} and \gls{cdf} map the conditional intensity—often hard to interpret for decision making—into familiar probability quantities (a density and a cumulative probability), which are the standard inputs for decision‑making frameworks \cite{shachter1992decision}. To simplify notation, we use $*$ to denote the conditional intensity function, conditional cumulative function, conditional \gls{cdf}, and conditional \gls{pdf} conditioned on the history of aggressive behavior onsets $H_t$, as $\lambda^*(t)=\lambda(t|H_t)$, $\Lambda^*(t) = \int_{0}^{t} \lambda^*(s) ds, f^*(t)=f(t|H_t)$, and $F^*(t)=F(t|H_t)$ respectively.
Throughout this study we benchmark the following parametric \glspl{tpp}: the homogeneous Poisson process (\gls{hpp}), a non‑homogeneous Poisson process with a power‑law intensity (\gls{nhpp}), and several self‑exciting Hawkes variants (exponential, power‑law, and multi‑exponential kernels). Specifying a parametric conditional intensity yields closed‑form expressions for the conditional pdf, cdf, and cumulative intensity, and concentrates estimation on a compact parameter vector $\theta$. Moreover, parametric \glspl{tpp} are data efficient unlike non-parametric \glspl{tpp}. We emphasize self‑exciting models because they naturally capture temporal clustering of onsets, and are consistent with clinical theories that rising distress and physiological arousal can trigger cascades of aggressive behavior in autistic youth \cite{lindsay2000antecedent,scarpa2015physiological,cohen2011assessing}.
\subsubsection{Data Preprocessing}
\label{subsec:datapreprocessing}
We treat \gls{sib}, \gls{ed}, and \gls{ato} as three recorded \glspl{tpp} but collapse them into a single event class for modeling (see \cref{fig:dataaggregate}). This is mathematically equivalent to the superposition of the behavior \glspl{tpp}. At the 250\,ms annotation resolution, we define an \emph{isolated event} as an episode consisting of a single positive annotation sample (i.e., episode length = 1 sample), whereas a \emph{continuous episode} is a run of consecutive positive samples. For analysis we reduce each continuous episode to its onset (the left boundary) and model only onset times and isolated events (that is, episodes of length one sample) (\cref{fig:datapreprocesscollapse}).
Onset timestamps were recorded in calendar time and are normalized per session by subtracting the session start time so each realization begins at 0 (\cref{fig:datapreprocessnormalize}). Observation sessions are treated as independent realizations; we do not concatenate sessions from the same participant because the unobserved gaps between sessions would bias parameter estimates and exacerbate edge effects \cite{filimonov2015apparent}.
\subsubsection{Likelihood Function}
The dataset comprises $I$ observed sessions $\Sset=\{S_i\}_{i=1}^I$ with corresponding observation lengths $\Tset=\{T_i\}_{i=1}^I$. For a given session $S_i$, the likelihood function is a joint density function of all aggressive behavior onsets observed within the observation window $[0,T_i)$, factorized into conditional densities of each aggressive behavior onset given all the aggressive behavior onsets prior to it \cite{rasmussen2018lecture}:
\begin{align}
L(\theta \mid S_i, T_i) = \big(1-F(T_i | H_{T_i}) \big) \prod_{j=1}^{J_i} f(t_j \mid H_{t_j})
\label{eqn:session_likelihood}
\end{align}
where the last term $(1-F(T_i|H_{t_{T_i}}))$ corresponds to the probability that no aggressive behavior onsets are observed between $[t_{J_i},T_i)$. Using \cref{eqn:condcdf} and \cref{eqn:condpdf}, \cref{eqn:session_likelihood} becomes
\begin{align}
L(\theta | S_i , T_i ) = \biggr( \prod_{j=1}^{J_i} \lambda_\theta^*(t_j) \biggr) \exp \left( -\int_0^{T_i} \lambda_\theta^*(s) ds \right) && t_0=0.
\end{align}
Then, the joint likelihood function of all observed sessions (and therefore all aggressive behavior onsets), assuming independence between the observation sessions, is
\begin{align}
L(\theta \mid \Sset ,\Tset) = \prod_{i=1}^{I} L(\theta | S_i , T_i ) \label{eqn:wholelikelihood}
\end{align}
In the following sections, we explore different choices for the conditional intensity function and their implications for aggressive behavior onset analysis.
\subsection{Intensity Function Parameterizations}
\label{subsec:modelchoice}
Unlike typical \gls{ml} and \gls{dl} models, we employ several parametric \glspl{tpp} that are capable of modeling complex random sequences of aggressive behavior onsets while remaining interpretable to clinicians. We aim to assess the feasibility of modeling and forecasting aggressive behavior onsets using only the history of previous onsets within an observation session. Since our focus is on event timing rather than additional attributes, we consider unmarked \glspl{tpp}, which rely solely on onset timestamps. For this study, we exclude physiological signals from our analysis, as work in progress using Shapley values \cite{nohara2022explanation} and stepwise regression \cite{zhang2016variable} suggests that the timing of aggression onset and offset is a key predictor of future aggression. This aligns with findings by Imbiriba et al\cite{imbiriba2023wearable} (see Fig.~1A–C in \cite{imbiriba2023wearable}), where \gls{rocauc} scores with physiological features alone are as low as 55, but exceed 80 when the most recent previous aggression onset is included as a covariate. Future work will incorporate physiological signals and contextual variables.
\subsubsection{Homogeneous Poisson Process}
The intensity function remains constant over time, meaning it does not change throughout the observation session. Additionally, the \gls{hpp} assumes independence from past aggressive behavior onsets, implying that the timestamps of future aggressive behavior onsets are independent of previous onsets. Therefore, for a \gls{hpp} , the aggressive behavior onsets within an observation session of length $T$ are distributed uniformly at random over the interval $[0, T]$, where the number of aggressive behavior onsets in the session follows a Poisson distribution with rate $\mu$ \cite{gallager1997discrete}. The \gls{hpp} is described by the single parameter, $\mu$, giving the conditional intensity and cumulative conditional intensity functions
\noindent\begin{minipage}{.5\linewidth}
\begin{equation}
\lambda^*(t) = \mu
\end{equation}
\end{minipage}%
\begin{minipage}{.5\linewidth}
\begin{equation}
\Lambda^*(t) = \mu t
\end{equation}
\end{minipage}
\newline
\noindent where $\theta= [ \mu ]$, $\theta \geq 0$, and $\mu$ is the average number of aggressive behavior onsets per unit time.
\subsubsection{Non-Homogeneous Poisson Process}
The \gls{nhpp} has many parameterizations, but we choose the \gls{pl} characterization to describe conditional intensity and conditional cumulative intensity functions. The conditional intensity function is independent of past aggressive behavior onsets, but it varies over time throughout the observation session. We choose the \gls{pl} parameterization because it is flexible enough to model a conditional intensity function which is either increasing, decreasing, or remaining constant over time.
\noindent\begin{minipage}{.5\linewidth}
\begin{equation}
\lambda^*(t) = \alpha k t^{k-1}
\end{equation}
\end{minipage}%
\begin{minipage}{.5\linewidth}
\begin{equation}
\Lambda^*(t) = \alpha t^{-k}
\end{equation}
\end{minipage}
\noindent where $\theta= [ \alpha, k ]$, $\theta \geq 0$, $\alpha$ is the scale parameter and $k$ is the shape parameter. The parameter $k$ controls the shape of the conditional intensity function: when $k > 1$, the intensity increases over time; when $k < 1$, the intensity decreases; and when $k = 1$, the intensity is constant, which reduces the model to the \gls{hpp}. The parameter $\alpha$ scales the overall conditional intensity function, affecting the steepness of the intensity decay or growth over time.
\subsubsection{Self-Exciting Point Processes: Hawkes Process}
The \gls{hwkpp} is a self-exciting point process that removes the independence assumptions of traditional models mentioned previously by allowing future aggressive behavior onsets to depend on past occurrences within an observation session. This dependence results in a stochastic process, where both event times and intensity function are evolving random variables conditioned on the history of previous onsets \cite{laub2024hawkes}.
The conditional intensity function of a \gls{hwkpp} is defined as:
\begin{equation}
\lambda^*(t) = \colorunderbrace[blue]{\mu}{\text{baseline intensity}} + \colorunderbrace[red]{\sum_{t_j < t} \phi(t - t_j)}{\text{excitation trigger}}, \label{eqn:generalhwk}
\end{equation}
where $\mu$ represents baseline intensity, ensuring events occur even in the absence of prior onsets, and the summation term captures the self-exciting nature of the process. Another way to interpret this is that \(\mu\) models the exogenous onset occurrences, while the triggering kernel \(\phi(t)\) captures endogenous onsets. Each past event $t_j$ contributes to the intensity at time $t$ through the triggering kernel $\phi(t - t_j)$, which is nonnegative and causal, meaning it only influences future events ($\phi(t) \geq 0$ for $t \geq 0$, and $\phi(t) = 0$ for $t < 0$). Typically, $\phi(\cdot)$ is chosen to be a monotonically decreasing function, ensuring the influence of past events diminishes over time.
This formulation models the cascading effect of aggressive behavior, where each onset increases the likelihood of subsequent onsets, with this effect gradually decaying. As a result, the \gls{hwkpp} captures the temporal clustering of aggressive behavior onsets, making it a suitable framework for forecasting onset occurrences based on historical patterns.
We evaluate two kernel functions of a \gls{hwkpp}: the Omori-Law (or \gls{pl}) kernel $\phi(t) = k (c+t)^{-p}$ and the exponential kernel $\phi(t) = \alpha \beta \exp(-\beta t)$. The \gls{hwkexp} is Markovian, enabling the conditional intensity at a given onset to be computed from the conditional intensity evaluated at the previous onset and the current onset.It is suitable for processes with rapid self-excitation decay, where the process quickly ``forgets'' past events. The parameter $\beta$ governs the delay density $\beta \exp(-\beta t)$, determining the time between excitations. A larger $\beta$ leads to faster decay of influence from previous onsets and shorter inter-event times between onsets, while a smaller $\beta$ results in slower decay and longer influence of past onsets \cite{hawkes1971point}. The parameter $\alpha$ is known as the infectivity factor, which is the average number of new aggressive behavior onsets triggered by any given onset occurrence \cite{hawkes1971point}.
\noindent\begin{minipage}{.5\linewidth}
\begin{equation}
\lambda^*(t) = \mu + \alpha \beta \sum_{t_j < t} \exp \left(-\beta (t - t_j) \right) \label{eqn:hwkci}
\end{equation}
\end{minipage}%
\begin{minipage}{.5\linewidth}
\begin{equation}
\Lambda^*(t) = \mu t + \alpha \sum_{t_j < t} \big(1 - \exp \left(-\beta (t - t_j) \right) \big) \label{eqn:hwkcci}
\end{equation}
\end{minipage}
\noindent where $\theta = [\mu,\alpha,\beta]$ and $ \theta \geq 0 $.
\noindent In contrast, the \gls{hwkpl} is used when self-excitation follows a heavy-tailed distribution, making it suitable for processes with long-term triggering effects, such as epidemics or earthquakes. Being non-Markovian, it requires more computation but exhibits scale-free behavior, effectively modeling long-range temporal dependencies and varying event frequencies. The parameter $p$ controls the decay rate of self-excitation, with slower decay allowing past events to influence future occurrences over extended periods. The time constant $c$ regularizes the behavior of the power law kernel at very short times \cite{filimonov2015apparent}.
\noindent\begin{minipage}{.5\linewidth}
\begin{equation}
\lambda^*(t) = \mu + k \sum_{t_j < t} \left(c+t-t_j \right)^{-p} \label{eqn:hwkplci}
\end{equation}
\end{minipage}%
\begin{minipage}{.5\linewidth}
\begin{equation}
\Lambda^*(t) = \mu t + \sum_{t_j < t} \frac{k}{p-1} \left( c^{1-p} - (c+t-t_j)^{1-p}\right) \label{eqn:hwkplcci}
\end{equation}
\end{minipage}
\noindent where $\theta = [\mu,k,c,p]$ and $ [\mu,k,c] \geq 0 , p>1$.
The Omori-Law kernel can be approximated by a weighted sum of exponential kernels, combining the Markovian computation of the conditional intensity from the exponential kernel with the scale-free behavior of the Omori-Law kernel. We use a \gls{hwk2exp} model to capture multiple temporal patterns, such as high- and low-frequency aggressive behavior onsets, which a single exponential kernel \gls{hwkpp} struggles to represent. By incorporating multiple kernels with different temporal scales, the multi-kernel \gls{hwkpp} models distinct behavior patterns, such as rapid bursts or sporadic aggression, improving onset prediction across timescales \cite{lee2024multi}. Adding more than two exponential kernels yields only marginal gains while increasing model complexity.
\noindent\begin{minipage}{.5\linewidth}
\begin{equation}
\lambda^*(t) = \mu + \sum_{k=1}^2 \alpha_k \beta_k \sum_{t_j < t} \exp \left(-\beta_k (t - t_j) \right)
\end{equation}
\end{minipage}%
\begin{minipage}{.5\linewidth}
\begin{equation}
\Lambda^*(t) = \mu t + \sum_{k=1}^2 \alpha_k \sum_{t_j < t} \big(1 - \exp \left(-\beta_k (t - t_j) \right) \big)
\end{equation}
\end{minipage}
\noindent where $\theta=[\mu,\alpha_1,\beta_1,\alpha_2,\beta_2] $ and $\theta \geq 0$.
In our dataset, we observe different intensity functions, as shown in \cref{fig:intensty_fns}.
We acknowledge that biases inherent to the data collection process, such as ``edge effects'' from finite observation session durations, are unavoidable and may impact model parameter inference. Edge effects in \glspl{tpp} arise when events before the observation window remain unobserved, leading to incomplete event histories. In \glspl{hwkpp}, this can result in underestimating self-excitation parameters and overestimating baseline intensity, as future events depend on past occurrences \cite{filimonov2015apparent}. However, if past events have only short-term influence -- in keeping with our hypothesis that aggressive behavior onsets influence proximal events -- edge effects have minimal impact on parameter inference because the triggering kernel decays rapidly, making transient periods short. In preliminary analyses, we performed parameter inference using a modified exponentially decaying \gls{hwkpp} \cite{laub2024hawkes}:
\begin{align}
\lambda^*(t) = \mu + (\mu_0 - \mu) \beta \exp(-\beta t) + \alpha \beta \sum_{t_j < t} \exp(-\beta (t-t_j) )
\end{align}
where the conditional intensity function starts at $\mu_0$. Unlike traditional formulations assuming a clear system start at \( t = 0 \), this approach acknowledges that many real-world processes have no well-defined beginning and are only observed from a certain point onward. Here, \( t=0 \) marks the start of the recording of the observation session rather than the process itself. Our preliminary analyses supported the assumption that edge effects do not alter the infectivity factor or time scale; however, the baseline intensity $\mu$ decreases from $0.022$ to $0.018$. This outcome is expected, as edge effects, such as left truncation, are known to upwardly bias baseline intensity. Introducing $\mu_0$ may help compensate for this bias. However, we find that while the additional parameter provides only marginal benefits to the model, it significantly alters the interpretation of the model parameters. For this reason, we opted to not perform further experiments with this formulation or present further results on this \gls{tpp} parameterization.
\subsection{Model Inference}
After preprocessing the data (\secref{subsec:datapreprocessing}), we perform Bayesian inference using \gls{mcmc} to estimate the posterior distribution of the \gls{tpp} model parameters. By Bayes' theorem, the posterior distribution of the model parameters $\theta$ given the observed sessions $\Sset$ and session durations $\Tset$ is $\pi(\theta \mid \Sset, \Tset) \propto L(\theta \mid \Sset , \Tset) p(\theta)$,
where $L(\theta \mid \Sset , \Tset)$ is the likelihood function (\cref{eqn:wholelikelihood}), and $p(\theta)$ is the prior \gls{pdf}. We assign Gamma priors to all \gls{tpp} model parameters, except for the \gls{hwkpl}, as the Gamma distribution serves as a conjugate prior for the Poisson Process and offers flexibility over the positive real line. For the \gls{hwkpl}, we use wide uniform priors. To underscore how we chose weakly informative and wide prior \glspl{pdf}, the prior \gls{pdf} versus the posterior \gls{pdf} for the model parameters is show in \textcolor{blue}{Supplementary Figures S7 to S10}. Since direct computation of the posterior is often intractable due to high-dimensional integration or non-analytical integrals required for the partition function, we approximate it using \gls{mcmc}. \gls{mcmc} constructs an infinite dimension Markov chain whose stationary distribution converges to the target posterior: $p(\theta' | \Sset) = \int_\theta p(\theta' | \theta) p(\theta | \Sset) d\theta$. The transition function, $p(\theta' | \theta)$ of the Markov Chain is denoted as the transition kernel. Thus, each sampled state of the Markov chain represents a specific realization of the \gls{tpp} model parameters sampled from the posterior \gls{pdf}.
To generate samples from this Markov chain, we employ the \gls{nuts} \cite{hoffman2014no}, an adaptive variant of \gls{hmc}, as the transition kernel. In \gls{mcmc}, the transition kernel defines the probability of moving from one state to another while ensuring ergodicity and convergence to the posterior. Unlike random-walk-based methods, \gls{nuts} leverages Hamiltonian dynamics and gradients of the log-posterior to explore the posterior efficiently, proposing new states that are both distant from the current state (reducing autocorrelation in the \gls{mcmc} samples) and have high posterior probability (exploring the typical set of the posterior distribution \cite{betancourt2017conceptual}). For more details on the \gls{mcmc} sampling process, we refer readers to \cite{barber2012bayesian,hoffman2014no}. \gls{nuts}'s adaptive approach improves convergence and sampling efficiency in \gls{mcmc}, especially for posteriors with strong correlations, poor geometry, and nonlinear dependencies \cite{phan2019composable}. However, efficient mixing of the sampling chains and accurate posterior distribution sampling must still be validated using \gls{mcmc} diagnostics.
The \gls{ess} measures the number of effectively independent samples. The bulk \gls{ess} captures exploration of the high-density region of the posterior, while the tail \gls{ess} assesses sampling efficiency at the 5\% and 95\% quantiles \cite{carpenter2017stan} of the posterior. The \gls{ess} directly impacts the \gls{mcse}, which quantifies the uncertainty in the expectation estimates of the \gls{tpp} model parameters concerning the posterior distribution due to finite sampling: $ \text{MCSE} \approx \frac{\sigma}{\sqrt{\text{\gls{ess}}}} $, where $\sigma$ represents the standard deviation of the posterior samples. Higher \gls{ess} reduces \gls{mcse}, leading to more accurate estimates of the posterior mean of the \gls{tpp} model parameters. Conversely, low \gls{ess} increases \gls{mcse}, indicating strong autocorrelation in the samples. The Gelman-Rubin statistic ($\hat{R}$) compares within-chain and between-chain variances of the \gls{mcmc} sample chains to assess whether the Markov Chain explored the entire posterior distribution and has reached a stationary distribution. Values close to 1 suggest well-mixed chains. We also monitor divergences, which indicate numerical instabilities when the sampler struggles to explore the posterior, typically due to regions of high curvature or poor adaptation.
We use 6000 warm up samples and collect 4000 post-warmup samples per \gls{mcmc} chain, and set a target acceptance probability of 0.99 for the Metropolis-Hastings acceptance criterio and \gls{nuts} kernel tuning \cite{barber2012bayesian,hoffman2014no}. In all experiments, we observe $\hat{R} \approx 1$ for all \gls{tpp} model parameters, zero divergences, high bulk and tail \gls{ess} for all \gls{tpp} model parameters, and low \gls{mcse} for all \gls{tpp}. Full \gls{mcmc} sampling diagnostic results are in \textcolor{blue}{Supplementary ``Monte-Carlo Markov Chain Diagnostics''}, \textcolor{blue}{Supplementary Tables S1 to S5}, and \textcolor{blue}{Supplementary Figures S1 to S5}.
% \suppref{appsec:mcmcdiagnostics}.
These \gls{mcmc} diagnostics ensure efficient sampling of the posterior distribution; however, separate model validation metrics are required to assess the \gls{gof} and predictive performance of the selected parametric models.
% These models were evaluated for their fit to the generative process of aggressive behavior onsets, based on model validation techniques described in \secref{sec:modelvalidation}.
%predictive performance via \gls{psis-loo} on \gls{elpd}, \gls{gof} via residual analysis using the \gls{rtc} theorem, the raw residual analysis on the expected number of aggressive behaviors using Martingale properties, and visualizations of XXXX.
\subsection{Model Validation}
\label{sec:modelvalidation}
A \gls{tpp} model for aggressive behavior onsets should effectively handle irregular inter-onset intervals, flexibly capture complex temporal dependencies among onsets within an observation session, maintain interpretability, and provide probabilistic forecasting of future onsets. Evaluation of these qualities relies on both \gls{gof} and forecasting performance metrics. \gls{gof} tools, such as \gls{qq} plots, raw residual plots, and count distributions, assess how well the \gls{tpp} captures the data-generating process of aggressive behavior onsets \cite{wu2021diagnostics}. Forecasting performance is evaluated using metrics like \gls{psis-loo} \gls{elpd}, and \gls{mape}, which quantify the model’s ability to provide accurate probabilistic predictions of future onsets \cite{ludke2023add,vehtari2017practical}.
\subsubsection{QQ Plots}
A \gls{qq} plot is a residual analysis tool for comparing the quantiles of two distributions, often used to assess whether a dataset follows a specific theoretical distribution, such as an exponential distribution. The plot visualizes the relationship between observed data and the expected distribution by plotting the quantiles of the observed data against those of the theoretical distribution. If the scatter plot of the observed and theoretical quantiles closely follows a 45-degree line, it indicates strong alignment, suggesting that the observed data closely matches the theoretical distribution. To apply the \gls{qq} plot to \gls{tpp} models that are not \gls{hpp} and may have complex theoretical inter-onset distributions, we utilize the \gls{rtc} theorem \cite{brown1988simple}. The \gls{rtc} theorem asserts that, for a \gls{tpp} characterized by a conditional intensity function \(\lambda^*(t)\) defined over the history of aggressive event onset times \(t_1,\dots,t_J\), the transformed times \(\tau(t_1),\dots,\tau(t_J)\), obtained using the mapping function
\vspace{-0.5em}
\begin{align}
\tau(t) = \int_0^t \lambda^*(s) ds = \Lambda^*(t), \label{eqn:rtc}
\end{align}
will follow a standard Poisson process. In this case, the \gls{rtc} theorem inter-onsets $\tau(t_{j+1}) - \tau(t_j)$ are \gls{iid} and exponentially distributed with mean = 1 (representing one aggressive behavior onset per transformed time unit). Thus, the \gls{qq} plot compares the empirical distribution of inter-onsets in the observed data after applying the \gls{rtc} theorem mapping (\cref{eqn:rtc}), while the theoretical distribution is an exponential distribution with mean = 1.
\subsubsection{Raw Residual Plots}
The raw residual plot is based on the Doob–Meyer decomposition theorem \cite{andersen2012statistical}. For a counting process \(N(t)\) with conditional intensity \(\lambda^*(t)\), the raw residual process is defined as
\begin{align}
M(t) = N(t) - \Lambda(t) \label{eqn:rawresidual}
\end{align}
where \( \Lambda(t) = \int_0^t \lambda^*(s) \, ds \) is the cumulative intensity function.
By the theorem, \(M(t)\) is a martingale with mean zero at all times \cite{wu2021diagnostics}. Therefore, the raw residuals should be centered at zero. To assess model fit, for each session we evaluated the raw residual process at the end of the observation period, \(M(T)\), where \(T\) denotes the session's end time, and plotted \(M(T)\) against the total number of aggressive behavior onsets observed in that session, \(N(T)\). If the \gls{tpp} model fits well, the raw residuals should be symmetrically distributed around zero, indicating that the model accurately captures the expected number of aggressive behavior onsets. Systematic deviations from zero would suggest that the model is either overestimating or underestimating the number of onsets, indicating a poor fit to the data \cite{wu2021diagnostics}.
\subsubsection{Count Distribution}
A well‑fitting \gls{tpp} should reproduce the empirical distribution of onset counts per session. For session windows $[0,T_i)$ let $N(T_i)$ denote the observed count. The empirical (true) count distribution is the distribution of $\{N(T_i)\}_{i=1}^I$. The model count distribution is obtained by simulating onsets in each $[0,T_i)$ using Ogata’s thinning algorithm \cite{laub2024hawkes}.
\vspace{-0.5em}
\begin{align}
T_i &\sim \U(\{T_1, T_2, \ldots T_I\}) \nonumber \\
\theta &\sim p(\theta | \Sset, \Tset) \\
t_1 &\sim f_\theta(t_1 | H_{t_0^+}), \quad t_2 \sim f_\theta(t_2 | H_{t_1^+}), \quad \dots, \quad t_j \sim f_\theta(t_j | H_{t_{j-1}^+}) \quad \text{for } t_j < T_i \nonumber \\
n_i &= N(T_i) \nonumber
\end{align}
\noindent where $\U$ is a uniform distribution , \( \theta \) are the model parameter samples from \gls{mcmc}, \( t_j \) are sampled onset times conditioned on past history \( H_{t_{j-1}^+} \), and \( n_i \) is the total number of events within the window \( T_i \). We then compare the empirical and simulated count distributions (e.g., via \gls{kde}) and quantify their discrepancy with the \gls{wd} \cite{kolourioptimal,ludke2023add}.
Unlike benchmark metrics such as log-likelihood, \gls{aic}, and \gls{bic}, that provide only relative model performance comparisons, \gls{qq} plots, raw residual plots, and count distribution plots assess how well the chosen model approximates the true generative process (in the present case, aggressive behavior onsets).
\subsubsection{Pareto Smoothed Importance Sampling - Leave One Out Expected Log Predictive Density}
Informally, the \gls{loo} \gls{elpd} evaluates the ability of \gls{tpp} model to predict aggressive behavior onset times in a new session based on other sessions:
\noindent\begin{minipage}{.5\linewidth}
\begin{equation}
\text{ELPD}_{\text{loo}} = \sum_{i=1}^{N} \log p(S_i,T_i \mid \Sset_{-i}, \Tset_{-i})
\end{equation}
\end{minipage}%
\begin{minipage}{.5\linewidth}
\begin{equation}
p(S_i , T_i, \mid \Sset_{-i}, \Tset_{-i}) = \int p(S_i , T_i \mid \theta) p(\theta \mid \Sset_{-i}, \Tset_{-i}) d\theta
\end{equation}
\end{minipage}
\noindent where $\Sset_{-i} = \Sset \backslash S_i$ represents all observation sessions except observation session $i$, and $\Tset_{-i} = \Tset \backslash T_i$ represents all session durations except duration $i$. A higher \gls{loo} \gls{elpd} value indicates a better predictive model. The \gls{psis-loo} \gls{elpd} approximates the \gls{loo} expected log predictive density using Pareto‑smoothed \gls{is}, avoiding refitting the model for each held‑out session. Using \gls{is}, the \gls{elpd} may be defined as
\begin{align}
p(S_i , T_i | \Sset_{-i}, \Tset_{-i}) \approx \frac{1}{\sum_{m=1}^M p(S_i, T_i \mid \theta^{(m)})}
\end{align}
where $M$ is the number of post-warmup \gls{mcmc} samples from the posterior distribution $p(\theta \mid \Sset)$. However, raw \gls{is} can be unstable because the importance ratios may have high or infinite variance. The \gls{psis} procedure stabilizes the estimate by fitting a generalized Pareto distribution to the upper tail of the \gls{is} replacing extreme weights with Pareto‑smoothed quantiles. This reduces \gls{is} weight variance and produces more reliable \gls{is} \gls{elpd} estimates, especially when the \gls{is} weights are heavy‑tailed. We visualize each session \gls{psis-loo} \gls{elpd} estimate normalized by the number of onsets in the session, $\log (p(S_i | \Sset_{-i})) / |S_i|$, in \textcolor{blue}{Supplementary Figure S6}. However, log-likelihood values may be challenging to interpret; thus, we also include the \gls{mape} calculation for better interpretability.
\subsubsection{Mean Absolute Percentage Error}
To evaluate forecasting performance, we assess the \gls{tpp} model's ability to predict the number of aggressive behavior onsets within a time window $[t,t+\Delta t]$. A starting point $t_{\text{start}} \in [\Delta t, T-\Delta t]$ is uniformly at random selected, with aggressive behavior onsets in $[0,t_{\text{start}}]$ forming the history $\h$, and those in $[t_{\text{start}}, t_{\text{start}} + \Delta t]$ constituting the forecast goal. The \gls{mape} is calculated as
\begin{align}
\text{MAPE}(N(t,t+\Delta t), \tilde{N}(t,t + \Delta t)) = \frac{ | N(t,t + \Delta t) - \tilde{N}(t,t+\Delta t) | }{\max(1,N(t,t+\Delta t))} \times 100
\end{align}
where $N(t,t+\Delta t)$ is the observed number of aggressive behavior onsets in $[t,t+\Delta t)$, and $\tilde{N}(t,t+\Delta t)$ is the median predicted count in $[t,t+\Delta t)
$, conditioned on the history $H_t$. Note that the denominator of \gls{mape} has $\max(1,N(t,t+\Delta t))$ to ensure that 0 is not a divisor. The median prediction is
\vspace{-0.5em}
\begin{align}
\tilde{N}(t,t+\Delta t) = \text{med}\left( \tilde{N}(t,t+\Delta t)^{(m)} \mid m = 1:M \right)
\end{align}
where each $\tilde{N}^{(m)}$ is sampled using Ogata's thinning algorithm. For each observation session $S_i$, we sample 25 uniformly at random $t_{\text{start}}$ locations and their corresponding forecasting windows to compute the \gls{mape}. A lower \gls{mape} indicates a better predictive model for the number of aggressive behavior onsets within a future time window.
%TC:endignore
\vspace{-1em}
\section{Results}
\subsection{Count Distribution}
\Cref{fig:countdistribution} compares count distributions between \gls{hpp}, \gls{nhpp}, \gls{hwkpl}, \gls{hwkexp}, and \gls{hwk2exp} and the true count distribution. \cref{fig:countdistribution}(a,b) compares the count distributions of aggressive behavior onsets per session for the true data and the \gls{hpp} and \gls{nhpp} models. The empirical distribution (orange) is highly right-skewed, resembling an exponential distribution with a large probability mass at zero and a long, heavy tail. In contrast, the \gls{hpp} and \gls{nhpp} model-generated distributions (blue) exhibit a truncated Gaussian-like shape, centered around 15-16 counts per session, failing to capture the zero-inflation and heavy tail of the true distribution. This discrepancy suggests that both models struggle to account for the bursty and sparse nature of aggressive behavior onsets observed in the data. For instance, in a 100-minute observation session with no aggressive behavior onsets, the \gls{hpp} model would still predict an average of 16 occurrences, highlighting its inability to capture zero-inflation in the data. However, as shown in \cref{fig:countdistribution} (c,d,e), the distributions generated by the self-exciting \gls{tpp} models—\gls{hwkpl}, \gls{hwkpp}, and \gls{hwk2exp} (blue)—closely match the empirical distribution (orange). Notably, the \gls{kde} of the observed and generated session counts exhibit complete overlap for the \gls{hwkpp} and \gls{hwk2exp}, demonstrating the models' ability to accurately capture the true count distribution. Quantitatively, using the \gls{wd} metric, \cref{tab:metric} shows that the self-exciting processes (\gls{hwkpl}, \gls{hwkexp} and \gls{hwk2exp}) clearly lead to better estimations of the underlying count distribution compared to \gls{hpp} and \gls{nhpp}, with \gls{hwk2exp} leading to the smallest \gls{wd}. Specifically, the \gls{hwk2exp} model achieves a Wasserstein distance of 3.3, more than three times smaller than the Poisson model's distance of 9.8. This metric was computed from 40 \gls{mc} trials.
% \begin{figure}[h!]
% \centering
% \includegraphics[width=0.99\linewidth]{imgs/count_histograms.png}
% \caption{The empirical data count distribution (orange) versus \gls{tpp} generated count distribution (blue) for number of aggressive behavior onsets within an observation session. (a),(b),(c),(d),(e) are the comparison of the empirical data versus \gls{tpp} generated count distribution for the \gls{hpp}, \gls{nhpp}, \gls{hwkpl}, \gls{hwkexp}, and \gls{hwk2exp} \glspl{tpp} respectively.}
% \label{fig:countdistribution}
% \end{figure}
\subsection{QQ Plots}
\Cref{fig:qqplot} displays the \gls{rtc} theorem transformed inter-onset quantiles (\cref{eqn:rtc}) against the $\exp(1)$ theoretical quantiles for each model of interest: the \gls{hpp}, \gls{nhpp}, \gls{hwkpl}, \gls{hwkexp}, and \gls{hwk2exp} models, \Cref{fig:qqplot}(a,b) illustrates that the \gls{hpp} and \gls{nhpp} fail to capture the bursty nature of aggressive behavior onsets, as their inter-onset distributions allocate excessive probability density to larger onset counts compared to the true data. This leads to overestimating the number of aggressive behavior onsets during low-intensity periods (when few or no onsets occur over extended durations) and underestimating them during self-excitation phases, highlighting their limitations in modeling self-excitatory dynamics. \cref{fig:qqplot}(c,d) shows that the \gls{hwkpl} and \gls{hwkexp} tend to generate slightly shorter inter-onset times than observed aggressive behavior onsets. This deviation is particularly pronounced in the tail of the distribution, where the model underestimates longer inter-onset times, leading to a bias toward shorter predicted intervals. However, the \gls{hwkpl} captures the tail of the distribution more effectively than the \gls{hwkexp} due to the scale-free nature and long tail of the \gls{pl} kernel. This suggests that in sessions with extended gaps between aggressive events, the \gls{hwkexp} tends to assume that subsequent events will occur sooner than they do. \cref{fig:qqplot}(e) shows that the \gls{hwk2exp} effectively corrects the tail deviation observed in \cref{fig:qqplot}(c,d), reducing the underestimation of longer inter-onset times. This improvement stems from the \gls{hwk2exp}'s use of two scaled exponential kernels—one capturing short-term and the other long-term dependencies—enabling rapid and gradual variations in the intensity function. Additionally, the Markovian property of the exponential kernel facilitates better parameter inference. Consequently, the \gls{hwk2exp} provides a more flexible representation of temporal dynamics, better aligning with the observed inter-onset structure.
\subsection{Raw Residual Plots}
\Cref{fig:rawresidual} plots the raw residuals (\cref{eqn:rawresidual}) against the number of aggressive behavior onsets per session for each \gls{tpp} model. By the Doob-Meyer decomposition theorem, residuals,~\cref{eqn:rawresidual}, should be centered around 0 (orange line in \cref{fig:rawresidual}). \Cref{fig:rawresidual}(a,b) shows that the \gls{hpp} and \gls{nhpp} models overestimate onsets in sessions with few occurrences and underestimate them in bursty sequences, consistent with the \gls{qq} plots. In contrast, \cref{fig:rawresidual}(c,d,e) indicates that the \gls{hwkpl}, \gls{hwkexp}, and \gls{hwk2exp} residuals are closer to 0. However, they exhibit a slight positive drift in raw residual error as the number of onsets in an observation session increases.
% \begin{figure}[h!]
% \centering
% \includegraphics[width=0.99\linewidth]{imgs/raw_residual_plt.png}
% \caption{A scatter plot of the raw residuals (\cref{eqn:rawresidual}) versus the number of aggressive behavior onsets in an observation session (blue). (a),(b),(c),(d),(e) are the raw residual plots for the \gls{hpp}, \gls{nhpp}, \gls{hwkpl}, \gls{hwkexp}, and \gls{hwk2exp} \gls{tpp} fits respectively.}
% \label{fig:rawresidual}
% \end{figure}
\subsection{Pareto Smoothed Importance Sampling - Leave One Out Expected Log Predictive Density}
For the \gls{psis-loo} \gls{elpd} estimates, the Pareto k diagnostic values were overwhelmingly favorable. All Pareto k values fell in the ``good'' range for the self‑exciting models (\gls{hwkpl}, \gls{hwkexp}, \gls{hwk2exp}) and for the fitted \gls{tpp} models overall. For the \gls{hpp} and \gls{nhpp} models, about 99\% of the Pareto k values were ``good'' and the remainder were ``ok,'' with a single \gls{nhpp} sample classified as ``bad.'' These categories follow the standard thresholds for the fitted Pareto k parameter used in \gls{psis-loo} diagnostics \cite{vehtari2017practical,vehtari2024pareto}.
This pattern indicates that \gls{psis-loo} provides a stable and accurate approximation to full \gls{loo} \gls{elpd} cross‑validation for our models. In terms of predictive performance, the \gls{hwk2exp} model attained the highest \gls{psis-loo} \gls{elpd}, followed by the \gls{hwkexp} and then the \gls{hwkpl}. The \gls{hpp} and \gls{nhpp} models showed substantially lower predictive performance -- roughly a two‑fold reduction relative to the best self‑exciting models.
\subsection{Mean Absolute Percentage Error}
\noindent We evaluate the \gls{mape} for the forecasted number of aggressive behavior onsets across time windows of $\Delta t = 1, 5, 10, 15, 20, 25$ minutes (\cref{tab:metric}). As the forecasting window increases, the performance gap between the \gls{nhpp} and \gls{hpp} models versus the self-exciting \glspl{tpp} widens.
Specifically, for the \gls{hwk2exp} the \gls{mape} is 11\% at 1 minute, rising to about 68\% at 25 minutes, while the \gls{hpp} model quickly becomes much less accurate, with \gls{mape} exceeding 260\% at 25 minutes. This is because the \gls{hpp} and \gls{nhpp} models do not incorporate the history of aggressive behavior onsets or account for self-excitation. Consequently, when many observation sessions have no aggressive behavior onsets, the \gls{hpp} and \gls{nhpp} models tend to overestimate the number of future onsets significantly. In contrast, the \gls{hwkpl}, \gls{hwkexp}, and \gls{hwk2exp} models, with a low background intensity $\mu$, forecast fewer aggressive behavior onsets when there is little or no history of such onsets.
Although \gls{mape} may be high for long-horizon probabilistic forecasts, \cref{fig:forecastcount} demonstrates the potential of estimating future aggressive behavior onset counts using only the history of past onsets. Notably, the median of the probabilistic forecast closely follows the true aggressive behavior counting process. Additionally, the upper bound of the 90\% credible interval for the \gls{hwk2exp} model is significantly higher than its lower bound, in contrast to the \gls{nhpp}. This discrepancy may be attributed to the branching factor, or infectivity, of the \gls{hwk2exp} being in the critical (\(\approx 1\)) or above-critical (\(>1\)) regime \cite{hardiman2013critical}, which leads to a nonzero probability of an infinite number of triggered onsets, otherwise stated as an explosion. In the next section, we further discuss the branching factor of the \gls{hwk2exp} and \gls{hwkpl}.
A corresponding analysis using the \gls{rocauc} \cite{narkhede2018understanding}, instead of the \gls{mape}, is provided in the \textcolor{blue}{Supplementary ``Classification Performance of TPPs''} and \textcolor{blue}{Supplementary Table S6}.
% \suppref{appsec:classification}.
Rather than estimating the number of onsets occurring within a randomly sampled window of size $\Delta t$, we predict the probability of at least one onset occurring in the window using \cref{eqn:condcdf}. The ground truth label is 1 if any onsets occur within the window and 0 otherwise (\textcolor{blue}{Supplementary Fig. S12}). The \gls{hwk2exp} achieves \gls{rocauc} values of 0.85, 0.82, 0.80, 0.79, 0.78, and 0.77 at 1, 5, 10, 15, 20, or 25 minute time windows. In contrast, the \gls{hpp} hovers around 0.50 for all windows, equivalent to randomly guessing if an aggressive episode will occur.
\subsection{Branching Factor}
The branching factor of a \gls{hwkpp} is the average number of ``child'' (endogenous) events triggered by each ``parent'' (exogenous) event. It is a key parameter that determines the self-exciting behavior of the process. Mathematically, the branching factor is defined as \( BF = \int_{0}^{\infty} \phi(t) dt \), where $\phi(t)$ is the triggering kernel in \cref{eqn:generalhwk}. The branching factor equation for the \gls{hwkexp}, \gls{hwk2exp}, and \gls{hwkpl} is shown in the x-axis label of \cref{fig:bf} (a),(b),(c), respectively. The branching factor \( BF \) determines the stability of a \gls{hwkpp}. If \( BF < 1 \), the process is subcritical, meaning each onset triggers fewer than one new child onset on average, leading to a stable process. If \( BF = 1 \), the process is critical, where each onset triggers exactly one child onset on average, maintaining a delicate balance between exploding versus stability of onset generation. If \( BF > 1 \), the process is supercritical, where each onset triggers more than one child onset on average, potentially resulting in an explosive cascade of events. Understanding \( BF \) is essential for assessing the long-term behavior and stability of a \gls{hwkpp}.
Estimating the branching factor requires careful consideration of potential biases inherent in data collection and model parameter estimation processes. As shown in \cite{filimonov2015apparent}, branching factor estimates, particularly for \gls{hwkpl} and \gls{hwk2exp}, can be inflated by outliers. To verify that our branching factor estimation is not biased by outliers, we follow the approach in \cite{filimonov2015apparent} by comparing quantile ratios (95\%/90\%, 99\%/95\%, and max/90\%) between synthetic and empirical inter-onset sequences, using inverse \gls{cdf} interpolation for observation sessions with at least five events. Additionally, we define outliers as inter-onset times exceeding $2\times$ the 99\% quantile \cite{filimonov2015apparent}. As shown in \cref{tab:branchingfactor}, no substantial evidence suggests that outliers significantly affect our branching factor estimation. However, even if there were outliers, the branching factor estimate for the \gls{hwkexp} model has been shown to remain robust to a significant number of outlier inter-onsets in the data \cite{filimonov2015apparent}. Another potential source of bias in branching factor estimation is edge effects \cite{filimonov2015apparent}. However, we assume their impact on model parameter estimation is minimal (refer to \secref{subsec:modelchoice} for further details).
When the branching factor is in the subcritical regime, the $BF$ is interpreted as the percentage of onsets in an observation session triggered by an exogenous onset. Since the \gls{hwkexp} has an average branching factor of $0.85 - 0.95$, this suggests that $85\%-95\%$ of all aggressive behavior onsets are triggered by a past aggressive behavior onset rather than external factors. For both \gls{hwkpl} and \gls{hwk2exp}, there is a non-zero probability of the $BF$ exceeding 1, though only slightly.
\section{Discussion}
\label{sec:discussion}
Our results demonstrate that self-exciting point process models, such as the \gls{hwkpp}, fit the observed data well and capture the irregular and bursty nature of aggressive behavior onsets in psychiatric inpatient autistic youth. Compared to the standard \gls{hpp}, the Hawkes model substantially outperforms in both predictive accuracy and its ability to represent the underlying generative process.
When we frame the prediction task as a classification problem -- asking, ``Will any aggressive episode occur in the next 1, 5, 10, 15, 20, or 25 minutes?" -- the \gls{hwk2exp} reliably distinguishes between windows where aggression is likely versus unlikely, while the standard \gls{hpp} cannot. We also note that our \gls{rocauc} values for predicting aggression within 1 to 5 minutes are very similar to those reported by Imbiriba et al.~\cite{imbiriba2023wearable} who included physiological features, further validating our modeling approach and results. Beyond classification, the \gls{hwkpp} model also provides more accurate forecasts of the actual number of aggressive episodes in each window. In practical terms, our model gives much more realistic estimates of how many aggressive episodes will occur in a given period, especially as the forecast window grows. Previous studies~\cite{imbiriba2023wearable,10.1145/3240925.3240980,imbiriba2020biosensor} cannot estimate the expected number of aggressive behavior episodes in a given observation window. We demonstrated using \gls{wd} -- a measure of how well a model captures the generative process of the real-world distribution of aggressive onset counts -- that the \gls{hwkpp} model generates data that more closely matches the true pattern of aggressive behavior counts in sessions observed in the hospital compared to traditional \gls{hpp}. These findings are further supported by the \gls{psis-loo} \gls{elpd}, which directly measures out-of-sample predictive performance. The Hawkes model’s \gls{psis-loo} \gls{elpd} is nearly twice as high (less negative) as the Poisson model’s, demonstrating that it generalizes substantially better to new observation sessions and is more reliable for forecasting aggressive behavior onsets in real-world clinical settings.
Additionally, a key advantage of using \gls{tpp} models is their interpretability and explainability. For example, the inferred parameters for the Hawkes process show that after an initial aggressive behavior onset, there is a high probability of subsequent onsets occurring in quick succession—a cascade effect. Thus, interventions that prevent the first instance or mitigate early occurrences of aggressive behavior onsets, or ``mother'' onsets, should be prioritized. This suggests that careful interactions and interventions should be provided to inpatient youths with autism to prevent a cascade of subsequent aggressive behavior onsets. These insights also introduce new research questions, such as whether we can generate the branching structure of the cluster representation of a \gls{hwkpp} to identify all the ``mother'' onsets and, through post-analysis, understand what triggers them.
Our collective results demonstrate that our modeling approach improves predictive performance and provides potentially meaningful clinical insights and actionable forecasts. Accurately forecasting the number of aggressive behavior onsets within a future window (\cref{fig:forecastcount}), predicting whether any event will occur in that window (\cref{fig:probability_fns}), and estimating the precise timing of future onsets all have translational clinical potential. For example, the model’s predicted probability that at least one aggressive episode will occur in the next 5 or 10 minutes could be used to trigger real-time alerts for clinicians and caregivers, prompting increased supervision or preventive action. Forecasts of the expected number of events in a window could inform staff allocation and resource planning, ensuring that support is available when risk is highest. Precise timing predictions could allow for just-in-time adaptive interventions, such as de-escalation strategies or environmental modifications, to be delivered before an episode occurs. Additionally, the model’s ability to generate synthetic data that closely matches real-world patterns could enable safe simulation and testing of intervention protocols, as well as staff training, without risk to patients. Together, these outputs support proactive, data-driven decision-making to reduce harm and improve care in clinical settings.
Furthermore, our \gls{gof} visualizations -- including the \gls{qq} plot (\cref{fig:qqplot}), raw residual plot (\cref{fig:rawresidual}), and count distribution (\cref{fig:countdistribution}) -- demonstrate that self-exciting point process models, such as the \gls{hwkpp}, can closely capture the complex, clustered patterns of aggressive behavior onset observed in psychiatric inpatient youth with autism. This strong fit is consistent with both expert clinical observation and prior analyses using the Ripley K estimator \cite{karlis2023proposer}, which highlight the temporal clustering of aggression in this population (\textcolor{blue}{Supplementary ``Ripley K Estimator''} and \textcolor{blue}{Supplementary Fig. S11}).
% (\suppref{appsec:ripley}).
Predictive metrics, including \gls{psis-loo} \gls{elpd} and \gls{mape}, further confirm promise of \glspl{tpp} for forecasting aggression risk over clinically relevant time windows.
\section{Limitations and Future Work}
Following this initial analysis, we intend to explore three future directions. First, we plan to divide our sample into sub-samples based on key variables such as the number of observation sessions, total observation time, and total aggressive behavior onsets, duration, and intensity. By analyzing differences among these sub-samples, we aim to gain deeper insights into the variability of aggressive behavior and its recurrence. Second, we will investigate statistical differences in inferred model parameters and examine variations in modeling choices based on the type of condition label, including \gls{sib}, \gls{ed}, and \gls{ato}. Thirdly, we will utilize a hierarchical \gls{hwkpp} to account for between-person heterogeneity and disparities in data sample sizes among participants.
The distribution of aggressive behavior onsets per participant appears to follow a power-law pattern. Specifically, one participant accounts for 26.5\% of the aggressive behavior onsets (1,287 onsets), two participants contribute 25\% (475 to 910 onsets), five participants contribute 20.8\% (106 to 476 onsets), and 62 participants account for 27.7\% (0 to 105 onsets). This distribution suggests the existence of subpopulations within the data, conceptualized as chronically aggressive, hyper-aggressive, aggressive, and mildly aggressive. Given the substantial disparity in onsets exhibited by individual participants, hierarchical \gls{hwkpp} could address intra-individual and inter-individual variability. A single-level hierarchical \gls{hwkpp} could refine the analysis of the branching factor by modeling inter-individual heterogeneity and homogeneity. In contrast, a two-level hierarchical model would capture intra-individual and inter-individual session variability, further enhancing the analysis of edge effects, as discussed with the modified \gls{hwkpp} in \secref{subsec:modelchoice}. This two-level model would also enable the inference of a $\mu_0$ per observation session. Finally, we aggregated three distinct behaviors into a single aggression onset label. A more nuanced analysis would involve modeling \gls{ato}, \gls{sib}, and \gls{ed} separately as each type of aggression may follow a distinct generative process, with potentially different baseline intensities and interacting infectivity factors. This modeling of interacting point processes could be achieved via a Multivariate Hawkes process \cite{liniger2009multivariate}.
While our approach demonstrates strong promise in learning a \gls{tpp} that closely captures the generative process of aggressive behavior onsets, it still has limitations in predictive performance, mainly when answering questions like ``how many events will occur within the next 5 minutes?''. This modeling gap may be due to limited data sample size, the need for more expressive \gls{tpp} models (such as those with advanced kernel functions or deep learning-based architectures), or the exclusion of important covariates like physiological signals.
Furthermore, a limitation of generative modeling is that although we may learn the generative process of aggressive behavior onsets with reasonable accuracy, this does not necessarily translate into improved predictive capability. To illustrate with a simple example, consider inferring the probability of heads in a fair coin toss. Estimating this probability as 0.5 from multiple flips is straightforward. However, even with an accurate estimate, it does not enable precise prediction of the outcome of the next flip or a sequence of flips. Our model may effectively capture the underlying generative process of aggressive behavior onsets but may still struggle to predict proximal occurrence given the history of onsets within an observation session. Thus, while our models provide probabilistic forecasts that could support real-time clinical decision-making, there is still a lack of standardized, interpretable metrics for evaluating temporal point process performance in decision-based frameworks -- particularly metrics that are meaningful and actionable for clinicians \cite{shachter1992decision,shchur2021neural}. Addressing these challenges will be essential for translating \gls{tpp} modeling into practical, impactful tools for clinical care.
Lastly, a limitation towards real-time model parameter estimation is that \gls{mcmc} inference is notoriously slow, with online parameter update mechanisms still under research. However, we may explore online inference methods, such as Cubature Kalman Filters, for estimating the parameters of the intensity function in a \gls{hwkpp}. This would allow us to perform online updates of the model parameters with streaming data, bringing us a step closer to enabling just-in-time preventative interventions to reduce aggressive behavior in autistic youth.
\section{Software Packages}\label{sec:software_shoutout}
All analyses were conducted in Python, (version 3.9) following the \textit{Cookiecutter Data Science} project structure and workflow \cite{drivendata2025}. Bayesian inference was performed using \texttt{NumPyro=0.16.1} \cite{phan2019composable}, a probabilistic programming language built on \texttt{JAX=0.4.30} \cite{jax2018github} for efficient \gls{nuts} sampling. Model diagnostics (including \gls{psis-loo} cross-validation) and posterior exploratory analysis utilized \texttt{ArviZ=0.17.1} \cite{arviz_2019}, a toolkit for exploratory analysis of Bayesian models. Evaluation metrics such as \gls{rocauc} and \gls{wd} were calculated using \texttt{scikit-learn=1.5.2} and \texttt{scipy=1.12.0}, respectively. Data preprocessing employed \texttt{pandas=2.2.3}, \texttt{numpy=1.26.4}, and \texttt{xarray=2024.7.0}. Visualizations were created using \texttt{matplotlib=3.9.3}, and \texttt{seaborn=0.13.2}.
\pagebreak
% \noindent LaTeX formats citations and references automatically using the bibliography records in your .bib file, which you can edit via the project menu. Use the cite command for an inline citation, e.g. \cite{Hao:gidmaps:2014}.
% For data citations of datasets uploaded to e.g. \emph{figshare}, please use the \verb|howpublished| option in the bib entry to specify the platform and the link, as in the \verb|Hao:gidmaps:2014| example in the sample bibliography file.
%TC:ignore
\section{Acknowledgements}
\noindent This study was supported by grant R01LM014191 from the National Institutes of Health, the Simons Foundation for Autism Research Initiative, and the Nancy Lurie Marks Family Foundation. We are grateful to participating families. Families were offered \$75 for their child’s participation in the study. All project personnel listed were paid as research assistants for the duration of their involvement.
\section{Author Contributions Statement}
\noindent M.P.,A.S.,D.E.,T.I.,M.S.G conceived the experiments. M.S.G.,Y.W. conducted the data collection. M.P.,M.E.,T.I. conducted the experiments. M.P.,M.E.,T.I.,M.S.G. analyzed the results. All authors reviewed the manuscript. D.E., M.S.G obtained funding.
% \section{Additional information}
% To include, in this order: \textbf{Accession codes} (where applicable); \textbf{Competing interests} (mandatory statement).
\section{Competing Interests}
\noindent The author(s) declare no competing interests.
% The corresponding author is responsible for submitting a \href{http://www.nature.com/srep/policies/index.html#competing}{competing interests statement} on behalf of all authors of the paper. This statement must be included in the submitted article file.
\section{Data Availability}
\noindent The datasets generated during and/or analysed during the current study are available from the corresponding author on reasonable request.
% \begin{itemize}
% \item \textbf{Data types}: Deidentified participant data, Data dictionary
% \item \textbf{Additional Information:} Data access instructions, deidentified data description, data dictionary description, acceptable use policy.
% \item \textbf{How to access documents: Will be made available pre-production.}
% \item \textbf{When available: With publication}
% \textbf{Who can access the data:} Researchers whose proposed use of the data has been
% approved.
% \textbf{Types of analyses:} The scientific community for non-commercial research
% purposes.
% \textbf{Mechanisms of data availability}: Per the Simons Foundation data sharing policy
% \end{itemize}
\bibliography{sample}
%TC:endignore
\pagebreak
%TC:ignore
\begin{figure}[h!]
\centering
% First subfigure
\begin{subfigure}[b]{0.32\linewidth}
\centering
\includegraphics[width=\linewidth]{imgs/condition_windows.pdf}
\caption{}
\label{fig:dataaggregate}
\end{subfigure}
\hfill % Adds horizontal space between the subfigures
% Second subfigure
\begin{subfigure}[b]{0.35\linewidth}
\centering
\includegraphics[width=\linewidth]{imgs/collapse_condition_windows.pdf}
\caption{}
\label{fig:datapreprocesscollapse}
\end{subfigure}
\hfill % Adds horizontal space between the subfigures
% Second subfigure
\begin{subfigure}[b]{0.28\linewidth}
\centering
\includegraphics[width=\linewidth]{imgs/normalize_time_window.pdf}
\caption{}
\label{fig:datapreprocessnormalize}
\end{subfigure}
% Main figure caption
\caption{Three stages of data preprocessing. (a) Aggregating \gls{sib},\gls{ato},\gls{ed} behavior labels into a condition label. (b) Preproccessing only the aggressive behavior onset timestamps. (c) Normalizing the aggressive behavior onset timestamps to be at the begining of the observation session.}
\label{fig:preprocess}
\end{figure}
\begin{figure}[h!]
\centering
\begin{minipage}{0.8\textwidth}
\centering
\includegraphics[width=\linewidth]{imgs/intensity_curves/intensity_curves_t1_1206.01_01.png}
\subcaption{}
\end{minipage}
\begin{minipage}{0.8\textwidth}
\centering
\includegraphics[width=\linewidth]{imgs/intensity_curves/intensity_curves_t3_1234.01_13.png}
\subcaption{}
\end{minipage}
\caption{\glspl{tpp} conditional intensity curves for two observation sessions. (a) The conditional intensity curve for each \gls{tpp} model in participant 1206.01, observation session 1. (b) The conditional intensity curve for each \gls{tpp} model in participant 1234.01 observation session 13. }
\label{fig:intensty_fns}
\end{figure}
\begin{figure}[h!]
\centering
\begin{subfigure}[b]{0.95\linewidth}
\centering
\includegraphics[width=\linewidth]{imgs/count_histograms.png}
\caption{}
\label{fig:countdistribution}
\end{subfigure}
\vspace{0.5cm} % Adds space between the subfigures
\begin{subfigure}[b]{0.95\linewidth}
\centering
\includegraphics[width=\linewidth]{imgs/residual_qq_plt.png}
\caption{}
\label{fig:qqplot}
\end{subfigure}
\vspace{0.5cm} % Adds space between the subfigures
\begin{subfigure}[b]{0.958\linewidth}
\centering
\includegraphics[width=\linewidth]{imgs/raw_residual_plt.png}
\caption{}
\label{fig:rawresidual}
\end{subfigure}
\caption{Goodness-of-fit evaluation metrics for the \glspl{tpp}. Subfigure (a): The empirical data count distribution (orange) versus \gls{tpp} generated count distribution (blue) for the number of aggressive behavior onsets in an observation session. Subfigure (b): the \gls{qq} plot of \gls{rtc} theorem inter-arrivals for different \gls{tpp} fits. The x-axis is the theoretical quantiles of an exponential distribution with mean 1, and the y-axis is the sample quantiles from all the \gls{rtc} theorem inter-arrivals in the dataset. Subfigure (c): the scatter plot of the raw residuals (\cref{eqn:rawresidual}) versus the number of aggressive behavior onsets in an observation session (blue). In each subfigure, (a)-(e) refer to the \gls{hpp}, \gls{nhpp}, \gls{hwkpl}, \gls{hwkexp}, and \gls{hwk2exp} models, respectively.}
\label{fig:combined}
\end{figure}
\begin{table}[h!]
\centering
\begin{tabular}{|c|c|c|c|c|c|c|}
\toprule
Metric & |S| & HPP & NHPP & HawkesPLPP & HawkesExpPP & Hawkes2ExpPP \\
\midrule
WD $\pm$ SE & 429 & 9.75 ± 0.29 & 9.83 ± 0.31 & 3.53 ± 1.15 & 3.66 ± 1.5 & 3.27 ± 1.18 \\
$\text{PSIS-LOO ELPD}_\text{LOO} \pm$ SE& 429 & $-13727 \pm 1003$ & $-13731 \pm 1005$ & $-7832 \pm 466$ & $-7807 \pm 481$ & $-7710 \pm 471$\\
$\text{MAPE}@\Delta t=1$ & 429 & 11.43 & 11.43 & 11.16 & 11.69 & 11.22 \\
$\text{MAPE}@\Delta t=5$ & 424 & 78.20 & 77.34 & 27.48 & 29.06 & 27.92 \\
$\text{MAPE}@\Delta t=10$ & 417 & 116.44 & 107.04 & 36.46 & 37.88 & 37.97 \\
$\text{MAPE}@\Delta t=15$ & 409 & 156.67 & 148.35 & 46.22 & 45.42 & 49.20 \\
$\text{MAPE}@\Delta t=20$ & 399 & 210.44 & 205.66 & 53.42 & 50.95 & 57.60 \\
$\text{MAPE}@\Delta t=25$ & 385 & 262.15 & 258.25 & 61.85 & 61.89 & 67.88 \\
\bottomrule
\end{tabular}
\caption{\gls{gof} and predictive metrics for \glspl{tpp}. $|S|$ is the number of observation sessions used to calculate each metric, and SE is the standard error. The first row is \gls{wd} (mean±std) between the empirical data count distribution versus the \gls{tpp} generated count distribution for number of aggressive behavior onsets within an observation session over 40 \gls{mc} trials. The second row is \gls{psis-loo} \gls{elpd} over $|S|=429$ observation sessions. The third row onward, i.e. any row with $\text{MAPE}@\Delta t=X$, is the \gls{mape} for forecasting the number of aggressive behavior onsets in a time interval of size $\Delta t$ (min). The forecast is the median count from 75 samples aggressive behavior onset sequences (for each observation session).} % Add a caption here
\label{tab:metric} % Place the label after the caption
\end{table}
% However, we note that this may artificially lower the \gls{mape} for the \gls{hwkpp} and \gls{hwk2exp}. It may be better to filter out observation sessions with a minimum number
\begin{figure}[h!]
\centering
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[width=\linewidth]{imgs/count_forecast_curves/count_forecasts_HPP_t1_1206.01_03.png}
\subcaption{\gls{nhpp}}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[width=\linewidth]{imgs/count_forecast_curves/count_forecasts_Hawkes2PP_t1_1206.01_03.png}
\subcaption{\gls{hwk2exp}}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[width=\linewidth]{imgs/count_forecast_curves/count_forecasts_HPP_t1_4107.01_06.png}
\subcaption{\gls{nhpp}}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[width=\linewidth]{imgs/count_forecast_curves/count_forecasts_Hawkes2PP_t1_4107.01_06.png}
\subcaption{\gls{hwk2exp}}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[width=\linewidth]{imgs/count_forecast_curves/count_forecasts_HPP_t3_5056.01_14.png}
\subcaption{\gls{nhpp}}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[width=\linewidth]{imgs/count_forecast_curves/count_forecasts_Hawkes2PP_t3_5056.01_14.png}
\subcaption{\gls{hwk2exp}}
\end{minipage}
\caption{Visualization of the forecasted number of aggressive behavior onsets within a future time window, conditioned on the history of prior onsets. The blue line represents the observed history of onset counts, while the black line denotes the true future onset count. The black vertical dotted line marks the start of forecasting. The red line corresponds to the median prediction over 250 sampled forecasts, with the darker orange shaded region indicating the interquartile range (25th to 75th quantile) and the lighter orange shaded region representing the 90\% credible interval (5th to 95th quantile). (a,b) show the forecasted number of onsets in participant 1206.01, session 3, (c,d) correspond to participant 4107.01, session 6, while (e,f) represent participant 5056.01, session 14, with each pair displaying forecasts for the \gls{nhpp} and \gls{hwk2exp}, respectively.
}
\label{fig:forecastcount}
\end{figure}
\begin{table}[h!]
\scalebox{0.8}{
\begin{tabular}{llllllllll}
\toprule
Statistic & Q90 & Q95 & Q99 & Max & N & Q95/Q90 & Q99/Q95 & Max/Q99 & outlier \\
Model & & & & & & & & & \\
\midrule
Hawkes2ExpPP & 12.69 ± 12.09 & 19.37 ± 16.32 & 30.71 ± 21.21 & 35.99 ± 23.47 & 31.28 ± 44.40 & 1.89 ± 1.63 & 2.35 ± 2.57 & 1.40 ± 1.55 & 0.06 ± 0.24 \\
HawkesPLPP & 13.75 ± 12.53 & 21.14 ± 16.67 & 32.55 ± 21.14 & 37.10 ± 23.19 & 25.56 ± 30.87 & 1.86 ± 1.29 & 2.21 ± 2.45 & 1.24 ± 0.89 & 0.04 ± 0.21 \\
HawkesExpPP & 12.50 ± 12.52 & 19.66 ± 17.21 & 31.26 ± 21.79 & 36.48 ± 23.91 & 28.28 ± 36.39 & 1.91 ± 1.30 & 2.63 ± 3.20 & 1.40 ± 1.85 & 0.06 ± 0.26 \\
True Data & 9.86 ± 10.07 & 14.25 ± 13.01 & 20.49 ± 17.34 & 22.75 ± 18.92 & 29.13 ± 36.15 & 1.57 ± 0.51 & 1.70 ± 1.41 & 1.14 ± 0.26 & 0.01 ± 0.09 \\
\bottomrule
\end{tabular}
}
\caption{Comparison of summary statistics for data generated from the fitted \gls{tpp} versus the true data summary statistics. Q90, Q95, Q99 are the 90th, 95th, and 99th quantiles, whereas $N$ is the average number of onsets per observation session.}
\label{tab:branchingfactor}
\end{table}
\begin{figure}[h!]
\centering
\includegraphics[width=1.0\linewidth]{imgs/branching_factor.png}
\caption{Posterior \gls{pdf} over the branching factor for the \glspl{hwkpp}. (a), (b), (c) are the branching factors for the \gls{hwkexp}, \gls{hwk2exp} and \gls{hwkpl}, respectively.}
\label{fig:bf}
\end{figure}
\begin{figure}[h!]
\centering
\begin{minipage}{0.8\textwidth}
\centering
\includegraphics[width=\linewidth]{imgs/probability_curves/survival_curves_t1_1206.01_01.png}
\subcaption{intensity}
\end{minipage}
\begin{minipage}{0.8\textwidth}
\centering
\includegraphics[width=\linewidth]{imgs/probability_curves/survival_curves_t1_1206.01_03.png}
\subcaption{intensity}
\end{minipage}
\caption{\glspl{tpp} conditional \gls{cdf} curves for two observation sessions. (a) The conditional \gls{cdf} curve for each \gls{tpp} model in participant 1206.01, observation session 1. (b) The conditional \gls{cdf} curve for each \gls{tpp} model in participant 1234.01 observation session 13. }
\label{fig:probability_fns}
\end{figure}
%TC:endignore
\include{legends_r1}
\pagebreak \newpage
\include{supplementary_arxiv}
\end{document}
\newacronym{qq}{QQ}{Quantile-Quantile}
\newacronym{asd}{ASD}{Autism Spectrum Disorder}
\newacronym{mcmc}{MCMC}{Monte-Carlo Markov-Chain}
\newacronym[
plural=HPPs,
longplural=Homogeneous Poisson Processes
]{hpp}{HPP}{Homogeneous Poisson Process}
\newacronym[
plural=NHPPs,
longplural=Non-Homogeneous Poisson Processes
]{nhpp}{NHPP}{Non-Homogeneous Poisson Process}
\newacronym[
plural=HawkesPPs,
longplural=Hawkes Point Processes
]{hwkpp}{HawkesPP}{Hawkes Point Process}
\newacronym[
plural=HawkesExpPPs,
longplural=Hawkes Point Processes with Exponential Kernel
]{hwkexp}{HawkesExpPP}{Hawkes Point Process with Exponential Kernel}
\newacronym[
plural=Hawkes2ExpPPs,
longplural=Hawkes Point Processes with Two Exponential Kernels
]{hwk2exp}{Hawkes2ExpPP}{Hawkes Point Process with Two Exponential Kernels}
\newacronym[
plural=HawkesPLPPs,
longplural=Hawkes Point Processes with Power Law Kernel
]{hwkpl}{HawkesPLPP}{Hawkes Point Process with Power Law Kernel}
\newacronym{psis-loo}{PSIS-LOO}{Pareto Smoothed Importance Sampling - Leave One Out}
\newacronym[
plural=TPPs,
longplural=Temporal Point Processes
]{psis}{PSIS}{Pareto Smoothed Importance Sampling}
\newacronym{elpd}{ELPD}{Expected Log Density}
\newacronym{hmc}{HMC}{Hamiltonian Monte Carlo}
\newacronym{cdf}{CDF}{Cumulative Density Function}
\newacronym{rtc}{RTC}{Random Time Change}
\newacronym{aic}{AIC}{Akaike Information Criterion}
\newacronym{bic}{BIC}{Bayesian Information Criterion}
\newacronym{nuts}{NUTS}{No U-Turn Sampler}
\newacronym{pdf}{PDF}{Probability Density Function}
\newacronym[
plural=TPPs,
longplural=Temporal Point Processes
]{tpp}{TPP}{Temporal Point Process}
\newacronym{iid}{IID}{independent and identically distributed}
\newacronym{is}{IS}{Importance Sampling}
\newacronym{ai}{AI}{Artificial Intelligence}
\newacronym{ml}{ML}{Machine Learning}
\newacronym{dl}{DL}{Deep Learning}
\newacronym{cnn}{CNN}{Convolutional Neural Network}
\newacronym{pl}{PL}{Power Law}
\newacronym{mh}{MH}{Metropolis Hastings}
\newacronym{ess}{ESS}{Effective Sample Size}
\newacronym{mcse}{MCSE}{Monte-Carlo Standard Error}
\newacronym{kde}{KDE}{Kernel Density Estimators}
\newacronym{mape}{MAPE}{Mean Absolute Percent Error}
\newacronym{sib}{SIB}{Self-Injurious Behavior}
\newacronym{ed}{ED}{Emotion Dysregulation}
\newacronym{ato}{ATO}{Aggression Towards Others}
\newacronym{mle}{MLE}{Maximum Likelihood Estimation}
\newacronym{eda}{EDA}{Electrodermal Activity}
\newacronym{lstm}{LSTM}{Long Short Term Memory}
\newacronym{lr}{LR}{Logistic Regression}
\newacronym{svm}{SVM}{Support Vector Machine}
\newacronym{nn}{NN}{Neural Network}
\newacronym{wd}{WD}{Wassertein Distance}
\newacronym{mc}{MC}{Monte Carlo}
\newacronym{gof}{GOF}{Goodness-of-Fit}
\newacronym{loo}{LOO}{leave-one-out}
\newacronym{rocauc}{ROC-AUC}{Area Under the Receiver Operating Characteristic Curve}
\section{Legends}
\begin{itemize}
\itemsep0em
\item \textbf{Figure 1}: Three stages of data preprocessing. (a) Aggregating \gls{sib},\gls{ato},\gls{ed} behavior labels into a condition label. (b) Preproccessing only the aggressive behavior onset timestamps. (c) Normalizing the aggressive behavior onset timestamps to be at the begining of the observation session.
\item \textbf{Figure 2}: \glspl{tpp} conditional intensity curves for two observation sessions. (a) The conditional intensity curve for each \gls{tpp} model in participant 1206.01, observation session 1. (b) The conditional intensity curve for each \gls{tpp} model in participant 1234.01 observation session 13.
\item \textbf{Figure 3}: Goodness-of-fit evaluation metrics for the \glspl{tpp}. Subfigure (a): The empirical data count distribution (orange) versus \gls{tpp} generated count distribution (blue) for the number of aggressive behavior onsets in an observation session. Subfigure (b): the \gls{qq} plot of \gls{rtc} theorem inter-arrivals for different \gls{tpp} fits. The x-axis is the theoretical quantiles of an exponential distribution with mean 1, and the y-axis is the sample quantiles from all the \gls{rtc} theorem inter-arrivals in the dataset. Subfigure (c): the scatter plot of the raw residuals (\cref{eqn:rawresidual}) versus the number of aggressive behavior onsets in an observation session (blue). In each subfigure, (a)-(e) refer to the \gls{hpp}, \gls{nhpp}, \gls{hwkpl}, \gls{hwkexp}, and \gls{hwk2exp} models, respectively.
\item \textbf{Figure 4}: Visualization of the forecasted number of aggressive behavior onsets within a future time window, conditioned on the history of prior onsets. The blue line represents the observed history of onset counts, while the black line denotes the true future onset count. The black vertical dotted line marks the start of forecasting. The red line corresponds to the median prediction over 250 sampled forecasts, with the darker orange shaded region indicating the interquartile range (25th to 75th quantile) and the lighter orange shaded region representing the 90\% credible interval (5th to 95th quantile). (a,b) show the forecasted number of onsets in participant 1206.01, session 3, (c,d) correspond to participant 4107.01, session 6, while (e,f) represent participant 5056.01, session 14, with each pair displaying
\item \textbf{Figure 5}: Posterior \gls{pdf} over the branching factor for the \glspl{hwkpp}. (a), (b), (c) are the branching factors for the \gls{hwkexp}, \gls{hwk2exp} and \gls{hwkpl}, respectively.
\item \textbf{Figure 6}: \glspl{tpp} conditional \gls{cdf} curves for two observation sessions. (a) The conditional \gls{cdf} curve for each \gls{tpp} model in participant 1206.01, observation session 1. (b) The conditional \gls{cdf} curve for each \gls{tpp} model in participant 1234.01 observation session 13.
\item \textbf{Table 1}: \gls{gof} and predictive metrics for \glspl{tpp}. $|S|$ is the number of observation sessions used to calculate each metric, and SE is the standard error. The first row is \gls{wd} (mean±std) between the empirical data count distribution versus the \gls{tpp} generated count distribution for number of aggressive behavior onsets within an observation session over 40 \gls{mc} trials. The second row is \gls{psis-loo} \gls{elpd} over $|S|=429$ observation sessions. The third row onward, i.e. any row with $\text{MAPE}@\Delta t=X$, is the \gls{mape} for forecasting the number of aggressive behavior onsets in a time interval of size $\Delta t$ (min).
\item \textbf{Table 2}: Comparison of summary statistics for data generated from the fitted \gls{tpp} versus the true data summary statistics. Q90, Q95, Q99 are the 90th, 95th, and 99th quantiles, whereas $N$ is the average number of onsets per observation session.
\end{itemize}
\resetlinenumber
\linenumbers
\beginsupplement
\appendixpage
\glsresetall
\section{Supplementary Methods}
\subsection{Monte-Carlo Markov Chain Diagnostics}
\label{appsec:mcmcdiagnostics}
We provide the \gls{mcmc} inference diagnostics such as $\hat{R}$, \gls{mcse} on the posterior mean and posterior variance of the \gls{tpp} parameters, the \gls{ess} for the bulk and tail as well as the parameter expectations, standard deviations, and quantiles. Furthermore, we provide the autocorrelation plots of each \gls{mcmc} chain along with the posterior \gls{pdf} of the \gls{tpp} parameters. The \gls{mcmc} inference diagnostics and \gls{mcmc} sample summary statistics for the \gls{hpp}, \gls{nhpp}, \gls{hwkexp}, \gls{hwk2exp}, and \gls{hwkpl} are found in \Cref{apptab:hppmcmc,apptab:nhppmcmc,apptab:hwkexpmcmc,apptab:hwk2expmcmc,apptab:hwkplmcmc} respectively. The \gls{mcmc} sampling chain autocorrelation plots and \gls{mcmc} sample histograms for each parameter for \gls{hpp}, \gls{nhpp}, \gls{hwkexp}, \gls{hwk2exp}, and \gls{hwkpl} are shown in \cref{appfig:hppmcmchist,appfig:nhppmcmchist,appfig:hwkexpmcmchist,appfig:hwk2expmcmchist,appfig:hwkplmcmchist} respectively.
\subsection{\gls{psis-loo} \gls{elpd}}
We visualize the \gls{elpd} normalized by the number of aggressive behaviors in the observation session for each observation session against the number of observed aggressive behavior onsets to examine whether poor \gls{elpd} estimates correlate with the onset count (\cref{appfig:elpd_scatterplot}). Notably, the \gls{tpp} model performs worst when the number of onsets per session is between 1 and 10, indicating greater difficulty in capturing event dynamics in sparsely populated sessions.
\subsection{Posterior versus Prior PDF of TPP parameters}
We visualize the posterior \gls{pdf} from \gls{mcmc} inference samples and the prior \gls{pdf} for each model parameter to compare how much the data shifts the posterior \gls{pdf} from the prior \gls{pdf}. This gives some indication on how much the data drives the posterior \gls{pdf}, and if the prior distribution is biasing the results. The red lines and blue lines in the figures correspond to the prior \gls{pdf} and posterior \gls{pdf} respectively on the \gls{tpp} parameters. As shown in \cref{appfig:priorpos_nhpp,appfig:priorpos_hwkexp,appfig:priorpos_hwk2exp,appfig:priorpos_hwkpl}, with the exception of the \gls{hwkpl}, the prior \glspl{pdf} are widely uninformative priors and the data drives the posterior \gls{pdf}. In future work, we will try wider prior \glspl{pdf} for the \gls{hwkpl}.
\subsection{Ripley K Estimator}
\label{appsec:ripley}
For self-exciting point processes, each onset triggers other onsets with high probability, but it is not necessarily true that the onset times cluster temporally. A method to investigate the aggregation / clustering of onsets is to use the non-parametric Ripley's K-function summary \cite{karlis2023proposer}, which is a reduced second-moment measure. It may be thought of as a normalized (with respect to the rate of events) version of the expected number of onsets within a window of interval $2t$ of any random onset time selected (\Cref{appeq:ripleyk}). For a \gls{hpp}, theoretically $K(t)=2t$. If $K(t)>2t$, the process is said to be over-dispersed relative to the \gls{hpp} and thus exhibits some degree of clustering. If $K(t)<2t$, the process is said to be under-dispersed related to the \gls{hpp} and thus onsets occur towards regular intervals. As shown in \cref{appfig:ripleyk}, many of the observation sessions display some form of temporal clustering, indicating that self-exciting processes are an appropriate model choice.
\subsection{Classification Performance of TPPs}
\label{appsec:classification}
To evaluate classification performance, we assess the \gls{tpp} model's capability to predict if any onset will occur within a time window $[t,t+\Delta t]$. A starting point $t_{\text{start}} \in [\Delta t, T-\Delta t]$ is randomly selected, with aggressive behavior onsets in $[0,t_{\text{start}}]$ forming the history $\h$, and those in $[t_{\text{start}}, t_{\text{start}} + \Delta t]$ constituting the forecast goal. We calculate the probability of atleast one onset occurring within an arbitrary window as $P[t_\text{start} < t_{\text{onset}} <= t_\text{start} + \Delta t] = 1 - \exp(\Lambda(t_\text{start} + \Delta t) - \Lambda(t_\text{start}))$ with the history subsetted as $\h_{t_start}$. The ground truth label for the corresponding sampled time window is 1 if any onsets occur within the window and 0 otherwise. Again, for each observation session $S_i$, we sample 100 random $t_{\text{start}}$ locations and their corresponding probability of atleast one onset to compute the \gls{rocauc}. An example of two sampled time windows within an observation session is shown in \cref{appfig:example_windowing}. A higher \gls{rocauc} indicates a better predictive model for the number of aggressive behavior onsets within a future time window. We see in \Cref{apptab:rocauc_table} that the self-exciting processes have the best \gls{rocauc}, with a large gap between \gls{hpp} and \gls{nhpp}. This is because \gls{hpp} and \gls{nhpp} do not use the history when making a prediction if any event happens in a given future window. Furthermore, the \gls{hpp} and \gls{nhpp} cannot handle the temporal clustering of events that was shown in \suppref{appsec:ripley}.
\newpage
\section{Supplementary Tables}
\begin{table}[h!]
\scalebox{0.8}{
\begin{tabular}{l|l|l|l|l|l|l|l|l|l|l|l|}
\hline
\multicolumn{1}{|c|}{\textbf{$\theta$}} & \multicolumn{1}{c|}{mcse\_mean} & \multicolumn{1}{c|}{mcse\_sd} & ess\_bulk & ess\_tail & r\_hat & mean & std & median\_std & 5\% & median & 95\% \\ \hline
\multicolumn{1}{|l|}{$\mu$} & 0.000037 & 0.000026 & 3905.527691 & 3690.888832 & 1.001562 & 0.163399 & 0.002321 & 0.002321 & 0.159582 & 0.163388 & 0.167197 \\ \hline
\end{tabular}}
\caption{\gls{hpp} \gls{tpp} \gls{mcmc} diagnostics. Table includes the \gls{mcmc} diagnostic statistics and the summary statistics over \gls{mcmc} samples of the model parameters.}
\label{apptab:hppmcmc}
\end{table}
\begin{table}[h!]
\scalebox{0.8}{
\begin{tabular}{|l|l|l|l|l|l|l|l|l|l|l|l|}
\hline
\multicolumn{1}{|c|}{\textbf{$\theta$}} & \multicolumn{1}{c|}{mcse\_mean} & \multicolumn{1}{c|}{mcse\_sd} & ess\_bulk & ess\_tail & r\_hat & mean & std & median\_std & 5\% & median & 95\% \\ \hline
$\alpha$ & 0.000107 & 0.000076 & 8845.538507 & 7476.553304 & 1.000653 & 0.179480 & 0.010042 & 0.010048 & 0.163490 & 0.179137 & 0.196577 \\
k & 0.000132 & 0.000093 & 8806.309742 & 7355.212776 & 1.000527 & 0.978940 & 0.012380 & 0.012380 & 0.958507 & 0.978955 & 0.999088 \\
$\mu$ & 0.000066 & 0.000047 & 8900.544522 & 7482.490484 & 1.000722 & 0.172877 & 0.006248 & 0.006252 & 0.162838 & 0.172649 & 0.183549 \\ \hline
\end{tabular}
}
\caption{\gls{nhpp} \gls{tpp} \gls{mcmc} diagnostics. Table includes the \gls{mcmc} inference diagnostic statistics and the summary statistics over \gls{mcmc} samples of the model parameters.}
\label{apptab:nhppmcmc}
\end{table}
\vspace{-1em}
\begin{table}[h!]
\scalebox{0.8}{
\begin{tabular}{|l|l|l|l|l|l|l|l|l|l|l|l|}
\hline
\multicolumn{1}{|c|}{\textbf{$\theta$}} & \multicolumn{1}{c|}{mcse\_mean} & \multicolumn{1}{c|}{mcse\_sd} & ess\_bulk & ess\_tail & r\_hat & mean & std & median\_std & 5\% & median & 95\% \\ \hline
$\alpha$ & 0.000134 & 0.000095 & 12090.076945 & 9771.538738 & 0.999996 & 0.896642 & 0.014732 & 0.014733 & 0.872701 & 0.896454 & 0.921383 \\
$\beta$ & 0.000125 & 0.000089 & 12491.371402 & 10076.651507 & 1.000372 & 0.362435 & 0.013974 & 0.013977 & 0.339953 & 0.362132 & 0.385803 \\
$\mu$ & 0.000010 & 0.000007 & 12836.346675 & 9788.062905 & 1.000588 & 0.022929 & 0.001080 & 0.001080 & 0.021188 & 0.022921 & 0.024746 \\ \hline
\end{tabular}
}
\caption{\gls{hwkexp} \gls{tpp} \gls{mcmc} diagnostics. Table includes the \gls{mcmc} inference diagnostic statistics and the summary statistics over \gls{mcmc} samples of the model parameters.}
\label{apptab:hwkexpmcmc}
\end{table}
\vspace{-1em}
\begin{table}[h!]
\scalebox{0.8}{
\begin{tabular}{|l|l|l|l|l|l|l|l|l|l|l|l|}
\hline
\multicolumn{1}{|c|}{\textbf{$\theta$}} & \multicolumn{1}{c|}{mcse\_mean} & \multicolumn{1}{c|}{mcse\_sd} & ess\_bulk & ess\_tail & r\_hat & mean & std & median\_std & 5\% & median & 95\% \\ \hline
$\alpha_0$ & 0.000460 & 0.000325 & 9360.267378 & 7190.472066 & 1.001703 & 0.555669 & 0.044355 & 0.044365 & 0.481628 & 0.556617 & 0.627850 \\
$\alpha_1$ & 0.000403 & 0.000286 & 9467.247474 & 7473.615216 & 1.001967 & 0.401525 & 0.039339 & 0.039349 & 0.338327 & 0.400637 & 0.468482 \\
$\beta_0$ & 0.000787 & 0.000566 & 9771.149405 & 7521.710565 & 1.000970 & 0.769212 & 0.076171 & 0.076372 & 0.654237 & 0.763688 & 0.902572 \\
$\beta_1$ & 0.000170 & 0.000120 & 9193.668140 & 6901.310115 & 1.000258 & 0.089091 & 0.016494 & 0.016509 & 0.063173 & 0.088405 & 0.116994 \\
c & 0.000148 & 0.000105 & 10319.143976 & 6733.623358 & 0.999982 & 0.115363 & 0.015064 & 0.015065 & 0.090902 & 0.115163 & 0.140543 \\
$\mu$ & 0.000009 & 0.000006 & 13996.544463 & 8639.769974 & 1.000117 & 0.019584 & 0.001033 & 0.001034 & 0.017925 & 0.019566 & 0.021304 \\ \hline
\end{tabular}
}
\caption{\gls{hwk2exp} \gls{tpp} \gls{mcmc} diagnostics. Table includes the \gls{mcmc} inference diagnostic statistics and the summary statistics over \gls{mcmc} samples of the model parameters.}
\label{apptab:hwk2expmcmc}
\end{table}
\vspace{-1em}
\begin{table}[h!]
\scalebox{0.8}{
\begin{tabular}{|l|l|l|l|l|l|l|l|l|l|l|l|}
\hline
\multicolumn{1}{|c|}{\textbf{$\theta$}} & \multicolumn{1}{c|}{mcse\_mean} & \multicolumn{1}{c|}{mcse\_sd} & ess\_bulk & ess\_tail & r\_hat & mean & std & median\_std & 5\% & median & 95\% \\ \hline
c & 0.004642 & 0.003451 & 2989.559861 & 1857.791296 & 1.001330 & 1.608953 & 0.243644 & 0.244322 & 1.240103 & 1.590764 & 2.042069 \\
k & 0.008509 & 0.006804 & 2919.654330 & 1770.599360 & 1.001483 & 1.259888 & 0.394105 & 0.401316 & 0.773996 & 1.184151 & 2.005617 \\
$\mu$ & 0.000012 & 0.000009 & 7164.001917 & 6350.680372 & 1.002622 & 0.019955 & 0.001051 & 0.001051 & 0.018258 & 0.019942 & 0.021690 \\
p & 0.002076 & 0.001497 & 2940.716305 & 2072.339469 & 1.002068 & 1.837775 & 0.109316 & 0.109461 & 1.666977 & 1.832133 & 2.029415 \\ \hline
\end{tabular}
}
\caption{\gls{hwkpl} \gls{tpp} \gls{mcmc} diagnostics. Table includes the \gls{mcmc} inference diagnostic statistics and the summary statistics over \gls{mcmc} samples of the model parameters.}
\label{apptab:hwkplmcmc}
\end{table}
\vspace{-1em}
\begin{table}[h!]
\centering
\scalebox{0.8}{
\begin{tabular}{|c|c|c|c|c|c|c|c|c|}
\hline
\textbf{$\Delta t$ (min)} & \multicolumn{1}{c|}{\textbf{\# of Samples}} & \multicolumn{1}{c|}{\textbf{\# of + Samples}} & \multicolumn{1}{c|}{\textbf{\# of - Samples}} & \multicolumn{1}{c|}{\textbf{HPP}} & \multicolumn{1}{c|}{\textbf{NHPP}} & \multicolumn{1}{c|}{\textbf{HawkesExpPP}} & \multicolumn{1}{c|}{\textbf{HawkesPLPP}} & \multicolumn{1}{c|}{\textbf{Hawkes2ExpPP}} \\ \hline
\textbf{1} & 42900 & 4764 & 38136 & 0.499 & 0.545 & 0.858 & 0.852 & 0.846 \\
\textbf{5} & 42400 & 11088 & 31312 & 0.500 & 0.558 & 0.822 & 0.817 & 0.818 \\
\textbf{10} & 41700 & 14381 & 27319 & 0.494 & 0.549 & 0.800 & 0.803 & 0.800 \\
\textbf{15} & 40900 & 16040 & 24860 & 0.506 & 0.540 & 0.782 & 0.787 & 0.786 \\
\textbf{20} & 39900 & 17300 & 22600 & 0.498 & 0.526 & 0.769 & 0.777 & 0.776 \\
\textbf{25} & 38500 & 17577 & 20923 & 0.500 & 0.501 & 0.763 & 0.771 & 0.769 \\ \hline
\end{tabular}
}
\caption{\gls{rocauc} for predicting if any onset will occur in a time interval of size $\Delta t$ (min). Number of samples used to calculate the \gls{rocauc} is $|S|\times 100$, where $|S|$ may change depending on if it is valid or not because the size of the sampled window may exceed the observation session duration. Number of positive and negative samples is the number of samples with class 1 and 0, respectively.}
\label{apptab:rocauc_table}
\end{table}
\begin{table}[h!]
\centering
\scalebox{0.7}{
\begin{tabular}{|c|c|c|c|c|}
\hline
Patient ID & \# Of Onsets & \# of Observation Sessions & Total Observation Time (min) & Time (min)/ Session \\ \hline
1234.01 & 1287 & 24 & 2000.08 & 83.34 \\
3207.01 & 741 & 7 & 528.88 & 75.55 \\
3007.01 & 481 & 7 & 629.65 & 89.95 \\
5056.01 & 407 & 17 & 940.49 & 55.32 \\
3216.01 & 195 & 7 & 434.00 & 62.00 \\
4107.01 & 150 & 16 & 1052.95 & 65.81 \\
3204.01 & 140 & 9 & 931.94 & 103.55 \\
3069.01 & 118 & 3 & 262.33 & 87.44 \\
3174.01 & 98 & 8 & 376.91 & 47.11 \\
4020.04 & 94 & 16 & 719.15 & 44.95 \\
4371.01 & 79 & 5 & 339.70 & 67.94 \\
4262.01 & 79 & 7 & 211.61 & 30.23 \\
1094.01 & 77 & 25 & 2263.22 & 90.53 \\
1234.02 & 65 & 3 & 253.31 & 84.44 \\
4358.01 & 64 & 20 & 746.63 & 37.33 \\
1206.01 & 57 & 4 & 386.73 & 96.68 \\
1224.01 & 55 & 6 & 740.04 & 123.34 \\
4356.01 & 55 & 4 & 177.53 & 44.38 \\
4280.01 & 54 & 5 & 203.55 & 40.71 \\
1247.01 & 50 & 20 & 1597.28 & 79.86 \\
3141.01 & 44 & 5 & 446.34 & 89.27 \\
3172.01 & 42 & 7 & 377.38 & 53.91 \\
1229.01 & 38 & 11 & 949.90 & 86.35 \\
1236.01 & 37 & 13 & 987.37 & 75.95 \\
4348.01 & 33 & 7 & 550.03 & 78.58 \\
1235.01 & 33 & 9 & 1088.57 & 120.95 \\
4343.01 & 28 & 4 & 164.43 & 41.11 \\
4293.04 & 26 & 13 & 792.47 & 60.96 \\
1253.01 & 22 & 5 & 558.22 & 111.64 \\
4365.01 & 22 & 9 & 330.09 & 36.68 \\
3171.01 & 21 & 6 & 267.56 & 44.59 \\
1241.01 & 21 & 8 & 657.87 & 82.23 \\
3238.01 & 19 & 3 & 204.75 & 68.25 \\
4407.01 & 19 & 4 & 296.57 & 74.14 \\
1205.01 & 14 & 7 & 772.40 & 110.34 \\
4354.01 & 13 & 7 & 516.60 & 73.80 \\
1175.01 & 12 & 6 & 384.54 & 64.09 \\
4401.01 & 10 & 6 & 256.91 & 42.82 \\
4409.01 & 9 & 1 & 77.82 & 77.82 \\
1233.01 & 9 & 18 & 908.44 & 50.47 \\
4384.01 & 9 & 6 & 278.54 & 46.42 \\
1223.01 & 8 & 5 & 686.19 & 137.24 \\
1181.01 & 6 & 10 & 644.56 & 64.46 \\
4183.01 & 6 & 6 & 252.44 & 42.07 \\
4353.01 & 5 & 5 & 241.64 & 48.33 \\
4090.01 & 5 & 1 & 75.77 & 75.77 \\
4398.01 & 4 & 1 & 71.95 & 71.95 \\
2036.01 & 3 & 1 & 22.32 & 22.32 \\
4342.01 & 2 & 2 & 129.08 & 64.54 \\
4381.01 & 2 & 3 & 196.33 & 65.44 \\
4380.01 & 1 & 2 & 103.88 & 51.94 \\
4395.01 & 1 & 2 & 80.94 & 40.47 \\
1220.01 & 1 & 6 & 762.71 & 127.12 \\
1244.01 & 0 & 1 & 4.98 & 4.98 \\
1238.01 & 0 & 1 & 112.40 & 112.40 \\
1240.01 & 0 & 1 & 64.95 & 64.95 \\
1242.01 & 0 & 1 & 49.75 & 49.75 \\
4392.01 & 0 & 1 & 66.48 & 66.48 \\
4391.01 & 0 & 1 & 40.00 & 40.00 \\
4389.01 & 0 & 1 & 26.78 & 26.78 \\
4169.01 & 0 & 1 & 46.63 & 46.63 \\
1245.01 & 0 & 1 & 73.85 & 73.85 \\
1249.01 & 0 & 1 & 27.18 & 27.18 \\
1255.01 & 0 & 1 & 71.05 & 71.05 \\
4357.01 & 0 & 1 & 45.85 & 45.85 \\
1232.01 & 0 & 1 & 79.50 & 79.50 \\
1230.01 & 0 & 1 & 39.83 & 39.83 \\
3177.01 & 0 & 1 & 67.88 & 67.88 \\
3237.01 & 0 & 1 & 21.15 & 21.15 \\
3205.01 & 0 & 1 & 57.98 & 57.98 \\ \hline
Mean & 69.59 & 6.13 & 426.10 & 65.84 \\
Median & 13.5 & 5 & 264.94 & 65.20 \\
Std & 187.71 & 5.84 & 452.16 & 27.11 \\ \hline
\end{tabular}
}
\caption{Data Statistics. The number of aggressive behavior onsets, the total observation time across all observation sessions, and the total number of observation sessions, per patient.}
\label{apptab:datastatistic}
\end{table}
\clearpage
\section{Supplementary Figures}
\begin{figure}[h!]
\centering
\includegraphics[width=0.99\linewidth]{imgs/mcmc_diagnostics/trace_HPP.pdf}
\caption{Trace plots for \gls{hpp}. Left column: Posterior probability density functions (PDFs) for each \gls{tpp} parameter, estimated from MCMC samples. Right column: Autocorrelation plots for each parameter's MCMC chain. Each subplot shows results from four independent MCMC chains, represented by four different lines.}
\label{appfig:hppmcmchist}
\end{figure}
\begin{figure}[h!]
\centering
\includegraphics[width=0.99\linewidth]{imgs/mcmc_diagnostics/trace_NHPP.pdf}
\caption{Trace plots for \gls{nhpp}. Left column: Posterior probability density functions (PDFs) for each \gls{tpp} parameter, estimated from MCMC samples. Right column: Autocorrelation plots for each parameter's MCMC chain. Each subplot shows results from four independent MCMC chains, represented by four different lines.}
\label{appfig:nhppmcmchist}
\end{figure}
\begin{figure}[h!]
\centering
\includegraphics[width=0.99\linewidth]{imgs/mcmc_diagnostics/trace_HawkesExpPP.pdf}
\caption{Trace plots for \gls{hwkexp}. Left column: Posterior probability density functions (PDFs) for each \gls{tpp} parameter, estimated from MCMC samples. Right column: Autocorrelation plots for each parameter's MCMC chain. Each subplot shows results from four independent MCMC chains, represented by four different lines.}
\label{appfig:hwkexpmcmchist}
\end{figure}
\begin{figure}[h!]
\centering
\includegraphics[width=0.99\linewidth]{imgs/mcmc_diagnostics/trace_Hawkes2ExpPP.pdf}
\caption{Trace plots for \gls{hwk2exp}. Left column: Posterior probability density functions (PDFs) for each \gls{tpp} parameter, estimated from MCMC samples. Right column: Autocorrelation plots for each parameter's MCMC chain. Each subplot shows results from four independent MCMC chains, represented by four different lines.}
\label{appfig:hwk2expmcmchist}
\end{figure}
\begin{figure}[h!]
\centering
\includegraphics[width=0.99\linewidth]{imgs/mcmc_diagnostics/trace_HawkesPLPP.pdf}
\caption{Trace plots for \gls{hwkpl}. Left column: Posterior probability density functions (PDFs) for each \gls{tpp} parameter, estimated from MCMC samples. Right column: Autocorrelation plots for each parameter's MCMC chain. Each subplot shows results from four independent MCMC chains, represented by four different lines.}
\label{appfig:hwkplmcmchist}
\end{figure}
\begin{figure}[h!]
\centering
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[trim={10pt 8pt 10pt 30pt},clip,width=\linewidth]{imgs/loo/looi_HPP.pdf}
\subcaption{}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[trim={10pt 8pt 10pt 30pt},clip,width=\linewidth]{imgs/loo/looi_NHPP.pdf}
\subcaption{}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[trim={10pt 8pt 10pt 30pt},clip,width=\linewidth]{imgs/loo/looi_HawkesExpPP.pdf}
\subcaption{}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[trim={10pt 8pt 10pt 30pt},clip,width=\linewidth]{imgs/loo/looi_Hawkes2ExpPP.pdf}
\subcaption{}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[trim={10pt 8pt 10pt 30pt},clip,width=\linewidth]{imgs/loo/looi_HawkesPLPP.pdf}
\subcaption{}
\end{minipage}
\caption{Visualization of the \gls{psis-loo} \gls{elpd} for each observation session normalized by number of aggressive behavior onsets versus the number of aggressive behavior onsets observed within an observation session. The light blue scatter points correspond to the \gls{psis-loo} \gls{elpd} for observation sessions with no onsets, whereas the darker blue scatter points correspond to \gls{psis-loo} \gls{elpd} for observation sessions with atleast one onset. For sessions with no events, we simply divide the \gls{psis-loo} \gls{elpd} by 1. (a),(b),(c),(d),(e) correspond to the \gls{hpp}, \gls{nhpp}, \gls{hwkexp}, \gls{hwk2exp} and \gls{hwkpl} \glspl{tpp} respectively.}
\label{appfig:elpd_scatterplot}
\end{figure}
\begin{figure}[h!]
\centering
\includegraphics[width=0.7\linewidth]{imgs/posterior_shift/posteriorshift_nhpp.pdf}
\caption{Posterior versus prior \gls{pdf} for \gls{nhpp} parameters. The prior distributions for the \gls{nhpp} parameters are: $k \sim \mathrm{Gamma}(1,1)$, $\alpha \sim \mathrm{Gamma}(1,1)$, and $\mu \sim \mathrm{Gamma}(1,1)$.}
\label{appfig:priorpos_nhpp}
\end{figure}
\begin{figure}[h!]
\centering
\includegraphics[width=0.9\linewidth]{imgs/posterior_shift/posteriorshift_hwkexp.pdf}
\caption{Posterior versus prior \gls{pdf} for \gls{hwkexp} parameters. The prior distributions for the \gls{hwkexp} parameters are: $\mu \sim \mathrm{Gamma}(1,1)$, $\alpha \sim \mathrm{Gamma}(1,1)$, and $\beta \sim \mathrm{Gamma}(1,1)$.}
\label{appfig:priorpos_hwkexp}
\end{figure}
\begin{figure}[h!]
\centering
\includegraphics[width=0.7\linewidth]{imgs/posterior_shift/posteriorshift_hwk2exp.pdf}
\caption{Posterior versus prior \gls{pdf} for \gls{hwk2exp} parameters. The prior distributions for the \gls{hwk2exp} parameters are: $\mu \sim \mathrm{Gamma}(1,1)$, $\alpha_0 \sim \mathrm{Gamma}(1,3)$, $\alpha_1 \sim \mathrm{Gamma}(1,3)$, $\beta_0 \sim \mathrm{Gamma}(3,3)$, $\beta_1 \sim \mathrm{Gamma}(3,3)$, and $c \sim \mathrm{Uniform}(0,1)$.}
\label{appfig:priorpos_hwk2exp}
\end{figure}
\begin{figure}[h!]
\centering
\includegraphics[width=0.7\linewidth]{imgs/posterior_shift/posteriorshift_hwkpl.pdf}
\caption{Posterior versus prior \gls{pdf} for \gls{hwkpl} parameters. The prior distributions for the \gls{hwkpl} parameters are: $\mu \sim \mathrm{Uniform}(0,2)$, $c \sim \mathrm{Uniform}(0,4)$, $k \sim \mathrm{Uniform}(0,4)$, and $p \sim \mathrm{Uniform}(1,4)$.}
\label{appfig:priorpos_hwkpl}
\end{figure}
\begin{figure}[h!]
\centering
\includegraphics[trim={100pt 0pt 100pt 0pt},clip,width=0.8\linewidth]{imgs/ripleyk_estimator.png}
\caption{For each observation session with atleast 15 onsets, we visualize the Ripley K estimator for varying values of $t$ with reference to the \gls{hpp} Ripley K estimator $2t$. The time lag is $t$.}
\label{appfig:ripleyk}
\end{figure}
\begin{figure}[h!]
\centering
\includegraphics[width=0.45\linewidth]{imgs/probability_of_event_example.jpg}
\caption{Two examples of sampling random windows and corresponding history. The black vertical lines in the bottom two axes are the timestamps where onsets occur. The history of the window is the blue horizontal line, while the positive and negative window is the green and red respectively horizontal line. A postive window means the label for the window is 1 because at least 1 event occurred in the window, while a negative window means the label for a window is 0 because no events happen in the window.}
\label{appfig:example_windowing}
\end{figure}
\clearpage
\section{Supplementary Equations}
\begin{align}
\hat{K}(t) = \frac{T}{J^2} \sum_{j=1}^{J} \sum_{i\neq j} w_{ij} \mathbbm{1}(|t_i - t_j| \leq t) \label{appeq:ripleyk}
\end{align}
where $\frac{T}{J}$ is number of onsets per unit time, $J$ is the number of onsets observed in an observation session, $w_{ij}$ is an edge correction taking values $w_{ij}=1$ if $|t_i - t_j| \leq \min(t_i,T-t_i)$ and $w_{ij}=2$, otherwise.
\begin{thebibliography}{10}
\urlstyle{rm}
\expandafter\ifx\csname url\endcsname\relax
\def\url#1{\texttt{#1}}\fi
\expandafter\ifx\csname urlprefix\endcsname\relax\def\urlprefix{URL }\fi
\expandafter\ifx\csname doiprefix\endcsname\relax\def\doiprefix{DOI: }\fi
\providecommand{\bibinfo}[2]{#2}
\providecommand{\eprint}[2][]{\url{#2}}
\bibitem{maenner2023prevalence}
\bibinfo{author}{Maenner, M.~J.}
\newblock \bibinfo{journal}{\bibinfo{title}{Prevalence and characteristics of autism spectrum disorder among children aged 8 years—autism and developmental disabilities monitoring network, 11 sites, united states, 2020}}.
\newblock {\emph{\JournalTitle{MMWR. Surveillance Summaries}}} \textbf{\bibinfo{volume}{72}} (\bibinfo{year}{2023}).
\bibitem{hattier2011occurrence}
\bibinfo{author}{Hattier, M.~A.}, \bibinfo{author}{Matson, J.~L.}, \bibinfo{author}{Belva, B.~C.} \& \bibinfo{author}{Horovitz, M.}
\newblock \bibinfo{journal}{\bibinfo{title}{The occurrence of challenging behaviours in children with autism spectrum disorders and atypical development}}.
\newblock {\emph{\JournalTitle{Developmental Neurorehabilitation}}} \textbf{\bibinfo{volume}{14}}, \bibinfo{pages}{221--229} (\bibinfo{year}{2011}).
\bibitem{kanne2011aggression}
\bibinfo{author}{Kanne, S.~M.} \& \bibinfo{author}{Mazurek, M.~O.}
\newblock \bibinfo{journal}{\bibinfo{title}{Aggression in children and adolescents with asd: Prevalence and risk factors}}.
\newblock {\emph{\JournalTitle{Journal of autism and developmental disorders}}} \textbf{\bibinfo{volume}{41}}, \bibinfo{pages}{926--937} (\bibinfo{year}{2011}).
\bibitem{matson2014assessing}
\bibinfo{author}{Matson, J.~L.} \& \bibinfo{author}{Cervantes, P.~E.}
\newblock \bibinfo{journal}{\bibinfo{title}{Assessing aggression in persons with autism spectrum disorders: An overview}}.
\newblock {\emph{\JournalTitle{Research in developmental disabilities}}} \textbf{\bibinfo{volume}{35}}, \bibinfo{pages}{3269--3275} (\bibinfo{year}{2014}).
\bibitem{arnold2003parent}
\bibinfo{author}{Arnold, L.~E.} \emph{et~al.}
\newblock \bibinfo{journal}{\bibinfo{title}{Parent-defined target symptoms respond to risperidone in rupp autism study: customer approach to clinical trials}}.
\newblock {\emph{\JournalTitle{Journal of the American Academy of Child \& Adolescent Psychiatry}}} \textbf{\bibinfo{volume}{42}}, \bibinfo{pages}{1443--1450} (\bibinfo{year}{2003}).
\bibitem{croen2006comparison}
\bibinfo{author}{Croen, L.~A.}, \bibinfo{author}{Najjar, D.~V.}, \bibinfo{author}{Ray, G.~T.}, \bibinfo{author}{Lotspeich, L.} \& \bibinfo{author}{Bernal, P.}
\newblock \bibinfo{journal}{\bibinfo{title}{A comparison of health care utilization and costs of children with and without autism spectrum disorders in a large group-model health plan}}.
\newblock {\emph{\JournalTitle{Pediatrics}}} \textbf{\bibinfo{volume}{118}}, \bibinfo{pages}{e1203--e1211} (\bibinfo{year}{2006}).
\bibitem{mazefsky2013emotion}
\bibinfo{author}{Mazefsky, C.~A.} \& \bibinfo{author}{White, S.~W.}
\newblock \bibinfo{journal}{\bibinfo{title}{Emotion regulation: Concepts \& practice in autism spectrum disorder}}.
\newblock {\emph{\JournalTitle{Child and adolescent psychiatric clinics of North America}}} \textbf{\bibinfo{volume}{23}}, \bibinfo{pages}{10--1016} (\bibinfo{year}{2013}).
\bibitem{tager2017conducting}
\bibinfo{author}{Tager-Flusberg, H.} \emph{et~al.}
\newblock \bibinfo{journal}{\bibinfo{title}{Conducting research with minimally verbal participants with autism spectrum disorder}}.
\newblock {\emph{\JournalTitle{Autism}}} \textbf{\bibinfo{volume}{21}}, \bibinfo{pages}{852--861} (\bibinfo{year}{2017}).
\bibitem{davis2008parenting}
\bibinfo{author}{Davis, N.~O.} \& \bibinfo{author}{Carter, A.~S.}
\newblock \bibinfo{journal}{\bibinfo{title}{Parenting stress in mothers and fathers of toddlers with autism spectrum disorders: Associations with child characteristics}}.
\newblock {\emph{\JournalTitle{Journal of autism and developmental disorders}}} \textbf{\bibinfo{volume}{38}}, \bibinfo{pages}{1278--1291} (\bibinfo{year}{2008}).
\bibitem{hodgetts2013home}
\bibinfo{author}{Hodgetts, S.}, \bibinfo{author}{Nicholas, D.} \& \bibinfo{author}{Zwaigenbaum, L.}
\newblock \bibinfo{journal}{\bibinfo{title}{Home sweet home? families’ experiences with aggression in children with autism spectrum disorders}}.
\newblock {\emph{\JournalTitle{Focus on autism and other developmental disabilities}}} \textbf{\bibinfo{volume}{28}}, \bibinfo{pages}{166--174} (\bibinfo{year}{2013}).
\bibitem{kiely1998violence}
\bibinfo{author}{Kiely, J.} \& \bibinfo{author}{Pankhurst, H.}
\newblock \bibinfo{journal}{\bibinfo{title}{Violence faced by staff in a learning disability service}}.
\newblock {\emph{\JournalTitle{Disability and Rehabilitation}}} \textbf{\bibinfo{volume}{20}}, \bibinfo{pages}{81--89} (\bibinfo{year}{1998}).
\bibitem{ogata1988statistical}
\bibinfo{author}{Ogata, Y.}
\newblock \bibinfo{journal}{\bibinfo{title}{Statistical models for earthquake occurrences and residual analysis for point processes}}.
\newblock {\emph{\JournalTitle{Journal of the American Statistical association}}} \textbf{\bibinfo{volume}{83}}, \bibinfo{pages}{9--27} (\bibinfo{year}{1988}).
\bibitem{filimonov2015apparent}
\bibinfo{author}{Filimonov, V.} \& \bibinfo{author}{Sornette, D.}
\newblock \bibinfo{journal}{\bibinfo{title}{Apparent criticality and calibration issues in the hawkes self-excited point process model: application to high-frequency financial data}}.
\newblock {\emph{\JournalTitle{Quantitative Finance}}} \textbf{\bibinfo{volume}{15}}, \bibinfo{pages}{1293--1314} (\bibinfo{year}{2015}).
\bibitem{gatrell1996spatial}
\bibinfo{author}{Gatrell, A.~C.}, \bibinfo{author}{Bailey, T.~C.}, \bibinfo{author}{Diggle, P.~J.} \& \bibinfo{author}{Rowlingson, B.~S.}
\newblock \bibinfo{journal}{\bibinfo{title}{Spatial point pattern analysis and its application in geographical epidemiology}}.
\newblock {\emph{\JournalTitle{Transactions of the Institute of British geographers}}} \bibinfo{pages}{256--274} (\bibinfo{year}{1996}).
\bibitem{yan2019recent}
\bibinfo{author}{Yan, J.}
\newblock \bibinfo{journal}{\bibinfo{title}{Recent advance in temporal point process: from machine learning perspective}}.
\newblock {\emph{\JournalTitle{SJTU Technical Report}}} (\bibinfo{year}{2019}).
\bibitem{shchur2021neural}
\bibinfo{author}{Shchur, O.}, \bibinfo{author}{T{\"u}rkmen, A.~C.}, \bibinfo{author}{Januschowski, T.} \& \bibinfo{author}{G{\"u}nnemann, S.}
\newblock \bibinfo{journal}{\bibinfo{title}{Neural temporal point processes: A review}}.
\newblock {\emph{\JournalTitle{arXiv preprint arXiv:2104.03528}}} (\bibinfo{year}{2021}).
\bibitem{fadhel2023detecting}
\bibinfo{author}{Fadhel, Z.~M.}, \bibinfo{author}{Hussein, Q.~M.} \& \bibinfo{author}{Askari, A. O. A. R.~A.}
\newblock \bibinfo{title}{Detecting aggressive behavior in children with autism spectrum disorder using machine learning}.
\newblock In \emph{\bibinfo{booktitle}{AIP Conference Proceedings}}, vol. \bibinfo{volume}{2845} (\bibinfo{organization}{AIP Publishing}, \bibinfo{year}{2023}).
\bibitem{khullar2021meltdown}
\bibinfo{author}{Khullar, V.}, \bibinfo{author}{Singh, H.~P.} \& \bibinfo{author}{Bala, M.}
\newblock \bibinfo{journal}{\bibinfo{title}{Meltdown/tantrum detection system for individuals with autism spectrum disorder}}.
\newblock {\emph{\JournalTitle{Applied Artificial Intelligence}}} \textbf{\bibinfo{volume}{35}}, \bibinfo{pages}{1708--1732} (\bibinfo{year}{2021}).
\bibitem{imbiriba2023wearable}
\bibinfo{author}{Imbiriba, T.}, \bibinfo{author}{Demirkaya, A.}, \bibinfo{author}{Singh, A.}, \bibinfo{author}{Erdogmus, D.} \& \bibinfo{author}{Goodwin, M.~S.}
\newblock \bibinfo{journal}{\bibinfo{title}{Wearable biosensing to predict imminent aggressive behavior in psychiatric inpatient youths with autism}}.
\newblock {\emph{\JournalTitle{JAMA network open}}} \textbf{\bibinfo{volume}{6}}, \bibinfo{pages}{e2348898--e2348898} (\bibinfo{year}{2023}).
\bibitem{10.1145/3240925.3240980}
\bibinfo{author}{Goodwin, M.~S.} \emph{et~al.}
\newblock \bibinfo{title}{Predicting imminent aggression onset in minimally-verbal youth with autism spectrum disorder using preceding physiological signals}.
\newblock In \emph{\bibinfo{booktitle}{Proceedings of the 12th EAI International Conference on Pervasive Computing Technologies for Healthcare}}, PervasiveHealth '18, \bibinfo{pages}{201–207}, \doiprefix\url{10.1145/3240925.3240980} (\bibinfo{publisher}{Association for Computing Machinery}, \bibinfo{address}{New York, NY, USA}, \bibinfo{year}{2018}).
\bibitem{imbiriba2020biosensor}
\bibinfo{author}{Imbiriba, T.} \emph{et~al.}
\newblock \bibinfo{title}{Biosensor prediction of aggression in youth with autism using kernel-based methods}.
\newblock In \emph{\bibinfo{booktitle}{Proceedings of the 13th ACM international conference on PErvasive technologies related to assistive environments}}, \bibinfo{pages}{1--6} (\bibinfo{year}{2020}).
\bibitem{xiao2017wasserstein}
\bibinfo{author}{Xiao, S.} \emph{et~al.}
\newblock \bibinfo{journal}{\bibinfo{title}{Wasserstein learning of deep generative point process models}}.
\newblock {\emph{\JournalTitle{Advances in neural information processing systems}}} \textbf{\bibinfo{volume}{30}} (\bibinfo{year}{2017}).
\bibitem{chaspari2014non}
\bibinfo{author}{Chaspari, T.} \emph{et~al.}
\newblock \bibinfo{title}{A non-homogeneous poisson process model of skin conductance responses integrated with observed regulatory behaviors for autism intervention}.
\newblock In \emph{\bibinfo{booktitle}{2014 IEEE international conference on acoustics, speech and signal processing (ICASSP)}}, \bibinfo{pages}{1611--1615} (\bibinfo{organization}{IEEE}, \bibinfo{year}{2014}).
\bibitem{bae2023meta}
\bibinfo{author}{Bae, W.}, \bibinfo{author}{Ahmed, M.~O.}, \bibinfo{author}{Tung, F.} \& \bibinfo{author}{Oliveira, G.~L.}
\newblock \bibinfo{journal}{\bibinfo{title}{Meta temporal point processes}}.
\newblock {\emph{\JournalTitle{arXiv preprint arXiv:2301.12023}}} (\bibinfo{year}{2023}).
\bibitem{shachter1992decision}
\bibinfo{author}{Shachter, R.~D.} \& \bibinfo{author}{Peot, M.~A.}
\newblock \bibinfo{title}{Decision making using probabilistic inference methods}.
\newblock In \emph{\bibinfo{booktitle}{Uncertainty in Artificial Intelligence}}, \bibinfo{pages}{276--283} (\bibinfo{organization}{Elsevier}, \bibinfo{year}{1992}).
\bibitem{lindsay2000antecedent}
\bibinfo{author}{Lindsay, J.~J.} \& \bibinfo{author}{Anderson, C.~A.}
\newblock \bibinfo{journal}{\bibinfo{title}{From antecedent conditions to violent actions: A general affective aggression model}}.
\newblock {\emph{\JournalTitle{Personality and Social Psychology Bulletin}}} \textbf{\bibinfo{volume}{26}}, \bibinfo{pages}{533--547} (\bibinfo{year}{2000}).
\bibitem{scarpa2015physiological}
\bibinfo{author}{Scarpa, A.}
\newblock \bibinfo{journal}{\bibinfo{title}{Physiological arousal and its dysregulation in child maladjustment}}.
\newblock {\emph{\JournalTitle{Current Directions in Psychological Science}}} \textbf{\bibinfo{volume}{24}}, \bibinfo{pages}{345--351} (\bibinfo{year}{2015}).
\bibitem{cohen2011assessing}
\bibinfo{author}{Cohen, I.~L.}, \bibinfo{author}{Yoo, J.~H.}, \bibinfo{author}{Goodwin, M.~S.} \& \bibinfo{author}{Moskowitz, L.}
\newblock \bibinfo{journal}{\bibinfo{title}{Assessing challenging behaviors in autism spectrum disorders: Prevalence, rating scales, and autonomic indicators}}.
\newblock {\emph{\JournalTitle{International handbook of autism and pervasive developmental disorders}}} \bibinfo{pages}{247--270} (\bibinfo{year}{2011}).
\bibitem{rasmussen2018lecture}
\bibinfo{author}{Rasmussen, J.~G.}
\newblock \bibinfo{journal}{\bibinfo{title}{Lecture notes: Temporal point processes and the conditional intensity function}}.
\newblock {\emph{\JournalTitle{arXiv preprint arXiv:1806.00221}}} (\bibinfo{year}{2018}).
\bibitem{nohara2022explanation}
\bibinfo{author}{Nohara, Y.}, \bibinfo{author}{Matsumoto, K.}, \bibinfo{author}{Soejima, H.} \& \bibinfo{author}{Nakashima, N.}
\newblock \bibinfo{journal}{\bibinfo{title}{Explanation of machine learning models using shapley additive explanation and application for real data in hospital}}.
\newblock {\emph{\JournalTitle{Computer Methods and Programs in Biomedicine}}} \textbf{\bibinfo{volume}{214}}, \bibinfo{pages}{106584} (\bibinfo{year}{2022}).
\bibitem{zhang2016variable}
\bibinfo{author}{Zhang, Z.}
\newblock \bibinfo{journal}{\bibinfo{title}{Variable selection with stepwise and best subset approaches}}.
\newblock {\emph{\JournalTitle{Annals of translational medicine}}} \textbf{\bibinfo{volume}{4}}, \bibinfo{pages}{136} (\bibinfo{year}{2016}).
\bibitem{gallager1997discrete}
\bibinfo{author}{Gallager, R.~G.}
\newblock \bibinfo{journal}{\bibinfo{title}{Discrete stochastic processes}}.
\newblock {\emph{\JournalTitle{Journal of the Operational Research Society}}} \textbf{\bibinfo{volume}{48}}, \bibinfo{pages}{103--103} (\bibinfo{year}{1997}).
\bibitem{laub2024hawkes}
\bibinfo{author}{Laub, P.~J.}, \bibinfo{author}{Lee, Y.}, \bibinfo{author}{Pollett, P.~K.} \& \bibinfo{author}{Taimre, T.}
\newblock \bibinfo{journal}{\bibinfo{title}{Hawkes models and their applications}}.
\newblock {\emph{\JournalTitle{Annual Review of Statistics and Its Application}}} \textbf{\bibinfo{volume}{12}} (\bibinfo{year}{2024}).
\bibitem{hawkes1971point}
\bibinfo{author}{Hawkes, A.~G.}
\newblock \bibinfo{journal}{\bibinfo{title}{Point spectra of some mutually exciting point processes}}.
\newblock {\emph{\JournalTitle{Journal of the Royal Statistical Society Series B: Statistical Methodology}}} \textbf{\bibinfo{volume}{33}}, \bibinfo{pages}{438--443} (\bibinfo{year}{1971}).
\bibitem{lee2024multi}
\bibinfo{author}{Lee, K.}
\newblock \bibinfo{journal}{\bibinfo{title}{Multi-kernel property in high-frequency price dynamics under hawkes model}}.
\newblock {\emph{\JournalTitle{Studies in Nonlinear Dynamics \& Econometrics}}} \textbf{\bibinfo{volume}{28}}, \bibinfo{pages}{605--624} (\bibinfo{year}{2024}).
\bibitem{hoffman2014no}
\bibinfo{author}{Hoffman, M.~D.}, \bibinfo{author}{Gelman, A.} \emph{et~al.}
\newblock \bibinfo{journal}{\bibinfo{title}{The no-u-turn sampler: adaptively setting path lengths in hamiltonian monte carlo.}}
\newblock {\emph{\JournalTitle{J. Mach. Learn. Res.}}} \textbf{\bibinfo{volume}{15}}, \bibinfo{pages}{1593--1623} (\bibinfo{year}{2014}).
\bibitem{betancourt2017conceptual}
\bibinfo{author}{Betancourt, M.}
\newblock \bibinfo{journal}{\bibinfo{title}{A conceptual introduction to hamiltonian monte carlo}}.
\newblock {\emph{\JournalTitle{arXiv preprint arXiv:1701.02434}}} (\bibinfo{year}{2017}).
\bibitem{barber2012bayesian}
\bibinfo{author}{Barber, D.}
\newblock \emph{\bibinfo{title}{Bayesian reasoning and machine learning}} (\bibinfo{publisher}{Cambridge University Press}, \bibinfo{year}{2012}).
\bibitem{phan2019composable}
\bibinfo{author}{Phan, D.}, \bibinfo{author}{Pradhan, N.} \& \bibinfo{author}{Jankowiak, M.}
\newblock \bibinfo{journal}{\bibinfo{title}{Composable effects for flexible and accelerated probabilistic programming in numpyro}}.
\newblock {\emph{\JournalTitle{arXiv preprint arXiv:1912.11554}}} (\bibinfo{year}{2019}).
\bibitem{carpenter2017stan}
\bibinfo{author}{Carpenter, B.} \emph{et~al.}
\newblock \bibinfo{journal}{\bibinfo{title}{Stan: A probabilistic programming language}}.
\newblock {\emph{\JournalTitle{Journal of statistical software}}} \textbf{\bibinfo{volume}{76}}, \bibinfo{pages}{1--32} (\bibinfo{year}{2017}).
\bibitem{wu2021diagnostics}
\bibinfo{author}{Wu, J.}, \bibinfo{author}{Smith, A.~L.} \& \bibinfo{author}{Zheng, T.}
\newblock \bibinfo{journal}{\bibinfo{title}{Diagnostics and visualization of point process models for event times on a social network}}.
\newblock {\emph{\JournalTitle{Applied modeling techniques and data analysis 1: computational data analysis methods and tools}}} \textbf{\bibinfo{volume}{7}}, \bibinfo{pages}{129--145} (\bibinfo{year}{2021}).
\bibitem{ludke2023add}
\bibinfo{author}{L{\"u}dke, D.}, \bibinfo{author}{Bilo{\v{s}}, M.}, \bibinfo{author}{Shchur, O.}, \bibinfo{author}{Lienen, M.} \& \bibinfo{author}{G{\"u}nnemann, S.}
\newblock \bibinfo{journal}{\bibinfo{title}{Add and thin: Diffusion for temporal point processes}}.
\newblock {\emph{\JournalTitle{Advances in Neural Information Processing Systems}}} \textbf{\bibinfo{volume}{36}}, \bibinfo{pages}{56784--56801} (\bibinfo{year}{2023}).
\bibitem{vehtari2017practical}
\bibinfo{author}{Vehtari, A.}, \bibinfo{author}{Gelman, A.} \& \bibinfo{author}{Gabry, J.}
\newblock \bibinfo{journal}{\bibinfo{title}{Practical bayesian model evaluation using leave-one-out cross-validation and waic}}.
\newblock {\emph{\JournalTitle{Statistics and computing}}} \textbf{\bibinfo{volume}{27}}, \bibinfo{pages}{1413--1432} (\bibinfo{year}{2017}).
\bibitem{brown1988simple}
\bibinfo{author}{Brown, T.~C.} \& \bibinfo{author}{Nair, M.~G.}
\newblock \bibinfo{journal}{\bibinfo{title}{A simple proof of the multivariate random time change theorem for point processes}}.
\newblock {\emph{\JournalTitle{Journal of Applied Probability}}} \textbf{\bibinfo{volume}{25}}, \bibinfo{pages}{210--214} (\bibinfo{year}{1988}).
\bibitem{andersen2012statistical}
\bibinfo{author}{Andersen, P.~K.}, \bibinfo{author}{Borgan, O.}, \bibinfo{author}{Gill, R.~D.} \& \bibinfo{author}{Keiding, N.}
\newblock \emph{\bibinfo{title}{Statistical models based on counting processes}} (\bibinfo{publisher}{Springer Science \& Business Media}, \bibinfo{year}{2012}).
\bibitem{kolourioptimal}
\bibinfo{author}{Kolouri, S.} \emph{et~al.}
\newblock \bibinfo{title}{Optimal transport and wasserstein distance}.
\bibitem{vehtari2024pareto}
\bibinfo{author}{Vehtari, A.}, \bibinfo{author}{Simpson, D.}, \bibinfo{author}{Gelman, A.}, \bibinfo{author}{Yao, Y.} \& \bibinfo{author}{Gabry, J.}
\newblock \bibinfo{journal}{\bibinfo{title}{Pareto smoothed importance sampling}}.
\newblock {\emph{\JournalTitle{Journal of Machine Learning Research}}} \textbf{\bibinfo{volume}{25}}, \bibinfo{pages}{1--58} (\bibinfo{year}{2024}).
\bibitem{hardiman2013critical}
\bibinfo{author}{Hardiman, S.~J.}, \bibinfo{author}{Bercot, N.} \& \bibinfo{author}{Bouchaud, J.-P.}
\newblock \bibinfo{journal}{\bibinfo{title}{Critical reflexivity in financial markets: a hawkes process analysis}}.
\newblock {\emph{\JournalTitle{The European Physical Journal B}}} \textbf{\bibinfo{volume}{86}}, \bibinfo{pages}{1--9} (\bibinfo{year}{2013}).
\bibitem{narkhede2018understanding}
\bibinfo{author}{Narkhede, S.}
\newblock \bibinfo{journal}{\bibinfo{title}{Understanding auc-roc curve}}.
\newblock {\emph{\JournalTitle{Towards data science}}} \textbf{\bibinfo{volume}{26}}, \bibinfo{pages}{220--227} (\bibinfo{year}{2018}).
\bibitem{karlis2023proposer}
\bibinfo{author}{Karlis, D.}
\newblock \bibinfo{journal}{\bibinfo{title}{Proposer of the vote of thanks to narayanan, kosmidis and dellaportas and contribution to the discussion of ‘flexible marked spatio-temporal point processes with applications to event sequences from association football’}}.
\newblock {\emph{\JournalTitle{Journal of the Royal Statistical Society Series C: Applied Statistics}}} \textbf{\bibinfo{volume}{72}}, \bibinfo{pages}{1127--1128} (\bibinfo{year}{2023}).
\bibitem{liniger2009multivariate}
\bibinfo{author}{Liniger, T.}
\newblock \emph{\bibinfo{title}{Multivariate hawkes processes}}.
\newblock Ph.D. thesis, \bibinfo{school}{ETH Zurich} (\bibinfo{year}{2009}).
\bibitem{drivendata2025}
\bibinfo{author}{{DrivenData}}.
\newblock \bibinfo{title}{Drivendata: Data science \& ai competitions to build a better world}.
\newblock \bibinfo{howpublished}{\url{https://www.drivendata.org/}} (\bibinfo{year}{2025}).
\newblock \bibinfo{note}{Accessed: 2025-07-11}.
\bibitem{jax2018github}
\bibinfo{author}{Bradbury, J.} \emph{et~al.}
\newblock \bibinfo{title}{{JAX}: composable transformations of {P}ython+{N}um{P}y programs} (\bibinfo{year}{2018}).
\bibitem{arviz_2019}
\bibinfo{author}{Kumar, R.}, \bibinfo{author}{Carroll, C.}, \bibinfo{author}{Hartikainen, A.} \& \bibinfo{author}{Martin, O.}
\newblock \bibinfo{journal}{\bibinfo{title}{Arviz a unified library for exploratory analysis of bayesian models in python}}.
\newblock {\emph{\JournalTitle{Journal of Open Source Software}}} \textbf{\bibinfo{volume}{4}}, \bibinfo{pages}{1143}, \doiprefix\url{10.21105/joss.01143} (\bibinfo{year}{2019}).
\end{thebibliography}