원시데이터 수집 시스템
선정목록으로

Voltage abnormity prediction method of lithium-ion energy storage power station using informer based on Bayesian optimization

간접 관련 수소연료전지 · (7) MEA(막전극접합체) (5) 연료전지용 수분제어장치(가습기)(6) PEM(고분자전해질막)

기본 정보

저자
  1. Zhibo Rao — Engineering Research Center of Education Ministry for Renewable Energy Power Generation and Grid Connection, Xinjiang University, Urumqi, 830049, Xinjiang, People's Republic of China
  2. Jiahui Wu — Engineering Research Center of Education Ministry for Renewable Energy Power Generation and Grid Connection, Xinjiang University, Urumqi, 830049, Xinjiang, People's Republic of China. wjh229@xju.edu.cn
  3. Guodong Li — Electric Power Research Institute, Xinjiang Electric Power Co., Ltd., Urumqi, 830049, Xinjiang, People's Republic of China
  4. Haiyun Wang — Engineering Research Center of Education Ministry for Renewable Energy Power Generation and Grid Connection, Xinjiang University, Urumqi, 830049, Xinjiang, People's Republic of China
DOI
10.1038/s41598-024-72510-z
저널
Scientific Reports
발행년도
2024
발행기관
Nature Portfolio
피인용수
7
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-024-72510-z
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W4402520340

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(5) 연료전지용 수분제어장치(가습기), (6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.80
근거 용어
lithium-ion energy storage, voltage abnormity prediction, Informer neural network, Bayesian optimization, BMS
판단 근거
본 논문은 리튬이온 에너지 저장 장치(ESS)의 전압 이상을 예측하기 위한 딥러닝 모델(Informer) 연구를 다루고 있습니다. 이는 코오롱인더스트리의 수소연료전지(PEMFC) 사업과 직접적인 소재 연구는 아니나, 배터리 관리 시스템(BMS) 및 전압 예측 알고리즘이라는 측면에서 에너지 저장 시스템의 안전성 및 상태 진단 기술로서 간접적인 연관성이 있습니다.
R&D 활용 포인트
에너지 저장 시스템 및 연료전지 시스템의 전압/상태 모니터링 알고리즘 고도화 및 이상 징후 조기 감지 기술로 응용 가능합니다.
평가 입력
본문 66,784자 중 30,032자 발췌

초록

Accurately detecting voltage faults is essential for ensuring the safe and stable operation of energy storage power station systems. To swiftly identify operational faults in energy storage batteries, this study introduces a voltage anomaly prediction method based on a Bayesian optimized (BO)-Informer neural network. Firstly, the temporal characteristics and actual data collected by the battery management system (BMS) are considered to establish a long-term operational dataset for the energy storage station. The Pearson correlation coefficient (PCC) is used to quantify the correlations between these data. Secondly, an Informer neural network with BO hyperparameters is used to build the voltage prediction model. The performance of the proposed model is assessed by comparing it with several state-of-the-art models. With a 1 min sampling interval and one-step prediction, trained on 70% of the available data, the proposed model reduces the root mean square error (RMSE), mean square error (MSE), and mean absolute error (MAE) of the predictions to 9.18 mV, 0.0831 mV, and 6.708 mV, respectively. Furthermore, the influence of different sampling intervals and training set ratios on prediction results is analyzed using actual grid operation data, leading to a dataset that balances efficiency and accuracy. The proposed BO-based method achieves more precise voltage abnormity prediction than the existing methods.

본문 66,784자

본문 펼치기
## OPEN # Voltage abnormity prediction method of lithium‑ion energy storage power station using informer based on Bayesian optimization Zhibo Rao <sup>1</sup> , Jiahui Wu <sup>1</sup> <sup>*</sup> , Guodong Li <sup>2</sup> & Haiyun Wang <sup>1</sup> Accurately detecting voltage faults is essential for ensuring the safe and stable operation of energy storage power station systems. To swiftly identify operational faults in energy storage batteries, this study introduces a voltage anomaly prediction method based on a Bayesian optimized (BO)- Informer neural network. Firstly, the temporal characteristics and actual data collected by the battery management system (BMS) are considered to establish a long-term operational dataset for the energy storage station. The Pearson correlation coefficient (PCC) is used to quantify the correlations between these data. Secondly, an Informer neural network with BO hyperparameters is used to build the voltage prediction model. The performance of the proposed model is assessed by comparing it with several state-of-the-art models. With a 1 min sampling interval and one-step prediction, trained on 70% of the available data, the proposed model reduces the root mean square error (RMSE), mean square error (MSE), and mean absolute error (MAE) of the predictions to 9.18 mV, 0.0831 mV, and 6.708 mV, respectively. Furthermore, the influence of different sampling intervals and training set ratios on prediction results is analyzed using actual grid operation data, leading to a dataset that balances efficiency and accuracy. The proposed BO-based method achieves more precise voltage abnormity prediction than the existing methods. Keywords Informer, Energy storage power station, Voltage abnormity prediction, Bayesian optimization algorithm With the construction of new power systems, lithium(Li)-ion batteries are essential for storing renewable energy and improving overall grid ­security <sup>1–3</sup> . Li-ion batteries, as a type of new energy battery, are not only more environmentally friendly but also offer superior ­performance <sup>4</sup> . However, safety problems have arisen as the industry pursues higher energy densities in Li-ion ­batteries <sup>5</sup> . The public has become increasingly anxious about the safety of large-scale Li-ion battery energy-storage systems because of the frequent fire accidents in energy-storage power stations in recent ­years <sup>6</sup> . In the fields of electric vehicles and electrochemical energy storage, frequent incidents of spontaneous combustion and explosions indicate the potential, spontaneous, and destructive characteristics of lithium-ion battery failures. To achieve the required voltage and capacity, an array of battery cells are connected in various series/parallel configurations, ­respectively <sup>7,8</sup> . Due to degradation of battery cells, electrical faults, or misuse, faults may occur and precipitate within these constituent battery cells. Fault in battery systems is considered one of the most severe problems that can result in thermal runaway and ­fire <sup>9,10</sup> . If these faults are not attended to, thermal runaway may be triggered. To date, numerous studies indicate that voltage anomalies may manifest or induce various battery malfunctions. For example, over-voltage means there may be a fault that the battery system is over-charged and the charge protection circuit is disabled; under-voltage represents that the battery system may be over-discharged or short-circuited ­internally <sup>11</sup> . Early and precise prediction of voltage anomalies during the operation of energy storage stations is crucial to prevent the occurrence of voltage-related 1Engineering Research Center of Education Ministry for Renewable Energy Power Generation and Grid Connection, Xinjiang University, Urumqi 830049, Xinjiang, People’s Republic of China. <sup>2</sup> Electric Power Research Institute, Xinjiang Electric Power Co., Ltd., Urumqi 830049, Xinjiang, People’s Republic of China. <sup>*</sup> email: wjh229@ xju.edu.cn faults, as these anomalies often indicate the possibility of more serious issues. This also implies the need for certain human intervention to identify potential issues caused by voltage anomalies, ensuring the secure operation of energy storage systems, such as real-time monitoring and accurate prediction of battery voltage. Currently, research on battery fault diagnosis is abundant, primarily categorized into three main types: statistical analysis‑based ­method <sup>12</sup> model-based <sup>13</sup> and data-driven ­method <sup>14</sup> . Statistical analysis, based on mathematical statistics and the dissection of various data and information, is employed in LIB systems. Different sensors collect information such as current, voltage, ­temperature <sup>15</sup> internal resistance, etc. Subsequently, various statistical methods are applied for direct analysis of the collected data. However, it tends to be possible to achieve fault detection, and it is difficult to identify the type of ­fault <sup>16</sup> . By developing high-fidelity battery models, modelbased methods can be employed to characterize fault-related information, including terminal ­voltage <sup>17</sup>, state of charge (SOC) <sup>18</sup>, ­temperature <sup>19</sup>, and so on. On this basis, a set of residuals is obtained, which can be used to generate signals by comparing parameters with measured values. Subsequently, these signals are utilized for fault diagnosis. Currently, electrochemical ­models <sup>20</sup>, equivalent circuit models (ECM) <sup>21</sup>, thermal ­models <sup>22</sup>, and multi-factor coupling ­models <sup>23</sup> are widely applied in battery fault diagnosis. In Ref. <sup>24</sup> achieves multi-fault detection and isolation by integrating equivalent circuit models into a hybrid automaton and tracking continuous/ discrete dynamics from the cell level to the module level. In Ref. <sup>25</sup> accomplishes the joint estimation of battery voltage and SOC based on the ECM It quantitatively calculates the positive and negative virtual insulation resistance for fault diagnosis. In Ref. <sup>26</sup> has developed a fault diagnosis method for battery pack voltage and current sensor error detection, utilizing an integrated ECM and an unscented particle filter. ­Reference <sup>27</sup> A thermoelectrochemical coupling modeling approach is proposed to predict the electrochemical and thermal behaviors of batteries. By considering heat generation and temperature-related characteristics, their model can analyze he average battery temperature and temperature distribution. Regrettably, the precision and dependability of these techniques are primarily contingent upon the faithfulness of the constructed model. The accuracy and reliability of these methods primarily depend on the fidelity of the constructed model. Due to the yet unresolved internal characteristics of electrochemical reactions in li-ion batteries, establishing highly faithful models to consider all possible operating conditions remains challenging. Data-driven methods do not require to consider the complicated battery mechanism and have become a research hotspot in the field of fault ­diagnosis <sup>28</sup> . This approach directly analyzes and processes operational data to detect battery faults, greatly simplifying the implementation process. Data-driven methods are primarily divided into signal processing-based methods and machine learning methods. The former typically utilize techniques such as root mean square amplitude, spectral analysis, wavelet transform, entropy-based methods, rough set, and principal component analysis to extract fault characteristic parameters, such as bias, variance, entropy, and correlation ­coefficient <sup>29</sup> . Subsequently, faults are identified by comparing the parameters with the values in the normal state. Currently, most voltage anomaly predictions use data-driven methods. Regarding battery safety issues in electric vehicles and electric scooters. In Ref. <sup>11</sup>, introduces long short-term memory (LSTM) neural networks for accurate multi-step voltage prediction, combined with alert thresholds to achieve fault diagnosis. In Ref. <sup>30</sup>, an adaptive enhancement approach integrates the LSTM neural network with the ECM of LIB for voltage prediction and diagnosis of voltage faults. ­Reference <sup>31</sup>, an investigation was conducted on the development of a precise multi-step voltage prediction and voltage fault diagnosis method based on gated recurrent unit (GRU) neural network and incremental training. For proton exchange membrane fuel cell (PEMFC) degradation performance, ­Reference <sup>32</sup> combines bidirectional (Bi)-LSTM, Bi-GRU, and echo state networks to create a hybrid model for predicting short-term voltage degradation and performance. ­Reference <sup>33</sup> uses a combined LSTM and support vector regression (SVR) model to forecast short-term voltage degradation and long-term durability. ­Reference <sup>34</sup> introduces a voltage prediction model using residual- convolutional neural network (CNN)-LSTMrandom attention, which improves short- and mid-term predictions. Currently, real-world operational data comes mainly from electric vehicles, electric scooters and PEMFC. However, the actual operational data from lithium-ion batteries in energy storage stations involved in gridassisted services is limited, especially in terms of accurately predicting voltage fault anomalies. The traditional models, such as LSTM and GRU, are unable to effectively handle long-term dependencies. Their performance degrades with the addition of time-series data. These models can’t process time series data in parallel because their current state computation depends on previous conditions. This dependency limits the flexibility of the models and increases the computational complexity. The Transformer model overcomes the limitations of LSTM and GRU in parallel processing. The Transformer model effectively captures long-term dependencies and local features in voltage time series, leveraging its attention mechanism, Informer, a notable Transformer variant. This optimizes information utilization and enhances predictive performance. However, the implementation of Informer is relatively complex, particularly in terms of parameter tuning and hyperparameter selection. With the rapid development of deep learning and optimization, the (Bayesian optimized) BO algorithm has gradually become a research ­hotspot <sup>35</sup> . The BO algorithm is widely used to solve complex and high-dimensional optimization problems, especially in the hyperparameter optimization of machine learning models, neural network structure search, and automated machine ­learning <sup>36,37</sup> . To address these issues, this study proposes an Informer prediction method based on the BO algorithm. First, the raw data and the extracted time-series parameters are standardized. Then the (Pearson correlation coefficient) PCC is employed to assess the influence of these parameters on battery voltage and obtain high-quality parameters as inputs for the voltage prediction model. Second, datasets with different time intervals are utilized to reconstruct the data. Third, the BO algorithm is employed to acquire appropriate model hyperparameters. Finally, the prediction results are compared across different training sets. The experimental results indicate that, the BO-Informer prediction method achieves more accurate short-term voltage anomaly predictions than the non-optimized versions of Informer, Transformer, GRU, and LSTM neural networks. The primary contributions of this study are as follows: 1) For the first time, the relevant information from the (battery management system) BMS is integrated with the temporal information extracted by the Informer from voltage data. Then, PCC is used to identify high-quality parameters to be input into the voltage prediction model. 2) Informer model is employed for the first time in voltage prediction for energy storage stations. To enhance voltage prediction performance, BO is combined with iterative training, resulting in the BO-Informer model. This integration optimizes the model’s hyperparameters, leading to enhanced predictive capabilities and an improved ability to learn and memorize complex relationships within the voltage data. The model achieves advanced forecasting of future voltage, demonstrating its potential for early prediction of voltage anomalies. 3) The proposed hybrid model is compared with commonly used Transformer, GRU, LSTM, and the non-optimized Informer models. The experimental results demonstrate that the proposed model achieves optimal performance across all three evaluation metrics ((mean absolute error) MAE, (mean square error) MSE, and (root mean square error) RMSE). The predictive accuracy of the proposed model is demonstrated. The remainder of this paper is structured as follows. Section “Data collection and processing” details the process of data collection and preprocessing. The development of the BO-Informer model is introduced In section “Methodology”. Subsequently, Section “Result and discussion” presents the results and discussion. Finally, Section “Conclusion” draws the main conclusions. Data collection and processing Data and structure of energy storage station A certain energy storage power station in western China is composed of three battery cabins. Each compartment contains two stacks (1, 2), and each stack comprises three clusters. Each cluster is composed of 19 modules, with each module consisting of 2 cells in parallel and 12 cells in series. In this study, the term ‘individual cell’ refers to the ‘1 series’ within the 2 parallel and 12 series configurations. Figure 1 illustrates the arrangement of battery cells in a battery module. The individual battery cells have a rated voltage of 3.2 V and a nominal capacity of 120 Ah, while the battery pack has a rated voltage of 38.4 V and a capacity of 240 Ah. Real-time operational data was continuously recorded using the BMS, at 60-s intervals, encompassing parameters like battery current, voltage, temperature, and SOC. The variability and unpredictability of factors such as grid peak shaving and frequency regulation often lead to random fluctuations in most time-varying parameters, Fig. 2 shows the curves of some representative parameters, including battery voltage (normal and abnormal), cluster voltage, SOC, temperature and current. It can be seen from the figure that the main fluctuations in battery voltage and cluster voltage are in the range of 3.6 to 4.2 V and 50.4 to 58.8 V. The range of abnormal voltage is from 0 to 3.39 V, and the temperature range is from 22 to 28 °C. The current jump is caused by the switching between charging and discharging of the energy storage power station. The SOC ranges from 17.5 to 86.6%. This phenomenon can be explained by the ancillary services provided by the storage station, The confidence level of SOC is relatively low, making it difficult to estimate accurately even with state-of-the-art methods. SOC significantly influences voltage changes, but its relationship is non-linear and exhibits a time lag. This limits the possibility of complete battery discharge. Other factors impacting the battery voltage within the storage station include current, temperature and inevitable aging effects. battery module-6# battery module-5# battery module-18# battery module-17# battery module-16# battery module-15# battery module-14# battery module-7# battery module-8# battery module-9# battery module-10# battery module-11# battery module-4# battery module-3# battery module-2# battery module-1# battery module-0# high voltage box 1 2 11 12 12 strings battery module-13# battery module-12# Fig. 1. Arrangement of cells in the battery module. 90 80 70 60 50 40 30 20 10 0 1000 2000 3000 4000 Time (min) 3.5 3.0 2.5 2.0 1.5 1.0 0.5 0.0 0 1000 2000 3000 4000 Time (min) 3.40 3.35 3.30 3.25 3.20 3.15 3.10 3.05 0 1000 2000 3000 4000 Time (min) 1000 500 0 −500 −1000 0 1000 2000 3000 4000 Time (min) 28 26 24 22 0 1000 2000 3000 4000 Time (min) 41.0 40.5 40.0 39.5 39.0 38.5 38.0 37.5 37.0 0 1000 2000 3000 4000 Time (min) Fig. 2. Measured data from energy storage stations. Data standardization process Different evaluation indicators often have different scales and units of measurement, and such differences can potentially affect the results of data analyses. In order to eliminate the effects of these metrics, data standardization measures are necessary to ensure comparability between indicators. Linear transformation is considered to be an effective method for mapping the raw data into the range [0, 1] and its standardization formula is shown in Eq. (1) The method normalizes the raw data by scaling it in equal proportions. Dnorm = <u>D −</u> <u>Dmin</u> (1) Dmax - Dmin In this equation: _Dnorm_ represents the collected data of the BMS normalized in the previous section, collectively referred to as original data thereafter. _D_ denotes the original data; _Dmax_ and _Dmin_ are the maximum and minimum values of the original data set, respectively. PCC correlation analysis Currently, online estimation of the state of health (SOH) and remaining useful life (RUL) of batteries is still a challenging problem. In order to more fully consider the temporal characteristics of the battery voltage, we introduce the Informer model. The model is naturally equipped to handle temporal characteristics. The model ensures that the correct order of the input sequence can be captured by introducing positional encoding in the data input. The positional encoding involves both local and global timestamps, with equations for the local timestamps as shown in Eqs. (2) and (3) pos - 2L <sup>2i/ d�</sup> - 2L <sup>2i/ d�</sup> PE(pos, 2i) = sin pos (2) pos PE(pos, 2i + 1) = cos pos (3) Here, _pos_ denotes the position of the current word in the whole input sequence. _i_ is the dimension of the current computed value, which takes values ranging from 1 to _d_ . _d_ denotes the dimension of the input sequence and _L_ denotes the length of the sequence. Based on the above equations, three time series features i.e. weekly, daily and hourly parameters of the voltage data of battery 60 for the period of August 1 to August 31 were extracted. Additionally, ten parameters related to battery voltage data, including temperature of the cell, stack voltage (the total voltage of a battery stack), stack current (the current flowing through an entire battery stack), stack SOC (the state of charge of a battery stack), cluster voltage (the voltage of a battery cluster), cluster current (the current flowing through a specific battery cluster), and cluster SOC (the state of charge of a particular battery cluster), were recorded using the BMS. To extract the most valuable features from these parameters and quantify their correlation with voltage, the PCC method was employed to eliminate the harmful parameters and extract the high-quality parameters as inputs to the voltage prediction model. The details are as follows: <u>�</u> <u>i=1</u> <u>�n</u> yi − <u>y</u> <u>�</u> <u>i=1</u> (xi − <u>x)</u> <u>i=1</u> ρ = (4) ~~�~~ i=1 �n <u>�2</u> (xi − <u>x)</u> <sup>2</sup> ~~�~~ i=1 �n i=1 i=1 yi − <u>y</u> where, n indicates the number of each parameter; ­xi indicates the voltage; x indicates the average value of ­xi; ­yi indicates the characteristic variable of the voltage at the moment i; y indicates the average value of ­yi. The value of ρ ranges from − 1 to 1, and the size of the absolute value of the ρ value reflects the strength of the correlation between the characteristic variable and the voltage. An absolute value close to 1, indicates that the linear correlation between the two parameters is strong. The PCC values of the selected 11 parameters are shown in Fig. 3. Selecting highly correlated parameters can reduce computational burden while maintaining high predictive performance. The PCC values of the pile voltage, cluster voltage, cluster SOC and day feature are all higher than 0.85, indicating a strong linear correlation. Therefore, they are chosen as inputs to the model. Since the model aims to use historical data of battery clusters/battery packs for abnormal voltage prediction, the battery voltage itself is also included as an input to the model. Methodology Figure 4 shows the entire implementation process of the proposed voltage anomaly prediction scheme, which is divided into four stages: data preparation, BO-Informer model training, Bayesian hyperparameter optimization, and discussion of prediction results. First, operational data of the energy storage station is obtained from the BMS, Then the data is preprocessed, including correlation analysis, normalization, and partitioning into training and testing datasets. Next, an Informer model suitable for the data structure is used to train and predict future domain battery voltages using an integrated multi-step prediction design. To further enhance the performance, BO is employed to optimize the model’s hyperparameters. This combined approach results in the development of the BO-Informer prediction model. The neural network structure of informer The Informer is a Transformer based model proposed by Zhou et al. <sup>38</sup> Aiming to Improve Computational Efficiency of Self-Attention Mechanisms, Multilayer Network Stacking and Stepwise Decoding Methods in Transformer Networks. The informer network exhibits better performance than LSTM in capturing long-term correlations. Therefore, it has been successfully applied in fields such as long time series electrical line trip fault prediction and wind power ­prediction <sup>39,40</sup> . This study applies the Informer model for the first time to the prediction of voltage anomalies in energy storage batteries. The model consists of an encoder and a decoder, where the encoder processes the time series and reduces the time complexity and memory usage through a probabilistic sparse self-attention mechanism. Subsequently, the temporal dimension of the input sequence is reduced by Voltage of Cell 60 Temperature of Cell 60 Stack voltage Stack current Stack SOC Cluster voltage Cluster current Cluster SOC Day feature Week feature Hour feature 1 0.34379 0.93481 -0.30453 0.76723 0.9909 -0.3712 0.82287 0.86844 -0.04126 0.18528 0.34379 0.99999 0.23978 -0.06525 0.16526 0.33992 -0.10284 0.20033 -0.84316 0.07183 0.0121 0.93481 0.23978 1 -0.30474 0.77088 0.94461 -0.37286 0.78583 0.95473 -0.06851 0.18902 -0.30453 -0.06525 -0.30474 1 0.08304 -0.28257 0.93305 0.09191 -0.80648 0.06648 0.41868 0.76723 0.16526 0.77088 0.08304 0.99999 0.78161 0.0042 0.93277 0.82796 -0.07022 0.47304 0.9909 0.33992 0.94461 -0.28257 0.78161 1 -0.35055 0.84379 0.94809 -0.03674 0.21093 -0.3712 -0.10284 -0.37286 0.93305 0.0042 -0.35055 1.00001 0.02271 -0.80756 0.06435 0.43118 0.82287 0.20033 0.78583 0.09191 0.93277 0.84379 0.02271 1 0.82796 -0.07022 0.49453 0.86844 -0.84316 0.95473 -0.80648 0.82796 0.94809 -0.80756 0.82796 1 -0.03251 0.99456 -0.04126 0.07183 -0.06851 0.06648 -0.07022 -0.03674 0.06435 -0.07022 -0.03251 1 -0.03107 0.18528 0.0121 0.18902 0.41868 0.47304 0.21093 0.43118 0.49453 0.99456 -0.03107 0.99999 Fig. 3. PCC values of all parameters. Data preparation <u>BO-Informer</u> <u>model</u> Optimization of hyperparameters: Bavesian algorithms Raw Data Missing Data Processing Data standardization Feature Engineering:PCC Training Data Test Data Informer Droupout rate Learning rate S-len Batch size BO-Informer Predication training Prior function-Calculate(x,y) to obtain maximum value Meet the target Value? Yes Output Start Model initialization? Yes Gauss regression process No Ran domly generate In i tialization points No Fig. 4. Bayesian optimization informer neural network prediction flowchart. a self-attentive distillation process, which reduces the spatial complexity. Eventually, the predicted output is generated at the decoder stage. _Unified input representation_ Since the position information of the data cannot be directly recorded in the input, requiring position embedding. Informer incorporates position encoding into the data input to ensure the model captures the correct order of the input sequence. This position encoding is divided into local and global timestamps. The equations for local timestamps are provided in Eqs. (2) and (3). Following the encoding steps, the input data for the encoder layer is obtained as follows: SE(L×(t−1)+i) P xi <sup>t</sup> <sup>= αu</sup> i <sup>t</sup> <sup>+ PE(L×(t−1)+i) +</sup> SE(L×(t−1)+i) P (5) i <sup>t</sup> <sup>= αu</sup> i <sup>t</sup> i <sup>t</sup> <sup>+ PE(L×(t−1)+i) +</sup> P P where ­ui represents the original data sequence, i ∈ [1, 2, …, L]; L is the length of the data sequence; t is the series number; and α, set to 1 for normalized input sequences, is a factor balancing the size between the mapping vector and the position encoding. _ProbSparse self‑attention_ Self-attention is an important feature extraction mechanism used in the encoding and decoding process. The original self-attention mechanism originally proposed by Vaswani et al. aims to map the query, key and value vectors to the output. The weights are derived by applying specific formulas to calculate the association of the query with the corresponding keys. Then, a weighted sum of these values is calculated based on these weights as shown in Eq. (6) d <u>�QK</u> <sup>T</sup> <sup>�</sup> <sup>√</sup> A(Q, K, V )=Softmax d V (6) d V <u>�</u> where Q ∈ R <sup>LQ×d</sup>, K ∈ R <sup>LK</sup> <sup>×d</sup>, V ∈ R <sup>LV ×d</sup>, d represents the input dimension. This attention mechanism is also known as dot product attention because we compute the dot product of the query with all keys. However, this approach requires significant memory usage _(O(LQLK))_ and quadratic time complexity for computation. This severely limits the predictive power of the model. According to previous experimental results, the score of self-attention follows a long-tailed distribution, i.e., a small number of dot products contribute to most of the attention. Therefore, identifying the main attention is important to reduce the computational complexity, which is the core strategy of ProbSparse self-attention. We define the _i_ th query as _qi_ and define the probability of _qi_ attention to all keys as _p(kj |qi)._ When _qi_ contribution to attention is not essential, _p(kj |qi)_ will be close to uniformly distributed _u(kj|qi)_ = 1 _/Lk._ We use the adjusted Kullback–Leibler divergence to measure the distribution The difference between p and q LK �j=1 qi, K = In qikj <sup>T</sup> ~~√~~ <u>j</u> M qi, K = In e d - <sup>1</sup> ~~√~~ (7) e q ~~√~~ <u>i</u> kdj <sup>T</sup> dj - L <sup>1</sup> K LK LK �j=1 j=1 j=1 <u>j</u> ~~√~~ d d M(qi, K) denotes the importance of _qi_, which increases with the ‘diversity’ of the probability distribution, and is therefore more likely to contain major dot product pairs. Here, we envisage using only the n highest scoring dominant queries: d <u>�QK</u> <sup>T</sup> <sup>�</sup> <sup>√</sup> V <u>�</u> A(Q, K, V )=Softmax d V (8) d where Q consists of the first n queries, which are obtained from the sparsity measurements. We set n = _a_ ln _LQ,_ where a is a constant parameter. As a result, the memory usage of ProbSparse self-attention is reduced to _O_ ( _LK_ ln _LQ_ ). In order to reduce the computational complexity, the computation of _M_ ( _qi,K)_ requires traversing all dot products of the query and the key, and the complexity of this process is quadratic _O(LQLK)_ . Moreover, the LSE operation (the first part of _M(qi,K)_ ) is not stable enough for numerical computation. For this reason, two methods are used to reduce the complexity: approximate simplification and sampling calculations. _M(qi,K)_ has obvious upper and lower bounds (proofs have been obtained in Zhou’s ­study <sup>38</sup> ). The adjusted measurements are shown in Eq. (10). + In LK <u>�</u> - 1 <u>�</u> qikj <sup>T</sup> <u>�</u> qi, K ≤ maxj qikj <sup>T</sup> j= <u>�LK</u> qi, K qikj <sup>T</sup> d LK qikj <sup>T</sup> d (9) In LK ≤ M ≤ maxj - 1 j=1 + In LK - - - - √ <u>�</u> - <u>�LK</u> <u>�</u> - √ <u>�</u> d - √ d - √ j=1 j j j LK = maxj qikj <sup>T</sup> - ~~√~~ d qikj <sup>T</sup> LK qikj <sup>T</sup> qi, K = maxj - ~~√~~ d - - L <sup>1</sup> K ~~√~~ d (10) - - �j=1 M� qikj <sup>T</sup> LK �j=1 j=1 j <u>j</u> ~~√~~ d d - L <sup>1</sup> K LK <u>j</u> ~~√~~ d d Due to the presence of a long-tailed distribution, there is no need to evaluate M <sup>ˆ</sup> _(qi,K)_ for each query. We can randomly sample _N_ = ­ln _K_ ln _LQ_ pairs to compute M <sup>ˆ</sup> _(qi,K)_ and set the residual value to zero. This approach makes the numerical computation more stable and reduces unnecessary traversals. If ­L _K_ = ­L _Q_ = L, the time and space complexity is _O(L_ ln _L)._ _Encoder_ The encoder is mainly responsible for extracting dependencies from lengthy data sequences. The probabilistic sparse self-attention mechanism deals with sequences that contain redundant V-vectors. Therefore, in this case, the distillation operation gives higher weight to the basic features. The distillation process for stages j to j + 1 is as follows: Xj <sup>t</sup> �� Xj <sup>t</sup> +1 <sup>= MaxPool</sup> ELU Conv1d Xj <sup>t</sup> (11) j <sup>t</sup> +1 <sup>= MaxPool</sup> ELU Conv1d j AB ��� where [.]AB denotes the key operation in the multi-head probabilistic sparse self-attention mechanism. the ELU is an activation function. The effect of convolution and pooling is to halve the input sequence, thus reducing the memory utilisation to _O_ ((2 − λ) _L_ log _L_ ). _Decoder_ The decoder receives the following input vectors: Xde <sup>t</sup> <sup>= Concat(X</sup> token <sup>t</sup> <sup>, X</sup> 0 <sup>t</sup> <sup>) ∈</sup> <sup>R(Ltoken+Ly)×d mod el</sup> (12) token <sup>t</sup> <sup>, X</sup> 0 <sup>t</sup> 0 <sup>t</sup> <sup>) ∈</sup> <sup>R(Ltoken+Ly)×d mod el</sup> where X <sup>t</sup> de <sup>t</sup> <sup>= Concat(Xt</sup> token <sup>t</sup> <sup>is the start</sup> <sup>_token_</sup> <sup>of the sequence and X</sup> 0 <sup>t</sup> where Xde <sup>t</sup> <sup>denotes the input to the decoder, X</sup> token <sup>t</sup> <sup>is the start</sup> <sup>_token_</sup> <sup>of the sequence and X</sup> 0 <sup>t denotes the place-</sup> holder of the target sequence. In order to maintain the consistency of the input dimensions, the timestamps are zero-padded. Next, autoregression is prevented by using masked multi-head attention to ensure that each position focuses only on information relevant to the current position. Eventually, the final result is obtained. The voltage dataset we used has a high sampling frequency. Based on the correlation heat map, we selected data that are strongly correlated with the input data in order to train and predict the model for long sequence data. The validation prediction length was 4012 sample points, and the results showed that the model was able to effectively process and predict data sequences with long sequences and large data features. After several tests, Informer achieved convergence at round 10 of the dataset. Given the characteristics of battery voltage data from energy storage power stations, traditional methods are unable to complete model training quickly when facing newly generated data. Therefore, under the premise of guaranteeing the prediction accuracy, reduce the model size and computational runtime, and choose three encoder layers and one decoder layer. The specific structure is shown in Fig. 5. Loss functions In the back propagation process of neural networks, the loss function plays a crucial role and essentially reflects the error of the network. The smaller the value of the loss function, the more superior the performance of the network in problem solving. Therefore, it is crucial to choose an appropriate loss function to ensure that the network parameters are optimized in a more reasonable direction. There are numerous loss functions to choose from, including absolute value loss function, mean square loss function, cross entropy loss function, etc. In this experiment, we used the MSE. The specific expression of the mean square loss function is as follows: de <sup>t</sup> <sup>denotes the input to the decoder, Xt</sup> �2 m �i=1 1 (13) 2m �i=1 - �2 J(UiU <sup><u>�</u></sup> ) = J(w, b) = Ui − U <sup><u>�</u></sup> i=1 Ui − U <sup><u>�</u></sup> Decoder Input Data Preprocessing Adding Location Code Masked ProbSparse Self_attention Calculation The Cross-Attention layer captures features from the output of the Encoder and the input of the Decoder Fully Connected Output Decoder Encoder The Processed Data Adding Location Code ProbSparse Self-attention Calculation Self-attention Distilling Obtaining Feature Maps Fig. 5. Informer-based time series prediction method for voltage anomalies. Model parameters In Informer modeling, crucial parameters include historical data length (h-len) Initial learning rate, dropout rate, The number of encoder layers and batch size. Based on the basic hyperparameters proposed by Zhou et al. <sup>38</sup> as well as the prediction results from the dataset discussed in section “Decoder” of this paper, the model’s structure and hyperparameters were preliminarily determined. The experimental model parameters are shown in Table 1. Bayesian optimization BO neural networks encompass several hyperparameters, including the loss function, the number of encoder layers, the number of decoder layers, h-len, learning rate, dropout rate, and batch size. These parameters are typically set based on experience, making it difficult to obtain the optimal parameters. These hyperparameters significantly affect the runtime and prediction accuracy of neural networks. Hence their optimization is crucial. This study focuses on historical data length, learning rate, dropout rate, and batch size as the neural network’s hyperparameters. A BO algorithm is employed to efficiently identify the optimal configuration of these hyperparameters. h-len dictates the amount of past time steps the model takes into account during predictions. Proper h-len enables the model to accurately capture long-term dependencies and trends within the time series, thereby enhancing prediction accuracy. Bayesian optimization is an approach that optimizes black-box functions by building Gaussian process models. Its fundamental principle is to select the parameter values that are most likely to lead to optimization in each iteration based on the current Gaussian process model. It leverages Bayes’ theorem to update the model’s prior probability distribution with information obtained from function evaluations. This allows BO to choose the next sampling point based on the insights provided by the current Gaussian process model, iteratively enhancing the black-box function. Figure 4 depicts the BO process for Informer. Bayesian optimization parameters Similar to the original Informer model, the BO-based Informer model also includes certain parameters from the Informer. However, BO is specifically utilized to optimize parameters such as h-len, initial learning rate, dropout rate, and batch size. To ensure effective optimization and the feasibility of the resulting parameters, it is essential to set appropriate ranges for the hyperparameters, as indicated in Table 2. The experimental environment for this study was Windows 11 64-bit operating system with i5-10400F CPU,16 GB RAM, and GTX-3060 graphics card. The experimental code used scikit-learn library and pytorch library in Python and compilation was done using PyCharm software. <u>Batch size</u> <u>64</u> <u>Epochs</u> <u>10</u> <u>Activation function</u> <u>ELU</u> <u>Learning rate</u> <u>0.001</u> <u>Encoder layer</u> <u>3</u> <u>Decoder layer</u> <u>1</u> <u>Time feature encoding</u> <u>Hour</u> <u>Dropout</u> <u>0.1</u> <u>Loss function</u> <u>mse</u> <u>H-len</u> <u>12</u> Table 1. Parameters of voltage abnormity prediction model based on informer. <u>Parameter</u> <u>Range</u> <u>Te optimal number of h-lenh</u> <u>[12, 24]</u> <u>Te optimal initial learning rateh</u> <u>[0.001, 0.01]</u> <u>Te optimal dropout rateh</u> <u>[0.1, 0.5]</u> <u>Te optimal batch sizeh</u> <u>[12, 64]</u> Table 2. Parameter range of Bayesian optimization. Performance evaluation criteria Error computation is vital for evaluating prediction accuracy. Therefore, standard metrics including RMSE, MSE, and MAE were used. These metrics can be calculated using Eqs. (14), (15), and (16), respectively. Equation (17) is applied for determining the neural network’s maximum error. ~~�~~ N <u>�</u> <u>��</u> <sup>1</sup> N �t=1 RMSE = <u>�</u> N (VTrue − VPredict ) <sup>2</sup> (14) <u>�</u> t=1 (VTrue − VPredict ) <sup>2</sup> (15) MSE = N <sup>1</sup> (VTrue − VPredict ) <sup>2</sup> <u>�</u> N N <u>�t=1</u> t=1 (VTrue − VPredict ) <sup>2</sup> (16) MAE = N <sup>1</sup> |VTrue − VPredict | N N �t=1 t=1 |VTrue − VPredict | MaxAE = Max|VTrue − VPredict | (17) where N is the amount of data in the dataset, ­VTrue is the anomalous voltage of a single lithium-ion battery, and ­VPredict is the voltage predicted by the neural network. Result and discussion Comparison of informer and BO‑informer The BMS dataset of the energy storage plant was sampled at a time interval of 60 s, and 11,671 data from battery 60 for the period 3 August 2023 to 11 August 2023 were used as the dataset. In the dataset, abnormal voltage faults were identified for the time periods from 22:18:48 on 8 August 2023 to 9:51:49 on 9 August 2023, and from 21:40:48 on 9 August 2023 to 10:24:49 on 10 August 2023. Furthermore, a portion of the initial dataset contained missing data points, potentially influencing the precise identification of abnormal voltage characteristics by the neural network model. Data preprocessing is an essential preparatory stage, ensuring that the data is in a suitable format for constructing and training the neural network model. This study adopts a forward-filling strategy to address missing values. This method replaces missing entries with the corresponding value from the previous time step. Subsequently, the data was normalized or improved model training as described in Eq. (1) in section “Data standardization process”. The processed data was analyzed by correlation analysis and four correlations were obtained as inputs. Based on the pre-processed dataset, the Informer and Bayesian-Informer neural network models were used to predict battery voltage anomalies in the energy storage plant. In this study, the dataset was divided into training and test sets in the ratio of 7:3. Figure 6a shows the battery voltage anomalies prediction results of the Informer neural network without parameter optimization. The Informer neural network model’s prediction outcomes show significant disparities compared to the actual data. Throughout the forecasting phase, errors progressively accumulate, resulting in deviations between subsequent predicted values and actual values. Figure 6b illustrates the absolute errors in prediction results relative to experimental data. During training, the model maintained, low absolute errors between predicted and actual values. However, the absolute error gradually rose in subsequent predictions, potentially due to abrupt voltage fluctuations. The collective absolute errors range from 0 to 165 mV, with the highest absolute error in prediction results reaching 1030 mV at 7423 min. Conversely, this may indicate an overfitting issue stemming from imprudent hyperparameter configuration. The Informer model, optimized with Bayesian hyperparameters, effectively determines the most suitable hyperparameters within the ensemble range. Figure 7 illustrates the prediction outcomes of the Bayesian-optimized Informer neural network trained on the first 70% of experimental data. The BO-Informer model demonstrates significant improvement in prediction accuracy compared to the base Informer neural network. Across the overall validation, absolute errors ranged from 0 and 43 mV. The maximum absolute error in the prediction results is 890 mV occurring at the-7423-min mark. Consequently, the Bayesian algorithm enhances model performance and yields more precise prediction outcomes. MaxAE = Max|VTrue − VPredict | (17) Result and discussion Comparison of informer and BO‑informer The BMS dataset of the energy storage plant was sampled at a time interval of 60 s, and 11,671 data from battery 60 for the period 3 August 2023 to 11 August 2023 were used as the dataset. In the dataset, abnormal voltage faults were identified for the time periods from 22:18:48 on 8 August 2023 to 9:51:49 on 9 August 2023, and from 21:40:48 on 9 August 2023 to 10:24:49 on 10 August 2023. Furthermore, a portion of the initial dataset contained missing data points, potentially influencing the precise identification of abnormal voltage characteristics by the neural network model. Data preprocessing is an essential preparatory stage, ensuring that the data is in a suitable format for constructing and training the neural network model. This study adopts a forward-filling strategy to address missing values. This method replaces missing entries with the corresponding value from the previous time step. Subsequently, the data was normalized or improved model training as described in Eq. (1) in section “Data standardization process”. The processed data was analyzed by correlation analysis and four correlations were obtained as inputs. Based on the pre-processed dataset, the Informer and Bayesian-Informer neural network models were used to predict battery voltage anomalies in the energy storage plant. In this study, the dataset was divided into training and test sets in the ratio of 7:3. Figure 6a shows the battery voltage anomalies prediction results of the Informer neural network without parameter optimization. Comparative experiment of different neural network predictions The performance of the proposed model was compared with the baseline models including Informer, Transformer, GRU, and LSTM using historical data lengths of 24 time steps This comparative analysis encompassed 3.50 3.00 2.50 2.00 1.50 1.00 0.50 0.00 −0.50 True Training Prediction Training 70% Test 30% 0 2000 4000 6000 8000 10000 12000 Time (min) 1000 800 600 400 200 0 0 2000 4000 6000 8000 10000 12000 Time (min) Max error: 1030 mV 165 mV Fig. 6. ( a ) Voltage prediction results and ( b ) Prediction error of Informer neural network. 3.50 Max error: 890 mV <u>43 mV</u> 3.00 2.50 2.00 1.50 1.00 0.50 0.00 −0.50 True Training Prediction Training 70% Test 30% 0 2000 4000 6000 8000 10000 12000 Time (min) 1000 800 600 400 200 0 0 2000 4000 6000 8000 10000 12000 Time (min) Fig. 7. ( a ) Voltage prediction results and ( b ) Prediction error distribution of Informer neural network based on Bayesian optimization. one-step, two-step, and three-step prediction tasks. The results of the error comparison among these models on the test set are presented in Table 3., with the optimal errors highlighted in bold. Figures 8, 9, 10 show the bar charts illustrating the error comparison. The experimental findings demonstrate that the predictive performance of Informer surpasses that of other models. The proposed hybrid model, built upon Informer, is further refined and achieves optimal outcomes across all error metrics. Compared to Informer, reductions in RMSE, MSE, and MAE are observed, particularly in multi-step predictions. The most typical one-step prediction result is shown in Fig. 11. From the enlarged view, it can be seen that all these models can generally predict voltage anomalies. The proposed BO-Informer closely aligns with the actual values, achieving the best prediction results. <u>Step</u> <u>Metric</u> <u>BO-informer</u> <u>Informer</u> <u>Transformer</u> <u>GRU​</u> <u>LSTM</u> <u>RMSE(mV)</u> <u>9.118</u> <u>64.318</u> <u>60.235</u> <u>71.128</u> <u>73.149</u> 1 2 3 <u>MSE(mV)</u> <u>0.0831</u> <u>4.1369</u> <u>3.6283</u> <u>5.0592</u> <u>5.3508</u> <u>MAE(mV)</u> <u>6.708</u> <u>57.077</u> <u>58.075</u> <u>60.138</u> <u>60.439</u> <u>RMSE(mV)</u> <u>50.129</u> <u>100.459</u> <u>110.492</u> <u>171.347</u> <u>172.382</u> <u>MSE(mV)</u> <u>2.5218</u> <u>10.092</u> <u>12.2085</u> <u>29.3598</u> <u>29.7156</u> <u>MAE(%)</u> <u>41.843</u> <u>81.873</u> <u>87.287</u> <u>130.054</u> <u>129.374</u> <u>RMSE(mV)</u> <u>76.185</u> <u>160.492</u> <u>179.643</u> <u>242.739</u> <u>243.784</u> <u>MSE(mV)</u> <u>5.804</u> <u>25.758</u> <u>32.272</u> <u>58.922</u> <u>59.431</u> <u>MAE(%)</u> <u>62.048</u> <u>126.071</u> <u>139.16</u> <u>187.08</u> <u>184.085</u> Table 3. Error comparison results for all models with different step sizes. Significant values are in bold. Fig. 8. Comparison of prediction errors in 1 step. Fig. 9. Comparison of prediction errors in 2 step. Fig. 10. Comparison of prediction errors in 3 step. True LSTM GRU Transformer Informer BO-Informer True LSTM GRU Transformer Informer BO-Informer 2500 0 500 1000 1500 2000 2500 3000 3500 4000 ### Time (min) Fig. 11. 1 step prediction results. The effect of training set proportion on prediction results Data-driven approaches hinge not only on the formulation of the prediction model but also on the strategic partitioning of the dataset, a pivotal aspect in the prediction workflow. The size of the training set significantly influences the model’s predictive accuracy. Generally, a larger proportion of the training set yields more precise predictions from the neural network model. However, the relationship between the training set size and model performance enhancement is not linear, and an increase in training set volume may impact computational efficiency. Hence, determining an effective and accurate training set size is crucial for achieving accurate predictions. In this study, training sets comprising 25%, 50%, and 75% of the data were utilized, as depicted in Fig. 12a–c, respectively. It can be observed that predictions from the neural network model trained on the 50% and 75% sets are notably more accurate than those from the 25% set. Nevertheless, the 75% set did not yield a significant 3.50 3.00 2.50 2.00 1.50 1.00 0.50 0.00 −0.50 3.50 3.00 2.50 2.00 1.50 1.00 0.50 0.00 −0.50 3.50 3.00 2.50 2.00 1.50 1.00 0.50 0.00 −0.50 True Trainimg Prediction Training 25% Test 75% 0 2000 4000 6000 8000 10000 12000 Time (min) True Training Prediction Training 50% Test 50% 0 2000 4000 6000 8000 10000 12000 Time (min) True Training Prediction Training 75% Test 25% 0 2000 4000 6000 8000 10000 12000 Time (min) True Training Prediction Training 25% Test 75% 0 2000 4000 6000 8000 10000 Time (min) True Training Prediction Training 50% Test 50% 0 2000 4000 6000 8000 10000 Time (min) True Training Prediction Training 75% Test 25% 0 2000 4000 6000 8000 10000 Time (min) 3.50 3.00 2.50 2.00 1.50 1.00 0.50 0.00 −0.50 3.50 3.00 2.50 2.00 1.50 1.00 0.50 0.00 −0.50 3.50 3.00 2.50 2.00 1.50 1.00 0.50 0.00 −0.50 Fig. 12. Prediction results for different scaled training sets of energy storage batteries in The energy storage station in this paper: ( a ) 25%; ( b ) 50%; ( c ) 75%; Prediction results for energy storage batteries in another energy storage station ( d ) 25%; ( e ) 50%; ( f ) 75%. improvement in prediction accuracy over the 50% set. The MSE decreased by 860.89 mV and 860.74 mV, the RMSE decreased by 722.52 mV and 722.20 mV, and the MAE decreased by 59.58% and 59.66%, respectively. While larger training sets typically enhance the model’s ability to learn complex patterns within the data, they also demand more computational resources. The results suggested that increasing the training set size from 50 to 75% did improve prediction accuracy but, the gains were marginal compared to the computational costs incurred. To validate the model’s robustness, an additional dataset containing voltage anomalies was used for testing. This dataset was, collected from a BMS in a western China energy storage facility with a rated battery voltage of 3.1 V. The prediction results from the model are depicted in Fig. 12d–f. Utilizing BO, the Informer neural network model achieves superior precision in forecasting voltage anomalies. The predicted values maintain a minimal margin of error compared to the actual voltage, with an MSE of approximately 1.7 mV and an MAE of around 2.06%. Experimental results validate the model’s ability to maintain accurate predictions despite variations in battery parameters, The results, also proved the model’s robustness and generalization ability. The effect of different time intervals on prediction results The initial BMS data was sampled every minute. The dataset size influenced the neural network model’s training efficacy. Effective learning and desired outcomes by the neural network model require sufficiently large datasets. However, larger datasets may introduce more noise and escalate training complexities for the model. Thus, this study explored time intervals of 2, 3, 4, 5, 6, and 7 min. Employing a one-step prediction approach and utilizing the top 50% of the dataset for model training improved operational efficiency. Figure 13 illustrates the prediction outcomes. The BO integrated with the Informer neural network model excels in short-term battery anomaly prediction in an energy storage facility when sampling intervals are set at 2 and 3 min. However, inadequacies in data selection lead to subpar neural network model predictions concerning anomalous feature variations, as shown in Fig. 13c–f. For training set ratios exceeding 25%, the MSE, RMSE, and MAE metrics initially exhibit a decreasing trend as the sampling interval increases. The fluctuation in error at the 25% training set ratio may stem from the exclusion of abnormal voltage data states, resulting in error accumulation over time. While the study highlights the advantages of shorter sampling intervals (2–3 min) for accurate abnormal detection, it also underscores the need for a balanced approach in selecting the optimal time interval. This Interval: 5min True Training Prediction Training 50% Test 50% 0 2000 4000 6000 8000 10000 12000 Time (min) Interval: 6min True Training Prediction Training 50% Test 50% 0 2000 4000 6000 8000 10000 12000 Time (min) Interval: 7min True Training Prediction Training 50% Test 50% 0 2000 4000 6000 8000 10000 12000 Time (min) 3.50 3.00 2.50 2.00 1.50 1.00 0.50 0.00 −0.50 3.50 3.00 2.50 2.00 1.50 1.00 0.50 0.00 −0.50 3.50 3.00 2.50 2.00 1.50 1.00 0.50 0.00 −0.50 Interval:2min True Training Prediction Training 50% Test 50% 0 2000 4000 6000 8000 10000 12000 Time (min) Interval:3min True Training Prediction Training 50% Test 50% 0 2000 4000 6000 8000 10000 12000 Time (min) Interval:4min True Training Prediction Training 50% Test 30% 0 2000 4000 6000 8000 10000 12000 Time (min) 3.50 3.00 2.50 2.00 1.50 1.00 0.50 0.00 −0.50 3.50 3.00 2.50 2.00 1.50 1.00 0.50 0.00 −0.50 3.50 3.00 2.50 2.00 1.50 1.00 0.50 0.00 −0.50 Fig. 13. Bayesian optimization of Informer neural network prediction results at different time intervals: ( a ) 2 min; ( b ) 3 min; ( c ) 4 min; ( d ) 5 min; ( e ) 6 min; ( f ) 7 min. involves considering noise levels, computational constraints, and the specific requirements of the energy storage system. Error analysis Sections “Comparative experiment of different neural network predictions” and “The effect of training set proportion on prediction results” delve into the impacts of training set size and sampling frequency on the predictive capability of the Bayesian optimized Informer neural network model. For a more comprehensive model assessment, a detailed analysis from an error evaluation standpoint is necessary. Figure 14a–c showcase the average percentage error, RMSE, and MAE across all datasets, respectively. MAE provides a clearer picture of true prediction errors by avoiding error offsetting. MSE heightens sensitivity to error values. RMSE maintains alignment with the data scale, making it easier to interpret. changes in overall prediction accuracy. Specific error assessment metric values are listed in Table 4. The model demonstrated improved prediction accuracy as the training set proportion increased from 25 to 50%. However, further increasing the training set proportion to 75% did not yield significant changes in error assessment metrics. Notably, the lowest error occurred at a 4 min sampling interval, with MAE values of 233.85 mV and 31.99 mV, RMSE values of 513.99 mV and 62.75 mV, and MSE values of 264.18 mV and 3.94 mV across various training set proportions. Figure 14 illustrates that inadequate dataset volume fails to capture genuine data characteristics. The 4 min sampling interval likely provides the BO-Informer model with an optimal balance of data distribution and quality, enabling the model to achieve the lowest MAE in predicting voltage changes. The comprehensive error analysis reveals the intricate interplay between training set size, sampling intervals, and predictive accuracy. The analysis suggests that selecting a 4 min dataset and employing a 50% training set size can lead to more precise predictions. Fig. 14. Error analysis: ( a ) MSE; ( b ) RMSE; ( c ) MAE. <u>RMSE (mV)</u> <u>MSE (mV)</u> <u>MAE (mV)</u> <u>Sampling time interval (min)</u> <u>25%</u> <u>50%</u> <u>75%</u> <u>25%</u> <u>50%</u> <u>75%</u> <u>25%</u> <u>50%</u> <u>75%</u> <u>2</u> <u>665.564</u> <u>73.528</u> <u>122.902</u> <u>442.975</u> <u>5.406</u> <u>15.105</u> <u>299.985</u> <u>52.203</u> <u>102.575</u> <u>3</u> <u>973.224</u> <u>55.315</u> <u>71.049</u> <u>947.165</u> <u>3.060</u> <u>5.048</u> <u>465.599</u> <u>39.412</u> <u>58.475</u> <u>4</u> <u>513.987</u> <u>62.747</u> <u>64.357</u> <u>264.183</u> <u>3.937</u> <u>4.142</u> <u>233.853</u> <u>30.997</u> <u>36.689</u> <u>5</u> <u>806.449</u> <u>119.320</u> <u>192.711</u> <u>650.360</u> <u>14.237</u> <u>37.138</u> <u>368.205</u> <u>45.600</u> <u>60.414</u> <u>6</u> <u>895.651</u> <u>129.533</u> <u>134.876</u> <u>802.192</u> <u>16.779</u> <u>18.192</u> <u>404.422</u> <u>74.965</u> <u>107.681</u> <u>7</u> <u>973.719</u> <u>210.884</u> <u>240.539</u> <u>948.129</u> <u>44.472</u> <u>57.859</u> <u>443.721</u> <u>104.396</u> <u>162.742</u> Table 4. Prediction errors under different data volumes and training sets. Conclusion This study employed the Bayesian algorithm to optimize the hyperparameters of the Informer neural network model, aiming to enhance the accuracy of predicting abnormal voltage fluctuations in lithium-ion batteries. The analysis compared prediction outcomes across various methods, training set proportions, and sampling time intervals. (1) Neural networks demonstrate effective short-term prediction capabilities for voltage fluctuations in energy storage systems. Specifically, the Informer neural network model optimized through the Bayesian algorithm exhibited superior prediction accuracy compared to Informer, Transformer, GRU, and LSTM neural network models without parameter optimization, in 1-step, 2-step, and 3-step prediction scenarios. In the case of 1-step prediction, the highest RMSE in the test set was 9.118 mV, with an MSE of 0.0831 and an MAE of 6.708 mV. (2) The training set size within the dataset notably impacts prediction outcomes, and selecting an appropriate training set size can yield optimal performance in degradation prediction. A training set size that is too low leads to suboptimal model predictions, whereas a size exceeding 50% yields improved prediction accuracy. (3) The experiments, excessively revealed that, -excessively high sampling frequencies can introduce noise in the data and potentially lead to misleading performance trends. Setting the sampling interval to 4 min allowed the BO-Informer neural network model to achieve reduced prediction errors and preserve the original data features more effectively. (4) In real-world energy storage plant operations, tasks like peak shaving and frequency regulation are common, leading to intricate voltage fluctuations. Future studies can investigate extensions of the model to diagnose specific types of voltage anomalies, enhancing fault detection capabilities. Additionally, exploring the model’s adaptability for voltage prediction in other battery systems can also be considered. Data availability The datasets used and/or analysed during the current study available from the corresponding author on reasonable request.. All data generated or analysed during this study are included in this published article. Received: 11 May 2024; Accepted: 9 September 2024 References 1. Zhang, Q. _et al._ State-of-health estimation of batteries in an energy storage system based on the actual operating parameters. _J._ _Power Sources_ 506 [, 230162. https://​doi.​org/​10.​1016/j.​jpows​our.​2021.​230162 (2021).](https://doi.org/10.1016/j.jpowsour.2021.230162) 2. Pradhan, S. & Chakraborty, B. Battery management strategies: An essential review for battery state of health monitoring techniques. _J. Energy Storage_ [https://​doi.​org/​10.​1016/j.​est.​2022.​104427 (2022).](https://doi.org/10.1016/j.est.2022.104427) 3. Gong, D. _et al._ State of health estimation for lithium-ion battery based on energy features. _Energy_ 257, 124812 (2022). 4. Lingyun, L. I. Current situation and development trend of lithium battery industry for new energy vehicles in China. _Power Technol._ 44 (4), 628–630 (2020). 5. Yin, H. _et al._ Modeling strategy for progressive failure prediction in lithium-ion batteries under mechanical abuse. _ETransportation_ 7, 100098 (2021). 6. Wu, X. _et al._ Research on short-circuit fault-diagnosis strategy of lithium-ion battery in an energy-storage system based on voltage cosine similarity. _J. Energy Storage_ 71, 108012 (2023). 7. Yao, L., Wang, Z. & Ma, J. Fault detection of the connection of lithium-ion power batteries based on entropy for electric vehicles. _J. Power Sources_ 293, 548–561 (2015). 8. Wang, Z. _et al._ Voltage fault diagnosis and prognosis of battery systems based on entropy and Z-score for electric vehicles. _Appl._ _Energy_ 196, 289–302 (2017). 9. Xu, J. _et al._ Multi-scale short circuit resistance estimation method for series connected battery strings. _Energy_ 202, 117647 (2020). 10. Sun, Y. _et al._ A comprehensive research on internal short circuits caused by copper particle contaminants on cathode in lithium ion batteries. _ETransportation_ 13, 100183 (2022). 11. Hong, J., Wang, Z. & Yao, Y. Fault prognosis of battery system based on accurate voltage abnormity prognosis using long short term memory neural networks. _Appl. Energy_ 251, 113381 (2019). 12. Liu, X. _et al._ Review of abnormality detection and fault diagnosis methods for lithium-ion batteries. _Automot. Innov._ 6 (2), 256–267 (2023). 13. Yang, Z. _et al._ A novel model-based damage detection method for lithium-ion batteries. _J. Energy Storage_ 42, 102970 (2021). 14. Data-driven capacity estimation of commercial lithium-ion batteries from voltage relaxation. _Nat. Commun_ [. https://​doi.​org/​10.​](https://doi.org/10.1038/s41467-022-29837-w) [1038/​s41467-​022-​29837-w.](https://doi.org/10.1038/s41467-022-29837-w) 15. Ojo, O. _et al._ A neural network based method for thermal fault detection in lithium-ion batteries. _IEEE Trans. Ind. Electron._ 68 (5), 4068–4078 (2020). 16. Zou, B. _et al._ A review on the fault and defect diagnosis of lithium-ion battery for electric vehicles. _Energies_ 16 (14), 5507 (2023). 17. Chen, Z. _et al._ Model-based fault diagnosis approach on external short circuit of lithium-ion battery used in electric vehicles. _Appl._ _Energy_ 184, 365–374 (2016). 18. Tang, P. _et al._ Prediction of lithium-ion battery SOC based on the fusion of MHA and ConvolGRU. _Sci. Rep._ 13 (1), 16543 (2023). 19. Jiaqiang, E. _et al._ Effects of heating film and phase change material on preheating performance of the lithium-ion battery pack with large capacity under low temperature environment. _Energy_ 284, 129280 (2023). 20. Wang, L. _et al._ Construction of electrochemical model for high C-rate conditions in lithium-ion battery based on experimental analogy method. _Energy_ 279, 128073 (2023). 21. Chen, M. _et al._ A multilayer electro-thermal model of pouch battery during normal discharge and internal short circuit process. _Appl. Thermal Eng._ 120, 506–516 (2017). 22. Shu, X. _et al._ An adaptive multi-state estimation algorithm for lithium-ion batteries incorporating temperature compensation. _Energy_ 207, 118262 (2020). 23. Kanbur, B. B., Kumtepeli, V. & Duan, F. Thermal performance prediction of the battery surface via dynamic mode decomposition. _Energy_ 201, 117642 (2020). 24. Chen, Z. _et al._ Multifault diagnosis of li-ion battery pack based on hybrid system. _IEEE Trans. Transp. Electrif._ 8 (2), 1769–1784 (2021). 25. Wang, Y. _et al._ Model based insulation fault diagnosis for lithium-ion battery pack in electric vehicles. _Measurement_ 131, 443–451 (2019). 26. Zheng, C., Chen, Z. & Huang, D. Fault diagnosis of voltage sensor and current sensor for lithium-ion battery pack using hybrid system modeling and unscented particle filter. _Energy_ 191, 116504 (2020). 27. Gu, W. B. & Wang, C. Y. Thermal-electrochemical modeling of battery systems. _J. Electrochem. Soc._ 147 (8), 2910 (2000). 28. Gan, N. _et al._ Data-driven fault diagnosis of lithium-ion battery overdischarge in electric vehicles. _IEEE Trans. Power Electron._ 37 (4), 4575–4588 (2021). 29. Zhang, L. _et al._ Research on electric vehicle charging safety warning model based on back propagation neural network optimized by improved gray wolf algorithm. _J. Energy Storage_ 49, 104092 (2022). 30. Li, D. _et al._ Battery fault diagnosis for electric vehicles based on voltage abnormality by combining the long short-term memory neural network and the equivalent circuit model. _IEEE Trans. Power Electron._ 36 (2), 1303–1315 (2020). 31. Zhao, H. _et al._ Multi-step ahead voltage prediction and voltage fault diagnosis based on gated recurrent unit neural network and incremental training. _Energy_ 266, 126496 (2023). 32. Li, S. _et al._ Degradation prediction of proton exchange membrane fuel cell based on Bi-LSTM-GRU and ESN fusion prognostic framework. _Int. J. Hydrogen Energy_ 47 (78), 33466–33478 (2022). 33. Liu, Z. _et al._ Durability estimation and short-term voltage degradation forecasting of vehicle PEMFC system: Development and evaluation of machine learning models. _Appl. Energy_ 326, 119975 (2022). 34. Liu, C. _et al._ Accuracy improvement of fuel cell prognostics based on voltage prediction. _Int. J. Hydrogen Energy_ 58, 839–851 (2024). 35. Polson, N. G. & Sokolov, V. Deep learning: A Bayesian perspective. 2017. 36. Chen, D. _et al._ Performance degradation prediction method of PEM fuel cells using bidirectional long short-term memory neural network based on Bayesian optimization. _Energy_ 285, 129469 (2023). 37. Wang, L. _et al._ Accurate solar PV power prediction interval method based on frequency-domain decomposition and LSTM model. _Energy_ 262, 125592 (2023). 38. Zhou, H., Zhang, S. & Peng, J., _et al_ [. Informer: Beyond efficient transformer for long sequence time-series forecasting. 2020. https://​](https://doi.org/10.48550/arXiv.2012.07436) [doi.​org/​10.​48550/​arXiv.​2012.​07436.](https://doi.org/10.48550/arXiv.2012.07436) 39. Guo, L., Li, R. & Jiang, B. A data-driven long time-series electrical line trip fault prediction method using an improved stacked informer network. _Sensors (Basel, Switzerland)_ 21 [(13), 4466. https://​doi.​org/​10.​3390/​s2113​4466 (2021).](https://doi.org/10.3390/s21134466) 40. Tian, Y. _et al._ An adaptive hybrid model for wind power prediction based on the ivmd-fe-ad-informer[J]. _Entropy_ 25 (4), 647 (2023). Author contributions Conceptualization, Z.R. and J.W.; methodology, Z.R. and J.W.; validation, Z.R. and G.L.; data collation, Z.R.; writing-original draft preparation, Z.R.; writing-review and editing, Z.R.; supervision, G.L. and H.W.; project. administration, J.W. All authors have read and agreed to the submitted version of the manuscript. Funding Project supported by the Open project of Key Laboratory in Xinjiang. Uygur Autonomous Region of China(2023D04071); National Natural Science Foundation of China (52167016); Project Supported by Key Research. and Development Project of Xinjiang Uygur Autonomous Region(2022B01020-3). Competing interests The authors declare no competing interests. Additional information Correspondence and requests for materials should be addressed to J.W. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain [permission directly from the copyright holder. To view a copy of this licence, visit http://​creat​iveco​mmons.​org/​](http://creativecommons.org/licenses/by-nc-nd/4.0/) [licen​ses/​by-​nc-​nd/4.​0/.](http://creativecommons.org/licenses/by-nc-nd/4.0/) © The Author(s) 2024

섹션 본문 45문단 · 26,447자

(제목 없음)

1Accurately detecting voltage faults is essential for ensuring the safe and stable operation of energy storage power station systems.To swiftly identify operational faults in energy storage batteries, this study introduces a voltage anomaly prediction method based on a Bayesian optimized (BO)-Informer neural network.Firstly, the temporal characteristics and actual data collected by the battery management system (BMS) are considered to establish a long-term operational dataset for the energy storage station.The Pearson correlation coefficient (PCC) is used to quantify the correlations between these data.Secondly, an Informer neural network with BO hyperparameters is used to build the voltage prediction model.The performance of the proposed model is assessed by comparing it with several state-of-the-art models.With a 1 min sampling interval and one-step prediction, trained on 70% of the available data, the proposed model reduces the root mean square error (RMSE), mean square error (MSE), and mean absolute error (MAE) of the predictions to 9.18 mV, 0.0831 mV, and 6.708 mV, respectively.Furthermore, the influence of different sampling intervals and training set ratios on prediction results is analyzed using actual grid operation data, leading to a dataset that balances efficiency and accuracy.The proposed BO-based method achieves more precise voltage abnormity prediction than the existing methods.

2The primary contributions of this study are as follows: 1) For the first time, the relevant information from the (battery management system) BMS is integrated with the temporal information extracted by the Informer from voltage data.Then, PCC is used to identify high-quality parameters to be input into the voltage prediction model.2) Informer model is employed for the first time in voltage prediction for energy storage stations.To enhance voltage prediction performance, BO is combined with iterative training, resulting in the BO-Informer model.This integration optimizes the model's hyperparameters, leading to enhanced predictive capabilities and an improved ability to learn and memorize complex relationships within the voltage data.The model achieves advanced forecasting of future voltage, demonstrating its potential for early prediction of voltage anomalies.3) The proposed hybrid model is compared with commonly used Transformer, GRU, LSTM, and the non-optimized Informer models.The experimental results demonstrate that the proposed model achieves optimal performance across all three evaluation metrics ((mean absolute error) MAE, (mean square error) MSE, and (root mean square error) RMSE).The predictive accuracy of the proposed model is demonstrated.

