PSO-ELM Based SOC Estimation for Cell Energy Storage Systems

In the realm of modern energy systems, the integration of renewable sources such as wind and solar power has become paramount for achieving sustainability and reducing carbon emissions. However, the inherent intermittency and variability of these sources pose significant challenges to grid stability. To address this, energy storage technologies have emerged as a critical solution, with cell energy storage systems, particularly those based on lithium-ion batteries like lithium iron phosphate (LiFePO4), playing a pivotal role. These systems enable the smoothing of power output, load shifting, and enhanced grid reliability. A key component in managing such cell energy storage systems is the Battery Management System (BMS), which ensures safe operation, longevity, and efficiency. Central to the BMS is the accurate estimation of the State of Charge (SOC), defined as the ratio of remaining capacity to total capacity. SOC is a vital parameter that influences charging/discharging strategies, prevents overcharge or deep discharge, and optimizes the performance of the cell energy storage system. However, SOC estimation is complex due to nonlinear dependencies on factors like temperature, current rates, aging, and hysteresis effects. Traditional methods, such as the ampere-hour integral approach, suffer from cumulative errors, while model-based techniques like Kalman filtering require precise battery models that are difficult to derive. Neural network-based methods offer a model-free alternative that can capture nonlinear relationships, but they often face issues like long training times, low accuracy, and poor generalization. In this article, I propose a novel approach using Particle Swarm Optimization (PSO) to enhance the Extreme Learning Machine (ELM) neural network for SOC estimation in cell energy storage systems. This method leverages the fast learning capability of ELM while optimizing its parameters via PSO to improve accuracy and robustness. I will detail the theoretical foundations, experimental setup, and results, demonstrating the superiority of the PSO-ELM model over conventional techniques like Backpropagation (BP) neural networks. Throughout this discussion, I will emphasize the importance of cell energy storage systems in modern energy infrastructure and how advanced SOC estimation can enhance their deployment.

The State of Charge (SOC) is a fundamental metric in battery management, representing the available energy relative to the maximum capacity. Accurate SOC estimation is crucial for the efficient operation of cell energy storage systems, as it informs decision-making processes in energy dispatch, cycle life optimization, and safety protocols. Inaccurate SOC can lead to premature battery failure, reduced system efficiency, or even hazardous conditions. Over the years, various methods have been developed for SOC estimation, each with its strengths and limitations. The open-circuit voltage (OCV) method relies on the relationship between SOC and voltage at rest, but it requires long relaxation times, making it impractical for real-time applications. The ampere-hour integral method computes SOC by integrating current over time, but it is prone to errors from initial SOC inaccuracy, current measurement noise, and capacity fade. Internal resistance methods are sensitive to temperature and aging, while Kalman filtering and its variants, such as Extended Kalman Filter (EKF), demand accurate battery models and can be computationally intensive. More recently, data-driven approaches like artificial neural networks (ANNs) have gained traction due to their ability to learn complex nonlinear mappings without explicit models. Among these, the Extreme Learning Machine (ELM) stands out for its rapid training speed and simplicity, as it randomly assigns input weights and biases and analytically determines output weights. However, ELM’s random initialization can lead to suboptimal performance, including redundancy in hidden neurons and poor generalization. To mitigate this, optimization algorithms like Particle Swarm Optimization (PSO) can be employed to fine-tune ELM’s parameters, enhancing its predictive capability for SOC estimation in cell energy storage systems.

Before delving into the proposed PSO-ELM method, it is essential to understand the underlying principles of ELM and PSO. ELM is a single-hidden-layer feedforward neural network that was introduced to address the slow training issues of traditional neural networks. Given a set of training samples \( \{ (x_p, y_p) \}_{p=1}^N \), where \( x_p \in \mathbb{R}^n \) is the input vector and \( y_p \in \mathbb{R}^m \) is the output vector, the ELM network with \( k \) hidden neurons computes the output as:

$$ Y = \sum_{i=1}^{k} \beta_i g(\omega_i \cdot x_i + b_i) $$

