Next Article in Journal
Optimizing Assembly Error Reduction in Wind Turbine Gearboxes Using Parallel Assembly Sequence Planning and Hybrid Particle Swarm-Bacteria Foraging Optimization Algorithm
Previous Article in Journal
Enhanced Singular Value Decomposition Modulation Technique to Improve Matrix Converter Input Reactive Power Control
Previous Article in Special Issue
Multi-Energy-Microgrid Energy Management Strategy Optimisation Using Deep Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

ANN-Enhanced Modulated Model Predictive Control for AC-DC Converters in Grid-Connected Battery Systems

by
Andrea Volpini
,
Samuela Rokocakau
,
Giulia Tresca
,
Filippo Gemma
and
Pericle Zanchetta
*,†
Department of Electrical, Computer and Biomedical Engineering, University of Pavia, 27100 Pavia, Italy
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Energies 2025, 18(15), 3996; https://doi.org/10.3390/en18153996
Submission received: 22 June 2025 / Revised: 18 July 2025 / Accepted: 23 July 2025 / Published: 27 July 2025

Abstract

With the increasing integration of renewable energy sources (RESs) into power systems, batteries are playing a critical role in ensuring grid reliability and flexibility. Among them, vanadium redox flow batteries (VRFBs) have emerged as a promising solution for large-scale storage due to their long cycle life, scalability, and deep discharge capability. However, achieving optimal control and system-level integration of VRFBs requires accurate, real-time modeling and parameter estimation, challenging tasks given the multi-physics nature and time-varying dynamics of such systems. This paper presents a lightweight physics-informed neural network (PINN) framework tailored for VRFBs, which directly embeds the discrete-time state-space dynamics into the network architecture. The model simultaneously predicts terminal voltage and estimates five discrete-time physical parameters associated with RC dynamics and internal resistance, while avoiding hidden layers to enhance interpretability and computational efficiency. The resulting PINN model is integrated into a modulated model predictive control (MMPC) scheme for a dual-stage DC-AC converter interfacing the VRFB with low-voltage AC grids. Simulation and hardware-in-the-loop results demonstrate that adaptive tuning of the PINN-estimated parameters enables precise tracking of battery parameter variations, thereby improving the robustness and performance of the MMPC controller under varying operating conditions.

1. Introduction

