Next Article in Journal
Thermally Aware Design of Large-Format Batteries Driven by an Equivalent Circuit Network-Based Electro-Thermal Model
Next Article in Special Issue
Adaptive Dual-Anchor Fusion Framework for Robust SOC Estimation and SOH Soft-Sensing of Retired Batteries with Heterogeneous Aging
Previous Article in Journal
Coupling Model and Early-Stage Internal Short Circuits Fault Diagnosis for Gel Electrolyte Lithium-Ion Batteries
Previous Article in Special Issue
Experimental Comparison of Different Techniques for Estimating Li-Ion Open-Circuit Voltage
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Physics-Informed Neural Network-Based Intelligent Control for Photovoltaic Charge Allocation in Multi-Battery Energy Systems

by
Akeem Babatunde Akinwola
* and
Abdulaziz Alkuhayli
Electrical Engineering Department, College of Engineering, King Saud University, Riyadh 11421, Saudi Arabia
*
Author to whom correspondence should be addressed.
Batteries 2026, 12(2), 46; https://doi.org/10.3390/batteries12020046
Submission received: 26 October 2025 / Revised: 19 January 2026 / Accepted: 20 January 2026 / Published: 30 January 2026
(This article belongs to the Special Issue Control, Modelling, and Management of Batteries)

Abstract

The rapid integration of photovoltaic (PV) generation into modern power networks introduces significant operational challenges, including intermittent power production, uneven charge distribution, and reduced system reliability in multi-battery energy storage systems. Addressing these challenges requires intelligent, adaptive, and physically consistent control strategies capable of operating under uncertain environmental and load conditions. This study proposes a Physics-Informed Neural Network (PINN)-based charge allocation framework that explicitly embeds physical constraints—namely charge conservation and State-of-Charge (SoC) equalization—directly into the learning process, enabling real-time adaptive control under varying irradiance and load conditions. The proposed controller exploits real-time measurements of PV voltage, current, and irradiance to achieve optimal charge distribution while ensuring converter stability and balanced battery operation. The framework is implemented and validated in MATLAB/Simulink under Standard Test Conditions of 1000 W·m−2 irradiance and 25 °C ambient temperature. Simulation results demonstrate stable PV voltage regulation within the 230–250 V range, an average PV power output of approximately 95 kW, and effective duty-cycle control within the range of 0.35–0.45. The system maintains balanced three-phase grid voltages and currents with stable sinusoidal waveforms, indicating high power quality during steady-state operation. Compared with conventional Proportional–Integral–Derivative (PID) and Model Predictive Control (MPC) methods, the PINN-based approach achieves faster SoC equalization, reduced transient fluctuations, and more than 6% improvement in overall system efficiency. These results confirm the strong potential of physics-informed intelligent control as a scalable and reliable solution for smart PV–battery energy systems, with direct relevance to renewable microgrids and electric vehicle charging infrastructures.

1. Introduction

Solar photovoltaic (PV) technology has become a cornerstone of the global transition toward sustainable energy systems owing to its modularity, rapidly declining installation costs, and suitability for both centralized and distributed power generation [1]. Recent international cost benchmarks reported by global agencies confirm substantial long-term reductions in PV module prices, balance-of-system components, and installation expenditures [2]. Independent techno–economic studies further validate the sustained decline in capital and operational costs of PV systems worldwide [3]. As a result, the levelized cost of electricity (LCOE) of PV energy has decreased significantly, positioning PV among the most economically competitive renewable technologies [4]. Despite these advantages, the inherent intermittency and weather dependence of PV generation introduce operational challenges related to voltage stability, frequency regulation, and power quality, particularly in weak and islanded grid conditions [5].
To mitigate these challenges and enhance the reliability of PV-based systems, energy storage systems (ESS), particularly battery energy storage systems (BESS), have become indispensable components of modern renewable-energy architectures [6]. Recent comprehensive reviews on alternative battery chemistries, such as nickel–zinc systems, emphasize that reliability and degradation issues remain central challenges across battery technologies, thereby motivating the development of intelligent monitoring and control frameworks [7]. Among the available battery chemistries, lithium iron phosphate (LiFePO4, LFP) batteries have gained widespread adoption due to their high safety margin, long cycle life, and thermal stability when compared with nickel–manganese–cobalt (NMC) batteries and other lithium-ion chemistries [6,8]. In PV microgrids and grid-connected applications, LFP batteries are extensively deployed for peak shaving, load shifting, frequency regulation, voltage support, and continuity of power supply to critical loads [9]. Furthermore, the integration of BESS significantly improves microgrid resilience and operational autonomy during grid disturbances and outages [10].
However, the characteristic flat voltage–state-of-charge (SoC) profile of LFP batteries presents notable challenges for voltage-based SoC estimation and reliable charge balancing [11,12]. The balancing characteristics and SoC observability of LFP batteries differ fundamentally from those of NMC chemistries. Whereas NMC batteries exhibit a largely monotonic voltage–SoC relationship, LFP cells operate over an extended voltage plateau spanning a wide SoC range, which severely compromises voltage-based SoC observability during pack-level balancing [12]. Detailed comparative investigations have demonstrated that extremely small voltage differences among LFP cells in the plateau region may correspond to large internal SoC variations, making equalization significantly more difficult than in NMC packs [8,13]. These electrochemical limitations strongly motivate the development of advanced, adaptive, and physically consistent charge-balancing strategies for LFP-based energy-storage systems.
Accurate estimation of SoC and state of health (SoH) is therefore fundamental to ensuring operational safety, preventing overstressing, and maximizing usable battery capacity [14]. Traditional SoC/SoH estimation techniques can be broadly classified into model-based methods, data-driven approaches, and hybrid frameworks [15]. Model-based techniques such as equivalent circuit models, electrochemical models, and observer-based methods rely heavily on accurate parameter identification and often degrade under temperature variation and aging [16]. Data-driven approaches, including neural networks and deep-learning techniques, have demonstrated a strong ability to capture nonlinear battery behavior and enhance estimation accuracy [17]. Hybrid estimation strategies that integrate physical models with learning algorithms have recently emerged as a promising direction for improving robustness and long-term prediction reliability [18].
In multi-battery PV systems, maintaining balanced charging and discharging among parallel-connected battery modules is essential to achieve uniform aging, maximize usable capacity, and extend overall lifetime [19]. Variations in internal resistance, temperature distribution, degradation rate, and initial SoC among modules often result in uneven current sharing [20]. These imbalances may cause localized overcharging, thermal hotspots, loss of effective capacity, and accelerated degradation [21]. Such challenges become increasingly critical in safety-critical and data-scarce battery applications, such as spacecraft power systems, where accurate online modeling and health diagnosis are essential for reliable operation [22]. Moreover, temperature-dependent degradation effects in satellite lithium-ion batteries can be effectively captured through physics-informed neural-network modeling, even under data-limited operating conditions [23].
Conventional battery-management and equalization methods—including passive balancing, proportional–integral–derivative (PID) control, fuzzy logic approaches, and rule-based strategies—remain widely used due to their structural simplicity and low computational demands [24,25]. However, these techniques often struggle with the strong nonlinearities, uncertainties, and fast dynamics inherent in PV–battery systems [26]. Advanced model predictive control (MPC) offers improved dynamic performance but requires accurate system modeling and introduces a significant computational burden, which limits its real-time deployment in embedded microgrid controllers [27].
Recent advancements in artificial intelligence (AI) and machine learning (ML) have introduced powerful tools for energy-system modeling, battery diagnostics, and adaptive control [28]. Data-driven learning techniques such as deep neural networks and reinforcement learning have demonstrated strong potential in optimal charging strategies and PV power forecasting for PV–battery systems [29]. Nevertheless, purely data-driven models often require large training datasets, lack physical interpretability, and generalize poorly to unseen operating conditions [18].
To overcome these limitations, physics-informed neural networks (PINNs) have emerged as a promising hybrid learning paradigm that directly embeds physical laws into the optimization and training process [30]. By incorporating governing constraints derived from electrochemical behavior, charge conservation, and energy balance, PINNs achieve superior physical consistency and robustness compared with conventional neural networks [31]. Recent studies have reported the successful application of PINNs to battery thermal modeling, SoH estimation, lithium-ion degradation prediction, and dynamic behavior identification [32,33,34]. Their ability to integrate first-principle physics with data-driven adaptability makes PINNs highly attractive for complex nonlinear energy-storage systems.
Despite these advances, the application of PINNs to real-time charge allocation and SoC equalization in PV-connected multi-battery LFP systems remains largely unexplored [35]. Most prior studies address single-cell modeling or high-level energy-management layers, whereas comparatively fewer works investigate real-time converter-embedded balancing architectures for modular battery packs under fast dynamic operating conditions and coordinated thermal–SOC regulation [36,37,38].
In this work, a physics-informed neural-network-based charge-allocation strategy is proposed for PV-connected multi-battery LFP systems. The controller dynamically distributes charging currents among parallel battery modules using real-time SoC, voltage, and temperature feedback, while embedding electrochemical and electrical constraints directly into the learning process. The proposed methodology is implemented within a unified PV-battery-converter framework developed in MATLAB/Simulink, incorporating PV-array modeling, maximum-power-point tracking, bidirectional DC–DC conversion, and grid-interfaced inverter control. Comparative simulation studies demonstrate that the proposed PINN-based controller achieves superior SoC equalization accuracy, faster transient response, and higher energy-conversion efficiency than conventional PID and MPC strategies.

