
Over the course of a week Sam Lavigne used a consumer-grade EEG machine to record his brain activity while shopping online and thinking about his mortality. With this data, he trained his computer to predict whether he is thinking about shopping or about death. He films himself sleeping while wearing the EEG machine. The machine communicates with his computer, interprets his mental state, and then browses websites on his behalf. If his mental state is morbid, it visits websites related to death. If the computer believes he is dreaming about commerce, it goes shopping for him, selecting items at random from aliexpress.com and amazon.com.