Patient ID int64 1.02k 10k | Age int64 18 75 | Gender stringclasses 2
values | Ethnicity stringclasses 4
values | Marital Status stringclasses 3
values | Education Level stringclasses 4
values | OCD Diagnosis Date stringdate 2013-11-13 00:00:00 2022-11-09 00:00:00 | Duration of Symptoms (months) int64 6 240 | Previous Diagnoses stringclasses 4
values | Family History of OCD stringclasses 2
values | Obsession Type stringclasses 5
values | Compulsion Type stringclasses 5
values | Y-BOCS Score (Obsessions) int64 0 40 | Y-BOCS Score (Compulsions) int64 0 40 | Depression Diagnosis stringclasses 2
values | Anxiety Diagnosis stringclasses 2
values | Medications stringclasses 3
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1,018 | 32 | Female | African | Single | Some College | 2016-07-15 | 203 | MDD | No | Harm-related | Checking | 17 | 10 | Yes | Yes | SNRI |
2,406 | 69 | Male | African | Divorced | Some College | 2017-04-28 | 180 | null | Yes | Harm-related | Washing | 21 | 25 | Yes | Yes | SSRI |
1,188 | 57 | Male | Hispanic | Divorced | College Degree | 2018-02-02 | 173 | MDD | No | Contamination | Checking | 3 | 4 | No | No | Benzodiazepine |
6,200 | 27 | Female | Hispanic | Married | College Degree | 2014-08-25 | 126 | PTSD | Yes | Symmetry | Washing | 14 | 28 | Yes | Yes | SSRI |
5,824 | 56 | Female | Hispanic | Married | High School | 2022-02-20 | 168 | PTSD | Yes | Hoarding | Ordering | 39 | 18 | No | No | null |
6,946 | 32 | Female | Asian | Married | College Degree | 2016-06-25 | 46 | GAD | No | Hoarding | Ordering | 26 | 11 | Yes | Yes | SSRI |
9,861 | 38 | Female | Hispanic | Single | College Degree | 2017-03-13 | 110 | MDD | No | Contamination | Praying | 12 | 16 | Yes | No | SNRI |
8,396 | 57 | Male | Hispanic | Divorced | College Degree | 2015-08-25 | 197 | PTSD | No | Religious | Ordering | 31 | 4 | Yes | No | SSRI |
9,039 | 36 | Male | Hispanic | Divorced | College Degree | 2016-09-19 | 84 | null | No | Harm-related | Praying | 37 | 24 | No | Yes | null |
1,580 | 72 | Female | Hispanic | Divorced | Graduate Degree | 2014-07-13 | 47 | GAD | Yes | Contamination | Ordering | 28 | 36 | Yes | Yes | Benzodiazepine |
9,672 | 21 | Female | African | Married | College Degree | 2014-12-18 | 95 | GAD | Yes | Harm-related | Checking | 40 | 26 | Yes | No | null |
7,905 | 73 | Female | Hispanic | Divorced | High School | 2017-01-13 | 233 | GAD | No | Religious | Counting | 4 | 16 | Yes | Yes | Benzodiazepine |
6,237 | 23 | Female | Hispanic | Married | High School | 2015-06-09 | 48 | Panic Disorder | No | Contamination | Praying | 14 | 27 | Yes | Yes | null |
4,456 | 68 | Female | Caucasian | Single | Some College | 2019-04-13 | 126 | MDD | No | Contamination | Counting | 10 | 39 | Yes | No | SSRI |
9,678 | 48 | Female | Caucasian | Divorced | High School | 2020-08-24 | 141 | MDD | Yes | Harm-related | Washing | 23 | 39 | No | No | SNRI |
8,070 | 29 | Male | Hispanic | Married | College Degree | 2022-08-24 | 108 | PTSD | Yes | Symmetry | Praying | 17 | 25 | No | Yes | SSRI |
5,003 | 25 | Male | African | Married | College Degree | 2021-01-20 | 206 | Panic Disorder | Yes | Religious | Counting | 7 | 21 | Yes | No | SSRI |
7,251 | 55 | Female | African | Divorced | High School | 2021-01-23 | 147 | null | Yes | Religious | Checking | 38 | 20 | No | Yes | Benzodiazepine |
8,271 | 50 | Female | African | Single | Some College | 2017-11-04 | 62 | null | Yes | Hoarding | Washing | 22 | 22 | No | No | null |
2,637 | 66 | Female | Asian | Divorced | College Degree | 2018-08-14 | 73 | Panic Disorder | No | Harm-related | Washing | 0 | 12 | No | Yes | SNRI |
6,778 | 27 | Male | Asian | Single | Graduate Degree | 2015-11-06 | 220 | PTSD | Yes | Religious | Ordering | 30 | 4 | Yes | Yes | Benzodiazepine |
9,354 | 62 | Male | Caucasian | Single | Graduate Degree | 2022-09-27 | 89 | PTSD | Yes | Religious | Counting | 1 | 40 | Yes | No | SNRI |
1,022 | 28 | Male | Caucasian | Single | College Degree | 2016-08-23 | 208 | PTSD | No | Contamination | Checking | 32 | 16 | No | No | SNRI |
8,818 | 43 | Male | Caucasian | Married | Graduate Degree | 2022-03-04 | 39 | GAD | No | Religious | Washing | 0 | 18 | Yes | Yes | Benzodiazepine |
3,552 | 21 | Female | Caucasian | Single | Some College | 2016-04-22 | 14 | Panic Disorder | No | Harm-related | Praying | 29 | 5 | Yes | No | Benzodiazepine |
4,560 | 55 | Female | Asian | Divorced | Graduate Degree | 2017-09-11 | 192 | MDD | No | Religious | Washing | 19 | 25 | Yes | Yes | SSRI |
5,366 | 47 | Male | Caucasian | Single | Some College | 2016-12-14 | 134 | GAD | No | Symmetry | Washing | 9 | 36 | Yes | No | null |
8,106 | 74 | Male | Asian | Divorced | College Degree | 2018-09-09 | 42 | GAD | Yes | Hoarding | Checking | 4 | 8 | Yes | No | null |
1,213 | 60 | Male | Asian | Divorced | College Degree | 2014-06-26 | 226 | MDD | No | Harm-related | Praying | 18 | 0 | Yes | No | SSRI |
7,992 | 28 | Male | Hispanic | Divorced | Graduate Degree | 2019-10-15 | 151 | GAD | Yes | Contamination | Counting | 31 | 13 | Yes | No | Benzodiazepine |
9,536 | 22 | Female | Asian | Divorced | College Degree | 2021-01-11 | 90 | Panic Disorder | No | Hoarding | Praying | 20 | 20 | No | Yes | Benzodiazepine |
6,831 | 28 | Male | Caucasian | Married | Some College | 2021-10-19 | 58 | Panic Disorder | Yes | Religious | Checking | 27 | 4 | No | No | null |
4,055 | 24 | Male | African | Divorced | Some College | 2017-01-15 | 58 | Panic Disorder | Yes | Harm-related | Praying | 34 | 0 | No | Yes | Benzodiazepine |
7,299 | 48 | Male | Hispanic | Married | Some College | 2021-02-27 | 193 | null | Yes | Religious | Counting | 23 | 12 | Yes | Yes | SNRI |
2,560 | 56 | Male | Caucasian | Married | Some College | 2020-03-19 | 49 | null | Yes | Harm-related | Counting | 20 | 22 | Yes | No | null |
2,995 | 73 | Female | Caucasian | Married | Graduate Degree | 2017-12-27 | 112 | Panic Disorder | No | Religious | Washing | 17 | 38 | Yes | No | SNRI |
1,356 | 70 | Female | Caucasian | Married | Graduate Degree | 2017-04-04 | 141 | Panic Disorder | Yes | Contamination | Praying | 37 | 25 | No | Yes | null |
2,955 | 33 | Male | Hispanic | Divorced | High School | 2019-05-22 | 160 | Panic Disorder | Yes | Symmetry | Praying | 38 | 21 | No | No | null |
7,042 | 41 | Female | Asian | Married | High School | 2014-12-30 | 134 | null | No | Hoarding | Washing | 8 | 31 | No | No | Benzodiazepine |
5,868 | 58 | Female | Caucasian | Married | High School | 2019-12-23 | 160 | PTSD | Yes | Religious | Washing | 36 | 4 | Yes | No | SSRI |
9,468 | 65 | Female | Hispanic | Married | Graduate Degree | 2018-11-01 | 134 | PTSD | Yes | Symmetry | Washing | 3 | 4 | Yes | No | SSRI |
1,660 | 58 | Male | Caucasian | Married | Some College | 2020-08-15 | 140 | GAD | Yes | Harm-related | Counting | 17 | 34 | No | No | Benzodiazepine |
5,148 | 49 | Female | Asian | Divorced | High School | 2020-07-13 | 193 | MDD | No | Hoarding | Washing | 9 | 24 | No | No | Benzodiazepine |
7,919 | 69 | Female | African | Divorced | Graduate Degree | 2019-01-28 | 217 | Panic Disorder | No | Hoarding | Washing | 28 | 37 | No | Yes | null |
7,493 | 37 | Male | Caucasian | Divorced | Graduate Degree | 2020-01-28 | 34 | MDD | Yes | Contamination | Washing | 37 | 40 | No | No | SSRI |
9,527 | 22 | Male | African | Single | Graduate Degree | 2016-02-25 | 207 | null | Yes | Harm-related | Ordering | 16 | 10 | Yes | No | SSRI |
2,164 | 63 | Male | Hispanic | Married | Some College | 2016-01-23 | 154 | MDD | No | Contamination | Washing | 13 | 15 | No | No | Benzodiazepine |
5,092 | 46 | Female | Caucasian | Married | Some College | 2016-08-25 | 11 | MDD | No | Religious | Washing | 40 | 1 | No | No | Benzodiazepine |
2,169 | 31 | Female | African | Single | College Degree | 2020-03-29 | 59 | MDD | Yes | Hoarding | Washing | 40 | 32 | No | Yes | null |
9,633 | 72 | Male | African | Divorced | Graduate Degree | 2014-07-25 | 22 | MDD | Yes | Religious | Washing | 28 | 5 | No | No | SNRI |
2,425 | 64 | Female | Asian | Single | Some College | 2015-10-05 | 108 | MDD | Yes | Religious | Counting | 23 | 3 | No | Yes | SNRI |
8,798 | 28 | Female | Asian | Single | Some College | 2018-04-29 | 92 | PTSD | No | Contamination | Checking | 40 | 21 | No | No | SNRI |
2,845 | 49 | Male | Hispanic | Married | Some College | 2017-02-21 | 236 | MDD | No | Harm-related | Counting | 36 | 28 | Yes | Yes | Benzodiazepine |
1,340 | 54 | Female | Asian | Married | Graduate Degree | 2021-04-01 | 65 | null | Yes | Contamination | Praying | 40 | 36 | No | Yes | Benzodiazepine |
8,432 | 49 | Male | African | Divorced | High School | 2017-08-09 | 47 | Panic Disorder | Yes | Religious | Washing | 11 | 9 | No | No | null |
2,947 | 61 | Female | Hispanic | Divorced | Some College | 2019-01-06 | 167 | MDD | No | Harm-related | Counting | 38 | 28 | No | No | SSRI |
1,698 | 49 | Female | Caucasian | Divorced | High School | 2014-11-18 | 24 | GAD | No | Religious | Praying | 23 | 26 | No | No | Benzodiazepine |
7,562 | 25 | Male | African | Married | Some College | 2021-07-17 | 84 | Panic Disorder | Yes | Symmetry | Checking | 29 | 3 | No | No | SSRI |
1,452 | 38 | Female | Caucasian | Divorced | High School | 2021-05-26 | 154 | PTSD | No | Contamination | Praying | 32 | 33 | No | No | Benzodiazepine |
8,419 | 19 | Male | African | Married | High School | 2014-07-11 | 90 | null | Yes | Harm-related | Ordering | 17 | 6 | Yes | No | SNRI |
3,816 | 43 | Male | Caucasian | Divorced | College Degree | 2018-08-04 | 229 | Panic Disorder | Yes | Harm-related | Praying | 35 | 32 | No | Yes | Benzodiazepine |
8,024 | 71 | Female | Asian | Single | Some College | 2018-03-10 | 85 | MDD | No | Symmetry | Praying | 29 | 28 | Yes | Yes | SNRI |
1,072 | 23 | Male | Asian | Single | Some College | 2020-03-31 | 83 | null | Yes | Contamination | Checking | 19 | 19 | No | Yes | SNRI |
3,465 | 31 | Male | African | Married | College Degree | 2019-07-27 | 222 | null | Yes | Religious | Praying | 28 | 6 | Yes | Yes | SSRI |
4,205 | 55 | Male | Hispanic | Divorced | Some College | 2016-04-20 | 33 | MDD | Yes | Hoarding | Washing | 2 | 20 | No | Yes | SNRI |
5,376 | 31 | Male | Hispanic | Divorced | High School | 2015-08-13 | 61 | PTSD | Yes | Hoarding | Washing | 13 | 8 | Yes | Yes | SNRI |
9,497 | 53 | Male | Asian | Single | Graduate Degree | 2014-07-28 | 160 | MDD | No | Hoarding | Counting | 15 | 22 | Yes | Yes | SSRI |
9,615 | 28 | Male | Caucasian | Married | Some College | 2019-12-27 | 151 | Panic Disorder | No | Contamination | Praying | 39 | 7 | Yes | No | SNRI |
4,850 | 23 | Female | African | Married | College Degree | 2017-05-10 | 49 | MDD | Yes | Contamination | Washing | 33 | 5 | No | No | Benzodiazepine |
6,112 | 23 | Female | Asian | Married | College Degree | 2019-05-17 | 67 | Panic Disorder | No | Religious | Counting | 15 | 10 | No | Yes | SNRI |
7,787 | 24 | Female | African | Married | High School | 2015-12-21 | 23 | MDD | No | Hoarding | Counting | 38 | 33 | Yes | No | Benzodiazepine |
5,730 | 31 | Female | Caucasian | Divorced | College Degree | 2021-01-29 | 118 | PTSD | Yes | Religious | Ordering | 8 | 30 | No | Yes | SSRI |
6,222 | 38 | Male | African | Divorced | College Degree | 2017-12-31 | 39 | null | No | Symmetry | Counting | 21 | 14 | Yes | Yes | SSRI |
6,219 | 50 | Female | Caucasian | Married | High School | 2022-03-20 | 88 | GAD | No | Hoarding | Checking | 23 | 2 | No | No | Benzodiazepine |
8,450 | 52 | Male | Hispanic | Single | Some College | 2021-10-26 | 156 | GAD | No | Religious | Washing | 37 | 25 | No | No | Benzodiazepine |
5,733 | 49 | Female | Asian | Divorced | Some College | 2015-03-22 | 119 | GAD | Yes | Religious | Checking | 23 | 1 | Yes | No | SNRI |
1,538 | 27 | Female | Caucasian | Divorced | College Degree | 2014-11-22 | 186 | Panic Disorder | No | Religious | Praying | 11 | 26 | No | No | SNRI |
6,514 | 49 | Female | Asian | Married | College Degree | 2019-02-03 | 92 | null | No | Harm-related | Ordering | 25 | 34 | No | Yes | Benzodiazepine |
4,884 | 56 | Male | Hispanic | Divorced | High School | 2022-10-16 | 125 | null | No | Harm-related | Checking | 18 | 16 | No | No | null |
7,430 | 54 | Female | Hispanic | Single | College Degree | 2022-01-25 | 172 | MDD | Yes | Harm-related | Counting | 22 | 23 | Yes | No | SNRI |
7,492 | 61 | Male | Hispanic | Divorced | Some College | 2017-06-04 | 17 | null | No | Religious | Praying | 20 | 31 | Yes | No | Benzodiazepine |
4,022 | 32 | Female | African | Single | Graduate Degree | 2018-07-25 | 26 | PTSD | No | Religious | Ordering | 31 | 32 | No | Yes | null |
1,840 | 56 | Male | Caucasian | Married | Graduate Degree | 2015-02-11 | 174 | GAD | Yes | Symmetry | Counting | 8 | 6 | No | Yes | SNRI |
4,652 | 35 | Female | Caucasian | Single | Graduate Degree | 2020-02-13 | 162 | MDD | No | Symmetry | Ordering | 12 | 40 | No | No | null |
5,525 | 51 | Male | Asian | Single | Graduate Degree | 2022-05-18 | 25 | MDD | Yes | Religious | Counting | 6 | 25 | Yes | No | SSRI |
1,288 | 59 | Male | Asian | Single | College Degree | 2015-09-06 | 61 | MDD | Yes | Hoarding | Counting | 39 | 11 | Yes | Yes | null |
7,362 | 42 | Female | Caucasian | Divorced | Graduate Degree | 2018-05-15 | 24 | MDD | No | Harm-related | Ordering | 25 | 38 | Yes | No | SNRI |
2,520 | 29 | Female | Caucasian | Divorced | High School | 2022-08-27 | 151 | PTSD | Yes | Religious | Praying | 14 | 35 | Yes | No | null |
8,234 | 61 | Male | Asian | Divorced | College Degree | 2015-12-18 | 207 | null | Yes | Symmetry | Praying | 10 | 27 | Yes | Yes | SNRI |
3,467 | 40 | Male | Caucasian | Single | College Degree | 2021-03-19 | 158 | Panic Disorder | No | Hoarding | Washing | 14 | 14 | No | Yes | SNRI |
2,839 | 39 | Male | Asian | Married | High School | 2016-06-27 | 223 | GAD | No | Hoarding | Ordering | 37 | 19 | Yes | Yes | null |
9,814 | 47 | Male | Hispanic | Divorced | Graduate Degree | 2019-11-02 | 167 | null | No | Harm-related | Counting | 16 | 9 | No | No | SNRI |
3,269 | 22 | Female | Hispanic | Single | Graduate Degree | 2019-05-23 | 222 | null | Yes | Contamination | Checking | 31 | 9 | Yes | No | SNRI |
7,013 | 73 | Female | Caucasian | Divorced | Graduate Degree | 2019-09-25 | 125 | MDD | Yes | Religious | Ordering | 7 | 1 | Yes | No | SNRI |
4,933 | 38 | Male | Asian | Single | Graduate Degree | 2017-02-27 | 83 | null | No | Harm-related | Checking | 36 | 15 | Yes | Yes | null |
7,683 | 69 | Female | Caucasian | Divorced | Some College | 2018-03-25 | 93 | PTSD | No | Harm-related | Praying | 40 | 14 | No | No | SSRI |
3,564 | 66 | Male | Asian | Single | Graduate Degree | 2022-03-31 | 33 | PTSD | Yes | Harm-related | Counting | 29 | 0 | No | Yes | Benzodiazepine |
5,606 | 26 | Female | African | Married | High School | 2022-07-02 | 24 | Panic Disorder | No | Religious | Ordering | 9 | 31 | No | No | null |
2,349 | 22 | Male | Asian | Divorced | College Degree | 2022-05-20 | 158 | MDD | No | Symmetry | Praying | 4 | 14 | No | No | SSRI |
6,251 | 49 | Male | Asian | Married | Graduate Degree | 2014-11-05 | 87 | GAD | Yes | Symmetry | Ordering | 13 | 21 | Yes | Yes | SSRI |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
OCD Severity Analysis - EDA Summary
Part 1 — Main Research Question Goal: identify the strongest contributors to OCD severity.
Severity metric: YBOCS_Total = Obsessions Score + Compulsions Score
We tested whether severity is predicted by:
- Family history of OCD -Depression / Anxiety diagnoses -Obsession type -Compulsion type -Duration of symptoms -Age / demographics -Medication type
Visual Results
External or demographic features do not explain OCD severity. The only strong correlation is between:
Obsessions intensity ↔ Compulsions intensity
Severity is not determined by what someone thinks, but by how strongly they reacts to the thought.
Part 2 - Sub-Analysis: Cognitive-Behavioral Reaction Profiles
To investigate the core finding, we created a behavioral metric: ReactionGap = Compulsions – Obsessions
Reaction Profiles: Resister (O > C) → strong intrusive thoughts, weak reaction Balanced (O ≈ C) → similar levels Reactive (C > O) → small intrusive thoughts, big compulsive reaction
Key Insight from Part 2:
Regardless of whether patients fight the thoughts (Resister), stay neutral (Balanced), or react strongly (Reactive), severity remains high when obsessions and compulsions move together.
Part 3 — Filtering Only the Low-Severity Group
To understand what protects certain patients, we isolated only:
SeverityGroup = "Low"
Key Insight from Part 3
Among patients with low OCD severity:
The most common pattern is having intrusive thoughts without escalating into compulsions.
In other words: Low-severity patients don’t stop the thoughts — they simply don’t react strongly to them.
Additional check:
Even patients with many years of OCD can remain low-severity — duration does not determine severity.
Final Takeaway
OCD severity is not driven by: Family history, Depression / Anxiety, Type of obsessions, Type of compulsions, Duration of symptoms, Medication
The single dominant driver is:
The intensity of the compulsive reaction to intrusive thoughts.
Clinical Interpretation
These findings support modern CBT / ERP / ACT approaches:
The goal is not to eliminate intrusive thoughts, but to reduce the behavioral reaction to them.
Presentation Link - https://www.youtube.com/watch?v=Wm_C3SJUzu4
- Downloads last month
- 3










