Related Experiment Video
Updated: Feb 5, 2026

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
The class imbalance problem detecting adverse drug reactions in electronic health records
Sara Santiso1, Arantza Casillas1, Alicia Pérez1
1IXA Group, University of the Basque Country (UPV-EHU), Spain.
Abstract:
This work focuses on adverse drug reaction extraction tackling the class imbalance problem. Adverse drug reactions are infrequent events in electronic health records, nevertheless, it is compulsory to get them documented. Text mining techniques can help to retrieve this kind of valuable information from text. The class imbalance was tackled using different sampling methods, cost-sensitive learning, ensemble learning and one-class classification and the Random Forest classifier was used. The adverse drug reaction extraction model was inferred from a dataset that comprises real electronic health records with an imbalance ratio of 1:222, this means that for each drug-disease pair that is an adverse drug reaction, there are approximately 222 that are not adverse drug reactions. The application of a sampling technique before using cost-sensitive learning offered the best result. On the test set, the f-measure was 0.121 for the minority class and 0.996 for the majority class.
More Related Videos
Related Concept Videos
Drug Classes and Categories
Purpose of Health Records I
Here's a breakdown of how health records serve these purposes:
Purpose of Health Records II
Antihypertensive Drugs: Thiazide-Class Diuretics
Homeostatic Imbalance
However, sometimes these feedback loops fail,...
Allergic Drug Reactions

