Cihan Akcay
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Research Subjects
Cihan Akcay has a total of 58 co-authors. Here are the top co-authors by number of shared publications:
- Joseph McClenaghan
General Atomics, PO Box 85608, San Diego, CA 92186-5608, United States of America
5 shared publications - Lang L. Lao
General Atomics 2 , P.O. Box 85608, San Diego, California 92186-5608, USA
5 shared publications - Xuan Sun
General Atomics, San Diego, CA 92121, United States of America
5 shared publications - Scott E. Kruger
Tech-X Corp., Boulder, CO (United States)
4 shared publications - K Erik J Olofsson
General Atomics
3 shared publications - Sandeep Madireddy
Argonne National Laboratory, Lemont, Illinois, USA
3 shared publications
Latest Publications
- 3 June 2025
- Published by IOP Publishing in Plasma Physics and Controlled Fusion
- Vol. 67 (6)
Large-scale tearing-mode hazard function analysis with standard matched equilibrium reconstructions
The association between features from standard tokamak equilibrium reconstructions and the onset of n=1 tearing modes (TMs) is analyzed at scale. The TM onset rate is directly modeled with a "hazard" function which gives the expected number of onsets (per unit time spent) in a given equilibrium parameter region. In particular the different statistical modeling performance achieved for magnetics-only reconstructions and motional Stark effect (MSE) enhanced reconstructions is studied. It is observed that a better hazard model for the TM onset rate can be built with the MSE-enhanced equilibria compared to the matched magnetics-only situation. This advantage disappears if internal profile details are withheld from the matched analysis. Plausibility of the hazard function is further demonstrated with visualizations of global trends in the operational space, and time-traces from specific tokamak discharges. TMs typically degrade tokamak plasma performance and may lead to plasma termination, motivating this statistical study.
- 3 June 2025
- Published by IOP Publishing in Plasma Physics and Controlled Fusion
- Vol. 67 (6)
Large-scale tearing-mode hazard function analysis with standard matched equilibrium reconstructions
The association between features from standard tokamak equilibrium reconstructions and the onset of n=1 tearing modes (TMs) is analyzed at scale. The TM onset rate is directly modeled with a "hazard" function which gives the expected number of onsets (per unit time spent) in a given equilibrium parameter region. In particular the different statistical modeling performance achieved for magnetics-only reconstructions and motional Stark effect (MSE) enhanced reconstructions is studied. It is observed that a better hazard model for the TM onset rate can be built with the MSE-enhanced equilibria compared to the matched magnetics-only situation. This advantage disappears if internal profile details are withheld from the matched analysis. Plausibility of the hazard function is further demonstrated with visualizations of global trends in the operational space, and time-traces from specific tokamak discharges. TMs typically degrade tokamak plasma performance and may lead to plasma termination, motivating this statistical study.
- 22 April 2025
- Published by IOP Publishing in Plasma Physics and Controlled Fusion
- Vol. 67 (5) , 055014
Simultaneous kinetic profile and magnetic equilibrium inference with Bayesian integrated data analysis in preparation for ITER
Accurate plasma state reconstruction will be crucial for the success of ITER and future fusion plants, but the harsh conditions of a burning plasma will make diagnostic operation more challenging than in current machines. Integrated data analysis (IDA) based on Bayesian inference allows for improved information gain by combining the analysis of many diagnostics into a single step using sophisticated forward models. It also provides a framework to seamlessly combine predictive modeling and data, which can be invaluable in a data-poor environment. As a step towards IDA at scale, we present a new, fast integrated analysis framework that allows for the simultaneous reconstruction of the kinetic profiles and the magnetic equilibrium with uncertainties included. This analysis framework allows for the systematic evaluation of models using extensive experimental data leveraging DOE supercomputing infrastructure, such as being developed through the DOE-Advanced Scientific Computing Research integrated research infrastructure (Smith, XLOOP). To test the performance and verify the code it was applied to an ITER-like scenario using a realistic machine geometry and diagnostic description. Using artificial data for magnetics, Thomson scattering, interferometry, and polarimetry generated from a known ground truth, the coupled equilibrium and kinetic profile reconstruction problem was solved via the Maximum a posteriori method in approximately three minutes on a multicore CPU including uncertainty quantification. The resulting equilibrium and kinetic profiles were found to be in reasonable agreement with the ground truth.
- 22 April 2025
- Published by IOP Publishing in Plasma Physics and Controlled Fusion
- Vol. 67 (5) , 055014
Simultaneous kinetic profile and magnetic equilibrium inference with Bayesian integrated data analysis in preparation for ITER
Accurate plasma state reconstruction will be crucial for the success of ITER and future fusion plants, but the harsh conditions of a burning plasma will make diagnostic operation more challenging than in current machines. Integrated data analysis (IDA) based on Bayesian inference allows for improved information gain by combining the analysis of many diagnostics into a single step using sophisticated forward models. It also provides a framework to seamlessly combine predictive modeling and data, which can be invaluable in a data-poor environment. As a step towards IDA at scale, we present a new, fast integrated analysis framework that allows for the simultaneous reconstruction of the kinetic profiles and the magnetic equilibrium with uncertainties included. This analysis framework allows for the systematic evaluation of models using extensive experimental data leveraging DOE supercomputing infrastructure, such as being developed through the DOE-Advanced Scientific Computing Research integrated research infrastructure (Smith, XLOOP). To test the performance and verify the code it was applied to an ITER-like scenario using a realistic machine geometry and diagnostic description. Using artificial data for magnetics, Thomson scattering, interferometry, and polarimetry generated from a known ground truth, the coupled equilibrium and kinetic profile reconstruction problem was solved via the Maximum a posteriori method in approximately three minutes on a multicore CPU including uncertainty quantification. The resulting equilibrium and kinetic profiles were found to be in reasonable agreement with the ground truth.
- Open Access
- 1 September 2024
- Published by AIP Publishing in Physics of Plasmas
- Vol. 31 (9)
EFIT-Prime: Probabilistic and physics-constrained reduced-order neural network model for equilibrium reconstruction in DIII-D
We introduce EFIT-Prime, a novel machine learning surrogate model for EFIT (Equilibrium FIT) that integrates probabilistic and physics-informed methodologies to overcome typical limitations associated with deterministic and ad hoc neural network architectures. EFIT-Prime utilizes a neural architecture search-based deep ensemble for robust uncertainty quantification, providing scalable and efficient neural architectures that comprehensively quantify both data and model uncertainties. Physically informed by the Grad–Shafranov equation, EFIT-Prime applies a constraint on the current density Jtor and a smoothness constraint on the first derivative of the poloidal flux, ensuring physically plausible solutions. Furthermore, the spatial location of the diagnostics is explicitly incorporated in the inputs to account for their spatial correlation. Extensive evaluations demonstrate EFIT-Prime's accuracy and robustness across diverse scenarios, most notably showing good generalization on negative-triangularity discharges that were excluded from training. Timing studies indicate an ensemble inference time of 15 ms for predicting a new equilibrium, offering the possibility of plasma control in real-time, if the model is optimized for speed.
- 1 September 2024
- Published by AIP Publishing in Physics of Plasmas
- Vol. 31 (9)
Open AccessEFIT-Prime: Probabilistic and physics-constrained reduced-order neural network model for equilibrium reconstruction in DIII-D
We introduce EFIT-Prime, a novel machine learning surrogate model for EFIT (Equilibrium FIT) that integrates probabilistic and physics-informed methodologies to overcome typical limitations associated with deterministic and ad hoc neural network architectures. EFIT-Prime utilizes a neural architecture search-based deep ensemble for robust uncertainty quantification, providing scalable and efficient neural architectures that comprehensively quantify both data and model uncertainties. Physically informed by the Grad–Shafranov equation, EFIT-Prime applies a constraint on the current density Jtor and a smoothness constraint on the first derivative of the poloidal flux, ensuring physically plausible solutions. Furthermore, the spatial location of the diagnostics is explicitly incorporated in the inputs to account for their spatial correlation. Extensive evaluations demonstrate EFIT-Prime's accuracy and robustness across diverse scenarios, most notably showing good generalization on negative-triangularity discharges that were excluded from training. Timing studies indicate an ensemble inference time of 15 ms for predicting a new equilibrium, offering the possibility of plasma control in real-time, if the model is optimized for speed.
- Open Access
- 1 August 2024
- Published by AIP Publishing in Physics of Plasmas
- Vol. 31 (8)
Augmenting machine learning of Grad–Shafranov equilibrium reconstruction with Green's functions
This work presents a method for predicting plasma equilibria in tokamak fusion experiments and reactors. The approach involves representing the plasma current as a linear combination of basis functions using principal component analysis of plasma toroidal current densities (Jt) from the EFIT-AI equilibrium database. Then utilizing EFIT's Green's function tables, basis functions are created for the poloidal flux (ψ) and diagnostics generated from the toroidal current (Jt). Similar to the idea of a physics-informed neural network (NN), this physically enforces consistency between ψ, Jt, and the synthetic diagnostics. First, the predictive capability of a least squares technique to minimize the error on the synthetic diagnostics is employed. The results show that the method achieves high accuracy in predicting ψ and moderate accuracy in predicting Jt with median R2 = 0.9993 and R2 = 0.978, respectively. A comprehensive NN using a network architecture search is also employed to predict the coefficients of the basis functions. The NN demonstrates significantly better performance compared to the least squares method with median R2 = 0.9997 and 0.9916 for Jt and ψ, respectively. The robustness of the method is evaluated by handling missing or incorrect data through the least squares filling of missing data, which shows that the NN prediction remains strong even with a reduced number of diagnostics. Additionally, the method is tested on plasmas outside of the training range showing reasonable results.
- 1 August 2024
- Published by AIP Publishing in Physics of Plasmas
- Vol. 31 (8)
Open AccessAugmenting machine learning of Grad–Shafranov equilibrium reconstruction with Green's functions
This work presents a method for predicting plasma equilibria in tokamak fusion experiments and reactors. The approach involves representing the plasma current as a linear combination of basis functions using principal component analysis of plasma toroidal current densities (Jt) from the EFIT-AI equilibrium database. Then utilizing EFIT's Green's function tables, basis functions are created for the poloidal flux (ψ) and diagnostics generated from the toroidal current (Jt). Similar to the idea of a physics-informed neural network (NN), this physically enforces consistency between ψ, Jt, and the synthetic diagnostics. First, the predictive capability of a least squares technique to minimize the error on the synthetic diagnostics is employed. The results show that the method achieves high accuracy in predicting ψ and moderate accuracy in predicting Jt with median R2 = 0.9993 and R2 = 0.978, respectively. A comprehensive NN using a network architecture search is also employed to predict the coefficients of the basis functions. The NN demonstrates significantly better performance compared to the least squares method with median R2 = 0.9997 and 0.9916 for Jt and ψ, respectively. The robustness of the method is evaluated by handling missing or incorrect data through the least squares filling of missing data, which shows that the NN prediction remains strong even with a reduced number of diagnostics. Additionally, the method is tested on plasmas outside of the training range showing reasonable results.
- Open Access
- 15 July 2024
- Published by IOP Publishing in Nuclear Fusion
- Vol. 64 (8) , 086065
Impact of various DIII-D diagnostics on the accuracy of neural network surrogates for kinetic EFIT reconstructions
Kinetic equilibrium reconstructions make use of profile information such as particle density and temperature measurements in addition to magnetics data to compute a self-consistent equilibrium. They are used in a multitude of physics-based modeling. This work develops a multi-layer perceptron (MLP) neural network (NN) model as a surrogate for kinetic Equilibrium Fitting (EFITs) and trains on the 2019 DIII-D discharge campaign database of kinetic equilibrium reconstructions. We investigate the impact of including various diagnostic data and machine actuator controls as input into the NN. When giving various categories of data as input into NN models that have been trained using those same categories of data, the predictions on multiple equilibrium reconstruction solutions (poloidal magnetic flux, global scalars, pressure profile, current profile) are highly accurate. When comparing different models with different diagnostics as input, the magnetics-only model outputs accurate kinetic profiles and the inclusion of additional data does not significantly impact the accuracy. When the NN is tasked with inferring only a single target such as the EFIT pressure profile or EFIT current profile, we see a large increase in the accuracy of the prediction of the kinetic profiles as more data is included. These results indicate that certain MLP NN configurations can be reasonably robust to different burning-plasma-relevant diagnostics depending on the accuracy requirements for equilibrium reconstruction tasks.
- 15 July 2024
- Published by IOP Publishing in Nuclear Fusion
- Vol. 64 (8) , 086065
Open AccessImpact of various DIII-D diagnostics on the accuracy of neural network surrogates for kinetic EFIT reconstructions
Kinetic equilibrium reconstructions make use of profile information such as particle density and temperature measurements in addition to magnetics data to compute a self-consistent equilibrium. They are used in a multitude of physics-based modeling. This work develops a multi-layer perceptron (MLP) neural network (NN) model as a surrogate for kinetic Equilibrium Fitting (EFITs) and trains on the 2019 DIII-D discharge campaign database of kinetic equilibrium reconstructions. We investigate the impact of including various diagnostic data and machine actuator controls as input into the NN. When giving various categories of data as input into NN models that have been trained using those same categories of data, the predictions on multiple equilibrium reconstruction solutions (poloidal magnetic flux, global scalars, pressure profile, current profile) are highly accurate. When comparing different models with different diagnostics as input, the magnetics-only model outputs accurate kinetic profiles and the inclusion of additional data does not significantly impact the accuracy. When the NN is tasked with inferring only a single target such as the EFIT pressure profile or EFIT current profile, we see a large increase in the accuracy of the prediction of the kinetic profiles as more data is included. These results indicate that certain MLP NN configurations can be reasonably robust to different burning-plasma-relevant diagnostics depending on the accuracy requirements for equilibrium reconstruction tasks.
- Open Access
- 1 May 2024
- Published by AIP Publishing in Physics of Plasmas
- Vol. 31 (5)
Thinking Bayesian for plasma physicists
Bayesian statistics offers a powerful technique for plasma physicists to infer knowledge from the heterogeneous data types encountered. To explain this power, a simple example, Gaussian Process Regression, and the application of Bayesian statistics to inverse problems are explained. The likelihood is the key distribution because it contains the data model, or theoretic predictions, of the desired quantities. By using prior knowledge, the distribution of the inferred quantities of interest based on the data given can be inferred. Because it is a distribution of inferred quantities given the data and not a single prediction, uncertainty quantification is a natural consequence of Bayesian statistics. The benefits of machine learning in developing surrogate models for solving inverse problems are discussed, as well as progress in quantitatively understanding the errors that such a model introduces.
- 1 May 2024
- Published by AIP Publishing in Physics of Plasmas
- Vol. 31 (5)
Open AccessThinking Bayesian for plasma physicists
Bayesian statistics offers a powerful technique for plasma physicists to infer knowledge from the heterogeneous data types encountered. To explain this power, a simple example, Gaussian Process Regression, and the application of Bayesian statistics to inverse problems are explained. The likelihood is the key distribution because it contains the data model, or theoretic predictions, of the desired quantities. By using prior knowledge, the distribution of the inferred quantities of interest based on the data given can be inferred. Because it is a distribution of inferred quantities given the data and not a single prediction, uncertainty quantification is a natural consequence of Bayesian statistics. The benefits of machine learning in developing surrogate models for solving inverse problems are discussed, as well as progress in quantitatively understanding the errors that such a model introduces.
- Open Access
- 1 March 2024
- Published by AIP Publishing in Physics of Plasmas
- Vol. 31 (3)
Probabilistic locked mode predictor in the presence of a resistive wall and finite island saturation in tokamaks
We present a framework for estimating the probability of locking to an error field in a rotating tokamak plasma. This leverages machine learning methods trained on data from a mode-locking model, including an error field, resistive magnetohydrodynamics modeling of the plasma, a resistive wall, and an external vacuum region, leading to a fifth-order ordinary differential equation (ODE) system. It is an extension of the model without a resistive wall introduced by Akçay et al. [Phys. Plasmas 28, 082106 (2021)]. Tearing mode saturation by a finite island width is also modeled. We vary three pairs of control parameters in our studies: the momentum source plus either the error field, the tearing stability index, or the island saturation term. The order parameters are the time-asymptotic values of the five ODE variables. Normalization of them reduces the system to 2D and facilitates the classification into locked (L) or unlocked (U) states, as illustrated by Akçay et al., [Phys. Plasmas 28, 082106 (2021)]. This classification splits the control space into three regions: L̂, with only L states; Û, with only U states; and a hysteresis (hysteretic) region Ĥ, with both L and U states. In regions L̂ and Û, the cubic equation of torque balance yields one real root. Region Ĥ has three roots, allowing bifurcations between the L and U states. The classification of the ODE solutions into L/U is used to estimate the locking probability, conditional on the pair of the control parameters, using a neural network. We also explore estimating the locking probability for a sparse dataset, using a transfer learning method based on a dense model dataset.
- 1 March 2024
- Published by AIP Publishing in Physics of Plasmas
- Vol. 31 (3)
Open AccessProbabilistic locked mode predictor in the presence of a resistive wall and finite island saturation in tokamaks
We present a framework for estimating the probability of locking to an error field in a rotating tokamak plasma. This leverages machine learning methods trained on data from a mode-locking model, including an error field, resistive magnetohydrodynamics modeling of the plasma, a resistive wall, and an external vacuum region, leading to a fifth-order ordinary differential equation (ODE) system. It is an extension of the model without a resistive wall introduced by Akçay et al. [Phys. Plasmas 28, 082106 (2021)]. Tearing mode saturation by a finite island width is also modeled. We vary three pairs of control parameters in our studies: the momentum source plus either the error field, the tearing stability index, or the island saturation term. The order parameters are the time-asymptotic values of the five ODE variables. Normalization of them reduces the system to 2D and facilitates the classification into locked (L) or unlocked (U) states, as illustrated by Akçay et al., [Phys. Plasmas 28, 082106 (2021)]. This classification splits the control space into three regions: L̂, with only L states; Û, with only U states; and a hysteresis (hysteretic) region Ĥ, with both L and U states. In regions L̂ and Û, the cubic equation of torque balance yields one real root. Region Ĥ has three roots, allowing bifurcations between the L and U states. The classification of the ODE solutions into L/U is used to estimate the locking probability, conditional on the pair of the control parameters, using a neural network. We also explore estimating the locking probability for a sparse dataset, using a transfer learning method based on a dense model dataset.
- Open Access
- 9 May 2023
- Published by IOP Publishing in Nuclear Fusion
- Vol. 63 (6) , 066029
MHD modeling of shattered pellet injection in JET
Nonlinear 3D MHD simulations of shattered-pellet injection (SPI) in JET show prototypical SPI-driven disruptions using the M3D-C1 and NIMROD extended-MHD codes. Initially, radiation-driven thermal quenches are accelerated by MHD activity as the pellet crosses rational surfaces, leading to a radiation spike, global stochasticization of the magnetic field, and a complete thermal quench. Eventually, current quenches, preceded by a current spike are seen as the Ohmic heating becomes equal to the radiative cooling. The results are qualitatively similar for both a single monolithic pellet, pencil-beam model, and a realistic shatter to represent the SPI plume. A scan in viscosity from 500 to 2000 m2 s−1 for MHD simulations finds that reducing viscosity increases MHD activity and decreases thermal quench time slightly. A realistic cloud of fragments modeling shows that mixed-D–Ne pellet travels deeper into the plasma core before the thermal quench. At the slow pellet speeds, the pellet is found to be moving slowly enough inward that even the 5% neon in the mixed pellet is enough to effectively radiate the thermal energy available. Radiation toroidal peaking is predicted to be at levels consistent with experimental observations and reduced as the pellet travels deeper into the plasma. These simulations lay the ground work for more-sophisticated validative and predictive modeling of SPI in JET using both M3D-C1 and NIMROD.
- 9 May 2023
- Published by IOP Publishing in Nuclear Fusion
- Vol. 63 (6) , 066029
Open AccessMHD modeling of shattered pellet injection in JET
Nonlinear 3D MHD simulations of shattered-pellet injection (SPI) in JET show prototypical SPI-driven disruptions using the M3D-C1 and NIMROD extended-MHD codes. Initially, radiation-driven thermal quenches are accelerated by MHD activity as the pellet crosses rational surfaces, leading to a radiation spike, global stochasticization of the magnetic field, and a complete thermal quench. Eventually, current quenches, preceded by a current spike are seen as the Ohmic heating becomes equal to the radiative cooling. The results are qualitatively similar for both a single monolithic pellet, pencil-beam model, and a realistic shatter to represent the SPI plume. A scan in viscosity from 500 to 2000 m2 s−1 for MHD simulations finds that reducing viscosity increases MHD activity and decreases thermal quench time slightly. A realistic cloud of fragments modeling shows that mixed-D–Ne pellet travels deeper into the plasma core before the thermal quench. At the slow pellet speeds, the pellet is found to be moving slowly enough inward that even the 5% neon in the mixed pellet is enough to effectively radiate the thermal energy available. Radiation toroidal peaking is predicted to be at levels consistent with experimental observations and reduced as the pellet travels deeper into the plasma. These simulations lay the ground work for more-sophisticated validative and predictive modeling of SPI in JET using both M3D-C1 and NIMROD.
- 17 October 2022
- Published by Cambridge University Press (CUP) in Journal of Plasma Physics
- Vol. 88 (5) , 895880503
Database-wide hazard modelling of the onset of DIII-D tearing modes with field features
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.
- 17 October 2022
- Published by Cambridge University Press (CUP) in Journal of Plasma Physics
- Vol. 88 (5) , 895880503
Database-wide hazard modelling of the onset of DIII-D tearing modes with field features
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.
- 1 August 2021
- Published by AIP Publishing in Physics of Plasmas
- Vol. 28 (8) , 082106
Machine learning methods for probabilistic locked-mode predictors in tokamak plasmas
A rotating tokamak plasma can interact resonantly with the external helical magnetic perturbations, also known as error fields. This can lead to locking and then to disruptions. We leverage machine learning (ML) methods to predict the locking events. We use a coupled third-order nonlinear ordinary differential equation model to represent the interaction of the magnetic perturbation and the plasma rotation with the error field. This model is sufficient to describe qualitatively the locking and unlocking bifurcations. We explore using ML algorithms with the simulation data and experimental data, focusing on the methods that can be used with sparse datasets. These methods lead to the possibility of the avoidance of locking in real-time operations. We describe the operational space in terms of two control parameters: the magnitude of the error field and the rotation frequency associated with the momentum source that maintains the plasma rotation. The outcomes are quantified by order parameters that completely characterize the state, whether locked or unlocked. We use unsupervised ML methods to classify locked/unlocked states and note the usefulness of a certain normalization of the order parameters. Three supervised ML classifiers are used in suite to estimate the probability of locking in the region of control parameter space with hysteresis, i.e., the set of control parameters for which both locked and unlocked states can exist. The results show that a neural network gives the best estimate of the locking probability. An analogy of the present locking model with the van der Waals equation of state is also provided.
- 1 August 2021
- Published by AIP Publishing in Physics of Plasmas
- Vol. 28 (8) , 082106
Machine learning methods for probabilistic locked-mode predictors in tokamak plasmas
A rotating tokamak plasma can interact resonantly with the external helical magnetic perturbations, also known as error fields. This can lead to locking and then to disruptions. We leverage machine learning (ML) methods to predict the locking events. We use a coupled third-order nonlinear ordinary differential equation model to represent the interaction of the magnetic perturbation and the plasma rotation with the error field. This model is sufficient to describe qualitatively the locking and unlocking bifurcations. We explore using ML algorithms with the simulation data and experimental data, focusing on the methods that can be used with sparse datasets. These methods lead to the possibility of the avoidance of locking in real-time operations. We describe the operational space in terms of two control parameters: the magnitude of the error field and the rotation frequency associated with the momentum source that maintains the plasma rotation. The outcomes are quantified by order parameters that completely characterize the state, whether locked or unlocked. We use unsupervised ML methods to classify locked/unlocked states and note the usefulness of a certain normalization of the order parameters. Three supervised ML classifiers are used in suite to estimate the probability of locking in the region of control parameter space with hysteresis, i.e., the set of control parameters for which both locked and unlocked states can exist. The results show that a neural network gives the best estimate of the locking probability. An analogy of the present locking model with the van der Waals equation of state is also provided.