Canadian Manufacturing

Machine learning powers Twitter bot to identify trump’s tweets versus staffers’

by Canadian Manufacturing.com Staff   

Canadian Manufacturing
Manufacturing Technology / IIoT Public Sector


Andrew McGill, a senior associate editor at a U.S.-based magazine, used machine learning to develop a bot that can tell you if it's the Real Donald Trump

PHOTO: Michael Vadon, via Wikimedia Commons

BOSTON—In the year before Donald Trump was elected the American President, the lightning-rod candidate became renowned for his continuous stream of often venomous and controversial tweets.

However, it became obvious that at least some of his tweets were not his own. And identifying whether a particular tweet came from Trump himself or one of his staffers became a mini obsessions for Andrew McGill, a senior associate editor at U.S. politics magazine The Atlantic.

To this end, McGill developed an algorithm that can identify the tweeter using commonalities in the text—and it can do so with surprising accuracy.

As McGill says in his story: “When tested against a mix of 2016 tweets, it correctly flagged the ones sent from an Android 90 per cent of the time. It’s a bit worse at figuring out when a staffer has tweeted, incorrectly attributing iPhone tweets to Trump around 25 per cent of the time, perhaps because staffers sometimes work to imitate his style.”

Advertisement

McGill used machine learning to identify and parse a few common elements in Trumps tweets, and the results were intriguing.

Read Mcgill’s story on the Atlantic website here

Also, you can check out the Twitterbot’s feed at @TrumpOrNot.

Advertisement

Stories continue below