PriMa-Causa (PhD thesis)

A causal foundation model that ranks maintenance actions by their effect on production-line performance.

The PriMa-Causa loop: an operational problem at the machine becomes a formal causal query, the model estimates the effect of each action, and the operator receives a ranked action.

Ph.D. project, University of Luxembourg, with IMAtec and TU Wien (2023 to 2026)

Problem. Maintenance decisions need the effect of an action, not a forecast. Production data are observational, so a model can predict accurately and still recommend the wrong action, and classical causal estimators need a dedicated study for every case.

Approach. PriMa-Causa is a tabular causal foundation model: a transformer that is pre-trained once on one million synthetic tasks generated from structural causal models. It answers a new “what if” question in a single forward pass and returns a full predictive distribution. A parametric production-line simulator provides the true effect of every intervention, so the model can be checked against known ground truth. Process knowledge can be added in three levels, from no graph to a fully known process graph.

Results. PriMa-Causa chooses maintenance actions with a lower decision error than predictive baselines, most clearly when data are sparse and overlap is weak. A partially known process graph reduces the error further, and the model transfers to real industrial data without retraining.

Paper. Saretzky, F., Andersen, L., Engel, T., & Ansari, F. (2026). Integrating a Causal Foundation Model into a Prescriptive Maintenance Framework for Optimising Production-Line OEE. Procedia CIRP, 146, 78–83. doi.org/10.1016/j.procir.2026.03.207

Thesis. The full dissertation is available in ORBilu, the University of Luxembourg repository (orbilu.uni.lu/handle/10993/69383), and on arXiv (arxiv.org/abs/2610.31147).

Code. github.com/FelixSaretzky/PriMaCausa. The source code, training configuration and pre-trained weights will be published once the dissertation is out.

Tools. PyTorch, synthetic data generation, TabPFN, TabICL, DoWhy, EconML.

Abstract

Automated manufacturing requires data-driven decision making under uncertainty, incomplete information, and sparse observational records. Unplanned downtime is a dominant cost of getting those decisions wrong. Prescriptive maintenance denotes the AI-driven recommendation of a maintenance action against an impending failure rather than its mere prediction. Under non-stationary production conditions, each decision point presents a different set of candidate actions and a different production-line state. Established reference architectures support these decisions by coupling predictive models, fitted to observational records, with recommendation logic that encodes curated expert knowledge in rules or optimisation objectives. Selecting a corrective action requires an interventional quantity: how the line behaviour would change if the action were set. Manufacturing data, however, is observational, generated under a condition-dependent policy rather than under experimentation, so a model fitted to predict the outcome estimates an associational quantity. It may describe observed outcomes accurately and still misdirect the choice of action, without the prediction error revealing it. Causal estimators can target the interventional quantity, but they require an expert-led causal study per case, for which the bounded decision window of operation leaves no room. This dissertation analyses how causal reasoning can be embedded into prescriptive maintenance so that actions are ranked by their estimated interventional effect rather than by a predicted outcome. This results in PriMa-Causa, built from three components. A causal reasoning layer integrates the estimate into the PriMa reference model. A parametric simulator supplies the interventional ground truth absent from manufacturing data. A graph-conditioned tabular causal foundation model, pre-trained once on this synthetic production-line prior, answers interventional queries in a single forward pass. The results show that PriMa-Causa attains a lower prescription error than the associational baselines, with the largest margin under weak overlap and sparse context, and that a partially disclosed causal graph reduces this error further. The causal inductive bias carried by the synthetic prior and the graph conditioning can thus replace per-case estimator fitting. The framework complements the estimator with the formal step of translating an operational maintenance problem into the matching causal query, from effect estimation to root-cause analysis. More generally, PriMa-Causa is a step toward automating causal inference on the path to autonomous and self-healing maintenance.

Kurzfassung

Automatisierte Fertigung erfordert datengetriebene Entscheidungen unter Unsicherheit, unvollständiger Information und spärlichen Beobachtungsdaten. Ungeplante Ausfallzeiten sind ein wesentlicher Kostenfaktor, der durch falsche Entscheidungen entsteht. Präskriptive Instandhaltung bezeichnet die KI-gestützte Empfehlung einer Maßnahme gegen einen bevorstehenden Ausfall statt dessen bloßer Vorhersage. Unter nichtstationären Bedingungen stellt sich die Maßnahmenwahl wiederholt, jeweils mit anderer Maßnahmenmenge und anderem Linienzustand. Etablierte Referenzarchitekturen koppeln dafür prädiktive, an Beobachtungsdaten angepasste Modelle mit einer Empfehlungslogik, die kuratiertes Expertenwissen in Regeln oder Optimierungszielen kodiert. Die Wahl einer Maßnahme erfordert eine interventionelle Größe: wie sich das Linienverhalten unter der gesetzten Maßnahme ändern würde. Fertigungsdaten entstehen jedoch unter einer zustandsabhängigen Betriebspolitik statt unter Experimenten, sodass ein auf Vorhersage angepasstes Modell eine assoziative Größe schätzt. Es kann beobachtete Ergebnisse genau beschreiben und dennoch die Maßnahmenwahl fehlleiten, ohne dass die Vorhersagegüte dies offenbart. Kausale Schätzverfahren erfassen die interventionelle Größe zwar, erfordern jedoch eine expertengeführte Kausalstudie je Fall, für die das Entscheidungsfenster der laufenden Produktion keinen Raum lässt. Die Dissertation untersucht, wie sich kausales Schließen in die präskriptive Instandhaltung einbetten lässt, sodass Maßnahmen nach geschätztem interventionellem Effekt statt nach vorhergesagtem Ergebnis priorisiert werden. Daraus resultiert PriMa-Causa: eine Schicht für kausales Schließen im PriMa-Referenzmodell, ein parametrischer Simulator für die in Fertigungsdaten fehlenden wahren interventionellen Größen und ein graph-konditioniertes tabellarisches kausales Foundation-Modell, das, einmalig auf dieser synthetischen A-priori-Verteilung vortrainiert, interventionelle Anfragen in einem einzigen Vorwärtsdurchlauf beantwortet. Die Ergebnisse zeigen, dass PriMa-Causa einen geringeren Präskriptionsfehler erreicht als die assoziativen Vergleichsverfahren, am deutlichsten bei schwacher Überlappung und spärlichem Kontext, und dass ein partiell verfügbarer Kausalgraph ihn weiter verringert. Damit kann der kausale induktive Bias aus A-priori-Verteilung und Graph-Konditionierung die fallweise Schätzeranpassung ersetzen. Der Ansatz ergänzt den Schätzer um die formale Übersetzung des operativen Problems in die passende kausale Anfrage, von Effektschätzung bis Ursachenanalyse. Allgemeiner ist PriMa-Causa ein Schritt zur Automatisierung kausaler Inferenz hin zu autonomer, selbstheilender Instandhaltung.