ORIGINAL RESEARCH article

Front. Digit. Health, 26 November 2025

Sec. Health Communications and Behavior Change

Volume 7 - 2025 | https://doi.org/10.3389/fdgth.2025.1648671

Dissecting the difference between positive and negative brain health sentiment using X data

  • 1. Department of Medicine, Karolinska Institute, Solna, Sweden

  • 2. Institute of Genetics and Animal Biotechnology of the Polish Academy of Sciences, Jastrzebiec Magdalenka, Poland

  • 3. Department of Biology, Institute of Plant Science and Microbiology, University of Hamburg, Hamburg, Germany

  • 4. Ludwig Boltzmann Institute of Digital Health and Patient Safety, Medical University of Vienna, Vienna, Austria

Abstract

Introduction:

Human behavior is significantly influenced by emotions, with negative sentiments such as fear and anxiety driving various coping mechanisms, including cognitive behavioral therapy (CBT), dietary changes, and medication use. Social media platforms like X (formerly Twitter) offer valuable insights into these behaviors due to their real-time, user-generated content. While previous research has explored general sentiment on X (formerly Twitter), there has been limited focus on the reasons behind negative sentiments and the coping strategies employed, particularly in relation to brain health.

Methods:

We analyzed 390,000 X-posts tagged with #brain and #health, categorizing them into positive, negative, and neutral sentiments. We then investigate the use of CBT techniques, dietary adjustments, and specific medications across these sentiments.

Results:

Our findings reveal distinct patterns in how negative and positive sentiments are expressed and managed on social media. Negative sentiments are often linked to serious health concerns, such as COVID-19 and brain inflammation, and exhibit various cognitive distortions. These X-posts also mention coping strategies like using medications such as lorazepam and simvastatin, or consuming comfort foods like pizza. In contrast, positive sentiments emphasize resilience and improvement, with mentions of mindfulness, supplements, and medications like doxycycline and pregabalin. The study also highlights the risk of disseminating information about dietary and drug supplements that may not be suitable for public use due to serious side effects, such as Chaga mushrooms, which, despite being associated with positive sentiment, are known to cause renal failure in certain cases.

Conclusion:

Overall, the study profiles the use of positive and negative brain health sentiment of X, which underscores both the advantages and risks of using X (formerly Twitter) as a platform for sharing brain health-related information.

Introduction

Human behavior is often influenced by various emotions, with negative sentiments playing a compelling role (1). Negative emotions such as fear, anxiety, and frustration can be triggered by various life events, health challenges, and social circumstances (2, 3). These emotions often drive behaviors aimed at coping with or mitigating a perceived threat or discomfort. Coping mechanisms can vary widely, from adopting therapeutic practices like Cognitive Behavioral Therapy (CBT) to seeking comfort in familiar foods, using supplements, or even self-medicating (4–6). Understanding the behavioral responses to negative sentiment is crucial, as they significantly impact mental health and well-being (7).

Social media platforms, particularly X (formerly Twitter), have become invaluable resources for analyzing human behavior on a large scale (8). X's real-time nature and widespread use make it an ideal platform for capturing immediate reactions and sentiments to various events, including those related to health (9). The vast amount of user-generated content on X allows researchers to observe patterns of emotion, behavior, and interaction that offer insights into how people collectively respond to health-related issues (10). Through sentiment analysis, researchers have classified X-posts into positive, negative, or neutral categories, thereby gaining a deeper understanding of the public's emotional landscape (11).

Previous studies have utilized X to analyze positive and negative sentiments, particularly in the context of mental health issues such as depression and anxiety (9, 12–15). These studies have highlighted that while positive sentiments are more common, negative sentiments tend to elicit stronger engagement, such as reposts and comments (16). However, there has been limited exploration into the underlying motives behind these negative sentiments, and the coping mechanisms people employ to manage their emotions, especially in relation to brain health. Understanding these aspects is critical for developing interventions that can better support individuals dealing with negative emotions and health concerns.

In our study, we addressed these gaps by analyzing X-posts mentioning “brain” and “health”, categorizing them into positive, negative, and neutral sentiments. We conducted several analyses to investigate the reasons behind negative sentiments and how people cope with these emotions. Specifically, we examined the use of therapeutic approaches like CBT, dietary changes, and the consumption of drug supplements and medications. By exploring these coping strategies, we aimed to provide a comprehensive understanding of how individuals deal with health-related challenges on social media, offering new insights into the intersection of sentiment, behavior, and health management.

Methods

Data collection

