Skip to main content
medRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search

An explainable transformer model learning from entire treatment timelines for pan-cancer risk profiling across healthcare systems

View ORCID ProfilePhilipp Keyl, Niklas Kiermeyer, Jonah Bosserhoff, Tim Lenfers, Thibault Niederhauser, Bowen Fan, Thomas Schnake, Simon Schallenberg, Fabio Aubele, Solveig Kuss, Mina Jamshidi Idaji, Philipp Jurmeister, Moon Kim, Sebastian Bauer, Nikolaos Bechrakis, Michael Forsting, Dagmar Führer-Sakel, Martin Glas, Viktor Grünwald, Boris Hadaschik, Ken Herrmann, Stefan Kasper, Rainer Kimmig, Stephan Lang, Ina Pretzell, Tienush Rassaf, Alexander Roesch, Jens T. Siveke, Maja Guberina, Ulrich Sure, Marc Wichert, Michael Ingrisch, Kristian Unger, Jürgen Behr, Daniel Teupser, Christian G. Stief, Julia Mayerle, Nadia Harbeck, Amanda Tufman, Jens Ricke, Lars H. Lindner, Siegfried Priglinger, Günter Höglinger, Sven Mahner, Martin Canis, Lucie Heinzerling, Christine Spitzweg, Alpaslan Tasdogan, Matthias Totzeck, Anja Welt, Marcel Wiesweg, C. Benedikt Westphalen, Reinhard Thasler, Fady Albashiti, Grégoire Montavon, Nicola Miglino, Zsolt Balázs, Michael von Bergwelt-Baildon, Volker Heinemann, Claus Belka, Sylvia Hartmann, Andreas Wicki, Felix Nensa, Dirk Schadendorf, View ORCID ProfileMichael Krauthammer, Klaus-Robert Müller, View ORCID ProfileMartin Schuler, View ORCID ProfileFrederick Klauschen, View ORCID ProfileJens Kleesiek, View ORCID ProfileJulius Keyl
doi: https://doi.org/10.64898/2026.07.24.26358838
Philipp Keyl
1Institute of Pathology, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
2BIFOLD – Berlin Institute for the Foundations of Learning and Data, Berlin, Germany
3Institute of Pathology, Charité - Universitätsmedizin Berlin, Corporate Member of Freie Universität Berlin and Humboldt-Universität Berlin, Berlin, Germany
4Bavarian Cancer Research Center (BZKF), LMU Munich, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Philipp Keyl
Niklas Kiermeyer
1Institute of Pathology, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
5German Cancer Consortium (DKTK), partner site Munich, a partnership between DKFZ and Ludwig-Maximilians-Universität München (LMU), Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Jonah Bosserhoff
6Institute for Artificial Intelligence in Medicine, University Hospital Essen, Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • For correspondence: julius.keyl{at}uk-essen.de
Tim Lenfers
6Institute for Artificial Intelligence in Medicine, University Hospital Essen, Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Thibault Niederhauser
7Department of Quantitative Biomedicine, University of Zurich, Zurich, Switzerland
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Bowen Fan
7Department of Quantitative Biomedicine, University of Zurich, Zurich, Switzerland
45Department of Medical Oncology and Hematology, University of Zurich and University Hospital, Zurich, Rämistrasse 100, 8006 Zurich, Switzerland
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Thomas Schnake
8Department of Chemistry, Chemical Physics Theory Group, University of Toronto, Toronto, Canada
9Vector Institute for Artificial Intelligence, Toronto, Canada
10Acceleration Consortium, University of Toronto, Toronto, Canada
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Simon Schallenberg
3Institute of Pathology, Charité - Universitätsmedizin Berlin, Corporate Member of Freie Universität Berlin and Humboldt-Universität Berlin, Berlin, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Fabio Aubele
29Medical Data Integration Center (MeDICLMU), University Hospital Munich, LMU Munich, Munich, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Solveig Kuss
1Institute of Pathology, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Mina Jamshidi Idaji
2BIFOLD – Berlin Institute for the Foundations of Learning and Data, Berlin, Germany
59Machine Learning Group, Technical University of Berlin, Berlin, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Philipp Jurmeister
1Institute of Pathology, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
5German Cancer Consortium (DKTK), partner site Munich, a partnership between DKFZ and Ludwig-Maximilians-Universität München (LMU), Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Moon Kim
6Institute for Artificial Intelligence in Medicine, University Hospital Essen, Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Sebastian Bauer
11Department of Medical Oncology, University Hospital Essen (AöR), Essen, Germany
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Nikolaos Bechrakis
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
15Department of Ophthalmology, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Michael Forsting
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
16Institute for Diagnostic and Interventional Radiology and Neuroradiology, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Dagmar Führer-Sakel
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
17Department of Endocrinology, Diabetes and Metabolism, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Martin Glas
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
18Division of Clinical Neurooncology, Department of Neurology and Center for Translational Neuro- and Behavioral Sciences (C-TNBS), University Medicine Essen, University Duisburg-Essen, Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Viktor Grünwald
11Department of Medical Oncology, University Hospital Essen (AöR), Essen, Germany
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
19Department of Urology, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Boris Hadaschik
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
19Department of Urology, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Ken Herrmann
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
20Department of Nuclear Medicine, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Stefan Kasper
11Department of Medical Oncology, University Hospital Essen (AöR), Essen, Germany
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Rainer Kimmig
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
21Department of Gynecology and Obstetrics, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Stephan Lang
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
22Department of Otorhinolaryngology, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Ina Pretzell
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Tienush Rassaf
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
23Department of Cardiology and Vascular Medicine, West German Heart and Vascular Center Essen, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Alexander Roesch
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
24Department of Dermatology, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Jens T. Siveke
11Department of Medical Oncology, University Hospital Essen (AöR), Essen, Germany
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
25Bridge Institute of Experimental Tumor Therapy (BIT) and Division of Solid Tumor Translational Oncology (DKTK), West German Cancer Center, University Hospital Essen, University of Duisburg-Essen, Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Maja Guberina
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
27Department of Radiation Oncology, University Hospital Essen, Essen, Germany
63National Center for Tumor Diseases (NCT), NCT West, Essen. Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Ulrich Sure
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
28Department of Neurosurgery and Spine Surgery, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Marc Wichert
31Central Laboratory, University Hospital Essen, University Duisburg-Essen, Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Michael Ingrisch
4Bavarian Cancer Research Center (BZKF), LMU Munich, Germany
32Department of Radiology, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Munich, Germany
33Munich Center for Machine Learning (MCML), Munich, Germany
64relAI - Konrad Zuse School of Excellence in Reliable AI
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Kristian Unger
4Bavarian Cancer Research Center (BZKF), LMU Munich, Germany
5German Cancer Consortium (DKTK), partner site Munich, a partnership between DKFZ and Ludwig-Maximilians-Universität München (LMU), Germany
34Research Unit Translational Metabolic Oncology, Institute for Diabetes and Cancer, Helmholtz Zentrum München, Deutsches Forschungszentrum Für Gesundheit Und Umwelt (GmbH), Neuherberg, Germany
35Department of Radiation Oncology, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
36Comprehensive Cancer Center (CCC), Munich, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Jürgen Behr
37Department of Medicine V, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
38Comprehensive Pneumology Center, German Center for Lung Research, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Daniel Teupser
39Institute of Laboratory Medicine, University Hospital, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Christian G. Stief
40Department of Urology, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Julia Mayerle
4Bavarian Cancer Research Center (BZKF), LMU Munich, Germany
5German Cancer Consortium (DKTK), partner site Munich, a partnership between DKFZ and Ludwig-Maximilians-Universität München (LMU), Germany
41Department of Medicine II, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Nadia Harbeck
42Department of Obstetrics and Gynecology, CCC Munich, LMU Breast Center and Gynecologic Cancer Center, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Amanda Tufman
38Comprehensive Pneumology Center, German Center for Lung Research, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
43Department of Internal Medicine V, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Jens Ricke
32Department of Radiology, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Munich, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Lars H. Lindner
44Department of Medicine III, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Siegfried Priglinger
46Department of Ophthalmology, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Günter Höglinger
47Department of Neurology, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
48German Center for Neurodegenerative Diseases (DZNE), Munich, Germany
49Munich Cluster for Systems Neurology (SyNergy), Munich, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Sven Mahner
4Bavarian Cancer Research Center (BZKF), LMU Munich, Germany
5German Cancer Consortium (DKTK), partner site Munich, a partnership between DKFZ and Ludwig-Maximilians-Universität München (LMU), Germany
42Department of Obstetrics and Gynecology, CCC Munich, LMU Breast Center and Gynecologic Cancer Center, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Martin Canis
4Bavarian Cancer Research Center (BZKF), LMU Munich, Germany
50Department of Otorhinolaryngology, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Lucie Heinzerling
51Department of Dermatology and Allergy, University Hospital, Ludwig Maximilian University of Munich, Munich, Germany
52Friedrich-Alexander-University of Erlangen–Nürnberg, Erlangen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Christine Spitzweg
53Department of Internal Medicine IV, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität, Germany
54Division of Endocrinology, Diabetes, Metabolism and Nutrition, Mayo Clinic, Rochester, Minnesota, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Alpaslan Tasdogan
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
24Department of Dermatology, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Matthias Totzeck
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
23Department of Cardiology and Vascular Medicine, West German Heart and Vascular Center Essen, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Anja Welt
11Department of Medical Oncology, University Hospital Essen (AöR), Essen, Germany
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Marcel Wiesweg
11Department of Medical Oncology, University Hospital Essen (AöR), Essen, Germany
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
C. Benedikt Westphalen
5German Cancer Consortium (DKTK), partner site Munich, a partnership between DKFZ and Ludwig-Maximilians-Universität München (LMU), Germany
36Comprehensive Cancer Center (CCC), Munich, Germany
44Department of Medicine III, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Reinhard Thasler
29Medical Data Integration Center (MeDICLMU), University Hospital Munich, LMU Munich, Munich, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Fady Albashiti
29Medical Data Integration Center (MeDICLMU), University Hospital Munich, LMU Munich, Munich, Germany
30Neu-Ulm University of Applied Sciences, Neu-Ulm, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Grégoire Montavon
2BIFOLD – Berlin Institute for the Foundations of Learning and Data, Berlin, Germany
56Institute for Artificial Intelligence in Medicine, Charité – Universitätsmedizin Berlin, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Nicola Miglino
45Department of Medical Oncology and Hematology, University of Zurich and University Hospital, Zurich, Rämistrasse 100, 8006 Zurich, Switzerland
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Zsolt Balázs
7Department of Quantitative Biomedicine, University of Zurich, Zurich, Switzerland
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Michael von Bergwelt-Baildon
4Bavarian Cancer Research Center (BZKF), LMU Munich, Germany
5German Cancer Consortium (DKTK), partner site Munich, a partnership between DKFZ and Ludwig-Maximilians-Universität München (LMU), Germany
36Comprehensive Cancer Center (CCC), Munich, Germany
44Department of Medicine III, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Volker Heinemann
4Bavarian Cancer Research Center (BZKF), LMU Munich, Germany
5German Cancer Consortium (DKTK), partner site Munich, a partnership between DKFZ and Ludwig-Maximilians-Universität München (LMU), Germany
36Comprehensive Cancer Center (CCC), Munich, Germany
44Department of Medicine III, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Claus Belka
4Bavarian Cancer Research Center (BZKF), LMU Munich, Germany
5German Cancer Consortium (DKTK), partner site Munich, a partnership between DKFZ and Ludwig-Maximilians-Universität München (LMU), Germany
35Department of Radiation Oncology, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Sylvia Hartmann
57Institute of Pathology, University Hospital Essen, Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Andreas Wicki
45Department of Medical Oncology and Hematology, University of Zurich and University Hospital, Zurich, Rämistrasse 100, 8006 Zurich, Switzerland
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Felix Nensa
6Institute for Artificial Intelligence in Medicine, University Hospital Essen, Essen, Germany
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
16Institute for Diagnostic and Interventional Radiology and Neuroradiology, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Dirk Schadendorf
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
24Department of Dermatology, University Hospital Essen (AöR), Essen, Germany
58Research Alliance Ruhr, Research Center One Health, University of Duisburg-Essen, Essen, Germany
63National Center for Tumor Diseases (NCT), NCT West, Essen. Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Michael Krauthammer
7Department of Quantitative Biomedicine, University of Zurich, Zurich, Switzerland
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Michael Krauthammer
Klaus-Robert Müller
2BIFOLD – Berlin Institute for the Foundations of Learning and Data, Berlin, Germany
59Machine Learning Group, Technical University of Berlin, Berlin, Germany
60Department of Mathematics and Computer Science, Technical University of Berlin, Germany
61Department of Artificial Intelligence, Korea University, Seoul 136-713, South Korea
62MPI for Informatics, Saarbrücken, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Martin Schuler
11Department of Medical Oncology, University Hospital Essen (AöR), Essen, Germany
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
14German Cancer Consortium (DKTK), partner site Essen, a partnership between German Cancer Research Center (DKFZ) and University Hospital Essen, Germany
63National Center for Tumor Diseases (NCT), NCT West, Essen. Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Martin Schuler
Frederick Klauschen
1Institute of Pathology, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München, Germany
2BIFOLD – Berlin Institute for the Foundations of Learning and Data, Berlin, Germany
3Institute of Pathology, Charité - Universitätsmedizin Berlin, Corporate Member of Freie Universität Berlin and Humboldt-Universität Berlin, Berlin, Germany
4Bavarian Cancer Research Center (BZKF), LMU Munich, Germany
5German Cancer Consortium (DKTK), partner site Munich, a partnership between DKFZ and Ludwig-Maximilians-Universität München (LMU), Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Frederick Klauschen
Jens Kleesiek
6Institute for Artificial Intelligence in Medicine, University Hospital Essen, Essen, Germany
11Department of Medical Oncology, University Hospital Essen (AöR), Essen, Germany
12Medical Faculty, University of Duisburg-Essen, Essen, Germany
13West German Cancer Center, University Hospital Essen (AöR), Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Jens Kleesiek
Julius Keyl
6Institute for Artificial Intelligence in Medicine, University Hospital Essen, Essen, Germany
57Institute of Pathology, University Hospital Essen, Essen, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Julius Keyl
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Supplementary material
  • Data/Code
  • Preview PDF
