Manuscript Offprint
arXiv:2609.39911Patient-Centered Treatment Planning for Chronic Multimorbidity: A Hierarchical Reinforcement Learning Framework for Preference Modeling
Abstract
Patient preference, defined as a patient’s demonstrated willingness and capacity to adhere to clinical recommendations, is a primary determinant of therapeutic effect yet remains structurally absent from existing computational treatment planning models. We address this gap by presenting patient-centered factored-action hierarchical option-critic (FAHOC), a hierarchical reinforcement learning (HRL) framework that jointly learns high-level options corresponding to therapeutic strategies and factored intra-option policies that decompose the joint action space into disease- and intervention-specific subcomponents, while imposing a cooperation-aware action masking mechanism. This enables structured exploration, improved credit assignment across hierarchy levels, and more interpretable decision pathways, while enforcing patients’ preferences. Formal guarantees establish that cooperative patients achieve higher optimal expected health outcomes than non-cooperative patients, and that the factored Q-function approximation error is provably bounded. The framework is evaluated using longitudinal data collected from approximately 50,000 comorbid hypertension and type 2 diabetes mellitus patients from five hospitals in the Southeast U.S. FAHOC achieves a quality-adjusted life year expectancy equivalent improvement of 0.669 (vs -0.133 observed clinician practice), correctly identifies cooperative patients in 95.9% of cases and never violates a patient’s preference in held-out test, demonstrating that HRL with explicit preference constraints can support preference-consistent, clinically safe decision-making in multimorbidity management.
Keywords: Patient Preference · Lifestyle Intervention · Chronic Multimorbidity · Hierarchical Reinforcement Learning · Factored Action · Option-Critic
1 Introduction
A recommendation that a patient will not follow is not a treatment plan; it is a missed opportunity. Yet across chronic disease management, patient preference, defined as a patient's demonstrated willingness and capacity to adhere to clinical recommendations, remains structurally absent from the computational models designed to support treatment planning. A systematic review and meta-analysis of 178 studies found that the pooled prevalence of medication non-adherence among people living with multimorbidity was 42.6%, with rates ranging from 7.0% to 83.5% across conditions and measurement methods [1]. A recommendation that a patient does not execute consumes clinical resources, may displace more feasible interventions, risks poor long-term biomarker control, and is associated with increased mortality [2]. Formalizing patient preference as a structural constraint within a sequential decision-making framework for treatment planning is the central problem addressed in this study.
*Nafiseh Payani and Soham Das are with the Department of Industrial and Systems Engineering at the University of Tennessee, Knoxville, TN, USA (Email: npayani@vols.utk.edu; sdas43@tennessee.edu). G. Anthony Wilson is with the Department of Family Medicine, University of Tennessee Health Science Center College of Medicine, Knoxville, at the University of Tennessee Medical Center, Knoxville, TN, USA (Email: gwilson@utmck.edu). Anahita Khojandi is with the Department of Industrial Engineering at the University of Arkansas, Fayetteville, AR, USA (Email: akhojandi@uark.edu).
Chronic multimorbidity affects 37% of adults globally, exceeding 50% among adults aged 60 and older [3, 4]. Each additional condition expands treatment plans, introduces drug-drug and drug-disease interaction risks, and generates tension between various single guidelines [5]. Hypertension (HTN) and type 2 diabetes mellitus (T2DM) together form one of the most prevalent multimorbidities, with 12% and 48% of U.S. adults living with diabetes and HTN, respectively. Approximately 82% of T2DM patients are hypertensive, of whom 66% are overweight or obese [6]. The coexistence of these conditions doubles all-cause mortality risk. The dyad prevalence in the U.S. adult population has doubled from 6% to 12% between 1999 and 2018 [7]. Managing multimorbidities requires simultaneously addressing multiple coexisting conditions while accommodating substantial heterogeneity in patient characteristics, including age, kidney function, obesity, medication tolerance, and willingness to engage with lifestyle modification strategies.
Standard guidelines are generally written for single conditions, with independent thresholds that ignore therapeutic trade-offs when multiple targets must be managed simultaneously [8, 9]. Clinicians compensate through informal, hierarchical reasoning over high-dimensional patient states, and adjusting one or more of multimorbid patients' medications based on patient response to prior regimens, a process that resists standardization and contributes to inconsistent application of guidelines [10–14]. Non-adherence rates of 42.6% in multimorbid populations [1] further demonstrate that population-level prescriptions overlook patient-specific feasibility; neither guidelines nor clinical reasoning adequately incorporate patient preferences to address their needs. Artificial intelligence (AI) methods, and reinforcement learning (RL) in particular, have been proposed as a principled basis for clinical decision support in chronic disease management, offering the capacity to learn individualized, long-horizon treatment policies from observational data. However, existing approaches reproduce, and in some cases amplify, the same structural limitations that affect guideline-based care. First, models trained on electronic health records (EHR) data optimize biomarker trajectories under the implicit assumption that every recommended treatment will be executed, producing policies that recommend pharmacological interventions to patients with documented histories of non-engagement. Second, single-condition models address comorbidities (e.g., T2DM and HTN) in isolation [15], ignoring the coupling between treatments that is the defining clinical challenge of the comorbid case. Third, models addressing comorbidity typically employ monolithic policies over a joint action space [16] and fail to reflect the hierarchical structure of clinical reasoning, namely the distinction between selecting a therapeutic strategy and executing pharmacological adjustments within it [10, 11]. Fourth, most approaches rely on standard algorithms susceptible to overestimation bias under the distributional shift inherent in offline learning [17]. Three main contributions in this study address these limitations. First, instead of incorporating patient preference as a soft reward signal, we enforce it as a structural feasibility constraint. As patient preferences are not consistently and completely recorded in EHR and clinical notes, we infer latent patient willingness and capacity to engage in lifestyle modifications using longitudinal BMI trajectories, then apply this inference with cooperation-aware action masking during pre-processing and training. As a result, the policy cannot recommend interventions the patient has demonstrated unwilling or unable to follow. Cooperation value dominance theorem 2 shows attainable value can be higher for cooperative patients. Second, we introduce the Factored-Action Hierarchical Option-Critic (FAHOC) architecture. Its organization reflects how clinicians reason and decide how to modify interventions. High-level options represent documented therapeutic strategies, single- or multi-target management in this study. Factored intra-option policies then split the joint action space into disease- and intervention-specific subcomponents which provides the slow-acting interventions such as lifestyle modifications with independent learning signal and prevent it being faded out by fast-acting adjustments such as pharmaceutical therapies. Error bounds in Section 4 formally provide measurable limits on Q-function approximation that the design choice adds to the estimates. Third, in offline setting, we train and evaluate FAHOC through triangulation using off-policy evaluation, reward independent guideline-concordance surface, and stratification. We apply these methods to a multi-hospital EHR cohort with approximately 50,000 multi-morbid patients.
Figure 1 provides a high-level overview of our proposed model. First, based on the objective of the model and possible interventions, we develop patient preference and clinician recommended action inference algorithms to complete the EHR where required records may not be captured. Next, we formulate the semi-Markov decision process (SMDP) (specifying state, action, reward, transitions, and options), which is then used to guide the selection of dataset and cohort. We adopt an SMDP rather than a standard MDP because clinical management operates on two time scales: a therapeutic strategy (e.g., a single- vs. multi-target focus),

