Refinement of an Epilepsy Dictionary through Human Annotation of Health-related posts on Instagram

Aehong Min, Xuan Wang, Rion Brattig Correia, Jordan C. Rozum, Wendy R. Miller, Luís M. Rocha

Abstract

We used a dictionary built from biomedical terminology extracted from various sources such as DrugBank, MedDRA, MedlinePlus, and TCMGeneDIT to tag more than 8 million Instagram posts by users who mentioned an epilepsy-relevant drug at least once between 2010 and early 2016. A random sample of 1,771 posts with 2,947 term matches was evaluated by human annotators to identify false positives. OpenAI's GPT series models were compared against human annotation. Frequent terms with a high false-positive rate were removed from the dictionary. Analysis revealed 8 ambiguous terms (plus synonyms) used in Instagram posts, which were removed from the original dictionary. We show that the refined dictionary leads to a significantly different rank of important terms, as measured by eigenvector centrality of knowledge networks. Furthermore, the most important terms obtained after refinement are of greater medical relevance. In addition, we show that OpenAI's GPT series models fare worse than human annotators in this task.

Introduction

Biomedical text mining usually relies on dictionaries built from "clean" sources like PubMed or DrugBank. However, when researchers attempt to use these tools to monitor public health on platforms like Instagram, they encounter the significant challenge of polysemy. In a medical journal, "cold" almost always refers to a respiratory infection; on Instagram, it usually describes the weather or an iced coffee. These false positives create massive noise in automated pipelines, leading to skewed results in pharmacological surveillance and digital epidemiology. This study quantifies this noise in an epilepsy-related cohort and determines if Large Language Models (LLMs) can automate the cleanup process.

Methods

The researchers developed a multi-step "human-centered" refinement workflow to address the messy, slang-filled world of social media. They aggregated 176,278 terms from sources like MedDRA and DrugBank, categorized into Allergens, Drugs, Medical Terms, and Natural Products. After tagging over 8 million Instagram posts, they pulled a random sample of 2,947 term matches for manual review.

The multi-stage human annotation workflow used to refine the dictionary guidelines and finalize annotations.

As shown in the workflow, the process involved initial independent marking, a refinement phase to clarify criteria based on disagreements, and a final full annotation phase using the finalized guidelines.

Addressing Polysemy through Annotation

To distinguish between clinically relevant mentions and noise, annotators used specific criteria for different term types. A "True Positive" required the term to be used in its intended medical or biological sense, while "False Positives" included metaphors, proper nouns, or unrelated meanings.

Annotation criteria and examples illustrating the distinction between true medical mentions and false positive polysemous uses.

For example, the term "orange" was marked as True when referring to food (an allergen) but False when referring to a location. Similarly, "hot" was marked True for physical conditions but False when used as slang for "enthusiastic." This granular review allowed the team to identify the most problematic terms in the dataset.

Key Results and Insights

The most striking finding was the "Power of Eight": removing just eight ambiguous parent terms (Hot, Cold, Euphoria, Valium, Death, Rose, Orange, and Ginger) fundamentally transformed the data. These few terms were responsible for the vast majority of the network's noise.

In the original Instagram network, the top terms by eigenvector centrality—a measure of a node's influence—were "Feeling hot" and "Euphoric mood," which were mostly noise. After removing the 8 ambiguous terms, "Depression" jumped from 9th to 1st place, and "Anxiety" moved to 2nd. These are well-known comorbidities of epilepsy, indicating the refined network was far more medically accurate.

When comparing human performance to AI, GPT-4 achieved a Matthews Correlation Coefficient (MCC) of 0.55, significantly underperforming compared to the consensus of human annotators. GPT-4 tended to be "too literal," often labeling terms as False Positive if they didn't perfectly match a narrow clinical definition, whereas humans could infer medical relevance from broader context.

Conclusion

This research demonstrates that standard biomedical dictionaries fail when applied to social media without refinement. While manual annotation is expensive, pruning a small number of highly ambiguous terms can significantly improve the medical relevance of health-related knowledge networks. While LLMs are not yet ready to replace humans in navigating the nuances of online discourse, they may eventually support hybrid workflows for larger datasets.

Summary updated

Abstract

We used a dictionary built from biomedical terminology extracted from various sources such as DrugBank, MedDRA, MedlinePlus, TCMGeneDIT, to tag more than 8 million Instagram posts by users who have mentioned an epilepsy-relevant drug at least once, between 2010 and early 2016. A random sample of 1,771 posts with 2,947 term matches was evaluated by human annotators to identify false-positives. OpenAI's GPT series models were compared against human annotation. Frequent terms with a high false-positive rate were removed from the dictionary. Analysis of the estimated false-positive rates of the annotated terms revealed 8 ambiguous terms (plus synonyms) used in Instagram posts, which were removed from the original dictionary. To study the effect of removing those terms, we constructed knowledge networks using the refined and the original dictionaries and performed an eigenvector-centrality analysis on both networks. We show that the refined dictionary thus produced leads to a significantly different rank of important terms, as measured by their eigenvector-centrality of the knowledge networks. Furthermore, the most important terms obtained after refinement are of greater medical relevance. In addition, we show that OpenAI's GPT series models fare worse than human annotators in this task.
BibTeX
@misc{min2024refinement,
  author = {Aehong Min and Xuan Wang and Rion Brattig Correia and Jordan C. Rozum and Wendy R. Miller and Luís M. Rocha},
  title = {{Refinement of an Epilepsy Dictionary through Human Annotation of Health-related posts on Instagram}},
  year = {2024},
  eprint = {2405.08784},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.08784},
}
Figure