A Machine-Learning Algorithm to Optimise Automated Adverse Drug Reaction Detection from Clinical Coding

Drug Saf. 2019 Jun;42(6):721-725. doi: 10.1007/s40264-018-00794-y.

Abstract

Introduction: Adverse drug reaction (ADR) detection in hospitals is heavily reliant on spontaneous reporting by clinical staff, with studies in the literature pointing to high rates of underreporting [1]. International Classification of Diseases, 10th Revision (ICD-10) codes have been used in epidemiological studies of ADRs and offer the potential for automated ADR detection systems.

Objective: The aim of this study was to develop an automated ADR detection system based on ICD-10 codes, using machine-learning algorithms to improve accuracy and efficiency.

Methods: For a 12-month period from December 2016 to November 2017, every inpatient episode receiving an ICD-10 code in the range Y40.0-Y59.9 (ADR code) was flagged for review as a potential ADR. Each flagged admission was assessed by an expert pharmacist and, if needed, reviewed at regular ADR committee meetings. For each report, a determination was made about ADR probability and severity. The dataset was randomly split into training and test sets. A machine-learning model using the random forest algorithm was developed on the training set to discriminate between true and false ADR reports. The model was then applied to the test set to assess accuracy using the area under the receiver operating characteristic (AUC).

Results: In the study period, 2917 Y40.0-Y59.9 codes were applied to admissions, resulting in 245 ADR reports after review. These 245 reports accounted for 44.5% of all ADR reporting in our hospital in the study period. A random forest model built on the training set was able to discriminate between true and false reports on the test set with an AUC of 0.803.

Conclusions: Automated ADR detection using ICD-10 coding significantly improved ADR detection in the study period, with improved discrimination between true and false reports by applying a machine-learning model.

MeSH terms

  • Adverse Drug Reaction Reporting Systems / statistics & numerical data*
  • Algorithms
  • Clinical Coding / statistics & numerical data*
  • Drug-Related Side Effects and Adverse Reactions / prevention & control
  • Hospitalization / statistics & numerical data
  • Hospitals / statistics & numerical data
  • Humans
  • International Classification of Diseases
  • Machine Learning / statistics & numerical data*
  • ROC Curve