2. Materials and Methods

This study develops an intelligent control framework that integrates photovoltaic (PV) generation, multi-battery energy storage, and grid interconnection using a Physics-Informed Neural Network (PINN)—based Battery Management System (BMS). The complete model was implemented in MATLAB/Simulink R2023a and evaluated under variable irradiance and load conditions. The proposed framework integrates data-driven learning with embedded physical constraints to ensure optimal charge allocation among parallel-connected battery modules while maintaining system stability and converter efficiency and extending battery lifespan.

2.1. System Architecture

The proposed system architecture consists of a PV array, a maximum power point tracking (MPPT) controller, a bidirectional DC–DC converter, a LiFePO4 battery bank, a Battery Management System (BMS), and a Voltage Source Converter (VSC) for grid interfacing.
The PV array is modeled to capture the conversion of solar irradiance into electrical power under dynamically varying irradiance and temperature conditions [39]. To ensure maximum energy harvesting, an MPPT algorithm regulates the converter duty cycle to maintain continuous operation at the optimal power point.
The bidirectional DC–DC converter transfers energy to the batteries during charging and delivers energy to the DC link during discharging operation. The converter switching signals are dynamically adjusted by the PINN-based BMS to ensure efficient DC-link voltage regulation and stable power flow [5].
The energy storage system consists of parallel-connected Lithium Iron Phosphate (LiFePO4) battery modules. Each module is equipped with sensors for real-time measurement of voltage, current, state of charge (SoC), and temperature. These measurements are continuously transmitted to the BMS, which adaptively balances charge currents to compensate for SoC deviations, variations in internal resistance, and capacity degradation [20].
The management of LFP batteries is particularly challenging due to their flat voltage plateau, where conventional voltage-based balancing strategies become ineffective. This necessitates a SoC-driven intelligent balancing approach.
The SoC signals provided by the PINN controller incorporate realistic estimation uncertainties commonly encountered in practical BMS implementations. Based on widely adopted estimation techniques—such as extended Kalman filtering or Coulomb counting with voltage calibration—the SoC inputs are modeled with an uncertainty bound of ±2–3%. The physics-informed structure of the proposed controller inherently accommodates these uncertainties, as the online learning mechanism dynamically compensates for estimation bias while preserving physical consistency through embedded conservation laws.
The VSC provides the grid interface, ensuring synchronization with grid voltage and frequency, regulating active and reactive power, and complying with power-quality standards [40]. When PV generation exceeds local load demand, surplus power is exported to the grid. During periods of insufficient irradiance, power is imported to maintain stable system operation.
The complete PV–multi-battery Simulink model, incorporating the PV array, MPPT control, DC–DC converter, battery storage system, and grid interface, is illustrated in Figure 1.

2.2. PINN-Based Control Strategy

The proposed Battery Management System (BMS) employs a Physics-Informed Neural Network (PINN) to generate real-time adaptive charge-balancing commands for the four battery cells. Unlike conventional proportional-integral-derivative (PID) or rule-based controllers, the PINN explicitly embeds physical constraints—namely charge conservation and state-of-charge (SoC) equalization—directly into its learning objective. This integration enables physically consistent and dynamically adaptive charge allocation under varying operating conditions.
The neural network utilizes the hyperbolic tangent (tanh) activation function and computes a composite physics-informed loss function that simultaneously penalizes:
1.
SoC variance among battery cells (equalization objective),
2.
Violations of charge conservation, and
3.
Excessive dynamic variations in cell behavior.
At each control interval, the PINN receives the instantaneous SoC values of all battery cells as inputs and generates four continuous control outputs, one for each battery module. These outputs are subsequently mapped into discrete switching actions that determine whether each cell should be connected for charging or temporarily isolated. Cells with lower SoC are prioritized for charging, while cells with higher SoC reduce or suspend charging to prevent imbalance and overcharging.
The complete operational procedure—including network initialization, physics-informed loss computation, forward propagation through the neural network, and switching decision logic—is illustrated in Figure 2.
During real-time operation, PINN continuously processes the measured SoC, PV power, irradiance, and temperature signals to generate optimal current allocation commands. This dynamic prioritization ensures rapid convergence toward uniform SoC levels across the battery bank while maintaining stable converter operation and safe charging behavior without the need for offline retraining.
The controller initializes the neural network weights, forms the SoC input vector, computes the physics-informed loss (including charge conservation and SoC equalization), performs the forward neural-network pass, and generates switching signals (S1–S8) for charging or isolating each battery cell.

2.3. Grid Integration and Supervisory Control