Here, \( \omega_i \) represents the weight vector connecting the input layer to the \( i \)-th hidden neuron, \( b_i \) is the bias of the \( i \)-th hidden neuron, \( g(\cdot) \) is the activation function (commonly a sigmoid function), and \( \beta_i \) is the weight vector connecting the \( i \)-th hidden neuron to the output layer. The key innovation of ELM is that \( \omega_i \) and \( b_i \) are randomly assigned and fixed, while \( \beta_i \) is determined by solving a linear system. Specifically, the hidden layer output matrix \( H \) is constructed as:

$$ H = \begin{bmatrix} g(\omega_1 \cdot x_1 + b_1) & \cdots & g(\omega_k \cdot x_k + b_k) \\ \vdots & \ddots & \vdots \\ g(\omega_1 \cdot x_N + b_1) & \cdots & g(\omega_k \cdot x_N + b_k) \end{bmatrix} $$

Then, the output weights \( \beta \) are obtained using the Moore-Penrose generalized inverse \( H^+ \):

$$ \beta = H^+ Y’ $$

where \( Y’ \) is the matrix of target outputs. This approach allows ELM to achieve fast training times, but the randomness in \( \omega_i \) and \( b_i \) can lead to variability in performance. To optimize these parameters, I employ Particle Swarm Optimization (PSO), a population-based metaheuristic inspired by the social behavior of birds or fish. In PSO, a swarm of particles moves through a D-dimensional search space, with each particle representing a potential solution (i.e., a set of ELM parameters). The position of each particle is updated based on its own best experience and the global best experience of the swarm. The velocity and position update equations for the \( d \)-th dimension of particle \( s \) at iteration \( t \) are:

$$ v_{t+1}^{sd} = \omega_0 v_t^{sd} + r_1 c_1 (P_t^{sd} – x_t^{sd}) + r_2 c_2 (P_t^{gd} – x_t^{sd}) $$
$$ x_{t+1}^{sd} = x_t^{sd} + v_{t+1}^{sd} $$

Here, \( \omega_0 \) is the inertia weight, \( c_1 \) and \( c_2 \) are acceleration coefficients, \( r_1 \) and \( r_2 \) are random numbers in [0,1], \( P_t^{sd} \) is the personal best position of particle \( s \), and \( P_t^{gd} \) is the global best position. By iteratively updating particles, PSO converges to an optimal set of ELM parameters, thereby improving the SOC estimation accuracy for cell energy storage systems.

The proposed PSO-ELM model for SOC estimation is designed to leverage the strengths of both ELM and PSO. The input variables to the model are selected based on their influence on SOC: voltage (V), current (I), and temperature (T). These are readily measurable in a cell energy storage system and capture the dynamic behavior of lithium-ion batteries. The output is the SOC value, ranging from 0% to 100%. The network architecture consists of an input layer with three neurons (for V, I, T), a hidden layer with a predetermined number of neurons (optimized via PSO), and an output layer with one neuron (for SOC). The activation function for the hidden layer is the sigmoid function:

$$ g(x) = \frac{1}{1 + e^{-x}} $$

To ensure effective training, the input data is normalized to the range [-1, 1] using preprocessing techniques, which accelerates convergence and prevents saturation. The PSO algorithm is tasked with optimizing the input weights \( \omega_i \) and hidden layer biases \( b_i \) of the ELM network. The fitness function for PSO is the mean squared error (MSE) between the predicted SOC and the actual SOC from training data:

$$ S_{\text{MSE}} = \frac{1}{N} \sum_{i=1}^{N} (T(i) – Y(i))^2 $$

where \( T(i) \) is the target SOC, \( Y(i) \) is the predicted SOC, and \( N \) is the number of samples. The optimization process continues until the MSE falls below a threshold (e.g., 0.0001) or a maximum number of iterations is reached. This hybrid approach aims to enhance the robustness and accuracy of SOC estimation, making it suitable for real-world cell energy storage systems where operational conditions vary widely.

