Introduction

Fears of harming oneself or others and pathological doubt about whether harm has been caused are amongst the most common symptoms of obsessive–compulsive disorder (OCD) [1,2,3]. Patients often report fears associated with driving vehicles, such as fears of running over pedestrians or being ‘careless’ and responsible for causing traffic accidents. These symptoms can be very debilitating and are sometimes referred to as ‘hit-and-run’ OCD [4]. Obsessions and doubt are nearly always associated with extensive avoidance behaviour (e.g., avoiding certain roads; not driving at all), compulsive checking (e.g., rear-view mirror checking; ‘is the hand brake on?’), and reassurance seeking (e.g., ‘did I run over that person?’; ‘what if that bump on the road was a body under the wheels?’; ‘how do I know that I did not hit somebody with the car?’). This constellation of symptoms may suggest that individuals with OCD are probably cautious drivers and might actually be less likely to be involved in transport accidents or be convicted due to traffic offenses, compared to individuals without OCD.

On the other hand, there are several factors that may increase the risk of transport accidents in persons with OCD. Performing checking rituals while on the road (e.g., turning back to check if somebody has been run over) may lead to distraction, one of the main causes of traffic accidents [5]. Most individuals with OCD have psychiatric comorbidities, some of which are known to be strongly associated with increased risk of transport accidents, such as attention-deficit/hyperactivity disorder (ADHD) [6, 7]. However, in the absence of published literature on the topic, whether OCD is associated with an increased, similar or even decreased risk of transport accidents is unknown. If individuals with OCD had similar or lower risks of transport accidents, compared with the general population, it would provide useful information for licensing authorities, clinicians, and the patients themselves, who would benefit from having access to objective data.

The main aim of this population-based study was to investigate whether individuals with OCD have an increased risk of transport accidents resulting in injuries or deaths and an increased risk of convictions due to traffic offenses, compared to individuals from the general population and their unaffected full siblings. The sibling design allows for a stricter control of potential unmeasured confounders, such as shared familial factors (e.g., genetic factors, socioeconomic status of the family or parental education), which may influence both OCD and the risk of transport accidents. The second aim was to establish the extent to which the association between OCD and transport accidents or convictions, if found, is explained by coexisting psychiatric comorbidity. In particular, we were interested in ADHD, which is frequently comorbid with OCD (around 19% of OCD cases have also ADHD) [8] and strongly associated with transport accidents [6, 7].

We hypothesized that individuals with OCD would have a similar risk of transport accidents, as well as a similar risk of convictions due to traffic offenses, compared to individuals from the general population. We further hypothesized that a subset of individuals with OCD and comorbid ADHD would have significantly higher risks, compared to individuals from the general population.

Method

Data sources

This population-based cohort study linked data from a number of nationwide registers in Sweden, by means of the unique personal identification numbers assigned to all Swedish residents at birth or immigration [9]. The linked registers included: (1) the Total Population Register, containing information on demographic variables (e.g., sex, birth date) and migration data for all Swedish residents since 1968 [10]; (2) the National Patient Register (NPR), which includes information on diagnoses, based on the Swedish version of the International Classification of Diseases (ICD), given in inpatient care settings (from 1964 and from 1973 for somatic and psychiatric data, respectively, with full coverage from 1987) and specialist outpatient services (from 2001) [11]; (3) the National Crime Register, including all convictions in Swedish district courts since 1973 [12]; (4) the Cause of Death Register, which covers all dates and causes of death, based on ICD codes, of Swedish residents since 1952 [13]; (6) the Prescribed Drug Register, which records all prescribed drugs since July 2005 [14]; and (7) the Multi-Generation Register, which contains information on the parents of all individuals born in Sweden from 1932 or ever registered in the country since 1961 [15].

Study population

