arXiv:2608.23146cs.SEAug 2026

Manuscript Offprint

arXiv:2608.23146

An AI-Assisted Migration Framework for Transforming Legacy Scientific Applications into Reusable Cloud-Based Workflows

Nafiseh Soveizi, Sven Tesselaar, Hero Robinson Brouwer, Zhiming Zhao

Nafiseh Soveizi*, Sven Tesselaar*, Hero Robinson Brouwer*, Zhiming Zhao*†

  • University of Amsterdam, Science Park 904, Amsterdam, the Netherlands

{n.soveizi, z.zhao}@uva.nl

† LifeWatch ERIC Virtual Lab Innovation Center, Science Park 904, Amsterdam, the Netherlands

Abstract—Legacy scientific applications remain valuable research assets but are often tightly coupled to project-specific execution environments, limiting their reuse, reproducibility, and deployment within modern scientific workflow systems and cloud-native Virtual Research Environments (VREs). Existing migration approaches primarily target individual artifacts, such as notebooks or containers, and provide limited support for systematically transforming heterogeneous legacy applications into reusable cloud-native workflows. This paper presents an AI-assisted migration framework that combines the Reference Model of Open Distributed Processing (RM-ODP)-guided architectural analysis, Large Language Models (LLMs), and Design Structure Matrix (DSM) analysis. The framework first uses RM-ODP to guide an LLM in identifying reusable workflow components, their interfaces, and execution dependencies from heterogeneous legacy applications. The resulting workflow structure is then iteratively evaluated and refined using DSM analysis. Finally, an LLM-based workflow generator implements the validated workflow components and produces containerized execution environments and executable workflow definitions for deployment in cloud-native workflow systems, including VREs. The framework was evaluated on two legacy scientific applications from different scientific domains. In both cases, the applications were successfully transformed into reusable cloud-native workflows while preserving their original functionality, demonstrating the feasibility of the proposed approach for modernizing legacy scientific software.

Index Terms—Scientific Workflows, Legacy Software Migration, Large Language Models, RM-ODP, Design Structure Matrix, Virtual Research Environments

I. INTRODUCTION

Scientific workflows have become the primary mechanism for conducting computational research by orchestrating software components, datasets, and computational resources into reproducible and scalable analysis pipelines [2], [3]. Workflow Management Systems (WMSs) enable researchers to compose, execute, and share workflows across heterogeneous computing infrastructures, while cloud-native Virtual Research Environments (VREs) further integrate workflow execution with shared data, software, and computational resources to support collaborative and reproducible scientific research [2], [7], [9], [33].

Despite these advances, much scientific knowledge remains embedded in legacy research software, including standalone scripts, Jupyter notebooks, simulation codes, and domain-specific applications [16], [17], [19]. These applications were typically developed for project-specific execution environments rather than reusable workflows. As a result, they often contain tightly coupled implementations, implicit execution logic, hard-coded configurations, and undeclared software dependencies, making them difficult to reuse, reproduce, and migrate to modern cloud-based workflow platforms.

Migrating legacy software into reusable workflows is a challenging software engineering task. It requires identifying meaningful workflow components, reconstructing execution and data dependencies, externalizing software environments, and preserving the scientific behaviour of the original application. These activities are largely performed manually, demanding substantial software engineering and domain expertise that limits the scalability of migration across heterogeneous scientific applications.

Existing approaches mainly address isolated migration tasks, such as notebook containerization, workflow execution, dependency management, and cloud deployment [21]–[23], [29]. While valuable, they provide limited support for systematically understanding legacy applications, defining reusable workflow boundaries, and automatically generating executable workflows. Recent advances in Large Language Models (LLMs) have demonstrated promising capabilities for software understanding and code generation, yet few approaches combine LLMs with established software architecture principles and objective quality assessment to guide workflow migration.

To address this gap, this paper presents an AI-assisted migration framework for transforming legacy scientific applications into reusable cloud-native workflows. The framework first combines the Reference Model of Open Distributed Processing (RM-ODP) [1] with a LLM to identify workflow components, their interfaces, and execution dependencies from heterogeneous legacy artifacts. RM-ODP provides complementary architectural viewpoints that capture the functional, informational, computational, engineering, and technological aspects of legacy applications, enabling the LLM to identify reusable workflow components based on architectural responsibilities rather than source-code structure alone. The resulting workflow structure is then evaluated and iteratively refined using Design Structure Matrix (DSM) analysis [5], which provides an objective assessment of component dependencies, coupling, and modularity to identify structural issues that guide workflow refinement. Finally, an LLM-based workflow generator implements the validated workflow components and produces containerized workflow artifacts and executable workflow definitions that can be executed in cloud-native workflow platforms, including VREs.

The proposed framework is evaluated using two representative legacy applications from different scientific domains: BGIS, an urban digital twin application implemented as standalone Python scripts, and FreVA, a food-resource optimization model implemented as a Jupyter notebook. Together, these case studies demonstrate that the proposed approach can systematically migrate heterogeneous legacy software into reusable cloud-native workflows while preserving the functionality of the original applications.

The remainder of this paper is organized as follows. Section II reviews scientific workflow systems, VREs, and existing approaches to legacy workflow migration. Section III presents the research methodology and the proposed framework. Section IV reports the experimental evaluation. Section V discusses the findings, lessons learned, and limitations. Finally, Section VI concludes the paper and outlines future research directions.

References (33)