3The remainder of this paper is structured as follows.Section "Data collection and processing" details the process of data collection and preprocessing.The development of the BO-Informer model is introduced In section "Methodology".Subsequently, Section "Result and discussion" presents the results and discussion.Finally, Section "Conclusion" draws the main conclusions.

Data and structure of energy storage station

4A certain energy storage power station in western China is composed of three battery cabins.Each compartment contains two stacks (1,2), and each stack comprises three clusters.Each cluster is composed of 19 modules, with each module consisting of 2 cells in parallel and 12 cells in series.In this study, the term 'individual cell' refers to the '1 series' within the 2 parallel and 12 series configurations.Figure 1 illustrates the arrangement of battery cells in a battery module.The individual battery cells have a rated voltage of 3.2 V and a nominal capacity of 120 Ah, while the battery pack has a rated voltage of 38.4 V and a capacity of 240 Ah.Real-time operational data was continuously recorded using the BMS, at 60-s intervals, encompassing parameters like battery current, voltage, temperature, and SOC.The variability and unpredictability of factors such as grid peak shaving and frequency regulation often lead to random fluctuations in most time-varying parameters, Fig. 2 shows the curves of some representative parameters, including battery voltage (normal and abnormal), cluster voltage, SOC, temperature and current.It can be seen from the figure that the main fluctuations in battery voltage and cluster voltage are in the range of 3.6 to 4.2 V and 50.4 to 58.8 V.The range of abnormal voltage is from 0 to 3.39 V, and the temperature range is from 22 to 28 °C.The current jump is caused by the switching between charging and discharging of the energy storage power station.The SOC ranges from 17.5 to 86.6%.This phenomenon can be explained by the ancillary services provided by the storage station, The confidence level of SOC is relatively low, making it difficult to estimate accurately even with state-of-the-art methods.SOC significantly influences voltage changes, but its relationship is non-linear and exhibits a time lag.This limits the possibility of complete battery discharge.Other factors impacting the battery voltage within the storage station include current, temperature and inevitable aging effects.

