Original Paper
Abstract
Background: Searching for web-based health-related information is frequently performed by the public and may affect public behavior regarding health decision-making. Particularly, it may result in anxiety, erroneous, and harmful self-diagnosis. Most searched health-related topics are cancer, cardiovascular diseases, and infectious diseases. A health-related web-based search may result in either formal or informal medical website, both of which may evoke feelings of fear and negativity.
Objective: Our study aimed to assess whether there is a difference in fear and negativity levels between information appearing on formal and informal health-related websites.
Methods: A web search was performed to retrieve the contents of websites containing symptoms of selected diseases, using selected common symptoms. Retrieved websites were classified into formal and informal websites. Fear and negativity of each content were evaluated using 3 transformer models. A fourth transformer model was fine-tuned using an existing emotion data set obtained from a web-based health community. For formal and informal websites, fear and negativity levels were aggregated. t tests were conducted to evaluate the differences in fear and negativity levels between formal and informal websites.
Results: In this study, unique websites (N=1448) were collected, of which 534 were considered formal and 914 were considered informal. There were 1820 result pages from formal websites and 1494 result pages from informal websites. According to our findings, fear levels were statistically higher (t2753=3.331; P<.001) on formal websites (mean 0.388, SD 0.177) than on informal websites (mean 0.366, SD 0.168). The results also show that the level of negativity was statistically higher (t2753=2.726; P=.006) on formal websites (mean 0.657, SD 0.211) than on informal websites (mean 0.636, SD 0.201).
Conclusions: Positive texts may increase the credibility of formal health websites and increase their usage by the general public and the public’s compliance to the recommendations. Increasing the usage of natural language processing tools before publishing health-related information to achieve a more positive and less stressful text to be disseminated to the public is recommended.
doi:10.2196/55151
Keywords
Introduction
Background
A wide range of medical information is available on the web and can be used by individuals who are not health care professionals to gain a better understanding of health and illness, as well as to provide an explanation for their symptoms [
, ]. However, it should be noted that health-related search information may have a significant impact on people’s decisions and concerns, including the ability to diagnose and assess their own health care needs, deciding whether or not to consult with a physician for assistance with diagnosis and treatment, and their approach to maintaining their own and their families’ health [ ].People can experience anxiety when reading information on the internet [
- ]. Exposing people without medical knowledge to complex medical terminology may put them at risk of self-diagnosis and self-treatment that could be harmful to them [ ]. According to White and Horvitz [ ], web search engines can escalate health concerns and various factors contribute to this escalation, including the amount and distribution of health-related content viewed by users, the presence of escalatory terminology on the pages visited, and a user’s propensity to escalate concerns in order to find more plausible explanations for their ailments. A condition known as “cyberchondria” is the creation of unfounded concerns about common symptoms based upon web-based searches and other sources of information [ ].People search health-related information on various topics. Previous studies showed that the most searched health-related topics were the cancer diseases, cardiovascular diseases, and infectious diseases [
]. Web search of health-related topics may lead to formal websites, originating from an official health organization such as the World Health Organization, and to informal websites, originating from unofficial health-related websites, including blogs of people without appropriate medical training [ ]. Both formal and informal health-related websites may contain information that may increase the reader’s fear while reading the information [ ]. However, whether there is a difference in fear and negativity levels between health-related information that appears in formal health-related websites and health-related information that appears in informal websites remains questionable.Sentiment and emotion analysis are natural language processing (NLP) techniques for the identification of sentiment and emotion from speech or voice data, images, or text data [
- ]. In sentiment analysis, the overall polarity of a text is identified—whether it is positive, negative, or neutral. Emotion analysis involves the identification of specific emotions expressed in a text. In accordance with Ekman’s [ ] model, several basic emotions can be identified, such as happiness, sadness, anger, disgust, surprise, and fear.Different methods can be used to detect sentiment and emotions in a given text, and in recent years transformer models have become increasingly popular, especially in NLP. Transformer model is a deep neural network that learns context and meaning using self-attention [
]. Text classification using the transformer model achieved similar accuracy to human annotations. In recent years, several pretrained language models have been introduced, including BERT [ ], XLNet [ ], RoBERTa [ ], DistilBERT [ ], and ALBERT [ ]. Our study aimed to assess the association between the type of health-related website (formal or informal) and 2 outcome variables: the level of fear and the level of negativity by using transformer for sentiment and emotion detection.Related Work
The analysis of emotions and sentiments in health information has become increasingly popular in recent years, particularly with the rise of social media as platforms for sharing health-related information [
]. This section provides an overview of studies that investigated the analysis of emotions and sentiments in health-related information.Sentiment Analysis in Web-Based Health Information
Studies have examined sentiments of patients with cancer in web-based forums [
, ]. Cabling et al [ ] analyzed the feelings and opinions of web-based breast cancer support group users regarding tamoxifen, hormone-based therapy used to treat breast cancer. Results showed that the most active users were significantly more positive than the least active users, who were more negative. Users with higher cancer stages were less likely to post, focusing on side effects and associated anxiety and sadness. In contrast, users with lower cancer stages were more likely to post, remain active, and encourage social support. Carrillo-de-Albornoz et al [ ] analyzed more than 3500 posts on web-based health forums concerning breast cancer, Crohn disease, and various allergies. They trained different machine learning algorithms to automatically classify patient-authored content into positive, negative, and neutral categories. Using word embeddings, they predicted the polarity of patient-authored content with an accuracy of 0.7, which indicates the times that the algorithms correctly classified the sentiment of the posts, outperforming more traditional methods.In addition, other studies have examined sentiment analysis of patient responses online [
- ]. Greaves et al [ ], for instance, used machine learning to understand patients’ comments about their care in web-based comments posted about hospitals on the English National Health Service website. A sentiment analysis technique was used to categorize web-based free-text comments made by patients as positive or negative. Ali et al [ ] analyzed 26 different threads on 3 medical forums and determined whether the posts were positive, negative, or neutral regarding hearing loss.Considering the analysis of emotions in web-based health information, Khanpour and Caragea [
] proposed ConvLexLSTM to identify fine-grained emotion types in health-related web-based posts in web-based health communities. This model combines Convolutional Neural Network features with lexicon-based features, which are fed into a Long Short Term Memory network. They demonstrate that ConvLexLSTM outperforms strong baselines and prior works. Later in 2020, Sosea and Caragea [ ] presented CANCEREMO, an emotion data set created from a web-based health community and annotated with 8 fine-grained emotions. Their most effective BERT model achieves an average F1-score of 71%.Sentiment Analysis of Web-Based Health-Related Information on Social Media
An extensive amount of health data is disseminated via social media platforms such as Twitter and Facebook [
]. Studies in this category analyze users’ sentiments regarding disease and mental health, for example, sentiments in responses to YouTube videos related to proanorexia and antianorexia [ ]. Similarly, Roccetti et al [ ] explore attitudes toward Crohn disease on Facebook and Twitter. Furthermore, Ricard et al [ ] examine the potential of community-generated social media content for detecting depression on Instagram.Health discourse on social media has been significantly affected by the COVID-19 pandemic [
]. Public attitudes and opinions regarding vaccination have been the subject of several studies [ - ]. Using active learning to select a large population of health care professionals’ Twitter accounts, Elyashar et al [ ] analyzed health care professionals’ web-based discussions as expressed in web-based discussions published on Twitter during the COVID-19 pandemic. According to their analysis, the intensity of emotion in their discourses decreased with the pandemic waves in 2020. They revealed a decline in joy and an increase in sadness, fear, and disgust in that year’s discourses. Aduragba et al [ ] propose EmoBERT, an emotion-based variant of the BERT transformer model, able to learn emotion representations during major disease outbreaks using the Twitter platform and outperform the state-of-the-art.Christensen et al [
] analyzed 172 major news outlets across 11 countries. As a result of keyword-based frequency analysis, the percentage of vaccination-related papers in all collated English-language papers was calculated. The Vader Python module, developed by CJ Hutto and Eric Gilbert, quantified sentiment polarization. The number of negatively polarized papers increased from 6698 in 2015-2019 to 28,552 in 2020-2021 (the COVID-19 pandemic period).In contrast to previous studies, which analyzed textual data posted by users and their posts, reviews, and comments for sentiment analysis, our objective is to gain a better understanding of the sentiments and emotions expressed on formal and informal health-related websites. By focusing primarily on the differences in negative and fear levels expressed on formal and informal health-related websites, we hope to provide a more comprehensive understanding of fear and negative sentiment that is provided to the public through formal and informal health-related websites.
Methods
Overview
summarizes the seven main phases we followed to conduct the proposed study: (1) based on literature, identifying the symptoms associated with each family disease, (2) conducting Google searches for each symptom, (3) retrieving the top 200 pages returned by Google for each symptom, (4) classifying each website as formal or informal by manual labeling, (5) creating a data set of websites symptom results, (6) applying content, sentiment, and emotion analysis to the text of each website, and (7) aggregating the results to fear and negativity levels.
Identification of Family Disease Symptoms
Common diseases were first considered, including infectious diseases, cancer, and cardiovascular diseases. Symptoms for selected diseases were identified using existing literature regarding common symptoms associated with these diseases [
- , , ]. The list of symptoms is shown in .Diseases family | Related symptoms |
Infectious |
|
Cancer |
|
Cardiovascular |
|
Data Collection
We conducted a web search to retrieve websites containing symptoms of selected diseases, including infectious diseases, cancer diseases, and cardiovascular diseases. In order to search the websites, we used Google Web Search using an application programming interface provided by the RapidAPI website.
We conducted a search for each symptom and added the top 200 search results to our website’s database. Our database is a comma-separated values file containing the entire website content. We obtained the hostname for each website using the application programming interface. In this study, the term website refers to the hostname of a specific website.
We used self-written Python code (version 3.9; Python Software Foundation) to decompose each website’s content into sentences. Since long text contains multiple emotions [
], it was convenient to divide the content into sentences. We applied standard text preprocessing techniques to each content, such as removing line breaks, nonalphabetic words, stop words, and hyperlinks using natural language toolkit (NLTK, version 3.8.1).Ethical Considerations
The original data collection was approved by our institutional review board. This analysis received approval from The Emek Yezreel College Ethical Review Board (approval number 2024-74 YVC EMEK). The research did not involve human subjects (the research data included only websites). Therefore, informed consent was not applicable, privacy and confidentiality of the data were not applicable, and compensation details were not applicable.
The Classification of Website as Formal or Informal
The received websites were manually categorized into 2 categories: formal websites and informal websites. A clear and consistent set of criteria based on expert domain knowledge guided the categorization process.
The criteria for formal health websites refer to those operated by an official government ministry or organization or authority, such as the ministry of health, the Centers for Disease Control and Prevention, the World Health Organization, and official websites of established health care facilities such as hospitals and academic medical centers (not including private clinics). Websites that did not meet these criteria were categorized as informal websites. Among the informal websites were blogs, news websites, entertainment websites, and so forth.
Content Analysis
To analyze the content of each family disease, we calculated the average term frequency—inverse document frequency (TF-IDF). The TF-IDF measures the importance of words within each family disease. A term frequency (TF) measures how frequently a particular term appears in the content of a website. It is calculated by dividing the number of times a term appears in a website’s content by the number of terms found across all family disease websites. Inverse document frequency (IDF) measures the importance of a term in the entire data set of family disease. It is calculated as the logarithm of the number of websites belonging to the family disease divided by the number of websites containing the term. The TF-IDF for each term appearing on a website in family disease has been averaged across all websites of family disease to determine the average TF-IDF. The average TF-IDF measures the overall importance of terms in family disease, where higher values indicate greater significance.
Emotion Analysis Using 3 Models
For the emotion classification task, we selected 2 transformer models from the Hugging Face Transformers repository. The models are distilled versions of state-of-the-art models of RoBERTa [
] and BERT [ ], which means that they have been compressed and made smaller in size while maintaining most of the original model’s performance. These 2 models are the most downloaded among the distilled models for emotion detection. Based on diverse text classification data sets, these models have been carefully fine-tuned to capture and leverage contextual information, enabling them to effectively classify text.- j-hartmann/emotion-english-distilroberta-base: the model is a fine-tuned checkpoint of DistilRoBERTa-base. The model is available in the HuggingFace repository as “j-hartmann/emotion-english-distilroberta-base.” Using 6 diverse data sets, the model predicts Ekman’s 6 basic emotions, plus a neutral class: anger, disgust, joy, fear, sadness, surprise, and neutral [ ].
- bhadresh-savani/distilbert-base-uncased-emotion: we used a pretrained model for emotion detection. It is available on the HuggingFace repository under the name “bhadresh-savani/distilbert-base-uncased-emotion.” This model [ ] is a distilled version of the BERT base model, fine-tuned on the emotion data set with an accuracy of 93.8% [ ] of English Twitter messages with 8 basic emotions: anger, anticipation, disgust, fear, joy, sadness, surprise, and trust.
Several state-of-the-art transformer models such as RoBERTa [
], Distilbert [ ], and ALBERT [ ] were trained on an emotion data set of a web-based health community, annotated with 8 fine-grained emotions [ ]. This data set allows us to select the best model based on accuracy and F1-scores that fit most commonly for web-based health-related information and then use the model for estimating fear emotions arising from text of new health-related data. The data set contains 5389 sentences annotated with fear or unfear emotions equally. We used these labels to measure the accuracy and F1-score of each model in predicting the fear emotion and choose the model with the best performance. distillbert-based-uncased was the best performance model:- distillbert-medical-fear-emotion: the model is available on HuggingFace repository under the name distillbert-based-uncased (details in the “Results” section). We call our fine-tuned model distillbert-medical-fear-emotion.
Fear Level
Each sentence was classified into confidence score using the 2 emotion models (bhadresh-savani/distilbert-base-uncased-emotion and distillbert-medical-fear-emotion). The confidence score represents the probability that the model is confident that a given input belongs to a particular class, in our case, fear. The confidence score ranges from 0 to 1, the higher the score, the more confident it is that the input is related to fear. For example, a sentence classified with a score of 0.70 means that the likelihood that this sentence belongs to fear is 70%. From now on, we refer to the confidence score as the fear level. The fear level was determined using the 2 transformer models to determine consistency. For both models, we calculated the study independent variable, website level of fear.
We calculated the level of fear as follows:
- Each website’s text content was analyzed at the sentence level.
- For each sentence, a pretrained language model was used to estimate its probability of expressing fear. The confidence score ranges from 0 to 1, with higher values indicating a higher level of fear.
- We calculated the level of fear for a particular website based on the mean of the fear confidence scores across all sentences on that website.
- We categorized the websites into 2 categories: formal and informal.
- The final level of fear variable represents the average of the fear levels calculated for all websites within each group (formal or informal).
The model of j-hartmann/emotion-english-distilroberta-base was used to examine the distribution of emotions (anger, disgust, joy, fear, sadness, surprise, and neutral) for formal and informal websites.
Sentiment Analysis Using SiEBERT Model
For the purpose of sentiment analysis of each website content, we used the SiEBERT model [
]. SiEBERT model is a fine-tuned checkpoint of RoBERTa-large [ ]. It is available on HuggingFace repository under the name siebert/sentiment-roberta-large-english. It provides reliable binary sentiment analysis for English language texts. It predicts either positive or negative sentiment for each instance.Negativity Level
In the same way, as we did with the emotion analysis models, SiEBERT classified each sentence according to its likelihood of being negative.
We calculated the negativity level as follows:
- The text content of each website was analyzed at the sentence level.
- A pretrained language model was used to estimate the probability of each sentence expressing negativity. There is a range of confidence scores from 0 to 1, with higher values indicating a greater level of negativity.
- We calculated the level of negativity for a particular website based on the mean of the negativity confidence scores across all sentences on that website.
- The websites were categorized into 2 categories: formal and informal.
- The final level of negativity variable represents the average level of negativity calculated for all websites within each group (formal or informal).
Statistical Analysis
Prior to calculating the averages of fear and negativity in each site type, we filtered repeated results to avoid duplication of results across different websites and content types.
We conducted a 2-tailed t test to evaluate the difference between the average fear detected on formal health-related websites and the average fear detected on informal health-related websites. For each result, P<.05 was considered statistically significant. SPSS (version 28; IBM Corp) software was used for statistical analyses.
Results
Description of the Created Database
After searching in Google Search all the selected symptoms, we received a database containing a total of 1448 unique websites. A total of 534 websites were classified as formal websites and a total of 914 websites were classified as informal websites. The data set has been cleaned by removing results containing unrelated content or errors caused by any restrictions from the websites. A total of 593 results were removed. In total, for the formal websites, there were 1820 pages containing 30,701 sentences, while for the informal websites, there were 1494 pages containing 25,961 sentences.
As a result of reducing duplicate results in which the same website returned with the same content in different search results, we were left with 1461 formal websites and 1294 informal websites.
Words Representing Each Disease Family
The top 1000 significant words from each disease family retrieved from the content of the websites are shown in
. In order to determine the most significant words for each disease family, the average TF-IDF was calculated separately for each disease family. It can be seen that the most significant words for cancer are breast, cough, and pain. In addition, the most significant words in infectious diseases are breath, muscle, fever, and shortness. The most significant words in cardiovascular diseases are heart, chest, and pain.The Results of Bhadresh-Savani/Distilbert-Base-Uncased-Emotion Model for Classifying the Level of Fear
In the Methods section, the level of fear was defined. For this part, we used the pretrained model bhadresh-savani/distilbert-base-uncased-emotion. According to
, the fear level in formal websites is higher than that in informal websites based on this emotion detection model.We used the t test to determine whether there was a significant difference between the fear level in formal and informal websites. The degree of freedom was 2753.
The results of the t test indicate a statistically significant difference between formal and informal websites in terms of the fear level in this model (
presents the t test table).The model | Groups mean | Groups SDs | t test values (df) | P value | ||||||||
Fear level | ||||||||||||
bhadresh-savani/distilbert-base-uncased-emotion | 0.388 | 0.366 | 0.177 | 0.168 | 3.331 (2753) | .001 | ||||||
distillbert-medical-fear-emotion | 0.584 | 0.569 | 0.121 | 0.134 | 3.040 (2753) | .002 | ||||||
Negativity level | ||||||||||||
SiEBERT | 0.657 | 0.636 | 0.211 | 0.201 | 2.726 (2753) | .006 |
The Results of Distillbert-Medical-Fear-Emotion Model for Classifying the Level of Fear
The emotion data set from an web-based health community was used to train several transformer models [
]. As a result of the data set, we can train existing models that estimate fear levels arising from health-related information and find the best model based on accuracy and F1-scores. Eighty percent of the data set was used for training, 10% for validation, and 10% for testing.The distillbert-based-uncased model provided the highest performance with accuracy on the validation set of 0.944 and an F1-score of 0.943. On the testing set, the model achieved an accuracy of 74.4%. There was 75% intercoder agreement on the same task with human annotation in the study by Sosea and Caragea [
]. We call our fine-tuned model distillbert-medical-fear-emotion. shows the accuracy and F1-scores of transformer models on the testing set.Models | Description | Accuracy | F1-scores |
distilbert-base-uncased | Distilbert is a distilled smaller and faster version [ | ] of the BERT base model.0.744 | 0.771 |
ClinicalBERT | Bio_ClinicalBERT is a model trained on data from the Beth Israel Hospital’s ICU patients [ | ].0.729 | 0.762 |
bert-base-uncased | Pretrained model on English language using a masked language modeling objective [ | ].0.736 | 0.757 |
roberta-large | RoBERTa is a transformers model pretrained on a large corpus of English data in a self-supervised fashion [ | ].0.736 | 0.765 |
albert-base-v2 | ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion [ | ].0.738 | 0.757 |
Our best model, distillbert-medical-fear-emotion, was then used to automatically classify each sentence by its fear level. For both formal and informal websites, fear levels are presented.
shows the model result. It can be seen that formal websites have a higher fear level.Another t test was performed and revealed a statistically significant difference between formal and informal websites in terms of the fear level of distillbert-medical-fear-emotion (
presents the t test table).According to the results, both models (the bhadresh-savani/distilbert-base-uncased-emotion model and the distillbert-medical-fear-emotion model) were consistent in their results when comparing formal and informal websites.
The Results of the SiEBERT for Classifying the Level of Negativity
In the Methods section, the level of negativity was defined. Using the SiEBERT model, we analyzed the level of negative sentiment arising from formal and informal websites.
shows that informal websites also exhibit a higher degree of negativity in the sentiment analysis. We used the t test to determine whether there was a significant difference between formal and informal websites. Our results indicate that there is a statistically significant difference between formal and informal websites in terms of negative sentiment reflected in the text ( presents the t test table).presents the negativity level by disease family, including cancer, cardiovascular diseases, and infectious diseases. It can be observed that the negativity level in texts related to infectious diseases is higher than that in texts related to cancer and cardiovascular diseases.
The Results of the J-Hartmann/Emotion-English-Distilroberta-Base for Emotion Detection
As part of the emotion analysis process, we ran the j-hartmann/emotion-english-distilroberta-base emotion analysis model across the website texts to gain a deeper understanding of the emotions expressed in these texts.
In
, we show the distribution of emotions across formal and informal websites. As can be seen in both cases, neutral emotion dominates, followed by fear, sadness, and disgust, indicating that both types of websites convey mostly negative emotions. A comparison between formal and informal websites reveals that fear is higher in formal websites, as was shown in previous models, but anger and sadness are also higher in formal websites.Discussion
Principal Findings
As part of our results, we observed that websites related to infectious diseases induced a higher level of negativity than websites related to cancer.
A possible explanation for this finding is that cancer is widely perceived by the public as a severe disease, and, as such, the public is more conformed with formal guidelines and recommendations regarding cancer prevention and treatment, and no fearful tactics and messages are required to achieve compliance. On contrary, the severity of infection diseases is underestimated by large parts of the public. Moreover, antivaxxers spread misinformation regarding various vaccines that are crucial to primary prevention of infectious diseases, including influenza, COVID-19, measles, smallpox, and more, and may prevent severe outcomes and mortality.
As a result, health professionals may include frightening text related to infectious diseases, in order to increase the public compliance with formal recommendations. Moreover, the recently emerging outbreaks of some infectious diseases may have been resulted in a more stressful and fear-inducing tone in formal messages.
Efforts may be made to obtain a balance between communicating diseases’ severity and prevention measures and avoiding excessive scare tactics. This may be achieved by combining relevant facts with appropriate emotional appeals. Such a balance may increase the public awareness and compliance.
Furthermore, our results demonstrate that formal websites introducing health-related information induce more negative sentiments and fear emotions than informal websites.
A possible explanation for the higher negative sentiments and fear emotions found on formal websites could be that formal websites are more precise and provide more correct information on health-related issues [
]. As such, they may contain more clinical and scientific terminology regarding the searched medical issue than informal websites. Such details may include disease symptoms, the diagnosis process, prognosis, side effects, risks, possible treatments, and worst-case scenarios. These details may increase the negativity and fear levels induced by their provided text [ ]. A formal website may also be associated with higher levels of negative sentiment and fear emotions since it is managed by government and health authorities, which may use fear appeals to motivate behavior changes such as vaccinations. These tactics may increase anxiety if they are not carefully framed [ ].On the other hand, informal websites are less informative and may contain inaccurate information and misinformation about health-related issues. For example, the claim that consuming apricot seeds will cure cancer is a misinformative non–evidence-based claim that can be found in some informal websites [
]. As such, informal websites may have decreased negativity and fear level in their provided texts, and, by that, they may appear more relaxing to the reader.The public seeking for health-related information uses formal as well as informal websites. Formal health-related websites contain accurate, evidence-based information regarding different diseases, and it is desirable that the public will use formal health-related information [
, ]. On the other hand, informal health-related websites may include misinformation and may lead the public to erroneous decisions [ ]. For example, misinformation regarding the measles, mumps, and rubella vaccine led to some severe measles outbreaks in some European countries and the United States [ ]. However, the public tends to choose information sources that are not stressful and introduces the information in a manner that does not increase the reader’s stress [ , , ]. Therefore, the public may prefer to retrieve information from informal health-related websites, which, according to our results, induces less stress, regardless of misinformation which may exist.This may lead to undesirable public health consequences. Selective focus on a specific type of medical content that is less stressful or anxiety-inducing can result in biased search strategies when retrieving health information [
]. Biased health information retrieval strategies can negatively affect public health and decision-making, resulting in inaccurate, incomplete, or misleading information [ , ].Confirmation bias is a common bias when users search for information online. A confirmation bias is defined as the unconscious inclination to favor information that supports one’s own viewpoint or belief [
]. As a result of confirmation bias, users are more likely to accept misleading information since it is consistent with their previous preconceptions [ ]. Confirmation bias can be associated with the tendency to prefer positive information, in which users do not only seek information that confirms their existing beliefs but also seek to avoid negative information in order to maintain a positive emotional state.In light of our recommendation to reduce levels of negativity and fear in the texts, it is important to balance fears raised by the text, while also providing accurate and comprehensible information to reduce the risk of biased information.
It is essential that health information is provided in a comprehensive manner [
], and some topics require a more serious tone of voice. For example, a serious tone may be necessary when discussing the full risks associated with a health condition, but a positive tone may be more effective in encouraging preventive health behaviors, such as vaccines. Therefore, the strategy for delivering information should include accurate, complete, and comprehensible information, as well as a focus on enhancing the positivity of the information.The COVID-19 pandemic demonstrated that transmitting clear, precise, and evidence-based information to be used by the general public may be used as a strategy for controlling the disease, and it is one of the challenges of formal health organizations [
]. During the COVID-19 pandemic, an abundance of contradicting information existed, including misinformation regarding the disease severity and the required measures, including the vaccines that were developed during the outbreak. A study that examined the differences between formal and informal websites with regard to COVID-19 prevention measures found significant differences regarding some essential measures such as wearing masks [ ]. Another study found an association between the source of information regarding the COVID-19 vaccines (formal or informal) and the willingness to receive the vaccine [ ]. Hence, one of the challenges of public health professionals while facing the COVID-19 pandemic was to communicate challenging messages that build public trust [ ]. Moreover, the COVID-19 pandemic was considered a unique and exceptional event worldwide [ ]. As such, it created a new normal that we need to learn to live with [ ]. One of the implications of living with the new normal is understanding that public health exists within a social context. Embracing public health as a social concept is essential for dealing with COVID-19, as well as with other global crises, such as climate change [ ]. Therefore, a challenge for living with the new normal is achieving solidarity in health and public health and, by that, confronting cross-national and cross-cultural risks [ ]. The use of positive texts by formal health-related websites, which can be achieved by reducing the negativity and fear levels in the texts, may increase the credibility of formal health websites, perceived by the public, and increase their usage by the general public, as well as the public’s trust, engagement, and compliance with the measures during the pandemic. This may contribute to the solidarity, which is essential to living with the new normal.Encouraging public professionals and public health organizations to use NLP tools before publishing health-related information, in order to identify negativity and fear levels in the text and reduce them, may be helpful to achieve a more positive and less stressful text to be transmitted to the public and may increase the public compliance to suggested measures.
Limitations
This study has some limitations. Using NLP tools as transformer models for estimating negativity and fear in the text comes with certain limitations. While these models have revolutionized the field of NLP and have accomplished remarkable feats in various tasks, they still have difficulty to capture the nuances of negative or fearful sentiments in the same manner as a human being. In addition, fear is a subjective feeling and may vary between people. Nevertheless, we do believe that our algorithm catches texts that appear negative and fearful to the majority of the population, since it is based on words that are likely to be perceived as negative and fearful by a large portion of the population, such as death, lethal, complications, and more. Further research is required to examine the correlation between negativity and fear levels received by our algorithm and negativity and fear levels observed by human participants.
Another limitation is that this study focused on 3 specific diseases: cancer, cardiovascular, and infectious diseases. We focused on these diseases since they are leading causes of death and as such, people are likely to search on the web for information about their symptoms [
]. We believe that focusing on these diseases provided a reasonable starting point for this initial exploratory study. Further research is required to expand the scope of this research by examining other diseases.Furthermore, in this study, we examined the emotions and sentiments expressed in the text; however, people may have additional priorities or preferences when consuming web-based health information. Health information consumption should consider a broad range of user needs and preferences, such as how clear, easy to understand, and complete the information is. The differences between formal and informal health-related websites should be further studied to gain a deeper understanding of the diverse needs and priorities of health information users when accessing health information, for example, to examine the differences between the clarity of the information on the 2 types of websites.
Conclusions
We believe that improving the positivity of messages provided by formal health-related websites by reducing the negativity and fear levels may increase the public use of these websites, as well as the public’s trust in them, and the public’s compliance with recommended measures. It can be achieved by applying NLP tools to texts published by official public health websites. Public health decision makers may use existing NLP models, which include appropriate graphical user interface to assess the negativity and fear levels in a text, before publishing it to the public. An example of such a model can be found in SiEBERT—English-Language Sentiment Classification [
]. However, training public health professionals to use such tools and to reduce the negativity and fear levels in their published texts is essential to achieving this goal.Data Availability
The data sets generated and analyzed during this study are not publicly available because they contain sensitive information that could compromise the privacy and consent of the websites. The transformed data are, however, available upon reasonable request from the authors.
Authors' Contributions
APV led the conceptualization (equal), software (lead), methodology (equal), data curation (lead), formal analysis (lead), visualization (lead), and writing (equal). AM led the conceptualization (equal), methodology (equal), visualization (equal), writing (equal), data curation (equal), and formal analysis (equal).
Conflicts of Interest
None declared.
Top 1000 words for each disease.
XLSX File (Microsoft Excel File), 84 KBFear level in formal and informal websites based on distilbert-base-uncased-emotion.
PNG File , 40 KBFear level in formal and informal websites based on distilbert-medical-fear-emotion.
PNG File , 42 KBNegativity level in formal and informal websites.
PNG File , 45 KBReferences
- White RW, Horvitz E. Cyberchondria: studies of the escalation of medical concerns in web search. ACM Trans Inf Syst. 2009;27(4):1-37. [CrossRef]
- Kubb C, Foran HM. Online health information seeking by parents for their children: systematic review and agenda for further research. J Med Internet Res. 2020;22(8):e19985. [FREE Full text] [CrossRef] [Medline]
- White RW, Horvitz E. Web to world: predicting transitions from self-diagnosis to the pursuit of local medical assistance in web search. AMIA Annu Symp Proc. 2010;2010:882-886. [FREE Full text] [Medline]
- Peng RX. How online searches fuel health anxiety: investigating the link between health-related searches, health anxiety, and future intention. Comput Hum Behav. 2022;136:107384. [CrossRef]
- Lagoe C, Atkin D. Health anxiety in the digital age: an exploration of psychological determinants of online health information seeking. Comput Hum Behav. 2015;52:484-491. [CrossRef]
- Baumgartner SE, Hartmann T. The role of health anxiety in online health information search. Cyberpsychol Behav Soc Netw. 2011;14(10):613-618. [CrossRef] [Medline]
- Benigeri M, Pluye P. Shortcomings of health information on the internet. Health Promot Int. 2003;18(4):381-386. [CrossRef] [Medline]
- Schneider PP, van Gool CJ, Spreeuwenberg P, Hooiveld M, Donker GA, Barnett DJ, et al. Using web search queries to monitor influenza-like illness: an exploratory retrospective analysis, Netherlands, 2017/18 influenza season. Euro Surveill. 2020;25(21):1900221. [FREE Full text] [CrossRef] [Medline]
- Abroms LC, Yom-Tov E. The role of information boxes in search engine results for symptom searches: analysis of archival data. JMIR Infodemiology. 2022;2(2):e37286. [FREE Full text] [CrossRef] [Medline]
- Hochberg I, Allon R, Yom-Tov E. Assessment of the frequency of online searches for symptoms before diagnosis: analysis of archival data. J Med Internet Res. 2020;22(3):e15065. [FREE Full text] [CrossRef] [Medline]
- Alm C, Roth D, Sproat R. Emotions from text: machine learning for text-based emotion prediction. 2005. Presented at: Proceedings of Human Language Technology Conference and Conference on Empirical Methods in Natural Language Processing; 2005 Oct 10:579-586; Columbia, Canada. [CrossRef]
- Medhat W, Hassan A, Korashy H. Sentiment analysis algorithms and applications: a survey. Ain Shams Eng J. 2014;5(4):1093-1113. [CrossRef]
- Nandwani P, Verma R. A review on sentiment analysis and emotion detection from text. Soc Netw Anal Min. 2021;11(1):81. [FREE Full text] [CrossRef] [Medline]
- Ekman P. Basic emotions. In: Dalgleish T, Power MJ, editors. Handbook of Cognition and Emotion. New York, NY. Wiley; 1999:16.
- Devlin J, Chang M, Lee K. Bert: pre-training of deep bidirectional transformers for language understanding. ArXiv. 1810:04805. Preprint posted online October 2018. [FREE Full text]
- Yang Z, Dai Z, Yang Y. Xlnet: Generalized autoregressive pretraining for language understanding. Adv Neural Inf Process Syst. 2019;32.
- Liu Y, Ott M, Goyal N. Roberta: a robustly optimized bert pretraining approach. ArXiv. 1907:11692. Preprint posted online July 2019. [FREE Full text]
- SanhV, Debut L, Chaumond J. DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. ArXiv. 1910:1108. Preprint posted online October 2019. [FREE Full text]
- Lan Z, Chen M, Goodman S. Albert: a lite bert for self-supervised learning of language representations. ArXiv. 1909:11942. Preprint posted online September 2019. [FREE Full text]
- Zunic A, Corcoran P, Spasic I. Sentiment analysis in health and well-being: systematic review. JMIR Med Inform. 2020;8(1):e16023. [FREE Full text] [CrossRef] [Medline]
- Portier K, Greer GE, Rokach L, Ofek N, Wang Y, Biyani P, et al. Understanding topics and sentiment in an online cancer survivor community. J Natl Cancer Inst Monogr. 2013;2013(47):195-198. [CrossRef] [Medline]
- Cabling ML, Turner JW, Hurtado-de-Mendoza A, Zhang Y, Jiang X, Drago F, et al. Sentiment analysis of an online breast cancer support group: communicating about tamoxifen. Health Commun. 2018;33(9):1158-1165. [FREE Full text] [CrossRef] [Medline]
- Carrillo-de-Albornoz J, Rodríguez Vidal J, Plaza L. Feature engineering for sentiment analysis in e-health forums. PLoS One. 2018;13(11):e0207996. [FREE Full text] [CrossRef] [Medline]
- Greaves F, Ramirez-Cano D, Millett C, Darzi A, Donaldson L. Use of sentiment analysis for capturing patient experience from free-text comments posted online. J Med Internet Res. 2013;15(11):e239. [FREE Full text] [CrossRef] [Medline]
- Ali T, Schramm D, Sokolova M. Can I hear you? Sentiment analysis on medical forums. 2013. Presented at: Proceedings of the Sixth International Joint Conference on Natural Language Processing; 2024 June 20:667-673; Nagoya, Japan.
- Wallace BC, Paul MJ, Sarkar U, Trikalinos TA, Dredze M. A large-scale quantitative analysis of latent factors and sentiment in online doctor reviews. J Am Med Inform Assoc. 2014;21(6):1098-1103. [FREE Full text] [CrossRef] [Medline]
- Hopper AM, Uriyo M. Using sentiment analysis to review patient satisfaction data located on the internet. J Health Organ Manag. 2015;29(2):221-233. [FREE Full text] [CrossRef] [Medline]
- Khanpour H, Caragea C. Fine-grained emotion detection in health-related online posts. 2018. Presented at: Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing; 2018 Oct 10:1160-1166; Brussels, Belgium. [CrossRef]
- Sosea T, Caragea C. Canceremo: a dataset for fine-grained emotion detection. 2020. Presented at: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP); 2020 Nov 10:8892-8904; Toronto, Canada. [CrossRef]
- Gohil S, Vuik S, Darzi A. Sentiment analysis of health care tweets: review of the methods used. JMIR Public Health Surveill. 2018;4(2):e43. [FREE Full text] [CrossRef] [Medline]
- Oksanen A, Garcia D, Sirola A, Näsi M, Kaakinen M, Keipi T, et al. Pro-anorexia and anti-pro-anorexia videos on YouTube: sentiment analysis of user responses. J Med Internet Res. 2015;17(11):e256. [FREE Full text] [CrossRef] [Medline]
- Roccetti M, Marfia G, Salomoni P, Prandi C, Zagari RM, Gningaye Kengni FL, et al. Attitudes of Crohn's disease patients: infodemiology case study and sentiment analysis of Facebook and Twitter posts. JMIR Public Health Surveill. 2017;3(3):e51. [FREE Full text] [CrossRef] [Medline]
- Ricard BJ, Marsch LA, Crosier B, Hassanpour S. Exploring the utility of community-generated social media content for detecting depression: an analytical study on instagram. J Med Internet Res. 2018;20(12):e11817. [FREE Full text] [CrossRef] [Medline]
- Hu T, Wang S, Luo W, Zhang M, Huang X, Yan Y, et al. Revealing public opinion towards Covid-19 vaccines with Twitter data in the United States: spatiotemporal perspective. J Med Internet Res. 2021;23(9):e30854. [FREE Full text] [CrossRef] [Medline]
- Kwok SWH, Vadde SK, Wang G. Tweet topics and sentiments relating to Covid-19 vaccination among Australian Twitter users: machine learning analysis. J Med Internet Res. 2021;23(5):e26953. [FREE Full text] [CrossRef] [Medline]
- Basiri ME, Nemati S, Abdar M, Asadi S, Acharrya UR. A novel fusion-based deep learning model for sentiment analysis of Covid-19 tweets. Knowl Based Syst. 2021;228:107242. [FREE Full text] [CrossRef] [Medline]
- Rustam F, Khalid M, Aslam W, Rupapara V, Mehmood A, Choi GS. A performance comparison of supervised machine learning models for Covid-19 tweets sentiment analysis. PLoS One. 2021;16(2):e0245909. [FREE Full text] [CrossRef] [Medline]
- Aygun I, Kaya B, Kaya M. Aspect based Twitter sentiment analysis on vaccination and vaccine types in Covid-19 pandemic with deep learning. IEEE J Biomed Health Inform. 2022;26(5):2360-2369. [CrossRef] [Medline]
- Alam KN, Khan MS, Dhruba AR, Khan MM, Al-Amri JF, Masud M, et al. Deep learning-based sentiment analysis of Covid-19 vaccination responses from Twitter data. Comput Math Methods Med. 2021;2021:4321131. [FREE Full text] [CrossRef] [Medline]
- Bokaee Nezhad Z, Deihimi MA. Twitter sentiment analysis from Iran about Covid 19 vaccine. Diabetes Metab Syndr. 2022;16(1):102367. [FREE Full text] [CrossRef] [Medline]
- Zulfiker MS, Kabir N, Biswas AA, Zulfiker S, Uddin MS. Analyzing the public sentiment on Covid-19 vaccination in social media: Bangladesh context. Array (N Y). 2022;15:100204. [FREE Full text] [CrossRef] [Medline]
- Elyashar A, Plochotnikov I, Cohen IC, Puzis R, Cohen O. The state of mind of health care professionals in light of the Covid-19 pandemic: text analysis study of Twitter discourses. J Med Internet Res. 2021;23(10):e30217. [FREE Full text] [CrossRef] [Medline]
- Aduragba O, Yu J, Cristea A, Shi L. Detecting fine-grained emotions on social media during major disease outbreaks: health and well-being before and during the Covid-19 pandemic. AMIA Annu Symp Proc. 2021;2021:187-196. [FREE Full text] [Medline]
- Christensen B, Laydon D, Chelkowski T, Jemielniak D, Vollmer M, Bhatt S, et al. Quantifying changes in vaccine coverage in mainstream media as a result of the Covid-19 outbreak: text mining study. JMIR Infodemiology. 2022;2(2):e35121. [FREE Full text] [CrossRef] [Medline]
- Mueller J, Jay C, Harper S, Davies A, Vega J, Todd C. Web use for symptom appraisal of physical health conditions: a systematic review. J Med Internet Res. 2017;19(6):e202. [FREE Full text] [CrossRef] [Medline]
- Akpan IJ, Aguolu OG, Kobara YM, Razavi R, Akpan AA, Shanker M. Association between what people learned about Covid-19 using web searches and their behavior toward public health guidelines: empirical infodemiology study. J Med Internet Res. 2021;23(9):e28975. [FREE Full text] [CrossRef] [Medline]
- Hartmann J. emotion-english-distilroberta-base. 2022. URL: https://huggingface.co/j-hartmann/emotion-english-distilroberta-base [accessed 2024-06-22]
- Biyani P, Caragea C, Mitra P. Identifying emotional and informational support in online health communities. 2014. Presented at: Proceedings of COLING 2014, the 25th International Conference on Computational Linguistics: Technical Papers; 2014 Aug 10:827-836; Dublin, Ireland.
- Saravia E, Toby Liu HC, Huang YH, Wu J, Chen YS. Carer: contextualized affect representations for emotion recognition. 2018. Presented at: Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing; 2018 Oct 10; Brussels, Belgium. [CrossRef]
- Hartmann J, Heitmann M, Siebert C, Schamp C. More than a feeling: accuracy and application of sentiment analysis. Int J Res Mark. 2023;40(1):75-87. [CrossRef]
- Alsentzer E, Murphy J, Boag W. Publicly available clinical BERT embeddings. ArXiv. 1904:3323. Preprint posted online June 2019. [CrossRef]
- Hernández-García I, Giménez-Júlvez T. Assessment of health information about Covid-19 prevention on the internet: infodemiological study. JMIR Public Health Surveill. 2020;6(2):e18717. [FREE Full text] [CrossRef] [Medline]
- Ludolph R, Allam A, Schulz PJ. Manipulating Google's knowledge graph box to counter biased information processing during an online search on vaccination: application of a technological debiasing strategy. J Med Internet Res. 2016;18(6):e137. [FREE Full text] [CrossRef] [Medline]
- Swire-Thompson B, Lazer D. Public health and online misinformation: challenges and recommendations. Annu Rev Public Health. 2020;41:433-451. [FREE Full text] [CrossRef] [Medline]
- Abdekhoda M, Ranjbaran F, Sattari A. Information and information resources in Covid-19: awareness, control, and prevention. J Librarianship Inf Sci. 2021;54(3):363-372. [CrossRef]
- Yoda T, Suksatit B, Tokuda M, Katsuyama H. The relationship between sources of Covid-19 vaccine information and willingness to be vaccinated: an internet-based cross-sectional study in Japan. Vaccines (Basel). 2022;10(7):1041. [FREE Full text] [CrossRef] [Medline]
- Russell-Rose T, Chamberlain J. Expert search strategies: the information retrieval practices of healthcare information professionals. JMIR Med Inform. 2017;5(4):e33. [FREE Full text] [CrossRef] [Medline]
- Mansour RF, Fatouh AH. Measurement of bias in the contents of web search for health information retrieval. J Scientometric Res. 2023;12(3):621-630. [CrossRef]
- Meppelink CS, Smit EG, Fransen ML, Diviani N. "I was right about vaccination": confirmation bias and health literacy in online health information seeking. J Health Commun. 2019;24(2):129-140. [CrossRef] [Medline]
- Azzopardi L. Cognitive biases in search: a review and reflection of cognitive biases in information retrieval. 2021. Presented at: Proceedings of the 2021 Conference on Human Information Interaction and Retrieval; 2021 Mar 14:27-37; United Kingdom. [CrossRef]
- Bashkin O, Otok R, Leighton L, Czabanowska K, Barach P, Davidovitch N, et al. Emerging lessons from the Covid-19 pandemic about the decisive competencies needed for the public health workforce: a qualitative study. Front Public Health. 2022;10:990353. [FREE Full text] [CrossRef] [Medline]
- Boas H, Davidovitch N. Into the "new normal": the ethical and analytical challenge facing public health post-Covid-19. Int J Environ Res Public Health. 2022;19(14):8385. [FREE Full text] [CrossRef] [Medline]
- SiEBERT - English-Language Sentiment Classification. URL: https://huggingface.co/siebert/sentiment-roberta-large-english [accessed 2024-06-22]
Abbreviations
NLP: natural language processing |
TF-IDF: term frequency—inverse document frequency |
Edited by S Ma, T Leung; submitted 04.12.23; peer-reviewed by E Vashishtha, C Abbatantuono, TAR Sure; comments to author 12.04.24; revised version received 19.05.24; accepted 07.06.24; published 09.08.24.
Copyright©Abigail Paradise Vit, Avi Magid. Originally published in the Journal of Medical Internet Research (https://www.jmir.org), 09.08.2024.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research (ISSN 1438-8871), is properly cited. The complete bibliographic information, a link to the original publication on https://www.jmir.org/, as well as this copyright and license information must be included.