The grid integration subsystem enables bidirectional power exchange between the PV-battery system and the utility grid. Passive filters and protection devices are incorporated to suppress harmonic distortion and provide fault isolation under abnormal operating conditions. A supervisory control layer coordinates data acquisition, real-time control execution, and performance logging across the PV array, MPPT controller, DC–DC converter, and battery subsystems, thereby ensuring stable and reliable overall system operation.

2.4. Simulation Setup

The system was simulated under Standard Test Conditions (STC) with an irradiance of 1000 W/m2 and an ambient temperature of 25 °C. All models and control algorithms were implemented and validated in MATLAB/Simulink R2023a.
To ensure both numerical accuracy and a realistic representation of a digital control platform, the simulation was configured with a variable-step ode45 (Dormand–Prince) solver, a maximum step size of 100 µs, and a relative tolerance of 1 × 10−3. The MPPT and PINN control algorithms were executed with a sampling interval of 10 ms, reflecting a practical update rate for real-time digital signal processor (DSP) implementation.
This configuration guarantees that the observed system dynamics and convergence of the control signals are physical and not numerical artifacts. The PINN weights were updated iteratively in real time throughout the simulation process. The key simulation parameters and operating conditions are summarized in Table 1.

2.5. Benchmark Controller Design

To ensure a fair and rigorous comparative evaluation, both the conventional PID and the Model Predictive Control (MPC) schemes were carefully designed and optimized under identical operating conditions.
PID Controller: The PID gains were initially tuned using the Ziegler–Nichol’s method and subsequently refined through extensive time-domain simulations to achieve optimal transient response, minimal overshoot, and low steady-state error.
MPC Controller: The MPC was implemented with a prediction horizon of 10 steps and a control horizon of 2 steps. The cost function penalized both tracking error and control effort. The controller was supplied with an accurate discrete-time state-space model of the plant, representing a best-case scenario for model-based predictive control.

3. Mathematical Modeling

The proposed Battery Management System (BMS) is modeled using a Physics-Informed Neural Network (PINN) framework that integrates data-driven learning with embedded electrochemical and safety constraints. This hybrid modeling approach ensures accurate charge balancing, enhanced dynamic response, and strict energy conservation in multi-battery photovoltaic (PV) systems. Such advanced control strategies align with recent developments in microgrid stabilization, where storage-enabled systems and AI-driven controllers play a critical role in enhancing grid resilience under high renewable energy penetration and intermittency [9,10].

3.1. Physics-Informed Neural Network (PINN) Framework

3.1.1. Network Inputs and Forward Mapping

The input to the PINN is the state-of-charge (SoC) vector of the N b battery modules at a discrete time step k .
s k = S o C 1 k , S o C 2 k , , S o C N b k R N b
A compact feedforward neural network with one hidden layer is implemented as:
z ( 1 ) = f act W ( 1 ) s + b ( 1 ) ,   u = f act W ( 2 ) z ( 1 ) + b ( 2 )
where u R N b is the vector of continuous control outputs.
Since the network uses a hyperbolic tangent activation function, each element satisfies.
u i ( 1 , 1 ) .
The sign of each control signal determines the balancing action:
u i < 0 : Battery i is prioritized for charging relative to the pack average.
u i > 0 : Battery i is discharged or temporarily disconnected from charging.

3.1.2. Physics-Informed Loss Function

To embed physical constraints directly into the learning process, the instantaneous loss function is formulated as:
L k = λ e q J e q k + λ c o n s J c o n s k
with weighting coefficients λ e q = 1 and λ c o n s = 0.1 .
The equalization term is defined as the pack SoC variance:
J e q k = Var S o C k
The conservation term enforces energy balance:
J c o n s k = i = 1 N b   Δ S o C i k 2
where Δ S o C i [ k ] = S o C i [ k ] S o C i [ k 1 ] represents the change in SoC.
To promote convergence of each battery’s SoC toward the mean, a gradient target for each output is formed as:
g i t a r g e t k = α S o C i k S o C ¯ k
In the MATLAB implementation, this corresponds to the line:
g r a d o u t = 2 × S O C a v g S O C

3.1.3. Online Gradient Updates

The gradient vector is:
g k = g 1 t a r g e t , g 2 t a r g e t , , g N b t a r g e t
The weight and bias update rules are:
Δ W ( 2 ) = γ   g [ k ] ( z 1 [ k ] ) , Δ b 2 = γ   g k
Δ W ( 1 ) = γ ( W ( 2 ) ) g [ k ] f ( z ( 1 ) [ k ] ) s [ k ] , Δ b 1 = γ ( W 2 ) g [ k ] f ( z 1 [ k ] )
where γ is the learning rate (set to 0.01 in the code), and denotes elementwise multiplication.
For the hyperbolic tangent activation, the derivative is:
f z = 1 z 2
The online update step is then:
W ( 2 ) W ( 2 ) γ   Δ W 2 ,   b 2 b 2 γ   Δ b 2
W ( 1 ) W ( 1 ) γ   Δ W 1 ,   b 1 b 1 γ   Δ b 1
This lightweight, approximate online gradient update continuously tunes the network weights toward reducing SoC deviations and achieving dynamic equilibrium.

3.1.4. Mapping Network Outputs to Switch Signals

To mitigate frequent switching of the power converters which can induce stress on hardware components, the discrete control logic incorporates a hysteresis band. Rather than a single threshold, two thresholds are defined: an upper threshold δ t h , h i g h and a lower threshold δ t h , l o w , where δ t h , h i g h > δ t h , l o w .
The switching rule for each battery i is now defined as follows:
  • If S o C i [ k ] < S o C ¯ [ k ] δ t h , h i g h , the battery is identified as significantly undercharged, and its control switches are set to 1 (charging state).
  • The battery remains in the charging state until S o C i [ k ] S o C ¯ [ k ] δ t h , l o w , at which point charging is halted.
  • Conversely, if S o C i [ k ] > S o C ¯ [ k ] + δ t h , h i g h , the battery is disconnected (switches set to 0).
  • It remains disconnected until S o C i [ k ] S o C ¯ [ k ] + δ t h , l o w .
This hysteresis mechanism ensures that minor fluctuations around the average SoC do not trigger control actions, thereby promoting stable switching behavior and enhancing the operational lifespan of the system’s power electronic components. For the simulations in this study, the values δ t h , h i g h = 0.015 and δ t h , l o w = 0.005 were used.
Primary Tier: External Hard-Limit Enforcement. The BMS continuously monitors the current I b , i [ k ] , voltage V b , i [ k ] , and temperature T i [ k ] of each battery module. These parameters are checked against manufacturer-defined safe operating limits (e.g., maximum C-rate, voltage windows, and thermal thresholds). This enforcement is implemented as a hierarchical, non-negotiable safety layer external to the PINN. If any limit is violated, the supervisory controller immediately overrides the PINN’s command and isolates the corresponding battery module by disabling its converter switches, thereby preventing unsafe operation during fast transients.
Secondary Tier: Physics-Informed Soft Guidance. Alongside hard enforcement, these constraints are indirectly integrated into the control logic through PINN’s physics-informed loss function L [ k ] . While C-rate and temperature are not direct inputs, the charge conservation term J c o n s [ k ] = ( i = 1 N b   Δ S o C i [ k ] ) 2 inherently penalizes control actions that cause rapid SoC changes, which are a direct result of high C-rates. Similarly, the equalization term J e q [ k ] discourages states that lead to excessive current in individual cells. By penalizing physically inconsistent states, the online gradient updates guide the PINN towards control policies that are naturally aligned with safe operating regions, reducing the reliance on the external safety layer.

