Skip to main content

Can AI Predict Your Death?

A new study used machine learning to “autocomplete” the life trajectories of six million Danish people—and forecast when they might kick the bucket.

Illustration of a Bohr atom model spinning around the words Science Quickly with various science and medicine related icons around the text

Lauren Leffer: Prediction is powerful. For as long as people have been thinking about the future, we’ve been trying to predict it. And, in some areas, we’ve gotten pretty good (think, like, meteorology and climate modeling).

Tulika Bose: But scientifically-speaking — we’re still pretty far from the stuff of crystal balls and oracles. There’s lots of things people have no reliable way to forecast, despite what your horoscope may suggest. 

Leffer: Absolutely. But… what if artificial intelligence could get us closer to that fantasy/supernatural realm of divination than ever before? What if, for instance, an AI model could accurately forecast a person’s death? 

Bose: Wait, what?!


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


Leffer:  Yeah. It sounds scary, right?

Bose: Uh, yeah.

Leffer: — and it might be, but probably not for the reasons you expect. I’m Lauren Leffer, tech reporting fellow at Scientific American. 

Bose: I’m Tulika Bose, Senior multimedia editor. 

Leffer: And you’re listening to Scientific American's Science, Quickly podcast. 

[INTRO MUSIC]

Leffer: So Tulika, death– we’re all going to do it one day, but if you could know when you’re going to die, would you want to?

Bose: Uh no, no, no no. 

Leffer: You didn't even let me finish the question. 

Bose: Yeah, I don't wanna know. 

Leffer: Yeah, me either– seems like an obvious case of TMI. 

Bose: Yeah! For sure.

Leffer: But the inherently unsettling nature of “an AI calculator that spits out death predictions” didn’t stop  researchers from developing just that. The tool is called life2vec, and was described in a study published late last year.

Bose: And it’s really an AI widget that says when you’re gonna die? 

Leffer:  Sort of. Yes and no. Life2vec isn’t just a death predictor. It’s way more general than just mortality forecasts. It can offer more than that.  One BIG CAVEAT right up top: it’s hard to know exactly how accurate any of its predictions are at the moment– no one is claiming the tool can definitively predict an individual person’s death. It’s also trained on a very specific data set, namely one that contains information on residents of Denmark?  So it can’t offer meaningful predictions about anyone who isn’t Danish. 

Bose: Ok, all of that’s kind of a relief. But can we go back to the “more general thing”? What else can it predict?

Leffer: Yeah, so maybe it's a big deal for Danes. But on top of forecasting mortality over a four year period, the developers also tested their tool’s ability to predict peoples’ answers to a personality questionnaire  —

Bose: Interesting —

Leffer — and to forecast if someone would make an international move. In all three of these tests, life2vec seemed to perform pretty well, with higher accuracy than other prediction methods the researchers compared it to. For the death test, about 78% accurate, for moving abroad, about 73%.

Bose: Whoa.

Leffert: But again, it’s hard to know exactly what accuracy means here.

Bose: Hold up, the death calculator could also predict personality traits and if people would live abroad? How? How are any of those things related?

Leffer: Let’s take a step back. Life2vec is a machine learning model, which basically just means it’s a big computer program made to detect patterns in very large sets of data. The researchers built this model and trained it on tons of government-collected information on millions of people living in Denmark. They had employment history, basic demographic data, and also information on just about every interaction between people and the Danish medical system, because Denmark has universal healthcare. 

Bose: Wow, that must be nice. 

Leffer: Truly. Anyway, the researchers took all this data for each person and organized it into timelines. The life2vec model was fed all these timelines, and trained to pick up on patterns between the different events that show up in a person’s life. You know, how are location and salary related? Do people diagnosed with certain diseases survive? Do people with certain professions tend to live longer?

Bose: Do people with certain career paths have certain personality traits? 

Leffer: Exactly. That's how you can go from something like demographic info to personality questionnaire.

Bose: That's so interesting.

Leffer: From there, the researchers could ask versions of the model to make predictions based on those timelines. The extra interesting thing with life2vec isn’t just that it makes these predictions–again we’ve been doing that forever–it’s how it does it. It’s a type of mode usually used for chatbots  and language processing. It basically runs  like souped-up autocomplete.

Bose: Hah wait so the death predictions here are “autocompleting” someone’s life?

Leffer: That is one way to put it. You give the model the life event timeline, you ask it a specific question, and it predicts the next relevant step in the timeline, based on the prompt. Sometimes that means predicting death. 

Bose: Uh, kay yeah. This sounds like a Black Mirror episode. Your phone’s autocomplete starts to spit out “you’ll die in seven days” type messages. 

Leffer: Pitch that to Netflix. 

