An artificial intelligence calculator which can predict when a person will die is proving to be chillingly accurate.

Stats show there is a 78% accuracy to the “life2vec” model study after scientists developed an algorithm that uses the story of a person’s life to predict their demise.

Danish brainiacs put themselves to work on the death predictor, which works like a chat bot and has fed on information on over six million real people ncluding their income, profession, place of residence, injuries, and pregnancy history.

READ MORE: Inside Saudi Arabia’s 100-mile-long megacity which will be ‘death trap’ for billions of birds

For the latest news and updates on developments in artificial intelligence, click here.

The end result was a model that can process plain language and generate predictions about a person’s likelihood of dying early, or their income over the lifespan, the Mail reports.

Trained on data from 2008 to 2016, the bot can be asked simple questions and give replies based on how long a user believes they will last on earth.

Based on their research which appeared in Nature Computational Science, it correctly predicted who had died by 2020 more than three-quarters of the time.

Speaking to the Daily Mail, researcher Sune Lehmann said: “We are actively working on ways to share some of the results more openly, but this requires further research to be done in a way that can guarantee the privacy of the people in the study.”

The networks professor and Technical University of Denmark alumni says the bot can also predict parts of a person’s personality.

Lehmann made it clear data used in the predictor was that of Denmark qualities of living, and results across the world may vary. She said: “The model opens up important positive and negative perspectives to discuss and address politically.

“Similar technologies for predicting life events and human behaviour are already used today inside tech companies that, for example, track our behaviour on social networks, profile us extremely accurately, and use these profiles to predict our behaviour and influence us.

“This discussion needs to be part of the democratic conversation so that we consider where technology is taking us and whether this is a development we want.”

For the latest breaking news and stories from across the globe from the Daily Star, sign up for our newsletter by clicking here.