Loading

Abstract

Cancer outcomes vary widely between individual patients, each accumulating an irregular record of treatments, diagnoses, measurements, and complications. Current prognostic models reduce this complexity into a single snapshot, focus on narrow clinical settings, and rarely generalize across hospitals. Here we introduce Chronicle, an explainable transformer that learns from entire patient trajectories to predict diverse clinical outcomes throughout the disease course while capturing both short- and long-term temporal dependencies.

Trained on 53.7 million longitudinal data points from 51,711 patients spanning 67 cancer types, Chronicle operates natively on irregular data without imputation and jointly predicts eight endpoints within a flexible framework adaptable to additional outcomes. Chronicle outperformed cross-sectional models for overall survival prediction (C-index 0.84 vs 0.76-0.79), stratified patients more accurately than established prognostic systems, including TNM stage, and predicted seven adverse event and transfusion endpoints (AUC 0.80-0.92). Applied without retraining to 69,341 patients in Germany, Switzerland, and the United States, Chronicle generalized across healthcare systems and improved further with local fine-tuning. Integrated explainability traced each risk update to patient-specific clinical factors, revealing distinct temporal persistence of prognostic information, with relevance half-lives ranging from weeks for therapies to nearly one year for baseline characteristics.

These findings demonstrate that learning from hospital-wide patient trajectories enables interpretable and continuously updated predictions, providing a scalable framework to support individualized treatment decisions.