Bose: I’m on it. We can be co-writers. So a little bit ago, you kept hedging on life2vec’s accuracy, what was that about?

Leffer: Yeah, so I talked with some statistical and life modeling experts about this and none of them were super convinced by those 70+ percent accurate numbers that the researchers reported in the study. My favorite quote came from Christina Silcox, director for digital health at Duke Margolis Center for Health Policy. I asked her how powerful she thought life2vec’s mortality predictions are and she said, quote, “I would not quit my job and go to the Bahamas based on this thing.”

Bose: Haha ok, that’s kind of a burn?

Leffer: It’s more of a statement on how hard it is to predict something like death. And to assess the accuracy of something so new–there’s nothing obvious to compare life2vec to. 

Bose: You can’t just see how much better it is than flipping a coin or something?

Leffer: Nope! Data and statistics are wonky, particularly around death which is a rare event, if you think about it. It only happens once in a person’s life and young people don’t tend to die very often. In fact, if you were to just assume that everyone between like 25-50 in a population was going to live in a given year, you’d already be a really accurate death oracle. You’d be right most of the time.

Bose: Ah ok, so you’ve gotta figure out what it means to actually be good at predicting death, and then compare life2vec to that. 

Leffer: Totally! And that’s kind of a question mark. 

Bose: So what could you use this for, if not to tell you when it’s time to go permanent vacation mode? If we don’t really know how good it is, what’s the point?

Leffer: Ooooh ok so there are lots of potential uses–down the road, with more testing. For one, the model could help us understand disease prognosis and health outcomes. And from a sociology angle, you can use life2vec to tease out hidden societal biases, like unexpected links between age or country of origin and professional advancement. 

Bose: All of that sounds theoretically cool, but I’m stuck on this idea that–actually– this will be used in a bad and scary way. Like, Minority Report-style punishing crimes before they happen, sort of stuff.

Leffer: It’s a valid concern!

Bose: Thank you for validating.

Leffer: Haha of course. There is definitely an ethical risk with a tool like this. The study authors were careful to note all the ways that Danish privacy and anti-discrimination laws restrict how life2vec can be used. It’s not just going to be a freely available tool. Academic and government researchers will have to apply to use it for specified purposes and then have a responsibility to protect peoples’ data. 

Bose: Cool, Ok–that’s better than nothing I guess. 

Leffer: Yeah, if it makes you feel any better– the study author I spoke with, Sune Lehmann, told me that he worked on this research because he trusts the Danish government, but in the U.S.--or another country without a comprehensive data privacy law– he wouldn’t have been so comfortable. 

Bose: You know, as someone living in the U.S., that doesn’t make me feel better. 

Leffer: Ok, fair. Then to double down and make you feel worse: We kind of sort of already live in a version of the terrifying Minority Report world. In the U.S., there's predictive policing and judges making sentencing decisions with the help of AI algorithms. In all of these cases, bias and innaccuracy are big documented problems that keep popping back up. 

Bose: Yikes. And I guess while we’re talking algorithms, there’s social media, too. 

Leffer: Right, tech companies collect so much data on users and are certainly using that data to build predictive AI models that help maximize engagement or forecast what people will buy. The biggest difference between the tech company algorithms, the criminal justice tools, and life2vec is that–for the first two– there’s very little transparency. For the last one, the academic researchers want the public and the scientific community to understand how the tool works and what it can do. 

Bose: Alright, solid. To fight the system, I guess you have to understand the system. 

Leffer: Yup, Lehmann’s hope is that a transparent and flexible model like life2vec will spur conversation in a new direction– it might get people and governments to start thinking about what’s possible and what’s right. He told me, “I hope that this can be part of a discussion that helps move us in the direction of utopia and away from dystopia.” 

Bose: Utopia is a big really goal, but I hope he’s right. Also I would settle for not dystopia. Honestly.

Leffer: Me too. Any zone inbetween that would be good with me.

Bose: I'm cool with that.

Leffer: It is a lofty goal. So Tulika, what have we learned here? I'm giving you a little test. 

Bose: That Denmark seems cool. 

Leffer: Haha “A+” You passed the test.

[OUTRO MUSIC]

Leffer: Science Quickly is produced by Jeff DelViscio, Tulika Bose, Kelso Harper and Carin Leong. Our show is edited by Elah Feder and Alexa Lim. Our theme music was composed by Dominic Smith.

Bose: Don’t forget to subscribe to Science Quickly wherever you get your podcasts. For more in-depth science news and features, go to ScientificAmerican.com. And if you like the show, give us a rating or review!

Leffer: For Scientific American’s Science Quickly, I’m Lauren Leffer. 

Bose: I’m Tulika Bose. See you next time! 

Can AI Predict Your Death?