3.1.5. Practical Constraints and Safety Checks

At every control step, the following safety and operational constraints must be enforced:
I b , i k I m a x , i , I m a x , i
V b , i [ k ] within manufacturer-defined voltage limits
T i [ k ] within safe thermal range
If temperature T i or voltage V b , i exceed safe limits, the corresponding battery module is temporarily isolated from the charging process.
Additionally, the rate of SoC change is limited to comply with the electrochemical C-rate constraints of battery chemistry.

3.1.6. Combined Loss and Training Objective

All objectives are integrated into a single training objective used for continuous online adaptation:
L [ k ] = 1 N b i = 1 N b   ( S o C i k S o C ¯ k ) 2 + β i = 1 N b   Δ S o C i k 2 + γ s a f e t y C s a f e t y
where the first term promotes SoC equalization, the second enforces charge conservation, and the third penalizes any safety constraint violations.
The parameter β = 0.1 defines the strength of the conservation term, consistent with the implemented MATLAB code.
The instantaneous network gradient is derived from the proportional target:
g i S o C i S o C ¯
and is used within the outer-product update rule for continuous fine-tuning of the PINN controller parameters.
This hybrid approach ensures that the balancing process remains stable, energy-conserving, and adaptive to real-time conditions without requiring offline retraining.

4. Results and Discussion

