It's named after Mowgli in the Jungle Book for its ability to learn from its environment

The technology takes in some 20 million data points from sites like Google and Twitter. Nate Silver and most polls forecast a win for Clinton

It also accurately forecast the Democrat and Republican primaries

The technology was developed by entrepreneur Sanjiv Rai in 2004 and has correctly predicted the three U.S. elections since then, according to CNBC

MoglA, an Indian artificial intelligence system, predicts Donald Trump will win the election based on the level of engagement he gets online

Super-statistician Nate Silver has a rival - and it's not human.

An Indian artificial intelligence system which correctly predicted the primaries as well as the last three U.S. presidential elections has forecast a win for Donald Trump.

MoglA scans and analyzes internet information from sites including Google, Facebook, Twitter and YouTube to make its predictions, CNBC reported.

The technology is named after Mowgli, Rudyard Kipling's character in The Jungle Book, because it learns from its environment.

Scroll down for video

MoglA, an Indian artificial intelligence system, predicts Donald Trump will win the election

Part of the technology's calculations is the amount of engagement a candidate gets online from the general population.

Developer Sanjiv Rai, founder of start-up Genic.ai, started MoglA in 2004, so the system has seen several election cycles. Rai says that according to his system, the candidate with the most engagement ends up winning.

That candidate right now is Donald Trump. The Republican has even overtaken Barack Obama's peak engagement figures from back in 2008 by 25 per cent.

'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," Rai wrote in a report sent to CNBC.

There are limitations to the software.The system finds it difficult to monitor whether an 'engagement' is a positive or negative thing. Also, just because someone engages with Trump online does not mean they will go and vote for him.

MoglA is named after Mowgli, Rudyard Kipling's character in The Jungle Book (pictured in the 2016 film with Baloo the bear), because it learns from its environment

The growing number of people on social media also means that engagement figures will naturally rise over time.

The system's predictions contradict the forecasts of most national polls and Silver himself. His FiveThirtyEight blog estimates that Hillary Clinton has a 79.1 per cent chance of winning against Trump's 20.8 per cent.

The RealClearPolitics polling average shows Clinton with a more than five point lead over the Republican, at 45.1 to 40.6.

Still, Rai's system accurately predicted the results of both the Republican and the Democrat primaries. It does this by taking in some 20 million data points from various public websites and digesting the information.

Rai wants more detailed data to be able to predict election outcomes better - for example by Google giving him access to the unique internet address which every digital device has. In that way he could track a user's browsing patterns in order to figure out which way they're likely to vote.

He insists privacy concerns would be mitigated since the addresses would be anonymized.