Data standardization process

5Different evaluation indicators often have different scales and units of measurement, and such differences can potentially affect the results of data analyses.In order to eliminate the effects of these metrics, data standardization measures are necessary to ensure comparability between indicators.Linear transformation is considered to be an effective method for mapping the raw data into the range [0, 1] and its standardization formula is shown in Eq. (1) The method normalizes the raw data by scaling it in equal proportions.

6In this equation: D norm represents the collected data of the BMS normalized in the previous section, collectively referred to as original data thereafter.D denotes the original data; D max and D min are the maximum and minimum values of the original data set, respectively.

PCC correlation analysis

7Currently, online estimation of the state of health (SOH) and remaining useful life (RUL) of batteries is still a challenging problem.In order to more fully consider the temporal characteristics of the battery voltage, we introduce the Informer model.The model is naturally equipped to handle temporal characteristics.The model ensures that the correct order of the input sequence can be captured by introducing positional encoding in the data input.The positional encoding involves both local and global timestamps, with equations for the local timestamps as shown in Eqs. ( 2) and (3) Here, pos denotes the position of the current word in the whole input sequence.i is the dimension of the current computed value, which takes values ranging from 1 to d. d denotes the dimension of the input sequence and L denotes the length of the sequence.Based on the above equations, three time series features i.e. weekly, daily and hourly parameters of the voltage data of battery 60 for the period of August 1 to August 31 were extracted.Additionally, ten parameters related to battery voltage data, including temperature of the cell, stack voltage (the total voltage of a battery stack), stack current (the current flowing through an entire battery stack), stack SOC (the state of charge of a battery stack), cluster voltage (the voltage of a battery cluster), cluster current (the current flowing through a specific battery cluster), and cluster SOC (the state of charge of a particular battery cluster), were recorded using the BMS.To extract the most valuable features from these parameters and quantify their correlation with voltage, the PCC method was employed to eliminate the harmful parameters and extract the high-quality parameters as inputs to the voltage prediction model.The details are as follows:

8(1) where, n indicates the number of each parameter; x i indicates the voltage; x indicates the average value of x i ; y i indicates the characteristic variable of the voltage at the moment i; y indicates the average value of y i.The value of ρ ranges from − 1 to 1, and the size of the absolute value of the ρ value reflects the strength of the correlation between the characteristic variable and the voltage.An absolute value close to 1, indicates that the linear correlation between the two parameters is strong.The PCC values of the selected 11 parameters are shown in Fig. 3. Selecting highly correlated parameters can reduce computational burden while maintaining high predictive performance.The PCC values of the pile voltage, cluster voltage, cluster SOC and day feature are all higher than 0.85, indicating a strong linear correlation.Therefore, they are chosen as inputs to the model.Since the model aims to use historical data of battery clusters/battery packs for abnormal voltage prediction, the battery voltage itself is also included as an input to the model.

Methodology

9Figure 4 shows the entire implementation process of the proposed voltage anomaly prediction scheme, which is divided into four stages: data preparation, BO-Informer model training, Bayesian hyperparameter optimization, and discussion of prediction results.First, operational data of the energy storage station is obtained from the BMS, Then the data is preprocessed, including correlation analysis, normalization, and partitioning into training and testing datasets.Next, an Informer model suitable for the data structure is used to train and predict future domain battery voltages using an integrated multi-step prediction design.To further enhance the performance, BO is employed to optimize the model's hyperparameters.This combined approach results in the development of the BO-Informer prediction model.