Figure 3 illustrates the dynamic response of the photovoltaic (PV) subsystem under Standard Test Conditions (STC), with a constant irradiance of 1000 W/m2 and an ambient temperature of 25 °C. The results demonstrate effective and stable maximum power point tracking (MPPT) performance. The PV output power rapidly converges to a steady-state value of approximately 95 kW, confirming successful extraction of maximum available solar power.
A quantitative transient analysis shows a fast-settling time of approximately 0.5 s (within ±2% of the final value) with a negligible overshoot of less than 1.6%, indicating excellent dynamic stability. Following this transient period, the PV terminal voltage stabilizes within the 230–250 V range, operating predominantly around 240 V, which confirms reliable voltage regulation during steady-state conditions.
The steady-state response is characterized by low-amplitude voltage and power ripples, which arise from the inherent pulse-width modulation (PWM) switching of the DC–DC power converter. The measured peak-to-peak ripple is approximately 4 V (1.7%) for the PV voltage and 2 kW (2.1%) for the PV power, both of which remain well within acceptable engineering limits. These low ripple values confirm high-quality voltage regulation and stable power delivery.
The MPPT controller dynamically adjusts the converter duty cycle within the range of 0.35–0.45, as shown in the bottom subplot of Figure 3. This confirms that the proposed control system continuously maintains operation at the optimal power point. Overall, the results in Figure 3 validate the robustness of the MPPT algorithm and power converter, ensuring efficient energy harvesting and stable PV system operation under constant environmental conditions.
Having validated the steady-state MPPT performance under Standard Test Conditions, the system’s robustness is next evaluated under a severe irradiance disturbance to assess its dynamic response and adaptability. Figure 4 shows the system performance under dynamic environmental conditions, demonstrating robust and stable operation despite significant fluctuations in irradiance while maintaining a constant ambient temperature. As observed in the irradiance profile (top subplot), the irradiance drops sharply from approximately 1000 W/m2 to 200 W/m2 around the 2 s mark, resulting in a corresponding reduction in PV output power from nearly 100 kW to approximately 25 kW, as reflected in the PV power response.
Throughout this transient disturbance, the PV voltage remains well regulated within the range of 150–230 V, confirming the effectiveness of the voltage regulation and MPPT control loops. At the same time, the duty cycle dynamically adjusts within the range of 0.35–0.45 to maintain optimal power point tracking and ensure smooth power recovery.
During this test, the ambient temperature is maintained constant at 25 °C, allowing the controller’s response to irradiance-induced disturbances to be evaluated independently of thermal effects. Despite the severe irradiance variation, the controller successfully preserves system stability and maintains efficient energy harvesting. These results clearly demonstrate the adaptive capability and robustness of the PINN-based control strategy under realistic, time-varying operating conditions.
Figure 5 illustrates the performance of the Physics-Informed Neural Network (PINN) model in balancing the State of Charge (SoC) among four battery cells over time. Each colored line represents the SoC trajectory of an individual cell, while the magenta line denotes the average SoC of the entire battery pack. A significant initial imbalance is evident, with cells starting between approximately 70% and 90% SoC. As the simulation progresses, the PINN controller dynamically prioritizes charge allocation to the lower-SoC cells, guiding all values to converge rapidly toward the pack average. This successful convergence, achieved without overshoot or oscillation, demonstrates effective real-time SoC equalization and a substantial reduction in cell-to-cell deviation. The results confirm that the PINN model successfully enforces physical constraints—such as charge conservation and SoC equalization—directly within its learning framework, leading to improved energy uniformity, enhanced system stability, and the potential for extended battery life.
To further assess the robustness of the proposed controller beyond a single operating scenario, its performance was evaluated under a challenging linear initial SoC distribution. As shown in Figure 6, the battery cells start with a pronounced imbalance, with initial SoC values of approximately 88%, 82%, 75%, and 70%. The proposed PINN-based controller dynamically reallocates charging current toward the lower-SoC cells, while regulating the higher-SoC cells to prevent overcharging. As a result, all cell SoC trajectories converge smoothly toward the pack-average value within approximately 6.4 s, without oscillations or overshoot.
This behavior confirms the stability, adaptability, and generalization capability of the proposed balancing strategy under significantly different initial conditions. The result further demonstrates that equalization performance is not dependent on a specific initial SoC configuration but rather represents a fundamental property of the physics-informed learning framework.
Figure 7 presents the sensor interface and data acquisition subsystem integrated within the Physics-Informed Neural Network (PINN)–based battery balancing framework. The subsystem acquires real-time voltage and current measurements from the four LiFePO4 battery modules, denoted as V1–V4 and I1–I4, which constitute the primary physical inputs to the PINN controller.
At the illustrated operating instant, the measured voltages reflect clear inter-cell variation, with representative values such as V1 = 75.72 V and V4 = 62.15 V, directly indicating a non-uniform State of Charge (SoC) distribution across the battery pack. In contrast, the current sensors report uniform discharge currents of approximately −53.31 A for all modules (I1–I4), confirming common pack current flow through the balancing structure at that instant. This simultaneous availability of heterogeneous voltage signals and homogeneous current flow is essential for enforcing charge conservation and SoC equalization constraints within the control law.
Prior to neural-network processing, all voltage and current signals undergo signal conditioning and normalization to ensure numerical stability and learning consistency. The conditioned signals are then processed in parallel by the PINN to compute adaptive, physically consistent switching commands for real-time charge redistribution. This tightly coupled sensing and control architecture forms the real-time physical foundation for accurate, stable, and reliable multi-cell battery energy management.
Figure 8 presents the steady-state operation of the grid-connected inverter over a long-duration interval through the measured three-phase grid voltage V a b c and current I a b c envelopes. The upper subplot confirms that the inverter maintains balanced and stable grid voltages within the range of 200–250 V per phase, verifying accurate grid synchronization and compliant voltage regulation at the point of common coupling.
The lower subplot depicts the corresponding three-phase grid currents over the same time window. Following the transient event around 6–8 s, the current magnitude increases smoothly and stabilizes within the 1000–1500 A range, consistent with increased active power injection into the grid. The balanced nature of the current envelopes confirms stable long-term power delivery without oscillatory behavior.
These results verify that the grid integration subsystem preserves system-level stability, voltage compliance, and balanced power exchange during sustained steady-state operation under the proposed PINN-based control framework.
Figure 9 presents a high-resolution view of the three-phase grid voltage V a b c and current I a b c waveforms under steady-state operation. The voltage waveforms remain perfectly sinusoidal and balanced, with a peak amplitude of approximately 230 V per phase, confirming precise phase synchronization and stable grid coupling.
The corresponding grid currents are also sinusoidal and phase-aligned with their respective voltages, confirming unity power factor operation and indicating that the inverter injects purely active power with negligible reactive components. The smooth waveform profiles and absence of distortion signatures confirm low harmonic content and excellent power quality.
This high-fidelity waveform validation complements the long-term stability assessment of Figure 8 and confirms that the proposed control strategy ensures both macro-level grid stability and micro-level power quality compliance.
Figure 10 presents a sensitivity analysis of how the Conservation Weight ( λ c o n s ) and the Equalization Weight ( λ e q ) in a control system’s loss function affects key performance indicators. Figure 10a shows that Settling Time is minimized (dark blue, < 2   s ) when the Conservation Weight is low and increases significantly with a higher λ e q . Figure 10b indicates that Control Effort is minimized (dark blue, ≈60) when both weights are low and increases substantially as both weights increase. Figure 10c demonstrates that Final SoC Variance (State of Charge) is minimized (dark blue, ≈ 0.01 % ) when λ e q is low, regardless of λ c o n s . The white square in all plots marks a specific operating point, while the red circle in Figure 10a indicates the combination yielding the minimum settling time.
The settling time for State of Charge (SoC) balancing is defined as the time required for the maximum deviation of any individual battery cell from the average pack SoC to drop below a 1% threshold and remain within this bound. This definition provides a strict and quantitative measure of convergence speed toward a well-balanced operating state. To ensure a fair comparison, all three controllers—PID, MPC, and the proposed PINN—were evaluated under identical operating conditions, including the same initial SoC imbalance, constant load profile, and stable environmental inputs.
As quantified in Figure 11, the proposed PINN controller achieves the fastest convergence, with a settling time of 8.2 s, compared to 14.3 s for the MPC controller and 18.7 s for the conventional PID controller. The superior convergence speed of the PINN is attributed to its physics-informed structure, which enables proactive charge allocation through embedded conservation laws and SoC equalization objectives. In contrast, the PID controller suffers from reactive oscillatory behavior, while the MPC exhibits additional delay due to real-time optimization. This rapid convergence is particularly important for photovoltaic-powered battery systems operating under fast irradiance fluctuations, as it directly enhances charge uniformity, system efficiency, and battery lifespan.
The superior performance of the proposed PINN controller is further emphasized through its relative percentage improvement over conventional methods, as summarized in Figure 12. Based on the measured settling times, the PINN achieves a 43% faster convergence than the Model Predictive Control (MPC) method and a 56% faster convergence than the traditional Proportional–Integral–Derivative (PID) controller. These performance gains are not incremental but represent a substantial advancement in control capability for multi-battery energy-storage systems. This improvement directly results from the ability of the PINN to integrate the pattern-recognition strength of neural networks with the governing physical laws of charge conservation and electrochemical dynamics. By embedding physics within its learning process, the PINN adapts in real time and optimally allocates charge across cells. These results clearly demonstrate that a physics-informed, data-driven strategy provides a more robust and efficient solution to the nonlinear and highly coupled problem of dynamic charge balancing when compared with both conventional PID and advanced model-based MPC techniques.
The quantitative performance comparison in Table 2 clearly highlights the superior effectiveness of the proposed Physics-Informed Neural Network (PINN) controller relative to conventional strategies. In the present study, the PID controller exhibits slower convergence and larger steady-state deviations, while the MPC approach provides moderate improvements in both transient behavior and efficiency. In contrast, the PINN framework consistently outperforms both baselines across all evaluated metrics.
Against these benchmarks, the PINN controller demonstrates marked advancements across all evaluated performance indices. Most notably, it reduces the settling time to only 8.2 s, corresponding to a 43% improvement over MPC and a 56% improvement relative to PID. This accelerated convergence is accompanied by superior steady-state accuracy, achieving a final State-of-Charge (SoC) variance of only 0.08%, which is significantly lower than both conventional approaches. Furthermore, the PINN increases the system efficiency to 96.8%, exceeding MPC performance by 6.9 percentage points, while simultaneously minimizing transient effects, as evidenced by its negligible overshoot of only 0.9%.
Collectively, these comprehensive performance gains validate the capability of the PINN framework to unify physical constraints with data-driven learning. This synergy enables the controller not only to surpass classical PID methods but also to exceed the performance of advanced model-based MPC techniques, thereby marking a significant step forward in intelligent charge balancing for photovoltaic-powered multi-battery energy systems.

5. Conclusions

This study has presented a Physics-Informed Neural Network (PINN)-based intelligent charge allocation strategy for photovoltaic (PV)-powered multi-battery energy storage systems. The proposed approach effectively maintains charge balance, enforces energy conservation, and significantly enhances overall system efficiency. Unlike conventional control techniques such as PID and rule-based balancing, the PINN explicitly embeds physical laws into its learning framework, enabling adaptive and physically consistent decision-making under diverse operating conditions.
Comprehensive simulation results demonstrate that the proposed control strategy achieves rapid and stable State of Charge (SoC) equalization, reduced inter-cell imbalance, and minimized energy losses. The system exhibits smooth converter operation, fast transient response, stable duty-cycle behavior, and well-balanced grid voltage and current waveforms, all converging efficiently to steady-state operation. Moreover, the use of real-time physics-informed loss functions enables continuous online adaptation without external retraining, which is a critical requirement for autonomous energy systems operating under uncertain environmental and load variations.
Overall, this work confirms that integrating deep learning with physics-based modeling provides a powerful and reliable control paradigm for multi-battery energy storage systems. The proposed PINN framework offers a scalable, stable, and energy-efficient solution for next-generation renewable energy applications, including PV microgrids, electric vehicle charging infrastructures, and grid-supporting battery energy storage systems.