As the global demand for reduced emissions and reliable energy supply grows, renewable energy sources (RESs) are being increasingly adopted. Due to their inherent variability and intermittency, RESs are often coupled with energy storage systems (ESSs), which act as buffers between energy generation and consumption [1].
ESSs play a crucial role in modern power distribution networks by enhancing grid stability and operational efficiency. They provide a wide range of services across different time scales. In the short term—ranging from seconds to minutes—ESSs support voltage and frequency regulation and system stability and help mitigate fluctuations in renewable energy output. Over longer durations, spanning several hours, ESSs enable renewable energy time-shifting and contribute to peak demand reduction, thereby increasing overall grid resilience [2].
Among various ESS technologies, vanadium redox flow batteries (VRFBs) have attracted significant attention due to their unique advantages. Figure 1 shows the structure of a VRFB, illustrating its operating principle. VRFBs offer long cycle life, the ability to discharge deeply without degradation, and high overall efficiency [3]. These characteristics make VRFBs particularly suitable for large-scale grid integration, where durability, reliability, and efficiency are paramount [4,5].
Since VRFBs are inherently DC systems, their integration into low-voltage AC (LVAC) grids requires bidirectional DC-AC conversion. This typically involves a two-stage power conversion system: an isolated DC-DC stage, such as a dual active bridge (DAB), to boost the battery’s low voltage and ensure galvanic isolation, followed by a DC-AC stage functioning as an active front-end (AFE) converter [4]. Traditionally, each stage is controlled independently using dedicated PI controllers [6]. The AFE employs an outer voltage control loop with an inner current loop, while the DAB stage usually controls output voltage or current. However, this independent design can lead to mutual interference between controllers, especially during transient conditions or reference changes.
Recently, time-domain control techniques like model predictive control (MPC) have emerged as promising alternatives for managing complex power electronics systems. MPC offers several advantages over conventional PI controllers, including faster reference tracking, straightforward handling of system constraints, and natural accommodation of multiple-input multiple-output (MIMO) system dynamics. A modulated MPC (MMPC) algorithm applied to a DC-AC converter has demonstrated effective unified control of both conversion stages through a single control action [7,8]. This approach minimizes a single cost function to optimize control inputs for both stages simultaneously, enabling faster tracking and eliminating controller interference.
Nonetheless, MPC implementations face two key challenges. First, they typically require higher computational resources compared to PI controllers. However, recent advancements in DSP- and FPGA-based control hardware, alongside algorithmic improvements, have mitigated this limitation [9]. Second, MPC performance heavily depends on accurate system parameters; discrepancies between real and modeled parameters can lead to control failure or steady-state offsets. For effective MPC implementation with VRFBs, an equivalent circuit model is necessary to capture their multi-physics behavior.
Accurate estimation of internal states and parameters of batteries has become essential to ensure performance, safety, and reliability in energy storage systems and electric vehicles. A wide range of techniques have been proposed to address this challenge. In [10], a robust sliding-mode observer based on a nonlinear battery cell model enables precise state of charge (SOC) estimation, even under model uncertainty and parameter variations due to aging. The method also shows reduced sensitivity to sensor noise and improved performance over traditional estimators such as the Luenberger observer and extended Kalman filter (EKF). However, the sliding-mode gain may introduce high-frequency oscillations in the estimated SOC, and the computational time, though efficient, is slightly higher than that of EKF-based approaches. In [11], a Wiener model combined with an extended kernel iterative recursive least squares (EKIRLS) algorithm allows real-time identification of equivalent circuit parameters, enhancing SOC estimation accuracy via an EKF. The approach provides a favorable balance between nonlinearity representation and computational efficiency. Nevertheless, it may amplify measurement noise due to reliance on signal derivatives, and small deviations in SOC estimation are observed under low charge levels or strong polarization effects. In [12], frequency-domain decomposition through active current injection is used in a sequential estimation scheme to decouple SOC, state of health (SOH), and circuit parameters. This separation significantly improves estimation accuracy, but the method requires precise control of current profiles and is less applicable in pure battery systems (e.g., PEVs) where current injection is infeasible. Furthermore, full convergence of some parameters, such as RC time constants, may be slow. In [13], an improved adaptive battery state estimator (ABSE) jointly estimates SOC and the state of available power (SOAP), accounting for current-dependent internal resistance. The method shows excellent performance across different aging levels but relies on a priori knowledge of SOC–OCV and SOC–resistance relationships. Additionally, estimation accuracy can degrade during constant-voltage charging due to reduced sensitivity between input and output variables. A data-driven perspective is provided in [14], where support vector regression (SVR) optimized by NSGA-II is used for SOH estimation based on short-duration current pulse features. The method offers flexible model complexity and strong generalization capability, yet becomes unstable if too few features are selected and suffers from long testing times or unrealistic requirements (e.g., very low currents) when using capacity or differential voltage-based indicators. In [15], a robust identification algorithm based on eigenvalue addition/deletion least squares with a forgetting factor (MIFRLS) is introduced, addressing singular covariance issues and enabling parameter tracking even under zero-current conditions. While computationally efficient, the method still inherits some challenges from traditional FRLS, including sensitivity to tuning thresholds and limited treatment of current measurement noise. In [16], a double RC equivalent circuit model is proposed, where resistive and capacitive lumped elements represent VRFB dynamics and power losses. Using battery voltage and current measurements from full charge–discharge cycles, model parameters are identified via particle swarm optimization. However, due to complex multi-physics effects, operational temperature variations, and battery aging, these equivalent parameters tend to vary over time, challenging controller accuracy. Despite their individual advantages, these model-based and data-driven approaches face limitations in balancing physical interpretability, generalization, and robustness to measurement noise or parameter drift.
To address this, data-driven methods like physics-informed neural networks (PINNs) offer a powerful alternative. PINNs embed known physical laws directly into the neural network architecture or loss function, ensuring that model outputs remain consistent with governing equations while retaining the expressive capacity of deep learning. By fusing domain knowledge with data-driven learning, PINNs enable accurate, physically consistent, and data-efficient parameter estimation, even under limited, noisy, or partially observed measurements, thereby overcoming many of the shortcomings of conventional estimation frameworks [17,18].
Recent studies have explored the integration of PINNs into various power and energy system applications, demonstrating their potential to enhance accuracy, robustness, and physical consistency. In [19], a hybrid LSTM-PINN model is proposed for estimating the temperature distribution in lithium-ion battery packs. By combining a physics-based lumped thermal model with an LSTM and a feedforward neural network, and embedding heat transfer equations into the loss function, the approach improves accuracy at locations lacking direct measurements and accelerates convergence compared to purely data-driven methods. However, its effectiveness depends on careful hyperparameter tuning and ambient temperature modeling, and it may pose challenges for real-time implementation due to computational cost. In [20], an extended PINN (e-PINN) framework is developed for parameter identification in switched-mode power converters with undetermined topological durations. The architecture incorporates a pseudolabel generation network and multiple time-segmented PINNs, enabling online identification without requiring high-frequency sampling or additional sensing hardware. While the method is robust to noise and effective in practical settings, it faces limitations when estimating weakly observable parameters such as diode forward voltage or parasitic resistances. A distinct approach is presented in [21], where an inherently interpretable PINN, referred to as Battery Neural Network (BattNN), is designed for battery modeling and prognosis. By embedding the dynamics of an equivalent circuit model (ECM) directly into the network structure, BattNN enables accurate voltage and end-of-discharge (EOD) predictions under arbitrary load profiles, with minimal data and computational demand. Nonetheless, the model does not incorporate battery aging effects and may require manual tuning for less influential parameters. In the domain of power electronics, ref. [22] applies PINNs for online impedance identification of voltage source converters (VSCs) across varying operating points and frequencies. The method restructures the neural network based on an analytical impedance model and leverages transfer learning to adapt from offline simulations to real-time data, achieving efficient and accurate impedance estimation from sparse measurements. Still, the approach depends on well-designed perturbation signals and requires multiple independent excitations to fully identify the system’s impedance matrix. While each of these approaches addresses specific challenges in battery and converter modeling, they share common limitations, including computational complexity, sensitivity to hyperparameter configuration, and limited scalability to evolving system dynamics or long-term degradation. Nevertheless, by embedding physical laws into learning processes, PINNs offer a compelling pathway toward physically consistent, data-efficient, and generalizable models, bridging the longstanding gap between black-box neural networks and traditional model-based approaches.
Therefore, this paper presents a lightweight PINN framework that directly embeds the discrete-time state-space dynamics of a VRFB into its architecture. The proposed model simultaneously predicts the terminal voltage and estimates five discrete-time physical parameters associated with the RC dynamics and internal resistance of the system. By eliminating hidden layers, the model retains interpretability while ensuring computational efficiency. Training is performed in two phases: an initial convergence phase using the Adam optimizer, followed by fine-tuning with the L-BFGS algorithm. The model’s performance is assessed through prediction accuracy, parameter identifiability, and statistical error analysis. Once trained, the PINN is integrated into a MMPC scheme for a dual-stage DC-AC converter. Simulation and hardware-in-the-loop results demonstrate that the adaptive tuning of the PINN-estimated parameters enables the controller to track variations in VRFB behavior, thereby improving both the performance and robustness of the MPC system.