The neural network structure of informer

10The Informer is a Transformer based model proposed by Zhou et al. 38 Aiming to Improve Computational Efficiency of Self-Attention Mechanisms, Multilayer Network Stacking and Stepwise Decoding Methods in Transformer Networks.The informer network exhibits better performance than LSTM in capturing long-term correlations.Therefore, it has been successfully applied in fields such as long time series electrical line trip fault prediction and wind power prediction 39,40 .This study applies the Informer model for the first time to the prediction of voltage anomalies in energy storage batteries.The model consists of an encoder and a decoder, where the encoder processes the time series and reduces the time complexity and memory usage through a probabilistic sparse self-attention mechanism.Subsequently, the temporal dimension of the input sequence is reduced by

Unified input representation

11Since the position information of the data cannot be directly recorded in the input, requiring position embedding.

12Informer incorporates position encoding into the data input to ensure the model captures the correct order of the input sequence.This position encoding is divided into local and global timestamps.The equations for local timestamps are provided in Eqs. ( 2) and ( 3).Following the encoding steps, the input data for the encoder layer is obtained as follows:

13where u i represents the original data sequence, i ∈ [1, 2, …, L]; L is the length of the data sequence; t is the series number; and α, set to 1 for normalized input sequences, is a factor balancing the size between the mapping vector and the position encoding.

