IntroductionInternational evidence strongly suggests that medical students are at high risk of mental health problems. This distress, which can be mediated by a variety of individual, interpersonal and contextual factors within the curriculum, can be mitigated by effective coping strategies and interventions. Central to this discourse is the recognition that the challenges of professional identity formation can contribute significantly to medical students' distress. The focus of our study is therefore to examine discrepancies in professional identities and role models in undergraduate medical education in relation to affective burden.MethodsMedical students at different stages of university education and high school graduates intending to study medicine were surveyed in a cross-sectional study. The study employed Osgood and Hofstätter's polarity profile to evaluate the self-image of participants, the image of an ideal and real physician, and their correlation with depression (PHQ-9) and anxiety (GAD-7).ResultsOut of the 1535 students recruited, 1169 (76.2%) participated in the study. Students rated their self-image as somewhere between a more critical real image of physicians and a more positive ideal image. Medical students at all training levels consistently rated the ideal image as remaining constant. Significant correlations were found between the professional role models of medical students and affective symptoms, particularly for the discrepancy between the ideal image of a physician and their self-image. Furthermore, 17% and nearly 15% reported significant symptoms of depression and anxiety, respectively.DiscussionOur study adds to the growing body of knowledge on professional identity formation in medicine and socialisation in the medical environment. The study highlights the importance of discrepancies between self-image and ideal image in the experience of depressive and anxiety symptoms. Primary prevention-oriented approaches should incorporate these findings to promote reflective competence in relation to professional role models and strengthen the resilience of upcoming physicians in medical training.