Twitter image colors and content could help identify users with depression, anxiety

Credit: CC0 Public Domain

Twitter users with depression and anxiety were found to be more likely to post pictures with lower aesthetic values and less vivid colors, particularly images in grayscale, according to a new study led by researchers at Penn Medicine. Additionally, they found that users tended to suppress positive emotions rather than outwardly display more negative emotions, such as keeping a straight face instead of outright frowning, in their profile pictures. The study sought to utilize computer vision and artificial intelligence to determine what qualities of photos posted to and set as profile images on Twitter could be associated with depression and anxiety, with an eye toward using the platform as a method of screening for both. The research will be presented at the International AAAI Conference on Web and Social Media June 11-14 in Munich.

In 2018, Penn Medicine researchers found that could be predicted as much as three months before a diagnosis by using to identify keywords that flagged certain users. As social media is becoming increasingly image-focused—more than half of all tweets, 3,000-plus of them per second, now contain an image—the value in gaining clues on health conditions through image content will become increasingly valuable to medicine.

"While the association between depression and language-use patterns is well-studied, the visual aspects of depression has not been," said the study's lead author, Sharath Guntuku, Ph.D., a research scientist with Penn Medicine's Center for Digital Health. "It is challenging to transform pixels that form the images to interpretable features, but with the advances in computer vision algorithms, we are now attempting to uncover another dimension of the condition as it manifests online."

The researchers used algorithms to extract features such as colors, , and different aesthetic measures (such as depth of field, symmetry, and lighting) from images posted by more than 4,000 Twitter users who consented to be a part of the study. To quickly categorize their depression and anxiety scores, they analyzed each person's last 3,200 tweets. Meanwhile, 887 users also completed a traditional survey to obtain depression and anxiety scores. Then, image features were correlated with users' depression and anxiety scores. From this, several significant relationships emerged.

In addition to finding an association between depression and anxiety and those who posted less vivid photos, the researchers also discovered that profile images of anxious users are marked by grayscale and low aesthetic cohesion, but less so than those of depressed users. There was also something to be interpreted in what was not included in photos. Depressed users often posted photos only of their own faces with no family, friends, or other people appearing in them. Additionally, the posts rarely included the or interests, which more often showed up in photos of non-depressed users.

"Depression is often accompanied by 'flat affect,' which is characterized by reduced expression and displays of emotion," Guntuku said. "The condition also takes a toll on one's appeal toward hobbies or games—activities in general—that are otherwise usually enjoyed."

Developing a more automated version of the work the researchers did holds promise for expanding depression and anxiety screening.

"This tool is far from perfect to be used as a diagnostic tool. However, an automated machine learning tool could be a low-cost method for clinicians, with permission from their patients, to monitor their accounts and potentially detect elevated depression or anxiety levels, Guntuku explained. "The clinicians could then refer patients who were flagged by tool for more formal screening methods."

The study's senior author, Lyle Ungar, Ph.D., a professor of Genomics and Computational Biology and Psychology, said that there are great possibilities beyond just Twitter, and and depression, too.

"Something like this could be applied to Instagram and text messaging, too," Ungar said. "We hope this may give some insights into the different facets of depression. And we're also looking at a variety of other conditions, from loneliness to ADHD."

Provided by Perelman School of Medicine at the University of Pennsylvania