Figure 1: The proposed patient-preference-centered factored hierarchical offline RL framework
once adopted, typically remains in effect across several successive encounters, whereas concrete medication adjustments are made visit by visit within it. An SMDP captures exactly this structure by allowing temporally extended actions (options) whose durations are random and state-dependent; a standard MDP would instead force the strategy choice to be re-made from scratch at every visit, discarding the temporal commitment that characterizes documented clinical behavior. Subsequently, data extraction with temporal regulation is applied to aggregate encounters of varying purposes into standardized time intervals prior to entry into the leakage-free preprocessing pipeline.
Training stage, iterates over hyperparameter, monitor accuracy, high-level loss, low-level loss, termination loss, and termination probability for pathological dynamics (noisy, non-decreasing, exploding, or early-plateaued) and validate these metrics on the validation set to guide configuration acceptance. After accepting a model, we evaluate it on the held-out patient set with offline policy evaluation (OPE), agreement with clinician action, sample patient trajectories, and the -concordance surface. The evaluation report then is reviewed by a field expert or clinician. Nodes marked with field-expert icon can prompt expert review and input, with reference to the field literature and guidelines, along with consideration of specific limitations of accessible EHR.
Despite broad recognition that patient preferences and capacity are central to real-world clinical decision-making, existing RL-based systems almost universally assume perfect alignment with patient preference and adherence. Macri et al. [20] established that patient autonomy, treatment burden, and matching personal health goals must be considered alongside clinical efficacy when AI systems generate recommendations, while As'ad et al. [21] concluded that integrating patient values into AI-driven tools is essential for ethical implementation. Most recently, Templin et al. [22] introduced an RL framework incorporating divergent stakeholder preferences by learning a mixing weight between community-facing and provider-facing prediction signals, demonstrating improved acceptability and real-world alignment of recommendations. Integrating patient preference thus remains an open and largely unaddressed challenge in clinical RL.
Multimorbidity Treatment Planning. Machine learning approaches to multimorbidity have largely focused on disease clustering, risk stratification, and prediction of new condition onset, rather than sequential treatment planning [23, 24]. Supervised learning models applied to EHR data have been used to identify multimorbidity patterns [25], and develop multimorbidity frailty indices [26], yet these models treat the problem as a static prediction task rather than a dynamic decision-making problem [27]. Unsupervised clustering methods have identified clinically meaningful multimorbidity subgroups [28, 29] but stop short of generating treatment recommendations [30].
The extension to sequential treatment optimization under multimorbidity remains sparse. Zheng et al. [16] developed a personalized RL agent for diabetes management in the presence of comorbid conditions. Mason et al. [31] formulated an MDP to maximize quality-adjusted life years (QALYs) for cardiovascular risk reduction in T2DM patients. Their methods treat every possible combination as a distinct action over a joint action space. Although powerful, such a flat policy does not scale to the combinatorial complexity of multiple concurrent treatment streams. Basu et al. [32] applied RL to multidisciplinary care coordination for patients with complex comorbidities and demonstrated reductions in acute care events relative to standard practice. However, the approach neither formalized patient preferences nor leveraged a hierarchical decision framework to manage the complexity of treatment planning. A multi-agent RL framework for chronic disease risk prediction and treatment personalization was proposed [33], structuring individual agents per condition, yet this approach does not model the pharmacological coupling between conditions or the behavioral feasibility of recommended interventions. In these studies, a shared limitation is the absence of any mechanism that formalizes patient preference as a constraint on the treatment planning problem.
Among all multimorbid dyads, HTN-T2DM presents a particularly tractable and consequential modeling target: its biomarkers are objectively measurable and routinely recorded in EHRs, the tension between glycemic and blood pressure targets under a shared pharmacological budget is well-documented clinically [8, 9], and the dyad's prevalence and mortality burden establish clear clinical stakes [7, 34]. No existing computational framework, to our knowledge, addresses this dyad under a hierarchical policy structure with patient preferences formalized as a structural constraint.
Offline RL and Hierarchical Reinforcement Learning. Since direct experimentation on patients is ethically infeasible, learning must occur on retrospective data [35]. This offline RL setting introduces a challenge: standard Q-learning may assign inflated Q-values to out-of-distribution actions, not represented in historical data, as the agent cannot discover that such actions lead to poor outcomes [17, 36], a problem especially acute in clinical datasets where rare treatment combinations receive high estimates. Conservative Q-Learning (CQL) addresses this by adding a regularization term that minimizes Q-values across all actions while maximizing them under the observed data distribution [17]. The double deep Q-network (DDQN) architecture further mitigates maximization bias by decoupling action selection from evaluation via separate online and target networks [37], a correction particularly important in sparse-reward clinical environments.
A limitation of RL agents in clinical settings is the conflation of all decision-making into a single monolithic policy over a large combinatorial action space [38, 39]. Experienced clinicians naturally reason hierarchically by selecting a therapeutic strategy at a high level (e.g., prioritizing glycemic control when A1C is elevated) and executing specific pharmacological adjustments within that strategy at a lower level [10, 11]. Hierarchical reinforcement learning (HRL) formalizes this structure by decomposing the policy into a high-level controller that selects temporally extended sub-policies and a low-level controller for primitive actions [40]. Sutton et al. [38] extended the standard RL action space via temporal abstraction, enabling the agent to commit to a strategy for multiple time steps rather than re-evaluating every action independently. Barto and Mahadevan [39] demonstrated that hierarchical decomposition improves both sample efficiency and exploration in large state-action spaces, a property especially valuable in EHR datasets where certain treatment combinations are sparsely represented.
The option-critic architecture addressed a key limitation of earlier HRL: reliance on manually designed sub-goal structures [41]. By simultaneously learning intra-option policies, termination functions, and the high-level policy via policy gradient methods, the option-critic allows clinically meaningful options to be learned directly from data. In our study, the two learned options correspond to a Single-Target mode concentrating on the most out-of-control dimension and a Multi-Target mode jointly optimizing glycemic and blood pressure control, consistent with documented clinical behavior in comorbid patients [42].
Empirical validation of hierarchical policy in healthcare is provided by Zhong et al. [43], whose two-level HRL agent for automated clinical dialogue outperformed DQN baselines on both diagnostic accuracy and symptom query efficiency. Tan et al. [44] hierarchical multi-agent RL architecture with organ-specific agents and inter-agent communication, showing that decomposed organ-level policies can coordinate to optimize global patient outcomes. However, existing HRL approaches treat the action space within each option as monolithic, foregoing the additional sample efficiency and interpretability gains available when the joint action space can be decomposed into clinically distinct sub-dimensions, a gap that factored action representations can fill.
Tang et al. [45] addressed the combinatorial action space challenge directly by proposing linear Q-function decomposition for factored action spaces in offline healthcare RL. Rather than treating every treatment combination as a distinct action, factored decomposition assigns independent Q-heads to each treatment sub-dimension and computes the joint value as a weighted sum, improving sample efficiency in sparsely explored regions without compromising policy optimality, an advantage directly applicable to the three-dimensional action space used in this study.
3 Model formulation
We develop a holistic treatment-planning model for patients with HTN alone, T2DM alone, or the co-occurrence of both conditions. Capturing this structure requires a framework that can represent temporally extended, treatment-regimen-specific strategies operating across multiple encounters, rather than modeling clinical management as a single-layer (i.e., traditional flat) sequence of visit-level decisions. We therefore formulate the sequential treatment planning problem as a semi-Markov decision process (SMDP), defined by the tuple , where is the state space, is the factored action space, is a finite set of options (temporally extended actions), is the transition kernel, where denotes the set of probability distributions over , is the reward function, and is the discount factor. The sub-tuple alone specifies only the primitive, visit-level decision process and is formally identical to a standard MDP; it is the option set , together with the option-induced multi-visit reward and transition models in 1–2 below, that gives the process its semi-Markov structure.
State Representation (). Effective treatment decisions depend on an array of biomarkers. A comprehensive approach from a clinician should ideally simultaneously consider the patient's metabolic trajectory, kidney function, body composition, prior medication burden, and preferences and adherence likelihood. To reflect this, based on expert feedback, we selected an 18-tuple feature vector to represent the patient state :
. The state features are summarized and described in Table 1.
Table 1: State features in encounter
| Type | Features | Description |
|---|---|---|
| Continuous | ; ; ; ; | Systolic blood pressure (mmHg); glycated hemoglobin (%); body mass index (kg/m2); kidney function (mL/min/1.73 m2); age in years (adjusted based on day of the visit) |
| Ordinal | ; ; | BMI category (0: Normal; 1: Overweight; 2: Obese); T2DM medication intensity at t-1; HTN medication intensity at t-1 |
| Binary | c; no-visit flag at visit t | BMI cooperation type (c = 0 : non-cooperative; c = 1: cooperative), gap-visit indicator flags missed encounters |
| OHE | G., R., E. | Gender; Race; Ethnicity with 2, 2, and 3 binary indicators respectively, time independent features |
The medication intensity features and encode the number of active drug classes at the previous visit (0=none, 1=single-class, 2=multi-class) using medications presented in Appendix B, capturing the clinician's prior prescribing context that the patient is taking at the time of encounter t rather than the current regimen adjustment, consistent with the doctor-at-visit-t decision semantics.
A patient is labeled cooperative (c = 1) if their BMI trajectory exhibits a negative slope estimated via least-squares linear regression ( encounters), a net decrease between the first and last recorded value (two encounters), or a mean BMI already within the normal range (< 25) with no increase exceeding 1 kg/m ; otherwise c = 0. This label is computed after the train-only imputation step to prevent data leakage. Appendix D provides pseudocode of patient preference (cooperation in BMI reduction). The no-visit flag indicates that the patient completely missed that visit at time t. Factored actions (A). In a standard MDP, the agent selects a single action from a monolithic action set at each decision step. Here, the clinician simultaneously makes three semi-independent sub-decisions at each visit: (i) a T2DM medication intensity adjustment , (ii) an HTN medication intensity adjustment , and (iii) a BMI intervention decision . Since BMI intervention decisions are not explicitly recorded in most EHRs, we develop an inference procedure that recovers the per-transition BMI action from longitudinal BMI trajectories (Algorithms 2, and 3). In the action inference, is assigned only to cooperative patients (c = 1) who present as overweight or obese at visit t, ensuring consistency between the inferred action and the cooperation label across all training transitions.
A factored action is the tuple , yielding joint actions. Factored actions exploit partially separable structure of the three intervention domains: each component admits a lower-dimensional Q-function, reducing the function-approximation burden and permitting per-component credit assignment. Options and clinical strategies ( ). An option is a temporally extended action defined by a triple : an initiation set , an intra-option policy that selects primitive factored actions while the option is active, and a termination function that stochastically decides when the option ends [38, 41]. In our empirical setting is not represented explicitly but is obtained greedily from the factored intra-option value function, , where is the clinically admissible action set at . We define options reflecting two clinically meaningful treatment regimes:
• (Single-Target): medications for at most one condition are actively adjusted at any visit;
• (Multi-Target): both T2DM and HTN are simultaneously under treatment management.
The high-level policy selects which option to pursue across multiple encounters; the low-level (intra-option) policy then selects factored actions visit-by-visit within the active option. Options thus encode what treatment strategy is in effect, whereas factored actions encode what specific medication adjustment is made at a given visit. Each option commits the agent to a sub-policy for multiple time steps, extending the underlying MDP to an SMDP [38]. Assuming option is initiated in state s at encounter t and terminates after duration , where k is jointly determined by the termination function and the primitive kernel P along the realized trajectory. Following Sutton et al. [38], the option-level reward and (discounted) transition models are
Therefore the high-level process with is a discrete-time SMDP whose decision epochs are separated by a random number of encounters. Note that is a -discounted kernel, in contrast to the one-step kernel of the primitive process. The model degrades to standard MDP when with , in which every option terminates after one visit. The semi-Markov character of our model is driven from the random, state-dependent durations , which are learned through (subject to the minimum two-transition commitment) rather than fixed exogenously. The high-level critic of Section 5 is trained on the one-step, intra-option form of the Bellman equation associated with (1)–(2), , whose sample-based TD targets are given in Appendix C.
Options are assigned per transition from the observed clinical state (not from demonstrated actions) to avoid data leakage:
and otherwise. An assigned option persists for at least two consecutive transitions before re-evaluation, mirroring clinical inertia in regime switching.
Equation (3) is a deterministic, state-based partition and therefore defines the initiation sets of the two options: , . Because the partition is exhaustive and disjoint, exactly one option is initialable in every state. Initiation sets are enforced during option assignment in preprocessing.
Transition Kernel (P). The transition kernel (where denotes the set of probability distributions over ) encodes the stochastic dynamics of a patient's state from one visit to the next as a function of the factored action taken. Concretely, , with the next state, captures how biomarkers such as A1C, SBP, and BMI, together with medication intensity and patient characteristics, evolve following a treatment decision at state . Because direct interaction with the environment is infeasible in clinical settings, is never queried analytically; instead, it is implicitly approximated through observed patient trajectories in the EHR dataset, making the problem one of offline (batch) RL. The transition kernel is defined over primitive factored actions rather than options because it describes single-step, visit-level dynamics; the option framework operates at a coarser temporal scale, composing sequences of such transitions into clinically coherent treatment regimes.
Reward Function (r). Managing chronic multimorbidity requires balancing immediate clinical risks with long-term health outcomes. To reflect this trade-off, our reward function integrates both objectives into a single optimization signal using state features , , and . The reward function , comprising (1) QALY gain ( ) [46], (2) potential-based reward shaping (PBRS) ( ), and (3) improvement bonus and worsening penalty ( ). The total is then clipped to to bound the temporal difference (TD) loss, consistent with QALY expected gain. Appendix A provide detailed formulation of the reward function.
4 Structural Properties
In this section, we establish the structural properties of FAHOC framework. These properties provide theoretical justification for the FAHOC architecture by establishing bounds on the gap between the learned and optimal treatment policies and by characterizing differences in attainable value between cooperative and non-cooperative patients. Proofs are provided in Appendix I.
4.1 Factorization Error Analysis
We first introduce the assumptions underlying the analysis.
Assumption 1 (Bounded rewards). Consider an SMDP (S, A, O, P, r, ), where S is the state space, A is the factored action space, O is a finite set of options, P is the transition kernel, r is the reward function, and is the discount factor. We assume that the reward function is uniformly bounded, i.e., for all .
Then we have the following lemma.
Lemma 1 (Bounded optimal Q-Function). Under Assumption 1, the optimal Q-function is uniformly bounded. Specifically, the optimal Q-function satisfies , where
Lemma 1 follows immediately under Assumption 1, and establishes that, under uniformly bounded rewards and a discounted infinite-horizon objective, all optimal action-values remain uniformly bounded by the geometric sum of the maximum absolute immediate reward.
Assumption 2 (Factored action space). The action space is assumed to factor across domains: , . In this work, we consider with , , . For each option , let denote the corresponding active sub-space and denote the componentwise mean action. We further define the maximal componentwise deviation within as .
We further impose two regularity conditions. Assumption 3 imposes a extension of the reward in the action variable, while Assumption 4 assumes a smooth interpolation of the transition kernel across action domains. These conditions are satisfied when treatment dosages correspond to observed levels of an underlying continuous physiological process, as is the case for T2DM, HTN, and BMI interventions.
Assumption 3 (Bounded reward cross-interaction). The reward admits a extension in a over a neighborhood of . For each pair of distinct domains , define:
Assumption 4 (Smooth transition extension). There exists an open neighbourhood in and a family of probability kernels such that:
(i) for all (consistency on discrete points);
(ii) for every bounded measurable , the map is on uniformly in (smooth interpolation).
For each pair of distinct domains , define the cross-action transition interaction coefficient:
In the factored SMDP under Assumptions 1–2, we define three Bellman operators on as follows, where throughout abbreviates :
- True operator (uses full reward and unconstrained Q):
- Factored-reward operator (replaces r with , still unconstrained Q):
- Architectural operator (uses and restricts Q to the additive function class ):
where is the best-approximation projection onto in .
Note that all three operators are -contractions on by the Banach fixed-point theorem. Denote their unique fixed points by:
-
: True optimal Q-function (fixed point of T),
-
: Factored-reward optimal Q-function (fixed point of ),
-
: Trained factored-architecture Q-network (approximate fixed point of within option ).
The interaction residual is , with . The total approximation error decomposes as:
which separates the error into two sources: (i) the mismatch between the true optimal Q-value and its factored-reward optimal Q-value approximation, and (ii) the additional error induced by restricting the value function to the architecture F.
We now bound the two terms in (11). Theorem 1 controls the suboptimality error as a result of reward-factorization via the interaction residual, Theorem 2 refines this using reward smoothness (Hessian-based bounds), and Theorem 3 bounds the additional approximation error induced by the additive function class . Theorem 1 (Global Factorization Error Bound). Under Assumptions 1–2, if , then:
For each option with initiation set and action subspace , define . Then the option-conditioned Q-functions satisfy:
Theorem 1 establishes that the reward-level factorization error is controlled by the interaction residual The option-restricted bound (13) is never looser than the global bound, and is strictly tighter whenever cross-domain treatment interactions are smaller within an option's active subspace than in the full action space.
Corollary 1 (Option-restricted bound). For each option with initiation set and action subspace , define . Since , we have , and the option-conditioned Q-functions satisfy
The factor in (12) cannot be improved in general, as shown in Appendix I.
While Theorem 1 applies to any bounded residual, Assumption 3 enables a closed-form upper bound on through the reward Hessian or Taylor Bound. Specifically, the interaction residual vanishes quadratically in the action dispersion within each option.
Theorem 2 provides a tighter, computable bound on the first term via the reward Hessian.
Theorem 2 (Reward Hessian bound or Taylor bound on reward interaction residual). Under Assumptions 1–3, define , where is the sum of cross-domain second derivatives of for ordered pair of domains with (see (5)), and is the componentwise action radius of option . Then the interaction residual satisfies:
and consequently:
Note that in our reward function (Section 3; Appendix A), the rewards depend on clinical outcomes rather than directly on the action vector. Consequently, for all , exactly, and the reward-level factorization is error-free. In a general multimorbidity setting where drug interaction penalties enter the reward directly, and Theorem 2 quantifies the resulting error.
Finally, Theorem 3 bounds the second source of error, arising from restricting Q to the additive architecture F. This architectural residual captures cross-domain interactions in the transition dynamics that the additive structure cannot represent.
Theorem 3 (Architectural factorization error bound). Under Assumptions 1–2 and 4, the error of the factored Q-network relative to satisfies:
Combining the reward interaction residuals and architectural error bounds, we obtain:
Corollary 2 (Total error decomposition). Combining Theorems 2–3, the total error satisfies:
The two terms in (18) correspond to complementary sources of approximation error. The first term captures the mismatch between the true and factored reward functions; under the clinical reward of this paper this term vanishes. The second term reflects the inability of the additive architecture to represent cross-domain value interactions induced by the transition dynamics, and is small when T2DM and HTN treatments exhibit limited cross-domain coupling, a condition that is clinically plausible and supported empirically (see Appendix J).
4.2 Cooperation Value Dominance
As detailed in Section 3, we operationalize patient preferences as a binary cooperation indicator , inferred from each patient's longitudinal BMI trajectory (using imputed clinical values) as a proxy for patient's preference and behavioral willingness and capability to follow lifestyle or other non-pharmacological recommendations for engagement in BMI reduction. Therefore, we then define the BMI-action feasibility set as
Consequently, the full feasible action sets for cooperative and non-cooperative eligible (high-BMI) patients are given by and , yielding 18 feasible actions for the cooperative ones , and 9 actions for non-cooperative ones . This implies for all .
This motivates the question of whether allowing BMI co-treatment, when the patient is eligible, improves the optimal policy value. We formalize this by comparing two cooperation regimes. Let denote the optimal expected discounted cumulative reward when the feasible action set at every visited state is , i.e., . Theorem 4 establishes that cooperation is value-improving and under identical states differing only in cooperation status, the value function of cooperative patients dominates that of non-cooperative patients.
Theorem 4 (Cooperation value dominance). For all ,
Theorem 4 shows that enabling BMI co-treatment is weakly beneficial, and strictly improves value whenever ‘BMI-beneficial states’ are visited with positive probability.
Definition 1 (BMI-beneficial state). A state is BMI-beneficial if (the patient has elevated BMI), and there exist actions that differ only in the BMI component ( , ) such that .
Proposition 1 (Strict superiority). Suppose there exists a BMI-beneficial state (Definition 1) that is reachable from some with positive probability under the optimal policy associated with . Then .
In the clinical setting of this study, BMI-beneficial states correspond to encounters satisfying three criteria simultaneously: the patient is cooperative (c = 1), overweight or obese (BMI ≥ 25 kg/m²), and clinically uncontrolled (A1C > 7.0 % or SBP > 130 mmHg), so that the improvement bonus and QALY gain together ensure condition (1) holds. Auditing all three data splits directly confirms that 190,904 transitions (32.1%) and 18,761 distinct patients (39.7%) satisfy all three criteria, with stable proportions across train, validation, and test splits (32.1%, 32.7%, 31.5%). The mean reward conditional on this subset (0.028–0.033) is strictly positive versus -0.015 overall, providing direct empirical evidence that strict superiority (Proposition 1) holds for a large, structurally stable subpopulation rather than a marginal edge case. See Appendix K for full criterion-level counts.
5 Solution Algorithm
Non-pharmaceutical interventions such as BMI reduction operate on a longer time horizon than pharmacological adjustments; without explicit structural support, a standard Q-head will suppress their contribution under the stronger immediate signal from medication escalation. Our age-stratified QALY reward encodes long-run quality-of-life impact, while the factored Q-value decomposition ensures the BMI component receives an independent gradient signal weighted at , separate from the T2DM and HTN components ( each).
Clinicians managing multimorbid patients reason hierarchically: they first assess whether current medications across all active conditions require adjustment, or whether emerging comorbidities and patient response to medications warrant new treatment, and then finalize specific treatment decisions subject to patient preferences and safety constraints. To address this multi-level combinatorial action space, we develop the FAHOC framework, which integrates the option-critic architecture of Bacon et al. [41] for high-level clinical strategy selection with the factored action representation of Tang et al. [45], and equips both with action masking to learn patient-preference-compliant treatment policies. Offline stability is ensured through conservative Q-learning regularization [17] on the intra-option heads and a multi-term termination loss that augments the option-critic gradient with entropy and anchor regularizers calibrated to the static clinical data setting.
Figure 2 presents an overview of the proposed model. The network comprises four components: a shared encoder that maps the patient state to a latent representation shared across all heads; a high-level critic that scores two clinical strategies ( : Single-Target, : Multi-Target) and selects the greedy option; per-option factored Q-heads that decompose treatment decisions into three disease-specific components; and per-option termination heads that govern whether the current clinical strategy should persist or be re-evaluated at the next visit. All Linear layers are initialized with Kaiming uniform weights and biases; full architectural details and layer dimensions are given in Appendix H. The intra-option policy is defined by the weighted factored composition:
where weights reflect the relative clinical priority of glycaemic and blood-pressure control over BMI management, ensuring the BMI head receives an independent gradient signal rather than being suppressed by stronger immediate medication signals.
At each training step the agent observes a stored patient transition comprising the current state, the assigned clinical option, the clinician's treatment action, the received reward, the next state, and an episode termination indicator. The low-level intra-option Q-heads are trained using a Double DQN target that incorporates

