A team at Stanford University in California used computer learning software to sort through data generated by brain scans and detect when people were in pain.
"The question we were trying to answer was can we use neuroimaging to objectively detect whether a person is in a state of pain or not. The answer was yes," Dr. Sean Mackey of the Stanford University School of Medicine in California, whose study appears in the journal PLoS One.
Currently, doctors rely on patients to tell them whether or not they are in pain. And that is still the gold standard for assessing pain, Mackey said.
Some patients, the very young, the very old, dementia patients or those who are not conscious, cannot say if they are hurting, and that has led to a long search for some way to objectively measure pain.
"People have been looking for a pain detector for a very long time. We're hopeful we can eventually use this technology for better detection and better treatment of chronic pain."
His team used a computer algorithm invented in 1995 to classify patterns of brain activity and determine whether or not someone is experiencing pain.
To train the computer, eight volunteers underwent brain scans while they were touched first by an object that was hot, and then by one that was so hot it was painful. The computer used data from these scans to recognize different brain activity patterns that occur when a person is detecting heat, and which ones detect pain.
The computer was more than 80 percent accurate in detecting which brain scans were of people in pain, and it was just as accurate at ruling out those who were not in pain.