An intelligent pain recognition system based on facial expressions and physiological signals