Figur 1 shows the numbers of included and excluded individuals. The study population included all individuals born in Sweden before 1995 who were living in the country anytime between 1997 (introduction of the tenth revision of the ICD manual [ICD-10] in Sweden) and 2013 (end of the study period) with available information on their biological mother (n = 6,335,789). We excluded individuals that had died or emigrated prior to 1997 or before age 18 (n = 425,555). Additionally, we excluded those individuals ever diagnosed with epilepsy (ICD-10 codes G40-G41), organic brain disorder (F00-F09) or mental retardation (F70-F79) (n = 149,500) since these conditions are known to interfere with driving [16, 17]. The final cohort included 5,760,734 individuals followed up from January 1, 1997 or their 18th birthday (because in Sweden a driver’s license can only be obtained from age 18), whichever occurred last, until the date of any of the outcomes of interest (see below), emigration, death or the end of the follow-up (December 31, 2013), whichever occurred first.

Fig. 1
figure 1

Study population. OCD obsessive-compulsive disorder

Measures

Individuals with an ICD-10 diagnosis of OCD (F42)—registered at age ≥ 6 to avoid diagnostic misclassification [18]—during the study period (i.e., 1997–2013) were collected from the NPR. The ICD-10 codes for OCD in the Swedish NPR have excellent validity and reliability [19]. A ‘lifetime diagnosis’ refers to the diagnosis of OCD recorded in the NPR any time between 1997 and the end of the study period. This is because OCD is an early onset disorder [1] but substantial delays in help-seeking or diagnosis are characteristic of the disorder [20,21,22]; hence, the recorded date of first diagnosis in the NPR is a poor reflection of the disorder’s actual date of onset. We therefore assume that individuals with a diagnosis of OCD were exposed from the start of follow-up, irrespective of the actual date of diagnosis.

We focused on three related outcomes: records of injuries or deaths due to transport accidents in general, records of injuries or deaths specifically due to motor vehicle accidents, and convictions related to traffic offenses. Records of diagnoses and dates of injuries or deaths due to transport accidents (ICD-10 codes V01-V99) were collected from the NPR and the Cause of Death Register, respectively, if recorded at the age of 18 years or above. These measures refer to a broad group of accidents, including those related to motor vehicles and other transport accidents (e.g., pedestrians or cyclists injured in collision with vehicles). Further analyses specifically focused on the subgroup of motor vehicle accidents (ICD-10 codes V20-29 [motorcycle rider injured in transport accident], V30-V39 [occupant of three-wheeled motor vehicle injured in transport accident], V40-V49 [car occupant injured in transport accident], V50-V59 [occupant of pick-up truck or van injured in transport accident], and V60-V69 [occupant of heavy transport vehicle injured in transport accident]). Additionally, from the National Crime Register, we collected all cases of convictions related to traffic offenses (i.e., reckless driving, hit-and-run offenses, causing death or injury by driving, and moving violations) and the dates of perpetrating the corresponding traffic offenses [23].

From the NPR, we also obtained data on diagnoses of psychiatric disorders recorded in 1997–2013 in order to explore their potential impact on the association between OCD and outcomes of interest. The corresponding ICD-10 codes were retrieved for psychiatric disorders, which were grouped into: (1) autism spectrum disorders (ASD), (2) ADHD (complemented with data from the Prescribed Drug Register on medications used in Sweden for the treatment of this disorder) [24], (3) conduct disorder, (4) anxiety disorders, (5) post-traumatic and other stress-related disorders, (6) eating disorders, (7) depression and other mood disorders, (8) bipolar disorders, (9) schizophrenia and other psychotic disorders, (10) substance use disorders, and (11) dissocial personality disorder (see Supplementary Table 1).

Information on sex and birth year (categorized by 10-year increments) was collected from the Total Population Register.

Statistical analysis

