In a 2017 study, Francesca Siclari at Lausanne University Hospital and colleagues at the University of Wisconsin at Madison invited 32 participants to spend a night in the lab while EEG electrodes on the scalp recorded their brain activity as they slept.