Online Self-Tuning Control of Flyback Inverters Using Recurrent Neural Networks for Thermally Induced Performance Degradation Compensation
Abstract
1. Introduction
2. System Modeling and Analysis of Heat-Induced Performance Degradation
2.1. Operational Principle of QR Flyback Inverter
- MPPT (Maximum Power Point Tracking): This block continuously measures the PV array’s voltage () and current () to determine the optimal operating point for maximum power extraction. It generates a reference current amplitude, , which sets the target for the sinusoidal current’s injection into the grid.
- PLL (Phase-Locked Loop): The PLL block monitors grid voltage () to accurately track its phase angle () and frequency. This ensures that the inverter’s output current remains synchronized and in phase with the grid voltage, achieving a near-unity power factor.
- Proposed RNN-Based Adaptive Controller: This is the core innovation of the system, responsible for achieving high efficiency via adaptive ZVS. It consists of two sub-modules:
- –
- RNN Block: Acting as the intelligent core, the pre-trained Recurrent Neural Network (RNN) takes real-time system state variables (e.g., , , and ) and the MPPT reference () as inputs. It predicts the optimal delay time, , required to achieve ZVS for the upcoming switching cycle under the current operating conditions.
- –
- QR Calculation Block: This block receives the predicted from the RNN and the grid phase angle from the PLL. It calculates the necessary primary switch-on time () to regulate the power flow and shape the sinusoidal output current. It also determines the total switching period () by incorporating the adaptive delay, thus implementing quasi-resonant (QR) control.
- Timing Logic PWM Gen: This block receives the calculated timing parameters ( and ) and generates the final high-frequency gate drive signals () for the primary MOSFETs of the interleaved flyback converter stage.
- Unfolding Stage Driver: This block controls the low-frequency H-bridge inverter (–). Based on the grid phase angle from the PLL, it switches the H-bridge at the grid’s zero-crossing points, thereby “unfolding” the rectified, pulsating DC power from the flyback stage into a clean sinusoidal AC current for grid injection.
2.2. Analysis of Key Component Parameter Drift with Temperature
2.3. Impact of Parameter Drift on Inverter Performance
3. RNN-Based Online Self-Tuning Control Strategy
3.1. Proposed Dual-Timescale Control Framework
- Fast-Timescale Control: This domain is managed by a standard high-speed digital controller. On a cycle-by-cycle basis, it carries out the primary control plan to ensure there are rapid responses to input voltage and load variations. Specifically, it calculates the required MOSFET on-time () using a model-based approach. The total switching period () for a QR-controlled flyback inverter is composed of three intervals:where is the MOSFET on-time, is the secondary diode conduction time, and is the resonant time. In a flyback inverter operating in Discontinuous Conduction Mode (DCM) or Quasi-Resonant (QR) mode, the on-time is calculated to regulate the average input current to follow a sinusoidal reference. A common control law for is derived from the inductor volt-second balance and power balance principles:where is the amplitude of the desired sinusoidal input current, and is the instantaneous grid voltage. The accuracy of this calculation is fundamentally contingent on the accuracy of the resonant time parameter used by the controller.
- Slow-Timescale Compensation: This domain is governed by the proposed RNN-based compensation module. Rather than reacting to instantaneous changes, the RNN observes the system’s electrical behavior over a longer timescale, using a sampled input sequence . By processing this time-series data, the RNN learns the complex, implicit correlation between the system’s operating state and the underlying parameter drift. It functions as an intelligent observer, inferring the necessary timing correction without direct temperature measurement. The RNN’s output is a correction term, , which is updated at a rate much slower than the switching frequency.
3.2. RNN Model Design and Implementation
3.2.1. Input Feature and Output Definition
3.2.2. Input Feature Correlation Analysis
3.2.3. Network Architecture and Hyperparameter Selection
- Input Layer: The network accepts an input sequence with a shape corresponding to (), where sequence length , and the feature dimension is 4 (i.e., ).
- GRU Hidden Layer: This sequence is fed into a GRU layer containing 32 neurons. This layer acts as a temporal feature encoder, with its primary function being to compress and encode the dynamic information contained in the input sequence into its final hidden state vector.
- Dense Layer: The final hidden state from the GRU layer is then passed to a fully connected (Dense) layer with 16 neurons. This layer, using the ReLU activation function, performs further non-linear transformations and high-level feature extraction.
- Output Layer: Finally, a single-neuron output layer with a linear activation function maps the extracted high-level features to a scalar value, which is the predicted delay compensation time, .
3.2.4. Generating Training Data via Simulation
- Ground-Truth-Label Acquisition: For each specific operating point (i.e., a combination of T, , and ), a unique “optimal delay time,” , that achieves perfect ZVS exists. To acquire this ground-truth label, an “ideal observer” strategy was employed in the simulation. At each operating point, the system precisely measured the actual time from the generation of the ZCD signal to the moment the waveform reached its first valley. This measured time was then recorded as the target output that the model needed to learn.
- Parameter Sweep Protocol: To ensure the comprehensiveness and diversity of the dataset, a parameter sweep protocol covering the entire operating range of the inverter was designed. A vast number of operating condition samples were systematically generated by iterating through the following key variables in a combinatorial manner:
- –
- Operating Temperature (T): The temperature is increased from 25 °C to 100 °C in discrete steps of 5 °C to simulate the entire process from cold start to thermal stability.
- –
- Input Voltage (): The voltage is ramped up across the nominal input range of 30 V to 50 V to cover different photovoltaic cell output voltages.
- –
- Load Level (): The load level is increased from 20% to 100% of the nominal output power to simulate varying solar irradiance levels.
- Data Recording and Dataset Summary: During this sweep, for each generated operating point, the simulation was run until it reached a steady state. Subsequently, the system recorded the input feature sequence over a length of 16 sampling points, along with its corresponding ground-truth label . Through this automated process, a dataset containing over 10,000 unique (input sequence–output label) data pairs was ultimately generated, providing a solid foundation for subsequent model training.
3.2.5. Model Training and Offline Validation
4. Case Study
- PV Array Model: It simulates the output characteristics of a photovoltaic panel under varying irradiance () and temperature (T).
- Power Stage: It implements the main circuit topology, featuring the interleaved flyback inverters and the secondary-side full-bridge unfolding circuit for grid interface. Crucially, it incorporates a custom block that dynamically adjusts the magnetizing inductance () and resonant capacitance () based on an external temperature signal, thus simulating the thermal drift phenomena detailed in Section 2.2.
- MPPT Controller: This is an MPPT algorithm block that generates the reference current amplitude () to maximize power extraction.
- QR Controller: This is a digital controller block that executes the quasi-resonant control logic, including the calculation of based on Equation (4) and the generation of interleaved PWM drive signals ().
4.1. Validation of the Fidelity of the Simulation Platform
4.2. Performance Comparison and Analysis
- No Compensation (NC): The controller applies no delay compensation—i.e., .
- Fixed-Parameter Compensation (FPC): The controller uses a fixed delay compensation value that is optimally tuned at 25 °C. This represents the conventional offline calibration method.
- Proposed RNN-Based Compensation (RNN): The controller employs our proposed online self-tuning strategy, where is generated in real time by the pre-trained GRU model.
4.2.1. Efficiency Comparison and Analysis
4.2.2. Grid Current Quality Comparison and Analysis
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Sarani, S.; Abootorabi Zarchi, H.; Delavaripour, H. Ripple-free input current flyback converter using a simple passive circuit. IEEE Trans. Ind. Electron. 2022, 69, 2557–2564. [Google Scholar] [CrossRef]
- Ferdowsi, M.; Emadi, A.; Telefus, M. Pulse regulation control technique for flyback converter. IEEE Trans. Power Electron. 2005, 20, 798–805. [Google Scholar] [CrossRef]
- Ali, A.I.M.; Ali, A.; Shaaban, M.F. Discontinuous modulation technique for isolated three-phase grid connected flyback inverter with selective harmonic compensation for PV and fuel cell systems. IEEE J. Emerg. Sel. Top. Power Electron. 2025, 13, 2849–2863. [Google Scholar] [CrossRef]
- Kasa, N.; Iida, T.; Chen, L. Flyback inverter controlled by sensor-less current MPPT for photovoltaic power system. IEEE Trans. Ind. Electron. 2005, 52, 1145–1152. [Google Scholar] [CrossRef]
- Tamyurek, B.; Kirimer, B. An interleaved high-power flyback inverter for photovoltaic applications. IEEE Trans. Power Electron. 2015, 30, 3228–3241. [Google Scholar] [CrossRef]
- Vračar, D.Đ.; Pejovič, P.V. Active-clamp flyback converter as auxiliary power-supply of an 800 V inductive-charging system for electric vehicles. IEEE Access 2022, 10, 38254–38271. [Google Scholar] [CrossRef]
- Milas, N.T.; Tatakis, E.C. Fast battery cell voltage equalizer based on the bidirectional flyback converter. IEEE Trans. Transp. Electrif. 2023, 9, 4922–4940. [Google Scholar] [CrossRef]
- Cao, Y.; Li, K.; Lu, M. Balancing method based on flyback converter for series-connected cells. IEEE Access 2021, 9, 52393–52403. [Google Scholar] [CrossRef]
- Chen, C.J.; Cheng, C.H.; Wu, P.S. Unified small-signal model and compensator design of flyback converter with peak-current control at variable frequency for USB power delivery. IEEE Trans. Power Electron. 2019, 34, 783–793. [Google Scholar] [CrossRef]
- Hsieh, Y.C.; Chen, M.R.; Cheng, H.L. An interleaved flyback converter featured with zero-voltage transition. IEEE Trans. Power Electron. 2011, 26, 79–84. [Google Scholar] [CrossRef]
- Pagliosa, M.A.; Lazzarin, T.B.; Barbi, I. Modular two-switch flyback converter and analysis of voltage-balancing mechanism for input-series and output-series connection. IEEE Trans. Power Electron. 2019, 34, 8317–8328. [Google Scholar] [CrossRef]
- Park, J.; Moon, Y.J.; Jeong, M.G.; Kang, J.G.; Kim, S.H.; Gong, J.C.; Yoo, C. Quasi-resonant (QR) controller with adaptive switching frequency reduction scheme for flyback converter. IEEE Trans. Ind. Electron. 2016, 63, 3571–3581. [Google Scholar] [CrossRef]
- Tang, C.Y.; Lin, W.Z.; Tan, Y.C. An active clamp flyback converter with high precision primary-side regulation strategy. IEEE Trans. Power Electron. 2022, 37, 10281–10289. [Google Scholar] [CrossRef]
- Tran, T.N.T.; Xu, H.Y.; Wang, J.M. Development of active-clamp flyback converter for improving light-load efficiency. IEEE J. Emerg. Sel. Top. Power Electron. 2024, 12, 2456–2469. [Google Scholar] [CrossRef]
- Wang, C.M. A novel ZCS-PWM flyback converter with a simple ZCS-PWM commutation cell. IEEE Trans. Ind. Electron. 2008, 55, 749–757. [Google Scholar] [CrossRef]
- Chung, H.S.H.; Hui, S.Y.R.; Wang, W.H. A zero-current-switching PWM flyback converter with a simple auxiliary switch. IEEE Trans. Power Electron. 1999, 14, 329–342. [Google Scholar] [CrossRef]
- Cheng, C.H.; Chen, C.J.; Wang, S.S. An adaptive variable-frequency control with constant crossover frequency achieving fast transient response for wide-operation-range flyback converter. IEEE Trans. Power Electron. 2019, 34, 5537–5547. [Google Scholar] [CrossRef]
- Liang, T.J.; Chen, K.H.; Chen, J.F. Primary side control for flyback converter operating in DCM and CCM. IEEE Trans. Power Electron. 2018, 33, 3604–3612. [Google Scholar] [CrossRef]
- Dong, H.; Xie, X.; Zhang, L. A new primary PWM control strategy for CCM synchronous rectification flyback converter. IEEE Trans. Power Electron. 2020, 35, 4457–4461. [Google Scholar] [CrossRef]
- Kang, S.H.; Maksimović, D.; Cohen, I. Efficiency optimization in digitally controlled flyback DC–DC converters over wide ranges of operating conditions. IEEE Trans. Power Electron. 2012, 27, 3734–3748. [Google Scholar] [CrossRef]
- Hu, J.; Wen, B.; Burgos, R. Design of a wide-input-voltage PCB-embedded transformer based active-clamp flyback converter considering permeability degradation. IEEE Trans. Power Electron. 2021, 36, 10355–10365. [Google Scholar] [CrossRef]
- Budihardjo, I.; Lauritzen, P.O. The lumped-charge power MOSFET model, including parameter extraction. IEEE Trans. Power Electron. 1995, 10, 379–387. [Google Scholar] [CrossRef]
- Garcia Rodriguez, L.A.; Chiacchiarini, H.G.; Carballo Rojas, D. Adaptive boundary control using natural switching surfaces for flyback converters operating in the boundary conduction mode with parameter uncertainties. IEEE Trans. Power Electron. 2019, 34, 8118–8137. [Google Scholar] [CrossRef]
- Yao, K.; Li, H.; Li, L. A noninvasive online monitoring method of output capacitor’s C and ESR for DCM flyback converter. IEEE Trans. Power Electron. 2019, 34, 5748–5763. [Google Scholar] [CrossRef]
- Xu, S.; Kou, X.; Wang, C. New digital control method for improving dynamic response of synchronous rectified PSR flyback converter with CCM and DCM modes. IEEE Trans. Power Electron. 2020, 35, 12347–12358. [Google Scholar] [CrossRef]
- Sun, D.; Wei, X.; Wang, C. An improved dynamic control method for constant current controlled PSR flyback converter. IEEE Trans. Ind. Electron. 2024, 71, 14033–14043. [Google Scholar] [CrossRef]
- KEMET Electronics Corporation. Ceramic, SMD, MLCC, Class II, X7R, 16 VDC, 0.1 uF, 10%, 0603. C0603C104K4RACTU Datasheet. 2024. Available online: https://content.kemet.com/datasheets/KEM_C1002_X7R_SMD.pdf (accessed on 15 November 2025).
- Wang, X.; Blaabjerg, F.; Wu, W. Modeling and Analysis of Harmonic Stability in an AC Power-Electronics-Based Power System. IEEE Trans. Power Electron. 2014, 29, 6421–6432. [Google Scholar] [CrossRef]
- Kang, Y.C.; Chiu, C.C.; Lin, M.; Yeh, C.P.; Lin, J.M.; Chen, K.H. Quasi resonant control with a dynamic frequency selector and constant current startup technique for 92% peak efficiency and 85% light-load efficiency flyback converter. IEEE Trans. Power Electron. 2014, 29, 4959–4969. [Google Scholar] [CrossRef]
- Han, X.; Chang, C.; He, L. Quasi-resonant flyback PSR converter with adaptive frequency control. J. Power Electron. 2020, 20, 341–349. [Google Scholar] [CrossRef]
- IEEE Std 1547-2018; IEEE Standard for Interconnection and Interoperability of Distributed Energy Resources with Associated Electric Power Systems Interfaces. IEEE: New York, NY, USA, 2018.















