This work presents a noninvasive methodology to obtain biomedical thermal imaging which provide relevant information that may assist in the diagnosis of emotions. Biomedical thermal images of the facial expressions of 44 subjects were captured experiencing joy, disgust, anger, fear and sadness. The analysis of these thermograms was carried out through its thermal value not with its intensity value. Regions of interest were obtained through image processing techniques that allow to differentiate between the subject and the background, having only the subject, the centers of each region of interest were obtained in order to get the same region of the face for each subject. Through the thermal analysis a biomarker for each region of interest was obtained, these biomarkers can diagnose when an emotion takes place. Because each subject tends to react differently to the same stimuli, a self-calibration phase is proposed, its function is to have the same thermal trend for each subject in order to make a decision so that the five emotions can be correctly diagnosed through a top-down hierarchical classifier. As a final result, a smart thermal system that diagnose emotions was obtained and it was tested on twenty-five subjects (625 thermograms). The results of this test were 89.9% successful. (C) 2017 Elsevier B.V. All rights reserved.