AbstractPain recognition is a challenging yet crucial problem. Common methods used to measure pain are based on self-reported tools; however, not every person can communicate it. Therefore, automatic pain detection methods have emerged. Since pain is related to the emotional state of an individual, this variable must be considered. Thus, this work proposes pain prediction under different emotional contexts. For this purpose, data were collected during a protocol designed for pain induction with previous emotional elicitation. Emotions were elicited through videos composed of excerpts of documentaries, horror and comedy films, while the pain was induced through a Cold Pressor Test. Physiological signals, such as electrocardiogram, electrodermal activity and surface electromyogram, were collected during the protocol. Furthermore, several questionnaires were answered and pain reports were also registered. Two problems were addressed: pain classification and estimation of the Pain Tolerance score. The algorithm with the best performance for each problem was found using only data from the neutral session and nested cross-validation strategy. Using only physiological data from the neutral session, a F1-score of 99.32% was obtained for pain recognition and a mean absolute error (MAE) of 0.29 was obtained for Pain Tolerance estimation. When considering all the emotional sessions, the physiological data were merged with scores of the Visual Analogue Scale questionnaire, achieving a F1-score of 98.60% and a MAE of 0.41, for the first and second problems, respectively. These results are promising and stress out the key role that the emotional context of the individuals plays in pain prediction.