Highlights

In brief

Emotion indicators from Twitter posts are found to be helpful in forecasting online mental health portal use and hospital visits, suggesting that trends in social media emotions can potentially aid in planning population-wide mental health services.

Photo by Igor Omilaev | Unsplash

Decoding emotions online for mental health needs

7 Aug 2025

A big data study reveals that shifts in emotional expressions on social media can predict changes in demand for mental health care services.

Social media has long been a space to share life’s highlights and everyday struggles. A post about feeling overwhelmed, a discussion thread about stress or a comment venting frustration all offer glimpses into how people are coping emotionally with difficult events.

YYet it can be challenging to assess population-wide mental health needs without timely, accessible and effective indicators, noted Yinping Yang, a Senior Principal Scientist at the A*STAR Institute of High Performance Computing (A*STAR IHPC).

The COVID-19 pandemic saw 6,600 calls to Singapore's National Care Hotline within two months, and a record high of reported suicides in 2020. These highlighted the need for proactive ways to detect emerging mental health issues, as demand for support can rapidly outpace available resources in a time of crisis.

Yang and A*STAR IHPC colleagues including Senior Scientist Chitra Panchapakesan, Senior Research Engineers Nur Atiqah Othman, Brandon Loh and Mila Zhang, and Principal Scientist Raj Kumar Gupta turned to social media to fill the information gap. Working with collaborators from Singapore’s Ministry of Health (MOH), MOH Office for Healthcare Transformation (MOHT) and Institute of Mental Health (IMH), they investigated whether emotions expressed in public posts or ‘tweets’ on Twitter (now known as X) could be early indicators of rising public mental health needs.

“Mental health conditions often go undetected unless individuals actively seek help, which introduces significant underreporting,” said Mythily Subramaniam, Assistant Chairman of IMH’s Medical Board (Research) and study collaborator. “Traditional survey methods—while valuable—face logistical limits and often only capture people’s feelings after a crisis unfolds.”

To effectively decode emotions online for assessing mental health needs, the team used CrystalFeel, an in-house emotion analysis engine developed at A*STAR IHPC, to analyse 2.5 years of local tweets, filtering out advertisements and influencer content. CrystalFeel counted, measured and classified the intensity of four primary emotions—fear, anger, sadness and joy—based on language use across 140,598 tweets.

“These emotional indicators were then compared with two key outcome indicators of mental health needs: the number of mindline.sg website users showing signs of crisis, and IMH emergency visits,” said Othman and Panchapakesan.

The team found that changes in emotional expressions in tweets significantly enhanced the predictions of mindline crisis and IMH visits. Joy intensity and anger count strongly predicted IMH visits, while sadness count, joy intensity, anger count and joy count did likewise for mindline crisis states. In contrast, situational indicators, such as COVID-19 case numbers, were less effective.

“MOHT started mindline in response to COVID-19, and the stresses on all walks of life were evident,” said Robert Morris, MOHT Chief Technology Strategist. “We subsequently saw changes in psychological wellness as the pandemic waxed and waned, but this study’s extra signals from social media made the effects and their nature much clearer.”

“Predictive models based on such new tools could enable authorities to make more proactive, informed decisions in resource allocation, such as staffing plans in future crises,” added Kelvin Bryan Tan, MOH Principal Health Economist.

The A*STAR-affiliated researchers contributing to this research are from the A*STAR Institute of High Performance Computing (A*STAR IHPC).

Want to stay up to date with breakthroughs from A*STAR? Follow us on Twitter and LinkedIn!

References

Othman, N.A., Panchapakesan, C., Loh, S.B., Zhang, M., Gupta, R.K., et al. Predicting public mental health needs in a crisis using social media indicators: a Singapore big data study. Scientific Reports 14, 23222 (2024). | article

About the Researchers

Yinping Yang is a social technologist with expertise in affective computing and a passion for advancing research for impactful industry and societal applications. She obtained her PhD degree in information systems in 2008 from the National University of Singapore's School of Computing. Currently, she is a Senior Principal Scientist at the A*STAR Institute of High Performance Computing (A*STAR IHPC) and Director of the Centre for Advanced Technologies in Online Safety (CATOS), which hosts Singapore's Online Trust and Safety (OTS) Research Programme to address online harms and create a safer online space. Concurrently, Yang is Lead of A*STAR's Epidemic Preparedness Horizontal Technology Coordinating Office (EP HTCO), which coordinates A*STAR's efforts in addressing unmet needs in epidemic preparedness. The work from Yang's research programmes has earned awards and recognition from prestigious organisations. In 2020, she was named in the inaugural 100 Singapore Women in Tech list as a female leader recognised in Singapore's tech sector, and was among 53 outstanding women featured in GovInsider's special report. In 2021, Digital Emotion Analysis received the Connect + Develop Open Innovation Solutions Award from The Procter and Gamble Company. In 2023, she earned the National Award (COVID-19) - Public Administration Medal (Bronze), which recognised individuals who led the implementation of efforts that contributed to the management of the impact of COVID-19 on Singapore.
Nur Atiqah Othman is a computational social science researcher at the A*STAR Institute of High Performance Computing (A*STAR IHPC). Her expertise lies in data analysis, focusing on machine learning, statistical modelling, big data and time-series analysis. She has applied these skills across various domains, including mental health and disease surveillance. Currently, she is part of the Centre for Advanced Technologies in Online Safety (CATOS) team working on detecting and mitigating online harms. Atiqah is a recipient of the 2023 100 Singapore Women in Tech.
Chitra Panchapakesan is a communication and mixed-methods researcher with expertise in cross-disciplinary studies. She is currently a Senior Scientist at the A*STAR Institute of High Performance Computing (A*STAR IHPC). She holds a PhD degree in communication studies from Nanyang Technological University's Wee Kim Wee School of Communication and Information. Her research explores the intersection of human behaviour and technology, focusing on social media, digital and public health, online harms and safety, and mis/disinformation. Panchapakesan has published in leading SSCI-indexed journals, such as the International Journal of Communication, Journal of Medical Internet Research, and Health Communication, and has won competitive grants from Singapore's National Medical Research Council, the Ministry of Health, and the Ending Pandemics Tide Foundation. Currently, she is part of the Centre for Advanced Technologies in Online Safety (CATOS) team, examining community empowerment through the use and application of technologies.

This article was made for A*STAR Research by Wildtype Media Group