How does magnetic geometry affect ITG turbulence?�Insights from data & machine learning
M Landreman, J Y Choi, C Alves, P Balaprakash, R M Churchill , R Conlin, G Roberg-Clark
Thanks to many others who gave suggestions Supported by the US DOE StellFoundry SciDAC
Regression
Turbulence simulations
Feature importance
True heat flux
Predicted heat flux
R2 = 0.989
Roberg-Clark (2022)
N = 8
Mackenbach (2022)
N = 15
Proll (2016)
N = 10
TEM proxy
This work:
N = 100,705
Motivations
Profile prediction
Optimization
Understanding
Optimize geometry for maximum fusion power
Kim (2024)
Mandell (2024)
Regression
Turbulence simulations
Feature importance
True heat flux
Predicted heat flux
R2 = 0.989
Equilibria group 1: random rotating ellipses
Nfp,
aspect ratio,
elongation,
axis torsion,
and beta are all random.
All configurations have same minor radius & toroidal flux, so same gyroBohm normalization
Equilibria group 2: QUASR QA & QH (Giuliani 2024)
Random pressure added for even more diversity
Equilibria group 3: random boundary modes
RBC and ZBS boundary Fourier modes sampled from normal distributions, fit to 44 “real” stellarators
Regression
Turbulence simulations
Feature importance
True heat flux
Predicted heat flux
R2 = 0.989
Nonlinear turbulence simulations were run with GX in every equilibrium
104
Don’t predict the time-dependence,
just the mean
Raw feature space: 7x 1D functions that enter the turbulence simulations
Flux tube simulation domain
Turbulence simulations
Feature importance
Regression
True heat flux
Predicted heat flux
R2 = 0.989
Raw features should not be directly fed to classical regression or fully-connected neural network, since model should be translation-invariant
Convolutional neural networks give accurate prediction of the turbulence
Convolutional layers x5
Fully connected layers x2
z-dependent geometric features
a/LT
a/Ln
Heat flux Q
Actual heat flux Q / QGB from gyrokinetic simulation
Predicted heat flux Q / QGB
R2 = 0.989
by Jong Choi, ORNL
Prediction in 0.001 sec for single network, 0.1 sec for ensemble
Turbulence simulations
Feature importance
Regression
True heat flux
Predicted heat flux
R2 = 0.989
Our interpretable models use a large library of candidate features, all translation-invariant
Spearman correlation is a quick tool to find the most important feature
Heaviside function: Where there is bad curvature,
local temperature gradient in real space (to various powers)
Jacobian (maybe squared)
Extremely similar to Mynick (2010), Xanthopoulos (2014), Stroteich (2022), Goodman (2024)!
|∇T| = (dT/dx) |∇x|
Forward sequential feature selection: ∼3 features can be almost as predictive as all features
Stiffness
Critical gradient
Sequential feature selection allows closer fit to the data as more geometric features are included
Performance shown on 20% held-out test data
Most important features from sequential feature selection
The gradients are more important than any geometric feature
The most important geometric feature is flux surface compression where curvature is bad
The 2nd most important geometric feature involves flux surface compression and radial ∇B drift
Classification (stability vs instability)
Regression on heat flux
Xanthopoulos et al (2011), Nakata & Matsuoka (2022):
Larger geodesic curvature (= radial drift) ⇒ Stronger damping of zonal flows ⇒ higher heat flux
At each step, the top features are variations on a theme
Regression for the random-gradient dataset
Shapley values show the sign and magnitude of each feature’s effect
Decreasing importance
a/LT increases Q
a/Ln decreases Q
Shapley value: contribution to predicted ln(Q)
Most important geometric features:
|∇x| increases Q,
especially near bad curvature
Next geometric features:
Radial drift (geodesic curvature)
increases Q
The first geometric feature can be fine-tuned for even better fit
Fixed-gradient dataset.
No regression model used here.
Feature fine-tuned for stability classifier:
Previously proposed proxies can be tested
Multiple lines of evidence agree that the most important geometric feature is |∇ψ| in regions of bad curvature
There are many extensions possible
Data will be released on Zenodo with the paper, so have a go at it!
Turbulence simulations
Feature importance
Regression
True heat flux
Predicted heat flux
R2 = 0.989
Extra slides
Other machine learning regression methods work also
All using a/LT, a/Ln, and the top 10 geometric features selected via XGBoost
XGBoost regression model with 1 feature
XGBoost fit
Fixed-gradient dataset
XGBoost regression model using only a/LT and a/Ln
Same plot, showing data as dots
XGBoost regression model for fixed gradients using 2 features
Same plot, showing data as dots