The scientists used an EEG(electroencephalogram) to measure electrical activity in an area of the brain called the prefrontal cortex, which is involved in judgment and motivation.
Dr Rao's team began by programming a humanoid robot with simple behaviours which users could then select with a wearable electroencephalogram(EEG) cap that picked up their brain activity.