| Literature DB >> 34797894 |
Kenichiro Nagata1, Toshikazu Tsuji1, Kimitaka Suetsugu1, Kayoko Muraoka1, Hiroyuki Watanabe2, Akiko Kanaya1, Nobuaki Egashira1, Ichiro Ieiri1.
Abstract
Overdose prescription errors sometimes cause serious life-threatening adverse drug events, while underdose errors lead to diminished therapeutic effects. Therefore, it is important to detect and prevent these errors. In the present study, we used the one-class support vector machine (OCSVM), one of the most common unsupervised machine learning algorithms for anomaly detection, to identify overdose and underdose prescriptions. We extracted prescription data from electronic health records in Kyushu University Hospital between January 1, 2014 and December 31, 2019. We constructed an OCSVM model for each of the 21 candidate drugs using three features: age, weight, and dose. Clinical overdose and underdose prescriptions, which were identified and rectified by pharmacists before administration, were collected. Synthetic overdose and underdose prescriptions were created using the maximum and minimum doses, defined by drug labels or the UpToDate database. We applied these prescription data to the OCSVM model and evaluated its detection performance. We also performed comparative analysis with other unsupervised outlier detection algorithms (local outlier factor, isolation forest, and robust covariance). Twenty-seven out of 31 clinical overdose and underdose prescriptions (87.1%) were detected as abnormal by the model. The constructed OCSVM models showed high performance for detecting synthetic overdose prescriptions (precision 0.986, recall 0.964, and F-measure 0.973) and synthetic underdose prescriptions (precision 0.980, recall 0.794, and F-measure 0.839). In comparative analysis, OCSVM showed the best performance. Our models detected the majority of clinical overdose and underdose prescriptions and demonstrated high performance in synthetic data analysis. OCSVM models, constructed using features such as age, weight, and dose, are useful for detecting overdose and underdose prescriptions.Entities:
Mesh:
Substances:
Year: 2021 PMID: 34797894 PMCID: PMC8604308 DOI: 10.1371/journal.pone.0260315
Source DB: PubMed Journal: PLoS One ISSN: 1932-6203 Impact factor: 3.240
Hyperparameters evaluated to find the best F-measure.
| Algorithm | Hyperparameter | Value |
|---|---|---|
| OCSVM | γ | 2−6, 2−5, 2−4, 2−3, 2−2, 2−1, 1, 2, 4, 8 |
|
| 2−10, 2−9, 2−8, 2−7, 2−6, 2−5, 2−4 | |
| LOF | k | 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 |
| contamination | 2−10, 2−9, 2−8, 2−7, 2−6, 2−5, 2−4 | |
| ISO | estimators | 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 |
| contamination | 2−10, 2−9, 2−8, 2−7, 2−6, 2−5, 2−4 | |
| RC | contamination | 2−10, 2−9, 2−8, 2−7, 2−6, 2−5, 2−4 |
Details of clinical overdose and underdose prescriptions and detection results by OCSVM models.
| Drug name (strength) | Age | Weight (kg) | Dose (/day) | O/U | Ratio to max/min | OCSVM |
|---|---|---|---|---|---|---|
| Acetaminophen fine granule (500 mg/g) | 64 | 49.6 | 3 mg | U | 0.02 | + |
| 68 | 51.1 | 3 mg | U | 0.02 | + | |
| Ambroxol hydrochloride dry syrup (15 mg/g) | 0 | 3.6 | 1.05 mg | U | 0.65 | - |
| 0 | 2.6 | 8 mg | O | 1.71 | - | |
| 1 | 10.8 | 90 mg | O | 4.63 | + | |
| Amlodipine besylate tablet (5 mg/tablet) | 71 | 74.9 | 20 mg | O | 2.00 | + |
| Aprepitant capsule (80 mg/capsule) | 59 | 51.6 | 160 mg | O | 1.28 | + |
| Aspirin tablet (100 mg/tablet) | 81 | 43.0 | 10 000 mg | O | 2.33 | + |
| Calcium carbonate tablet (500 mg/tablet) | 5 | 8.4 | 0.75 mg | U | 0.001 | + |
| Carvedilol tablet (10 mg/tablet) | 13 | 31.4 | 55 mg | O | 1.38 | + |
| 70 | 55.8 | 200 mg | O | 5.00 | + | |
| Celecoxib tablet (200 mg/tablet) | 54 | 59.1 | 800 mg | O | 1.33 | - |
| Codeine phosphate powder (10 mg/g) | 51 | 52.7 | 6 mg | U | 0.20 | + |
| 69 | 61.2 | 6 mg | U | 0.20 | + | |
| 85 | 49.9 | 4 mg | U | 0.13 | + | |
| Furosemide fine granule (40 mg/g) | 0 | 0.46 | 40 mg | O | 14.49 | + |
| 13 | 30.0 | 0.25 mg | U | 0.02 | - | |
| Lactulose syrup (0.65 g/ml) | 82 | 42.6 | 1.95 g | U | 0.20 | + |
| Levothyroxine sodium hydrate tablet (25 μg/tablet) | 1 | 10.7 | 250 μg | O | 3.89 | + |
| Nicorandil tablet (5 mg/tablet) | 66 | 38.7 | 75 mg | O | 2.50 | + |
| Nifedipine sustained release tablet (10 mg/tablet) | 47 | 69.5 | 140 mg | O | 1.75 | + |
| Omeprazole tablet (10 mg/tablet) | 4 | 10.9 | 20 mg | O | 2.00 | + |
| Phenobarbital powder (100 mg/g) | 66 | 53.8 | 500 mg | O | 1.25 | + |
| Rabeprazole sodium tablet (10 mg/tablet) | 20 | 48.5 | 70 mg | O | 1.75 | + |
| 58 | 74.8 | 70 mg | O | 1.75 | + | |
| 68 | 48.4 | 100 mg | O | 2.50 | + | |
| Rivaroxaban tablet (15 mg/tablet) | 57 | 54.0 | 45 mg | O | 1.50 | + |
| Spironolactone fine granule (100 mg/g) | 13 | 30.0 | 0.05 mg | U | 0.002 | + |
| 74 | 47.5 | 500 mg | O | 2.50 | + | |
| Trimethoprim sulfamethoxazole granule | 0 | 3.5 | 1.6 mg | U | 0.23 | + |
| Ursodeoxycholic acid granule (50 mg/g) | 2 | 12.0 | 540 mg | O | 1.50 | + |
a O, overdose; U, underdose.
b max, maximum dose; min, minimum dose defined by drug labels or UpToDate. The ratio to the maximum dose is shown for overdose. The ratio to the minimum dose is shown for underdose.
c “+” indicates detected, “-” indicates not detected as abnormal prescriptions, respectively.
d Dose is the value equivalent to trimethoprim.
OCSVM model performance for detecting synthetic overdose and underdose prescriptions for each drug.
| Drug name (strength) | Data (n) | Synthetic overdose prescriptions | Synthetic underdose prescriptions | ||||
|---|---|---|---|---|---|---|---|
| Precision | Recall | F-measure | Precision | Recall | F-measure | ||
| Acetaminophen fine granule (500 mg/g) | 5869 | 0.986 | 1.000 | 0.993 | 0.986 | 0.969 | 0.977 |
| Ambroxol hydrochloride dry syrup (15 mg/g) | 4067 | 0.991 | 0.949 | 0.969 | 0.971 | 0.288 | 0.443 |
| Amlodipine besylate tablet (5 mg/tablet) | 37 796 | 0.991 | 0.997 | 0.994 | 0.991 | 1.000 | 0.996 |
| Aprepitant capsule (80 mg/capsule) | 14 436 | 0.989 | 1.000 | 0.995 | 0.989 | 1.000 | 0.995 |
| Aspirin tablet (100 mg/tablet) | 38 736 | 0.991 | 1.000 | 0.995 | 0.991 | 1.000 | 0.995 |
| Calcium carbonate tablet (500 mg/tablet) | 5049 | 0.987 | 0.974 | 0.981 | 0.987 | 0.932 | 0.958 |
| Carvedilol tablet (10 mg/tablet) | 3603 | 0.983 | 1.000 | 0.991 | 0.983 | 1.000 | 0.991 |
| Celecoxib tablet (200 mg/tablet) | 13 205 | 0.989 | 0.992 | 0.991 | 0.989 | 1.000 | 0.994 |
| Codeine phosphate powder (10 mg/g) | 4104 | 0.985 | 1.000 | 0.993 | 0.985 | 0.957 | 0.970 |
| Furosemide fine granule (40 mg/g) | 3366 | 0.988 | 0.930 | 0.958 | 0.958 | 0.251 | 0.397 |
| Lactulose syrup (0.65 g/ml) | 3243 | 0.987 | 1.000 | 0.993 | 0.986 | 0.940 | 0.962 |
| Levothyroxine sodium hydrate tablet (25 μg/tablet) | 15 467 | 0.991 | 0.996 | 0.993 | 0.990 | 0.924 | 0.956 |
| Nicorandil tablet (5 mg/tablet) | 5669 | 0.986 | 1.000 | 0.993 | 0.986 | 1.000 | 0.993 |
| Nifedipine sustained release tablet (10 mg/tablet) | 2088 | 0.976 | 1.000 | 0.988 | 0.976 | 1.000 | 0.988 |
| Omeprazole tablet (10 mg/tablet) | 5965 | 0.986 | 0.994 | 0.990 | 0.986 | 1.000 | 0.993 |
| Phenobarbital powder (100 mg/g) | 2399 | 0.978 | 0.703 | 0.817 | 0.969 | 0.479 | 0.638 |
| Rabeprazole sodium tablet (10 mg/tablet) | 54 423 | 0.989 | 1.000 | 0.995 | 0.989 | 1.000 | 0.995 |
| Rivaroxaban tablet (15 mg/tablet) | 2022 | 0.980 | 1.000 | 0.990 | 0.980 | 1.000 | 0.990 |
| Spironolactone fine granule (100 mg/g) | 11 379 | 0.987 | 0.879 | 0.930 | 0.968 | 0.346 | 0.510 |
| Trimethoprim sulfamethoxazole granule | 5683 | 0.990 | 1.000 | 0.995 | 0.944 | 0.178 | 0.298 |
| Ursodeoxycholic acid granule (50 mg/g) | 7669 | 0.986 | 0.825 | 0.899 | 0.973 | 0.418 | 0.584 |
Data represent the average values of ten repeats of five-fold cross-validation.
a Dose is the value equivalent to trimethoprim.
Fig 1Decision boundary of the OCSVM model and individual data for acetaminophen fine granules.
Data are represented as standardized values.
Overall performance of OCSVM models for synthetic overdose and underdose prescriptions.
| Precision | Recall | F-measure | |
|---|---|---|---|
| Synthetic overdose prescriptions | 0.986 | 0.964 | 0.973 |
| Synthetic underdose prescriptions | 0.980 | 0.794 | 0.839 |
Data represent the average values of 21 drugs.
Fig 2Influence of hyperparameter γ on overall performance of OCSVM models.
(A) Analysis for synthetic overdose prescriptions. (B) Analysis for synthetic underdose prescriptions.
Comparative analysis with unsupervised anomaly detection algorithms.
| Algorithm | Optimized hyperparameters | Precision | Recall | F-measure | |
|---|---|---|---|---|---|
| Synthetic overdose prescriptions | OCSVM | γ = 2−1, | 0.980 | 0.969 | 0.973 |
| LOF | k = 40, contamination = 2−5 | 0.968 | 0.932 | 0.942 | |
| ISO | estimators = 30, contamination = 2−4 | 0.897 | 0.746 | 0.784 | |
| RC | contamination = 2−4 | 0.874 | 0.763 | 0.781 | |
| Synthetic underdose prescriptions | OCSVM | γ = 2, | 0.934 | 0.919 | 0.918 |
| LOF | k = 60, contamination = 2−4 | 0.931 | 0.879 | 0.895 | |
| ISO | estimators = 20, contamination = 2−4 | 0.785 | 0.404 | 0.498 | |
| RC | contamination = 2−4 | 0.706 | 0.312 | 0.375 |
Data represent the average values of 21 drugs.