Frequent Pattern Mining for Early Risk Signal Detection in Population Health Data: Nationwide Retrospective Cohort Study
Background Many diseases often develop through sequences of related conditions over time. Identifying how diagnoses occur over time may help detect early risk signals before severe outcomes arise. Clinically significant patterns are limited because many population-level studies focus on disease co-occurrence rather than the temporal order of diagnoses. Objective The study aimed to identify and validate temporal disease associations using frequent pattern mining and statistical validation techniques in a nationwide patient-record database. Methods We analyzed health records of 3,987,382 Finnish patients. The records were transformed into patient timelines by using the date on which the first record was entered into the database. To identify the most common patterns for each unique disease, we applied the frequent pattern growth algorithm using a minimum support of 5% of patients with the target disease and at least 5 patients. To validate each pattern, we applied a combination of relative risk (RR), a 95% CI, and relative width to measure precision. Results We identified several clinically interpretable temporal disease connections. For example, acute kidney failure was most strongly preceded by unspecified kidney failure (RR 15.13, 95% CI 14.24‐16.07), chronic kidney disease (RR 11.02, 95% CI 10.53‐11.54), and sepsis (RR 9.76, 95% CI 9.27‐10.27). It was also grouped with heart failure–related combinations (RR 10.76, 95% CI 10.27‐11.27). Diabetic foot ulcer with type 1 or type 2 diabetes was strongly associated with osteomyelitis, with an RR of 157.02 (95% CI 137.03‐179.93) for type 1 and 84.84 (95% CI 77.07‐93.39) for type 2. At the block level, cerebrovascular diseases were linked to hypertension (RR 2.47; 95% CI 2.44‐2.49), atherosclerosis (RR 2.52; 95% CI 2.47‐2.58), and dementia (RR 2.96; 95% CI 2.90‐3.01). Drug poisoning patterns were also connected to psychiatric diagnoses, including mood disorders (RR 7.24, 95% CI 7.03-7.46) and combinations of alcohol and mood disorders (RR 18.25, 95% CI 17.51-19.01). The generated patterns and statistical measures are publicly available in a web interface for research purposes. Conclusions Frequent pattern mining, when integrated with RR/CI and precision filtering, produces clinically interpretable temporal connections that can support hypothesis generation. External validation with other datasets and cohorts is essential.
Authors
- Tiina K. Laatikainen (ORCID: https://orcid.org/0000-0002-6614-4782)
- Pasi Fränti (ORCID: https://orcid.org/0000-0002-9554-2827)
- Jimi Tuononen (ORCID: https://orcid.org/0009-0007-4763-0287)
- Sazid Nur Ratul (ORCID: https://orcid.org/0009-0007-4998-6543)
Publication Details
- Journal
- JMIR Medical Informatics
- Published
- 2026-11-26
- DOI
- https://doi.org/10.2196/94284
- Primary Topic
- Data Mining Algorithms and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00