We conducted five planned analyses. First, we used Cox proportional hazards regression models to estimate hazard ratios (HRs) with 95% confidence intervals (CIs) for the risk of transport accident injuries or deaths and, separately, for the risk of convictions due to traffic offenses, in individuals with ICD-10 diagnoses of OCD, compared to unexposed individuals, with age in years as the underlying time-scale. For injuries and deaths, the analyses included, first, all transport accidents (ICD-10 codes: V01-V99) and, in a subsequent analysis, only the subgroup of motor vehicle accidents (ICD-10 codes: V20-V69). These analyses included the full study cohort of 5,760,734 individuals and all models were initially adjusted for sex and birth year. Tests for interaction indicated that sex modified the association of OCD with two out of three outcomes (for all transport accidents: p-value for heterogeneity < 0.001; for motor vehicle accidents: p = 0.001; for convictions: p = 0.585). Therefore, all analyses were also stratified by sex. To account for effect modification by sex on the association of OCD with transport accidents and motor vehicle accidents (but not convictions), we incorporated an interaction term (OCD × sex) to sex-and birth year-adjusted models for the analysis of the whole cohort.

Second, to reduce the potential bias due to the lack of data coverage (e.g., if the outcome occurred before the start of the follow-up), the main analyses were repeated in a sub-cohort of individuals born from 1979 (i.e., aged ≤ 18 years in 1997) with follow-up available from age 18. This analysis ensures capturing all incident outcome cases and prevents non-differential misclassification of outcome (i.e., if an individual who reached 18 years prior to 1997 had an outcome of interest before the start of follow-up, but appeared to be event-free during the study period).

Third, to address the potential issue of immortal time bias, we excluded individuals with a first recorded OCD diagnosis after age 18 from the sub-cohort born from 1979, and compared the remaining individuals with OCD to the unaffected population. This addresses the concern that individuals with a first OCD diagnosis after age 18 will contribute survival time without being able to have the outcome of or being censored by death before the registered diagnosis, a time period where they statistically are considered ‘immortal’.

Fourth, for the sibling analyses, we identified all individuals with a diagnosis of OCD with information on both parents available from the Multi-Generation Register and then linked them to their full siblings (i.e., those sharing both parents). Family identification numbers were created for the linkage. By design, this comparison controls for potential familial confounders shared by full siblings, including unmeasured shared environmental factors (e.g., parental socioeconomic status, parental psychopathology) and about 50% of the genetic factors. We used stratified Cox proportional hazards regression models where each family was considered a stratum and all full siblings within a family were compared with each other in a way that unexposed siblings served as controls to the exposed ones. These models also initially adjusted for sex and birth year and, as above, an OCD × sex interaction term was then incorporated for the analyses of transport accidents and motor vehicle accidents.

Fifth, to explore the role of psychiatric comorbidities, we repeated the main analysis by adjusting the models for different groups of psychiatric disorders. While the comorbidities with onset in early childhood (e.g., ASD, ADHD, conduct disorder) can be assumed to confound the associations of interest, the role of other comorbidities is less clear as some of them may act as mediators rather than confounders. To avoid over-adjustment for comorbidities with a potential mediating effect, we adjusted for one group of comorbid disorders at a time.

All models were clustered by the identification number of the individual’s mother (for the analyses of the whole study population) or stratified by the family identification number (for the sibling comparison) and used a robust sandwich estimator of standard errors to account for non-independence of observations within families [25]. All tests employed two-tailed significance set at p < 0.05. Data management and analyses were performed using SAS, version 9.4 (SAS Institute Inc.) and STATA version 15.1 (StataCorp LLC, College Station, TX, USA), respectively.

Results

Descriptive statistics

Table 1 presents the characteristics of 5,760,734 members of the final study cohort (51.09% men; age range 18–65 at the start of follow-up), of which 23,126 individuals (41.66% men) had a diagnosis of OCD recorded in the NPR between 1997 and 2013. Among 9,635 men and 13,491 women with an OCD diagnosis, 79.38% and 82.99% individuals, respectively, had records of other psychiatric comorbidities, with anxiety disorders and depression and other mood disorders being the most common comorbidities.

Table 1 Sample characteristics of individuals with obsessive–compulsive disorder and of unaffected individuals from the general population, stratified by sex