Figure 2: Overview of the FAHOC model. The shared encoder maps the patient state to a latent representation; the high-level critic induces a greedy policy over two clinical options ( : Single-Target, : Multi-Target); per-option factored Q-heads produce the weighted composition (Eq. (21)) over three treatment dimensions (T2DM , HTN , BMI ); and action masking enforces patient-preference and clinical safety constraints. Per-option termination heads govern option switching via the option-critic gradient (see Appendix H).
option-utility: the continuation value if the current option persists, blended with the best available option value if the option terminates, weighted by the target-network termination probability at the next state. A conservative Q-learning penalty suppresses overestimation of out-of-distribution actions not seen in the offline dataset. The high-level option critic is trained on a separate target that weights the intra-option value at the current state against the best option value at the next state, again via the target-network termination probability. The termination heads are updated in a separate backward pass that does not affect the shared encoder, using an extended option-critic gradient augmented with an entropy penalty and a quadratic anchor toward a target termination probability of . The encoder is updated exactly once per step through a joint backward pass over the low- and high-level losses only. All TD targets are clipped and all gradient norms are clipped to prevent instability under offline distributional shift. Full TD target definitions, loss equations, and training pseudocode are provided in Appendix E.
Algorithm 1 FAHOC Training (Overview)
Require: Offline buffer B, network parameters , discount , soft-update rate
1: Initialize online network with Kaiming uniform; copy to target network ▷ Appendix H
2: Fill B using stratified initial priorities to up-weight active treatment transitions ▷ Alg.6
3: for each training step do
4: Sample a mini-batch with importance-sampling weights from the prioritized replay buffer
5: Evaluate factored Q-values for all actions via Eq. (21); set inadmissible entries to via the action mask Algs. 4–5
6: Compute low- and high-level Double DQN TD targets using target-network termination probabilities and option-utility blending ▷ Appendix E
7: Update encoder , high-level critic, and intra-option heads via a single joint backward pass; clip gradient norm to 1.0 Appendix E
8: Update termination heads via a separate backward pass; clip gradient norm to 0.5 ▷ Appendix E
9: Update replay priorities from TD errors; soft-update target network
10: end for
6 Computational Results
In this section, we first present our data and summarize the data preprocessing results. Next, we describe the results related to model training convergence. Consequently, we provide the results comparing the degree of agreement between the model-recommended policies and historical clinician recommendations. Next we provide a few representative patient treatment trajectories, examine the patient preference compliance to find the effectiveness of action masking, BMI-specific performance, off-policy policy-value estimates, and action-distribution analysis.
6.1 Data and Preprocessing
The study cohort was drawn from EHR at five hospitals in the Southeast United States, collected between 2014 and 2025, comprising 48,015 outpatients with comorbid T2DM and HTN. Each patient had at least two encounters within one year, aggregated into 3-month intervals consistent with standard T2DM and HTN follow-up schedules [47]. Patients with cancer diagnoses (n = 717) were excluded due to treatment-related weight loss confounding [48], yielding a final cohort of 47,298 patients with 594,667 encounters. To prevent data leakage, 33,108 patients (447,988 encounters), 7,095 patients (97,326 encounters), and 7,095 patients (96,651 encounters) were randomly selected and set aside for training, validation, and testing, respectively. All imputation parameters are fitted on the training split only and applied to all splits at inference time. Continuous features are standardized using parameters fitted on the training split only, preventing data leakage. Missing values are imputed with a constrained iterative imputer whose bounds are derived from clinically valid ranges. Cooperation labels are inferred from imputed BMI values after the imputer is fitted on training data, so no cooperation-related statistics from validation or test patients contaminate the training process. After converting sequential encounters into state-action-reward-next-state transition tuples, the datasets yielded 414,880, 90,231, and 89,556 training, validation, and testing transitions.
The patient preference modeling for cooperation in BMI reduction described in Algorithm 2 identified 58.1% of training patients as cooperative and 41.9% as non-cooperative, with comparable proportions in the validation (59.6% / 40.4%) and testing (57.5% / 42.5%) sets. Table 2 presents the distribution of the data after imputation before entering the RL data arrangement pipeline:
6.2 Training Convergence
The HRL agent was trained for 150 epochs on a stratified prioritized replay buffer of 500,000 transitions, with separate learning rates for the encoder, high-level, low-level, and termination heads to stabilize joint optimization across hierarchy levels; full hyperparameter specifications are provided in Table 9 in Appendix G. Training converged across all loss components, with validation action accuracy rising from 66.9% at epoch 1 to a peak of 75.3% at epoch 60 and stabilizing near 74% at convergence. The average termination probability of 0.257 is below the anchor target . The fact that indicates a consistent advantage-driven preference for persistence, as the anchor would otherwise push toward 0.30. Learning curves are shown in Appendix G.
6.3 Clinician Action Agreement
To measure alignment between the learned policy and established clinical practice, we quantify the proportion of transitions in which the agent's greedy action matches the clinician's observed decision, defined as clinician action agreement. Note that this is an evaluation metric only; the policy is trained to maximize the QALY-based reward, not to imitate the clinician, and the CQL penalty merely prevents overestimation of unsupported actions.
Table 3 reports results on the held-out test set alongside random-guessing baselines. The overall action accuracy of 69.8% substantially exceeds the random baseline of 5.6% (= 1/18). The factored action framework reveals that the agent is highly aligned with clinicians on the disease dimensions separately: T2DM accuracy of 82.3% and HTN accuracy of 80.7% exceed their respective random baselines by factors of ≈2.5×. The BMI component, restricted to eligible patients, achieves a near-perfect recall of 99.98%, with an score of 95.9%, and the mean Q-value margin of 6.86 confirms the agent's high confidence in its BMI decisions. Option selection accuracy of 53.8% modestly exceeds the 50% two-option chance level, consistent with the inherent difficulty of inferring latent clinical intent (single- vs. multi-target focus) from observational data.
6.4 Off-Policy Evaluation
We employ three complementary off-policy evaluation (OPE) estimators with 95% bootstrap confidence intervals (1,000 resamples):
- FQE [49]: A separate Q-network trained to satisfy the Bellman operator under the learned policy.
Table 2: Cohort and Transition Dataset Statistics
| Characteristic | Train | Validation | Test |
|---|---|---|---|
| Dataset Partition | |||
| Patients | 33,108 | 7,095 | 7,095 |
| Transitions | 414,880 | 90,231 | 89,556 |
| Transitions/patient (mean ± std) | 12.5 ± 9.6 | 12.7 ± 9.5 | 12.6 ± 9.6 |
| BMI Cooperation Status | |||
| Cooperative | 264,587 (63.8%) | 58,567 (64.9%) | 56,534 (63.1%) |
| Non-cooperative | 150,293 (36.2%) | 31,664 (35.1%) | 33,022 (36.9%) |
| BMI Category | |||
| Normal | 79,888 (19.3%) | 17,245 (19.1%) | 17,944 (20.0%) |
| Overweight | 222,014 (53.5%) | 49,136 (54.5%) | 47,736 (53.3%) |
| Obese | 112,978 (27.2%) | 23,850 (26.4%) | 23,876 (26.7%) |
| Demographics | |||
| Female | 56.9% | 57.0% | 57.0% |
| Male | 43.1% | 43.0% | 43.0% |
| Black or African American | 48.7% | 48.4% | 49.2% |
| White | 51.3% | 51.6% | 50.8% |
| Hispanic or Latino | 0.4% | 0.2% | 0.4% |
| Not Hispanic or Latino | 97.9% | 98.0% | 98.1% |
| Clinical State Variables (mean ± std; unscaled) | |||
| SBP (mmHg) | 134.2 ± 17.5 | 134.0 ± 17.7 | 134.2 ± 17.5 |
| AIC (%) | 7.23 ± 1.64 | 7.25 ± 1.67 | 7.26 ± 1.67 |
| BMI (kg/m) | 31.5 ± 8.3 | 31.5 ± 8.2 | 31.4 ± 8.3 |
| eGFR (mL/min) | 69.2 ± 26.0 | 69.4 ± 25.6 | 69.2 ± 25.9 |
| Age (years) | 63.9 ± 12.7 | 63.8 ± 12.6 | 64.3 ± 12.7 |
| T2DM intensity | 0.61 ± 0.76 | 0.62 ± 0.77 | 0.62 ± 0.76 |
| HTN intensity | 0.87 ± 0.90 | 0.88 ± 0.90 | 0.88 ± 0.90 |
| Treatment Intensity Distribution | |||
| T2DM: None (0) | 233,044 (56.2%) | 50,215 (55.7%) | 49,828 (55.6%) |
| T2DM: Single-class (1) | 110,513 (26.6%) | 24,061 (26.7%) | 24,360 (27.2%) |
| T2DM: Multi-class (2) | 71,323 (17.2%) | 15,955 (17.7%) | 15,368 (17.2%) |
| HTN: None (0) | 197,870 (47.7%) | 42,521 (47.1%) | 42,105 (47.0%) |
| HTN: Single-class (1) | 72,544 (17.5%) | 16,022 (17.8%) | 15,787 (17.6%) |
| HTN: Multi-class (2) | 144,466 (34.8%) | 31,688 (35.1%) | 31,664 (35.4%) |
| Option (Treatment Strategy) | |||
| Single-Target () | 278,569 (67.1%) | 60,355 (66.9%) | 59,611 (66.6%) |
| Multi-Target () | 136,311 (32.9%) | 29,876 (33.1%) | 29,945 (33.4%) |
| Reward Statistics | |||
| Mean reward | -0.0145 | -0.0133 | -0.0149 |
| Std. deviation | 0.3883 | 0.3858 | 0.3841 |
| Positive rewards | 85,369 (20.6%) | 18,615 (20.6%) | 18,345 (20.5%) |
Table 3: Clinician Action Agreement: HRL Policy.
| Metric | Test | Random (%) |
|---|---|---|
| Overall action accuracy | 69.8% | 5.6 |
| T2DM component accuracy | 82.3% | 33.3 |
| HTN component accuracy | 80.7% | 33.3 |
| BMI (eligible patients) | 95.9% | 50.0 |
| Option accuracy (Single- vs. Multi-Target) | 53.8% | 50.0 |
| Mean termination prob. | 0.201 | — |
Computed only among cooperative, overweight/obese patients. Precision = 92.2%; The random baseline is given by the inverse of the number of available actions. For example, with 18 possible actions, a uniformly random policy has a probability of of selecting the same action as the clinician. mean Q-value margin between BMI-reduction and no-reduction actions = 6.86.
Table 4: Off-Policy Evaluation: Estimated Policy Value (, bootstrap resamples)
| Estimator | Test Set () | |
|---|---|---|
| Estimate | 95 % CI | |
| Clinician (baseline) | — | |
| WIS | ||
| DR | ||
Exceeds due to Q-value extrapolation beyond the single-step reward scale.
-
WIS [50]: Weights each episode's return by the likelihood ratio of the learned vs. clinician action sequence, self-normalized to reduce variance.
-
DR [51]: Combines a direct Q-function estimate with importance-ratio-weighted TD corrections, converging to the true policy value if either component is correctly specified, a useful guarantee given EHR sparsity and clinician heterogeneity.
All three estimators place the learned policy above the clinician baseline (Mean observed discounted return over all test transitions). The negative clinician baseline () reflects suboptimal long-term biomarker trajectories inherent in observational chronic-disease data. The DR estimator, the most robust to model misspecification, yields a policy value of 0.669 (95 % CI: [0.638, 0.697]), substantially above the baseline, with a narrow, non-overlapping interval confirming statistical reliability. The FQE estimate of 3.373 reflects accumulated discounted future value rather than a single-step reward; its tight CI () confirms stable Q-function learning. The wider WIS interval () reflects importance-sampling variance when a deterministic agent policy diverges from the stochastic clinician distribution; the mean clipped IS weight of 1.127 indicates partial overlap but makes WIS less reliable as a standalone estimator here. The consistent agreement between FQE and DR confirms that the learned policy achieves higher expected clinical value than observed clinician behavior.
6.5 Illustrative Analysis of Optimal Policy Behavior
Here we examine the behavior of the optimal policy using example patients from four clinically distinct subgroups as depicted in Figure 3:
-
Cooperative / Single-Target (Patient I). A BMI reduction cooperative patient with three encounters assigned to single-class option. Both the agent and clinician chose maintain intensity throughout; the agent recommends BMI reduction one encounter earlier than the clinician, acting immediately on cooperative eligibility. Near zero to negative rewards reflect unchanged A1C and SBP over the window mainly due to short encounter sequence for clinician and agent to assess patient's response to current medication intensity.
-
Cooperative / Multi-Target (Patient II). With 20+ encounters, and both uncontrolled biomarkers this patient falls under option (Multi-Target). The clinician oscillates between Intensify and De-intensify as biomarkers response were not in target range, producing mainly negative to near zero rewards. The agent instead holds a stable maintain strategy across consecutive encounters and recommends BMI reduction from encounter 2 onward, consistent with the patient's cooperative status. The DR estimator for cohort confirms that avoiding titration oscillations yields better long-run QALY outcomes.
-
Non-Cooperative / Single-Target (Patient III). For this non-cooperative patients with biomarkers near target, the clinician again alternates reactively between Intensify and De-intensify. Every intensify follows with deintensify in clinician recommendation confirming patient's better response to maintain current intensity. The agent favors stability, aligning on the clinician's medication intensify adjustment and issuing no BMI reduction recommendations, confirming structural enforcement of the cooperation mask.
-
Non-Cooperative / Single-Target (Patient IV). Like Patient III, the agent issues no BMI-reduction recommendations. Unlike Patient III, this patient's initial encounters begins with negative to near zero
Per Encounter: T2DM / HTN med. intensity adjustments: {De-intensify = -1 | Maintain = 0 | Intensify = +1} BMI reduction: {BMI reduction = -1 | No reduction = 0} .