| Parameter | Specification |
|---|---|
| Dielectric Type | X7R |
| EIA Classification | Class II |
| Operating Temperature Range | −55 °C to +125 °C |
| Guaranteed Capacitance Drift | (over operating range) |
| Hyperparameter | Value |
|---|---|
| Optimizer | Adam |
| Learning Rate | 0.001 |
| Loss Function | Mean Squared Error (MSE) |
| Batch Size | 64 |
| Epochs | 100 |
| Parameter | Value/Model/Specification |
|---|---|
| Prototype Parameters | |
| Topology | Quasi-Single-Stage Interleaved Flyback |
| Input Voltage () | 25 V–55 V |
| Grid Voltage/Frequency | 230 V/50 Hz |
| Rated Power () | 500 W |
| Switching Frequency () | 100 kHz–300 kHz |
| Nominal Primary Inductance () | 3.0 μH |
| MOSFET | HGN119N15S |
| Digital Signal Processor | TI TMS320F280025 |
| Measurement Equipment | |
| Power Analyzer | DEWETRON TRIONET3 (±0.1%) |
| Oscilloscope | Tektronix TDS 2000 (±2%) |
| Voltage/Current Probes | Tektronix P5200A (±1%) |
| Operating Condition | Metric | Simulation | Hardware | Rel. Error |
|---|---|---|---|---|
| Efficiency () | 95.85% | 95.61% | 0.25% | |
| Full Load (500 W, 25 °C) | THD | 2.70% | 2.85% | 5.26% |
| (A) | 2.27 | 2.26 | 0.44% | |
| Efficiency () | 94.40% | 94.15% | 0.27% | |
| Half Load (250 W, 25 °C) | THD | 3.40% | 3.55% | 4.23% |
| (A) | 1.14 | 1.12 | 1.79% | |
| Efficiency () | 95.20% | 94.95% | 0.26% | |
| Full Load (500 W, 85 °C) | THD | 2.95% | 3.10% | 4.84% |
| (A) | 2.27 | 2.26 | 0.44% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Pan, X.; Geng, G.; Jiang, Q.; Chen, C.; Bai, Z. Online Self-Tuning Control of Flyback Inverters Using Recurrent Neural Networks for Thermally Induced Performance Degradation Compensation. Energies 2026, 19, 1788. https://doi.org/10.3390/en19071788
Pan X, Geng G, Jiang Q, Chen C, Bai Z. Online Self-Tuning Control of Flyback Inverters Using Recurrent Neural Networks for Thermally Induced Performance Degradation Compensation. Energies. 2026; 19(7):1788. https://doi.org/10.3390/en19071788
Chicago/Turabian StylePan, Xun, Guangchao Geng, Quanyuan Jiang, Cuiqin Chen, and Zhihong Bai. 2026. "Online Self-Tuning Control of Flyback Inverters Using Recurrent Neural Networks for Thermally Induced Performance Degradation Compensation" Energies 19, no. 7: 1788. https://doi.org/10.3390/en19071788
APA StylePan, X., Geng, G., Jiang, Q., Chen, C., & Bai, Z. (2026). Online Self-Tuning Control of Flyback Inverters Using Recurrent Neural Networks for Thermally Induced Performance Degradation Compensation. Energies, 19(7), 1788. https://doi.org/10.3390/en19071788

