The New York businessman with a penchant for celebrity television may suddenly find himself in love with artificial intelligence developed in India.

The polls and simulations that involve the skills and insight of human beings suggest Donald Trump could be heading for something of a pasting. But an artificial intelligence (AI) system developed in Mumbai, and which correctly predicted the last three US presidential elections, puts the Republican nominee ahead of his rival Hillary Clinton in the battle to secure the keys to the White House.

MogIA was developed by Sanjiv Rai, the founder of Indian start-up Genic.ai. It has taken 20 million data points from public platforms such as Google, Facebook and Twitter and analysed the information to create predictions, CNBC reported.

Picture: (Robyn Beck/AFP/Getty Images) (ROBYN BECK/AFP/Getty Images)

The AI system was created in 2004 and has already correctly predicted the results of the Democrat and Republican primaries.

The channel said that data such as engagement with tweets or Facebook Live videos have been taken into account in the machine’s latest calculation. The result is that Mr Trump has overtaken the engagement numbers of Barack Obama’s peak in 2008, the year he was first elected, by 25 per cent.

Loading....

“If Trump loses, it will defy the data trend for the first time in the last 12 years since internet engagement began in full earnest,” Mr Rai said.

Most national polls put Ms Clinton and the Democrats far ahead. An average of polls collated by RealClearPolitics gives Ms Clinton a 5.2 lead. Yet Mr Rai said his data showed the Democrats should not get complacent.

He admitted there were limitations to the data in that sentiment around social media posts is difficult for the system to analyse. Just because somebody engages with a tweet from the 70-year-old New York tycoon does not mean they will necessarily vote for him, CNBC said.

Ms Clinton herself warned against such complacency earlier this week when she held a rally in Florida. “Pay no attention to the polls,“ she said at a rally at Broward College in Coconut Creek. “Don't get complacent.”

Mr Rai said another consideration was that there were many more people on social media than there were in the three previous presidential elections.

“If you look at the primaries, in the primaries, there were immense amount of negative conversations that happen with regards to Trump,” he said.

Every woman to make sexual assault claims against Donald Trump Show all 16 1 /16 Every woman to make sexual assault claims against Donald Trump Every woman to make sexual assault claims against Donald Trump E Jean Carroll Author Carroll alleges that Trump pinned her against a wall and forced himself upon her in the changing rooms of a Manhattan department store in the mid-90s Getty Every woman to make sexual assault claims against Donald Trump Kristin Anderson Anderson alleges that Mr Trump touched her genitals while at a club in the early 1990s Every woman to make sexual assault claims against Donald Trump Jessica Leeds Leeds told the New York Times that Mr Trump groped her on an airplane in the 1980s BBC Every woman to make sexual assault claims against Donald Trump Natasha Stoynoff Stoynoff alleged that Mr Trump forcefully kissed her before an interview at his Mar-A-Lago estate in 2005 Everipedia Every woman to make sexual assault claims against Donald Trump Karena Virginia Virginia alleges Mr Trump groped her in 1998 outside of the US Open tennis tournament BBC News Every woman to make sexual assault claims against Donald Trump Temple Taggart Taggart claims Mr Trump gave her a kiss without consent during a rehearsal for a 1997 Miss USA pageant Every woman to make sexual assault claims against Donald Trump Summer Zervos The former Apprentice contestant alleged that Mr Trump kissed and groped her at a Beverly Hills hotel in 2007 Every woman to make sexual assault claims against Donald Trump Alva Johnson A former staffer for Trump's campaign, Johnson alleges that Trump forcibly tried to kiss her after a rally in August 2016 MSNBC Every woman to make sexual assault claims against Donald Trump Jennifer Murphy The former Apprentice contestant said Mr Trump "surprise kissed" her - but she said it did not bother her Every woman to make sexual assault claims against Donald Trump Jill Harth The makeup artist accused Mr Trump of "attempted rape" while in his daughter's room in 1997 Every woman to make sexual assault claims against Donald Trump Mindy McGillivray McGillivray alleges Mr Trump groped her at Mar-A-Lago in 2013 AP Every woman to make sexual assault claims against Donald Trump Rachel Crooks Crooks says that kissed her on the cheeks and mouth when she introduced herself to him in 2005 Every woman to make sexual assault claims against Donald Trump Mindy McGillivray McGillivray claims that Trump grabbed her backside at Mar-a-Lago in 2006 CNN Every woman to make sexual assault claims against Donald Trump Cassandra Searles The former Miss Washington alleges that Trump repeatedly grabbed her backside and invited her to his hotel room Getty Every woman to make sexual assault claims against Donald Trump Jessica Drake Drake claims that when she and two other women arrived to Trump's hotel room at his invitation, he arrived at the door in pyjamas and tightly hugged and kissed each of the woman without permission Getty Every woman to make sexual assault claims against Donald Trump Ninni Laaksonen The former Miss Finland claims that Trump squeezed her behind before they appeared together on the Late Show with David Letterman in 2006 EPA

Using social media to predict outcomes of elections has become increasingly popular because of the amount of data available publicly.

In September, Nick Beauchamp, a political scientist at Northeastern University, published a paper about his experiment applying AI to more than 100 million tweets in the 2012 election.