Risk of serious transport accidents and convictions due to traffic offences

In total, 324,544 individuals had at least one record of injury or death due to a transport accident during the follow-up period (i.e., 1997–2013; mean follow-up: 13.78 years [standard deviation (SD): 5.08]). Among individuals with OCD, 6.86% were involved in serious transport accidents, compared to 5.63% in unaffected individuals, corresponding to no increased risk of this outcome (HR adjusted for sex and birth year [aHR] with an interaction term = 0.99 [95% CI 0.91–1.06]; Table 2). In analyses stratified by sex, men with OCD did not have an increased risk of transport accidents (aHR = 0.98 [95% CI 0.91–1.06]), whereas we observed a slight increased risk in women with OCD, compared to their unaffected counterparts (aHR = 1.20 [95% CI 1.13–1.28]; Table 2).

Table 2 Hazard ratios and corresponding 95% confidence intervals for the risk of injury or death due to transport accidents, motor vehicle accidents, and convictions due to traffic offenses among individuals with obsessive–compulsive disorder, compared to unaffected individuals from the general population (population cohort) and their unaffected siblings (sibling cohort)

Injuries or death specifically due to motor vehicle accidents were reported for 179,658 study participants, with 3.84% of OCD individuals and 3.12% of unaffected individuals having a record of motor vehicle accident under the study period (mean follow-up: 13.93 years [SD: 4.99]). Similar to the results seen for all transport accidents, women with OCD diagnoses had a slight increase in risk of motor vehicle accidents (aHR = 1.20 [95% CI 1.09–1.31]), compared to unaffected women, whereas no significant associations were observed among men (aHR = 0.92 [95% CI 0.84–1.02]) or both sexes combined (aHR with interaction term = 0.94 [95% CI 0.85–1.03]; Table 2).

During the follow-up, 20,817 cohort members had at least one recorded criminal conviction due to traffic offences (mean follow-up: 14.11 years [SD: 4.88]). The proportions of individuals with OCD and individuals from the general population with this outcome (0.42% and 0.36%, respectively) were not statistically different in either men or women (Table 2).

In the analysis of the sub-cohort limited to those followed from age 18, the risks for all outcomes attenuated slightly, resulting in weaker but still statistically significant associations of OCD with an increased risk of serious transport accidents and motor vehicle accidents among women (Supplementary Table 2). For the whole sub-cohort and for men, an inverse association of OCD with the risk of transport accidents and motor vehicle accidents was noted. The results for the risk of convictions due to traffic offences showed no significant association but should be interpreted with caution due to limited statistical power (n = 32 convictions in the OCD cohort). In the same sub-cohort, when we attempted to control for immortal time bias and compared individuals with OCD diagnoses at age ≤ 18 with their counterparts with no OCD diagnoses under the study, the HRs were further attenuated resulting in no significant associations for OCD and the risk of serious transport accidents and motor vehicle accidents in women (aHR = 1.08 [95% CI 0.85–1.38] and aHR = 1.08 [95% CI 0.77–1.51], respectively), and an inverse association for men (aHR = 0.67 [95% CI 0.49–0.92] and aHR = 0.52 [95% CI 0.34–0.79], respectively). The corresponding analysis for convictions due to traffic accidents was not feasible due to lack of statistical power.

Sibling comparison

In the study cohort, 1,772,146 families had at least two singleton children, of which 16,607 families included clusters of full siblings that were discordant for OCD, totalling 16,780 individuals with OCD and 26,761 unaffected siblings. The results of the sibling analysis were comparable to those in the main analysis for the whole cohort, indicating no significant associations between OCD and any of the outcomes of interest (Table 2).

Role of psychiatric comorbidities

