Graph Representation of the Magnetic Field Topology in High-Fidelity Plasma Simulations for Machine Learning Applications

Ioanna Bouri, Fanni Franssila, Markku Alho, Giulia Cozzani, Ivan Zaitsev, Minna Palmroth, Teemu RoosarXiv 2023 · DOI

Introduction

Magnetic reconnection is a fundamental physical process driving explosive events in the solar system, such as solar flares and coronal mass ejections (CMEs). These events pose significant risks to terrestrial infrastructure, including power grids and satellite communications. While 2D reconnection is well-understood, 3D magnetic reconnection presents a formidable challenge due to its chaotic, multi-scale nature and the sheer volume of data produced by high-fidelity simulations.

High-fidelity simulations like Vlasiator generate hundreds of millions of grid points per time step. Analyzing this data using traditional methods is computationally prohibitive and does not easily integrate with modern machine learning frameworks. There is a critical need for dimensionality reduction techniques that preserve the essential topological "skeleton" of the magnetic field while enabling efficient processing by Graph Neural Networks (GNNs).

Methodology: From Vector Fields to Spatiotemporal Graphs

The researchers developed a scalable pipeline that transforms massive 3D plasma simulations into sparse, spatiotemporal graphs. This process involves two primary stages:

1. Spatial Null Graph Construction

The first step involves identifying magnetic nulls—points where the magnetic field strength is zero. These nulls serve as the nodes of the graph. Each null is classified into one of four topological types (A, B, As, Bs) based on the eigenvalues of the magnetic field's Jacobian matrix.

Classification of magnetic null types (A, B, As, Bs) based on local field topology.

Following node identification, the pipeline traces 2D null lines, which approximate "separators" that connect the nulls. In the resulting graph, these separators are represented as edges. This approach effectively "compresses" millions of voxels into a manageable set of nodes and edges that capture the core physics of the environment.

2. Spatiotemporal Tracking

To account for the temporal evolution of the magnetic field, the pipeline tracks nulls across successive time steps ($t$ to $t+1$). This is framed as an unbalanced assignment problem solved via bipartite matching. The algorithm is robust enough to handle "type switches" (e.g., a null transitioning from Type B to Type Bs) and "bifurcations," where pairs of nulls with opposite polarity are created or destroyed—a key indicator of energy release during reconnection.

Data and Scalability

The pipeline was validated using data from the Vlasiator simulation, a supercomputer-scale Vlasov theory-based model. The test dataset comprised 170 time-steps, each containing over 1.7 million grid points, totaling approximately 293 million data points. The simulation focused on the Earth's magnetotail with a high temporal resolution (1-second cadence), allowing for precise tracking of topological shifts.

Key Insights and Results

The primary contribution of this work is the demonstration of topology-based dimensionality reduction. By encoding physical properties—such as null type—as node features, the graph representation remains physically grounded while becoming computationally tractable for standard ML hardware.

The researchers successfully mapped complex 3D behaviors into discrete temporal edges. This allows for the identification of critical events, such as the "snapping" of magnetic field lines, which are signatures of reconnection. Visual analysis confirms that the graph representation accurately tracks the movement and interaction of magnetic structures in the Earth's magnetotail over time.

Future Directions

A significant hurdle remains the lack of "ground truth" labels for 3D reconnection in complex simulations. To address this, the team is exploring proxy tasks, such as forecasting plasmoid formation. Since plasmoids are physical byproducts of reconnection, predicting their emergence serves as a measurable target for GNN training. Future work will also focus on improving the interpretability of these models to ensure they adhere to fundamental physical laws like Maxwell's equations.

Summary updated

BibTeX
@misc{bouri2023graph,
  author = {Ioanna Bouri and Fanni Franssila and Markku Alho and Giulia Cozzani and Ivan Zaitsev and Minna Palmroth and Teemu Roos},
  title = {{Graph Representation of the Magnetic Field Topology in High-Fidelity Plasma Simulations for Machine Learning Applications}},
  year = {2023},
  eprint = {2307.09469},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.09469},
}
Figure