Fig. 3: The RL agent policy demonstrated a comprehensive perspective on risk profile in specifying LMDs for patients compared to the clinician policy.

a The population median values for continuous risk factors and event rates for dichotomized risk factors, (b) the distribution of state number in violin plots, and (c) the proportion of the target patients for whom the RL agent and clinician made different prescription choices. The treatments on the y-axis are sorted based on the median of the risk clusters in the RL agent policy. The medians in the violin plots are indicated by grey dots. LDL-C low-density lipoprotein cholesterol. HDL-C high-density lipoprotein cholesterol. DM diabetes mellitus. AE Accident and emergency visits within the last one year. Total Rx concurrent medication records the number of drugs prescribed within one month. CKD chronic kidney disease. AF atrial fibrillation. HTN hypertension. GEMF 300 gemfibrozil 300 mg. GEMF 600 gemfibrozil 600 mg. GEMF 300 and GEMF 600 were prescribed twice a day.