2. Model of the System

Figure 2 illustrates the DC-AC converter topology adopted for interfacing the VRFB with the grid. The architecture comprises a three-phase inverter operating as an AFE and a DAB for the DC-DC stage.
The state-space equations of the system must be derived to correctly implement the MMPC. On the grid side, the system equations can be written in the α β stationary frame as follows:
L f d i g α ( t ) d t = v g α ( t ) R f i g α ( t ) ρ α v 1 ( t ) L f d i g β ( t ) d t = v g β ( t ) R f i g β ( t ) ρ β v 1 ( t )
where i g α , i g β , v g α , and v g β are the grid current and voltage on the α and β axes, respectively, v 1 is the voltage on the DC-link capacitor C 1 between the two conversion stages, R f and L f are the AC filter resistance and inductance, and ρ α and ρ β are the converter switching functions on the α β frame.
The DC-link voltage v 1 is obtained with the current balance equation at the capacitance C 1 node:
C 1 d v 1 ( t ) d t = i AFE ( t ) i B 1 ( t )
where i B 1 is the DAB input current and i AFE is the current on the DC side of the AFE. The latter is obtained as
i AFE ( t ) = 3 2 [ ρ α i g α ( t ) + ρ β i g β ( t ) ]
The exchanged power P between the two bridges of a DAB operating under single-phase shift (SPS) modulation is given by
P = n v 1 v 2 φ ( π | φ | ) 2 π 2 f s L
where φ is the phase shift, f s is the switching frequency, n is the transformer turns ratio, and L is the total leakage inductance referred to the primary side. From (4), the average value of the input and output currents can be obtained as
i B 1 = P v 1 = n v 2 φ ( π | φ | ) 2 π 2 f s L
i B 2 = P v 2 = n v 1 φ ( π | φ | ) 2 π 2 f s L
where v 2 is the voltage on the capacitive filter between the DAB and the VRFB. At the moderate switching frequency of 20 kHz used in this study, parasitic capacitance, dead-time effects, and transformer core losses have limited impact on power flow and system-level dynamics, justifying their omission from the control-oriented model. The VRFB is modeled through an equivalent circuit model introduced in [16]. This model includes two R C branches, characterized by the parameters R act , C act , R con , and C con , which represent the activation and concentration losses, respectively. An additional series resistance R ohm accounts for the remaining ohmic losses. To model self-discharge behavior, a resistor R self , dch is connected in parallel with the open-circuit voltage E OCV of the battery. The resulting VRFB model can be described by the following set of equations:
C act d v act ( t ) d t = v act ( t ) R act + i bat ( t )
C con d v con ( t ) d t = v con ( t ) R con + i bat ( t )
v 2 ( t ) = E OCV ( t ) + R ohm i bat ( t ) + v act ( t ) + v con ( t )
where i bat ( t ) is the VRFB current. The open-circuit voltage can be expressed as a function of the battery SOC. This model of the battery has demonstrated a strong correspondence with the real system behavior, supporting its validity [16].

3. Proposed MMPC Scheme with PINN Integration

