
Merck: cancer care adverse events
Exploring how machine learning can help address cancer treatment side effects
Abstract
Targeted therapies are transforming cancer care, offering more precise and effective treatments. Yet, managing their side effects remains a critical challenge. As an example, edema is the most prevalent adverse event (AE) and a known class effect of some targeted cancer therapies. There is still limited understanding of the factors contributing to its occurrence.
A collaboration between Merck Healthcare KGaA, Darmstadt, Germany and the Swiss Data Science Center explored how machine learning (ML) can help address this challenge, bringing new insights into clinical safety and patient management. Results have been published in Clinical and Translational Science, a journal of the American Society for Clinical Pharmacology and Therapeutics.
People
Collaborators


Federico holds a M.Sc. in Engineering and a Ph.D. in Sustainable Development and Innovation Engineering. After a three-year Postdoc in Environmental Data Mining at the University of Lausanne, in 2021 he joined the Swiss Data Science Centre, where he now works as Principal Data Scientist supporting the acceleration of the digital transformation within industries, NGOs and public bodies. Over the years he worked on the development of methodological tools to mine and model big spatiotemporal datasets. He has deep competencies in applied statistics, machine learning, geocomputation, spatial statistics, remote sensing.


Roberto holds an M.Sc. and a Ph.D. in Particle Physics from the University of Torino, Italy. He has worked for several years in fundamental research as a senior fellow and data scientist at the CERN Experimental Physics division and on a research project supported by the Belgian National Fund for Scientific Research (FNRS). In 2018 he moved to EPFL to work on data mining and Machine Learning techniques for the built environment and renewable energies. He has started and led multiple collaborations with academic and industry partners in the energy domain. Roberto joined the SDSC in September 2021 as a Principal Data Scientist with the mission of accompanying industries, NGOs and international organizations through their data science journey.
PI | Partners:
Nadia Terranova (Merck Healthcare KGaA, Darmstadt, Germany)
description
From Clinical Data to Actionable Predictions
The study leveraged data from over 600 patients enrolled in multiple clinical trials. These datasets included both baseline characteristics (such as age) and longitudinal measurements (such as lab values tracked over time), reflecting the complexity of real-world clinical care.
To model this, a machine learning framework capable of predicting the likelihood and severity of edema at future clinical visits was proposed. Tree-based models, and specifically Random Forest and Gradient Boosting, were used due to their strong performance on structured clinical data.
A key methodological challenge was incorporating the temporal dimension of patient data. Since standard ML models are not inherently designed for longitudinal inputs, new features capturing recent patient history were engineered, for example by aggregating measurements over different time windows or tracking changes from baseline.
The resulting models achieved high predictive performance, correctly forecasting edema severity in most cases.
Ensuring the Reliability of Predictions
In clinical settings, accuracy alone is not enough: interpretability and reliability are essential.
To ensure that predicted risks correspond to real-world probabilities, probability calibration techniques were applied. This step ensures that a predicted risk truly reflects observed outcomes in similar patients.
Equally important, the study integrated explainability methods using SHAP (Shapley Additive Explanations). These tools allow clinicians and researchers to understand why a model makes a given prediction, both at the population level and for individual patients.
What Drives Edema Risk
Beyond prediction, the approach uncovers clinically meaningful insights. The analysis identified several key factors associated with increased edema risk:
- Serum albumin levels: lower values are strongly linked to higher risk
- Age: older patients are more likely to develop severe edema
- Previous edema status: past events are highly predictive of future ones
These findings are consistent with existing clinical knowledge, reinforcing confidence in the model while also quantifying the relative importance of each factor. The model also supports the understanding of the complex relationships between exposure therapy and adverse events.
Toward Data-Driven Patient Management
This work demonstrates how combining machine learning with explainability can enhance our understanding of treatment safety. By moving beyond static analyses and leveraging longitudinal clinical data, the framework provides a more dynamic view of patient risk over time.
More broadly, it illustrates a shift toward model-informed precision medicine, where data-driven tools support clinicians in anticipating adverse events and tailoring treatments accordingly.
As healthcare data continues to grow in scale and complexity, such approaches will be key to translating information into actionable insights, ultimately improving patient outcomes.
© Image : HockleyM2/peopleimages.com - stock.adobe.com
Presentation
Gallery
Annexe
Additional resources
Bibliography
Publications
More projects
Èvokâ: Enhancing Fribourg's Archives
More projects
News
Latest news
The SDSC to support 31 projects through its second National Calls
The SDSC to support 31 projects through its second National Calls


SDSC and PSI teams jointly explore the AI potential of large-scale infrastructures
SDSC and PSI teams jointly explore the AI potential of large-scale infrastructures


Coding the Future: Energy Data Hackdays Expand to French-speaking Switzerland
Coding the Future: Energy Data Hackdays Expand to French-speaking Switzerland
Contact us
Would you like to explore how we can work together?
Our team of data scientists and professionals looks forward to engaging in impactful, results-driven collaborations with you.



