Scientists in Geneva have created a computer that registers blood oxygen levels to determine what patients are feeling.