Figure 3 shows the proposed MMPC scheme with the integration of the PINN architecture to monitor and observe the VRFB parameters. At each time instant k, the MMPC algorithm defines the optimal control action to be applied at k + 1 by solving a quadratic cost function, defined as
g = g 1 + g 2 + g 3 + g 4
where
g 1 = v ˜ 1 * [ k + 2 ] v ^ 1 [ k + 2 ] v ˜ 1 * [ k + 2 ] 2
g 2 = P a c * [ k + 2 ] P ^ a c [ k + 2 ] P a c * [ k + 2 ] 2
g 3 = Q a c * [ k + 2 ] Q ^ a c [ k + 2 ] P a c * [ k + 2 ] 2
g 4 = i bat * [ k + 2 ] i ^ bat [ k + 2 ] i bat * [ k + 2 ] 2
In the previous equations, v ˜ 1 * , P a c * , Q a c * , and i bat * represent the reference values for the DC-link voltage, grid active and reactive power, and battery current, respectively. The selected optimal control action is applied via space vector modulation (SVM) for the AFE and single-phase shift (SPS) modulation for the DAB stage. Further details on the control scheme are included in [8], as well as the considered system parameters.
To mitigate any possible variation in VRFB parameters, a PINN-based observer is employed. Following training on representative battery measurement data, the PINN enables real-time estimation of the equivalent circuit parameters R act , C act , R con , C con , and R ohm through the integration of embedded physical constraints.

4. PINN Architecture

A lightweight PINN was developed to accurately predict the future terminal voltage of the VRFB while simultaneously estimating the parameters of its internal equivalent circuit. The network embeds established battery dynamics directly into its structure, preserving physical interpretability and ensuring high prediction accuracy with minimal computational overhead.
The model receives a five-dimensional feature vector at each discrete time step, specified as follows:
x = v 2 [ k ] i bat [ k ] E OCV [ k ] v act [ k ] v con [ k ]
The model produces a scalar output corresponding to the predicted terminal voltage at the next time step, denoted as v ^ 2 [ k + 1 ] . Whereas standard black-box architectures ignore underlying physics, the PINN enforces the governing equations of the VRFB’s equivalent circuit model (7)–(9). The parameters are obtained directly from data and provide discrete-time approximations of the two underlying first-order RC dynamics. Temperature notably influences the internal dynamics of VRFB systems, affecting parameters such as R act , R con , C act , C con , and R ohm ; in this work, the PINN implicitly captures these time-varying parameters and their latent dependencies—such as those due to temperature and SOC—directly from input–output data, without requiring explicit thermal modeling or direct temperature measurements. Owing to the physical interpretability of its parameters, the model is suitable for both forecasting and system identification.

4.1. Loss Function and Training Objective

The training objective is to minimize the discrepancy between the predicted and actual terminal voltages over the course of the training horizon. While additional terms could be introduced to penalize residuals from internal RC dynamics (e.g., deviations from expected state transitions of v act and v con ), this study focuses solely on terminal voltage prediction. This decision reflects the model’s intended use in predictive control applications, where v 2 [ k + 1 ] is the key regulated quantity. Limiting the loss to this target ensures both computational efficiency and suitability for real-time implementation. The loss function is represented by the mean squared error (MSE), which is represented as follows:
L = 1 N i = 1 N v ^ 2 , i [ k + 1 ] v 2 , i [ k + 1 ] 2
Consistency of the RC branch voltages is inherently enforced through the governing equations of the internal states, and although the loss function (16) minimizes terminal voltage errors, the internal dynamics—including the RC branch behavior—are embedded within the physics-informed network structure, as detailed in (7) and (9). The model employs a shallow architecture with a single hidden layer (Model A: 1 × 32 neurons) to regress the parameters R act , R con , C act , C con , and R ohm , which are then used within embedded discrete-time governing equations to compute the predicted voltage. Thus, the model’s structure reflects a physics-informed approach where physical laws are hard-coded into the forward pass rather than imposed through loss penalties.

4.2. Two-Phase Optimization Strategy

To ensure robust convergence and high precision of the learned physical parameters, a two-phase optimization scheme is employed:
  • Phase I—Adam Optimization: The model is trained using the Adam optimizer for 5000 epochs with a learning rate of 10 4 . Gradient clipping (max-norm = 1.0) is applied to ensure numerical stability during early learning stages.
  • Phase II—L-BFGS Refinement: Once the model has converged with Adam, parameter refinement is performed using the L-BFGS optimizer with line search (strong Wolfe conditions), which is well-suited for final fine-tuning in low-dimensional parameter spaces.
The final trained model is stored in a PyTorch 2.6-compatible .pt file containing five scalar parameters. These parameters are then exported as a MATLAB 2023a-compatible structure or injected directly into a Simulink user-defined function block, enabling real-time prediction and closed-loop integration in an MPC environment. The governing equations are thus preserved in both training and deployment, ensuring physical consistency throughout the estimation–prediction–control pipeline. Finally, during the real-time operation, the PINN is constantly fine-tuned to adapt to different conditions of operation and variations in VRFB parameters.

5. Training of the PINN

A series of tests were carried out on the same dataset produced from the VRFB model to determine the effect of architectural modifications on the prediction performance of the PINN model. The workflow for the PINN modeling is showing in Figure 4.
The dataset included five input features, as expressed in (15).

5.1. Training Setup

