Scientists have conducted a lot of research to find out what happens to a person in the last moments of life.