Artificial Intelligence and Twitter Could Be Used to Detect Early Signs of Mental Disorders, Says Research

The findings are published in the journal Language Resources and Evaluation.

Advertisement
By Press Trust of India | Updated: 11 April 2023 16:24 IST
Highlights
  • The study also collected tweets from friends and followers
  • The researchers deployed deep learning, to create four text classifiers
  • These models correspond to a neural network that learns contexts

The first step in this study involved constructing a database

Photo Credit: Pixabay

Work is underway to create anxiety and depression prediction models, using artificial intelligence (AI) and Twitter, one of the world's largest social media platforms, that could detect signs of these illnesses before clinical diagnosis, according to researchers.

Researchers at the University of São Paulo (USP) in Brazil said that preliminary findings from the model suggested the possibility of detecting the likelihood of a person developing depression based solely on their social media friends and followers.

Advertisement

The findings are published in the journal Language Resources and Evaluation.

While there are multiple studies involving natural language processing (NLP) focussed on depression, anxiety and bipolar disorder, most of these analysed English texts and did not match Brazilians' profiles, the researchers said.

Advertisement

The first step in this study involved constructing a database, called SetembroBR, of information relating to a corpus of 47 million publicly posted Portuguese texts and the network of connections between 3,900 Twitter users. These users had reportedly been diagnosed with or treated for mental health problems before the survey. The tweets were collected during the COVID-19 pandemic.

"First, we collected timelines manually, analyzing tweets by some 19,000 users, equivalent to the population of a village or small town.

Advertisement

"We then used two datasets, one for users who reported being diagnosed with a mental health problem and another selected at random for control purposes. We wanted to distinguish between people with depression and the general population," said Ivandre Paraboni, last author of the article and a professor at USP.

Because people with mental health problems tended to follow certain accounts such as discussion forums, influencers and celebrities who publicly acknowledge their depression, the study also collected tweets from friends and followers.

Advertisement

The second step, still in progress, has provided some preliminary findings, such as the possibility of detecting the likelihood of a person developing depression based solely on their social media friends and followers, without taking their own posts into account.

Following pre-processing of the corpus to maintain original texts by removing non-standard characters, the researchers deployed deep learning (AI), to create four text classifiers and word embeddings (context-dependent mathematical representations of relations between words) using models based on bidirectional encoder representations from transformers (BERT), a machine learning algorithm employed for NLP.

These models correspond to a neural network that learns contexts and meanings by monitoring sequential data relationships, such as words in a sentence. The training input consisted of a sample of 200 tweets selected at random from each user.

The researchers found that among the models, BERT performed best in terms of predicting depression and anxiety. They said that because the models analysed sequences of words and complete sentences, it was possible to observe that people with depression, for example, tended to write about subjects connected to themselves, using verbs and phrases in the first person, as well as topics such as death, crisis and psychology.

"The signs of depression that can be detected during a visit to the doctor aren't necessarily the same as the ones that appear on social media," Paraboni said.

"For example, use of the first-person singular pronouns I and me was very evident, and in psychology this is considered a classic sign of depression. We also observed frequent use of the heart emoji by depressive users.

"This is widely felt to be a symbol of affection and love, but maybe psychologists haven't yet characterized it as such," Paraboni said.

The researchers are now extending the database, refining their computational techniques and upgrading the models in order to see if they can produce a tool for future use in screening prospective sufferers from mental health problems and helping families and friends of young people at risk from depression and anxiety.


Smartphone companies have launched many compelling devices over the first quarter of 2023. What are some of the best phones launched in 2023 you can buy today? We discuss this on Orbital, the Gadgets 360 podcast. Orbital is available on Spotify, Gaana, JioSaavn, Google Podcasts, Apple Podcasts, Amazon Music and wherever you get your podcasts.
Affiliate links may be automatically generated - see our ethics statement for details.
 

Get your daily dose of tech news, reviews, and insights, in under 80 characters on Gadgets 360 Turbo. Connect with fellow tech lovers on our Forum. Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates. Catch all the action on our YouTube channel.

Advertisement

Related Stories

Popular Mobile Brands
  1. All in One Monster: Galaxy M17e 5G Packs Serious Power for Everyday Users
  2. Lenovo Legion Y700 Gen 5 Launched With Snapdragon 8 Elite Gen 5 SoC, 9,000mAh Battery
  3. Realme P4 Lite 5G Launched in India With These Specifications
  4. Adobe Brings Custom Models in Firefly, Expands Access to Project Moonlight
  5. OTT Releases This Week: Border 2, Peaky Blinders: The Immortal Man, Chiraiya, and More
  6. iQOO Z11, iQOO Z11x to Launch in China On This Date
  7. Nothing Phone 4a Pro Review: A Big Leap
  8. Samsung Galaxy Forever Offers Easy Upgrade, Return Option in India
  9. Xiaomi Book Pro 14 Debuts With a 72Wh Battery at This Price
  10. OnePlus Nord Buds 4 Pro Launched in India With ANC, Up to 54 Hours of Total Playback Time
  1. Blue Origin Announces NEO Hunter Mission to Track and Deflect Dangerous Asteroids
  2. Xiaomi Watch S5 Launched With 1.48-Inch AMOLED Display, Up to 21 Days of Battery Life: Price, Features
  3. Xiaomi Book Pro 14 Launched With Up to Intel Core Ultra X7 358H Processor, 72Wh Battery: Price, Features
  4. Samsung Galaxy Forever Programme Launched in India for Easy Upgrade with EMI and Return Options
  5. Adobe Introduces Custom Models in Firefly, Expands Access to Project Moonlight
  6. AI Chatbots Tend to Validate Users’ Messages About Suicide and Violence: Study
  7. Polymarket Acquires DeFi Startup Brahma to Strengthen Infrastructure
  8. Meta’s New Facebook Initiative Offers TikTok, YouTube Creators Increased Reach and Guaranteed Pay
  9. Instagram Rolls Out Tap-to-Pause Feature for Reels With More Control Over Playback
  10. Seetha Payanam Now Streaming on OTT: Where to Watch Arjun Sarja’s Romantic Road Trip Drama
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.