Do you want to know when a chatbot thinks you are dying? (Photo: Getty)

Scientists have invented an artificial intelligence (AI) chatbot that can predict when you will die with 78% accuracy.

The AI, called Life2vec, can also determine how much money you have when death strikes you.

The model was created by scientists in Denmark and the US, who fed Danish health and demographic data from six million people into the model. Like ChatGPT, it learned to predict what would happen next based on previous words.

But unlike ChatGPT, this AI uses information such as income, occupation and medical records to determine how long you will live instead of writing poetry.

Previous research has already shown that certain life factors can lead to a prolongation or shortening of life. For example, if you are male, smoke, or have a poor mental health diagnosis, this can lead to a shorter life expectancy. Higher incomes and leadership roles can lead to longer lives.

Each of these factors has a code in the Danish dataset, such as S52 for a broken forearm or IND4726 for working in a tobacconist, which the team converted into words.

This allowed people’s lives to be summarized in data-rich sets, including things like occupation, income, injuries and pregnancy history.

Your income has a major impact on life expectancy (Photo: Shutterstock/Zephyr_p)

“In September 2012, Francisco was paid twenty thousand Danish kroner to work as a guard at a castle in Elsinore” and “During her third year of high school, Hermione took five electives” are examples of stories written around themes.

The AI, a large language model (LLM) like ChatGPT and Google’s Bard, then puts all these words together like a puzzle to determine how long the person will live.

The team tested Life2vec on a group of people between the ages of 35 and 65, half of whom died between 2016 and 2020.

Life2vec predicted who would die and who would live with astonishing accuracy: 78%.

It was also able to predict personality test results more accurately than models trained specifically for this task.

Fortunately, or not depending on your perspective, the chatbot is currently not available for public use.

A robot hand touches the year 2024

AI uses information from people’s history to predict when they will die (Photo: Getty)

The team, led by Professor Sune Lehmann Jørgensen from the Technical University of Denmark, found that the results may not be as accurate for people from other countries because the model was trained exclusively on data from Denmark.

They also emphasized that AI should not fall into the hands of large companies.

“It is clear that our model should not be used by an insurance company because the whole point of insurance is to share the lack of knowledge about who will be the unfortunate person affected by an incident, death or loss. “With our backpack we can share this burden to a certain extent,” says Professor Jørgensen.

However, he added that similar technology is already available.

“They are probably already being used against us by big tech companies that have a lot of data about us and use it to make predictions about us,” he said.

And there is one advantage to knowing when you are going to die: postponing it.

Writing in the journal Nature Computational Science, the team said: “Our framework allows researchers to discover potential mechanisms that influence life outcomes, as well as associated opportunities for personalized interventions.”