PsyPost
  • Mental Health
  • Social Psychology
  • Cognitive Science
  • Neuroscience
  • About
No Result
View All Result
Join
My Account
PsyPost
No Result
View All Result
Home Exclusive Social Psychology Political Psychology

Can an algorithm predict a politician’s future just by analyzing their tweets?

by Karina Petrova
November 6, 2025
Reading Time: 5 mins read
[Adobe Stock]

[Adobe Stock]

Share on TwitterShare on Facebook

A new statistical model has successfully sorted members of the U.S. Congress into distinct political and legislative groups based solely on their interaction patterns on the social media platform X. Published in the Journal of Computational and Graphical Statistics, the study also identified a small number of outliers whose online behavior appeared to signal ambitions for higher office.

Politicians use public platforms to communicate their principles and policy stances to voters. Beyond formal statements, many also cultivate a personal brand through their choices in language and style. With a great deal of political messaging now occurring online, researchers have been investigating how elected officials position themselves by strategically associating with others in their coalition.

The new study was conducted by Benjamin Leinwand, an assistant professor of mathematical sciences at Stevens Institute of Technology, and Vince Lyzinski, a mathematics professor at the University of Maryland. They specialize in network science, a field that analyzes the connections within complex systems. They sought to determine if a model could deduce the underlying structure of a political network by observing only the interactions, without being given any information about political affiliations or which chamber of Congress a member belongs to.

To understand the social landscape of Congress, the researchers needed a tool that could map out the complex web of online interactions. At its core, any such statistical model attempts to calculate a simple value for every pair of individuals: the probability that they will connect. This produces a blueprint of the network, showing which connections are likely and which are not.

Some widely used network models approach this task by combining a few key factors. For instance, a model might estimate the probability of a connection by multiplying a person’s individual “sociability” score with a score representing how interactive their group is. This method works well in many scenarios, but it can break down in networks with extreme variations.

The issue arises in densely connected communities where a few individuals are exceptionally active. In such cases, the model might assign very high sociability scores to these active people and a high interaction score to their group. When these high scores are multiplied together, the resulting probability can exceed 1, or 100 percent. This is a mathematical impossibility that signals the model is failing to accurately represent the underlying social dynamics.

The new model developed by Leinwand and Lyzinski is built on a different mathematical foundation specifically designed to avoid this problem. Its internal calculations are constructed in a way that guarantees the final output for any pair of politicians is always a valid probability, a number between 0 and 1. This ensures the model produces a coherent and logical map of the network, even in its most active and complex regions.

Beyond just preventing errors, this new approach offers greater flexibility. It does not assume that the patterns of connection are the same across the entire network. For example, some models might implicitly assume that the most socially active members of one group are most likely to connect with the most active members of another.

Google News Preferences Add PsyPost to your preferred sources

The new model, however, can detect more intricate patterns. It could, for instance, find a situation where moderate members of two different political parties interact frequently, while the most partisan members of those same parties interact very little. It can also recognize that an individualโ€™s tendency to form connections might change depending on the community they are interacting with, providing a more detailed and realistic portrait of political communication.

Using this model, Leinwand and Lyzinski analyzed the public activity of 475 members of the 117th U.S. Congress. Their dataset included every member who posted at least 100 tweets during a four-month period, from February 9, 2022, to June 9, 2022. The model defined a connection between any two politicians if one of them tweeted at or retweeted the other during this time frame.

โ€œWe call two people โ€˜connected,โ€™ if either one in the pair tweeted at the other one or retweeted the other one during this period,โ€ Leinwand explained. The model was not provided with any information about a politician’s party, their chamber, or their policy positions. It was tasked with sorting the 475 individuals into groups based only on the web of their digital connections.

The model identified three primary communities. These algorithmically-defined groups fell along familiar political lines. The first group was composed almost entirely of Senators. The second community consisted mainly of Democratic members of the House of Representatives, and the third was made up largely of Republican members of the House.

The analysis showed that politicians within these three groups tended to interact most frequently with members of their own community. โ€œRepublican congresspeople talked among themselves a lot, and Democratic congresspeople talked among themselves a lot, though Democratic congresspeople were somewhat more likely to interact with Senators than their Republican counterparts,โ€ said Leinwand.

He offered a potential explanation for this pattern. At the time of the observation, Democrats held the majority in the Senate. As a result, โ€œone could imagine that Democratic congresspeople might be incentivized to amplify senate leadership messaging in addition to their allies in the House,โ€ he continued.

While the model correctly categorized the vast majority of politicians, it also found a few who did not conform to their groupโ€™s typical behavior. Of the 475 members, 463 behaved like the others in their respective communities. The remaining 12 individuals were classified as โ€œexceptionsโ€ because their patterns of interaction more closely resembled those of a different group.

โ€œIt seems as though certain Democratic congresspeople talked to Senators more, and certain Republican congresspeople talked to Senators more,โ€ Leinwand said. โ€œAnd so based on their patterns of interactions, they behaved like someone in the other group. They were tweeting at Senators also, rather than only tweeting at their own Congresspeople.โ€

