{'fraction_non_alphanumeric': 0.03477822580645161, 'fraction_numerical': 0.03225806451612903, 'mean_word_length': 5.2421383647798745, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Detecting undiagnosed atrial fibrillation in UK primary care: Validation of a machine learning prediction algorithm in a retrospective cohort study.

AIMS
To evaluate the ability of a machine learning algorithm to identify patients at high risk of atrial fibrillation in primary care.


METHODS
A retrospective cohort study was undertaken using the DISCOVER registry to validate an algorithm developed using a Clinical Practice Research Datalink (CPRD) dataset. The validation dataset included primary care patients in London, England aged ≥30 years from 1 January 2006 to 31 December 2013, without a diagnosis of atrial fibrillation in the prior 5 years. Algorithm performance metrics were sensitivity, specificity, positive predictive value, negative predictive value (NPV) and number needed to screen (NNS). Subgroup analysis of patients aged ≥65 years was also performed.


RESULTS
Of 2,542,732 patients in DISCOVER, the algorithm identified 604,135 patients suitable for risk assessment. Of these, 3.0% (17,880 patients) had a diagnosis of atrial fibrillation recorded before study end. The area under the curve of the receiver operating characteristic was 0.87, compared with 0.83 in algorithm development. The NNS was nine patients, matching the CPRD cohort. In patients aged ≥30 years, the algorithm correctly identified 99.1% of patients who did not have atrial fibrillation (NPV) and 75.0% of true atrial fibrillation cases (sensitivity). Among patients aged ≥65 years (n = 117,965), the NPV was 96.7% with 91.8% sensitivity.


CONCLUSIONS
This atrial fibrillation risk prediction algorithm, based on machine learning methods, identified patients at highest risk of atrial fibrillation. It performed comparably in a large, real-world population-based cohort and the developmental registry cohort. If implemented in primary care, the algorithm could be an effective tool for narrowing the population who would benefit from atrial fibrillation screening in the United Kingdom.