6. Research Limitations

While the proposed Physics-Informed Neural Network (PINN)-based framework has demonstrated strong performance in balancing multi-battery systems through MATLAB/Simulink validation, this study has several limitations that outline a clear path for future research.
First, the scope was intentionally limited to a simulation-based proof-of-concept under controlled Standard Test Conditions (STC). While this provides a solid foundation, it does not capture the full spectrum of real-world uncertainties, such as sensor noise, communication delays, fluctuating irradiance, and variable load profiles. The current constraint-handling strategy relies on a primary layer of external hard limits for critical parameters like C-rate and temperature. A logical and valuable extension would be to formally integrate these electrochemical and thermal constraints directly into the PINN’s loss function, transitioning from a safety-by-enforcement to a safety-by-design paradigm.
Second, practical challenges related to embedded hardware implementation and computational latency on resource-constrained devices were not addressed. Investigating the deployment of a lightweight PINN on a real-time microcontroller or DSP is an essential next step.
Finally, the scalability to larger battery banks and the impact of systematic hyperparameter tuning require further extensive study. The performance under different aging states (State of Health, SOH) of the batteries also remains an open question.
By systematically addressing these aspects—experimental prototyping, direct constraint embedding, hardware-in-the-loop testing, and scalability analysis—the PINN-based control strategy can be matured into a robust solution for practical renewable microgrids, electric vehicle charging infrastructures, and industrial-scale battery energy storage systems.
The method scales as O(N_b2) due to matrix operations in the fully connected layers. For large-scale systems, we propose a modular architecture where smaller PINN controllers manage battery modules in parallel, coordinated by a supervisory controller. This approach maintains real-time feasibility while preserving the benefits of physics-informed learning.

Author Contributions

Conceptualization, A.B.A. and A.A.; methodology, A.B.A.; software, A.B.A.; validation, A.B.A. and A.A.; formal analysis, A.B.A.; investigation, A.B.A.; resources, A.A.; data curation, A.B.A.; writing—original draft preparation, A.B.A.; writing—review and editing, A.B.A. and A.A.; visualization, A.B.A.; supervision, A.A.; project administration, A.A.; funding acquisition, A.A. All authors have read and agreed to the published version of the manuscript.

Funding

The research was funded by the Ongoing Research Funding Program (ORF-2025-258), King Saud University, Riyadh, Saudi Arabia.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed at the corresponding author.

Acknowledgments

The authors thank the anonymous reviewers for their valuable comments and acknowledge the support of King Saud University through the Ongoing Research Funding Program (ORF-2025-258).

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ACAlternating Current
AIArtificial Intelligence
BMSBattery Management System
DC–DCDirect-Current to Direct-Current (converter)
EVElectric Vehicle(s)
ESSEnergy Storage System(s)
LiFePO4Lithium Iron Phosphate (battery chemistry)
MLMachine Learning
MPPMaximum Power Point
MPPTMaximum Power Point Tracking
MPCModel Predictive Control
PIDProportional–Integral–Derivative (controller)
PINNPhysics-Informed Neural Network
PVPhotovoltaic
PWMPulse Width Modulation
SoCState of Charge
STCStandard Test Conditions
VabcThree-phase Grid Voltages (phases a, b, c)
IabcThree-phase Grid Currents (phases a, b, c)
VPVPhotovoltaic Array Voltage
VSCVoltage Source Converter