All models were implemented in PyTorch and trained using a time-aware 80/20 train–test split, where the first 80% of the data (in chronological order) was used for training and the final 20% was reserved for testing. This blocked temporal partitioning ensures causality is preserved and prevents information leakage from future time steps into the training set. The training employed a two-phase optimization strategy:
  • Phase 1: Adam optimizer (learning rate = 10 4 , epochs = 5000, gradient clipping with max norm = 1.0);
  • Phase 2: L-BFGS optimizer (maximum iterations = 500, line search = strong Wolfe).
The loss function for all models was the MSE between the predicted and actual terminal voltage.

5.2. Architecture Evaluation and Selection

The following architectures were compared:
  • Model A: One layer, 32 neurons (selected architecture);
  • Model B: One layer, 64 neurons;
  • Model C: Two layers, 32-32 neurons;
  • Model D: Two layers, 64-64 neurons;
  • Model E: Three layers, 64-64-64 neurons.
Although Model E (3 × 64) achieved the lowest MSE, Model A (1 × 32) was ultimately selected for implementation owing to its marginally superior prediction accuracy combined with significantly reduced computational complexity. A bar chart illustrating the MSE across architectures is shown in Figure 5. This balance is crucial, as high computational efficiency is especially important for real-time MPC applications, where fast processing enables timely control actions and ensures system stability under dynamic operating conditions.
This comparative study supports the viability of using compact PINN architectures while maintaining accurate voltage prediction performance, thereby enabling their integration into embedded systems or real-time controllers. Figure 6 shows a histogram of the residual error between predicted and actual terminal voltage, created to examine the prediction consistency of the trained PINN model. The histogram shows that the vast majority of predictions fall inside a narrow band centered around zero, with a small number of outliers. This demonstrates the model’s stability and accuracy throughout a wide range of operational situations.

6. Simulation Results

This section presents the simulation results of the proposed MMPC. Figure 7 displays the DC-link voltage, battery current, and the active and reactive power exchanged with the grid across two distinct scenarios, corresponding to each column in the figure.
In the first scenario, the system response is evaluated when the battery reference current steps from 0 A to 80 A, while the DC-link voltage and grid reactive power references are held constant at 700 V and 0 kVAR, respectively. The new current reference is tracked within approximately 7 ms, exhibiting no overshoot, undershoot, or oscillations, and causing no disturbance to the DC-link voltage or reactive power. The MMPC internally adjusts the active power reference to meet the updated battery current setpoint.
In the second scenario, the DC-link voltage reference changes from 700 V to 650 V, while the battery current and grid reactive power references remain at 80 A and 0 kVAR, respectively. The voltage setpoint is reached within about 8 ms, without overshoot, oscillations, or disturbance to the battery current. During this transient, active power reverses to discharge the DC-link capacitor, and reactive power briefly deviates in response to the voltage step but returns to 0 kVAR within 1 ms.
Figure 8 presents the simulation results of the grid phase voltages (top) and line currents (bottom). The left column corresponds to the scenario in which the reference values for the DC-link voltage, battery current, and grid reactive power are 700 V, 80 A, and 0 kVAR, respectively. The right column refers to the case where these reference values are 650 V, 80 A, and 0 kVAR. The total harmonic distortion (THD) of the grid current, calculated as the average of the THD values of the three line currents, is 2.94% and 2.62% in the first and second scenarios, respectively.

Controller Robustness

The contribution of the PINN observer to controller robustness is assessed by evaluating its performance under parameter mismatch conditions. To evaluate the system’s performance under conditions significantly deviating from nominal operation, all parameters associated with the VRFB’s dynamics and losses are artificially increased by 25%. This test is conducted while the controller continues to operate based on nominal parameter values. Since these are equivalent circuit parameters, their variation due to factors such as aging or temperature is not straightforward to quantify analytically. Consequently, applying a uniform 25% increase—though extreme—serves as a reasonable approximation of a highly off-nominal scenario, allowing assessment of the controller’s robustness under substantial model mismatch.
Figure 9 presents the simulation results for a step change in the battery current reference from 0 A to 80 A. Once the system reaches steady state, a noticeable tracking error appears, highlighting the discrepancy between the actual and reference battery current due to parameter mismatch.
Figure 10 presents the results for an identical scenario with the PINN observer enabled to continuously update the VRFB parameters. Under these conditions, the battery current reference is tracked with high accuracy, exhibiting only a negligible steady-state offset after the transient phase. These findings confirm that the integration of the PINN observer markedly enhances the robustness of the MMPC against uncertainties in system parameters.
Finally, Figure 11 compares the error between the battery current reference and the measured value, with and without the PINN observer. In both cases, the error signal exhibits oscillations due to the inherent ripple in the battery current. However, without the PINN observer, the error remains consistently positive and does not converge to zero. When the PINN observer is included, the error amplitude is significantly reduced and oscillates around zero, further demonstrating the effectiveness of the proposed approach.

7. Experimental Results