Adjustment for psychiatric comorbidities attenuated all previously obtained HRs, indicating that the observed association of OCD with the outcomes of interest could be better explained by coexisting psychiatric disorders rather than by OCD per se (Table 3). That was, in particular, true for ADHD (as hypothesised), but also for anxiety disorders, post-traumatic and other stress-related disorders, depression and other mood disorders, and substance use disorders. Many of the estimates even became inverse (aHRs and 95% CIs below one), suggesting that the risks in individuals with OCD could be even lower than those among the general population.

Table 3 Hazard ratios and corresponding 95% confidence intervals for the risk of injuries and death due to transport accidents, motor vehicle accidents, and convictions due the traffic offenses in individuals with obsessive–compulsive disorder, compared to unaffected individuals from the general population, when adjusting for common psychiatric disorders (one disorder group at a time)

These findings were supported by the results of a series of post-hoc analyses where individuals with OCD were split by their comorbidity status (separately for each group of comorbid disorders) and compared to OCD-unaffected individuals (Fig. 2, Supplementary Table 3). In general, the co-occurrence of OCD with the above-mentioned comorbidities resulted in significant increase in the risk of the outcomes of interest. This was particularly obvious for comorbid ADHD, post-traumatic and other stress-related disorders, eating disorders, bipolar disorder, and substance use disorders. By contrast, in the absence of such comorbidities, individuals with OCD had either similar or even lower risks of these outcomes than general population individuals. Interestingly, comorbid OCD and ASD was associated with a reduced risk of some of the outcomes of interest.

Fig. 2
figure 2

Hazard ratios and corresponding 95% confidence intervals for the risk of injuries and death due to transport accidents in men (panel A) and women (panel B) with obsessive-compulsive disorder with and without psychiatric comorbidities (one disorder group at the time), compared to their unaffected counterparts from the general population. ADHD attention-deficit/hyperactivity disorder, ASD autism spectrum disorders, CD conduct disorder, CI confidence interval, HR hazard ratio, PTSD post-traumatic stress disorders, SCZ schizophrenia

Discussion

Using the Swedish population-based registers, we formally investigated whether OCD is associated with an increased risk of serious transport accidents, defined as accidents requiring a specialist visit or resulting in death, and criminal convictions due to traffic offences in a large nationwide cohort. The main findings were that women, but not men, with OCD had a small (approximately 20%) but statistically significantly increased risk of serious transport accidents, compared to their unaffected counterparts from the general population. Neither women nor men with OCD had a significantly different risk of convictions related to traffic offenses (i.e., reckless driving, hit-and-run offenses, causing death or injury by driving, and moving violations). In a sub-cohort of individuals followed from age 18, the results followed a similar pattern but some of the associations (i.e., total sample, men) were inverted, indicating that individuals with OCD may have a lower risk of serious transport accidents and motor vehicle accidents. However, this sub-cohort was also younger, which means that the follow-up period may have been too short to detect an effect. Analyses of the sibling cohort, which provide a stricter control of unmeasured familial confounding, revealed no statistically significant associations between OCD and any of the outcomes of interest. Finally, when psychiatric comorbidities were systematically adjusted for, the initial results were considerably attenuated, in particular when ADHD, anxiety disorders, post-traumatic and other stress-related disorders, depression and other mood disorders, and substance use disorders were controlled for. This resulted in non-significant or inverse associations, again suggesting that the risks in individuals with OCD may be comparable or even lower than that among the general population.

Additional post-hoc analyses confirmed and extended the results of the planned analyses. Specifically, when the OCD cohort was split according to comorbidity status (one comorbidity group at a time), it was evident that certain comorbidities significantly increased the risk of serious transport accidents and criminal offences. In line with our initial hypothesis, comorbid ADHD increased the risk of all outcomes in both men and women with OCD, with HRs ranging from 1.32 to 2.72. In Tourette syndrome, a closely related disorder, ADHD comorbidity was also the single most important contributor to the increased risk of serious transport accidents in that patient group [26]. In general, these findings are in line with the known association between ADHD and traffic accidents [6, 7]. By contrast, for individuals with OCD who did not have comorbid ADHD, the results were much weaker: either marginally significant (only for women), non-significant or even inverse (for example, men with OCD and no ADHD had a 17% lower risk of motor vehicle accidents than men from the general population).