Competing Interest Statement

B.H. reports consulting fees from Johnson&Johnson, Bayer, ABX, Astellas, Merck, Amgen, MSD/Pfizer, Novartis, BMS, Monrol, Onkowissen, POINT Biopharma, Ipsen, AstraZeneca, Lightpoint medical, Telix, and Accord Healthcare; travel support from AstraZeneca, BMS, Janssen, Bayer, Pfizer and Ipsen; grants or contracts from Janssen, Deutsche Forschungsgesellschaft, Novartis, and BMS; participation on data safety monitoring boards for Johnson&Johnson and ABX. V.G: Speaker fee: Bristol-Myers Squibb, Ipsen, Eisai, MSD, Merck KGa, AstraZeneca, AAA/Novartis, Amgen, Johnson & Johnson, Teilx Pharmaceuticals, Gilead Sciences, Roche. Consulting fee: Bristol-Myers Squibb, Pfizer, Novartis, MSD, Ipsen, Johnson & Johnson, Eisai, Debiopharm, Gilead Sciences, Oncorena, Synthekine, Recordati. Travel support: Pfizer, Johnson & Johnson, Merck KGa, Ipsen, Amgen. SM: Research funding, advisory board, honorary or travel expenses: AbbVie, AstraZeneca, Clovis, Eisai, GlaxoSmithKline, Gilead, Hubro, Immunogen, MSD, Novartis, Nykode, Olympus, PharmaMar, Pfizer, Regeneron, Roche, Seagen, Sensor Kinesis, Teva J.T.S: receives honoraria as consultant or for continuing medical education presentations from AstraZeneca, Bayer, Boehringer Ingelheim, Bristol-Myers Squibb, Immunocore, ioMEDICO, MSD Sharp Dohme, Novartis, Novocure, Roche/Genentech, and Servier. His institution receives research funding from Abalos Therapeutics, AstraZeneca, Boehringer Ingelheim, Bristol-Myers Squibb, Celgene, Eisbach Bio, and Roche/Genentech; he holds ownership in FAPI Holding (< 3%). I.P.: Advisory Board: BeOne, Daiichi Sankyo, Taiho Oncology Europe. Honoraria: Deutsche Bundesbank, neoConnect GmbH, Daiichi Sankyo, Roche Diagnostics, Springer Medizin. The remaining authors declare no competing interests related to this study.