ProbSparse self-attention

14Self-attention is an important feature extraction mechanism used in the encoding and decoding process.The original self-attention mechanism originally proposed by Vaswani et al. aims to map the query, key and value vectors to the output.The weights are derived by applying specific formulas to calculate the association of the query with the corresponding keys.Then, a weighted sum of these values is calculated based on these weights as shown in Eq. ( 6)

15where

16, d represents the input dimension.This attention mechanism is also known as dot product attention because we compute the dot product of the query with all keys.However, this approach requires significant memory usage (O(L Q L K )) and quadratic time complexity for computation.This severely limits the predictive power of the model.According to previous experimental results, the score of self-attention follows a long-tailed distribution, i.e., a small number of dot products contribute to most of the attention.Therefore, identifying the main attention is important to reduce the computational complexity, which is the core strategy of ProbSparse self-attention.

17We define the ith query as q i and define the probability of q i attention to all keys as p(k j |q i ).When q i contribution to attention is not essential, p(k j |q i ) will be close to uniformly distributed u(kj|qi) = 1/L k .We use the adjusted Kullback-Leibler divergence to measure the distribution The difference between p and q M(q i , K) denotes the importance of q i , which increases with the 'diversity' of the probability distribution, and is therefore more likely to contain major dot product pairs.Here, we envisage using only the n highest scoring dominant queries:

18(5) where Q consists of the first n queries, which are obtained from the sparsity measurements.We set n = alnL Q , where a is a constant parameter.As a result, the memory usage of ProbSparse self-attention is reduced to O(L K ln L Q ).

19In order to reduce the computational complexity, the computation of M(q i ,K) requires traversing all dot products of the query and the key, and the complexity of this process is quadratic O(L Q L K ).Moreover, the LSE operation (the first part of M(q i, K)) is not stable enough for numerical computation.For this reason, two methods are used to reduce the complexity: approximate simplification and sampling calculations.M(q i ,K) has obvious upper and lower bounds (proofs have been obtained in Zhou's study 38 ).The adjusted measurements are shown in Eq. (10).

20Due to the presence of a long-tailed distribution, there is no need to evaluate M(q i ,K) for each query.We can randomly sample N = ln K ln L Q pairs to compute M(q i ,K) and set the residual value to zero.This approach makes the numerical computation more stable and reduces unnecessary traversals.If L K = L Q = L, the time and space complexity is O(L ln L).

Encoder

21The encoder is mainly responsible for extracting dependencies from lengthy data sequences.The probabilistic sparse self-attention mechanism deals with sequences that contain redundant V-vectors.Therefore, in this case, the distillation operation gives higher weight to the basic features.The distillation process for stages j to j + 1 is as follows:

22where [.] AB denotes the key operation in the multi-head probabilistic sparse self-attention mechanism.the ELU is an activation function.The effect of convolution and pooling is to halve the input sequence, thus reducing the memory utilisation to O((2 − λ)L log L).

Decoder

23The decoder receives the following input vectors: where X t de denotes the input to the decoder, X t token is the start token of the sequence and X t 0 denotes the placeholder of the target sequence.In order to maintain the consistency of the input dimensions, the timestamps are zero-padded.Next, autoregression is prevented by using masked multi-head attention to ensure that each position focuses only on information relevant to the current position.Eventually, the final result is obtained.The voltage dataset we used has a high sampling frequency.Based on the correlation heat map, we selected data that are strongly correlated with the input data in order to train and predict the model for long sequence data.The validation prediction length was 4012 sample points, and the results showed that the model was able to effectively process and predict data sequences with long sequences and large data features.After several tests, Informer achieved convergence at round 10 of the dataset.Given the characteristics of battery voltage data from energy storage power stations, traditional methods are unable to complete model training quickly when facing newly generated data.Therefore, under the premise of guaranteeing the prediction accuracy, reduce the model size and computational runtime, and choose three encoder layers and one decoder layer.The specific structure is shown in Fig. 5.

Loss functions

24In the back propagation process of neural networks, the loss function plays a crucial role and essentially reflects the error of the network.The smaller the value of the loss function, the more superior the performance of the network in problem solving.Therefore, it is crucial to choose an appropriate loss function to ensure that the network parameters are optimized in a more reasonable direction.There are numerous loss functions to choose from, including absolute value loss function, mean square loss function, cross entropy loss function, etc.In this experiment, we used the MSE.The specific expression of the mean square loss function is as follows:

Model parameters

25In Informer modeling, crucial parameters include historical data length (h-len) Initial learning rate, dropout rate, The number of encoder layers and batch size.Based on the basic hyperparameters proposed by Zhou et al. 38 as well as the prediction results from the dataset discussed in section "Decoder" of this paper, the model's structure and hyperparameters were preliminarily determined.The experimental model parameters are shown in Table 1.

Bayesian optimization

26BO neural networks encompass several hyperparameters, including the loss function, the number of encoder layers, the number of decoder layers, h-len, learning rate, dropout rate, and batch size.These parameters are typically set based on experience, making it difficult to obtain the optimal parameters.These hyperparameters significantly affect the runtime and prediction accuracy of neural networks.Hence their optimization is crucial.This study focuses on historical data length, learning rate, dropout rate, and batch size as the neural network's hyperparameters.A BO algorithm is employed to efficiently identify the optimal configuration of these hyperparameters.h-len dictates the amount of past time steps the model takes into account during predictions.Proper h-len enables the model to accurately capture long-term dependencies and trends within the time series, thereby enhancing prediction accuracy.Bayesian optimization is an approach that optimizes black-box functions by building Gaussian process models.Its fundamental principle is to select the parameter values that are most likely to lead to optimization in each iteration based on the current Gaussian process model.It leverages Bayes' theorem to update the model's prior probability distribution with information obtained from function evaluations.This allows BO to choose the next sampling point based on the insights provided by the current Gaussian process model, iteratively enhancing the black-box function.Figure 4 depicts the BO process for Informer.

Bayesian optimization parameters

27Similar to the original Informer model, the BO-based Informer model also includes certain parameters from the Informer.However, BO is specifically utilized to optimize parameters such as h-len, initial learning rate, dropout rate, and batch size.To ensure effective optimization and the feasibility of the resulting parameters, it is essential to set appropriate ranges for the hyperparameters, as indicated in Table 2.

28The experimental environment for this study was Windows 11 64-bit operating system with i5-10400F CPU,16 GB RAM, and GTX-3060 graphics card.The experimental code used scikit-learn library and pytorch library in Python and compilation was done using PyCharm software.www.nature.com/scientificreports/one-step, two-step, and three-step prediction tasks.The results of the error comparison among these models on the test set are presented in Table 3., with the optimal errors highlighted in bold.Figures 8, 9, 10 show the bar charts illustrating the error comparison.The experimental findings demonstrate that the predictive performance of Informer surpasses that of other models.The proposed hybrid model, built upon Informer, is further refined and achieves optimal outcomes across all error metrics.Compared to Informer, reductions in RMSE, MSE, and MAE are observed, particularly in multi-step predictions.The most typical one-step prediction result is shown in Fig. 11.From the enlarged view, it can be seen that all these models can generally predict voltage anomalies.The proposed BO-Informer closely aligns with the actual values, achieving the best prediction results.improvement in prediction accuracy over the 50% set.The MSE decreased by 860.89 mV and 860.74 mV, the RMSE decreased by 722.52 mV and 722.20 mV, and the MAE decreased by 59.58% and 59.66%, respectively.While larger training sets typically enhance the model's ability to learn complex patterns within the data, they also demand more computational resources.The results suggested that increasing the training set size from 50 to 75% did improve prediction accuracy but, the gains were marginal compared to the computational costs incurred.

29To validate the model's robustness, an additional dataset containing voltage anomalies was used for testing.This dataset was, collected from a BMS in a western China energy storage facility with a rated battery voltage of 3.1 V.The prediction results from the model are depicted in Fig. 12d-f involves considering noise levels, computational constraints, and the specific requirements of the energy storage system.

Error analysis

30Sections "Comparative experiment of different neural network predictions" and "The effect of training set proportion on prediction results" delve into the impacts of training set size and sampling frequency on the predictive capability of the Bayesian optimized Informer neural network model.For a more comprehensive model assessment, a detailed analysis from an error evaluation standpoint is necessary.Figure 14a-c

Fig. 1 .

31Fig. 1.Arrangement of cells in the battery module.

( 3 )Fig. 2 .

32Fig. 2. Measured data from energy storage stations.

Fig. 4 .

33Fig. 4. Bayesian optimization informer neural network prediction flowchart.

2 Vol

34https://doi.org/10.1038/s41598-024-72510-zwww.nature.com/scientificreports/

Fig. 6 .Fig. 7 .

35Fig. 6.(a) Voltage prediction results and (b) Prediction error of Informer neural network.

Fig. 8 .Fig. 9 .

36Fig. 8.Comparison of prediction errors in 1 step.

37showcase the average percentage error, RMSE, and MAE across all datasets, respectively.MAE provides a clearer picture of true prediction errors by avoiding error offsetting.MSE heightens sensitivity to error values.RMSE maintains alignment with the data scale, making it easier to interpret.changes in overall prediction accuracy.Specific error assessment metric values are listed in Table 4.The model demonstrated improved prediction accuracy as the training set proportion increased from 25 to 50%.However, further increasing the training set proportion to 75% did not yield significant changes in error assessment metrics.Notably, the lowest error occurred at a 4 min sampling interval, with MAE values of 233.85 mV and 31.99 mV, RMSE values of 513.99 mV and 62.75 mV, and MSE values of 264.18 mV and 3.94 mV across various training set proportions.Figure 14 illustrates that inadequate dataset volume fails to capture genuine data characteristics.The 4 min sampling interval likely provides the BO-Informer model with an optimal balance of data distribution and quality, enabling the model to achieve the lowest MAE in predicting voltage changes.The comprehensive error analysis reveals the intricate interplay between training set size, sampling intervals, and predictive accuracy.The analysis suggests that selecting a 4 min dataset and employing a 50% training set size can lead to more precise predictions.

Fig. 14 .

38Fig. 14.Error analysis: (a) MSE; (b) RMSE; (c) MAE.

( 1 )

39Neural networks demonstrate effective short-term prediction capabilities for voltage fluctuations in energy storage systems.Specifically, the Informer neural network model optimized through the Bayesian algorithm exhibited superior prediction accuracy compared to Informer, Transformer, GRU, and LSTM neural network models without parameter optimization, in 1-step, 2-step, and 3-step prediction scenarios.In the case of 1-step prediction, the highest RMSE in the test set was 9.118 mV, with an MSE of 0.0831 and an MAE of 6.708 mV.(2) The training set size within the dataset notably impacts prediction outcomes, and selecting an appropriate training set size can yield optimal performance in degradation prediction.A training set size that is too low leads to suboptimal model predictions, whereas a size exceeding 50% yields improved prediction accuracy.(3) The experiments, excessively revealed that, -excessively high sampling frequencies can introduce noise in the data and potentially lead to misleading performance trends.Setting the sampling interval to 4 min allowed the BO-Informer neural network model to achieve reduced prediction errors and preserve the original data features more effectively.(4) In real-world energy storage plant operations, tasks like peak shaving and frequency regulation are common, leading to intricate voltage fluctuations.Future studies can investigate extensions of the model to diagnose specific types of voltage anomalies, enhancing fault detection capabilities.Additionally, exploring the model's adaptability for voltage prediction in other battery systems can also be considered.

Table 1 .

40Informer-based time series prediction method for voltage anomalies.Parameters of voltage abnormity prediction model based on informer.

41Vol:.(1234567890) Scientific Reports | (2024) 14:21404 | https://doi.org/10.1038/s41598-024-72510-z

Table 3 .

42Error comparison results for all models with different step sizes.Significant values are in bold.

43. Utilizing BO, the Informer neural network model achieves superior precision in forecasting voltage anomalies.The predicted values maintain a minimal margin of error compared to the actual voltage, with an MSE of approximately 1.7 mV and an MAE of around 2.06%.Experimental results validate the model's ability to maintain accurate predictions despite variations in battery parameters, The results, also proved the model's robustness and generalization ability.

Table 4 .

44Prediction errors under different data volumes and training sets.ConclusionThis study employed the Bayesian algorithm to optimize the hyperparameters of the Informer neural network model, aiming to enhance the accuracy of predicting abnormal voltage fluctuations in lithium-ion batteries.The analysis compared prediction outcomes across various methods, training set proportions, and sampling time intervals.

45Vol:.(1234567890) Scientific Reports | (2024) 14:21404 | https://doi.org/10.1038/s41598-024-72510-zwww.nature.com/scientificreports/

참고문헌 39건

  1. Fault detection of the connection of lithium-ion power batteries based on entropy for electric vehicles Journal of Power Sources · Elsevier BV · 2015 10.1016/j.jpowsour.2015.05.090
  2. Thermal-Electrochemical Modeling of Battery Systems Journal of The Electrochemical Society · Institute of Physics · 2000 10.1149/1.1393625
  3. Model-based fault diagnosis approach on external short circuit of lithium-ion battery used in electric vehicles Applied Energy · Elsevier BV · 2016 10.1016/j.apenergy.2016.10.026
  4. Voltage fault diagnosis and prognosis of battery systems based on entropy and Z -score for electric vehicles Applied Energy · Elsevier BV · 2017 10.1016/j.apenergy.2016.12.143
  5. A multilayer electro-thermal model of pouch battery during normal discharge and internal short circuit process Applied Thermal Engineering · Elsevier BV · 2017 10.1016/j.applthermaleng.2017.03.135
  6. Deep Learning: A Bayesian Perspective Bayesian Analysis · International Society for Bayesian Analysis · 2017 10.1214/17-ba1082
  7. Model based insulation fault diagnosis for lithium-ion battery pack in electric vehicles Measurement · Elsevier BV · 2018 10.1016/j.measurement.2018.09.007
  8. Fault prognosis of battery system based on accurate voltage abnormity prognosis using long short-term memory neural networks Applied Energy · Elsevier BV · 2019 10.1016/j.apenergy.2019.113381
  9. Fault diagnosis of voltage sensor and current sensor for lithium-ion battery pack using hybrid system modeling and unscented particle filter Energy · Elsevier BV · 2019 10.1016/j.energy.2019.116504
  10. A Neural Network Based Method for Thermal Fault Detection in Lithium-Ion Batteries IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2020 10.1109/tie.2020.2984980
  11. Multi-scale short circuit resistance estimation method for series connected battery strings Energy · Elsevier BV · 2020 10.1016/j.energy.2020.117647
  12. Thermal performance prediction of the battery surface via dynamic mode decomposition Energy · Elsevier BV · 2020 10.1016/j.energy.2020.117642
  13. An adaptive multi-state estimation algorithm for lithium-ion batteries incorporating temperature compensation Energy · Elsevier BV · 2020 10.1016/j.energy.2020.118262
  14. Battery Fault Diagnosis for Electric Vehicles Based on Voltage Abnormality by Combining the Long Short-Term Memory Neural Network and the Equivalent Circuit Model IEEE Transactions on Power Electronics · Institute of Electrical and Electronics Engineers · 2020 10.1109/tpel.2020.3008194
  15. Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2012.07436
  16. Modeling strategy for progressive failure prediction in lithium-ion batteries under mechanical abuse eTransportation · Elsevier BV · 2020 10.1016/j.etran.2020.100098
  17. A Data-Driven Long Time-Series Electrical Line Trip Fault Prediction Method Using an Improved Stacked-Informer Network Sensors · Multidisciplinary Digital Publishing Institute · 2021 10.3390/s21134466
  18. State-of-health estimation of batteries in an energy storage system based on the actual operating parameters Journal of Power Sources · Elsevier BV · 2021 10.1016/j.jpowsour.2021.230162
  19. A novel model-based damage detection method for lithium-ion batteries Journal of Energy Storage · Elsevier BV · 2021 10.1016/j.est.2021.102970
  20. Multifault Diagnosis of Li-Ion Battery Pack Based on Hybrid System IEEE Transactions on Transportation Electrification · Institute of Electrical and Electronics Engineers · 2021 10.1109/tte.2021.3121036
  21. Data-Driven Fault Diagnosis of Lithium-Ion Battery Overdischarge in Electric Vehicles IEEE Transactions on Power Electronics · Institute of Electrical and Electronics Engineers · 2021 10.1109/tpel.2021.3121701
  22. Research on electric vehicle charging safety warning model based on back propagation neural network optimized by improved gray wolf algorithm Journal of Energy Storage · Elsevier BV · 2022 10.1016/j.est.2022.104092
  23. Battery management strategies: An essential review for battery state of health monitoring techniques Journal of Energy Storage · Elsevier BV · 2022 10.1016/j.est.2022.104427
  24. Data-driven capacity estimation of commercial lithium-ion batteries from voltage relaxation Nature Communications · Nature Portfolio · 2022 10.1038/s41467-022-29837-w
  25. A comprehensive research on internal short circuits caused by copper particle contaminants on cathode in lithium-ion batteries eTransportation · Elsevier BV · 2022 10.1016/j.etran.2022.100183
  26. State of health estimation for lithium-ion battery based on energy features Energy · Elsevier BV · 2022 10.1016/j.energy.2022.124812
  27. Degradation prediction of proton exchange membrane fuel cell based on Bi-LSTM-GRU and ESN fusion prognostic framework International Journal of Hydrogen Energy · Elsevier BV · 2022 10.1016/j.ijhydene.2022.07.230
  28. Durability estimation and short-term voltage degradation forecasting of vehicle PEMFC system: Development and evaluation of machine learning models Applied Energy · Elsevier BV · 2022 10.1016/j.apenergy.2022.119975
  29. Accurate solar PV power prediction interval method based on frequency-domain decomposition and LSTM model Energy · Elsevier BV · 2022 10.1016/j.energy.2022.125592
  30. Multi-step ahead voltage prediction and voltage fault diagnosis based on gated recurrent unit neural network and incremental training Energy · Elsevier BV · 2022 10.1016/j.energy.2022.126496
  31. Review of Abnormality Detection and Fault Diagnosis Methods for Lithium-Ion Batteries Automotive Innovation · Springer Nature · 2023 10.1007/s42154-022-00215-y
  32. An Adaptive Hybrid Model for Wind Power Prediction Based on the IVMD-FE-Ad-Informer Entropy · Multidisciplinary Digital Publishing Institute · 2023 10.3390/e25040647
  33. Construction of electrochemical model for high C-rate conditions in lithium-ion battery based on experimental analogy method Energy · Elsevier BV · 2023 10.1016/j.energy.2023.128073
  34. Research on short-circuit fault-diagnosis strategy of lithium-ion battery in an energy-storage system based on voltage cosine similarity Journal of Energy Storage · Elsevier BV · 2023 10.1016/j.est.2023.108012
  35. A Review on the Fault and Defect Diagnosis of Lithium-Ion Battery for Electric Vehicles Energies · Multidisciplinary Digital Publishing Institute · 2023 10.3390/en16145507
  36. Prediction of lithium-ion battery SOC based on the fusion of MHA and ConvolGRU Scientific Reports · Nature Portfolio · 2023 10.1038/s41598-023-43858-5
  37. Effects of heating film and phase change material on preheating performance of the lithium-ion battery pack with large capacity under low temperature environment Energy · Elsevier BV · 2023 10.1016/j.energy.2023.129280
  38. Performance degradation prediction method of PEM fuel cells using bidirectional long short-term memory neural network based on Bayesian optimization Energy · Elsevier BV · 2023 10.1016/j.energy.2023.129469
  39. Accuracy improvement of fuel cell prognostics based on voltage prediction International Journal of Hydrogen Energy · Elsevier BV · 2024 10.1016/j.ijhydene.2024.01.238