Deep Learning-Based Modeling for Power Converters via Physics-Guided Hierarchical Res-LSTM Frameworks
Tip
This is a GitHub repository for the Physics-Guided Hierarchical Res-LSTM Framework (PhyRes-LSTM)
.
Power converters are extensively utilized in many applications such as consumer electronics, industrial electronics, electric vehicles (EVs), energy storage systems, and distributed generation systems to generate either a regulated dc or ac voltage source and manage the power flow by mainly controlling the switching actions of power semiconductor devices (see Fig. 1)[1]. In all of these applications, the ability to accurately describe the behavior of the converter is of critical importance, as it assists in component selection, controller design, and the preliminary evaluation of the entire DC system
. Power converters inherently exhibit nonlinear behavior due to the switching actions of power switches, making their modeling challenging due to the complexity involved.
Fig. 1. Diagram of a hierarchical microgrid with power converters [2]
Generally, physical modeling relies on a knowledge of the values of the dc–dc converter parameters, both the passive elements and the control circuit. In addition, an accurate model should be able to reproduce ripples in currents and voltages, transients caused by switching on and off operations, etc., which is difficult to generate with physical-based modeling methods [3]. Over the past few years, classical machine learning (ML) and deep learning (DL) algorithms have been used for the data-driven modeling of power converters with simple topologies. It is worth noting that this modeling approach falls under the task of time series forecasting, so models that are related to time series and their theoretical analysis are also applicable in this situation. However, conventional time-series data-driven approaches for power converter modeling are data-intensive, uninterpretable, and lack out-of-domain extrapolation capability. Recent physics-informed modeling methods combine physics into data-driven models using loss functions, but they inherently suffer from physical inconsistency, lower modeling accuracy, and require resource-intensive retraining for new case predictions.
Important
In this paper, we propose a physics-guided hierarchical network with the deep residual network (ResNet) and long short-term memory (LSTM) for the data-driven modeling of power converters
, which can bridge the connection between knowledge-based model and data-driven model for enhancing converter modeling and industrial process modeling. The main contributions of this work can be summarized as follow.
🚩(1) A novel physics-guided framework based on DL is proposed, improving the performance of converter modeling and industrial process modeling
.
🚩(2) Compared to the advanced existing physics-driven, data-driven, and physics-informed neural network (PINN)/ physics-guided machine learning (PGML) methods in the field of power electronics
, our approach achieves superior physical consistency, data-light implementation, and generalization ability.
🚩(3) This paper envisions to democratize artificial intelligence for the modeling of power electronic converters and systems. Meanwhile, this exemplary application envisions
providing a new perspective for tailoring existing machine learning tools for the power electronics field.
We will continuously add PINN/PGML models applied in the field of power electronics to expand this repository.
✅ Numerical methods [7]
✅ LSTM [8]
✅ ResNet [9]
✅ ResNet-LSTM [10]
✅ PINN [11]
- ...
- MATLAB == 2021b
- PLECS == 4.7.4
- Simulink
- Python 3.7
- torch == 1.9.0
- Install the requirement file. For convenience, execute the following command.
pip install -r requirements.txt
- Jupyter Notebook Examples : We provide Jupyter Notebook to help reproduce and customize our repo, which includes
1. PhyRes-LSTM-main.ipynb
2. Physical-driven_module_RK4.ipynb
3. DAB_TPS_waveform.ipynb
- Usage:
3.1. Download the repository
3.2. Train the model.
run main.py
or
bash ./run.sh
Due to the advantages of galvanic isolation, high power densityand bidirectional energy flow, dual active bridge (DAB) dc–dc converter is gaining more and more popularity in industry applications. The topology of DAB dc–dc converter is depicted in Fig. 2.
Fig. 2. Topology of dual-active-bridge DC–DC converter.
The most widely used control for DAB converters is the PSM from the invention of this topology. Consequently, single phase shift (SPS) control, extended phase shift (EPS) control, dual phase shift (DPS) control, and triple phase shift (TPS) control [4] are proposed. Certainly, the TPS control can also be adapted to other methods such as SPS, DPS, etc., by simply modifying the phase shift ratio
Fig. 3. Different modes and their typical waveforms of DAB converters with the triple-phase-shift control. (a) Mode 1:0
The related 6 cases are illustrated in Fig. 3 and their mathematical expressions are given as follows:
In our paper, we selected a typical and relatively more common mode as an example to illustrate our method. Of course, the approach is applicable to other models as well.
Fig. 4. Simulation example of DAB converter.
A power electronics system can be expressed in the general form of partial differential equations (PDEs) through the state-space equations. To solve the state-space equation, numerical integration algorithms can be applied to discretize the continuous form. Formulation of integration can be written in the form:
The exact solution of integration is analytic method. Integration computation can be done by using numerical integration methods such as: Euler, Heun, Runge Kutta or Adams-Bashforth-Moulton. Runge - Kutta integration method is the most popular method for PDE numerical solutions. This integration method has several advantages such as: ease of programming and stable. The fourth order Runge - Kutta integration method is:
- Initial Conditions: The initial values for the capacitor voltage
$v_{C 2}(0)$ and the inductor current$i_L(0)$ at time$t=0$ are set as$v_{C 2,0}$ and$i_{L, 0}$ respectively. - Time Step
$h$ : A time step$h$ is chosen for the numerical integration. - Initial Time
$t=0$ : The computation starts at$t=0$ .
Calculate Intermediate Variables
- These variables are computed using the fourth-order Runge-Kutta method. They represent the approximate derivatives of the capacitor voltage and inductor current at various points within the current time step.
- The formulas involve parameters like
$n D_2(t), R r, L_s, C_2$ , and$R_{\text {load }}$ , which correspond to circuit components such as the diode voltage drop, internal resistance, inductance, capacitance, and load resistance. - Each
$k$ and$l$ corresponds to the derivative approximations at different stages (current time point, midpoints, and a predicted next time point) within the time step.
We first define the essence of the problem. The DAB converter’s modeling process can be considered a regression problem, since its goal is to obtain a function of the input–output mapping of the time series.
Important
The proposed PhyRes-LSTM is a novel PINN/PGML model designed to efficiently and accurately solve general nonlinear partial differential equations (PDEs) for the temporal behavior of power converters. Even in extreme low-data regime (data-light implementation), PhyRes-LSTM still demonstrates strong learning and generalization capabilities while strictly adhering to the integrated physical principles, addressing the challenges in the existing data-driven and state-of-the-art PINN methods in the power electronics field.
Fig. 5. An overview of proposed PhyRes-LSTM approach
With the hierarchical ResNet-LSTM network and knowledge from prior information, it is possible for the proposed PhyRes-LSTM to generalize its performance with the limited number of training samples.
Model Ranking | Model | Challenges |
---|---|---|
🥇 1st | PhyRes-LSTM | Explainable and data-light; Extensibility and Robustness. |
🥈 2nd | PGML/PGDL/PINN | Physical inconsistency; Loose constraints; Complete retraining. |
🥉 3rd | Purely data-driven modeling | Heavy computation burden; Extensive datasets; Uninterpretable black-box models. |
🥉 4th | Knowledge-based modeling | The comprehensive theoretical knowledge is required; Limitations in accuracy and computational complexity. |
Tip
This project is supported by the National Natural Science Foundation of China under Grant 52007196
. At the same time, thank you all for your attention to this work!
Note
If you have any questions, feel free to contact Qianyi Shang through Email ([email protected]) or Github issues. Pull requests are highly welcomed!