For the first time doctors have shown that measuring changes in 24-hour heart rate can reliably indicate whether or not someone is depressed.