Hostname: page-component-74656f9884-8r8nv Total loading time: 0 Render date: 2026-11-08T08:57:49.881Z Has data issue: false hasContentIssue false

Database-wide hazard modelling of the onset of DIII-D tearing modes with field features

Published online by Cambridge University Press:  17 October 2022

K.E.J. Olofsson*
Affiliation:
General Atomics, San Diego, CA, USA
C. Akçay
Affiliation:
General Atomics, San Diego, CA, USA
B.S. Sammuli
Affiliation:
General Atomics, San Diego, CA, USA
*
†Email address for correspondence: olofsson@fusion.gat.com
Rights & Permissions [Opens in a new window]

Abstract

The rate of onset (hazard) of tearing modes is modelled probabilistically using statistical learning algorithms. Axisymmetric energy-density equilibrium fields are taken as raw high-dimensional input features which are reduced with principal component analysis. Signal processing of non-axisymmetric magnetics fluctuation array data provides the target information from which to learn. Model selection, visualization and calibration assessment procedures are detailed. The analysis is deployed at large scale across the DIII-D tokamak database. Standard model selection criteria suggest that the energy-density post-processed feature is a better choice for modelling the onset rate compared to the non-processed equilibrium reconstruction solution. Two example applications of the learned rate function are demonstrated: (i) proximity-to-onset discharge monitoring and (ii) database analysis showing an (expected) observational global trend that the general hazard increases as a plasma performance metric increases. An important connection between the hazard function and its use as a conditional probability generator is reviewed in the Appendix.

Information

Type
Research Article
Copyright
Copyright © The Author(s), 2022. Published by Cambridge University Press
Figure 0

Figure 1. Example application of the RM (even/odd refers to poloidal mode number $m$) and LM event detector codes to magnetic signals. (a) DIII-D shot which exhibits an $n=1$ mode that grows while rotating, then eventually locks. The RM detector catches the mode around $t=2.73\,\mathrm {s}$, and the LM detector catches it around $t=3.55\,\mathrm {s}$. The LM amplitude signal shoots up just as the RM amplitude signal disappears (mode locking). The respective detection levels are shown as dotted horizontal lines. The event detections are shown as dashed vertical lines. The RM odd trace and the LM external trace are intentionally ignored by the detectors. In a shot, the RM odd trace (green) presumably shows a sawtooth crash just before the growth of the RM even signature (blue). (b) More sustained ‘odd’ trace sawtooth activity and a rapidly growing mode emerging on the ‘even’ trace (later LM signal not shown). The same reference levels as in panel (a) are shown by the horizontal dashed lines.

Figure 1

Figure 2. Number of events caught across the database for the four different branches of $n=1$ amplitude traces. The RM analysis code provides ‘even’ and ‘odd’ traces, of which the odd trace mainly captures sawtooth activity at low amplitude, which is ignored. The LM code produces ‘internal’ and ‘external’ amplitude traces. Both these traces are computed in two different ways: uncompensated and DC compensated (meaning that active coil currents were explicitly fetched and known couplings were subtracted).

Figure 2

Figure 3. Continuous-time Markov model with two absorbing states: RM and LM. The respective jump rates from the pre-event flat-top state are $h_1$ and $h_2$. The hazard function in this work directly models the sum of these jump rates: $h = h_1 + h_2$. With the sum-total $h$ as the learning objective, the data from each shot should be prepared up to the occurrence of either the RM or LM event, whichever comes first, or in the case of no event, cut off at the end of the discharge flat-top.

Figure 3

Figure 4. Database-wide pair of mean energy-based features. (a) Toroidal mean feature $\langle \boldsymbol {x} \rangle$, where $\boldsymbol {x}$ is the toroidal term $f_{\mathrm {tor}}$ of $(1/2)\boldsymbol {J}\boldsymbol {\cdot }\boldsymbol {A}$. (b) Mean feature when instead, $\boldsymbol {x}$ is the poloidal term $f_{\mathrm {pol}}$ of $(1/2)\boldsymbol {J}\boldsymbol {\cdot }\boldsymbol {A}$. Approximately $2.5$ million equilibrium reconstructions were used in the analysis, accrued from $17\,000$ different DIII-D plasma discharges.

Figure 4

Figure 5. Scatter plot of the pre-event flat-top averages of the circuit self-inductances defined by (3.10) and (3.11). The set of discharges is partitioned into three sets: those where there was no onset event anywhere (green), those that have an RM onset (blue) and those that have an LM onset (red). The correlation coefficient between $L_{\mathrm {tor}}$ ($L_{\mathrm {pol}}$) and $\ell _i$ ($\beta _p$) is $0.76$ ($0.65$) for this dataset. The TM onset events are distributed across this average operating space, with only small differences. The mean for each set is marked by a coloured square. The cross-hairs through each mean marker shows the quantile range $(0.10, 0.90)$ for the marginal distributions associated with each set.

Figure 5

Figure 6. Database-wide PCA basis vectors. The top row shows the first eight orthonormal vectors for the toroidal feature. The bottom row shows the first eight orthonormal vectors for the poloidal feature. The first vector in both rows is largely (anti-)parallel to the respective mean feature (cosine similarities $-0.99$ and $-0.98$). The colour-scale is adapted to each thumbnail independently. The basis vectors are the columns of the matrix (3.2) for the respective feature (toroidal and poloidal).

