Medication adherence is “the process by which patients take their medication as prescribed” []. It comprises 3 components: initiation of the treatment, correct implementation of the prescribed regimen, and persistence to the treatment []. Poor medication adherence is a global public health issue [,] and has important negative consequences on the personal level [-], but also at the societal level [-]. Interventions aiming at improving medication adherence are abundant in the literature, but few have been shown to be effective across a population [,]. Most medication adherence interventions have focused on structural factors outside of the individual (simplification of the regimen, refill reminders, etc) or on behavior change interventions that target reflective or deliberative factors, such as patient education []. As at least half of our daily behaviors are nonreflective, but rather habitual [], interventions that target these habitual processes may be more successful than education or persuasion-based interventions.
Habits are defined as automatic behaviors responding to recurring environmental cues []. As stronger medication-taking habit has been shown to be associated with better medication adherence [,-], in particular its implementation component, some successful interventions have focused on improving habit [,]. However, medication-taking habit, and habit in general, is difficult to quantify []. Conventional habit metrics are self-reported [], with an important example being the Self-Reported Habit Index [], a 12-item questionnaire. Another example is the Self-Reported Behavioral Automaticity Index [], a 4-item subset of the Self-Reported Habit Index. These and other self-reported indices endure common limitations associated with self-reported metrics, such as social desirability bias and poor patient recall [].
Medication-taking habit can also be assessed using objective medication-taking data []. Such data is collected using smart medication packages, which can take several forms: an electronic cap fitted on a medication bottle [], an inhaler with a chip embedded [], a blister that detects when a pill is expressed out of a cavity, etc. The common feature of smart medication packages is that they passively timestamp each time a patient accesses their medication, thus providing objective data on when a patient takes their medication. This detailed information can be used to derive habit metrics quantifying the consistency of medication intake behavior over time [,]—the validity of which rests on the fact that habits are context-stable responses to conditioned cues. Such habit metrics are objective and do not endure the limitations associated with self-reported habit.
Day-to-day consistency of the timing of medication intake is frequently used as an objective habit metric. It has been operationalized as the variance of the hour of intake [], its SD [,], or the proportion of medication intakes occurring in a fixed-size window, for instance, 2 [,,], 3 [,], or 4 hours [].
These day-to-day consistency measures will penalize someone for having different routines on different days of the week (for instance, systematically taking their medication at 6 PM on weekdays and 10 PM on weekends). However, this feature might not be desirable if the cue for medication-taking (eg, breakfast) is the same throughout the week, reflecting a good medication-taking habit. To overcome this limitation, Phillips et al [] recently introduced another metric, called the weekly cross-correlation, based on the weekly consistency of intake timing. In this metric, the medication intake timing of each day of a given week is compared to the corresponding day of the next week.
Recently also, Hoo et al [] introduced a “pragmatic habit index” empirically defined as the product of 2 variables: stability, measured as the SD of the hour of intake and frequency, measured as the proportion of prescribed doses taken. Introducing behavioral frequency in a habit index has been criticized [], as it incorporates the dependent variable of interest (behavior frequency) in the predictors.
In a recent study on 79 patients with type 2 diabetes, objective habit metrics were found to correlate with objective medication adherence []. The goal of this paper is to reinvestigate this correlation on a 200-fold larger dataset covering multiple pathologies, introduced in the next section.
The main hypothesis is that a more consistent medication-taking habit is correlated to better medication adherence.
This study was a retrospective cohort study. AARDEX Group’s database, the Medication Event Monitoring System (MEMS; AARDEX Group) Adherence Knowledge Center was used as the data source. This database contains anonymized electronic medication adherence data from ambulant participants enrolled in clinical studies that ran between 1989 and 2016. These participants’ medication adherence was electronically monitored using the MEMS. The following selection criteria were used: (1) once-daily medication with (2) a follow-up longer than 14 days. This second criterion was required because 14 days is the minimum duration needed to compute the weekly cross-correlation. These selection criteria matched data from 15,818 participants totaling 3,053,779 medication intakes.
Ethical ConsiderationsHuman Participants’ Ethics Review Approval or ExemptionsApproval from an institutional review board was not required for the present analysis, as it consists of secondary research for which the identity of the participants is unknown, per Title 45 of the Code of Federal Regulations Part 46, Subpart A, Section 46.104, Paragraph (d)(4)(ii) []. The original data collection for all studies included in this analysis was approved by institutional review boards.
Informed ConsentData were obtained from participants enrolled in clinical studies. As such, the participants provided informed consent for the procedures of the original studies. These procedures required participants to store their medication in electronic medication packages. Participants were informed that these electronic medication packages recorded their medication intakes. The original study procedures also included using the generated data to monitor the participants’ dosing history and analyze their medication intake behavior. As a consequence, informed consent was not sought for this secondary analysis, because it corresponds to the use of the data that was originally presented to participants.
Privacy and ConfidentialityThe data in AARDEX Group’s database, the Adherence Knowledge Center, is anonymized.
Compensation Details:Participants were compensated for their participation in the original clinical studies. Compensation modalities varied between studies and countries, and the authors do not possess information about the compensation process, which was managed by the sponsors of the original studies.
Objective Habit MetricsFor each participant, 2 objective habit metrics were computed. The first objective habit metric is the SD of the day-to-day hour of intake. The hours and minutes are extracted for each medication intake timestamp, irrespective of the date of intake, and the SD of the resulting list of hours and minutes is computed. The lower the SD, the more consistent a person is in the timing of their medication intakes. In the extreme case, when SD equals 0 h, all intakes occur at exactly the same time of the day.
The second objective habit metric is the “weekly cross-correlation” introduced by Phillips et al []. This metric compares each day of a given week with the corresponding day of the next week and quantifies whether intakes occurred around the same time on these 2 days. To do so, medication intakes are represented in a 2D matrix, denoted A, of dimensions 24 × Ndays, with Ndays being the number of follow-up days. The matrix is initially filled with zeros. Each medication intake occurring on day l at hour k is translated as a value of 1 for element A[k,l]. Then, each element A[k,l] of the matrix is multiplied by its matching element from the previous week, A[k,l – 7]. If intakes occur at the same time from week to week, the product will be close to 1. Otherwise, it will be close to zero. Finally, the weekly cross-correlation is equal to the sum of all element-wise products divided by the Euclidean norm of A. More details and code explaining how to compute these metrics are presented in . As the pragmatic habit index incorporates adherence, it was not included in the present analysis.
Implementation Adherence MetricsMedication adherence, more precisely its implementation component [], was quantified as the proportion of correct days, that is, the proportion of days with exactly 1 intake. A second implementation metric was used: the proportion of doses taken. The proportion of doses taken was computed as the ratio between the total number of doses taken and the prescribed number of doses. In this work, since participants were on a once-daily regimen, the prescribed number of doses was equal to the number of follow-up days. If a participant discontinued treatment too early, the analysis was limited to the period during which the participant was on treatment.
The hypotheses were that (1) SD of the day-to-day hour of intake would be negatively correlated to objective adherence (the more variable the hour of intake, the worse the adherence); (2) the weekly cross-correlation would be positively correlated to objective adherence (the more consistent the pattern of intakes, the better the adherence); and (3) the weekly cross-correlation would be more strongly correlated to objective adherence than the SD of the hour of intake.
All dosing history data were compiled while patients were engaged with the monitored medication in the trial. Therefore, noninitiation and nonpersistence are not part of the adherence evaluation in this research.
Statistical AnalysesContinuous variables were reported using medians and first and third quartiles. Categorical variables were reported using counts and proportions. Pairwise correlations between continuous variables were assessed using the Spearman rank correlation coefficient. Correlation coefficients were converted using Fisher Z-transformation to obtain CIs [,]. Correlation coefficients were compared by performing a z-test on the difference between their Fisher Z-transformations [,]. The proportion of variance in adherence explained by habit was quantified using the Pearson correlation coefficient, squared []. Analyses were performed using Python 3 (Python Software Foundation) [].
The 15,818 participants whose data was extracted from the MEMS Adherence Knowledge Center took part in 108 clinical studies. These studies enrolled a median of 59 (IQR 22-169) participants. presents the characteristics of the population.
presents the distributions and pairwise plots for the 4 variables of interest: proportion of correct days and proportion of doses taken as 2 objective measures of adherence, and SD of the hour of intake and weekly cross-correlation as 2 objective habit metrics. According to the 2 top-left diagonal panels, the proportion of correct days ranges between 0 and 1 by definition, while the proportion of doses taken ranges between 0 and 1.5 indicating that some participants took more doses than prescribed. The scatter plots also show that the proportion of doses taken is correlated to the proportion of correct days. In addition, the first is always superior to the second, which is a consequence of their definition.
According to the 2 bottom-right diagonal panels of , the SD of the hour of intake ranges between 0 and 12 hours, while the weekly cross-correlation ranges between 0 and 1. These two findings are direct consequences of the definitions of these variables. According to the scatter plots, these 2 variables are negatively correlated, indicating that a larger consistency in day-to-day timing (low SD hour of intake) is associated with a larger consistency in week-to-week timing (high weekly cross-correlation).
presents the associated correlation coefficients. All 4 Spearman correlation coefficients were significantly different from zero (T scores for the significance of the coefficients, from left to right and top to bottom: –61.48, –10.70, 104.11, and 48.59 with a df of 15,816, all P<.001).
According to and , the correlation between the SD of the hour of intake and objective adherence (measured using the proportion of correct days or proportion of doses taken) has a negative sign, indicating that, as hypothesized, the more day-to-day consistency in timing the higher the adherence. and also show that the weekly cross-correlation is positively correlated to objective adherence, meaning that the more consistent a person’s medication intake pattern is from week to week, the higher their medication adherence, which is also in line with the hypotheses.
The comparison of the Spearman correlation coefficients presented in shows that the SD of the hour of intake is more strongly correlated to the proportion of correct days than the weekly cross-correlation is (95% CI for the difference between absolute values of Spearman coefficients: 0.05 to 0.09, z score for this difference=21.46, P<.001), conversely to what was hypothesized. On the other hand, the weekly cross-correlation is more strongly correlated to the proportion of doses taken than the SD hour of intake is (CI for the difference between absolute values of Spearman coefficients: 0.25 to 0.21, z score for this difference=9.45, P<.001), as hypothesized.
Habit accounts for about 30% of the variance in medication adherence, measured using the proportion of correct days: 29.18% for SD of the hour of intake (95% CI 29.17% to 29.19%) and 31.25% for the weekly cross-correlation (95% CI 31.24% to 31.26%). When medication adherence is measured using the proportion of doses taken, the proportion of variance explained by habit is smaller: 4.91% for the SD of the hour of intake (95% CI 4.91% to 4.92%) and 15.74% for the weekly cross-correlation (95% CI 15.73% to 15.75%).
Table 1. Population characteristics.PathologyValuesHypertension, n (%)4737 (30)Osteoporosis, n (%)3353 (21)Viral hepatitis, n (%)2005 (13)Hypercholesterolemia, n (%)1246 (8)Angina, n (%)968 (6)AIDS, n (%)754 (5)Depression, n (%)561 (4)Diabetes, n (%)549 (3)Reversible airway obstruction, n (%)397 (3)Heart failure, n (%)334 (2)Attention-deficit/hyperactivity disorder, n (%)301 (2)Colorectal polyp, n (%)192 (1)Others, n (%)421 (3)Follow-up duration (days), median (IQR)168 (60-365)Proportion of correct days (%), median (IQR)93.3 (83.7-97.7)Proportion of doses taken (%), median (IQR)100 (93.7-101.8)SD hour of intake (h), median (IQR)1.7 (1-2.7)Weekly cross-correlation, median (IQR)0.54 (0.38-0.69)This work showed that medication-taking habit is positively correlated to medication adherence in a very large, cross-pathology population of participants enrolled in clinical studies. Medication-taking habit was quantified using 2 measures of the consistency in the timing of medication intakes: day-to-day and week-to-week. The implementation component of medication adherence was quantified using 2 measures: the proportion of correct days and the proportion of doses taken. The conclusion was the same irrespective of the habit or adherence measure: the stronger the habit, the better the medication adherence.
The results showed no clear superiority of any of the 2 objective habit metrics per the strength of their correlation with adherence. The correlation of objective habit metrics with self-reported habit metrics, which are the most frequently used habit metrics, might be used to differentiate the 2 objective habit metrics. Previous studies exploring this correlation are discussed in the next section.
Comparison to Prior WorkThe link between objective habit metrics and medication adherence has been investigated in very few other studies. The first one [], performed by the authors on a much smaller dataset, reported very similar results: (1) a negative correlation between a measure of day-to-day variability and the proportion of correct days and (2) a positive correlation between the weekly cross-correlation and the proportion of correct days. The second one [], previously discussed, used a habit metric incorporating adherence and reported an expected correlation between these 2 quantities.
Over 700 determinants of adherence have been reported []. Among all these determinants, objective habit strength seems to be an important one, as it explained over 30% of the variance in medication adherence in this work. This observation empirically justifies studying objective medication-taking habit.
A question related to the present work is whether people use time-based cues for taking their medications []. To answer this question, the proportion of participants having 95% of their intakes in a 1-hour window was computed. Only 3.6% of participants met this criterion. In a previous study [], 21.7% of participants reported taking their medication at a specific time of the day. These numbers mean that a minority of patients rely on cues triggered by the clock and take medication at the same time every day. This finding might explain why reminders for medication adherence sent at a specific time of the day can be ineffective [].
Few studies have studied how well objective habit metrics for medication adherence correlate with conventional self-reported habit metrics. SD or other metrics of day-to-day consistency were found to correlate with self-reported habit in 2 studies [,], but not in a third one []. Weekly cross-correlation was found to correlate with self-reported habits in 1 study [].
Strengths and LimitationsFirst, the 2 objective habit metrics used in this study are measures of consistency in timing, day-to-day, or week-to-week. However, not all habits translate into consistency in timing, and consistency in timing can originate from other factors than habit []. In such cases, the objective habit metrics will not reliably quantify the presence or absence of habit. On the other hand, the objective consistency metrics have the advantage that they do not endure biases associated with self-reported habit metrics, such as recall bias.
Second, the dataset used in this paper was very large, so the findings are likely to be generalizable to the whole population of participants enrolled in clinical trials. On the other hand, no conclusion about a specific disease, population, or time can be drawn, because there would be a large confounding influence of the underlying study design and specific medication characteristics. The main result is that, in general, adherence is related to objective habit.
Third, in this study, habit and medication adherence were computed over a participant’s whole follow-up, until treatment discontinuation. However, for a single participant, habit strength may have changed throughout the duration of this study, for instance, because of the introduction of a new device for medication adherence monitoring. The evidence on the effects that electronic adherence monitoring causes on adherence itself is unclear [,]. The effects of electronic adherence monitoring on medication-taking habit have never been studied, to the best of the authors’ knowledge.
Another reason that may have caused individual changes in habit strength is that some of the studies analyzed were testing habit-building interventions. In such settings, the objective habit metrics used in this paper can be computed over shorter periods to capture the dynamics of habit formation and maintenance. For instance, in the case of a specific habit-building intervention, Pironet et al [] observed that habit strength increased after a 6-month intervention and remained stable 6 months after the intervention was stopped.
Future DirectionsIf a patient’s implementation adherence is measured electronically, their habit can be computed continuously from the recorded data and serve as a support for an intervention, in-person or through a mobile app. The intervention could focus on providing support to build a better medication-taking habit. An example of such a mobile intervention is presented in the study by Stawarz et al [].
This work investigated the relationship between habit and the implementation component of medication adherence. Other, evenly important questions are whether objective habit indices predict the quality of implementation over the longer term, and if objective habit indices predict early treatment discontinuation.
ConclusionIn this study, the correlation between objective habit metrics, computed from electronic medication intake data, and objective medication adherence was assessed in a large database of participants enrolled in past clinical trials. The 2 objective habit metrics tested in this work were correlated to the 2 objective adherence metrics. These 4 pairwise correlations all imply that a lower variability in the pattern of medication intakes, be it day-to-day or week-to-week, is correlated with higher medication adherence. However, no variability is not the norm.
Objective habit metrics allow us to better identify patients who might benefit from habit-building support. If a patient uses electronic monitoring, the habit metrics can even be automated and computed in real time, directly reflecting habit changes and allowing for timely intervention. In addition, some effective interventions for medication adherence are based on developing or improving habits []. In such settings, electronic monitoring can be used to assess the effect of the habit-building intervention in real time [].
The authors wish to thank Eric Tousset, MSc, from AARDEX Group for his help with the statistical analyses. No generative artificial intelligence model was involved in any portion of this work.
The individual values of objective medication adherence (proportion of correct days and proportion of doses taken) and objective habit (SD of the hour of intake and weekly cross-correlation) can be downloaded on AARDEX Group’s website, in the section “Knowledge Center.”
AP handled the conceptualization, data curation, formal analysis, methodology, visualization, and writing of the original draft. BV worked on the conceptualization, methodology, supervision, visualization, and review and editing of the writing. LAP did the conceptualization, methodology, supervision, and review and editing of the writing.
AP is an employee of AARDEX Group. BV is a shareholder of AARDEX Group. AARDEX Group commercializes the MEMS, the hardware and software that was used to record the electronic medication adherence data used in this study.
Edited by T de Azevedo Cardoso; submitted 05.07.24; peer-reviewed by B Gardner, I Ghai, S Linnemayr; comments to author 12.09.24; revised version received 04.11.24; accepted 08.01.25; published 06.02.25.
©Antoine Pironet, L Alison Phillips, Bernard Vrijens. Originally published in the Interactive Journal of Medical Research (https://www.i-jmr.org/), 06.02.2025.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Interactive Journal of Medical Research, is properly cited. The complete bibliographic information, a link to the original publication on https://www.i-jmr.org/, as well as this copyright and license information must be included.
Comments (0)