Abstract
Nonlinear wave interactions, such as shock refraction at an inclined density interface, in magnetohydrodynamic (MHD) lead to a plethora of wave patterns with myriad wave types. Identification of different types of MHD waves is an important and challenging task in such complex wave patterns. Moreover, owing to the multiplicity of solutions and their admissibility for different systems, especially for intermediate-type MHD shock waves, the identification of MHD wave types is complicated if one solely relies on the Rankine-Hugoniot jump conditions. MHD wave detection is further exacerbated by the unphysical smearing of discontinuous shock waves in numerical simulations. We present two MHD wave detection methods based on a convolutional neural network (CNN) which enables the classification of waves and identification of their locations. The first method separates the output into a regression (location prediction) and a classification problem assuming the number of waves for each training data is fixed. In the second method, the number of waves is not specified a priori and the algorithm, using only regression, predicts the waves' locations and classifies their types. The first fixed output model efficiently provides high precision and recall, the accuracy of the entire neural network achieved is up to 0.99, and the classification accuracy of some waves approaches unity. The second detection model has relatively lower performance, with more sensitivity to the setting of parameters, such as the number of grid cells $N_{grid}$ and the thresholds of confidence score and class probability, etc. The proposed two methods demonstrate very strong potential to be applied for MHD wave detection in some complex wave structures and interactions.
Introduction
In the study of high-speed gases and plasmas—specifically magnetohydrodynamics (MHD)—waves are incredibly complex. When a shock wave hits a boundary between different densities, it refracts into a variety of different wave types: fast and slow shocks, expansion fans, and contact discontinuities. Traditionally, scientists identify these waves using the Rankine-Hugoniot jump conditions. However, this is notoriously difficult due to the multiplicity of mathematical solutions, the "smearing" of sharp discontinuities in numerical simulations, and the sheer complexity of interacting waves in 2D and 3D flows.
Methods
The researchers developed two distinct Convolutional Neural Network (CNN) architectures to automate wave detection using 1D input data (density, pressure, velocity, and magnetic fields):
- Fixed Output Model: This model assumes a known number of waves per sample. It employs regression to locate waves and classification to determine their types.
- Detection Model (YOLO-inspired): This more flexible model does not require a fixed number of waves. It divides the 1D input into a grid ($N_{grid}$), where each cell predicts wave "bounding boxes," confidence scores, and class probabilities.
Both models utilize a standard deep learning stack: three layers of 1D convolutions and max-pooling followed by fully connected layers.
Datasets and Training
The models were trained on a combination of hydrodynamic shock tube data and 1D slices extracted from complex 2D MHD simulations. These simulations provided ground truth labels for seven MHD wave classes, including fast/slow shocks and rotational discontinuities. Each training sample included the wave class and spatial bounds ($s_1, s_2$) defining the wave's location.
Key Results
The Fixed Output Model demonstrated exceptional performance, achieving an overall accuracy of 0.99. Classification accuracy for certain wave types approached unity, and the model maintained high precision and recall (F1 score > 0.95), indicating a low rate of false positives and missed detections. The models proved particularly robust against numerical smearing, learning the underlying patterns of waves rather than relying on sharp gradients. Training was highly efficient, with accuracy reaching its peak within approximately 30-40 epochs.
Conclusion and Future Work
Treating fluid discontinuities as objects for detection represents a significant shift from traditional algebraic methods. While highly successful, the models face challenges when waves are extremely close together—such as near a "triple point" where multiple shocks meet—due to overlapping numerical smears. Future research will focus on improving the YOLO-style detection model's sensitivity to hyperparameters and developing methods to directly reconstruct continuous 2D wave fronts from 1D detections.
Summary updated