A PhD researcher at the University of British Columbia spent the final years of the last decade wheeling an EEG cart into the rooms of dying patients at a Vancouver hospice, fitting soft electrodes a…