A hardware-in-the-loop (HIL) simulation was conducted to validate the proposed controller. The experimental setup, shown in Figure 12, consists of an OP4510 real-time simulator (RTS) from OPAL-RT Technologies (Montreal, QC, Canada), equipped with a Kintex-7 FPGA and a 3.5 GHz processor. The converter, power plant, and battery models were developed using the Schematic Editor within the RT-LAB environment. The FPGA simulation operates with a time step of 120 ns, enabled by eHS Gen5, OPAL-RT’s real-time FPGA-based solver.
The control board, a PED-Board v3, integrates an sbRIO-9651 System on Module from National Instruments (Austin, TX, USA), featuring a real-time processor and a reconfigurable FPGA. Both the MMPC and the PINN are implemented on the FPGA using the LabVIEW FPGA module. Communication between the control board and an external host PC is established to enable monitoring and data exchange. Waveform measurements are carried out using a Pico TA057 (St Neots, UK) differential probe, and the results are visualized with a Tektronix TBS2000B (Beaverton, OR, USA) digital oscilloscope.
Figure 13 presents the experimental results of the battery current, with the MMPC operating under nominal parameters for the VRFB, while the parameters in the simulation are increased by 25%. Specifically, Figure 13a illustrates the system response following a change in the battery current reference from 0 A to 80 A, whereas Figure 13b shows the response for a step change from 80 A back to 0 A. The measured current fails to track the reference accurately due to parameter mismatches between the plant and the controller model.
On the other hand, Figure 14 presents the battery current results when the PINN-based observer for the VRFB is integrated within the controller. Figure 14a depicts the system response following a current reference step from 0 A to 80 A, while Figure 14b shows the response for a step from 80 A to 0 A. With real-time parameter identification enabled by the PINN, the MMPC demonstrates significantly improved reference tracking in both scenarios.
Although incorporating the PINN observer increases the control algorithm’s execution time from 42 μ s to 48 μ s, it remains within the 50 μ s limit required to sustain a 20 kHz switching frequency.

8. Conclusions

This paper introduced a lightweight PINN framework designed for real-time modeling and parameter estimation of a VRFB. By directly embedding the discrete-time state-space dynamics of the battery into its neural architecture, the proposed PINN accurately predicts terminal voltage and estimates key RC parameters and internal resistance without the need for hidden layers. The training process, which combines Adam and L-BFGS optimizers, ensures efficient convergence and fine-tuning with minimal data requirements.
The PINN model was successfully integrated into an MPC scheme for a dual-stage DC-AC converter, enabling adaptive control of VRFB-based energy storage systems under time-varying conditions. Simulation results consistently demonstrated the effectiveness of the PINN-enhanced MPC in tracking parameter variations, which led to improved control performance and increased system robustness. This approach offers a compelling pathway toward physically consistent, data-efficient, and generalizable models, bridging the gap between black-box neural networks and traditional model-based approaches for complex power and energy systems.

Author Contributions

Conceptualization, methodology, software, validation, formal analysis, investigation, writing—review and editing, and visualization: A.V., S.R., G.T., F.G. and P.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article; further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

ACAlternating current
AFEActive front-end
DCDirect current
DABDual active bridge
ESSEnergy storage system
MPCModel predictive control
MMPCModulated model predictive control
MSEMean squared error
RCResistor–capacitor
RESRenewable energy source
PINNPhysics-informed neural network
SOCState of charge
VRFBVanadium redox flow battery