A closer look at these 12 exceptions revealed a suggestive pattern. Two of the congresspeople flagged by the model for behaving like senators went on to win Senate elections. Peter Welch, a Democrat from Vermont, was elected to the Senate in 2022, and Andy Kim, a Democrat from New Jersey, won his Senate race in 2024.

A third exception identified by the model, Chris Pappas of New Hampshire, is currently a candidate for the Senate. A fourth, David Trone of Maryland, mounted an unsuccessful campaign for the Senate in 2024.

โ€œThe thing that jumps out to me is that we have 475 members, and 463 of them are grouped correctly,โ€ Leinwand said. โ€œAnd of those 12 exceptions, two ended up in the group where our model thought they should be assigned.โ€ This observation suggests the model may be detecting subtle behavioral shifts that precede major career moves.

This does not mean that simply tweeting at senators is a path to winning a Senate seat. However, Leinwand suggests that a deliberate communication strategy may be at play. โ€œThey have public facing jobs, so I suspect they’re often tweeting strategically, particularly when they’re including other members of Congress,โ€ he says. โ€œI think if you start positioning yourself in a certain way, if you start interacting with senators on X, you may be seen as more senatorial to voters.โ€

The researchers note that their study used an exploratory approach designed to search for patterns in the data. To establish more definitive conclusions about political strategy and its effects, different analytical methods would be necessary. Still, the findings hint at the rich information embedded in the architecture of our online interactions. As Leinwand adds, โ€œI suppose some behavior betrays some intention.โ€

The study, โ€œACRONYM: Augmented Degree Corrected, Community Reticulated Organized Network Yielding Model,โ€ was authored by Benjamin Leinwand and Vince Lyzinski.

RELATED

Negative emotions are linked to higher trust in political statements
Political Psychology

Negative emotions are linked to higher trust in political statements

June 9, 2026
A 16-year study reveals how childhood lying patterns predict adult outcomes
Political Psychology

Sexism is often a stronger predictor of political attitudes than a voter’s actual gender

June 9, 2026
New study reveals why young Americans penalize opposing political views when dating
Dating

New study reveals why young Americans penalize opposing political views when dating

June 8, 2026
White Americans who dislike Jews also tend to endorse anti-Muslim attitudes, study suggests
Political Psychology

New psychological model explains why antisemitism emerges on both the right and the left

June 7, 2026
Americans misperceive the true nature of political debates, contributing to a sense of hopelessness
Political Psychology

New research challenges a major theory about political bias

June 6, 2026
Scientists analyzed 38 million obituaries and found a hidden story about American values
Political Psychology

Strong approval of the National Rifle Association is linked to support for political violence

June 6, 2026
Mental health might be emerging as a source of political identity, study finds
Mental Health

Mental health might be emerging as a source of political identity, study finds

June 6, 2026
Political anger fuels support for violence mainly when voters feel ignored by the system
Political Psychology

Your political ideology predicts which World Cup icon you prefer: Lionel Messi or Cristiano Ronaldo

June 5, 2026

Follow PsyPost

The latest research, however you prefer to read it.

Daily newsletter

One email a day. The newest research, nothing else.

Google News

Get PsyPost stories in your Google News feed.

Add PsyPost to Google News
RSS feed

Use your favorite reader. We also syndicate to Apple News.

Copy RSS URL
Social media
Support independent science journalism

Ad-free reading, full archives, and weekly deep dives for members.

Become a member

Trending

  • Mental health might be emerging as a source of political identity, study finds
  • Intolerance of uncertainty is tied to emotion labeling in people with autistic traits
  • Magic mushroom compound enhances the effectiveness of a common nerve pain medication
  • Study finds no association between frequency of video game play and spatial abilities
  • The location of your body fat is linked to how fast your brain ages

Science of Money

  • The inequality warning sign: Scientists identify a key predictor of democratic decay
  • New study sheds light on how self-control and confidence shape your financial well-being
  • Economists pull apart the two reasons to raise the minimum wage
  • Can ChatGPT beat the S&P 500? Eight months of daily picks suggest no
  • When inheritances shrink inequality, and when they widen it: A six-country look at the tipping point

PsyPost is a psychology and neuroscience news website dedicated to reporting the latest research on human behavior, cognition, and society. (READ MORE...)

  • Mental Health
  • Neuroimaging
  • Personality Psychology
  • Social Psychology
  • Artificial Intelligence
  • Cognitive Science
  • Psychopharmacology
  • Contact us
  • Disclaimer
  • Privacy policy
  • Terms and conditions
  • Do not sell my personal information

(c) PsyPost Media Inc

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In

Add New Playlist

Subscribe
  • My Account
  • Cognitive Science Research
  • Mental Health Research
  • Social Psychology Research
  • Drug Research
  • Relationship Research
  • About PsyPost
  • Contact
  • Privacy Policy

(c) PsyPost Media Inc