A number of other comorbidities also had a deleterious impact on the outcomes of interest, in particular anxiety disorders, stress related disorders, substance use disorders, and dissocial personality disorder. For example, individuals with OCD who had comorbid substance use disorders had significantly higher risks of all three outcomes of interest, with HRs ranging from 1.50 to 2.95. Again, individuals without such comorbidity had either negligible risks (only women with OCD) or even significantly lower risks than the population controls. Perhaps unsurprisingly, individuals with comorbid dissocial personality disorder had the highest risk of driving-related criminal convictions, though the confidence intervals were broad due to a small number of cases with such comorbidity. Interestingly, we found that individuals with OCD and comorbid ASD had a significantly reduced risk of serious transport accidents. Given the difficulties with driving experienced by autistic individuals [27, 28], we speculate that individuals with a diagnosis of ASD may be less likely to drive regularly or to obtain a driver’s license [29].

It is important to note that the proportion of persons with OCD involved in a serious transport accidents and related criminal offences was small, even in comorbid cases. For example, only 6.86% of all OCD patients (regardless of comorbidity status) were involved in serious transport accidents compared to 5.63% from the general population. The corresponding figures for motor vehicle accidents were even smaller (3.84% and 3.12%, respectively) and driving-related criminal convictions were very rare events (0.42% and 0.36%, respectively). Collectively, these results indicate that the risk of serious transport accidents in OCD is negligible. The marginally increased risk observed in women is likely to reflect the relatively lower rate of these outcomes in the general female population, rather than absolute differences in risk between women and men with OCD.

Implications for clinical practice and vehicle licensing agencies

First and foremost, clinicians are advised to share our results with their patients who struggle with ‘hit-and-run’ OCD, as many of these patients perceive themselves as constituting a serious danger to others. While this knowledge will not substitute the need for patients to practice exposure and response prevention tasks or carry out behavioural experiments during their cognitive behaviour therapy, having access to objective data from a nationwide study may be a powerful tool.

Second, managing of comorbidities that may potentially increase the risk of serious transport accidents in this group is important. In particular, there is good evidence that adequate management of comorbid ADHD is associated with a significantly reduced risk of severe road traffic injuries and deaths [6, 30]. It is currently unknown if successful treatment of other comorbid conditions will lead to further risk reduction in comorbid OCD cases.

From a licensing authority perspective, our data suggest that the majority of individuals with OCD will be able to drive safely, and therefore licensing agencies should not necessarily equate a diagnosis of OCD with an increased risk of serious transport accidents, even if some patients may perceive themselves as being a danger to others. Instead, any licensing decisions should be made on an individual basis and primarily focus on comorbid conditions, rather than the diagnosis of OCD itself.

Limitations

The results should be interpreted in light of some limitations. First, because the registers do not contain OCD severity information, we could not examine the impact of this potentially important variable on the risks. Neither did we have information on the patients’ individual symptoms, which means that we could not examine the risks of the outcomes of interest in individuals with specific fears of driving. Second, our study focused on outcomes requiring hospital/specialized outpatient clinic visits or deaths attributable to transport accidents. Thus, we had no access to information on milder accidents not requiring such care (e.g., individuals treated at primary care). Third, based on the available ICD codes for accidents, we cannot know whether the person involved in the accident was the driver or a passenger. However, we made the assumption that the probability of being involved in a transport accident as a passenger should not be higher for individuals with OCD than for individuals from the general population. Fourth, to our knowledge, there are no published data regarding the probability that individuals with OCD will obtain a drivers’ license or limit their driving; if individuals with OCD were less likely to obtain a license or to actually drive, compared to individuals from the general population, that would potentially result in an underestimation of the true risk of transport accidents in this patient group. Finally, the results of the sibling analyses need to be interpreted in light of the known limitations of such designs [31].