To validate the PSO-ELM model, extensive experimental data was collected from a lithium iron phosphate battery, which is commonly used in cell energy storage systems due to its safety, longevity, and thermal stability. The battery underwent charge-discharge cycles under controlled laboratory conditions at different temperatures: -5°C, 5°C, 15°C, 20°C, 25°C, 35°C, and 45°C. At each temperature, the battery was first fully charged using a constant current-constant voltage (CC-CV) protocol, rested for 60 minutes to reach equilibrium, and then discharged at a constant current of 6 A until the cutoff voltage was reached. The charge process was similarly conducted. Data logging equipment recorded voltage, current, and temperature at 1-second intervals. The SOC reference values were computed using the ampere-hour integral method, calibrated with open-circuit voltage measurements to minimize initial errors. This comprehensive dataset captures the nonlinear dynamics of the battery across diverse operating conditions, essential for training a robust SOC estimation model. In total, 2,400 samples were extracted, with 1,200 used for training and 1,200 for testing. The training set was further divided to include data from all temperatures, ensuring the model learns the thermal effects critical for cell energy storage system performance.

The experimental setup highlights the importance of temperature in SOC estimation, as shown by the SOC-OCV curves at different temperatures. These curves exhibit hysteresis and shifts, underscoring the need for adaptive models. The data acquisition process emphasizes the practical challenges in monitoring cell energy storage systems, where sensors must provide accurate readings in real-time. For the PSO-ELM implementation, the hidden layer neuron count was set to 30 based on preliminary trials, and the PSO parameters were configured as follows: swarm size of 50, inertia weight \( \omega_0 = 0.9 \), acceleration coefficients \( c_1 = c_2 = 2 \), and maximum iterations of 100. These settings balance exploration and exploitation in the search space. The ELM network was trained using the normalized training data, with PSO optimizing the input weights and biases. For comparison, a standard BP neural network was also trained on the same dataset, using the Levenberg-Marquardt algorithm with 50 epochs and a goal MSE of 0.0001. Both models were implemented in a simulation environment to ensure fair evaluation.

The performance of the PSO-ELM model was evaluated using the test dataset, with metrics including MSE, root mean square error (RMSE), maximum absolute error, and relative error. The results demonstrate that PSO-ELM achieves superior accuracy compared to the BP neural network. Specifically, the PSO-ELM model attained an MSE of 0.0060, while the BP network had an MSE of 0.0448. This indicates a significant reduction in estimation error, which is crucial for reliable operation of cell energy storage systems. The maximum relative error for PSO-ELM was 1.83%, whereas for BP it was 4.91%, further highlighting the improvement. The convergence of PSO during training is illustrated by the fitness curve, where the MSE dropped below 0.0001 after 52 iterations, showcasing the efficiency of the optimization process. Additionally, the SOC estimation curves for both models were plotted against the reference SOC values. The PSO-ELM predictions closely follow the actual SOC trajectory, even during rapid changes in current or temperature, whereas the BP network shows larger deviations, particularly at low SOC levels. This robustness makes PSO-ELM suitable for dynamic applications in cell energy storage systems, where SOC must be estimated accurately under varying loads and environmental conditions.

To provide a comprehensive comparison, the table below summarizes the performance metrics of BP, ELM, and PSO-ELM models for SOC estimation. The data underscores the advantages of the proposed approach in terms of training time and accuracy.

Model Training Time (s) Root Mean Square Error (RMSE) Maximum Relative Error (%)
BP Neural Network 5.932 0.0448 4.91
ELM 0.023 0.0178 4.62
PSO-ELM 0.913 0.0060 1.83