References

  1. Tresca, G.; Formentini, A.; Di Salvo, S.; Leuzzi, R.; Anglani, N.; Zanchetta, P. Reconfigurable Cascaded Multilevel Converter design for Battery Energy System Storage. In Proceedings of the 2022 International Symposium on Power Electronics, Electrical Drives, Automation and Motion (SPEEDAM), Sorrento, Italy, 22–24 June 2022; pp. 725–729. [Google Scholar] [CrossRef]
  2. Vazquez, S.; Lukic, S.M.; Galvan, E.; Franquelo, L.G.; Carrasco, J.M. Energy Storage Systems for Transport and Grid Applications. IEEE Trans. Ind. Electron. 2010, 57, 3881–3895. [Google Scholar] [CrossRef]
  3. Guarnieri, M.; Mattavelli, P.; Petrone, G.; Spagnuolo, G. Vanadium Redox Flow Batteries: Potentials and Challenges of an Emerging Storage Technology. IEEE Ind. Electron. Mag. 2016, 10, 20–31. [Google Scholar] [CrossRef]
  4. Aluko, A.; Knight, A. A Review on Vanadium Redox Flow Battery Storage Systems for Large-Scale Power Systems Application. IEEE Access 2023, 11, 13773–13793. [Google Scholar] [CrossRef]
  5. Wang, H.; Pourmousavi, S.A.; Soong, W.L.; Zhang, X.; Ertugrul, N. Battery and energy management system for vanadium redox flow battery: A critical review and recommendations. J. Energy Storage 2023, 58, 106384. [Google Scholar] [CrossRef]
  6. Dong, D.; Boroyevich, D.; Wang, R.; Cvetkovic, I. A two-stage high power density single-phase ac-dc bi-directional PWM converter for renewable energy systems. In Proceedings of the 2010 IEEE Energy Conversion Congress and Exposition, Atlanta, GA, USA, 12–16 September 2010; pp. 3862–3869. [Google Scholar] [CrossRef]
  7. Leuzzi, R.; Volpini, A.; Di Salvo, S.R.; Tresca, G.; Zanchetta, P. A Unified Model Predictive Control for the Grid Integration of Vanadium Redox Flow Batteries. In Proceedings of the 2022 IEEE Energy Conversion Congress and Exposition (ECCE), Detroit, MI, USA, 9–13 October 2022; pp. 1–8. [Google Scholar] [CrossRef]
  8. Volpini, A.; Salvo, S.R.D.; Tresca, G.; Leuzzi, R.; Zanchetta, P. A Unified Modulated Model Predictive Control for a Two-Stage AC-DC Converter Interfacing a Vanadium Redox Flow Battery. IEEE Trans. Ind. Appl. 2025, 1–11. [Google Scholar] [CrossRef]
  9. Gemma, F.; Riccio, J.; Tresca, G.; Volpini, A.; Zanchetta, P. Finite-Control-Set Model Predictive Control with Reduced Computational Burden in Cascaded H-Bridge Permanent Magnet Synchronous Motor Drives for EV Applications. In Proceedings of the 2024 IEEE Energy Conversion Congress and Exposition (ECCE), Phoenix, AZ, USA, 20–24 October 2024; pp. 3941–3947. [Google Scholar] [CrossRef]
  10. Kim, W.; Lee, P.Y.; Kim, J.; Kim, K.S. A Robust State of Charge Estimation Approach Based on Nonlinear Battery Cell Model for Lithium-Ion Batteries in Electric Vehicles. IEEE Trans. Veh. Technol. 2021, 70, 5638–5647. [Google Scholar] [CrossRef]
  11. Naseri, F.; Schaltz, E.; Stroe, D.I.; Gismero, A.; Farjah, E. An Enhanced Equivalent Circuit Model With Real-Time Parameter Identification for Battery State-of-Charge Estimation. IEEE Trans. Ind. Electron. 2022, 69, 3743–3751. [Google Scholar] [CrossRef]
  12. Song, Z.; Wang, H.; Hou, J.; Hofmann, H.F.; Sun, J. Combined State and Parameter Estimation of Lithium-Ion Battery With Active Current Injection. IEEE Trans. Power Electron. 2020, 35, 4439–4447. [Google Scholar] [CrossRef]
  13. Zhang, W.; Wang, L.; Wang, L.; Liao, C.; Zhang, Y. Joint State-of-Charge and State-of-Available-Power Estimation Based on the Online Parameter Identification of Lithium-Ion Battery Model. IEEE Trans. Ind. Electron. 2022, 69, 3677–3688. [Google Scholar] [CrossRef]
  14. Cai, L.; Meng, J.; Stroe, D.I.; Peng, J.; Luo, G.; Teodorescu, R. Multiobjective Optimization of Data-Driven Model for Lithium-Ion Battery SOH Estimation With Short-Term Feature. IEEE Trans. Power Electron. 2020, 35, 11855–11864. [Google Scholar] [CrossRef]
  15. Inoue, T.; Komatsu, D. Online Parameter Identification for Equivalent Circuit Model of Li-Ion Batteries Using the Eigenvalue Addition/Deletion Least-Squares Method With a Forgetting Factor. IEEE Access 2025, 13, 73569–73585. [Google Scholar] [CrossRef]
  16. Xiong, B.; Yang, Y.; Tang, J.; Li, Y.; Wei, Z.; Su, Y.; Zhang, Q. An Enhanced Equivalent Circuit Model of Vanadium Redox Flow Battery Energy Storage Systems Considering Thermal Effects. IEEE Access 2019, 7, 162297–162308. [Google Scholar] [CrossRef]
  17. Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics Informed Deep Learning (Part I): Data-driven Solutions of Nonlinear Partial Differential Equations. arXiv 2017, arXiv:arXiv:1711.10561. [Google Scholar] [CrossRef]
  18. Zhao, S.; Peng, Y.; Zhang, Y.; Wang, H. Parameter Estimation of Power Electronic Converters With Physics-Informed Machine Learning. IEEE Trans. Power Electron. 2022, 37, 11567–11578. [Google Scholar] [CrossRef]
  19. Cho, G.; Zhu, D.; Campbell, J.J.; Wang, M. An LSTM-PINN Hybrid Method to Estimate Lithium-Ion Battery Pack Temperature. IEEE Access 2022, 10, 100594–100604. [Google Scholar] [CrossRef]
  20. Xiang, Y.; Lin, H.; Chung, H.S.H. Extended Physics-Informed Neural Networks for Parameter Identification of Switched Mode Power Converters With Undetermined Topological Durations. IEEE Trans. Power Electron. 2025, 40, 2235–2247. [Google Scholar] [CrossRef]
  21. Wang, F.; Zhi, Q.; Zhao, Z.; Zhai, Z.; Liu, Y.; Xi, H.; Wang, S.; Chen, X. Inherently Interpretable Physics-Informed Neural Network for Battery Modeling and Prognosis. IEEE Trans. Neural Netw. Learn. Syst. 2025, 36, 1145–1159. [Google Scholar] [CrossRef] [PubMed]
  22. Zhang, M.; Xu, Q.; Wang, X. Physics-Informed Neural Network Based Online Impedance Identification of Voltage Source Converters. IEEE Trans. Ind. Electron. 2023, 70, 3717–3728. [Google Scholar] [CrossRef]