Figure 3: Per-patient treatment trajectories (4 patients, test set). Columns: T2DM, HTN, and BMI recommendations and per-encounter observed reward (green > 0, red < 0). Rows: Cooperative Patient I (Single-Target), Cooperative Patient II (Multi-Target), Non-Cooperative Patients III and IV (Single-Target).
rewards: the clinician remains maintain intensity until encounter 8, then abruptly selects intensify and deintensify T2DM in the next visit. The agent maintains steadily and issues a single De-intensify once improvement is estimated aligned with clinician; rewards shift from negative to strongly positive in later encounters, consistent with the higher DR value for the sicker (uncontrolled) patients stratum (0.889 [0.853, 0.925]) vs. controlled (0.511 [0.473, 0.548]).
The HRL policy has learned two complementary behaviors: a QALY-guided treat-to-target strategy for T2DM and HTN that avoids titration oscillations (DR = 0.669 vs. clinician mean reward -0.0133), and a cooperation-gated BMI recommendation pattern ( , zero safety violations) despite BMI carrying no direct term in , demonstrating that the hierarchical architecture and action masking successfully transfer the cooperation structure and BMI expected improvement for patient QALY improvement.
6.6 Patient Preference Masking Compliance
Recall that to respect patient preferences, a BMI cooperation mask prevents the agent from recommending BMI-reduction actions to non-cooperative patients. This hard constraint is enforced by assigning masked actions a Q-value of during training, ensuring that the argmax operator never selects a prohibited action. The trained policy achieves 100% safety compliance during testing, with zero mask violations in 89,556 testing set transitions. This result confirms that the action-masking mechanism operates as intended and the agent never assigns a BMI-reduction recommendation to an ineligible patient under any observed state. Among eligible patients, BMI precision was 92.2%, recall was 99.98%, and patient-level consistency, the proportion of patients for whom BMI decisions were internally consistent, was 99.9%.


Figure 4: Left: Concordance advantage surface ( ) over SBP (y-axis) and A1C (x-axis) intensification thresholds. Green ( ) and red ( ) denote agent and clinician advantage, respectively. Dashed white lines mark the ACC/AHA 2017 SBP threshold (130) and ADA 2025 A1C target (7.0); above both, the agent is uniformly more concordant ( ), with the clinician advantage confined to the sub-guideline region. Right: Concordance vs. SBP threshold at fixed A1C=7.0; the agent (blue) surpasses the clinician (red) at SBP 130 with a widening advantage through 170.
6.7 Guideline Concordance Analysis
To evaluate treatment alignment with clinical guidelines, we employ the -guideline concordance surface, sweeping over a grid of SBP and A1C intensification thresholds [46]; see Appendix F for the formal definition.
Figure 4 shows the resulting surfaces on the held-out test set. The agent achieves positive in most of the threshold grid ( ), with the clinician holding a slight advantage only in the sub-guideline region (SBP<130, A1C<7.0), where conservative maintenance aligns naturally with guidelines. Above both reference thresholds the agent is more concordant, reaching . The right panel confirms this advantage persists across all SBP thresholds above 130 at the standard A1C target of 7.0. Near-identical surfaces on the validation set (maximum deviation < 0.01) confirm that the higher guideline concordance generalizes robustly to unseen patient cohorts.
6.8 Stratified Analysis: Uncontrolled vs. Controlled Trajectories
To assess whether the HRL policy adds greater value for patients who stand to benefit most from treatment optimization, we stratified the test set into uncontrolled and controlled trajectories. A patient episode was classified as uncontrolled if the patient's first-visit scaled SBP or scaled A1C exceeded the training-set mean (i.e., scaled value > 0), indicating above-average disease burden at trajectory onset; all remaining episodes were classified as controlled. This stratification yielded 4,692 uncontrolled patients (57,710 transitions; 64.4% of the test set) and 2,403 controlled patients (31,846 transitions; 35.6%). Table 5 reports behavioral accuracy, clinician reward statistics, and DR-estimated policy value separately for each stratum. The HRL agent outperforms the clinician baseline on both strata (DR value > clinician mean reward, with non-overlapping CIs), with the advantage substantially larger in uncontrolled trajectories (DR = 0.889 vs. clinician ≈ 0.000) than in controlled trajectories (DR = 0.511 vs. clinician -0.042). This pattern is clinically meaningful: uncontrolled patients have more room for improvement through proactive treatment adjustment, and the agent appears to exploit this by recommending higher-value actions in states where the clinician's conservative maintain strategy yields near-zero reward. The proportion of positive-reward transitions is higher in the uncontrolled stratum (23.5% vs. 15.1%), further corroborating that these episodes carry greater optimization potential. Accuracy is slightly lower in the uncontrolled stratum (68.1% vs. 72.8%), suggesting the agent diverges more from observed clinician decisions in the high-stakes cases where the learned policy may be
Table 5: Stratified Evaluation on the Test Set: Uncontrolled vs. Controlled Trajectories
| Metric | Uncontrolled | Controlled |
|---|---|---|
| Patients (n) | 4,692 | 2,403 |
| Transitions (n) | 57,710 | 31,846 |
| Accuracy | ||
| Overall action | 68.1% | 72.8% |
| T2DM component | 80.7% | 85.2% |
| HTN component | 80.0% | 81.9% |
| BMI Non-Cooperative | 69.9% | 75.1% |
| BMI Cooperative | 67.0% | 71.5% |
| Clinician Outcomes | ||
| Mean reward | ≈ 0.000 | -0.042 |
| % positive-reward | 23.5% | 15.1% |
| Off-Policy Evaluation (DR) | ||
| DR policy value | 0.889 | 0.511 |
| 95 % CI | [0.853, 0.925] | [0.473, 0.548] |
| Safety compliance | 100% | 100% |
Stratification is based on each patient's first-visit scaled SBP and A1C relative to the training-set mean. A patient is classified as uncontrolled if either value exceeds zero (above training mean). DR = Doubly Robust off-policy estimator; 95 % bootstrap CI from 1,000 resamples.
capturing treatment patterns not reflected in average clinician behavior. The 100% safety compliance in both strata confirms the robustness of the action-masking mechanism in the subpopulations of patients.
6.9 Comparison with Baseline DDQN and Clinician Action Agreement
We compare the proposed HRL policy against a non-hierarchical DDQN baseline that shares the same state representation, action space, reward function, and training data, but lacks any hierarchical structure. The DDQN maps states directly to Q-values over the full 18-dimensional joint action space (3 × 3 × 2: T2DM × HTN × BMI), with no option layer and no termination function at the architecture level. This baseline isolates the contribution of the hierarchical option-critic structure to policy quality. Table 6 reports action agreement with clinician decisions for both models on their respective evaluation sets. The HRL policy outperforms the baseline DDQN. The largest gains are in HTN accuracy (+1.6%) and BMI discriminative performance (+1.9%), suggest that the hierarchical option structure helps the agent make more targeted per-disease decisions by explicitly separating single-target from multi-target treatment episodes.
Table 6: Clinician Action Agreement: HRL Policy vs. DDQN Baseline.
| Metric | HRL (Test) | baseline DDQN (Val) | Δ (HRL – DDQN) |
|---|---|---|---|
| Overall action accuracy | 69.8% | 69.2% | +0.6% |
| T2DM component accuracy | 82.3% | 81.4% | +0.9% |
| HTN component accuracy | 80.7% | 79.1% | +1.6% |
| BMI accuracy (all) | 96.6% | 96.3% | +0.3% |
| BMI discriminative | 95.9% | 94.0% | +1.9% |
| Option accuracy | 53.8% | N/A | — |
| Avg. Q-value | 2.247 | 2.057 | +0.190 |
Evaluated on cooperative, overweight/obese patients only (n = 12,885); HRL reports , Baseline DDQN reports accuracy on the same eligible subset. HRL and flat DDQN are evaluated on test and validation sets respectively; is indicative.
The modest overall gain (+0.6%) reflects the harder task the HRL policy solves where it must jointly optimize T2DM, HTN, and BMI actions, select the correct option, and decide when to terminate it all from the shared reward signal alone. Beyond accuracy, the HRL policy offers three structural advantages unavailable to the flat DDQN 1) Interpretable clinical intent. With options, single-target, multi-target in this study, correspond to recognizable clinical strategies. Option accuracy of 53.8% above the 50% chance level demonstrates that the agent learns a meaningful latent decomposition of clinician behavior. 2) The termination function (mean ) allows the agent to commit to a treatment strategy across multiple encounters rather than reacting greedily at each step, better reflecting chronic-disease management in practice. This advantage is further beneficial when strategies cover future morbidities risk as treatment target such as cardiovascular and kidney diseases. 3) While both models share the same 18-action space, the flat DDQN maps states to a single monolithic Q-value over all joint actions, conflating disease-specific signals into one undifferentiated output. The HRL policy instead maintains separate Q-heads for T2DM, HTN, and BMI, composing the joint Q-value additively as . This decomposition allows independent per-disease credit assignment and produces consistent component-level agreement gains over the flat DDQN (T2DM +0.9 pp, HTN +1.6 pp, BMI +1.9 pp).
7 Discussion
This study was motivated from a fundamental observation that a recommendation that a patient will not follow is not a treatment plan and is unlikely to improve patient outcomes. Converting that observation into an operational decision-support policy prompted three distinct questions, leading to our methodological contributions. First, is it possible to fully embrace patient preferences, while preserving quality of care for any patient? Second, can policy design align with, and consequently augment, clinical decision making, where treatment strategy is followed with detailed regimen adjustments in patients with multimorbidity? And finally, can retrospective data show that the resulting policy exceeds observed practice? Addressing these questions together is challenging as in the absence of careful modeling, pharmacological interventions generally outperform slower-acting interventions such as lifestyle modifications preferred by patients, leading to ‘superior’ solutions that are ultimately not adhered to. Hence, this study is timely and produces meaningful contributions that can affect patient outcomes.
Preference as a constraint that binds. In this study, we place patient preferences at the core of our approach, supported by structural and theoretical contributions as well as empirical validation using retrospective clinical data. Theorem 4 demonstrates that cooperation strictly increases value whenever BMI-beneficial actions are reachable. Analysis of available EHR revealed that approximately one third of observed transitions meet BMI-beneficial conditions (Appendix K), which means the guarantee is not set of assumptions irrelative to real patients conditions. The specific architecture equipped with action masking in pre-processing and training as feasibility constraints makes violation of patient preferences impossible. Across all 89,556 held out transitions, no BMI modification was recommended to non-cooperative patients (Section 6.6). An interesting result is that the constraint did not create monolithic BMI intervention regiment and even though the reward includes no BMI term, the policy learned when reduction should be recommended to eligible patients ( , Table 3). The same architecture recommends reduction at the second encounter for a cooperative patient, yet issued no reduction recommendation in twenty encounters for a non-cooperative patient. When preference is represented as feasibility, it is enforced with zero measured cost to those it protects.
Structure without sacrifice. Our goal is for the resulting policy to align with, and consequently augment, clinical decision making, where treatment strategy is followed with detailed regimen adjustments in patients with multimorbidity. Hence, we introduce HRL and factorization and demonstrate that they ultimately do not reduce the policy quality. Section 4.1 shows that the reward-level factorization error vanishes exactly, with . Furthermore, the architectural term (17) in Theorem 3 is proved to be small when treatment effects between diseases are mutually weekly coupled, a feature numerically confirmed in Appendix J.
The empirical comparison demonstrate the same measure of quality. Comparing our proposed framework with a standard DDQN with the same state, action space, reward, and training data, demonstrate no loss of QALY. Indeed, we observe accuracy advantage where the structural design predicts, specifically per-disease, with HTN +1.66% and BMI for cooperative patients +1.9% in Table 6.
The hierarchy also operates as designed. Options pre-assigned using documented clinical thresholds [52] avoid the option-collapse pathology that accompanies unsupervised discovery on sparse offline data. Option selection identifies latent clinical intent above chance at 53.8%. The termination probability learned with , produces multi-encounter strategy persistence expected in chronic-disease management rather than visit-by-visit reactivity.
The architecture additionally needed to address a difference in timescales. Medication modifications affect A1C and SBP in one or two encounters, causing them to dominate reward, while BMI reduction impact develops over numerous encounters and has no direct contribution on at all. A monolithic Q-head therefore has every reason to disregard it. Three design elements preserve the slow impact intervention. First, the factored decomposition in Equation (21) assigns BMI its own head and fixes its wight at . It consequently receives an independent gradient that the T2DM and HTN heads cannot eliminate. Second, the age-stratified QALY reward together with evaluates the longer-term trajectory instead of changes at the next visit. Third, the option layer maintains a strategy in more than one encounter, which is the horizon over which lifestyle modification becomes visible. In Figure 3, the policy recommends reduction one encounter sooner than the clinician for Patient I, and it recommends reduction beginning with the second encounter for Patient II. The standard DDQN does not enforce staying on same strategy in more than one encounter which is exactly where BMI recommendation reached lower accuracy, by 1.9% in Table 6 than HRL. Thus structure incurred no cost while producing policies with more interpretable strategies.
Converging offline evidence of improvement. Finally, we leverage retrospective data to show that our resulting policy could exceed observed practice. No single retrospective estimator can consolidate superiority of learned policy versus observed practice. Accordingly, we require agreement among three tools that have distinct failure modes. The DR estimate value of the policy at 0.669 relative to a clinician baseline of -0.133 in Section 6.4. Because the DR estimator penalizes departure from the behavior distribution, this value represents a conservative lower bound rather than an extrapolation result. The guideline concordance surface, Section 6.7 and Figure 4, provides an external assessment unrelated to our reward. At and above the ACC/AHA 2017 and ADA 2025 reference thresholds, the agent consistently exceeds clinician guideline concordance score. Therefore, when the policy differs from observed practice from whom it learned, it moves toward established standards rather than away from them. The stratified analysis from Table 5 then localized largest gain where clinical care anticipates it. The advantage nearly doubles among with uncontrolled disease, with DR of 0.889 compared to 0.511 for patients with controlled disease. Agreement between an out of distribution-penalized estimator, a reward independent external benchmark, and a clinically predicted heterogeneity patten evaluates the result to be consistently credible. Nevertheless, as we acknowledge in Section 9, it supports prospective validation rather than serving as a substitute.
8 Managerial Insights
Health system managers, practitioners, and payers can draw four practical implications and managerial insights from this work in addition to its methodological findings.
Preference-aware treatment planning utilizes wasted capacity for usable care when planning directly considers adherence. Because non-adherence reaches 42.6% across multimorbid patients [1], clinicians and care infrastructure expend considerable effort generating recommendations and interventions that patients ultimately ignore in practice. Rather than viewing this friction as a challenge of persuasion, framing patient preference as a feasibility constraint turns it into an issue of resource allocation. By using standard EHR data without administering surveys, questionnaires, or extra data capture, our framework detects individuals open and capable of lifestyle modification ( ). This capability allows managers to direct limited lifestyle-intervention resources, such as dietitian hours and weight-management seats, toward patients demonstrably able to benefit, while planning pharmacological alternatives upfront for the remainder instead of realizing non-engagement after spending resources.
Concentrated policy return on uncontrolled patients stratum informs sequence of deployment. Compared to controlled patients (DR = 0.511), those facing an above-average disease condition demonstrate an estimated policy advantage that is nearly double (DR = 0.889). Because population-health initiatives is bounded by budget limits, this distribution reveals where phased deployment provide peak returns. Organizations should therefore activate CDS tools and direct care-management outreach toward the less controlled disease groups first.
Mandatory constraints require architectural enforcement instead of incentive schemes. Across all 89,556 held-out transitions, the preference mask produces zero violations because unfeasible actions cannot be represented structurally. By contrast, designs relying on reward penalties merely render non-compliance statistically less likely. This distinction provides concrete guidance for leaders overseeing AI governance, regulatory review, and liability exposure. They should implement preference and safety requirements as auditable, rigid architectural constraints while reserving reward signals for objectives where trade-offs remain acceptable.
Offline evaluation serves as a economical stage gate. This study assesses its proposed framework fully on retrospective data with its evaluation pipeline incorporating off-policy value estimation, agreement with clinician practice records, and guideline concordance surface. It quantifies expected clinical value at 0.669 against a clinician baseline of -0.133 before exposing any patient to the system. This framework helps with lowering CDS investment and decisions risks by conditioning pilot commitments and procurement on offline benchmark thresholds, saving prospective validation for candidate frameworks that pass.
9 Conclusion
This study introduces FAHOC, a hierarchical RL architecture for multimorbidity management with heterogeneous interventions, with patient preference incorporated as a structural feasibility constraint rather than a soft reward signal. While evaluated on this specific comorbidity pair, the architecture generalizes naturally to broader multimorbidity settings.
The patient preference-aware constrained framework, automatically infers patient willingness to cooperate in lifestyle modification from longitudinal BMI trajectories and enforces this preference at both the data pre-processing and training levels. The design guarantees zero patient preference violations and is supported by a formal dominance theorem showing that cooperative patients achieve weakly higher optimal expected health outcomes than non-cooperative patients. The clinically-informed option structure, embeds established therapeutic decision thresholds directly into the high-level policy, producing temporally coherent treatment regimes that correspond to recognizable clinical strategies without requiring unsupervised option discovery on a sparse offline dataset. The unified theoretical framework comprising the cooperation value dominance and the global factorization error bound, which formally connect each architectural design choice to guarantees on preference-consistency and Q-function approximation quality.
Three limitations warrant acknowledgment. The BMI-based cooperation label is sensitive to trajectory length, imputation quality, and involuntary weight change not fully captured by the malignancy exclusion criterion; replacing the binary label with a learned trajectory model would improve robustness. The two-option hierarchy constrains high-level policy expressivity, and expanding the option set through clinician-elicited strategy initialization coupled with further advancing offline option learning mechanism while preventing action leakage in the model is expected to broaden the range of learnable therapeutic strategies. Finally, all evaluation in this manuscript is offline and cannot substitute for prospective validation in a live clinical setting, which remains the most important direction for future work.
The framework is best positioned as a recommendation layer within a clinical decision support system, with preference-consistent treatment options for clinician review rather than an autonomous prescriber. With a richer option and intervention set defined collaboratively with clinicians, FAHOC offers a modular and interpretable foundation for EHR-integrated in the policy.
Data and Code Availability Statement: The dataset analyzed is this study consists of de-identified EHR data and is not publicly available. Access to the data can be provided subject to institutional review board approval. The full codebase, will be released upon acceptance.
References
[1] L. Foley, J. Larkin, R. Lombard-Vance, A. W. Murphy, L. Hynes, E. Galvin, and G. J. Molloy, “Prevalence and predictors of medication non-adherence among people living with multimorbidity: a systematic review and meta-analysis,” BMJ open, vol. 11, no. 9, p. e044987, 2021.
[2] K. B. H. Zolnierek and M. R. DiMatteo, “Physician communication and patient adherence to treatment: a meta-analysis,” Medical care, vol. 47, no. 8, pp. 826–834, 2009.
[3] S. R. Chowdhury, D. C. Das, T. C. Sunna, J. Beyene, and A. Hossain, “Global and regional prevalence of multimorbidity in the adult population in community settings: a systematic review and meta-analysis,” eClinicalMedicine, vol. 57, p. 101860, 2023.
[4] K. Nicholson, A. L. Terry, M. Fortin, T. Williamson, M. Bauer, and A. Thind, “Prevalence, characteristics, and patterns of patients with multimorbidity in primary care: a retrospective cohort analysis in canada,” British Journal of General Practice, vol. 69, no. 686, pp. e647–e656, 2019.
[5] C. Pop, A. O. Petriş, L. Pop, and L. E. David, “Pillars of blood pressure management in patients with type 2 diabetes mellitus: Insights from recent trials and emerging perspectives,” Journal of Clinical Medicine, vol. 14, no. 10, p. 3269, 2025.
[6] K. Iglay, H. Hannachi, P. J. Howie, J. Xu, X. Li, S. Engel, L. Moore, and S. Rajpathak, “Prevalence and co-prevalence of comorbidities among patients with type 2 diabetes mellitus,” Current Medical Research and Opinion, vol. 32, no. 7, pp. 1243–1252, 2016.
[7] Y. Yuan, C. R. Isasi, T. Al-Rousan, A. K. Ghosh, P. H. Mullachery, P. Palta, and N. Makarem, “Associations of concurrent hypertension and type 2 diabetes with mortality outcomes: a prospective study of us adults,” Diabetes Care, vol. 48, no. 7, pp. 1241–1250, 2025.
[8] D. Care, “11. chronic kidney disease and risk management: standards of care in diabetes—2025,” Diabetes Care, vol. 48, p. S239, 2025.
[9] P. K. Whelton, R. M. Carey, W. S. Aronow, D. E. Casey, K. J. Collins, C. Dennison Himmelfarb, S. M. DePalma, S. Gidding, K. A. Jamerson, D. W. Jones et al., “2017 acc/aha/aapa/abc/acpm/ags/apha/ash/aspc/nma/pcna guideline for the prevention, detection, evaluation, and management of high blood pressure in adults: A report of the american college of cardiology/american heart association task force on clinical practice guidelines,” Journal of the American College of Cardiology, vol. 71, no. 19, pp. e127–e248, 2018.
[10] G. Norman, S. Monteiro, J. Sherbino, J. Ilgen, H. Schmidt, and S. Mamede, “The causes of errors in clinical reasoning: cognitive biases, knowledge deficits, and dual-process thinking,” Academic Medicine, vol. 92, no. 1, pp. 23–30, 2017.
[11] V. L. Patel, J. F. Arocha, and J. Zhang, “The acquisition of medical expertise in complex dynamic environments,” Instructional Science, vol. 28, no. 4, pp. 301–321, 2000.
[12] T. Wang, J.-Y. B. Tan, X.-L. Liu, and I. Zhao, “Barriers and enablers to implementing clinical practice guidelines in primary care: an overview of systematic reviews,” BMJ open, vol. 13, no. 1, p. e062158, 2023.
[13] A. D. Association, “Summary of revisions: Standards of care in diabetes—2025,” Diabetes Care, vol. 49, no. Supplement 1, pp. S6–S8, 2025.
[14] American Diabetes Association Professional Practice Committee, “10. cardiovascular disease and risk management: Standards of care in diabetes—2025,” Diabetes Care, vol. 48, no. Supplement_1, pp. S207–S238, 2025.
[15] S. H. Oh, S. J. Lee, and J. Park, “Precision medicine for hypertension patients with type 2 diabetes via reinforcement learning,” Journal of Personalized Medicine, vol. 12, no. 1, p. 87, 2022.
[16] H. Zheng, I. O. Ryzhov, W. Xie, and J. Zhong, “Personalized multimorbidity management for patients with type 2 diabetes using reinforcement learning of electronic health records,” Drugs, vol. 81, no. 4, pp. 471–482, 2021.
[17] A. Kumar, A. Zhou, G. Tucker, and S. Levine, “Conservative q-learning for offline reinforcement learning,” Advances in neural information processing systems, vol. 33, pp. 1179–1191, 2020.
[18] E. Vermeire, H. Hearnshaw, P. Van Royen, and J. Denekens, “Patient adherence to treatment: Three decades of research. A comprehensive review,” Journal of Clinical Pharmacy and Therapeutics, vol. 26, no. 5, pp. 331–342, 2001.
[19] L. A. R. Group et al., “Long-term effects of a lifestyle intervention on weight and cardiovascular risk factors in individuals with type 2 diabetes mellitus: four-year results of the look ahead trial,” Archives of internal medicine, vol. 170, no. 17, pp. 1566–1575, 2010.
[20] E. M. Macri, E. Roberts, M. de Wit, P. Tugwell, and G. A. Hawker, “The use of artificial intelligence in clinical care: A values-based guide for shared decision making,” Current Oncology, vol. 30, no. 2, pp. 2178–2189, 2023.
[21] R. As'ad, M. Eklund, M. Hultin, L. Rydén, R. Hofmann, and G. Hultén, “AI-supported shared decision-making (AI-SDM): A scoping review of clinical applications and patient perspectives,” npj Digital Medicine, vol. 8, p. 380, 2025.
[22] T. Templin, S. Song, S. Fort, and N. Sinnott-Armstrong, “Participatory-informed preference optimization (pipro): A reinforcement learning simulation study,” PLOS Digital Health, vol. 5, no. 3, p. e0001294, 2026.
[23] D. J. Anthonimuthu, A.-M. Knudsen, O. K. Hejlesen, A.-D. Zwisler, and F. W. Udsen, “Application of machine learning in multimorbidity research: A scoping review,” Journal of Public Health, pp. 1–11, 2025.
[24] A. Hassaine, G. Salimi-Khorshidi, D. Canoy, and K. Rahimi, “Untangling the complexity of multimorbidity with machine learning,” Mechanisms of ageing and development, vol. 190, p. 111325, 2020.
[25] S. Uddin, S. Wang, A. Khan, and H. Lu, “Comorbidity progression patterns of major chronic diseases: the impact of age, gender and time-window,” Chronic Illness, vol. 19, no. 2, pp. 304–313, 2023.
[26] L. Peng, K. Hauer, B. Holleczek, S. Calderazzo, H. Brenner, and B. Schöttker, “Comparison of 4 frailty measurements in relation to ageing, physical performance, and all-cause mortality,” Journal of the American Medical Directors Association, vol. 27, no. 5, p. 106161, 2026.
[27] L. Yao, Q. Li, Z. Zhou, J. Yin, T. Wang, Y. Liu, Q. Li, L. Xiao, and D. Yang, “Machine learning models for predicting multimorbidity trajectories in middle-aged and elderly adults,” Scientific Reports, vol. 15, no. 1, p. 24711, 2025.
[28] A. Prados-Torres, A. Calderón-Larrañaga, J. Hancco-Saavedra, B. Poblador-Plou, and M. van den Akker, "Multimorbidity patterns: a systematic review," Journal of clinical epidemiology, vol. 67, no. 3, pp. 254–266, 2014.
[29] A. Marengoni, F. Triolo, and A. Zucchelli, “Multimorbidity clusters: translating research evidence into actionable interventions,” European Geriatric Medicine, vol. 16, no. 4, pp. 1115–1120, 2025.
[30] T. Beaney, J. Clarke, D. Salman, T. Woodcock, A. Majeed, P. Aylin, and M. Barahona, “Identifying multi-resolution clusters of diseases in ten million patients with multimorbidity in primary care in england,” Communications Medicine, vol. 4, no. 1, p. 102, 2024.
[31] J. E. Mason, B. T. Denton, N. D. Shah, and S. A. Smith, “Optimizing the simultaneous management of blood pressure and cholesterol for type 2 diabetes patients,” European Journal of Operational Research, vol. 233, no. 3, pp. 727–738, 2014.
[32] S. Basu, B. Muralidharan, C. Lewis, C. Brown, H. Rodriguez, and T. T. Brown, “Reinforcement learning to prevent acute care events among Medicaid populations: Mixed methods study,” JMIR AI, vol. 4, p. e74264, 2025.
[33] F. Ahmad and R. AlGhamdi, “Personalized multi-agent reinforcement learning framework for adaptive chronic disease therapy management,” Scientific Reports, 2026.
[34] A. N. Long and S. Dagogo-Jack, “Comorbidities of diabetes and hypertension: mechanisms and approach to target organ protection,” The journal of clinical hypertension, vol. 13, no. 4, pp. 244–251, 2011.
[35] S. Levine, A. Kumar, G. Tucker, and J. Fu, “Offline reinforcement learning: Tutorial, review, and perspectives on open problems,” Journal of Machine Learning Research, vol. 21, no. 1, pp. 1–85, 2020, arXiv:2005.01643.
[36] S. Fujimoto, D. Meger, and D. Precup, “Off-policy deep reinforcement learning without exploration,” in International conference on machine learning. PMLR, 2019, pp. 2052–2062.
[37] H. van Hasselt, A. Guez, and D. Silver, “Deep reinforcement learning with double Q-learning,” in Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence (AAAI-16). AAAI Press, 2016, pp. 2094–2100.
[38] R. S. Sutton, D. Precup, and S. Singh, “Between mdps and semi-mdps: A framework for temporal abstraction in reinforcement learning,” Artificial intelligence, vol. 112, no. 1-2, pp. 181–211, 1999.
[39] A. G. Barto and S. Mahadevan, “Recent advances in hierarchical reinforcement learning,” Discrete Event Dynamic Systems, vol. 13, no. 1-2, pp. 41–77, 2003.
[40] M. Hutsebaut-Buysse, K. Mets, and S. Latré, “Hierarchical reinforcement learning: A survey and open research challenges,” Machine Learning and Knowledge Extraction, vol. 4, no. 1, pp. 172–221, 2022.
[41] P.-L. Bacon, J. Harb, and D. Precup, “The option-critic architecture,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 31, no. 1, 2017.
[42] J. R. Petrie, T. J. Guzik, and R. M. Touyz, “Diabetes, hypertension, and cardiovascular disease: Clinical insights and therapeutic strategies,” Clinical Science, vol. 132, no. 17, pp. 1883–1902, 2018.
[43] C. Zhong, K. Liao, W. Liu, Y. Zhang, and Z. Wei, “Hierarchical reinforcement learning for automatic disease diagnosis,” Bioinformatics, vol. 38, no. 16, pp. 3995–4001, 2022.
[44] D. J. Tan, Q. Xu, K. C. See, D. Perera, and M. Feng, “Advancing multi-organ disease care: A hierarchical multi-agent reinforcement learning framework,” arXiv preprint arXiv:2409.04224, 2024.
[45] S. Tang, M. Makar, M. Sjoding, F. Doshi-Velez, and J. Wiens, “Leveraging factored action spaces for efficient offline reinforcement learning in healthcare,” Advances in neural information processing systems, vol. 35, pp. 34272–34286, 2022.
[46] N. Payani, B. Yao, A. Wilson, D. Gottlieb, and A. Khojandi, “Guideline-concordant reinforcement learning for personalized diabetes and hypertension multimorbidity management,” June 2026, preprint, manuscript under review. [Online]. Available: https://doi.org/10.13140/RG.2.2.35721.81766
[47] W. Xu, I. L. Mak, R. Zhang, E. Y. T. Yu, A. P. P. Ng, D. T. W. Lui, D. V. K. Chao, S. Y. S. Wong, C. L. K. Lam, and E. Y. F. Wan, “Optimizing the frequency of physician encounters in follow-up care for patients with type 2 diabetes mellitus: a systematic review,” BMC Primary Care, vol. 25, no. 1, p. 41, 2024.
[48] V. E. Baracos, V. C. Mazurak, and A. S. Bhullar, “Cancer cachexia is defined by an ongoing loss of skeletal muscle mass,” Annals of Palliative Medicine, vol. 8, no. 1, 2018.
[49] H. Le, C. Voloshin, and Y. Yue, “Batch policy learning under constraints,” in International Conference on Machine Learning. PMLR, 2019, pp. 3703–3712.
[50] D. Precup, R. S. Sutton, and S. Singh, “Eligibility traces for off-policy policy evaluation,” in Proceedings of the 17th International Conference on Machine Learning. San Francisco, CA: Morgan Kaufmann, 2000, pp. 759–766.
[51] N. Jiang and L. Li, “Doubly robust off-policy value evaluation for reinforcement learning,” in International conference on machine learning. PMLR, 2016, pp. 652–661.
[52] American Diabetes Association, "Standards of medical care in diabetes," 2024.
[53] D. Aron, M. Rajan, and L. M. Pogach, “Summary measures of quality of diabetes care: comparison of continuous weighted performance measurement and dichotomous thresholds,” International Journal for Quality in Health Care, vol. 19, no. 1, pp. 29–36, 2007.
[54] T. Schaul, J. Quan, I. Antonoglou, and D. Silver, “Prioritized experience replay,” arXiv preprint arXiv:1511.05952, 2015.
[55] T. M. Apostol, Mathematical Analysis, 2nd ed. Reading, MA: Addison-Wesley, 1974.
[56] R. J. LeVeque, Finite Difference Methods for Ordinary and Partial Differential Equations: Steady-State and Time-Dependent Problems. Philadelphia: Society for Industrial and Applied Mathematics, 2007.
Supplemental Material
Appendix A Reward Function
The components of the reward function are as follows
(1) QALY gain (): This first component measures the change in health utility, a standard measure of quality-adjusted life expectancy, between consecutive encounters, capturing whether the patient's biomarkers moved closer to or further from clinically healthy ranges, weighted by age-group-specific quality-of-life impact. Let and denote QALY utilities corresponding to A1C and SBP, respectively, for age group (Table 7). QALY in HTN and T2DM comorbidity can be defined as a piecewise linear function mapping A1C to if , if , and otherwise; SBP follows an analogous linear interpolation between thresholds 142 and 154 [46, 53]. Therefore, we have
Table 7: Maximum QALY utilities by age group.
| Age | 25–34 | 35–44 | 45–54 | 55–64 | 65–74 | |
|---|---|---|---|---|---|---|
| A1C | ||||||
| SBP |
(2) PBRS (): We add PBRS to increase short term signals to the reward beyond QALY that can be sparse and delayed. For A1C, define if , else 0; and for SBP, define if , else 0. The shaping term is , with and .
(3) Improvement bonus and worsening penalty () further strengthen short term safety signal for the agent: The bonus rewards proportional improvement in A1C or SBP only when the biomarker is above its clinical target at the current visit (t) and decreases in the next visit (t+1): if and , else 0; plus if and , else 0. The penalty discourages sharp worsening between consecutive encounters: if , else 0; plus if , else 0.
Appendix B Data processing medications encoded for HTN and T2DM intensity
Table 8: Medications for HTN and T2DM by class encoded in the model.
| HTN Medications | T2DM Medications |
|---|---|
| ACE inhibitors: benazepril, lisinopril, enalapril, captopril, fosinopril, perindopril, quinapril, ramipril, tranadolapril, moexiprilARB combinations: sacubitril | Biguanides: metformin |
| ARBs: valsartan, losartan, candesartan, azilsartan, eprosartan, irbesartan, olmesartan, telmisartanCalcium channel blockers: amlodipine, felodipine, diltiazem, isradipine, nicardipine, nifedipine, nisoldipine, verapamilCentrally acting: clonidine, methyldopa, guanfacine, reserpineAlpha blockers: doxazosin, prazosin | Sulfonylureas: chlorpropamide, diabinese, glipizide, glucotrol, glyburide, diabeta, glimepiride, glibenclamideDPP-4 inhibitors: sitagliptin, vildagliptin, linagliptin, saxagliptin, alogliptinSGLT-2 inhibitors: ertugliflozin, canagliflozin, empagliflozin, dapagliflozin, bexagliflozin |
| Vasodilators: hydralazine, minoxidilBeta blockers: acebutolol, atenolol, carvedilol, propranolol, metoprolol, bisoprolol, nebivolol, labetalol, nadolol, timolol, pindolol, betaxolol, penbutololDiuretics: bumetanide, chlorthalidone, furosemide, hydrochlorothiazide, thiazide, spironolactone, torsemide, indapamide, eplerenone, amiloride, triamterene, chlorothiazide, polythiazide, metolazoneBPH drugs: alfuzosin, tamsulosin, terazosin | Thiazolidinediones: pioglitazone, rosiglitazoneGLP-1 receptor agonists: liraglutide, albiglutide, semaglutide, exenatide, dulaglutide, lixisenatideMeglitinides: repaglinide, prandin, starlix, nateglinideAlpha-glucosidase inhibitors: acarbose, precose, miglitol, glyset, vogliboseOther: pramlintide; tirzepatide; colesevelam; bromocriptine |
| Other cardiac: ranolazine; Cardiac vasodilators: isosorbide mononitrate, isosorbide dinitrate | Insulin: glargine, detemir, lispro, aspart, regular, degludec, nph, glusine, inhaled insulin, lispro-aabc, u-500, degludec/liraglutide, glargine/lixisenatide |
Appendix C Training Loss and Targets
Low-level TD target. The low-level target uses Double DQN action selection with the online network and target-network evaluation, incorporating option-utility:
where is the episode-termination (done) indicator, is the masked greedy action, and are target-network quantities, and . TD targets are clipped to ; since rewards are bounded in , the theoretical return bound is for , so the clip is conservative, guards against early-training instability.
Low-level loss.
where , are the PER importance-sampling weights that correct for the non-uniform sampling distribution [54], and .
High-level TD target. Unlike the low-level target, which bootstraps from next state , the high-level target weights the intra-option value at the current state s against the option-value at via the termination probability :
High-level loss.
where .
Combined loss and optimizers. The encoder is updated exactly once per step via a combined backward pass over the low- and high-level critics only:
The termination loss is optimized in a separate backward pass that updates only the -heads, leaving the encoder frozen; this prevents termination gradients from corrupting the shared state representation. Separate Adam optimizers are used for the encoder , high-level head , low-level heads , and termination heads .
Termination loss. Following the termination gradient theorem of Bacon et al. [41], the core objective encourages an option to terminate when it underperforms the option-value baseline. Three offline-motivated regularizers are added: a linear termination bias to counteract option persistence in static data, an entropy penalty to promote decisive termination, and a quadratic anchor to prevent from collapsing under distributional shift:
where is the online network termination probability, is the clipped advantage at current state , , , is the binary entropy, and is the anchor target.
Appendix D Cooperation (state feature) and BMI recommendation (action) inference algorithm
Algorithm 2 BMI Cooperation Inference (c)
Require: Patient BMI trajectory from IterativeImputer (fitted on train only), thresholds , , drift tolerance
Ensure: Per-patient cooperation label
1: for each patient do
2: ; ;
3: if then
4:
5: else
6: if then
7: Fit linear trend:
8:
9: else if then
10:
11: else
12:
13: end if
14: end if
15: end for
16: return
Algorithm 3 BMI Action Assignment ( )
Require: Transition , visit index , patient cooperation label , BMI category at visit :
Ensure:
1: if then
2:
3: else
4: if and then Cooperative patient with overweight or obese BMI: clinician attempted BMI reduction
5:
6: else
7:
8: end if
9: end if
10: return
Appendix E Solution Algorithms
Algorithms 4–7 provide the detailed pseudo codes of our proposed solution procedure: Algorithm 4 defines the factored Q-value composition; Algorithm 5 describes the clinical action masking; Algorithm 6 details stratified buffer initialization; and Algorithm 7 gives the main training loop.
Algorithm 4 Factored Action Encoding and Q-Value Composition
Require: Sub-action indices mapped from : decrease, maintain, intensify
shared encoder , per-option heads
// Encoding: sub-actions flat index
1: function ENCODE()
2: return
3: end function
// Decoding: flat index sub-actions
4: function DECODE()
5:
6:
7:
8: return
9: end function
// Scalar Q-value for a single action (used in TD targets)
10: function FACTOREDQ()
11:
12:
13: return
14: end function
// Full Q-vector over all actions (used in arg max and CQL)
15: function ALLQ()
16:
17: for to do
18:
19: end for
20: return
21: end function
Algorithm 5 Clinical Action Mask Construction
Require: Scaled cooperation type
Require: Scaled BMI feature
Require: Q-vector from ALLQ (Algorithm 4)
Require:
Ensure: Masked Q-vector
1:
2: for each sample in batch do
3: if or then
4:
5: end if
6: end for
7:
8: return
: non-cooperative (post-scaling), 0: cooperative
indicates normal BMI post-scaling
precomputed via DECODE, Algorithm 4
all actions allowed by default
non-cooperative or normal BMI
Algorithm 6 Stratified Buffer Initialization
Require: Offline dataset , PER exponent
Ensure: Prioritized replay buffer
1: Initialize (SumTree, capacity )
2: for each transition do
3:
4: if
5:
6: else
7:
8: end if
9: end for
10: return
Algorithm 7 Hierarchical DDQN with Option-Critic Training
Require: Buffer from Algorithm 6; discount , soft-update rate , CQL coefficient , termination target , IS schedule
1: Initialize online network (encoder , , , );
2: Initialize optimizers , , , ():
3: for each training step do
4: Sample from with IS weight
// Masked Q-vectors via Algorithms. 4–5
5:
6:
// Low-level DDQN target
7:
8:
9:
10:
11:
12:
13:
// Low-level loss + CQL penalty
14:
// High-level target
15:
16:
17:
18:
19:
// Joint backward — encoder updated once
20:
21: Zero-grad , , ; backprop ; clip ; step , ,
// Termination heads — separate backward
22:
23:
24:
25:
26: Zero-grad ; backprop ; clip ; step
// Priority and target updates
27:
28:
29: end for
Appendix F Delta Guideline Concordance Function
Following [46], for each threshold pair , the intensity-aware guideline action for condition is defined as:
where is the patient's current biomarker value, is the current medication intensity (none / single-class / multi-class), is the ceiling, and is a safety de-escalation threshold (90 for HTN;
Table 9: Hyperparameters.
| Parameter | Value | Parameter | Value |
|---|---|---|---|
| Discount | 0.97 | Hidden dimension | 256 |
| Soft-update | 0.001 | PER | 0.6 |
| Buffer capacity | 500,000 | PER | |
| Batch size | 256 | Target | 0.30 |
| Encoder lr | TD clamp | ||
| High-level lr | Grad clip (low/high) | 1.0 | |
| Low-level lr | Grad clip (term) | 0.5 | |
| Termination lr | Training epochs | 150 |

Figure 5: Training dynamics over 150 epochs. From left to right: low-level intra-option Q-loss; high-level option-value loss; termination loss; validation accuracy by disease component (Action, T2DM, HTN); and average termination probability (dashed red line = target ).
6.0 for T2DM). The combined concordance advantage is:
where and denote the fraction of transitions in which the agent policy and the clinician behavior policy , respectively, select .
Appendix G Training Curves
The HRL agent was trained for 150 epochs with a batch size of 256, using a discount factor of . Separate learning rates were used for each component: for the encoder and low-level heads, for the high-level head, and for the termination heads. The network contains 237,588 trainable parameters. A stratified prioritized replay buffer assigned initial priorities of 0.3 to “maintain” transitions and 1.5 to “active-change” transitions to counteract the natural class imbalance in clinical data ( of clinician decisions are maintain actions). Gradient norms are clipped to 1.0 for the encoder and Q-heads and to 0.5 for the termination heads to prevent early-exit collapse. The target network is updated by soft Polyak averaging after every step, and PER importance-sampling weights are annealed to 1.0 over 200,000 steps. Table 9 lists the values.
Figure 5 presents the learning dynamics. All three loss components decreased overall: the low-level intra-option Q-loss fell from 0.1226 to 0.0587; the high-level option-value loss from to 0.0006; and the termination loss from 0.1279 to 0.0004. Validation action accuracy improved from 66.9% at epoch 1 to a peak of 75.3% at epoch 70, stabilizing near 74% at convergence. T2DM and HTN component accuracies converged to approximately 83% and 82%, respectively. The average termination probability remained below 0.3.
Appendix H Factored Action Hierarchical Option-Critic (FAHOC) with Action Masking Network Architecture
The main four components of the network architecture are as follows. All Linear layers are initialized with PyTorch default Kaiming uniform (weights and biases):

Figure 6: Factored action hierarchical option-critic (FAHOC) framework network architecture. The shared encoder maps state to a 256-dimensional embedding . Four parameter groups branch from : the high-level head outputs over the two options ( : Single-Target, : Multi-Target); per-option factored heads decompose the intra-option Q-value as (Eq. 21); an action mask sets for when the patient is non-cooperative or has normal BMI, preventing infeasible treatment selections; and per-option termination heads output via sigmoid. ; .
-
Shared encoder, : two blocks of Linear( , 256)-ReLU-LayerNorm, producing . The shared representation ensures that the high-level option selection and low-level treatment decisions are grounded in a common patient state embedding, reduce parameter count and enforce representational consistency in all heads. Layers use default scale and shift
-
High-level Q-head, critic : Linear(256, 128)-ReLU-Linear(128, 2), output for . Formally, is the expected discounted return of committing to option at state and following until triggers termination.
.
The greedy option is
- Factored intra-option, Q-heads : three independent heads Linear(256, 64)-ReLU-Linear(64, k) with per option, giving
(30)
The weights reflect the relative clinical priority of glycaemic and blood-pressure control over BMI management, and ensure the BMI head receives an independent gradient signal rather than being dominated by stronger immediate reward from medication escalation. Algorithm 4 Appendix E provides pseudocode of factored action encoding and Q-Value composition. Appendix I establishes that the approximation error induced by our structural design is bounded.
- Termination heads, : Linear(256, 64)-ReLU-Linear(64, 1)-Sigmoid, , initialized near 0.5. At each state, governs whether the current clinical strategy should persist or be re-evaluated. A high termination probability triggers option switching via the high-level critic which resembles the clinician's judgment that a treatment strategy has run its course or is under-performing relative to the option-value baseline
Appendix I Proofs
Appendix I.1 Structural Properties: FAHOC Error Bound
In this appendix, we present proof of Theorems 1–4, lemmas, corollaries, and propositions based on assumptions presented in the manuscript 4. Throughout, abbreviates , and , .
Bounded optimal Q-Function. The proof of Lemma 1 is follows:
Proof. The bound follows directly from the definition of the Q-function as a discounted sum of future rewards. For any policy and any :
where the last equality uses the geometric series identity: for ,
(32) since as . Taking the supremum over all policies and all in (31) yields .
Global Factorization Error Bound
The Proof of Theorem 1 is as follows:
Proof. Since and , for any :
Term I. By (7)–(9), the -weighted future values are identical and cancel:
(34)
Term II. uses the same for both arguments, so reward terms cancel:
using . Combining . Taking absolute values in (33) and applying both bounds:
Taking the supremum over all and rearranging (using ):
(37)
Corollary 1 for option-restricted bound proof is follows:
Proof. Restrict the proof of Theorem 1 to the subdomain and replace with the tighter quantity . All algebraic steps carry through verbatim within this subdomain.
Theorem 2 proof under Assumptions 1–3, is provided as follows:
Proof. Fix and let . Apply the multivariate integral Taylor remainder ([55]) to around :
(38)
The additive reward reproduces the constant, all linear, and all per-domain quadratic terms in (38); these cancel in . Only the cross-domain integral remains:
Taking absolute values, applying Assumption 3 to bound the Hessian, using , and evaluating : . Taking the sup over gives (15); substituting into Theorem 1 gives (16).
Proof of Theorem 3 is provided as follows:
Proof. Both and are fixed points of operators using (equations (9) and (10) respectively), so the reward terms cancel exactly in their Bellman difference. For any , applying the fixed-point identities and and adding and subtracting :
where , , and the architecture residual
measures how far deviates from being a fixed point of the unconstrained operator , arising solely because the additive architecture cannot represent cross-action interactions in the value function induced by the transition dynamics . Step 1: Taylor expansion of .
Let and . By Assumption 4(ii), applying the multivariate integral Taylor remainder [55] to around and noting that the additive architecture exactly reproduces all constant, per-domain linear, and per-domain quadratic terms in the expansion (each head depends only on , so no cross-term with appears), these terms cancel in , leaving only the cross-domain remainder. Writing for the cross-derivative,:
(42)
Step 2: Bound .
Normalize by its sup-norm: define , so . Since and (Assumption 1), we have . Rewriting (42) in terms of and applying the definition of (equation (6)) from Assumption 4:
Rewriting (42) in terms of (denote the corresponding sum by ) and applying the definition of (equation (6)) from Assumption 4 together with , we have ; hence
(43)
Step 3: Banach fixed-point contraction.
Return to (40) and bound Term I. Applying the standard max-inequality pointwise in :
(44)
Combining (40), (44), and (43), then taking the supremum over all :
(45)
Since , rearranging (45) with :
(46)
where the factor on the right-hand side of (46) originates from the integral evaluated in Step 2 (43), which reduces the cross-domain coefficient by half. This establishes (17).
Total error bound. Proof of Corollary 2 is follows:
Proof. Combine bound (18). By the triangle inequality applied to (11):
(47)
which is (18).
□
Appendix I.2 Cooperation Value Dominance
In this section we present proof of Theorems 4 and Proposition1 based on assumptions presented in the manuscript. The proof of Theorem 4 is provided as follows:
Proof. Let be the set of policies feasible under cooperation status . We have: for every , so any policy in is also in , i.e. . Therefore, taking the supremum in (4.2) over a larger set:
(48)
Appendix I.2.1 Conditions for Strict Superiority
Proposition 1 proof:
Proof. Let be optimal under and let be the probability of reaching at step under . Define a modified policy that agrees with everywhere except at , where it selects from Definition 1. Then, applying the performance-difference identity:
(49)
Since , , and condition (1) yields , we have .
As : .
Appendix J Numerical Verification of the Global Factorization Bound
Appendix J.1 Estimating the Transition Cross-Interaction Coefficient
The factored Bellman operator decomposes actions into three domains: , , and . We quantify via the second-order mixed finite difference applied to the empirical transition operator [45, 56]. For each domain pair with and base action , the estimator is:
where are empirical mean next states under actions respectively, ranges over clinical dimensions , and step sizes are , (increments clamped to valid ranges). Setting and summing over pairs gives . Since is a finite discrete grid, all four action vertices in (50) are observed; the estimator is an exact finite difference with error , and no discretization bias arises beyond empirical mean estimation (Proposition 2). The global estimator marginalises over all 414,880 training transitions; a state-binned variant repeats the procedure within -means clusters (cells with fewer than 20 transitions skipped) and reports the bin-level supremum. Uncertainty is quantified by bootstrap resamples drawing 80% of transitions with replacement, yielding percentile 95% CIs for each pair.
Proposition 2 (Finite-difference consistency). Under Assumption 4, for fixed s, a and bounded measurable , let . Then .
Proof. Since is on (Assumption 4(ii)), applying the univariate Taylor theorem twice—first in direction at and at , then subtracting and expanding the resulting difference of first derivatives in direction —gives . Dividing by and replacing true expectations with empirical means adds the CLT term.
Results. Table 10 summarises the estimates. The worst-case dimension is BMI for all three pairs, and the worst-case base actions are . Bootstrap CIs are stable (coefficient of variation below 12%); the large global-to-binned gap reflects finite-sample variance within bins rather than genuine state-dependence.
Table 10: Empirical from 414,880 training transitions ( bootstrap resamples, 80% subsample).
| Domain Pair | Global | Binned | Bootstrap mean | 95% CI |
|---|---|---|---|---|
| T2DM × HTN | 0.2629 | 0.6948 | 0.2758 | [0.246, 0.311] |
| T2DM × BMI | 0.3351 | 1.2150 | 0.3739 | [0.304, 0.477] |
| HTN × BMI | 0.4275 | 1.0531 | 0.4380 | [0.361, 0.510] |
| 1.0255 | 2.9630 | 1.0877 | [0.911, 1.298] |
Appendix J.2 Computing the Bound
With , , and , Theorem 3 gives:
with bootstrap 95% CI [490.3, 700.5]. This is a worst-case bound operating at the supremum over all state-action pairs; the reward-level bound from Theorem 1 is complementary and tighter whenever is small, since in our setting and the dominant error is architectural rather than reward-level.
Appendix K Strict superiority criteria level count
BMI-beneficial states satisfy three criteria simultaneously: cooperative (), overweight/obese (, ), and uncontrolled ( or ), so that (Appendix A) and (22) jointly satisfy condition (1).
Table 11 reports counts verified on all three splits from unscaled clinical values recovered via the fitted preprocessor. The full BMI-beneficial set C1∩C2∩C3 covers 190,904 transitions (32.1%) across 18,761 patients (39.7%), stable at 32.1%, 32.7%, and 31.5% across splits, confirming a structurally stable subpopulation. The mean reward within C1∩C2∩C3 (0.028–0.033) is strictly positive and well above the unconditional mean (-0.015), with positive-reward transitions rising from 20.5%–20.6% overall to 28.3%–28.6% in the beneficial subset, confirming condition (1) empirically and establishing that Proposition 1 holds across nearly 40% of patients and one-third of all encounters.
Table 11: BMI-beneficial state counts. C1: cooperative (); C2: overweight/obese (); C3: uncontrolled ( or ).
| Train | Val | Test | All | |
|---|---|---|---|---|
| Transitions / Patients | 414,880 / 33,108 | 90,231 / 7,095 | 89,556 / 7,095 | 594,667 / 47,298 |
| C1 cooperative | 264,587 (63.8%) | 58,567 (64.9%) | 56,534 (63.1%) | 379,688 (63.9%) |
| C2 overweight/obese | 334,992 (80.7%) | 72,986 (80.9%) | 71,612 (80.0%) | 479,590 (80.7%) |
| C3 uncontrolled | 298,369 (71.9%) | 64,674 (71.7%) | 64,726 (72.3%) | 427,769 (71.9%) |
| C1∩C2 | 184,765 (44.5%) | 41,368 (45.8%) | 38,628 (43.1%) | 264,761 (44.5%) |
| C1∩C2∩C3 | 133,139 (32.1%) | 29,520 (32.7%) | 28,245 (31.5%) | 190,904 (32.1%) |
| Patients C1∩C2 | 14,212 (42.9%) | 3,140 (44.3%) | 3,012 (42.5%) | 20,364 (43.1%) |
| Patients C1∩C2∩C3 | 13,076 (39.5%) | 2,898 (40.8%) | 2,787 (39.3%) | 18,761 (39.7%) |
| Mean reward | C1∩C2∩C3 | 0.0302 | 0.0327 | 0.0287 | — |
| % positive reward | C1∩C2∩C3 | 28.4% | 28.6% | 28.3% | — |