The table reveals that ELM alone offers fast training but moderate accuracy, while PSO-ELM sacrifices some speed for greatly enhanced precision. This trade-off is acceptable in many cell energy storage system applications, where SOC estimation accuracy is paramount for safety and efficiency. Moreover, the error distribution for PSO-ELM is more concentrated near zero, with absolute errors mostly within 2%, as shown in error curves. This consistency is vital for long-term deployment, as it reduces the risk of cumulative errors in BMS algorithms. The improvement can be attributed to PSO’s ability to fine-tune ELM’s random parameters, leading to a more representative hidden layer representation of the battery’s nonlinear dynamics. In contrast, the BP network, despite its iterative training, often gets stuck in local minima, resulting in higher errors.

Beyond numerical metrics, the practical implications of the PSO-ELM model for cell energy storage systems are profound. Accurate SOC estimation enables better energy management, such as optimizing charge/discharge cycles to extend battery life, preventing overcharge or deep discharge that can cause degradation, and enhancing grid support functions like frequency regulation. In large-scale cell energy storage systems, where thousands of battery cells are connected, precise SOC estimation at the cell level facilitates balanced operation through active balancing techniques, mitigating inconsistencies that arise from manufacturing tolerances or usage patterns. The PSO-ELM model can be integrated into BMS architectures, typically comprising slave controllers for data acquisition, master controllers for computation, and total controllers for system-level coordination. The model can run offline on powerful computers to generate SOC lookup tables or be embedded in real-time processors for online estimation with periodic calibration via ampere-hour integration. This flexibility ensures adaptability to various cell energy storage system designs, from residential setups to utility-scale installations.

The success of the PSO-ELM approach also opens avenues for further research. For instance, the model could be extended to incorporate additional inputs like battery aging indicators or historical usage patterns to improve long-term accuracy. Advanced optimization algorithms, such as genetic algorithms or ant colony optimization, could be explored to potentially enhance parameter tuning. Moreover, the method could be applied to other battery chemistries used in cell energy storage systems, such as lithium nickel manganese cobalt oxide (NMC) or solid-state batteries, by adapting the training data accordingly. Another direction is to integrate the PSO-ELM model with cloud-based analytics for predictive maintenance, where SOC trends are monitored to forecast failures or schedule replacements. These advancements would further solidify the role of data-driven techniques in advancing cell energy storage system technology, contributing to a more resilient and sustainable energy infrastructure.

In conclusion, the accurate estimation of State of Charge is a cornerstone for the effective management of cell energy storage systems, which are increasingly vital in integrating renewable energy and stabilizing power grids. Traditional SOC estimation methods face limitations in accuracy, speed, or model dependency, prompting the exploration of neural network-based solutions. This article presented a hybrid PSO-ELM model that combines the fast learning of Extreme Learning Machine with the optimization prowess of Particle Swarm Optimization to achieve high-precision SOC estimation. Through rigorous experimentation on lithium iron phosphate batteries under varied temperatures, the model demonstrated superior performance compared to conventional BP neural networks, with errors reduced to within 2% and faster convergence. The findings underscore the potential of PSO-ELM as a reliable tool for BMS in cell energy storage systems, enabling safer operation, longer lifespan, and enhanced grid services. As the demand for energy storage grows, such innovative approaches will be crucial in unlocking the full potential of cell energy storage systems, paving the way for a cleaner and more efficient energy future. Future work will focus on real-time implementation, scalability to larger battery packs, and adaptation to emerging battery technologies, ensuring that SOC estimation remains at the forefront of cell energy storage system advancements.

The journey toward optimal SOC estimation is ongoing, with continuous improvements in algorithms and hardware. The PSO-ELM model represents a significant step forward, but it is part of a broader ecosystem of technologies driving the evolution of cell energy storage systems. By leveraging computational intelligence and empirical data, we can overcome the challenges of nonlinearity and uncertainty, making energy storage more accessible and reliable. I encourage researchers and practitioners in the field to explore and build upon this work, fostering collaboration across disciplines to accelerate the deployment of cell energy storage systems worldwide. Ultimately, the goal is to create energy systems that are not only efficient and sustainable but also resilient in the face of changing energy landscapes, with cell energy storage systems playing a central role in this transformation.

Scroll to Top