Figure 1. Structure of a VRFB.
Figure 1. Structure of a VRFB.
Energies 18 03996 g001
Figure 2. Model of the two stage DC-AC converter integrating a VRFB into the grid.
Figure 2. Model of the two stage DC-AC converter integrating a VRFB into the grid.
Energies 18 03996 g002
Figure 3. Schematic of the MMPC controller with PINN observer to estimate the parameters of the VRFB.
Figure 3. Schematic of the MMPC controller with PINN observer to estimate the parameters of the VRFB.
Energies 18 03996 g003
Figure 4. PINN modeling workflow.
Figure 4. PINN modeling workflow.
Energies 18 03996 g004
Figure 5. Test MSE comparison across different PINN architectures.
Figure 5. Test MSE comparison across different PINN architectures.
Energies 18 03996 g005
Figure 6. Histogram of prediction error between measured and predicted terminal voltage. The error distribution is sharply centered around zero, indicating high prediction accuracy.
Figure 6. Histogram of prediction error between measured and predicted terminal voltage. The error distribution is sharply centered around zero, indicating high prediction accuracy.
Energies 18 03996 g006
Figure 7. Simulation results for v 1 , i bat , P a c , and Q a c .
Figure 7. Simulation results for v 1 , i bat , P a c , and Q a c .
Energies 18 03996 g007
Figure 8. Simulation results for the grid voltages and currents.
Figure 8. Simulation results for the grid voltages and currents.
Energies 18 03996 g008
Figure 9. Battery current response without the PINN observer and under +25% VRFB parameter variation.
Figure 9. Battery current response without the PINN observer and under +25% VRFB parameter variation.
Energies 18 03996 g009
Figure 10. Battery current response with the PINN observer active under +25% VRFB parameter variation.
Figure 10. Battery current response with the PINN observer active under +25% VRFB parameter variation.
Energies 18 03996 g010
Figure 11. Comparison of the error on the battery current without and with the inclusion of the PINN observer in the control scheme under +25% VRFB parameter variation.
Figure 11. Comparison of the error on the battery current without and with the inclusion of the PINN observer in the control scheme under +25% VRFB parameter variation.
Energies 18 03996 g011
Figure 12. Setup to validate the proposed MMPC with the PINN observer for the VRFB parameters.
Figure 12. Setup to validate the proposed MMPC with the PINN observer for the VRFB parameters.
Energies 18 03996 g012
Figure 13. Experimental results of the battery current response without the PINN observer and under +25% VRFB parameter variation. (a) Reference step from 0 A to 80 A. (b) Reference step from 80 A to 0 A.
Figure 13. Experimental results of the battery current response without the PINN observer and under +25% VRFB parameter variation. (a) Reference step from 0 A to 80 A. (b) Reference step from 80 A to 0 A.
Energies 18 03996 g013
Figure 14. Experimental results of the battery current response with the PINN observer and under +25% VRFB parameter variation. (a) Reference step from 0 A to 80 A. (b) Reference step from 80 A to 0 A.
Figure 14. Experimental results of the battery current response with the PINN observer and under +25% VRFB parameter variation. (a) Reference step from 0 A to 80 A. (b) Reference step from 80 A to 0 A.
Energies 18 03996 g014
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.

Share and Cite

MDPI and ACS Style

Volpini, A.; Rokocakau, S.; Tresca, G.; Gemma, F.; Zanchetta, P. ANN-Enhanced Modulated Model Predictive Control for AC-DC Converters in Grid-Connected Battery Systems. Energies 2025, 18, 3996. https://doi.org/10.3390/en18153996

AMA Style

Volpini A, Rokocakau S, Tresca G, Gemma F, Zanchetta P. ANN-Enhanced Modulated Model Predictive Control for AC-DC Converters in Grid-Connected Battery Systems. Energies. 2025; 18(15):3996. https://doi.org/10.3390/en18153996

Chicago/Turabian Style

Volpini, Andrea, Samuela Rokocakau, Giulia Tresca, Filippo Gemma, and Pericle Zanchetta. 2025. "ANN-Enhanced Modulated Model Predictive Control for AC-DC Converters in Grid-Connected Battery Systems" Energies 18, no. 15: 3996. https://doi.org/10.3390/en18153996

APA Style

Volpini, A., Rokocakau, S., Tresca, G., Gemma, F., & Zanchetta, P. (2025). ANN-Enhanced Modulated Model Predictive Control for AC-DC Converters in Grid-Connected Battery Systems. Energies, 18(15), 3996. https://doi.org/10.3390/en18153996

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop