
30 hp – Conformal Prediction for Counterfactual Generation
Thesis work is an excellent way to get closer to Scania and build relationships for the future. Many of today's employees began their Scania career with their degree project.
TRATON GROUP is one of the world’s leading commercial vehicle manufacturers, with brands including Scania, MAN, International and Volkswagen Truck & Bus. Its portfolio covers light commercial vehicles, trucks and buses, complemented by financing, charging and digital logistics services. Through its global operations, production sites and extensive sales and service networks, TRATON has access to diverse vehicle platforms, real-world operational data and fleet deployment environments. This provides a strong foundation for developing and validating innovative solutions for sustainable and efficient transportation.
In the Cloud and embedded department within TRATON, we develop new solutions for connected vehicles in our Internet of Things (IoT) platform, as part of TRATON’s increasing focus on communication, services and smart transport solutions. Advanced data analysis capabilities are a cornerstone enabler in this development.
Modern connected vehicles and industrial systems are increasingly equipped with sensors that continuously monitor their condition. The increasing availability of such data enables data-driven models, for example anomaly detection models, to identify abnormal system behaviour and support monitoring and maintenance decisions.
However, many high-performing machine-learning models are inherently difficult to interpret. While a model may identify a sample as anomalous, the prediction itself does not necessarily explain why the sample is considered anomalous or what would need to change for it to be considered normal.
Counterfactual explanations provide one approach to addressing this problem. A counterfactual describes how an input could be modified to obtain a different model prediction. However, counterfactuals are commonly generated through optimization, and a generated counterfactual may therefore achieve the desired prediction while being unrealistic or lying far from the distribution represented by real data.
Conformal prediction provides a model-agnostic framework for quantifying uncertainty with statistical guarantees and offers an interesting direction for addressing this problem. Recent work has investigated the connection between conformal prediction and counterfactual explanations [1].
The objective of this thesis is to investigate how conformal prediction can be used to validate plausible counterfactual explanations for anomaly detection, and to study under which assumptions meaningful statistical guarantees can be provided.
The thesis will investigate methods for generating counterfactual explanations with conformal guarantees. The work will include:
The thesis provides an opportunity to work at the intersection of explainable AI, anomaly detection, optimization and uncertainty quantification, while addressing the fundamental question:
How can counterfactual explanations be generated that are statistically supported by the data?
[1] Maalej, Aicha, Cecilia Sönströd, and Ulf Johansson. "Counterfactual explanations for conformal prediction sets." Proceedings of Machine Learning Research 266 (2025): 1-20.
Assign education, line or direction: Masters programmes in Machine Learning, Data Science, Computer Science, Complex Adaptive Systems or similar.
Number of students: 1-2
Start date for the Thesis project: Spring 2027
Estimated timescale: 20 weeks
Abhishek Srinivasan, Data Scientist, 08-553 816 96, abhishek.srinivasan@scania.com
Juan Carlos Andresen,Group Manager, 08-553 835 16, juan-carlos.andresen@scania.com
Your application should contain the following:
Date of publication, as from – through
Until 2026-10-31. Applicants will be assessed on a continuous basis until the position is filled.
A background check might be conducted for this position. We are conducting interviews continuously and may close the recruitment earlier than the date specified.

Scania is a world-leading provider of transport solutions committed to a better tomorrow. Our purpose is to drive the shift towards a sustainable transport system. In doing so, we are creating a world of mobility that’s better for business, society and our environment.
Employing more than 50,000 people in about 100 countries, Scania’s research and development is concentrated in Sweden, while production takes place in Europe and South America.