Author Declarations

I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.

Yes

The details of the IRB/oversight body that provided approval or exemption for the research described are given below:

The study was approved by the Ethics Committee of the Medical Faculty of the University of Duisburg-Essen (22-10881-BO). The requirement for written informed consent was waived due to the study's retrospective design and the deidentification of data. Data analysis in Zurich was approved by the Cantonal Ethics committee; BASEC-Nr: 2023-00234, Comprehensive Cancer Center Zuerich (CCCZ) - Data analytics. The study was approved by the Ethics Committee at LMU Munich (23-0650).

I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.

Yes

I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).

Yes

I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.

Yes

Data Availability

Deidentified data are available upon reasonable request. Data cannot be shared with investigators outside the institution without consent. Data access is generally subject to applicable data protection regulations and data use and access regulation onsite. The MIMIC-IV database is available via PhysioNet to credentialed users (https://physionet.org/).

Funder Information Declared

BMFTR, 01KD2420C, 01IS14013A-E, 01GQ1115, 01GQ0850, 01IS18025A, 031L0207D, 01IS18037A, 01KX2524
DFG, FU 356/12-2
Korea government (MSIT), RS-2019-II190079, RS-2024-00457882
German Cancer Aid, 70116526
Copyright 
The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY 4.0 International license.
Back to top
PreviousNext
Posted July 27, 2026.
Download PDF

Supplementary Material

Data/Code
Email

Thank you for your interest in spreading the word about medRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
An explainable transformer model learning from entire treatment timelines for pan-cancer risk profiling across healthcare systems
(Your Name) has forwarded a page to you from medRxiv
(Your Name) thought you would like to see this page from the medRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
An explainable transformer model learning from entire treatment timelines for pan-cancer risk profiling across healthcare systems
Philipp Keyl, Niklas Kiermeyer, Jonah Bosserhoff, Tim Lenfers, Thibault Niederhauser, Bowen Fan, Thomas Schnake, Simon Schallenberg, Fabio Aubele, Solveig Kuss, Mina Jamshidi Idaji, Philipp Jurmeister, Moon Kim, Sebastian Bauer, Nikolaos Bechrakis, Michael Forsting, Dagmar Führer-Sakel, Martin Glas, Viktor Grünwald, Boris Hadaschik, Ken Herrmann, Stefan Kasper, Rainer Kimmig, Stephan Lang, Ina Pretzell, Tienush Rassaf, Alexander Roesch, Jens T. Siveke, Maja Guberina, Ulrich Sure, Marc Wichert, Michael Ingrisch, Kristian Unger, Jürgen Behr, Daniel Teupser, Christian G. Stief, Julia Mayerle, Nadia Harbeck, Amanda Tufman, Jens Ricke, Lars H. Lindner, Siegfried Priglinger, Günter Höglinger, Sven Mahner, Martin Canis, Lucie Heinzerling, Christine Spitzweg, Alpaslan Tasdogan, Matthias Totzeck, Anja Welt, Marcel Wiesweg, C. Benedikt Westphalen, Reinhard Thasler, Fady Albashiti, Grégoire Montavon, Nicola Miglino, Zsolt Balázs, Michael von Bergwelt-Baildon, Volker Heinemann, Claus Belka, Sylvia Hartmann, Andreas Wicki, Felix Nensa, Dirk Schadendorf, Michael Krauthammer, Klaus-Robert Müller, Martin Schuler, Frederick Klauschen, Jens Kleesiek, Julius Keyl
medRxiv 2026.07.24.26358838; doi: https://doi.org/10.64898/2026.07.24.26358838
Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
An explainable transformer model learning from entire treatment timelines for pan-cancer risk profiling across healthcare systems
Philipp Keyl, Niklas Kiermeyer, Jonah Bosserhoff, Tim Lenfers, Thibault Niederhauser, Bowen Fan, Thomas Schnake, Simon Schallenberg, Fabio Aubele, Solveig Kuss, Mina Jamshidi Idaji, Philipp Jurmeister, Moon Kim, Sebastian Bauer, Nikolaos Bechrakis, Michael Forsting, Dagmar Führer-Sakel, Martin Glas, Viktor Grünwald, Boris Hadaschik, Ken Herrmann, Stefan Kasper, Rainer Kimmig, Stephan Lang, Ina Pretzell, Tienush Rassaf, Alexander Roesch, Jens T. Siveke, Maja Guberina, Ulrich Sure, Marc Wichert, Michael Ingrisch, Kristian Unger, Jürgen Behr, Daniel Teupser, Christian G. Stief, Julia Mayerle, Nadia Harbeck, Amanda Tufman, Jens Ricke, Lars H. Lindner, Siegfried Priglinger, Günter Höglinger, Sven Mahner, Martin Canis, Lucie Heinzerling, Christine Spitzweg, Alpaslan Tasdogan, Matthias Totzeck, Anja Welt, Marcel Wiesweg, C. Benedikt Westphalen, Reinhard Thasler, Fady Albashiti, Grégoire Montavon, Nicola Miglino, Zsolt Balázs, Michael von Bergwelt-Baildon, Volker Heinemann, Claus Belka, Sylvia Hartmann, Andreas Wicki, Felix Nensa, Dirk Schadendorf, Michael Krauthammer, Klaus-Robert Müller, Martin Schuler, Frederick Klauschen, Jens Kleesiek, Julius Keyl
medRxiv 2026.07.24.26358838; doi: https://doi.org/10.64898/2026.07.24.26358838

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Oncology
Subject Areas
All Articles
  • Addiction Medicine (616)
  • Allergy and Immunology (897)
  • Anesthesia (329)
  • Cardiovascular Medicine (4787)
  • Dentistry and Oral Medicine (477)
  • Dermatology (412)
  • Emergency Medicine (647)
  • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1619)
  • Epidemiology (15883)
  • Forensic Medicine (32)
  • Gastroenterology (1199)
  • Genetic and Genomic Medicine (7010)
  • Geriatric Medicine (729)
  • Health Economics (1061)
  • Health Informatics (5017)
  • Health Policy (1430)
  • Health Systems and Quality Improvement (1749)
  • Hematology (583)
  • HIV/AIDS (1340)
  • Infectious Diseases (except HIV/AIDS) (16266)
  • Intensive Care and Critical Care Medicine (1166)
  • Medical Education (666)
  • Medical Ethics (151)
  • Nephrology (722)
  • Neurology (7223)
  • Nursing (366)
  • Nutrition (1074)
  • Obstetrics and Gynecology (1234)
  • Occupational and Environmental Health (1002)
  • Oncology (3588)
  • Ophthalmology (1045)
  • Orthopedics (396)
  • Otolaryngology (449)
  • Pain Medicine (466)
  • Palliative Medicine (139)
  • Pathology (705)
  • Pediatrics (1786)
  • Pharmacology and Therapeutics (734)
  • Primary Care Research (760)
  • Psychiatry and Clinical Psychology (5855)
  • Public and Global Health (9725)
  • Radiology and Imaging (2401)
  • Rehabilitation Medicine and Physical Therapy (1440)
  • Respiratory Medicine (1246)
  • Rheumatology (637)
  • Sexual and Reproductive Health (769)
  • Sports Medicine (577)
  • Surgery (774)
  • Toxicology (107)
  • Transplantation (303)
  • Urology (289)