Researchers have developed a non-invasive means to measure whether infants are in pain, which could prevent babies from undergoing excessive discomfort during medical treatments.