Figure 6

Figure 7. Model selection based on (a) heuristic PCA truncation and (b) optimization of either $\mathcal {L}_1 + \mathcal {L}_2$ (green trace) or $\mathcal {L}_1 + \mathcal {L}_2+ \mathcal {L}_3$ (blue trace). The horizontal axis in panel (a) is the retained number of components. The horizontal axis in panel (b) is $\log _{10}\theta$, where $\theta$ is the overall strength of the prior term. The optimum $\theta$ is the respective maximizer of the traces. Notice that here, the selected PCA truncation is far into the region which contains only very small contributions to the overall data variance.

Figure 7

Figure 8. (a) Visualization of three random prior draws of the PCLLR $\boldsymbol {\beta }$ parameter using the smoothness enforcing covariance (4.10). (b) Visualization of the estimated PCLLR model in physical space, using the prior shown in panel (a). The inner product of the weight fields in panel (b) with the pair of features for a plasma time-slice (4.8), plus an intercept term, yields the PCLLR model log-odds output, as defined by (4.1).

Figure 8

Table 1. Comparison of average negative log-likelihood loss function values for a set of GBMs configured by increasing tree depth level. The loss function values should be seen in relation to the PCLLR model, and the improvement obtained with the GBM compared to the PCLLR can be put in context by the difference between the constant model and the PCLLR model.

Figure 9

Figure 9. (a) Histogram counts of the database samples sorted along the output of the PCLLR model. (b) Ratio of the event count divided by the dwell count. This ratio is supposed to be as close as possible to the ideal relationship shown by the black solid line. The PCLLR model calibration is assessed by sampling its posterior parameter and regenerating many histograms. The distribution of the calibrations are shown in the plot: the upper and lower bounding lines represent quantiles $0.95$ and $0.05$, respectively.

Figure 10

Figure 10. (a) Histogram counts of the database samples sorted along the output of a GBM model with maximum tree depth $3$. (b) Ratio of the event count divided by the dwell count. This ratio is supposed to be as close as possible to the ideal relationship shown by the black solid line. The GBM model calibration is assessed by $8$-fold splits of the dataset with inner cross-validation. The distribution of the calibrations are shown in the plot. Here the upper and lower bounding lines represent the $0.95$ and $0.05$ quantiles, respectively, from the spread across the test set predictions.

Figure 11

Figure 11. Comparison of different sets of field features using a basic PCLLR model selection framework. The dashed lines (with angled cross-markers) show the MAP score and the solid lines (with straight cross-markers) show the EVDN score for each respective feature set. The bottom traces are obtained by randomly shuffling the target labels so that there should be no information about the target in the (any) feature. The indicator feature (‘$\boldsymbol {J}$ support’, see main text) provides some fitting power, but much less so than for the $(J_{\phi }, \delta B_{\phi })$ and $(f_{{\rm tor}}, f_{{\rm pol}})$ features. The highest evidence scores are obtained with the $\boldsymbol {J}\boldsymbol {\cdot }\boldsymbol {A}$ based field feature. It is also seen that a PCA cutoff at $n\sim 50$ is suggested by the MAP score, whereas the EVDN score flattens out at a higher cutoff $n\sim 75$.

Figure 12

Figure 12. Example time-traces of the hazard ratio $H$ (5.1). Here, $H(t)=1$ means that the instantaneous TM onset rate is deemed to be $h(t)\approx 0.10\,\mathrm {s}^{-1}$. (a,b) Time-traces corresponding to the respective panels in figure 1. In both these cases, a sustained elevated hazard ratio is predicted well before the actual events happen (RM onsets in both cases). The (terminating) dashed vertical line in panel (a) corresponds to the RM signal detection at the $4.0\,\mathrm {G}$ threshold in figure 1(a). Similarly the terminating dashed vertical line in panel (b) corresponds to the RM signal detection in figure 1(b). Both of these discharges eventually develop LMs.

Figure 13

Figure 13. Example time-traces of the hazard ratio $H$ (5.1). In contrast to the discharges shown in figure 12, these two discharges did not experience any detected ($|n|=1$) TM event throughout. The discharge in panel (a) is of a type known to have many disruptive TM events. The discharge in panel (b) is low-powered and is rated as very TM stable by the hazard ratio predictions. The discharge in panel (a) has significant sawtooth activity (odd RM trace signal) starting around $t\approx 2.0\,\mathrm {s}$ and it does experience a $|n|=2$ TM onset (rotating) at $t\approx 2.4\,\mathrm {s}$.

Figure 14

Figure 14. Flat-top average plasma performance is shown on the vertical axis. The negative logarithm of the flat-top average (green markers) hazard ratio prediction is shown on the horizontal axis. The mean and quartile range for thin vertical slices of the scattered data (for green markers) are marked by the blue line segments. The most desirable operating point is the upper-right region, with high performance and low modelled rate of tearing onset events. Even in this simple plot (see text for discussion), an intuitive database-wide trend can be observed; higher performing shots tend to have higher rates of TM onset. Actual TM events are shown as red markers at the hazard ratio value, at the time of the event.