References

  1. International Renewable Energy Agency (IRENA). Renewable Power Generation Costs in 2023; IRENA: Abu Dhabi, United Arab Emirates, 2024; Available online: https://www.irena.org/Publications (accessed on 15 November 2025).
  2. National Renewable Energy Laboratory (NREL). Annual Technology Baseline (ATB): Solar Photovoltaics; NREL: Golden, CO, USA, 2024. Available online: https://atb.nrel.gov (accessed on 25 November 2025).
  3. Ramasamy, V.; Zuboy, J.; Woodhouse, M. U.S. Solar Photovoltaic System and Energy Storage Cost Benchmarks: Q1 2023; NREL/TP-7A40-87303; National Renewable Energy Laboratory: Golden, CO, USA, 2023. Available online: https://www.nrel.gov/docs/fy23osti/87303.pdf (accessed on 15 January 2026).
  4. Lazard’s Levelized Cost of Energy Analysis, Version 17.0; Lazard Ltd.: New York, NY, USA, June 2024. Available online: https://www.energy.gov/sites/default/files/2024-12/34-%20Exh.%20FF-%20Lazard’s.pdf (accessed on 15 January 2026).
  5. Rocabert, J.; Luna, A.; Blaabjerg, F.; Rodríguez, P. Control of power converters in AC microgrids. IEEE Trans. Power Electron. 2012, 27, 4734–4749. [Google Scholar] [CrossRef] [Scilit]
  6. Evro, S.; Ajumobi, A.; Mayon, D.; Tomomewo, O.S. Navigating battery choices: A comparative study of lithium iron phosphate and nickel manganese cobalt battery technologies. Future Batter. 2024, 4, 100007. [Google Scholar] [CrossRef] [Scilit]
  7. Bello, I.T.; Raza, H.; Michael, A.T.; Muneeswara, M.; Tewari, N.; Bingsen, W.; Cheung, Y.N.; Choi, Z.; Boles, S.T. Charging Ahead: The Evolution and Reliability of Nickel–Zinc Battery Solutions. Energy Environ. Mater. 2025, 7, e12505. [Google Scholar] [CrossRef] [Scilit]
  8. Zubi, G.; Dufo-López, R.; Carvalho, M.; Pasaoglu, G. The lithium-ion battery: State of the art and future perspectives. Renew. Sustain. Energy Rev. 2018, 89, 292–308. [Google Scholar] [CrossRef] [Scilit]
  9. Zhao, C.; Andersen, P.B.; Træholt, C.; Hashemi, S. Grid-connected battery energy storage system: A review on application and integration. Renew. Sustain. Energy Rev. 2023, 182, 113400. [Google Scholar] [CrossRef] [Scilit]
  10. Hossain, M.I.; Anonto, H.Z.; Shufian, A.; Pathik, B.B.; Mannan, M.A.; Rashid, A.; Biswas, P. Enhancing microgrid resilience through integrated grid-forming and grid-following inverter strategies for solar PV battery control and fault ride-through. Sci. Rep. 2025, 15, 40078. [Google Scholar] [CrossRef] [Scilit]
  11. Tian, A.; Hu, Z.; Yu, H.; Jiang, J. State-of-Charge Estimation of LiFePO4 Batteries by Voltage–Expansion Force Fusion. J. Electrochem. Energy Convers. Storage 2026, 23, 011011. [Google Scholar] [CrossRef] [Scilit]
  12. Tang, X.; Zou, C.; Wik, T.; Yao, K.; Xia, Y.; Wang, Y. Run-to-Run Control for Active Balancing of Lithium Iron Phosphate Battery Packs. IEEE Trans. Power Electron. 2020, 35, 1499–1512. [Google Scholar] [CrossRef] [Scilit]
  13. Hu, C.; Ma, L.; Guo, S.; Guo, G.; Han, Z. Deep learning enabled state-of-charge estimation of LiFePO4 batteries: A systematic validation on state-of-the-art charging protocols. Energy 2022, 246, 123404. [Google Scholar] [CrossRef] [Scilit]
  14. Yang, L.; Ren, Y. Physics-informed neural network for SOH, remaining useful life, and degradation path prediction of lithium-ion batteries. Appl. Energy 2025, 398, 126427. [Google Scholar] [CrossRef] [Scilit]
  15. Yao, L.; Xu, S.; Tang, A.; Zhou, F.; Hou, J.; Xiao, Y.; Fu, Z. A Review of Lithium-Ion Battery State of Health Estimation and Prediction Methods. World Electr. Veh. J. 2021, 12, 113. [Google Scholar] [CrossRef] [Scilit]
  16. Hannan, M.A.; Lipu, M.S.H.; Hussain, A.; Mohamed, A. A review of lithium-ion battery state of charge estimation and management system in electric vehicle applications: Challenges and recommendations. Renew. Sustain. Energy Rev. 2017, 78, 834–854. [Google Scholar] [CrossRef] [Scilit]
  17. Chemali, E.; Kollmeyer, P.J.; Preindl, M.; Emadi, A. Long Short-Term Memory Networks for Accurate State-of-Charge Estimation of Li-Ion Batteries. IEEE Trans. Ind. Electron. 2018, 65, 6730–6739. [Google Scholar] [CrossRef] [Scilit]
  18. Navidi, S.; Thelen, A.; Li, T.; Hu, C. Physics-Informed Machine Learning for Battery Degradation Diagnostics: A Comparison of State-of-the-Art Methods. Energy Storage Mater. 2024, 68, 103343. [Google Scholar] [CrossRef] [Scilit]
  19. Al-Amin, M.; Barai, A.; Ashwin, T.R.; Marco, J. An Insight to the Degradation Behaviour of the Parallel Connected Lithium-Ion Battery Cells. Energies 2021, 14, 4716. [Google Scholar] [CrossRef] [Scilit]
  20. Shimura, J.; Onodera, K.; Watanabe, H.; Shitanda, I.; Itagaki, M. Current Distribution Simulation of Parallel-Connected Modules Using Degraded Lithium-Ion Battery Cells. EES Batter. 2025, 1, 913–921. [Google Scholar] [CrossRef] [Scilit]
  21. Luca, R.; Whiteley, M.; Neville, T.; Tranter, T.; Weaving, J.; Marco, J.; Shearing, P.R.; Brett, D.J.L. Current Imbalance in Parallel Battery Strings Measured Using a Hall-Effect Sensor Array. Energy Technol. 2021, 9, 2001014. [Google Scholar] [CrossRef] [Scilit]
  22. Fu, H.; Liu, Z.; Cui, K.; Du, Q.; Wang, J.; Shi, D. Physics-Informed Neural Network for Spacecraft Lithium-Ion Battery Modeling and Health Diagnosis. IEEE/ASME Trans. Mechatron. 2024, 29, 3546–3555. [Google Scholar] [CrossRef] [Scilit]
  23. Wang, F.; Zhai, Z.; Di, Y.; Zhao, Z.; Chen, X. Physics-Informed Neural Network for Satellite Battery Degradation Estimation Based on an Extreme Segment Data within 2 min. IEEE Trans. Ind. Electron. 2025, 72, 9748–9757. [Google Scholar] [CrossRef] [Scilit]
  24. Lu, L.; Han, X.; Li, J.; Hua, J.; Ouyang, M. A Review on the Key Issues for Lithium-Ion Battery Management in Electric Vehicles. J. Power Sources 2013, 226, 272–288. [Google Scholar] [CrossRef] [Scilit]
  25. Shaout, A.K.; Brauchler, Z. Fuzzy Battery Manager: Charging and Balancing Rechargeable Battery Cells with Fuzzy Logic. Electronics 2025, 14, 1470. [Google Scholar] [CrossRef] [Scilit]
  26. Batiyah, S.; Sharma, R.; Abdelwahed, S.; Alhosaini, W.; Aldosari, O. Predictive Control of PV/Battery System under Load and Environmental Uncertainty. Energies 2022, 15, 4100. [Google Scholar] [CrossRef] [Scilit]
  27. Hu, J.; Shan, Y.; Guerrero, J.M.; Ioinovici, A.; Chan, K.W.; Rodriguez, J. Model Predictive Control of Microgrids—An Overview. Renew. Sustain. Energy Rev. 2021, 136, 110422. [Google Scholar] [CrossRef] [Scilit]
  28. Karniadakis, G.E.; Kevrekidis, I.G.; Lu, L.; Perdikaris, P.; Wang, S. Physics-informed machine learning. Nat. Rev. Phys. 2021, 3, 422–440. [Google Scholar] [CrossRef] [Scilit]
  29. Pérez, J.; Lobos, G.; Bonacic, M. Integrated forecasting and deep reinforcement learning for price-based self-scheduling of PV-BESS: Utility-scale evidence in Chile. PLoS ONE 2026, 21, e0336753. [Google Scholar] [CrossRef] [Scilit]
  30. Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef] [Scilit]
  31. Wang, F.; Zhai, Z.; Zhao, Z.; Di, Y.; Chen, X. Physics-informed neural network for lithium-ion battery degradation stable modeling and prognosis. Nat. Commun. 2024, 15, 4332. [Google Scholar] [CrossRef] [Scilit]
  32. Zhang, W.; Zhang, H.; Bi, Z. A time series physics-informed neural network framework for the state of health estimation of lithium-ion batteries. J. Energy Storage 2026, 142, 119549. [Google Scholar] [CrossRef] [Scilit]
  33. Lin, C.; Tuo, X.; Wu, L.; Zhang, G.; Lyu, Z.; Zeng, X. Physics-informed machine learning for accurate state-of-health estimation of lithium-ion batteries considering various temperatures and operating conditions. Energy 2025, 318, 134937. [Google Scholar] [CrossRef] [Scilit]
  34. Wang, J.; Zhang, Y.; Chen, S.; Liu, X.; Zhou, Y. Physics-informed neural network approach for parameter identification of lithium-ion battery electrochemical models. J. Power Sources 2024, 621, 235271. [Google Scholar] [CrossRef] [Scilit]
  35. Zou, Z.; Zhou, F.; Wang, T.; Li, Y.; Song, Z.; Yang, K.; Meng, J. Battery Pack Temperature Distribution Prediction Using Physics-Informed Neural Network and Limited Sensors. In Proceedings of the 2025 IEEE International Symposium on the Application of Artificial Intelligence in Electrical Engineering (AAIEE), Beijing, China, 25–28 April 2025; pp. 362–366. [Google Scholar] [CrossRef] [Scilit]
  36. Altaf, F.; Egardt, B.; Johannesson Mårdh, L. Load Management of Modular Battery Using Model Predictive Control: Thermal and State-of-Charge Balancing. IEEE Trans. Control. Syst. Technol. 2017, 25, 47–62. [Google Scholar] [CrossRef] [Scilit]
  37. Wang, J.; Zhou, S.; Mao, J. Research on Fast SOC Balance Control of Modular Battery Energy Storage System. Energies 2024, 17, 5907. [Google Scholar] [CrossRef] [Scilit]
  38. Yildirim, B.; Elgendy, M.A.; Smith, A.; Kulan, M.C.; Akbal, B. Modular-Multi-Port-Converter-Based Battery Energy Storage System with Integrated Battery Management Functions. Energies 2025, 18, 3142. [Google Scholar] [CrossRef] [Scilit]
  39. Villalva, M.G.; Gazoli, J.R.; Ruppert Filho, E. Comprehensive Approach to Modeling and Simulation of Photovoltaic Arrays. IEEE Trans. Power Electron. 2009, 24, 1198–1208. [Google Scholar] [CrossRef] [Scilit]
  40. Wang, X.; Taul, M.G.; Wu, H.; Liao, Y.; Blaabjerg, F.; Harnefors, L. Grid-Synchronization Stability of Converter-Based Resources—An Overview. IEEE Open J. Ind. Appl. 2020, 1, 115–135. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Intelligent PV Charge Allocation in Multi-Battery Systems via Physics-Informed Neural Networks MATLAB Simulink Model R2023a.
