Focused digital cohort selection from social media using the metric backbone of biomedical knowledge graphs
Ziqi Guo, Jack Felag, Jordan C. Rozum, Rion Brattig Correia, Xuan Wang, Luis M. Rocha
TL;DR
The paper tackles the challenge of forming topic-focused digital cohorts from noisy social media by introducing a general, platform-agnostic method based on the metric backbone of biomedical knowledge graphs (KGs). It builds platform-specific KGs from a curated dictionary of biomedical terms, converts term co-occurrence into a distance space with $d_{ij} = 1/p_{ij} - 1$, and sparsifies the KG to a backbone that preserves all shortest-path relations. Users who contribute to the KG backbone (backbone contributors) form focused digital cohorts, with epilepsy-focused platforms yielding much higher backbone participation (≈93–95%) than general-purpose sites (≈65–72%), and backbone filtering reducing false positives compared with engagement-based methods. The approach reliably yields more biologically relevant cohorts, scales across platforms, and is generalizable to other conditions by updating the dictionary, offering a practical path to robust, interpretable social-media–driven biomedical inference. The method improves cohort relevance and reduces noise, enabling safer, scalable studies of treatment effects and patient experiences from online discourse. Key findings show substantial sparsification of KGs without loss of shortest-path information and superior discrimination of biomedical relevance versus misused terms. The work provides publicly available KGs and a scalable blueprint for future multi-platform health social-media research.
Abstract
Social media data allows researchers to construct large digital cohorts to study the interplay between human behavior and medical treatment.Identifying the users most relevant to a specific health problem is, however, a challenge in that social media sites vary in the generality of their discourse. To filter relevant users on any social media, we have developed a general method and tested it on epilepsy discourse. We analyzed the text from posts by users who mention epilepsy drugs at least once in the general-purpose social media sites X and Instagram, the epilepsy-focused Reddit subgroup (r/Epilepsy), and the Epilepsy Foundation of America (EFA) forums. We used a curated medical terminology dictionary to generate a knowledge graph (KG) from each social media site, whereby nodes represent terms, and edge weights denote the strength of association between pairs of terms in the collected text. Our method is based on computing the metric backbone of each KG, which yields the subgraph of edges that participate in shortest paths. By comparing the subset of users who contribute to the backbone to the subset who do not, we show that epilepsy-focused social media users contribute to the KG backbone in much higher proportion than do general-purpose social media users. Furthermore, using human annotation of Instagram posts, we demonstrate that users who do not contribute to the backbone are much more likely to use dictionary terms in a manner inconsistent with their biomedical meaning and are rightly excluded from the cohort of interest.
