By measuring hormones and brain activity