Figure 1. Intelligent PV Charge Allocation in Multi-Battery Systems via Physics-Informed Neural Networks MATLAB Simulink Model R2023a.
Batteries 12 00046 g001
Figure 2. Flowchart of the PINN-based charge-balancing algorithm.
Figure 2. Flowchart of the PINN-based charge-balancing algorithm.
Batteries 12 00046 g002
Figure 3. Dynamic response of the photovoltaic (PV) subsystem under Standard Test Conditions (STC), showing irradiance, temperature, PV voltage, duty cycle, and PV power.
Figure 3. Dynamic response of the photovoltaic (PV) subsystem under Standard Test Conditions (STC), showing irradiance, temperature, PV voltage, duty cycle, and PV power.
Batteries 12 00046 g003
Figure 4. System performance under dynamic irradiance conditions at constant ambient temperature, showing irradiance variation, PV voltage regulation, duty-cycle adaptation, and PV power response.
Figure 4. System performance under dynamic irradiance conditions at constant ambient temperature, showing irradiance variation, PV voltage regulation, duty-cycle adaptation, and PV power response.
Batteries 12 00046 g004
Figure 5. PINN-Based State of Charge (SoC) Equalization for Multi-Cell Battery Pack.
Figure 5. PINN-Based State of Charge (SoC) Equalization for Multi-Cell Battery Pack.
Batteries 12 00046 g005
Figure 6. PINN-based State of Charge (SoC) equalization for a multi-cell battery pack under different linear initial SoC distributions.
Figure 6. PINN-based State of Charge (SoC) equalization for a multi-cell battery pack under different linear initial SoC distributions.
Batteries 12 00046 g006
Figure 7. Voltage and Current Input Mapping in the PINN Architecture.
Figure 7. Voltage and Current Input Mapping in the PINN Architecture.
Batteries 12 00046 g007
Figure 8. Long-duration three-phase grid voltage and current envelopes under steady-state operation.
Figure 8. Long-duration three-phase grid voltage and current envelopes under steady-state operation.
Batteries 12 00046 g008
Figure 9. Three-phase grid voltage and current waveforms under steady-state operation.
Figure 9. Three-phase grid voltage and current waveforms under steady-state operation.
Batteries 12 00046 g009
Figure 10. Sensitivity analysis of loss-function weights (α_cons, α_eq) showing impact on (a) settling time, (b) control effort, and (c) final SoC variance.
Figure 10. Sensitivity analysis of loss-function weights (α_cons, α_eq) showing impact on (a) settling time, (b) control effort, and (c) final SoC variance.
Batteries 12 00046 g010
Figure 11. Comparison of SoC balancing settling time (1% variance threshold) for PID, MPC, and the proposed PINN controller.
Figure 11. Comparison of SoC balancing settling time (1% variance threshold) for PID, MPC, and the proposed PINN controller.
Batteries 12 00046 g011
Figure 12. Quantitative Performance Improvement of the PINN Controller relative to MPC and PID.
Figure 12. Quantitative Performance Improvement of the PINN Controller relative to MPC and PID.
Batteries 12 00046 g012
Table 1. Simulation Parameters and Operating Conditions.
Table 1. Simulation Parameters and Operating Conditions.
CategoryParameterValueUnit
PV ArrayRated Power100kW
MPPT AlgorithmP&O--
Battery BankChemistryLiFePO--
No. of Modules4--
Initial SoC Range70–90%
Power ConverterTypeBidirectional Buck-Boost--
Switching Freq.20kHz
GridVoltage (L-L)400V
Frequency50Hz
SimulationSolverode45--
Max Step Size100 μ s
Sampling Time10ms
STCIrradiance1000W/m
Temperature25 ° C
Table 2. Performance Comparison of Control Strategies.
Table 2. Performance Comparison of Control Strategies.
MetricPID ControllerMPC ControllerPINN ControllerImprovement (PINN vs. Best Other)
Final SoC Variance (%)1.25%0.65%0.08%88% better than MPC
System Efficiency (%)86.2%90.5%96.8%6.9% improvement over MPC
Settling Time (s)18.7 s14.3 s8.2 s43% faster than MPC and 56% faster than PID
Overshoot (%)15.2%6.3%0.9%86% reduction vs. MPC
Transient Recovery (s)8.5 s4.2 s1.2 s71% faster recovery
Energy Loss per Cycle (Wh)45.228.712.357% reduction vs. MPC
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

Akinwola, A.B.; Alkuhayli, A. Physics-Informed Neural Network-Based Intelligent Control for Photovoltaic Charge Allocation in Multi-Battery Energy Systems. Batteries 2026, 12, 46. https://doi.org/10.3390/batteries12020046

AMA Style

Akinwola AB, Alkuhayli A. Physics-Informed Neural Network-Based Intelligent Control for Photovoltaic Charge Allocation in Multi-Battery Energy Systems. Batteries. 2026; 12(2):46. https://doi.org/10.3390/batteries12020046

Chicago/Turabian Style

Akinwola, Akeem Babatunde, and Abdulaziz Alkuhayli. 2026. "Physics-Informed Neural Network-Based Intelligent Control for Photovoltaic Charge Allocation in Multi-Battery Energy Systems" Batteries 12, no. 2: 46. https://doi.org/10.3390/batteries12020046

APA Style

Akinwola, A. B., & Alkuhayli, A. (2026). Physics-Informed Neural Network-Based Intelligent Control for Photovoltaic Charge Allocation in Multi-Battery Energy Systems. Batteries, 12(2), 46. https://doi.org/10.3390/batteries12020046

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