Manara - Qatar Research Repository
10.1016_j.cmpbup.2024.100144.pdf (3.38 MB)

Sentiment visualization of correlation of loneliness mapped through social intelligence analysis

Download (3.38 MB)
journal contribution
submitted on 2024-03-21, 08:25 and posted on 2024-03-21, 08:25 authored by Hurmat Ali Shah, Marco Agus, Mowafa Househ


Loneliness is a global public health issue affecting a considerable number of people as well as burdening the public health system and increasing the risk of other life-threatening and life-damaging conditions. In USA an estimated 17% adults aged 18–70 report loneliness. The monetary loss as result of loneliness is estimated to be between USD 8074.80 and USD 12,0777.70 per person per year in the United Kingdom. But the dynamics of loneliness are not understood. Social media platforms have become a valuable source of data to study this phenomenon.


This paper aims to visualize the frequency of loneliness-related themes and topics in Twitter data. By using natural language (NLP) processing, sentiment analysis, and topic modeling, we seek to understand prevalent sentiments and concerns. Through interactive tree maps and radar plots, we present an engaging view of loneliness dimensions, allowing users to explore and gain insights into this issue on social media. We focus on comparative analysis of USA and India through analyzing tweets from both countries on loneliness. These two countries are the biggest countries population-wise where access to Twitter is legally allowed.


This study consists of two parts. In the first part, we employ NLP techniques and machine learning algorithms to extract and analyze tweets containing keywords related to loneliness. Through sentiment analysis and topic modeling, we discern linguistic patterns and contextual information to categorize the recurring themes and topics. Advanced text analytics is used to gain nuanced insights into the experiences, emotions, and challenges connected with loneliness. In the second part, interactive visualizations are developed to present the findings in an engaging and intuitive manner. Techniques such as tree maps and radar plots are utilized to transform the analyzed data into visually appealing representations.


The analysis of Twitter data yields valuable knowledge about the prevalence and nature of themes and topics associated with loneliness. The interactive visualizations present a comprehensive view of the sentiments and concerns expressed by Twitter users. These interactive plots provide a holistic view of the distribution of themes and topics associated with loneliness, allowing experts to explore and interact with the data, gaining deeper insights into the complexities surrounding this issue.


This paper successfully explores themes and topics related to loneliness on Twitter by employing NLP, sentiment analysis, and topic modeling. The interactive visualizations enhance the accessibility and usability of the findings, providing valuable insights for various stakeholders. The study contributes to a deeper comprehension of loneliness in the context of social media.

Other Information

Published in: Computer Methods and Programs in Biomedicine Update
See article on publisher's website:


Open Access funding provided by the Qatar National Library.



  • English



Publication Year

  • 2024

License statement

This Item is licensed under the Creative Commons Attribution 4.0 International License.

Institution affiliated with

  • Hamad Bin Khalifa University
  • College of Science and Engineering - HBKU

Usage metrics

    College of Science and Engineering - HBKU



    Ref. manager