Abstract Stroke remains a major global health concern, contributing substantially to mortality and long-term disability. Current clinical tools lack effective mechanisms for early detection. Here, we investigate whether linguistic and behavioral patterns in online social media can serve as early indicators of impending stroke. Methods We analyzed posts from 1,683 Reddit users who reported experiencing a stroke and 2,438 users across three control groups al made between 2015 and 2024. Linguistic features were extracted from posts, and predictive models were trained to distinguish individuals who experienced a stroke from controls. Results Our results reveal changes in several linguistic markers, e.g., the rate of spelling errors and the use of word tokens, beginning approximately 20 weeks prior to the stroke. Using posts from the four months preceding the event, the predictive model achieved an area under the curve (AUC) of 0.87. Discussion These findings highlight the potential of social media–derived linguistic signals to predict strokes several months in advance, offering a promising avenue for early detection and preventive interventions in digital medicine.
Introduction
Stroke is a leading cause of global mortality and long-term disability, yet it remains notoriously difficult to predict in the short term. Traditional clinical tools, such as the Framingham Risk Score, are designed to estimate cardiovascular risk over a ten-year horizon. However, these tools are not equipped to detect the subtle, "silent" physiological and neurological changes that often precede an acute event by weeks or months.
Given that the brain is the primary organ for language processing, the authors hypothesized that subtle neurological declines might manifest in the linguistic patterns of social media posts. By analyzing the "rich text" of online discourse, this study aims to develop a digital early-warning system capable of providing sufficient lead time for preventive medical intervention.
Methods and Data Acquisition
The researchers analyzed Reddit posts from 2015 to 2024, identifying users who reported a personal stroke diagnosis (e.g., "I was diagnosed with a brain infarction"). The study utilized a custom dataset comprising 1,683 users with a verifiable stroke date and a control group of 2,438 users, including relatives of stroke victims to control for shared environmental stressors.
Data Labeling
To manage the large volume of data, the team employed GPT-4o to automate the labeling process. The model identified the author's relationship to the stroke, the event date, and demographic details. This automated approach was validated against human annotators, demonstrating high reliability.
Feature Extraction and Modeling
The team extracted a comprehensive suite of linguistic markers to capture potential cognitive shifts. These included lexical diversity, readability scores, and specific linguistic markers such as Part-of-Speech (POS) ratios and spelling error rates.
Predictive modeling was conducted using several classifiers, with XGBoost emerging as the most effective. The model was evaluated using a sliding 3-month window to determine how far in advance it could distinguish pre-stroke users from healthy controls.
Key Results
The study yielded several significant findings regarding the temporal evolution of linguistic signals:
- Predictive Accuracy: The XGBoost model achieved an AUC of 0.87 using posts from the four months preceding the stroke.
- The "Agraphia" Signal: A sharp increase in spelling errors was observed starting approximately 8 weeks before the event. This aligns with clinical observations of agraphia—an acquired impairment in writing ability—as a precursor to neurological events.
- Lexical Diversity Decline: The Moving Average Type–Token Ratio (MATTR) began to decline significantly around 16 weeks before the stroke, indicating a narrowing vocabulary.
- Physiological Correlation: An analysis of blood pressure readings mentioned in posts revealed that the stroke group had significantly higher systolic blood pressure (avg. 146 mmHg) months before their event compared to global norms (125 mmHg).
Discussion and Limitations
These results suggest that linguistic markers in social media can serve as a powerful proxy for neurological health, offering a lead time of up to 10 months before a clinical event. However, several limitations must be addressed. The data relies on self-reporting, which cannot be independently verified. Furthermore, Reddit's demographic skew toward younger users (most frequent range: 26–44) may limit the generalizability of these findings to older populations where strokes are more prevalent.
Ethical considerations regarding privacy and the "right to know" also remain paramount. Future research should explore the integration of these linguistic signals with multi-modal data from wearable devices to enhance the robustness of digital early-warning systems.
Summary updated