Data extraction from X was conducted using the third-party software Fedica Analytics Platform (https://fedica.com/), which served as the main tool for this process. Fedica's functionalities enabled the extraction of various data types, including X-posts, posts, likes, and mentions, offering a comprehensive overview of activity on X. X-POSTS shared between 6/1/2023 12:00:00 PM and 12/1/2023 12:00:00 PM (1 of June 2023- 1 of December 2023) that simultaneously contained the terms “brain” and “health” were analyzed with Fedica (https://fedica.com/) on 12/12/2023 (12 of December 2023) (17).

Data analyses

Data was analyzed in Python 3.0. First data was collected from Fedica. After initial analysis of the number of posts and reposts, we developed a function to clean text by removing punctuation and numbers, applied it to the dataset, and created a new DataFrame with the cleaned posts and repost counts, simplifying the data by eliminating the original dataset and intermediate steps.

Sentiment analyses

We performed sentiment analysis on the X-posts in the updated dataset using TextBlob, categorizing them into positive, negative, and neutral sentiments based on their polarity scores (18, 19). We counted the number of X-posts for each sentiment and tracked their indices in separate lists. We then calculated the total number of reposts corresponding to each sentiment category—negative, positive, and neutral—by summing the repost counts from the updated dataset. The sentiment and repost data were then visualized using bar charts to compare the number of X-posts and reposts by sentiment category. Additionally, we calculated and plotted the ratio of reposts to X-posts for each sentiment, providing a clear comparison of how different sentiment types of influence reposting behavior. The visualizations highlighted key trends in sentiment-driven engagement on the platform.

Statistical analyses

To examine associations between categorical variables in the dataset, we used chi-square tests of independence. For each analysis, a contingency table was constructed with rows representing one categorical variable and columns representing another (e.g., sentiment type, post type, or word category). The chi-square test evaluates whether the observed distribution of counts differs significantly from what would be expected under independence. Statistical significance was assessed at p < 0.05. All analyses were performed using Python 3.11 with the SciPy and Pandas libraries.

Exploration of sentiment causes

We explored the nature of emotions and topics driving negative sentiment through various analyses. First, we calculated the total occurrences and normalized sentiment ratios (negative, positive, and neutral) for emotions like Depression, Fearful, Hate, and Annoyed. Secondly, we utilized the WordCloud library to visually represent the most common words associated with negative and positive sentiments in our dataset (20). We first extracted and combined the text from all posts classified as negative into a single string. Using this text, we generated a word cloud with a light blue background to highlight the frequency of words related to negative sentiments. Similarly, we created a word cloud for positive sentiment posts, using a light green background. Each word cloud was configured to display up to 5,000 words, with additional contouring for visual clarity. Thirdly, we applied the LDA (Latent Dirichlet Allocation) model to identify the four most prominent topics within the negative sentiment X-posts (21, 22). LDA is a generative statistical model used for discovering abstract topics in a collection of documents by analyzing word co-occurrence patterns. This technique helps in uncovering the underlying themes or topics by grouping similar words and phrases, allowing us to understand the prevalent themes associated with negative sentiments in the dataset.

Linguistic analysis of speech acts

We analyzed X-posts categorized by sentiment—positive, negative, and neutral—to classify them according to their speech acts (23). We first extracted X-posts corresponding to each sentiment category from the dataset. Using a classification function, we categorized each tweet as a “Question,” “Request,” or “Assertion” (23, 24). We then maintained separate counters for each type of speech act within each sentiment category. After processing all X-posts, we aggregated and reported the counts of each speech act type for positive, negative, and neutral sentiments, providing insights into the distribution and nature of speech acts across different sentiment categories.

Cognitive distortion analyses

We first analyzed complaint-related language within negative sentiment X-posts by identifying and counting specific words associated with complaints. We calculated the ratio of complaint words to the total number of words in these X-posts to quantify the prevalence of complaints. Following this, we repeated the analysis for various cognitive distortions, including categories such as Fallacy of Change, Blaming, Emotional Reasoning, and others, by examining the occurrence of specific distortion-related terms (25). We then compared the ratios of these cognitive distortions across negative, positive, and neutral sentiment X-posts. Finally, we visualized the ratio of emotional reasoning words in a pie chart to illustrate the distribution of these terms across different sentiment categories.

Cognitive load analyses

In this section, we evaluated the readability of X-posts categorized by sentiment—negative, positive, and neutral—using the Flesch-Kincaid Grade Level score (26, 27). We first combined the X-posts from each sentiment category into a single DataFrame for analysis. We then calculated the Flesch-Kincaid Grade Level for each tweet, which provides an estimate of the U.S. school grade level required to understand the text (28). This score was computed using the flesch_kincaid_grade function from the textstat library. The calculated readability scores were then aggregated by sentiment category to determine the average readability across negative, positive, and neutral X-posts. All metrics were evaluated for differences across sentiment categories.

Normality of the cognitive load metrics was assessed using the Shapiro–Wilk test. All metrics significantly deviated from a normal distribution (p < 0.001), leading to the use of non-parametric statistical tests for group comparisons. Given the non-normal distribution of metrics (Shapiro–Wilk test, p < 0.001 for all), non-parametric tests were employed: Kruskal–Wallis H-test to determine if at least one sentiment group differed significantly for each metric. post-hoc pairwise comparisons using Dunn's test with Bonferroni correction to identify specific group differences. All analyses were performed in Python (v3.12) using the scipy and scikit-posthocs libraries. Effect sizes were not reported due to the large sample size, but extremely small p-values (p < 0.001) indicated strong statistical differences between sentiment groups.

Prevalence of therapeutic discourse

In this analysis, we aimed to examine the prevalence of therapeutic discourse within X-posts categorized by sentiment: negative, positive, and neutral. We identified specific keywords related to four therapeutic discourse categories—Self-Compassion, Resilience, Coping Mechanisms, and Therapeutic Support—and calculated the percentage of X-posts in each sentiment category that mention these keywords. By applying this analysis, we sought to understand how often X-posts reflect themes of self-compassion, resilience, and coping strategies across different sentiment categories.

Prevalence of cognitive-behavioral therapy (CBT)

Here, we quantified the presence of cognitive-behavioral therapy (CBT) techniques, specifically reframing and Emotion Regulation Strategies within X-posts categorized by sentiment (29). We first identified X-posts containing keywords related to reframing by applying a function that checks for these keywords. Using this approach, we calculated the absolute counts of X-posts containing reframing keywords across three sentiment categories: negative, positive, and neutral.

Prevalence of food, drugs, and drug supplements

The analysis explores the prevalence of specific themes—food types, stress management techniques, drugs, and dietary supplements—within X-posts categorized by sentiment (negative, positive, and neutral) using key libraries and APIs. It first identifies and categorizes mentions of various food types in X-posts, visualizing the relationships between sentiments and food mentions through a network graph to show associations and clustering based on co-occurrence. X-posts discussing stress management are filtered by specific keywords to examine how often different foods are mentioned in the context of stress management across sentiment categories. Drug mentions are identified using the FDA's openFDA API, allowing for comparison of drug prevalence across sentiments to provide insights into sentiment associations with different drugs. Finally, mentions of dietary supplements are counted and compared across sentiment categories, revealing trends in supplement-related discussions within X-posts. A Chi-square test of independence was applied to test whether the distribution of food types differed significantly between negative, neutral, and positive sentiment posts.

Ethical aspects

This research uses publicly available, anonymized data in full compliance with the terms, conditions, and privacy policies of X/Fedica. Ethical approval was unnecessary as the study did not involve any proactive intervention and was conducted solely with existing public data. All data were anonymized, ensuring that no identities or personal information linked to specific X user accounts are disclosed in this study.

Results

By analyzing approximately 390,000 X-posts categorized by sentiment, we found around 90,000 negative, 160,000 positive, and 138,000 neutral posts. Interestingly, negative sentiment posts were reposted more frequently than positive or neutral ones (Figure 1A). The ratio of reposts to posts was 1.18 for negative sentiment and 0.44 for positive sentiment (Figure 1B). A chi-square test of independence confirmed that reposting behavior was significantly associated with sentiment (χ2 = 58,357.92, df = 2, p < 0.0001), with negative posts being reposted disproportionately more than expected, while positive and neutral posts were reposted less frequently.

Figure 1

Although both negative and positive sentiment tweets share a common theme of concern for mental and brain health, they differ in their approach. While Positive sentiment X-posts often include words associated with positive “improve” and “learn”, negative sentiment X-posts tend to reflect a more pessimistic view of health news, using phrases like “left paralyzed”, “health shocker”, and “COVID”. These posts also frequently highlight negative life events affecting public figures, such as Mitch McConnell and Jamie Foxx (Figures 2A,B).

Figure 2

We then focused on gaining a deeper understanding of the topics underlying the negative sentiment posts. Our results reflect emotions of feeling down, as evident from the vocabulary used in negative sentiment X-posts (Figure 3A). Upon closer analysis of the topics discussed in these posts, we identified four main themes (Figure 3B). The first theme centers on inflammation and the brain, with terms like “bone” and “broken” possibly hinting at the under-explored brain-bone axis, such as the neural regulation of bone metabolism. The second theme focuses on concerns for children's welfare, reflected in words like “children”, “lactating” ’sorry', and “bad” The third theme addresses ongoing issues related to COVID-19, with terms like “paralyzed”, “clot” and “vaccine,” suggesting concerns about vaccine side effects and their potential connection to worsening COVID-19 symptoms. The fourth theme involves brain health, pointing to a gendered interest in this area of research and possibly reflecting personal struggles, with words like “never”, “admit”, “know”, and ’say' appearing alongside “brain” and “health”. Next, we analyzed the differences in speech acts—such as assertions, questions, and commands—between positive and negative sentiment X-posts. However, no significant differences were found between these two categories in this context.

Figure 3

Cognitive distortions analysis was conducted to better understand the reasons behind the pessimistic approach observed in negative sentiment–identified topics. For the analysis of complaints, we compiled a list of 50 complaint-related words and assessed their frequency across X-posts categorized by sentiment. The ratio of complaint words to total words was highest in negative sentiment X-posts (0.0066), followed by neutral (0.0015) and positive (0.0010) X-posts. A chi-square test of independence confirmed that the distribution of complaint words was significantly associated with sentiment type (χ2 = 1,407.27, df = 2, p < 0.0001). This indicates that negative sentiment X-posts display a stronger tendency to complain about mental health issues (Table 1).

Table 1

Health-Related X-postsPositiveNegativeNeutral
Blaming42.9%44.2%12.9%
Emotional Reasoning32.9%46.6%20.5%
Global Labelling37.4%44.1%18.4%
Heaven's Reward21.4%55%23.7%
Personalization42.9%46.5%10.7%
Filtering10.5%79.5%10%
Complaining11%72.5%16.5%
Control Fallacy55.2%23.9%20.9%
Control of Fairness48%36.7%15.3%
Fallacy of Change54.6%26.5%18.9%
Polarized Thinking41.9%42.6%15.5%
Mind Reading41%17.4%41.6%
Overgeneration39.5%38.4%22.1%
Ratio of Complaint Words to Total Words by Sentiment Category11%72.5%16.5%

Cognitive distortions and complaining in health-related X-posts by Sentiment.

Higher frequencies of cognitive distortions such as "Being Right", "Blaming", "Emotional Reasoning", "Global Labelling", "Heaven's Reward", "Personalization", "Polarized Thinking", "Filtering", and “Complaining” in negative sentiment X-posts. More frequent expressions of distortions like "Control Fallacy" and "Fallacy of Fairness" were detected in positive sentiment X-posts. Results for "Catastrophizing" and "Mind Reading" are inconclusive.

A similar trend was observed in expressions related to cognitive distortions such as “Being Right”, “Blaming”, “Emotional Reasoning,” “Global Labeling,” “Heaven's Reward,” “Personalization”, “Polarized Thinking”, and “Filtering” (Table 1). Interestingly, distortions like “Control Fallacy” and “Fallacy of Fairness” were more frequently expressed in positive sentiment X-posts (Table 1). However, the results for “Catastrophizing” and “Mind Reading” were inconclusive, indicating no significant association with sentiment.

Given the prevalence of negative sentiment and the presence of cognitive distortions in X-posts, we next examined the cognitive load to determine whether the complexity and readability of these posts are related to sentiment and distorted thinking patterns. The cognitive load investigation was based on readability score, sentence count, word count, and average sentence length (Table 1). The readability score, measured by the Flesch-Kincaid Grade Level, was lower in both positive and negative sentiment X-posts compared to neutral ones. Sentence count was largely invariant across posts and was therefore not analyzed further. Both word count and average sentence length differed significantly across sentiment categories (Kruskal–Wallis H-tests, p < 0.001), with Dunn's post-hoc tests revealing that all pairwise comparisons between Negative, Neutral, and Positive posts were highly significant (p < 0.001). These results indicate that X-posts with negative or positive sentiment tend to be linguistically simpler and shorter than neutral posts, suggesting that sentiment is strongly associated with variations in linguistic complexity and cognitive load.

No significant difference in readability was found between positive and negative sentiment posts. However, both categories had lower readability scores on average compared to neutral posts, possibly due to the stronger emotions in positive and negative posts, which may affect sentence clarity. This trend is also reflected in the higher word count for both positive and negative sentiment posts compared to neutral ones. Sentence count did not show significant differences across the sentiment groups (Figure 4).

Figure 4

Considering the prevalence of negative sentiment, associated cognitive distortions, and lower readability scores, we next examined how individuals expressing these negative posts attempt to cope with or address these difficulties on a psychological level, focusing on: (a) expression of a need for therapeutic support, (b) use of Cognitive Behavioral Therapy (CBT) techniques, and (c) emotion regulation strategies. Our analysis revealed that negative sentiment X-posts frequently use language indicating a need for therapeutic support, more so than positive or neutral sentiment posts (χ2 test, p < 0.001; Figure 5A). We then investigated the use of CBT techniques, such as reframing and cognitive restructuring (17), and found that negative sentiment X-posts often employ these strategies, suggesting that individuals expressing negative sentiments are more likely to engage in cognitive approaches to shift their perspective (χ2 test, p < 0.01; Figure 5B). Finally, we analyzed X-posts for signs of emotion regulation strategies, including mindfulness and suppression. Our findings indicate that positive sentiment X-posts exhibit notably higher levels of both mindfulness (χ2 test, p < 0.05) and suppression (χ2 test, p < 0.001) compared to negative or neutral posts (Figure 5C).

Figure 5

Extending the analysis of sentiment and psychological coping in X-posts, we next examined how specific food types are associated with sentiment. Across all posts mentioning food, a Chi-square test of independence revealed a highly significant association between sentiment and food type (χ2 = 29,717.73, p < 0.001), indicating that the distribution of food references varied systematically across negative, neutral, and positive posts. For example, wine was more frequently associated with positive sentiment, whereas pizza was disproportionately linked to negative sentiment (Supplementary Information Figure S1A).

We then focused specifically on the subset of posts that discussed stress management. Within this context, food mentions again showed a significant association with sentiment (χ2 = 621.59, p < 0.001). Positive sentiment stress-related posts most frequently mentioned wine, yogurt, and bread, whereas negative sentiment stress-related posts often referenced pizza, onion, and nuts (Supplementary Information Figure S1B). Together, these results demonstrate that food references are not sentiment-neutral but instead reflect distinct affective and coping contexts.

Following our examination of sentiment in relation to foods and stress management, we next compared drug, and supplement mentions across different sentiment types. A Chi-square test of independence revealed a significant association between drug mentions and sentiment categories (Chi-square = 3,366.75, df = 56, p < 0.001), indicating that certain drugs were disproportionately mentioned in specific sentiment contexts. Negative sentiment was linked to drugs such as lorazepam, sodium fluoride, and simvastatin, whereas positive sentiment was associated with medications including doxycycline, pregabalin, famotidine, haloperidol, guaifenesin, clozapine, titanium dioxide, and hydrocortisone (Supplementary Information Figure S2A). These results suggest a clear differentiation in how drugs are discussed across sentiment types. Interestingly, a similar pattern was observed for dietary supplements. A Chi-square test for supplement mentions confirmed a significant association with sentiment categories (Chi-square = 94.0, df = 44, p < 0.001), indicating that certain supplements were disproportionately mentioned in specific sentiment contexts. Silymarin, beetroot, wheatgrass, and chaga mushroom were predominantly associated with positive sentiment, while red clover, green coffee bean extract, valerian root, and hawthorn berry were primarily associated with negative sentiment (Supplementary Information Figure S2B). These findings highlight that both pharmaceutical and nutraceutical discussions on social media are closely linked to sentiment, reflecting distinct patterns of public perception and engagement.

Discussion

The analysis of X-posts shows that the sentiment expressed within these X-posts offers a window into how individuals perceive the world around them. The analysis of X-posts reveals how sentiment reflects individuals' perceptions of their environment. Positive sentiment X-posts are often characterized by optimism and a proactive approach to health issues. This is consistent with findings from recent studies that suggest individuals who exhibit positive emotions are more likely to focus on personal growth and recovery. For instance, the frequent use of terms such as “health benefit,” “brain health,” “improve,” and “learn” in positive X-posts aligns with the concept of positive reframing, which emphasizes viewing challenges as opportunities for improvement (Figure 2A) (30, 31). Conversely, negative sentiment X-posts frequently convey a more apprehensive or distressed perspective (Figure 2B & Figure 3). Terms like “ paralyzed,” “health shocker,” and “COVID” highlight significant health concerns and adverse events (Figure 3B). This aligns with research showing that negative emotions are often associated with a heightened focus on threats and risks (32). These findings underscore how emotional states influence health perceptions: positivity is often linked to resilience and a growth-oriented mindset, while negativity is associated with heightened fear and apprehension. This distinction highlights the importance of emotional context in shaping how individuals interpret and react to health-related information.

The prevalence of cognitive distortions in X-posts reveals underlying emotional states, with negative sentiment posts often showing signs of depression, while positive sentiment posts reflect more optimistic cognitive patterns. To further understand how sentiment shapes individuals' perceptions and reactions, we examined the cognitive distortions present in X-posts and their association with positive and negative emotional states. The overrepresentation of various cognitive distortions with negative sentiment may indicate depressive disorders. X-posts exhibit multiple known cognitive distortions (Table 1). One common distortion in posts expressing negative sentiment is blaming, with 44% of statements involving blame linked to negative moods. These posts often reflect the struggle to identify the cause of negative feelings (33, 34). In some cases, blame is directed inward, manifesting as self-blame. A notable example from X-posts classified as negative sentiment and exhibiting a blaming cognitive distortion reads: “I am so sad, my bad mental health over the past few years caused me to lose so much YouTube momentum. I miss how engaged the community used to be over there, and I know a lot of it's my fault. I hate my brain, but I am going to make some gold on there again eventually”. In this post, blame is directed toward the user, potentially indicating depressive symptoms (35, 36). Global labeling, another cognitive distortion, is also overrepresented in negative sentiment posts (44%), further highlighting symptoms of depression. For example, a user wrote: “All the health books are like: do these things you hate, eat these things you don't like, otherwise you’ll deteriorate and die.” Using words such as “all,” “hate” and “die” reflects global labeling distortions and hints at suffering from depressive symptoms. Personalization, which involves attributing health problems or negative outcomes to oneself and increasing feelings of guilt and inadequacy, was also overrepresented, with over 46% of negative sentiment posts expressing personalization (37). Lastly, filtering is evident in the focus on negative aspects of health-related issues while ignoring any positive elements, reinforcing a negative perception (38). Filtering was associated with negative sentiment in more than 79% of the cases. These findings align with Beck's cognitive theory of depression, which suggests depressed people have negative and hopeless thoughts or core beliefs about themselves, the world, and the future (39). In contrast, positive sentiment X-posts are more commonly associated with cognitive distortions like “Control Fallacy” and “Fallacy of Fairness.” While these distortions still reflect deviations from reality, they suggest a different cognitive focus compared to those observed in negative sentiment X-posts. According to Carver and Scheier, individuals with positive outlooks may struggle with unrealistic expectations, such as the belief in excessive personal control or fairness, but they generally maintain a more optimistic perspective (40). This is consistent with Dweck's research on mindsets, which indicates that positive sentiment is often linked to adaptive coping strategies and a resilient cognitive style, despite the presence of certain distortions (41).

The way individuals cope with stress and health concerns also varies depending on whether their X-posts express positive or negative sentiments. Extending from the observed cognitive distortions, we explored how these sentiment-linked thought patterns translate into different coping strategies for managing stress and health concerns. We found that Negative sentiment X-posts are more likely to include language indicative of a need for therapeutic support, as well as references to Cognitive Behavioral Therapy techniques such as reframing and cognitive restructuring (Figure 5). This suggests that individuals expressing negative sentiment may be actively trying to manage their distress through cognitive strategies aimed at changing their perspective or thought patterns. In contrast, positive sentiment X-posts tend to reflect coping mechanisms like mindfulness and suppression, which are strategies that help individuals maintain a positive outlook despite challenges (42). This difference in coping styles indicates that individuals with positive sentiments might be better equipped to manage stress and maintain emotional balance, while those with negative sentiments are more focused on trying to alter their cognitive and emotional responses to stress.

Additionally, the types of foods and drugs mentioned in relation to various sentiments provide further insights into coping behaviors. Positive sentiment X-posts are associated with foods such as wine, yogurt, and bread, which are linked to stress management, as well as drugs and supplements such as doxycycline, pregabalin, and Chaga mushrooms. Interestingly, doxycycline has been shown to protect against neurodegenerative diseases by inhibiting α-synuclein-associated pathologies and reducing neural toxicity (43, 44). Pregabalin appears to be effective in alleviating pain (45). Chaga mushrooms are known for their anti-cancer properties; however, they can also induce serious side effects in the renal system (46, 47). Conversely, negative sentiment X-posts more frequently mention comfort foods like pizza, along with substances such as lorazepam and valerian root, suggesting a reliance on both food and medication to manage stress and anxiety (48). However, consuming a carbohydrate-rich diet, such as pizza, can lead to extreme obesity (48, 49). Additionally, valerian root has been reported to potentially cause encephalopathy. These choices reflect a focus on health and well-being in both positive and negative X-posts, but they also highlight the dangers of conveying inappropriate health-related messages through X and other social media platforms.

The research on X posts encounters several limitations due to selection bias. Self-selection bias occurs because individuals who are particularly concerned about brain health or hold strong opinions may be more inclined to post, skewing the data toward more extreme sentiments and not accurately reflecting the broader population's views (50). Additionally, platform bias is evident, as the nature of X amplifies negative or sensational content, which is more frequently shared or reposted, thus distorting sentiment analysis (51). This bias is further compounded by the brief and oversimplified nature of X posts; the 280-character limit can result in incomplete or distorted expressions of complex emotions. Temporal bias also affects the results, as the time frame of data collection can influence sentiment based on recent events or health crises, impacting the generalizability of the findings.

The analysis of negative sentiment in X posts regarding brain health reveals critical areas for public health communication and policy. The high prevalence of distressing emotions such as anxiety and fear highlights the need for empathetic and clear public health messaging that addresses specific concerns, including inflammation and COVID-19, and their impact on mental health (52). To improve mental health outcomes, interventions should target cognitive distortions commonly found in negative posts, promote positive coping strategies like mindfulness, and ensure accessible therapeutic support (53). Additionally, public health policies must address misinformation about dietary supplements and medications while integrating insights from social media to refine communication strategies and respond proactively to emerging public health concerns.

Conclusion and recommendations

The main conclusion of the text is that sentiment analysis of Twitter X posts related to brain health reveals distinct emotional patterns and coping strategies that have significant implications for public health communication and policy. The study finds that negative sentiments are prevalent and often linked to severe health concerns, including brain inflammation and COVID-19, and are associated with higher levels of cognitive distortions and complaints. In contrast, positive sentiments emphasize resilience and proactive health management. These insights highlight the necessity for targeted public health messaging, informed by social media trends, to address specific health anxieties, correct misinformation about dietary supplements and medications, and foster effective coping mechanisms.

Statements

Data availability statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Ethics statement

Ethical approval was not required for the studies involving humans because this research uses publicly available, anonymized data in full compliance with the terms, conditions, and privacy policies of X/Fedica. Ethical approval was unnecessary as the study did not involve any proactive intervention and was conducted solely with existing public data. All data were anonymized, ensuring that no identities or personal information linked to specific X user accounts are disclosed in this study. The studies were conducted in accordance with the local legislation and institutional requirements. Written informed consent for participation was not required from the participants or the participants' legal guardians/next of kin in accordance with the national legislation and institutional requirements.

Author contributions

PR: Writing – review & editing, Writing – original draft, Conceptualization, Methodology, Investigation. M-EM: Writing – original draft, Conceptualization, Visualization, Resources, Writing – review & editing, Methodology, Formal analysis, Project administration. MŁ: Writing – original draft, Methodology, Data curation, Supervision, Writing – review & editing. NK: Writing – review & editing, Writing – original draft, Methodology, Data curation. IR: Methodology, Writing – original draft, Formal analysis, Supervision, Writing – review & editing, Data curation. JH: Writing – original draft, Investigation, Writing – review & editing, Conceptualization, Supervision. AE: Methodology, Writing – review & editing, Writing – original draft, Data curation. MS: Validation, Formal analysis, Supervision, Writing – original draft, Writing – review & editing, Project administration. AA: Data curation, Software, Conceptualization, Visualization, Investigation, Funding acquisition, Writing – original draft, Writing – review & editing, Resources, Methodology, Validation, Formal analysis, Project administration, Supervision.

Funding

The author(s) declare that no financial support was received for the research and/or publication of this article.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

The author(s) declared that they were an editorial board member of Frontiers, at the time of submission. This had no impact on the peer review process and the final decision.

Generative AI statement

The author(s) declare that no Generative AI was used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fdgth.2025.1648671/full#supplementary-material

References

  • 1.

    SaraffSTarabanRRishipalRBiswalRKedasSGuptaS. Application of sentiment analysis in understanding human emotions and behaviour. EAI Endorsed Trans. Smart Cities. (2020) 5(13):e4. 10.4108/eai.6-10-2020.166547

  • 2.

    ZunicACorcoranPSpasicI. Sentiment analysis in health and well-being: systematic review. JMIR Med Inform. (2020) 8(1):e16023. 10.2196/16023

  • 3.

    JiXChunSAWeiZGellerJ. Twitter sentiment classification for measuring public health concerns. Soc Netw Anal Min. (2015) 5(13):1–25. 10.1007/s13278-015-0253-5

  • 4.

    BourdonD-ÉEl-BaalbakiGGirardDLapointe-BlackburnÉGuayS. Schemas and coping strategies in cognitive-behavioral therapy for PTSD: a systematic review. Eur J Trauma Dissociation. (2019) 3(1):100022. 10.1016/j.ejtd.2018.09.005

  • 5.

    CiciurkaiteGBrownRL. The link between food insecurity and psychological distress: the role of stress exposure and coping resources. J Community Psychol. (2022) 50(7):2815. 10.1002/jcop.22741

  • 6.

    BalantekinKNRoemmichJN. Children’s coping after psychological stress. Choices among food, physical activity, and television. Appetite. (2012) 59(3):762–7. 10.1016/j.appet.2012.05.016

  • 7.

    ZapfD. Emotion work and psychological well-being. A review of the literature and some conceptual considerations. Hum Resour Manag Rev. (2002) 12(2):237–68. 10.1016/S1053-4822(02)00048-7

  • 8.

    HasanMAUBakarAAYaakubMR. Measuring user influence in real-time on twitter using behavioural features. Phys A Statis Mech Appl. (2024) 639:129662. 10.1016/j.physa.2024.129662

  • 9.

    NawazFARiazMMATsagkarisCFaisalUHKlagerEKletecka-PulkerMet alImpact of #psychTwitter in promoting global psychiatry: a hashtag analysis study. Front Public Health. (2023) 11:1065368. 10.3389/fpubh.2023.1065363

  • 10.

    ChenJWangY. Social media use for health purposes: systematic review. J Med Internet Res. (2021) 23(5):e17917. 10.2196/17917

  • 11.

    Rodríguez-IbánezMCasánez-VenturaACastejón-MateosFCuenca-JiménezPM. A review on sentiment analysis from social media platforms. Expert Syst Appl. (2023) 223:119862. 10.1016/j.eswa.2023.119862

  • 12.

    YeungAWKTosevskaAKlagerEEibensteinerFTsagkarisCParvanovEDet alMedical and health-related misinformation on social media: bibliometric study of the scientific literature. J Med Internet Res. (2022) 24(1):e28152. 10.2196/28152

  • 13.

    MondalHAtanasovAGEibensteinerFHribersekMBrandstätterSMatinMet alScience communication on X (formerly twitter): a picture is worth a thousand characters?Explor Digit Health Technol. (2019) 1:28–34. 10.37349/EDHT.2023.00005

  • 14.

    ZarateDBallMProkofievaMKostakosVStavropoulosV. Identifying self-disclosed anxiety on twitter: a natural language processing approach. Psychiatry Res. (2023) 330:115579. 10.1016/j.psychres.2023.115579

  • 15.

    HussainMSTewariD. Social media applications in biomedical research. Explor Digit Heal Technol. (2024) 2:167–82. 10.37349/edht.2024.00019

  • 16.

    SchöneJPParkinsonBGoldenbergA. Negativity spreads more than positivity on twitter after both positive and negative political situations. Affect Sci. (2021) 2(4):379–90. 10.1007/s42761-021-00057-7

  • 17.

    MondalHMickaelM-EMDaliborMSmithHMatinMBinFet alThe power of #physiotherapy: a social media hashtag investigation on X (formerly twitter). Explor Digit Heal Technol. (2024) 2:135–44. 10.37349/edht.2024.00016

  • 18.

    LorlaS. Textblob documentation. TextBlob (2020). Available online at:https://textblob.readthedocs.io/ (Accessed April 26, 2020).

  • 19.

    Mas DiyasaIGSMarini MandenniNMIFachrurroziMIPradikaSINur ManabKRSasmitaNR. Twitter sentiment analysis as an evaluation and service base on python textblob. IOP Conf Ser Mater Sci Eng. (2021) 1125:012034. 10.1088/1757-899x/1125/1/012034

  • 20.

    KanubonuNMSriVMAndhraP. Word cloud in python. Word Cloud Python. (2020). p. 1–8. Available online at:https://www.academia.edu/42267431/Word Cloud_in_Python (Accessed July 28, 2025).

  • 21.

    BleiDMNgAYJordanMI. Latent dirichlet allocation. J Mach Learn Res. (2003) 3:1–8. 10.7551/mitpress/1120.003.0082

  • 22.

    AljedaaniWSaadERustamFde la Torre DíezIAshrafI. Role of artificial intelligence for analysis of COVID-19 vaccination-related tweets: opportunities, challenges, and future trends. Mathematics. (2022) 10(17):3199. 10.3390/math10173199

  • 23.

    SearleJR. Speech Acts an Essay in the Philosophy of Language. Cambridge: Cambridge Uuniversity Press (1969). ISBN:978113917343824.

  • 24.

    HolmesJWilsonN. An introduction to Sociolinguistics, Sixth Edition. London and New York: Routledge (2022). ISBN: 9781000533996.

  • 25.

    ShickelBSiegelSHeesackerMBentonSRashidiP. Automatic detection and classification of cognitive distortions in mental health text. In Proceedings of the 2020 IEEE 20th International Conference on BIBE, IEEE. (2020):275–80. 10.1109/bibe50027.2020.00052

  • 26.

    KincaidJPFishburneRPRogersRLChissomBS. Derivation of new readability formulas for navy enlisted personnel. Nav Tech Train Command Millington TN Res Branch. (1975). p. 1–40. Available online at:https://apps.dtic.mil/sti/pdfs/ada006655.pdf (Accessed January 01, 1975).

  • 27.

    BergerJ;MoeWWSchweidelDA. What holds attention? Linguistic drivers of engagement. J Mark. (2023) 87(5):793–809. 10.1177/00222429231152880

  • 28.

    VarliBCetindagENKoyuncu DemirKCobanUIslamovaGDokmeciF. Evaluation of readability levels of online patient education materials for female pelvic floor disorders. Medicine (Balt.) (United States). (2023) 102:e36636. 10.1097/md.0000000000036636

  • 29.

    ProvoostSRuwaardJvan BredaWRiperHBosseT. Validating automated sentiment analysis of online cognitive behavioral therapy patient texts: an exploratory study. Front Psychol. (2019) 10:1065. 10.3389/fpsyg.2019.01065

  • 30.

    MunroeMAl-RefaeMChanHWFerrariM. Using self-compassion to grow in the face of trauma: the role of positive reframing and problem-focused coping strategies. Psychol Trauma Theory, Res Pract Policy. (2021) 14(S1):S157–64. 10.1037/tra0001164

  • 31.

    KhooG-SOhJNahS. Staying-at-home with tragedy: self-expansion through narratives promotes positive coping with identity threat. Hum Commun Res. (2021) 47(3):309–34. 10.1093/hcr/hqab005

  • 32.

    AslamFAwanTMSyedJHKashifAParveenM. Sentiments and emotions evoked by news headlines of coronavirus disease (COVID-19) outbreak. Humanit Soc Sci Commun. (2020) 7(1):1–9. 10.1057/s41599-020-0523-3

  • 33.

    DohertyWJ. Cognitive processes in intimate conflict: i⋅ extending attribution theory. Am J Fam Ther. (1981) 9(1):3–13. 10.1080/01926188108250380

  • 34.

    HuangLSMolenberghsPMussapAJ. Cognitive distortions mediate relationships between early maladaptive schemas and aggression in women and men. Aggress Behav. (2023) 49(4):418–30. 10.1002/ab.22083

  • 35.

    JaeckleTWilliamsSCRBarkerGJBasilioRGoldsmithKColasantiAet al. Self-blaming emotions in major depression: a randomised pilot trial comparing FMRI neurofeedback training with self- guided psychological strategies. (NeuroMooD). Psychol Med. (2023) 53(7):2831–41. 10.1017/50033291721004797

  • 36.

    ZahnRLytheKEGethinJAGreenSDeakinJFWYoungAHet alThe role of self-blame and worthlessness in the psychopathology of major depressive disorder. J Affect Disord. (2015) 186:337–41. 10.1016/j.jad.2015.08.001

  • 37.

    LangdonRCornerTMcLarenJWardPBColtheartM. Externalizing and personalizing biases in persecutory delusions: the relationship with poor insight and theory-of-mind. Behav Res Ther. (2006) 44(5):699–713. 10.1016/j.brat.2005.03.012

  • 38.

    BeckATRushAJShawBFEmeryG.Cognitive theory of depression (1997). ISBN:9780898629194

  • 39.

    ReillyLCCieslaJAFeltonJWWeitlaufASAndersonNL. Cognitive vulnerability to depression: a comparison of the weakest link, keystone and additive models. Cogn Emot. (2012) 26(3):521–33. 10.1080/02699931.2011.595776

  • 40.

    WrightBRECarverCSScheierMF. On the self-regulation of behavior. Contemp Sociol. (2000) 29(2):232–4. 10.2307/2654424

  • 41.

    Mindset. The new psychology of success. Choice Rev. Online. (2006) 44(4):44–2397. 10.5860/choice.44-2397

  • 42.

    GarlandELFarbNAGoldinRFredricksonPLB. Mindfulness broadens awareness and builds eudaimonic meaning: a process model of mindful positive emotion regulation. Psychol Inq. (2015) 26(4):293–314. 10.1080/1047840X.2015.1064294

  • 43.

    Dominguez-MeijideAParralesVVasiliEGonzález-LizárragaFKönigALázaroDFet alDoxycycline inhibits α-synuclein-associated pathologies in vitro and in vivo. Neurobiol Dis. (2021) 151:105256. 10.1016/j.nbd.2021.105256

  • 44.

    MedinaLGonzález-LizárragaFDominguez-MeijideAPloperDParralesVSequeiraSet alDoxycycline interferes with tau aggregation and reduces its neuronal toxicity. Front Aging Neurosci. (2021) 13:635760. 10.3389/fnagi.2021.635760

  • 45.

    OnakpoyaIJThomasETLeeJJGoldacreBHeneghanCJ. Benefits and harms of pregabalin in the management of neuropathic pain: a rapid review and meta-analysis of randomised clinical trials. BMJ Open. (2019) 9:e023600. 10.1136/bmjopen-2018-023600

  • 46.

    FangJGaoSIslamRTeramotoYMaedaH. Extracts of phellinus linteus, bamboo (Sasa senanensis) leaf and chaga mushroom (Inonotus obliquus) exhibit antitumor activity through activating innate immunity. Nutrients. (2020) 12(8):2279. 10.3390/nu12082279

  • 47.

    KwonOKimYPaekJHParkWYHanSSinHet alChaga mushroom-induced oxalate nephropathy that clinically manifested as nephrotic syndrome: a case report. Medicine (United States). (2022) 101(10):e28997. 10.1097/md.0000000000028997

  • 48.

    JääskeläinenANevanperäNRemesJRahkonenFJärvelinMRLaitinenJ. Stress-related eating, obesity and associated behavioural traits in adolescents: a prospective population-based cohort study. BMC Public Health. (2014) 14:321. 10.1186/1471-2458-14-321

  • 49.

    GowerT.Is Your brain making you fat? Arthritis Today (2019) 33. Available online at:https://www.abc.net.au/science/articles/2010/01/21/2798024.htm (Accessed January 21, 2010).

  • 50.

    IacusSMPorroGSaliniSSilettiE. Controlling for selection bias in social media indicators through official statistics: a proposal. J Off Stat. (2020) 36:315–38. 10.2478/jos-2020-0017

  • 51.

    StellaMFerraraEDe DomenicoM. Bots increase exposure to negative and inflammatory content in online social systems. Proc Natl Acad Sci USA. (2018) 115:12435–40. 10.1073/pnas.1803470115

  • 52.

    MyrickJG. The Role of Emotions in Preventative Health Communication. Lanham, MD: Lexington Books (2015). ISBN:9780739191477.

  • 53.

    BeckAT. Cognitive therapy: nature and relation to behavior therapy. Behav Ther. (1970) 1:184–200. 10.1016/S0005-7894(70)80030-2

Summary

Keywords

sentiment analysis, brain health, social media, coping strategies, cognitive behavioral therapy, medication and diet

Citation

Religa P, Mickael M-E, Łazarczyk M, Kubick N, Rehan IF, Horbańczuk JO, Elnagar A, Sacharczuk M and Atanasov AG (2025) Dissecting the difference between positive and negative brain health sentiment using X data. Front. Digit. Health 7:1648671. doi: 10.3389/fdgth.2025.1648671

Received

09 July 2025

Accepted

30 October 2025

Published

26 November 2025

Volume

7 - 2025

Edited by

Carol Maher, University of South Australia, Australia

Reviewed by

Ruby Castilla-Puentes, WARMI Mental Health, United States

Joni Webster, Tam Institute for Jewish Studies, Emory University, United States

Updates

Copyright

*Correspondence: Atanas G. Atanasov Michel-Edwar Mickael Piotr Religa

† These authors have contributed equally to this work

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics