Real-Time Surrogate Modeling for Fast Transient Prediction in Inverter-Based Microgrids Using CNN and LightGBM
Organizations: Department of Electrical and Computer Engineering, The University of Tulsa, Tulsa, OK 74104, USA
Abstract
Real-time monitoring of inverter-based microgrids is essential for stability, fault response, and operational decision-making. However, electromagnetic transient (EMT) simulations, required to capture fast inverter dynamics, are computationally intensive and unsuitable for real-time applications. This paper presents a data-driven surrogate modeling framework for fast prediction of microgrid behavior using convolutional neural networks (CNN) and Light Gradient Boosting Machine (LightGBM). The models are trained on a high-fidelity EMT digital twin dataset of a microgrid with ten distributed generators under eleven operating and disturbance scenarios, including faults, noise, and communication delays. A sliding-window method is applied to predict important system variables, including voltage magnitude, frequency, total active power, and voltage dip. The results show that model performance changes depending on the type of variable being predicted. The CNN demonstrates high accuracy for time-dependent signals such as voltage, with an value of 0.84, whereas LightGBM shows better performance for structured and disturbance-related variables, achieving an of 0.999 for frequency and 0.75 for voltage dip. A combined CNN+LightGBM model delivers stable performance across all variables. Beyond accuracy, the surrogate models also provide major improvements in computational efficiency. LightGBM achieves more than speedup and runs faster than real time, while the hybrid model achieves over speedup with near real-time performance. These findings show that data-driven surrogate models can effectively represent microgrid dynamics. They also support real-time and faster-than-real-time predictions. As a result, they are well-suited for applications such as monitoring, fault analysis, and control in inverter-based power systems.
Figures & tables
| Reference | System / Focus | Model Type | EMT High- Frequency Data | Multiple Disturbances | OOD / Robustness Test | Main Limitation / Scope |
| [ 14 ] | Transient stability | CNN | No | Limited | No | Focused on stability classification, not multi-target surrogate regression |
| [ 27 ] | Transient security assessment | Deep learning | No | Limited | Partial | Emphasis on security assessment under partial observability |
| [ 22 ] | Transient stability | CNN + saliency map | No | Limited | No | Primarily classification and interpretability oriented |
| [ 29 ] | Small-signal stability | Deep CNN | No | Limited | No | Focused on small-signal stability, not EMT waveform prediction |
| [ 30 ] | Voltage vulnerability assessment | CNN | No | Limited | No | Application-specific vulnerability assessment |
| [ 19 ] | Small-signal stability correction | LightGBM | No | Limited | No | Structured stability features, not EMT multi-channel dynamics |
| Parameter | Value |
| Filter resistance, | |
| Filter inductance, | |
| Filter capacitance, | |
| Line resistance, | |
| Line parameters (2, 4, 6, 8) | |
| Line parameters (1, 3, 5, 7, 9) |
| CNN Architecture | LightGBM Hyperparameters |
| Conv1D (32): (100, 32) | Boosting: gbdt |
| Conv1D (64): (100, 64) | Learning rate: 0.05 |
| MaxPool: (50, 64) | Estimators: 300 |
| Conv1D (64): (50, 64) | Max depth: 6 |
| GlobalAvgPool: (64) | Num leaves: 31 |
| Dense (64) | Min child samples: 20 |
| Method | Sim (s) | Time (s) | Speedup | RT Ratio |
| Simulink | 1.00 | 941.16 | 1.00 | 0.001 |
| LightGBM | 1.00 | 0.89 | 1053.58 | 1.12 |
| CNN | 1.00 | 5.09 | 185.04 | 0.20 |
| Hybrid | 1.00 | 1.80 | 522.65 | 0.56 |
Power Systems
Power systems research studies the planning, operation, control, and protection of electrical grids and their integration with energy resources.
See all 231 papers