Researchers have developed an accurate way to measure pain using brain activity compared with crude picture charts or poking animals, based on a stud of rats.